From 884273fce1794eca65b0f1e53f343c3bc36cde4f Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Tue, 12 Jan 2021 22:09:44 +0100 Subject: [PATCH] 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. --- libretro/MultiSegApp.c | 2 +- libretro/relocate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro/MultiSegApp.c b/libretro/MultiSegApp.c index 020efbfae1..01acdbf6d1 100644 --- a/libretro/MultiSegApp.c +++ b/libretro/MultiSegApp.c @@ -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); diff --git a/libretro/relocate.c b/libretro/relocate.c index 49cd9d5377..d38407aefe 100644 --- a/libretro/relocate.c +++ b/libretro/relocate.c @@ -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;