X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=inline;f=platform%2Fconfig.cpp;h=6caa569e58c0e5416296e2b80e6691a2b246a967;hb=9c81245cf6fd98e00266a5f9a5eb6d85a587a7ba;hp=08f53471cc739cbcda16956a5aa1e953ccefffce;hpb=69f45a759e3ba9719958c4ea6f30207ced0b013c;p=drnoksnes diff --git a/platform/config.cpp b/platform/config.cpp index 08f5347..6caa569 100644 --- a/platform/config.cpp +++ b/platform/config.cpp @@ -191,49 +191,30 @@ static void loadDefaults() romFile = 0; basePath = 0; - Config.quitting = false; - Config.saver = false; Config.enableAudio = true; - Config.fullscreen = false; - Config.scaler = 0; - Config.hacksFile = 0; - Config.player1Enabled = false; - Config.player2Enabled = false; - Config.touchscreenInput = false; - Config.touchscreenShow = false; - - Settings.JoystickEnabled = FALSE; + Settings.SoundPlaybackRate = 22050; Settings.Stereo = TRUE; Settings.SoundBufferSize = 512; // in samples Settings.CyclesPercentage = 100; - Settings.DisableSoundEcho = FALSE; - Settings.APUEnabled = FALSE; + Settings.APUEnabled = FALSE; // We'll enable it later Settings.H_Max = SNES_CYCLES_PER_SCANLINE; Settings.SkipFrames = AUTO_FRAMERATE; Settings.Shutdown = Settings.ShutdownMaster = TRUE; Settings.FrameTimePAL = 20; // in msecs Settings.FrameTimeNTSC = 16; Settings.FrameTime = Settings.FrameTimeNTSC; - Settings.DisableSampleCaching = FALSE; - Settings.DisableMasterVolume = FALSE; - Settings.Mouse = FALSE; - Settings.SuperScope = FALSE; - Settings.MultiPlayer5 = FALSE; Settings.ControllerOption = SNES_JOYPAD; - - Settings.ForceTransparency = FALSE; + + Settings.ForceTransparency = FALSE; // We'll enable those later Settings.Transparency = FALSE; Settings.SixteenBit = TRUE; - + Settings.SupportHiRes = FALSE; - Settings.NetPlay = FALSE; - Settings.ServerName [0] = 0; - Settings.AutoSaveDelay = 30; Settings.ApplyCheats = FALSE; Settings.TurboMode = FALSE; Settings.TurboSkipFrames = 15; - + Settings.ForcePAL = FALSE; Settings.ForceNTSC = FALSE; @@ -368,10 +349,10 @@ static void parseArgs(poptContext optCon) Settings.SoundBufferSize = atoi(poptGetOptArg(optCon)); break; case 16: - Config.touchscreenInput = true; + Config.touchscreenInput = 1; break; case 17: - Config.touchscreenInput = true; + Config.touchscreenInput = 1; Config.touchscreenShow = true; break; case 18: