mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
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:
parent
f10344e316
commit
884273fce1
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user