Re-fixed bios skip hack, and fixed stack overflow when using CDVD plugins.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1802 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-09-09 17:15:54 +00:00
parent 7f0039d646
commit 87d038949e
3 changed files with 8 additions and 12 deletions

View File

@ -78,7 +78,7 @@ FILE *_cdvdOpenMechaVer()
wxFileName mecfile(EmuConfig.BiosFilename);
mecfile.SetExt( L"mec" );
wxCharBuffer file( mecfile.GetFullPath().ToUTF8() );
const wxCharBuffer file( mecfile.GetFullPath().ToUTF8() );
// if file doesnt exist, create empty one
fd = fopen(file.data(), "r+b");
@ -118,7 +118,7 @@ FILE *_cdvdOpenNVM()
wxFileName nvmfile(EmuConfig.BiosFilename);
nvmfile.SetExt( L"nvm" );
wxCharBuffer file( nvmfile.GetFullPath().ToUTF8() );
const wxCharBuffer file( nvmfile.GetFullPath().ToUTF8() );
// if file doesnt exist, create empty one
fd = fopen(file.data(), "r+b");

View File

@ -365,16 +365,9 @@ static s32 CALLBACK CDVD_getDualInfo(s32* dualType, u32* layer1Start)
return 1;
}
static void CALLBACK CDVDplugin_Close()
{
g_plugins->Close( PluginId_CDVD );
}
CDVD_API CDVDapi_Plugin =
{
CDVDplugin_Close,
// The rest are filled in by the plugin manager
// All of these are filled by the plugin manager
NULL
};
@ -383,6 +376,7 @@ CDVD_API* CDVD = NULL;
static const LegacyApi_ReqMethod s_MethMessReq_CDVD[] =
{
{ "CDVDopen", (vMeth**)&CDVDapi_Plugin.open, NULL },
{ "CDVDclose", (vMeth**)&CDVDapi_Plugin.close, NULL },
{ "CDVDreadTrack", (vMeth**)&CDVDapi_Plugin.readTrack, NULL },
{ "CDVDgetBuffer", (vMeth**)&CDVDapi_Plugin.getBuffer, NULL },
{ "CDVDreadSubQ", (vMeth**)&CDVDapi_Plugin.readSubQ, NULL },

View File

@ -106,9 +106,11 @@ void MainEmuFrame::Menu_BootCdvd_Click( wxCommandEvent &event )
}
SysEndExecution();
InitPlugins();
EmuConfig.SkipBiosSplash = GetMenuBar()->IsChecked( MenuId_SkipBiosToggle );
g_Conf->EmuOptions.SkipBiosSplash = GetMenuBar()->IsChecked( MenuId_SkipBiosToggle );
wxGetApp().SaveSettings();
InitPlugins();
CDVDsys_SetFile( CDVDsrc_Iso, g_Conf->CurrentIso );
SysExecute( new AppEmuThread(), g_Conf->CdvdSource );