Linux: Added the new menu options, and cdvd/bios running doesn't reset the emulator on Linux, either.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1516 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-07-15 06:45:11 +00:00
parent 4f1baabd3c
commit f2ae2afe45
4 changed files with 82 additions and 52 deletions

View File

@ -336,10 +336,17 @@ void OnLanguage(GtkMenuItem *menuitem, gpointer user_data)
void OnFile_RunCD(GtkMenuItem *menuitem, gpointer user_data)
{
CDVD = CDVD_plugin;
SysReset();
//SysReset();
SysPrepareExecution(NULL);
}
void OnFile_RunBIOS(GtkMenuItem *menuitem, gpointer user_data)
{
CDVD = NODISC;
SysReset();
SysPrepareExecution(NULL, true);
}
void OnRunIso_Ok(GtkButton* button, gpointer user_data)
{
gchar *File;
@ -349,7 +356,7 @@ void OnRunIso_Ok(GtkButton* button, gpointer user_data)
strcpy(isoFileName, File);
gtk_widget_destroy(FileSel);
SysReset();
//SysReset();
SysPrepareExecution( NULL );
}

View File

@ -273,3 +273,7 @@ OnFile_RunIso (GtkMenuItem *menuitem,
void
OnFile_BlockDump (GtkMenuItem *menuitem,
gpointer user_data);
void
OnFile_RunBIOS (GtkMenuItem *menuitem,
gpointer user_data);

View File

@ -2768,10 +2768,10 @@ create_MainWindow (void)
GtkWidget *GtkMenuBar_Menu;
GtkWidget *GtkMenuItem_File;
GtkWidget *GtkMenuItem_File_menu;
GtkWidget *run_cd1;
GtkWidget *run_iso1;
GtkWidget *GtkMenuItem_LoadElf;
GtkWidget *enable_blockdump1;
GtkWidget *run_iso1;
GtkWidget *run_cd1;
GtkWidget *run_bios__no_disc_1;
GtkWidget *separator2;
GtkWidget *states1;
GtkWidget *states1_menu;
@ -2821,6 +2821,7 @@ create_MainWindow (void)
GtkWidget *separator7;
GtkWidget *enable_console1;
GtkWidget *enable_patches1;
GtkWidget *enable_blockdump1;
GtkWidget *print_cdvd_info1;
GtkWidget *GtkMenuItem_Debug;
GtkWidget *GtkMenuItem_Debug_menu;
@ -2858,25 +2859,25 @@ create_MainWindow (void)
gtk_widget_set_name (GtkMenuItem_File_menu, "GtkMenuItem_File_menu");
gtk_menu_item_set_submenu (GTK_MENU_ITEM (GtkMenuItem_File), GtkMenuItem_File_menu);
run_cd1 = gtk_menu_item_new_with_mnemonic (_("_Run CD"));
gtk_widget_set_name (run_cd1, "run_cd1");
gtk_widget_show (run_cd1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_cd1);
run_iso1 = gtk_menu_item_new_with_mnemonic (_("_Run Iso..."));
gtk_widget_set_name (run_iso1, "run_iso1");
gtk_widget_show (run_iso1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_iso1);
GtkMenuItem_LoadElf = gtk_menu_item_new_with_mnemonic (_("_Load Elf..."));
GtkMenuItem_LoadElf = gtk_menu_item_new_with_mnemonic (_("_Open ELF File.."));
gtk_widget_set_name (GtkMenuItem_LoadElf, "GtkMenuItem_LoadElf");
gtk_widget_show (GtkMenuItem_LoadElf);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), GtkMenuItem_LoadElf);
enable_blockdump1 = gtk_check_menu_item_new_with_mnemonic (_("_Enable Blockdump"));
gtk_widget_set_name (enable_blockdump1, "enable_blockdump1");
gtk_widget_show (enable_blockdump1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), enable_blockdump1);
run_iso1 = gtk_menu_item_new_with_mnemonic (_("_Run Iso Image..."));
gtk_widget_set_name (run_iso1, "run_iso1");
gtk_widget_show (run_iso1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_iso1);
run_cd1 = gtk_menu_item_new_with_mnemonic (_("_Run CD/DVD"));
gtk_widget_set_name (run_cd1, "run_cd1");
gtk_widget_show (run_cd1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_cd1);
run_bios__no_disc_1 = gtk_menu_item_new_with_mnemonic (_("_Run Bios (No Disc)"));
gtk_widget_set_name (run_bios__no_disc_1, "run_bios__no_disc_1");
gtk_widget_show (run_bios__no_disc_1);
gtk_container_add (GTK_CONTAINER (GtkMenuItem_File_menu), run_bios__no_disc_1);
separator2 = gtk_separator_menu_item_new ();
gtk_widget_set_name (separator2, "separator2");
@ -3121,6 +3122,11 @@ create_MainWindow (void)
gtk_widget_show (enable_patches1);
gtk_container_add (GTK_CONTAINER (misc1_menu), enable_patches1);
enable_blockdump1 = gtk_check_menu_item_new_with_mnemonic (_("_Enable Blockdump"));
gtk_widget_set_name (enable_blockdump1, "enable_blockdump1");
gtk_widget_show (enable_blockdump1);
gtk_container_add (GTK_CONTAINER (misc1_menu), enable_blockdump1);
print_cdvd_info1 = gtk_check_menu_item_new_with_mnemonic (_("Print CDVD Info"));
gtk_widget_set_name (print_cdvd_info1, "print_cdvd_info1");
gtk_widget_show (print_cdvd_info1);
@ -3186,17 +3192,17 @@ create_MainWindow (void)
g_signal_connect ((gpointer) MainWindow, "delete_event",
G_CALLBACK (OnDelete),
NULL);
g_signal_connect ((gpointer) run_cd1, "activate",
G_CALLBACK (OnFile_RunCD),
g_signal_connect ((gpointer) GtkMenuItem_LoadElf, "activate",
G_CALLBACK (OnFile_LoadElf),
NULL);
g_signal_connect ((gpointer) run_iso1, "activate",
G_CALLBACK (OnFile_RunIso),
NULL);
g_signal_connect ((gpointer) GtkMenuItem_LoadElf, "activate",
G_CALLBACK (OnFile_LoadElf),
g_signal_connect ((gpointer) run_cd1, "activate",
G_CALLBACK (OnFile_RunCD),
NULL);
g_signal_connect ((gpointer) enable_blockdump1, "activate",
G_CALLBACK (OnFile_BlockDump),
g_signal_connect ((gpointer) run_bios__no_disc_1, "activate",
G_CALLBACK (OnFile_RunBIOS),
NULL);
g_signal_connect ((gpointer) load_slot_0, "activate",
G_CALLBACK (OnStates_Load),
@ -3294,6 +3300,9 @@ create_MainWindow (void)
g_signal_connect ((gpointer) enable_patches1, "activate",
G_CALLBACK (on_enable_patches1_activate),
NULL);
g_signal_connect ((gpointer) enable_blockdump1, "activate",
G_CALLBACK (OnFile_BlockDump),
NULL);
g_signal_connect ((gpointer) print_cdvd_info1, "activate",
G_CALLBACK (OnPrintCdvdInfo),
NULL);
@ -3316,10 +3325,10 @@ create_MainWindow (void)
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuBar_Menu, "GtkMenuBar_Menu");
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_File, "GtkMenuItem_File");
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_File_menu, "GtkMenuItem_File_menu");
GLADE_HOOKUP_OBJECT (MainWindow, run_cd1, "run_cd1");
GLADE_HOOKUP_OBJECT (MainWindow, run_iso1, "run_iso1");
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_LoadElf, "GtkMenuItem_LoadElf");
GLADE_HOOKUP_OBJECT (MainWindow, enable_blockdump1, "enable_blockdump1");
GLADE_HOOKUP_OBJECT (MainWindow, run_iso1, "run_iso1");
GLADE_HOOKUP_OBJECT (MainWindow, run_cd1, "run_cd1");
GLADE_HOOKUP_OBJECT (MainWindow, run_bios__no_disc_1, "run_bios__no_disc_1");
GLADE_HOOKUP_OBJECT (MainWindow, separator2, "separator2");
GLADE_HOOKUP_OBJECT (MainWindow, states1, "states1");
GLADE_HOOKUP_OBJECT (MainWindow, states1_menu, "states1_menu");
@ -3369,6 +3378,7 @@ create_MainWindow (void)
GLADE_HOOKUP_OBJECT (MainWindow, separator7, "separator7");
GLADE_HOOKUP_OBJECT (MainWindow, enable_console1, "enable_console1");
GLADE_HOOKUP_OBJECT (MainWindow, enable_patches1, "enable_patches1");
GLADE_HOOKUP_OBJECT (MainWindow, enable_blockdump1, "enable_blockdump1");
GLADE_HOOKUP_OBJECT (MainWindow, print_cdvd_info1, "print_cdvd_info1");
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Debug, "GtkMenuItem_Debug");
GLADE_HOOKUP_OBJECT (MainWindow, GtkMenuItem_Debug_menu, "GtkMenuItem_Debug_menu");

View File

@ -4880,40 +4880,39 @@ Version x.x</property>
<child>
<widget class="GtkMenu" id="GtkMenuItem_File_menu">
<child>
<widget class="GtkMenuItem" id="run_cd1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Run CD</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnFile_RunCD"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="run_iso1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Run Iso...</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnFile_RunIso" last_modification_time="Tue, 14 Jul 2009 10:07:31 GMT"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="GtkMenuItem_LoadElf">
<property name="visible">True</property>
<property name="label" translatable="yes">_Load Elf...</property>
<property name="label" translatable="yes">_Open ELF File..</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnFile_LoadElf"/>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="enable_blockdump1">
<widget class="GtkMenuItem" id="run_iso1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Enable Blockdump</property>
<property name="label" translatable="yes">_Run Iso Image...</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="OnFile_BlockDump" last_modification_time="Tue, 14 Jul 2009 10:09:00 GMT"/>
<signal name="activate" handler="OnFile_RunIso" last_modification_time="Tue, 14 Jul 2009 10:07:31 GMT"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="run_cd1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Run CD/DVD</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnFile_RunCD"/>
</widget>
</child>
<child>
<widget class="GtkMenuItem" id="run_bios_(no_disc)1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Run Bios (No Disc)</property>
<property name="use_underline">True</property>
<signal name="activate" handler="OnFile_RunBIOS" last_modification_time="Wed, 15 Jul 2009 06:35:22 GMT"/>
</widget>
</child>
@ -5317,6 +5316,16 @@ Version x.x</property>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="enable_blockdump1">
<property name="visible">True</property>
<property name="label" translatable="yes">_Enable Blockdump</property>
<property name="use_underline">True</property>
<property name="active">False</property>
<signal name="activate" handler="OnFile_BlockDump" last_modification_time="Tue, 14 Jul 2009 10:09:00 GMT"/>
</widget>
</child>
<child>
<widget class="GtkCheckMenuItem" id="print_cdvd_info1">
<property name="visible">True</property>