From 85c8063cacd420f1dc806aeca7c4da6b32118127 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Tue, 30 Sep 2014 19:21:41 +0200 Subject: [PATCH] output applications in BasiliskII-compatible format --- .gitignore | 1 + MakeAPPL/main.cc | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index e61fd2fca0..a9b11104ca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Universal Headers* *~ .*.swp CMakeLists.txt.user +.finf diff --git a/MakeAPPL/main.cc b/MakeAPPL/main.cc index 69ff80e62e..06232f0679 100644 --- a/MakeAPPL/main.cc +++ b/MakeAPPL/main.cc @@ -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; }