Skip to content

Commit

Permalink
working on repo
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Feb 11, 2024
1 parent eb69905 commit c511ee3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/adf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void Adf::create_for_exefile(const char* name) {
exit(1);
}

if (adfCreateFlop(device, "empty", FSMASK_INTL | FSMASK_DIRCACHE) != RC_OK) {
if (adfCreateFlop(device, "empty", FSMASK_INTL) != RC_OK) {
printf("Error creating ADF floppy\n");
exit(1);
}
Expand All @@ -98,6 +98,7 @@ void Adf::create_for_exefile(const char* name) {
exit(1);
}

/*
printf("Creating file: %s %d\n", name, (int)size);
struct AdfFile* file = adfFileOpen(volume, name, ADF_FILE_MODE_WRITE);
Expand All @@ -108,6 +109,9 @@ void Adf::create_for_exefile(const char* name) {
adfFileWrite(file, size, buffer);
adfFileClose(file);
*/

/*
// Create the S directory
if (adfCreateDir(volume, volume->curDirPtr, "T") != RC_OK) {
Expand All @@ -122,7 +126,9 @@ void Adf::create_for_exefile(const char* name) {
}
adfChangeDir(volume, "S");
*/

/*
// Create the Startup-Sequence file and write commands to it
file = adfFileOpen(volume, "Startup-Sequence", ADF_FILE_MODE_WRITE);
if (file) {
Expand All @@ -132,8 +138,9 @@ void Adf::create_for_exefile(const char* name) {
printf("Error creating Startup-Sequence file\n");
exit(1);
}
*/

adfParentDir(volume);
//adfParentDir(volume);
adfUnMount(volume);
adfUnMountDev(device);

Expand Down

0 comments on commit c511ee3

Please sign in to comment.