mirror of https://github.com/PCSX2/pcsx2.git
Made USBsetRAM work again. Required for the following commit.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4897 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
a9d59b1b66
commit
266f6fcd5d
|
@ -0,0 +1 @@
|
|||
RunWizard=0
|
|
@ -646,6 +646,7 @@ static const LegacyApi_ReqMethod s_MethMessReq_USB[] =
|
|||
static const LegacyApi_OptMethod s_MethMessOpt_USB[] =
|
||||
{
|
||||
{ "USBasync", (vMeth**)&USBasync },
|
||||
{ "USBsetRAM", (vMeth**)&USBsetRAM },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
@ -1108,8 +1109,9 @@ bool SysCorePlugins::OpenPlugin_USB()
|
|||
if( USBopen((void*)pDsp) ) return false;
|
||||
USBirqCallback( usbIrq );
|
||||
usbHandler = USBirqHandler();
|
||||
if( USBsetRAM != NULL )
|
||||
USBsetRAM(iopMem->Main);
|
||||
// iopMem is not initialized yet. Moved elsewhere
|
||||
//if( USBsetRAM != NULL )
|
||||
// USBsetRAM(iopMem->Main);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,10 @@ void cpuReset()
|
|||
DiscSerial = L"";
|
||||
ElfEntry = -1;
|
||||
|
||||
// Probably not the right place, but it has to be done when the ram is actually initialized
|
||||
if(USBsetRAM != 0)
|
||||
USBsetRAM(iopMem->Main);
|
||||
|
||||
// FIXME: LastELF should be reset on media changes as well as on CPU resets, in
|
||||
// the very unlikely case that a user swaps to another media source that "looks"
|
||||
// the same (identical ELF names) but is actually different (devs actually could
|
||||
|
|
Loading…
Reference in New Issue