mirror of https://github.com/PCSX2/pcsx2.git
Use a local variable for the elf name.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1689 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
973282bd6c
commit
34760f7f3a
|
@ -35,7 +35,6 @@ GtkWidget *MemWriteDlg, *MemEntry, *DataEntry;
|
||||||
GtkAdjustment *DebugAdj;
|
GtkAdjustment *DebugAdj;
|
||||||
|
|
||||||
extern int efile;
|
extern int efile;
|
||||||
extern char elfname[g_MaxPath];
|
|
||||||
|
|
||||||
int DebugMode; // 0 - EE | 1 - IOP
|
int DebugMode; // 0 - EE | 1 - IOP
|
||||||
static u32 dPC, dBPA = -1, dBPC = -1;
|
static u32 dPC, dBPA = -1, dBPC = -1;
|
||||||
|
|
|
@ -391,13 +391,15 @@ static CDVD_SourceType source = CDVDsrc_NoDisc;
|
||||||
|
|
||||||
void OnRunElf_Ok(GtkButton* button, gpointer user_data)
|
void OnRunElf_Ok(GtkButton* button, gpointer user_data)
|
||||||
{
|
{
|
||||||
g_Startup.ElfFile = gtk_file_selection_get_filename(GTK_FILE_SELECTION(FileSel));
|
char *elf_name;
|
||||||
|
|
||||||
|
elf_name = gtk_file_selection_get_filename(GTK_FILE_SELECTION(FileSel));
|
||||||
gtk_widget_destroy(FileSel);
|
gtk_widget_destroy(FileSel);
|
||||||
|
|
||||||
SysReset();
|
SysReset();
|
||||||
CDVDsys_ChangeSource( source );
|
CDVDsys_ChangeSource( source );
|
||||||
OpenCDVD( NULL );
|
OpenCDVD( NULL );
|
||||||
SysPrepareExecution(g_Startup.ElfFile);
|
SysPrepareExecution(elf_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnRunElf_Cancel(GtkButton* button, gpointer user_data)
|
void OnRunElf_Cancel(GtkButton* button, gpointer user_data)
|
||||||
|
|
Loading…
Reference in New Issue