QUOTE(Likklebaer @ Jul 31 2009, 05:32 AM)
Any chance you'd be willing to share your modified XBE's? It'd be great not to see that config screen every time I launch a game.
PM
QUOTE(madmab @ Jul 31 2009, 10:45 AM)
ConfigEmuSpecificOptions() is the function that does this. I would suggest, though, you only have it skip these if the user presses "A", but if they press "X" let it display. But that is up to you.
As far as those defines. It is more than just a case of "changing a line" those defines are there to remind the person compiling that they need to change several parts of the code. The comments make more sense the more familar you are with how the x-port emu's work.
Hmm, maybe you can show me some code that will help explain how to do it with "ConfigEmuSpecificOptions". I'm just now getting down and dirty with the xport source. The way I did it was:
In main emu cpp file in function "int CXBoxSample::loadSettings( char *filename )"
I changed this:
CODE
if ( !setfile )
{
saveSettings( filename );
return 1;
}
To this:
CODE
if ( !setfile )
{
saveSettings( filename );
//return 1;
return 0;
}
If the X button is pressed to config a game, the config screen shows up like normal. But if a rom is launched without a config file, it just skips it and sets the defaults.
The above code affects this in "void CXBoxSample::initConsole( UINT32 idx, int isFavorite, int forceConfig )":
CODE
if ( forceConfig || loadSettings( g_settingsfile ) )
{
changeMenu( &m_skin.gameSelectMenu, &m_skin.otherMenu );
doConfigureGame( g_settingsfile, g_keysfile );
isOther = 1;
}
If you hit X, it makes "forceConfig" true, otherwise false.
If a rom doesn't have a cfg, it makes "loadSettings( g_settingsfile )" true (by returning 1), otherwise false.
So what I did is have "loadSettings( g_settingsfile )" always be false (by returning 0), but "forceConfig" still depends on if the user hits X.
I tried to cheat by copying the settings from one game to the rest so that every game has a config file with defaults. This worked well until I had to change the screen size, then I would have to do it for every single rom cfg
. Now I can just wipe the setting files and change the screen size and it will work for all
.