output applications in BasiliskII-compatible format

This commit is contained in:
Wolfgang Thaller 2014-09-30 19:21:41 +02:00
parent 04d8465b3b
commit 85c8063cac
2 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ Universal Headers*
*~
.*.swp
CMakeLists.txt.user
.finf

View File

@ -433,5 +433,19 @@ int main(int argc, char *argv[])
rsrc, Fork());
}
wrapMacBinary(binFileName, dskFileName);
{
std::ofstream dataOut((outFileName + ".APPL").c_str());
system("mkdir -p .rsrc");
std::ofstream rsrcOut((".rsrc/" + outFileName + ".APPL").c_str());
rsrc.writeFork(rsrcOut);
system("mkdir -p .finf");
std::ofstream finfOut((".finf/" + outFileName + ".APPL").c_str());
ostype(finfOut, "APPL");
ostype(finfOut, "????");
for(int i = 8; i < 32; i++)
byte(finfOut, 0);
}
return 0;
}