mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-22 08:34:35 +00:00
output applications in BasiliskII-compatible format
This commit is contained in:
parent
04d8465b3b
commit
85c8063cac
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ Universal Headers*
|
||||
*~
|
||||
.*.swp
|
||||
CMakeLists.txt.user
|
||||
.finf
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user