fix size of generated disk images (#109)

This commit is contained in:
Wolfgang Thaller 2020-06-19 23:15:32 +02:00
parent 3992bf904a
commit 292e78bbab

View File

@ -521,7 +521,7 @@ bool ResourceFile::write()
std::ostringstream rsrcOut;
resources.writeFork(rsrcOut);
std::string rsrc = rsrcOut.str();
int size = rsrc.size();
int size = rsrc.size() + data.size();
size += 20 * 1024;
size += 800*1024 - size % (800*1024);