renaudhelias / dskmanager Goto Github PK
View Code? Open in Web Editor NEWCPC DskManager in Java
CPC DskManager in Java
To try with a VORTEX ROM
It is horrible for chain programming
DskManager:
Markus, date d’envoi : Aujourd’hui, à 20:34
To prevent putting files with lower case chars in name:
Markus, date d’envoi : Aujourd’hui, à 20:34
cat.filename=fileName.toUpperCase();
catalogs.add(cat);
Markus, date d’envoi : Aujourd’hui, à 20:34
line 383 I think
Using WinAPE, it's around 256, on DskManager it's around 100
catId are using 2 bytes on DOSD2, 40SS are using 1 byte per catId
see FIXME for more explanation.
I add 2 files
I add boum.txt (big file)
I add 3 files
Only the 2 first files does run correctly
discology 6.0 (f) (1989) (cpm) [utilitaire].dsk
DksType=null
For chain programming
My 3rd choice.
Mieux de le faire avant la version console de DSKManager.
To implement
When I add a file on a fully dsk, it adds file to display list.
But all catalog is full, and console s message say :
Récupération de C1-C2
rien dans ce catalog sectors list
rien dans ce catalog sectors list
rien dans ce catalog sectors list
rien dans ce catalog sectors list
On GUI, I display "FILE.BAS", but "FILE .BAS" is cool to align, like a simple CPC cat.
And help to detect protected file (space at begin of filename)
As asked by Markus.
When you create a new DSK:
Make sure, the filename ends with ".dsk"...
If not: Add ".dsk
Copy selected file on DSK to clipboard (As file)
Paste file from clipboard to DSK
I am working on paste pictures from clipboard to paint
All in the title.
FutureOS/WIP_of_A_Tribute_to_the_Sisters_2018-10-15.dsk
Problem of drag drop.
spaces must be removed only before last "."
do check cursor of mouse, something it freeze on "not allowed" cursor state.
Ajouter les USER dans l'IHM.
TODO
Do extract file name from AMSDOS header
End of file contains garbage DATA.
Add support to drag & drop a .dsk file, too 😉 It will be opened then
for launching "ùcpm"
When I put Hello.bas into DskManager and say "add Header", header is added to original file also.
show message when failing around searching type of disk
Remove this:
Markus, date d’envoi : Aujourd’hui, à 17:43
fileLength -= Math.min(sector.data.length, fileLength);
Markus, date d’envoi : Aujourd’hui, à 17:43
Appears 2 times in:
Markus, date d’envoi : Aujourd’hui, à 17:43
public LinkedHashMap<String, ByteArrayOutputStream> listFiles(DskFile dskFile) throws IOException {
Actually you can drop and drop in the same window, the file grow strangely.
Is the tmp-directory necessary?
If so: You should delete it after exporting 😉
length=0x80 ?
sectorIncrement=1 ?
How can I read protected / hidden files?
Markus, date d’envoi : Aujourd’hui, à 19:25
Reading AL1 .ÓÃR
Markus, date d’envoi : Aujourd’hui, à 19:25
but no result (empty)
Markus, date d’envoi : Aujourd’hui, à 19:25
name is AL1.SCR but hidden and protected
Date d’envoi de votre message : Aujourd’hui, à 19:31
It seems I show the file name from disk, and not from AMSDOS
Date d’envoi de votre message : Aujourd’hui, à 19:31
*AMSDOS header
Markus, date d’envoi : Aujourd’hui, à 19:31
I found the problem
Markus, date d’envoi : Aujourd’hui, à 19:31
Has nothing to do with the name
Markus, date d’envoi : Aujourd’hui, à 19:36
public byte[] readFile(String dskname, String osname) {
loadDisk(dskname);
try {
byte[] data = dm.readFile(dsk, osname);
if (CheckAMSDOS(data)){
int size = getWord(data,0x18) + 0x80;
byte[] d = new byte[size];
System.arraycopy(data, 0, d, 0,d.length);
return d;
}
return data;
} catch (Exception e) {
}
return null;
}
Date d’envoi de votre message : Aujourd’hui, à 19:43
I'm quite lost ^^'
//garbage "0" at end of Track-Info
// int garbage=0x1D-dskTrack.nbSectors;
// for (int j=0;j<garbage;j++) {
// for (int k=0;k<8;k++) {
// fos.write(0);
// }
// }
for (int j=0;j<0xE8-dskTrack.nbSectors*8;j++) {
fos.write(0);
}
DS80 is not accepted, it is shown as SS40, with a little cat.
Proposer d'ajouter le header lors de l'upload.
It's on AMSDOS-Head at a certain offset
Like done with a simple CPC cat.
Option to read all files .dsk with DskManager
Demandé par Cedric LeZone
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.