--newppu option added to sdl

This commit is contained in:
punkrockguy318 2008-09-24 06:27:28 +00:00
parent 407f0f8663
commit a26194a089
4 changed files with 19 additions and 1 deletions

View File

@ -6,7 +6,8 @@ opts.AddOptions(
BoolOption('FRAMESKIP', 'Enable frameskipping', 1),
BoolOption('OPENGL', 'Enable OpenGL support', 1),
BoolOption('DEBUG', 'Build with debugging symbols', 0),
BoolOption('LUA', 'Enable Lua support', 1)
BoolOption('LUA', 'Enable Lua support', 1),
BoolOption('NEWPPU', 'Enable new PPU core', 0)
)
env = Environment(options = opts)

View File

@ -1,4 +1,6 @@
---version 2.0.3 yet to be released---
24-sep-2008 - punkrockguy318 - [ 2057006 ] --newppu option added to sdl,
disabled by default
24-sep-2008 - punkrockguy318 - [ 2057008 ] lua is now optional, thanks
shinydoofy for a patch. also fixed some build issues.
22-sep-2008 - punkrockguy318 - [ 2008437 ] fixed an issue where flawed movie

View File

@ -186,6 +186,9 @@ InitConfig()
config->addOption("loadlua", "SDL.LuaScript", "");
#endif
// enable new PPU core
config->addOption("newppu", "SDL.NewPPU", "0");
// GamePad 0 - 3
for(unsigned int i = 0; i < GAMEPAD_NUM_DEVICES; i++) {
char buf[64];

View File

@ -54,6 +54,7 @@ char *DriverUsage="\
--pal {0|1} Uses PAL timing.\n\
--gamegenie {0|1} Enables emulated Game Genie.\n\
--nospritelim {0|1} Disables the 8 sprites per scanline limitation.\n\
--newppu {0|1} Enables the new PPU core.\n\
--frameskip x Sets # of frames to skip per emulated frame.\n\
--xres x Sets horizontal resolution to x for full screen mode.\n\
--yres x Sets vertical resolution to x for full screen mode.\n\
@ -496,6 +497,17 @@ SDL_GL_LoadLibrary(0);
}
#endif
g_config->getOption("SDL.NewPPU", &fname);
if (fname == "1")
newppu = 1;
/*g_config->setOption("SDL.LuaScript", "");
if (fname != "")
{
FCEU_LoadLuaCode(fname.c_str());
}*/
// loop playing the game
while(GameInfo) {
DoFun(frameskip);