Cleanup and documentation.
svn-id: r50610
This commit is contained in:
parent
fda9416cc8
commit
4e50b23005
6 changed files with 31 additions and 33 deletions
|
@ -34,9 +34,6 @@
|
||||||
|
|
||||||
class OSystem_GP2X : public OSystem_POSIX {
|
class OSystem_GP2X : public OSystem_POSIX {
|
||||||
public:
|
public:
|
||||||
OSystem_GP2X() {}
|
|
||||||
virtual ~OSystem_GP2X() {}
|
|
||||||
|
|
||||||
virtual void initBackend();
|
virtual void initBackend();
|
||||||
virtual void quit();
|
virtual void quit();
|
||||||
virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
|
virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "common/scummsys.h"
|
|
||||||
#include "common/system.h"
|
|
||||||
|
|
||||||
#include "backends/platform/linuxmoto/linuxmoto-sdl.h"
|
#include "backends/platform/linuxmoto/linuxmoto-sdl.h"
|
||||||
#include "base/main.h"
|
#include "base/main.h"
|
||||||
|
|
||||||
|
@ -35,6 +32,9 @@ int main(int argc, char *argv[]) {
|
||||||
g_system = new OSystem_LINUXMOTO();
|
g_system = new OSystem_LINUXMOTO();
|
||||||
assert(g_system);
|
assert(g_system);
|
||||||
|
|
||||||
|
// Pre initialize the backend
|
||||||
|
((OSystem_POSIX *)g_system)->init();
|
||||||
|
|
||||||
// Invoke the actual ScummVM main entry point:
|
// Invoke the actual ScummVM main entry point:
|
||||||
int res = scummvm_main(argc, argv);
|
int res = scummvm_main(argc, argv);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ bool OSystem_SDL_SamsungTV::hasFeature(Feature f) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void OSystem_SDL_SamsungTV::initBackend() {
|
void OSystem_SDL_SamsungTV::initBackend() {
|
||||||
|
// Create the events manager
|
||||||
if (_eventManager == 0)
|
if (_eventManager == 0)
|
||||||
_eventManager = new SamsungTVSdlEventManager(this);
|
_eventManager = new SamsungTVSdlEventManager(this);
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ public:
|
||||||
*/
|
*/
|
||||||
virtual SdlMixerManager *getMixerManager();
|
virtual SdlMixerManager *getMixerManager();
|
||||||
|
|
||||||
// Override functions from ModularBackend
|
// Override functions from ModularBackend and OSystem
|
||||||
virtual void initBackend();
|
virtual void initBackend();
|
||||||
virtual Common::HardwareKeySet *getHardwareKeySet();
|
virtual Common::HardwareKeySet *getHardwareKeySet();
|
||||||
virtual void quit();
|
virtual void quit();
|
||||||
|
|
|
@ -71,9 +71,6 @@ OSystem_SDL_Symbian::OSystem_SDL_Symbian()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OSystem_SDL_Symbian::~OSystem_SDL_Symbian() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void OSystem_SDL_Symbian::init() {
|
void OSystem_SDL_Symbian::init() {
|
||||||
_RFs = &CEikonEnv::Static()->FsSession();
|
_RFs = &CEikonEnv::Static()->FsSession();
|
||||||
_fsFactory = new SymbianFilesystemFactory();
|
_fsFactory = new SymbianFilesystemFactory();
|
||||||
|
|
|
@ -32,39 +32,40 @@ class RFs;
|
||||||
class OSystem_SDL_Symbian : public OSystem_SDL {
|
class OSystem_SDL_Symbian : public OSystem_SDL {
|
||||||
public:
|
public:
|
||||||
OSystem_SDL_Symbian();
|
OSystem_SDL_Symbian();
|
||||||
~OSystem_SDL_Symbian();
|
|
||||||
|
|
||||||
// Overloaded from OSystem_SDL
|
// Override from OSystem_SDL
|
||||||
void init();
|
virtual void init();
|
||||||
void initBackend();
|
virtual void initBackend();
|
||||||
void quit();
|
virtual void quit();
|
||||||
void engineInit();
|
virtual void engineInit();
|
||||||
void engineDone();
|
virtual void engineDone();
|
||||||
bool setGraphicsMode(const char *name);
|
virtual bool setGraphicsMode(const char *name);
|
||||||
Common::String getDefaultConfigFileName();
|
virtual Common::String getDefaultConfigFileName();
|
||||||
void setupIcon();
|
virtual void setupIcon();
|
||||||
|
|
||||||
// Returns reference to File session
|
/**
|
||||||
|
* Returns reference to File session
|
||||||
|
*/
|
||||||
RFs& FsSession();
|
RFs& FsSession();
|
||||||
|
|
||||||
void quitWithErrorMsg(const char *msg);
|
void quitWithErrorMsg(const char *msg);
|
||||||
|
|
||||||
// vibration support
|
// Vibration support
|
||||||
#ifdef USE_VIBRA_SE_PXXX
|
#ifdef USE_VIBRA_SE_PXXX
|
||||||
//
|
/**
|
||||||
// Intialize the vibration api used if present and supported
|
* Intialize the vibration api used if present and supported
|
||||||
//
|
*/
|
||||||
void initializeVibration();
|
void initializeVibration();
|
||||||
|
|
||||||
//
|
/**
|
||||||
// Turn vibration on, repeat no time
|
* Turn vibration on, repeat no time
|
||||||
// @param vibraLength number of repetitions
|
* @param vibraLength number of repetitions
|
||||||
//
|
*/
|
||||||
void vibrationOn(int vibraLength);
|
void vibrationOn(int vibraLength);
|
||||||
|
|
||||||
//
|
/**
|
||||||
// Turns the vibration off
|
* Turns the vibration off
|
||||||
//
|
*/
|
||||||
void vibrationOff();
|
void vibrationOff();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -72,7 +73,9 @@ protected:
|
||||||
#endif // USE_VIBRA_SE_PXXX
|
#endif // USE_VIBRA_SE_PXXX
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Used to intialized special game mappings
|
/**
|
||||||
|
* Used to intialized special game mappings
|
||||||
|
*/
|
||||||
void checkMappings();
|
void checkMappings();
|
||||||
|
|
||||||
RFs* _RFs;
|
RFs* _RFs;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue