X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=platform%2Fplatform.h;h=b0d2803a2b99170b945668ea8506e4e680324a7a;hb=f158d0d5027a9678ab9739503a2e29cf3ed6de16;hp=1837dd6691d66759ecda1ca23c048a505336af95;hpb=33f9c560320b1f8bd5f1ce89afc0879027d7f9bd;p=drnoksnes diff --git a/platform/platform.h b/platform/platform.h index 1837dd6..b0d2803 100644 --- a/platform/platform.h +++ b/platform/platform.h @@ -1,14 +1,13 @@ -#ifndef _PLATFORM_SDL_H_ -#define _PLATFORM_SDL_H_ +#ifndef _PLATFORM_H_ +#define _PLATFORM_H_ #include "port.h" // Configuration and command line parsing void S9xLoadConfig(int argc, const char ** argv); +void S9xUnloadConfig(); void S9xSetRomFile(const char * file); extern struct config { - char romFile[PATH_MAX + 1]; - char hacksFile[PATH_MAX + 1]; /** Unfreeze from .frz.gz snapshot on start */ bool snapshotLoad; /** Freeze to .frz.gz on exit */ @@ -19,8 +18,12 @@ extern struct config { bool xsp; /** Audio output enabled */ bool enableAudio; + /** Speedhacks file to use */ + char * hacksFile; + /** Current scancode->joypad mapping */ unsigned short joypad1Mapping[256]; unsigned char action[256]; + /** If true, next time the main loop is entered application will close */ bool quitting; } Config; @@ -40,7 +43,4 @@ void S9xAudioOutputEnable(bool enable); void S9xDoAction(unsigned char action); -// Path things -const char * S9xFiletitle (const char * f); - #endif