mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-28 14:31:50 +00:00
LaunchAPPLServer: fix problem with empty forks
This commit is contained in:
parent
3bb5ce4e74
commit
71660defd6
@ -331,8 +331,21 @@ public:
|
||||
FSDelete("\pout", 0);
|
||||
Create("\pout", 0, 'ttxt', 'TEXT');
|
||||
|
||||
if(dataSize)
|
||||
{
|
||||
state = State::data;
|
||||
remainingSize = dataSize;
|
||||
}
|
||||
else if(rsrcSize)
|
||||
{
|
||||
FSClose(refNum);
|
||||
OpenRF("\pRetro68App", 0, &refNum);
|
||||
state = State::rsrc;
|
||||
remainingSize = rsrcSize;
|
||||
}
|
||||
else
|
||||
state = State::launch;
|
||||
|
||||
return 16;
|
||||
}
|
||||
|
||||
@ -350,9 +363,13 @@ public:
|
||||
|
||||
FSClose(refNum);
|
||||
OpenRF("\pRetro68App", 0, &refNum);
|
||||
if(rsrcSize)
|
||||
{
|
||||
state = State::rsrc;
|
||||
remainingSize = rsrcSize;
|
||||
|
||||
}
|
||||
else
|
||||
state = State::launch;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user