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:
arcum42 2009-08-27 12:19:03 +00:00
parent 973282bd6c
commit 34760f7f3a
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,6 @@ GtkWidget *MemWriteDlg, *MemEntry, *DataEntry;
GtkAdjustment *DebugAdj;
extern int efile;
extern char elfname[g_MaxPath];
int DebugMode; // 0 - EE | 1 - IOP
static u32 dPC, dBPA = -1, dBPC = -1;

View File

@ -391,13 +391,15 @@ static CDVD_SourceType source = CDVDsrc_NoDisc;
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);
SysReset();
CDVDsys_ChangeSource( source );
OpenCDVD( NULL );
SysPrepareExecution(g_Startup.ElfFile);
SysPrepareExecution(elf_name);
}
void OnRunElf_Cancel(GtkButton* button, gpointer user_data)