2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Snes9x 1.50
|
|
|
|
*
|
|
|
|
* Nintendo Gamecube Port
|
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 May 2007
|
|
|
|
*
|
|
|
|
* s9xconfig.cpp
|
|
|
|
*
|
|
|
|
* Configuration parameters have been moved here for easier maintenance.
|
|
|
|
* Refer to Snes9x.h for all combinations.
|
|
|
|
* The defaults used here are taken directly from porting.html
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <gccore.h>
|
|
|
|
#include "snes9x.h"
|
|
|
|
#include "snes9xGX.h"
|
2008-08-10 05:14:39 +02:00
|
|
|
#include "smbop.h"
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2008-08-12 05:25:16 +02:00
|
|
|
START_EXTERN_C
|
|
|
|
struct SGCSettings GCSettings;
|
|
|
|
bool8 isWii;
|
|
|
|
END_EXTERN_C
|
|
|
|
|
2008-08-06 03:09:59 +02:00
|
|
|
void
|
|
|
|
DefaultSettings ()
|
|
|
|
{
|
2008-08-07 05:25:02 +02:00
|
|
|
/************** GameCube/Wii Settings *********************/
|
|
|
|
GCSettings.LoadMethod = METHOD_AUTO; // Auto, SD, DVD, USB, Network (SMB)
|
|
|
|
GCSettings.SaveMethod = METHOD_AUTO; // Auto, SD, Memory Card Slot A, Memory Card Slot B, USB, Network (SMB)
|
2008-08-12 05:25:16 +02:00
|
|
|
sprintf (GCSettings.LoadFolder,"snes9x/roms"); // Path to game files
|
2008-08-07 05:25:02 +02:00
|
|
|
sprintf (GCSettings.SaveFolder,"snes9x/saves"); // Path to save files
|
2008-08-12 05:25:16 +02:00
|
|
|
sprintf (GCSettings.CheatFolder,"snes9x/cheats"); // Path to cheat files
|
2008-08-07 05:25:02 +02:00
|
|
|
GCSettings.AutoLoad = 1;
|
|
|
|
GCSettings.AutoSave = 1;
|
|
|
|
|
2008-08-10 05:14:39 +02:00
|
|
|
// default SMB settings
|
2008-08-20 09:58:55 +02:00
|
|
|
strncpy (GCSettings.smbip, "192.168.0.1", 15); // IP Address of share server
|
|
|
|
strncpy (GCSettings.smbuser, "Wiiuser", 19); // Your share user
|
|
|
|
strncpy (GCSettings.smbpwd, "password", 19); // Your share user password
|
|
|
|
strncpy (GCSettings.smbshare, "SNES", 19); // Share name on server
|
|
|
|
|
|
|
|
GCSettings.gcip[0] = 0;
|
|
|
|
GCSettings.gwip[0] = 0;
|
|
|
|
GCSettings.mask[0] = 0;
|
|
|
|
GCSettings.smbsvid[0] = 0;
|
|
|
|
GCSettings.smbgcid[0] = 0;
|
2008-08-07 05:25:02 +02:00
|
|
|
|
|
|
|
GCSettings.NGCZoom = 0;
|
|
|
|
GCSettings.VerifySaves = 0;
|
2008-08-25 07:57:43 +02:00
|
|
|
|
2008-08-07 05:25:02 +02:00
|
|
|
GCSettings.render = 0;
|
2008-08-25 07:57:43 +02:00
|
|
|
GCSettings.widescreen = 0;
|
|
|
|
|
2008-08-07 05:25:02 +02:00
|
|
|
GCSettings.Superscope = 0;
|
|
|
|
GCSettings.Mouse = 0;
|
2008-08-08 04:09:02 +02:00
|
|
|
GCSettings.Justifier = 0;
|
2008-08-07 05:25:02 +02:00
|
|
|
|
|
|
|
/****************** SNES9x Settings ***********************/
|
|
|
|
|
|
|
|
/*** Default ALL to false ***/
|
|
|
|
memset (&Settings, 0, sizeof (Settings));
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
/*** General ***/
|
2008-08-10 05:14:39 +02:00
|
|
|
|
|
|
|
|
2008-08-07 05:25:02 +02:00
|
|
|
Settings.MouseMaster = false;
|
|
|
|
Settings.SuperScopeMaster = false;
|
|
|
|
Settings.MultiPlayer5Master = false;
|
2008-08-08 04:09:02 +02:00
|
|
|
Settings.JustifierMaster = false;
|
2008-08-07 05:25:02 +02:00
|
|
|
Settings.ShutdownMaster = false;
|
|
|
|
Settings.CyclesPercentage = 100; // snes9x 1.50 and earlier
|
|
|
|
Settings.ApplyCheats = true;
|
|
|
|
|
|
|
|
/* Eke-Eke: specific to snes9x 1.51 */
|
|
|
|
// Settings.BlockInvalidVRAMAccess = true;
|
|
|
|
// Settings.HDMATimingHack = 100;
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
/*** Sound defaults. On GC this is 32Khz/16bit/Stereo/InterpolatedSound ***/
|
2008-08-07 05:25:02 +02:00
|
|
|
Settings.APUEnabled = true;
|
|
|
|
Settings.NextAPUEnabled = true;
|
|
|
|
Settings.SoundPlaybackRate = 32000;
|
|
|
|
Settings.Stereo = true;
|
|
|
|
Settings.SixteenBitSound = true;
|
|
|
|
Settings.SoundEnvelopeHeightReading = true;
|
|
|
|
Settings.DisableSampleCaching = true;
|
|
|
|
Settings.InterpolatedSound = true;
|
|
|
|
Settings.ReverseStereo = false;
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
/*** Graphics ***/
|
2008-08-07 05:25:02 +02:00
|
|
|
Settings.Transparency = true;
|
|
|
|
Settings.SupportHiRes = true;
|
|
|
|
Settings.SkipFrames = 10;
|
|
|
|
Settings.TurboSkipFrames = 19;
|
|
|
|
Settings.DisplayFrameRate = false;
|
|
|
|
// Settings.AutoDisplayMessages = 1; /*** eke-eke snes9x 1.51 ***/
|
|
|
|
|
|
|
|
/* Eke-Eke: frame timings in 50hz and 60hz cpu mode */
|
|
|
|
Settings.FrameTimePAL = 20000;
|
|
|
|
Settings.FrameTimeNTSC = 16667;
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
/*** SDD1 - Star Ocean Returns -;) ***/
|
2008-08-07 05:25:02 +02:00
|
|
|
Settings.SDD1Pack = true;
|
|
|
|
|
|
|
|
Settings.ForceNTSC = 0;
|
|
|
|
Settings.ForcePAL = 0;
|
|
|
|
Settings.ForceHiROM = 0;
|
|
|
|
Settings.ForceLoROM = 0;
|
|
|
|
Settings.ForceHeader = 0;
|
|
|
|
Settings.ForceNoHeader = 0;
|
|
|
|
Settings.ForceTransparency = 0;
|
|
|
|
Settings.ForceInterleaved = 0;
|
|
|
|
Settings.ForceInterleaved2 = 0;
|
|
|
|
Settings.ForceInterleaveGD24 = 0;
|
|
|
|
Settings.ForceNotInterleaved = 0;
|
|
|
|
Settings.ForceNoSuperFX = 0;
|
|
|
|
Settings.ForceSuperFX = 0;
|
|
|
|
Settings.ForceDSP1 = 0;
|
|
|
|
Settings.ForceNoDSP1 = 0;
|
2008-08-06 03:09:59 +02:00
|
|
|
}
|
|
|
|
|