diff options
author | Chris Apers | 2007-05-01 09:39:46 +0000 |
---|---|---|
committer | Chris Apers | 2007-05-01 09:39:46 +0000 |
commit | b78bf3a8b37155d649cd5afc99e73d6f3ddc7e3f (patch) | |
tree | 1de0818ca8897c23ae1664f63084fc8df83ffe6e /backends/platform/PalmOS/Src | |
parent | e0a77867ccba4b426fb885fd006c17a241a6f980 (diff) | |
download | scummvm-rg350-b78bf3a8b37155d649cd5afc99e73d6f3ddc7e3f.tar.gz scummvm-rg350-b78bf3a8b37155d649cd5afc99e73d6f3ddc7e3f.tar.bz2 scummvm-rg350-b78bf3a8b37155d649cd5afc99e73d6f3ddc7e3f.zip |
Cleanup, use my new PalmOS Porting SDK
svn-id: r26691
Diffstat (limited to 'backends/platform/PalmOS/Src')
-rw-r--r-- | backends/platform/PalmOS/Src/native/zodiacARM.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/backends/platform/PalmOS/Src/native/zodiacARM.cpp b/backends/platform/PalmOS/Src/native/zodiacARM.cpp index 6bea511258..d98ed9bed9 100644 --- a/backends/platform/PalmOS/Src/native/zodiacARM.cpp +++ b/backends/platform/PalmOS/Src/native/zodiacARM.cpp @@ -22,12 +22,10 @@ * */ -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> +#include "PalmVersion.h" +#include <MSL_PalmOS.h> #include "globals.h" -#include "extend.h" #include "args.h" #include "palmdefs.h" @@ -49,6 +47,7 @@ GlobalsDataPtr gVars = &g_vars; UInt32 g_stackSize; extern "C" void __destroy_global_chain(void); +extern void DrawStatus(Boolean show); static void palm_main(int argc, char **argvP) { #ifdef COMPILE_OS5 @@ -88,12 +87,11 @@ static void Go() { MemMove(gVars, tmp, sizeof(GlobalsDataType)); // init STDIO - StdioSetCacheSize(0); - StdioInit(gVars->VFS.volRefNum, "/PALM/Programs/ScummVM/scumm.log"); + stdio_set_cache(0); + stdio_init(gVars->VFS.volRefNum, "/PALM/Programs/ScummVM/scumm.log"); if (gVars->indicator.showLED) - StdioSetLedProc(DrawStatus); - StdioSetCacheSize(gVars->VFS.cacheSize); - gUnistdCWD = SCUMMVM_SAVEPATH; + stdio_set_led(DrawStatus); + stdio_set_cache(gVars->VFS.cacheSize); // get args FtrGet(appFileCreator, ftrArgsData, (UInt32 *)&argvP); @@ -108,7 +106,7 @@ static void Go() { // release if (HWR_INIT(INIT_VIBRATOR)) RumbleRelease(); - StdioRelease(); + stdio_release(); #ifdef DEBUG_ARM AdnDebugNativeUnregister(); |