[Scummvm-cvs-logs] SF.net SVN: scummvm: [28793] scummvm/trunk/backends/platform/PalmOS/Src/ modules.cpp
chrilith at users.sourceforge.net
chrilith at users.sourceforge.net
Sat Sep 1 19:32:13 CEST 2007
Revision: 28793
http://scummvm.svn.sourceforge.net/scummvm/?rev=28793&view=rev
Author: chrilith
Date: 2007-09-01 10:32:13 -0700 (Sat, 01 Sep 2007)
Log Message:
-----------
Removed obsolete code
Modified Paths:
--------------
scummvm/trunk/backends/platform/PalmOS/Src/modules.cpp
Modified: scummvm/trunk/backends/platform/PalmOS/Src/modules.cpp
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/modules.cpp 2007-09-01 17:31:01 UTC (rev 28792)
+++ scummvm/trunk/backends/platform/PalmOS/Src/modules.cpp 2007-09-01 17:32:13 UTC (rev 28793)
@@ -4,7 +4,6 @@
#include "args.h"
#include "globals.h"
#include "modules.h"
-#include "extend.h"
#include "features.h"
#include "rumble.h"
@@ -21,8 +20,6 @@
GlobalsDataPtr gVars;
-#ifdef PALMOS_NATIVE
-
#include "endianutils.h"
#include <PNOLoader.h>
@@ -81,90 +78,6 @@
WinPalette(winPaletteSetToDefault, 0, 256, NULL);
}
-#else
-
-#include "stdafx.h"
-#include "base/main.h"
-#include "be_zodiac.h"
-#include "be_os5ex.h"
-
-static void palm_main(int argc, char **argvP) {
-#ifdef COMPILE_OS5
- if (gVars->advancedMode)
- g_system = new OSystem_PalmOS5Ex();
- else
- g_system = new OSystem_PalmOS5();
-#elif defined(COMPILE_ZODIAC)
- g_system = new OSystem_PalmZodiac();
-#else
- #error "No target defined."
-#endif
-
- assert(g_system);
-
- // Invoke the actual ScummVM main entry point:
- scummvm_main(argc, argvP);
-
- g_system->quit(); // TODO: Consider removing / replacing this!
-}
-
-void run(int argc, char *argv[]) {
-
- MathlibInit();
- gVars->HRrefNum = SonyHRInit(8);
- if (gVars->HRrefNum == sysInvalidRefNum)
- PalmHRInit(8);
- gVars->slkRefNum= SilkInit(&(gVars->slkVersion));
- gVars->screenPitch = StuffsGetPitch(gVars->screenFullWidth);
-
- // create file for printf, warnings, etc...
- StdioInit(gVars->VFS.volRefNum, "/PALM/Programs/ScummVM/scumm.log");
- if (gVars->indicator.showLED) StdioSetLedProc(DrawStatus);
- StdioSetCacheSize(gVars->VFS.cacheSize);
- gUnistdCWD = SCUMMVM_SAVEPATH;
-
- // init hardware
- if (HWR_INIT(INIT_GOLCD)) GoLCDInit(&gGoLcdH);
- if (HWR_INIT(INIT_PA1LIB)) Pa1libInit(gVars->palmVolume);
- if (HWR_INIT(INIT_VIBRATOR)) gVars->vibrator = RumbleInit();
- PalmInit(HWR_GET());
-
- if (!gVars->vibrator)
- HWR_RST(INIT_VIBRATOR);
-
- GlbOpen();
- // be sure to have a VG
- void *__ptr = StuffsForceVG();
-
- DO_EXIT( palm_main(argc, argv); )
-
- // be sure to release features memory
- FREE_FTR(ftrBufferOverlay)
- FREE_FTR(ftrBufferBackup)
- FREE_FTR(ftrBufferHotSwap)
-
- StuffsReleaseVG(__ptr);
- GlbClose();
-
- PalmRelease(HWR_GET());
- if (HWR_INIT(INIT_VIBRATOR)) RumbleRelease();
- if (HWR_INIT(INIT_PA1LIB)) Pa1libRelease();
- if (HWR_INIT(INIT_GOLCD)) GoLCDRelease(gGoLcdH);
-
- // close log file
- StdioRelease();
-
- PalmHRRelease();
- SonyHRRelease(gVars->HRrefNum);
- SilkRelease(gVars->slkRefNum);
- MathlibRelease();
-
- MemPtrFree(gVars);
- WinPalette(winPaletteSetToDefault, 0, 256, NULL);
-// ArgsFree(argvP); // called in main(...)
-}
-#endif
-
static UInt32 ModulesPalmMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
{
UInt32 result = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list