mirror of https://github.com/PCSX2/pcsx2.git
Add the changes from r1593 to Linux.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1594 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
4bb4bebd46
commit
3d87e4845a
|
@ -17,7 +17,6 @@
|
|||
*/
|
||||
|
||||
#include "LnxMain.h"
|
||||
#include "CDVD/CDVDisoReader.h"
|
||||
|
||||
using namespace R5900;
|
||||
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
#include "LnxMain.h"
|
||||
#include "HostGui.h"
|
||||
|
||||
// For Linux ISO loading
|
||||
#include "CDVD/CDVDisoReader.h"
|
||||
|
||||
extern bool applychanges;
|
||||
extern bool Slots[5];
|
||||
|
||||
|
|
|
@ -183,16 +183,26 @@ void RunGui()
|
|||
{
|
||||
// Initially bypass GUI and start PCSX2 directly.
|
||||
// Manually load plugins using the user's configured image (if non-elf).
|
||||
|
||||
int mode = g_Startup.BootMode & BootMode_ModeMask;
|
||||
|
||||
if( g_Startup.Enabled && (g_Startup.BootMode != BootMode_Elf) )
|
||||
if( g_Startup.Enabled && (mode != BootMode_Elf) )
|
||||
{
|
||||
|
||||
if(mode == BootMode_Iso)
|
||||
CDVD = ISO;
|
||||
else if(mode == BootMode_NoDisc)
|
||||
CDVD = NODISC;
|
||||
else
|
||||
CDVD = CDVD_plugin;
|
||||
|
||||
if (OpenPlugins(g_Startup.ImageName) == -1)
|
||||
return;
|
||||
}
|
||||
|
||||
SysPrepareExecution(
|
||||
(g_Startup.BootMode == BootMode_Elf) ? g_Startup.ImageName : NULL,
|
||||
(g_Startup.BootMode == BootMode_Bios)
|
||||
((g_Startup.BootMode & BootMode_Bios) != 0)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include "x86/iR5900.h"
|
||||
|
||||
// For Linux ISO loading
|
||||
#include "CDVD/CDVDisoReader.h"
|
||||
|
||||
void SysPageFaultExceptionFilter( int signal, siginfo_t *info, void * );
|
||||
void __fastcall InstallLinuxExceptionHandler();
|
||||
void __fastcall ReleaseLinuxExceptionHandler();
|
||||
|
|
Loading…
Reference in New Issue