use plain GetResource instead of Get1Resource during initialization (#118)

Get1Resource is not in Inside Mac 1-3 and doesn't work with the original system software. And at this point, we know that our own resource file is current.
This commit is contained in:
Wolfgang Thaller 2021-01-12 22:09:44 +01:00
parent f10344e316
commit 884273fce1
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ void Retro68InitMultisegApp()
InstallPatches();
// Load and relocate statically initialized DATA
Handle DATA = Get1Resource('DATA', 0);
Handle DATA = GetResource('DATA', 0);
BlockMoveData(*DATA, &_sdata, &_edata - &_sdata);
ReleaseResource(DATA);

View File

@ -294,7 +294,7 @@ void Retro68Relocate()
uint32_t relocatableSize;
if(&_MULTISEG_APP == (uint8_t*)1)
{
RELA = Get1Resource('RELA', 1);
RELA = GetResource('RELA', 1);
assert(RELA);
reloc = *RELA;
uint32_t text_size = orig_etext - orig_stext;