Little change

svn-id: r19050
This commit is contained in:
Chris Apers 2005-10-12 20:46:05 +00:00
parent bfa7823a5e
commit 016620838a

View File

@ -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);
}