mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
Little change
svn-id: r19050
This commit is contained in:
parent
bfa7823a5e
commit
016620838a
@ -2,16 +2,16 @@
|
||||
#include "globals.h"
|
||||
#include "init_arm.h"
|
||||
|
||||
static void PnoInit(DmResID resID,PNOInitType *pnoP) {
|
||||
static void PnoInit(DmResID resID, PNOInitType *pnoP) {
|
||||
// Load and allocate PNO
|
||||
MemHandle armH = DmGetResource('ARMC', resID);
|
||||
|
||||
|
||||
if (armH) {
|
||||
MemPtr armP = MemHandleLock(armH);
|
||||
PnoLoad(&pnoP->pnoDesc, armP);
|
||||
MemPtrUnlock(armP);
|
||||
DmReleaseResource(armH);
|
||||
|
||||
|
||||
// Init PNO
|
||||
PnoEntryHeader *header = (PnoEntryHeader *)ALIGN_4BYTE(pnoP->headerBuffer);
|
||||
pnoP->alignedHeader = header;
|
||||
@ -31,5 +31,5 @@ void ARMInit() {
|
||||
void ARMRelease() {
|
||||
PnoUnload(&ARM(ARM_ENGINE).pnoDesc);
|
||||
PnoUnload(&ARM(ARM_COMMON).pnoDesc);
|
||||
MemSet(gVars->arm, sizeof(gVars->arm), 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user