diff options
author | Chris Apers | 2004-12-20 17:38:31 +0000 |
---|---|---|
committer | Chris Apers | 2004-12-20 17:38:31 +0000 |
commit | 7a4f4889a907cdc3adba60b38e03a148c075e92f (patch) | |
tree | 4a8c4d3792162380791f96b8186f85c5a5485108 /backends/PalmOS/Src/init_arm.cpp | |
parent | 374c427c61b258cf85fbbc2ad76674c62ce2ce4e (diff) | |
download | scummvm-rg350-7a4f4889a907cdc3adba60b38e03a148c075e92f.tar.gz scummvm-rg350-7a4f4889a907cdc3adba60b38e03a148c075e92f.tar.bz2 scummvm-rg350-7a4f4889a907cdc3adba60b38e03a148c075e92f.zip |
- Better ARM support
svn-id: r16174
Diffstat (limited to 'backends/PalmOS/Src/init_arm.cpp')
-rw-r--r-- | backends/PalmOS/Src/init_arm.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/backends/PalmOS/Src/init_arm.cpp b/backends/PalmOS/Src/init_arm.cpp index 77aea25cee..1770a489da 100644 --- a/backends/PalmOS/Src/init_arm.cpp +++ b/backends/PalmOS/Src/init_arm.cpp @@ -5,17 +5,20 @@ static void PnoInit(DmResID resID,PNOInitType *pnoP) { // Load and allocate PNO MemHandle armH = DmGetResource('ARMC', resID); - MemPtr armP = MemHandleLock(armH); - PnoLoad(&pnoP->pnoDesc, armP); - MemPtrUnlock(armP); - DmReleaseResource(armH); - // Init PNO - PnoEntryHeader *header = (PnoEntryHeader *)ALIGN_4BYTE(pnoP->headerBuffer); - pnoP->alignedHeader = header; + 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; - header->r10Value = pnoP->pnoDesc.r10Value; - header->pnoMainAddress = pnoP->pnoDesc.pnoMainAddress; + header->r10Value = pnoP->pnoDesc.r10Value; + header->pnoMainAddress = pnoP->pnoDesc.pnoMainAddress; + } } void ARMInit() { |