mirror of https://github.com/PCSX2/pcsx2.git
Linux/ZeroGS: Bring the memcard and gamefix dialogs up to date. Get rid of some compilation warnings on ZeroGS, and some misspellings that were bugging me.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@540 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
e9e9a2c273
commit
32c6b06127
|
@ -26,7 +26,7 @@ GtkWidget *GameFixDlg, *SpeedHacksDlg;
|
|||
|
||||
set_checked(GameFixDlg, "check_VU_Add_Sub", (Config.GameFixes & FLAG_VU_ADD_SUB));
|
||||
set_checked(GameFixDlg, "check_FPU_Clamp", (Config.GameFixes & FLAG_FPU_CLAMP));
|
||||
set_checked(GameFixDlg, "check_VU_Branch", (Config.GameFixes & FLAG_VU_BRANCH));
|
||||
set_checked(GameFixDlg, "check_VU_FCOR_hack", (Config.GameFixes & FLAG_VU_FCOR_HACK));
|
||||
|
||||
gtk_widget_show_all(GameFixDlg);
|
||||
gtk_widget_set_sensitive(MainWindow, FALSE);
|
||||
|
@ -39,7 +39,7 @@ void on_Game_Fix_OK(GtkButton *button, gpointer user_data)
|
|||
Config.GameFixes = 0;
|
||||
Config.GameFixes |= is_checked(GameFixDlg, "check_VU_Add_Sub") ? FLAG_VU_ADD_SUB : 0;
|
||||
Config.GameFixes |= is_checked(GameFixDlg, "check_FPU_Clamp") ? FLAG_FPU_CLAMP : 0;
|
||||
Config.GameFixes |= is_checked(GameFixDlg, "check_VU_Branch") ? FLAG_VU_BRANCH : 0;
|
||||
Config.GameFixes |= is_checked(GameFixDlg, "check_VU_FCOR_hack") ? FLAG_VU_FCOR_HACK : 0;
|
||||
|
||||
SaveConfig();
|
||||
gtk_widget_destroy(GameFixDlg);
|
||||
|
@ -72,6 +72,7 @@ void on_Speed_Hacks(GtkMenuItem *menuitem, gpointer user_data)
|
|||
|
||||
set_checked(SpeedHacksDlg, "check_iop_cycle_rate", CHECK_IOP_CYCLERATE);
|
||||
set_checked(SpeedHacksDlg, "check_wait_cycles_sync_hack", CHECK_WAITCYCLE_HACK);
|
||||
set_checked(SpeedHacksDlg, "check_intc_sync_hack", CHECK_INTC_STAT_HACK);
|
||||
set_checked(SpeedHacksDlg, "check_ESC_hack", CHECK_ESCAPE_HACK);
|
||||
|
||||
gtk_widget_show_all(SpeedHacksDlg);
|
||||
|
@ -94,6 +95,7 @@ void on_Speed_Hack_OK(GtkButton *button, gpointer user_data)
|
|||
|
||||
Config.Hacks |= is_checked(SpeedHacksDlg, "check_iop_cycle_rate") << 3;
|
||||
Config.Hacks |= is_checked(SpeedHacksDlg, "check_wait_cycles_sync_hack") << 4;
|
||||
Config.Hacks |= is_checked(SpeedHacksDlg, "check_intc_sync_hack") << 5;
|
||||
Config.Hacks |= is_checked(SpeedHacksDlg, "check_ESC_hack") << 10;
|
||||
|
||||
SaveConfig();
|
||||
|
|
|
@ -102,9 +102,8 @@ char iop_log_names[9][32] =
|
|||
};
|
||||
|
||||
#define FLAG_VU_ADD_SUB 0x1
|
||||
#define FLAG_VU_CLIP 0x2
|
||||
#define FLAG_FPU_CLAMP 0x4
|
||||
#define FLAG_VU_BRANCH 0x8
|
||||
#define FLAG_VU_FCOR_HACK 0x8
|
||||
#define FLAG_AVOID_DELAY_HANDLING 0x10
|
||||
|
||||
#define FLAG_VU_NO_OVERFLOW 0x2
|
||||
|
|
|
@ -81,8 +81,11 @@ int main(int argc, char *argv[])
|
|||
memset(&Config, 0, sizeof(Config));
|
||||
strcpy(Config.BiosDir, DEFAULT_BIOS_DIR "/");
|
||||
strcpy(Config.PluginsDir, DEFAULT_PLUGINS_DIR "/");
|
||||
strcpy(Config.Mcd1, MEMCARDS_DIR "/" DEFAULT_MEMCARD1);
|
||||
strcpy(Config.Mcd2, MEMCARDS_DIR "/" DEFAULT_MEMCARD2);
|
||||
strcpy(Config.Mcd[0].Filename, MEMCARDS_DIR "/" DEFAULT_MEMCARD1);
|
||||
strcpy(Config.Mcd[1].Filename, MEMCARDS_DIR "/" DEFAULT_MEMCARD2);
|
||||
Config.Mcd[0].Enabled = 1;
|
||||
Config.Mcd[1].Enabled = 1;
|
||||
Config.McdEnableEject = 1;
|
||||
Config.Patch = 0;
|
||||
Config.PsxOut = 1;
|
||||
Config.Options = PCSX2_EEREC | PCSX2_VU0REC | PCSX2_VU1REC | PCSX2_FRAMELIMIT_LIMIT;
|
||||
|
|
|
@ -24,12 +24,18 @@ void OnConf_Memcards(GtkMenuItem *menuitem, gpointer user_data)
|
|||
DIR *dir;
|
||||
struct dirent *entry;
|
||||
struct stat statinfo;
|
||||
GtkWidget *memcombo1, *memcombo2;
|
||||
int i = 0;
|
||||
GtkWidget *memcombo[2];
|
||||
int i = 0, j = 0;
|
||||
bool active[2] ={false, false};
|
||||
|
||||
MemDlg = create_MemDlg();
|
||||
memcombo1 = lookup_widget(MemDlg, "memcard1combo");
|
||||
memcombo2 = lookup_widget(MemDlg, "memcard2combo");
|
||||
|
||||
memcombo[0] = lookup_widget(MemDlg, "memcard1combo");
|
||||
memcombo[1] = lookup_widget(MemDlg, "memcard2combo");
|
||||
|
||||
set_checked(MemDlg, "check_enable_mcd1", Config.Mcd[0].Enabled);
|
||||
set_checked(MemDlg, "check_enable_mcd2", Config.Mcd[1].Enabled);
|
||||
set_checked(MemDlg, "check_eject_mcds", Config.McdEnableEject);
|
||||
|
||||
getcwd(file, ARRAYSIZE(file)); /* store current dir */
|
||||
sprintf( card, "%s/%s", file, MEMCARDS_DIR );
|
||||
|
@ -50,14 +56,17 @@ void OnConf_Memcards(GtkMenuItem *menuitem, gpointer user_data)
|
|||
char path[g_MaxPath];
|
||||
|
||||
sprintf( path, "%s/%s", MEMCARDS_DIR, entry->d_name);
|
||||
gtk_combo_box_append_text(GTK_COMBO_BOX(memcombo1), entry->d_name);
|
||||
gtk_combo_box_append_text(GTK_COMBO_BOX(memcombo2), entry->d_name);
|
||||
|
||||
if (strcmp(Config.Mcd1, path) == 0)
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(memcombo1), i);
|
||||
if (strcmp(Config.Mcd2, path) == 0)
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(memcombo2), i);
|
||||
for (j = 0; j < 2; j++)
|
||||
{
|
||||
gtk_combo_box_append_text(GTK_COMBO_BOX(memcombo[j]), entry->d_name);
|
||||
|
||||
if (strcmp(Config.Mcd[j].Filename, path) == 0)
|
||||
{
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(memcombo[j]), i);
|
||||
active[j] = true;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
@ -74,11 +83,15 @@ void OnConf_Memcards(GtkMenuItem *menuitem, gpointer user_data)
|
|||
void OnMemcards_Ok(GtkButton *button, gpointer user_data)
|
||||
{
|
||||
|
||||
strcpy(Config.Mcd1, MEMCARDS_DIR "/");
|
||||
strcpy(Config.Mcd2, MEMCARDS_DIR "/");
|
||||
strcpy(Config.Mcd[0].Filename, MEMCARDS_DIR "/");
|
||||
strcpy(Config.Mcd[1].Filename, MEMCARDS_DIR "/");
|
||||
|
||||
strcat(Config.Mcd1, gtk_combo_box_get_active_text(GTK_COMBO_BOX(lookup_widget(MemDlg, "memcard1combo"))));
|
||||
strcat(Config.Mcd2, gtk_combo_box_get_active_text(GTK_COMBO_BOX(lookup_widget(MemDlg, "memcard2combo"))));
|
||||
strcat(Config.Mcd[0].Filename, gtk_combo_box_get_active_text(GTK_COMBO_BOX(lookup_widget(MemDlg, "memcard1combo"))));
|
||||
strcat(Config.Mcd[1].Filename, gtk_combo_box_get_active_text(GTK_COMBO_BOX(lookup_widget(MemDlg, "memcard2combo"))));
|
||||
|
||||
Config.Mcd[0].Enabled = is_checked(MemDlg, "check_enable_mcd1");
|
||||
Config.Mcd[1].Enabled = is_checked(MemDlg, "check_enable_mcd2");
|
||||
Config.McdEnableEject = is_checked(MemDlg, "check_eject_mcds");
|
||||
|
||||
SaveConfig();
|
||||
|
||||
|
|
|
@ -76,11 +76,16 @@ int LoadConfig()
|
|||
GetValuel("ThPriority", Config.ThPriority);
|
||||
GetValue("PluginsDir", Config.PluginsDir);
|
||||
GetValue("BiosDir", Config.BiosDir);
|
||||
GetValue("Mcd1", Config.Mcd1);
|
||||
GetValue("Mcd2", Config.Mcd2);
|
||||
|
||||
if (strcmp(Config.Mcd1,"") == 0) strcpy(Config.Mcd1, MEMCARDS_DIR "/" DEFAULT_MEMCARD1);
|
||||
if (strcmp(Config.Mcd2,"") == 0) strcpy(Config.Mcd2, MEMCARDS_DIR "/" DEFAULT_MEMCARD2);
|
||||
GetValuel("EnabledCard1", Config.Mcd[0].Enabled);
|
||||
GetValue("Mcd1", Config.Mcd[0].Filename);
|
||||
if (strcmp(Config.Mcd[0].Filename,"") == 0) strcpy(Config.Mcd[0].Filename, MEMCARDS_DIR "/" DEFAULT_MEMCARD1);
|
||||
|
||||
GetValuel("EnabledCard2", Config.Mcd[1].Enabled);
|
||||
GetValue("Mcd2", Config.Mcd[1].Filename);
|
||||
if (strcmp(Config.Mcd[1].Filename,"") == 0) strcpy(Config.Mcd[1].Filename, MEMCARDS_DIR "/" DEFAULT_MEMCARD2);
|
||||
|
||||
GetValuel("McdEnableEject", Config.McdEnableEject);
|
||||
|
||||
GetValue("GS", Config.GS);
|
||||
GetValue("SPU2", Config.SPU2);
|
||||
|
@ -140,8 +145,13 @@ void SaveConfig()
|
|||
SetValuel("Ps2Out", Config.PsxOut);
|
||||
SetValuel("cdvdPrint", Config.cdvdPrint);
|
||||
SetValuel("ThPriority", Config.ThPriority);
|
||||
SetValue("Mcd1", Config.Mcd1);
|
||||
SetValue("Mcd2", Config.Mcd2);
|
||||
|
||||
SetValuel("EnabledCard1", Config.Mcd[0].Enabled);
|
||||
SetValue("Mcd1", Config.Mcd[0].Filename);
|
||||
|
||||
SetValuel("EnabledCard2", Config.Mcd[1].Enabled);
|
||||
SetValue("Mcd2", Config.Mcd[1].Filename);
|
||||
SetValuel("McdEnableEject", Config.McdEnableEject);
|
||||
|
||||
SetValue("GS", Config.GS);
|
||||
SetValue("SPU2", Config.SPU2);
|
||||
|
@ -154,9 +164,6 @@ void SaveConfig()
|
|||
|
||||
SetValuel("Options", Config.Options);
|
||||
|
||||
// Remove Fast Branches hack for now:
|
||||
Config.Hacks &= ~0x80;
|
||||
|
||||
SetValuel("Hacks", Config.Hacks);
|
||||
SetValuel("Fixes", Config.GameFixes);
|
||||
|
||||
|
|
|
@ -335,26 +335,26 @@ create_AdvDlg (void)
|
|||
check_VU_Flush_Zero = gtk_check_button_new_with_mnemonic (_("Flush to Zero"));
|
||||
gtk_widget_show (check_VU_Flush_Zero);
|
||||
gtk_table_attach (GTK_TABLE (table7), check_VU_Flush_Zero, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
check_VU_Denormal_Zero = gtk_check_button_new_with_mnemonic (_("Denormals are Zero"));
|
||||
gtk_widget_show (check_VU_Denormal_Zero);
|
||||
gtk_table_attach (GTK_TABLE (table7), check_VU_Denormal_Zero, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
Check_Set_OU_Flags = gtk_check_button_new_with_mnemonic (_("Set O & U Flags"));
|
||||
gtk_widget_show (Check_Set_OU_Flags);
|
||||
gtk_table_attach (GTK_TABLE (table7), Check_Set_OU_Flags, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_widget_set_sensitive (Check_Set_OU_Flags, FALSE);
|
||||
|
||||
check_Emulate_DaZ = gtk_check_button_new_with_mnemonic (_("Software Emulate DaZ"));
|
||||
gtk_widget_show (check_Emulate_DaZ);
|
||||
gtk_table_attach (GTK_TABLE (table7), check_Emulate_DaZ, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_widget_set_sensitive (check_Emulate_DaZ, FALSE);
|
||||
|
||||
|
@ -551,12 +551,14 @@ create_SpeedHacksDlg (void)
|
|||
GtkWidget *label95;
|
||||
GtkWidget *hseparator1;
|
||||
GtkWidget *label91;
|
||||
GtkWidget *label90;
|
||||
GtkWidget *label105;
|
||||
GtkWidget *vbox60;
|
||||
GtkWidget *check_iop_cycle_rate;
|
||||
GtkWidget *label96;
|
||||
GtkWidget *check_wait_cycles_sync_hack;
|
||||
GtkWidget *label97;
|
||||
GtkWidget *check_intc_sync_hack;
|
||||
GtkWidget *label101;
|
||||
GtkWidget *frame36;
|
||||
GtkWidget *alignment31;
|
||||
GtkWidget *check_ESC_hack;
|
||||
|
@ -603,7 +605,7 @@ create_SpeedHacksDlg (void)
|
|||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (check_default_cycle_rate), check_default_cycle_rate_group);
|
||||
check_default_cycle_rate_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (check_default_cycle_rate));
|
||||
|
||||
label98 = gtk_label_new (_("Most compatable option - recommended for everyone with high-end machines."));
|
||||
label98 = gtk_label_new (_("Most compatible option - recommended for everyone with high-end machines."));
|
||||
gtk_widget_show (label98);
|
||||
gtk_box_pack_start (GTK_BOX (vbox61), label98, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label98), TRUE);
|
||||
|
@ -649,15 +651,15 @@ create_SpeedHacksDlg (void)
|
|||
gtk_widget_show (hseparator1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox61), hseparator1, FALSE, FALSE, 0);
|
||||
|
||||
label91 = gtk_label_new (_("Important: X2 & X3 sync hacks *will* cause choppy/skippy audio on many FMV movies."));
|
||||
label91 = gtk_label_new (_("Important: X2 & X3 sync hacks *will* cause choppy/skippy audio on many FMV movies.\nKnown to work well with a couple games, namely Shadow of the Colossus (but breaks most other games)."));
|
||||
gtk_widget_show (label91);
|
||||
gtk_box_pack_start (GTK_BOX (vbox61), label91, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label91), TRUE);
|
||||
|
||||
label90 = gtk_label_new (_("<b>frame37</b>"));
|
||||
gtk_widget_show (label90);
|
||||
gtk_frame_set_label_widget (GTK_FRAME (frame37), label90);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label90), TRUE);
|
||||
label105 = gtk_label_new (_("<b>EmotionEngine (EE) Sync Hacks</b>"));
|
||||
gtk_widget_show (label105);
|
||||
gtk_frame_set_label_widget (GTK_FRAME (frame37), label105);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label105), TRUE);
|
||||
|
||||
vbox60 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox60);
|
||||
|
@ -681,6 +683,15 @@ create_SpeedHacksDlg (void)
|
|||
gtk_box_pack_start (GTK_BOX (vbox60), label97, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label97), TRUE);
|
||||
|
||||
check_intc_sync_hack = gtk_check_button_new_with_mnemonic (_("INTC Sync Hack (experimental)"));
|
||||
gtk_widget_show (check_intc_sync_hack);
|
||||
gtk_box_pack_start (GTK_BOX (vbox60), check_intc_sync_hack, FALSE, FALSE, 0);
|
||||
|
||||
label101 = gtk_label_new (_("Huge speedup in many games, and a pretty high compatibility rate (some games still work better with EE sync hacks)."));
|
||||
gtk_widget_show (label101);
|
||||
gtk_box_pack_start (GTK_BOX (vbox60), label101, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label101), TRUE);
|
||||
|
||||
frame36 = gtk_frame_new (NULL);
|
||||
gtk_widget_show (frame36);
|
||||
gtk_box_pack_start (GTK_BOX (vbox59), frame36, FALSE, FALSE, 0);
|
||||
|
@ -739,12 +750,14 @@ create_SpeedHacksDlg (void)
|
|||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label95, "label95");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, hseparator1, "hseparator1");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label91, "label91");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label90, "label90");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label105, "label105");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, vbox60, "vbox60");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_iop_cycle_rate, "check_iop_cycle_rate");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label96, "label96");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_wait_cycles_sync_hack, "check_wait_cycles_sync_hack");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label97, "label97");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_intc_sync_hack, "check_intc_sync_hack");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, label101, "label101");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, frame36, "frame36");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, alignment31, "alignment31");
|
||||
GLADE_HOOKUP_OBJECT (SpeedHacksDlg, check_ESC_hack, "check_ESC_hack");
|
||||
|
@ -765,8 +778,8 @@ create_GameFixDlg (void)
|
|||
GtkWidget *alignment5;
|
||||
GtkWidget *vbox30;
|
||||
GtkWidget *check_FPU_Clamp;
|
||||
GtkWidget *check_VU_Branch;
|
||||
GtkWidget *check_VU_Add_Sub;
|
||||
GtkWidget *check_VU_FCOR_hack;
|
||||
GtkWidget *label42;
|
||||
GtkWidget *dialog_action_area1;
|
||||
GtkWidget *cancelbutton1;
|
||||
|
@ -797,14 +810,14 @@ create_GameFixDlg (void)
|
|||
gtk_widget_show (check_FPU_Clamp);
|
||||
gtk_box_pack_start (GTK_BOX (vbox30), check_FPU_Clamp, FALSE, FALSE, 0);
|
||||
|
||||
check_VU_Branch = gtk_check_button_new_with_mnemonic (_("VU Branch Hack - Special fix for Magna Carta; Breaks Crash Bandicoot!"));
|
||||
gtk_widget_show (check_VU_Branch);
|
||||
gtk_box_pack_start (GTK_BOX (vbox30), check_VU_Branch, FALSE, FALSE, 0);
|
||||
|
||||
check_VU_Add_Sub = gtk_check_button_new_with_mnemonic (_("VU Add / Sub Hack - Special fix for Tri-Ace games!"));
|
||||
gtk_widget_show (check_VU_Add_Sub);
|
||||
gtk_box_pack_start (GTK_BOX (vbox30), check_VU_Add_Sub, FALSE, FALSE, 0);
|
||||
|
||||
check_VU_FCOR_hack = gtk_check_button_new_with_mnemonic (_("VU FCOR Hack - Fixes ICO SPS"));
|
||||
gtk_widget_show (check_VU_FCOR_hack);
|
||||
gtk_box_pack_start (GTK_BOX (vbox30), check_VU_FCOR_hack, FALSE, FALSE, 0);
|
||||
|
||||
label42 = gtk_label_new (_("<b>Some games need special settings.\nConfigure them here.</b>"));
|
||||
gtk_widget_show (label42);
|
||||
gtk_frame_set_label_widget (GTK_FRAME (GameSettings), label42);
|
||||
|
@ -838,8 +851,8 @@ create_GameFixDlg (void)
|
|||
GLADE_HOOKUP_OBJECT (GameFixDlg, alignment5, "alignment5");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, vbox30, "vbox30");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, check_FPU_Clamp, "check_FPU_Clamp");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, check_VU_Branch, "check_VU_Branch");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, check_VU_Add_Sub, "check_VU_Add_Sub");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, check_VU_FCOR_hack, "check_VU_FCOR_hack");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, label42, "label42");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (GameFixDlg, dialog_action_area1, "dialog_action_area1");
|
||||
GLADE_HOOKUP_OBJECT (GameFixDlg, cancelbutton1, "cancelbutton1");
|
||||
|
@ -3032,8 +3045,11 @@ create_PatchFinderWindow (void)
|
|||
GtkWidget *radiobutton3;
|
||||
GSList *radiobutton3_group = NULL;
|
||||
GtkWidget *radiobutton4;
|
||||
GSList *radiobutton4_group = NULL;
|
||||
GtkWidget *radiobutton5;
|
||||
GSList *radiobutton5_group = NULL;
|
||||
GtkWidget *radiobutton6;
|
||||
GSList *radiobutton6_group = NULL;
|
||||
GtkWidget *checkbutton1;
|
||||
GtkWidget *label56;
|
||||
GtkWidget *frame21;
|
||||
|
@ -3130,7 +3146,7 @@ create_PatchFinderWindow (void)
|
|||
radiobutton3 = gtk_radio_button_new_with_mnemonic (NULL, _("8 bits"));
|
||||
gtk_widget_show (radiobutton3);
|
||||
gtk_table_attach (GTK_TABLE (table6), radiobutton3, 0, 1, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton3), radiobutton3_group);
|
||||
radiobutton3_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton3));
|
||||
|
@ -3138,31 +3154,31 @@ create_PatchFinderWindow (void)
|
|||
radiobutton4 = gtk_radio_button_new_with_mnemonic (NULL, _("16 bits"));
|
||||
gtk_widget_show (radiobutton4);
|
||||
gtk_table_attach (GTK_TABLE (table6), radiobutton4, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton4), radiobutton3_group);
|
||||
radiobutton3_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton4));
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton4), radiobutton4_group);
|
||||
radiobutton4_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton4));
|
||||
|
||||
radiobutton5 = gtk_radio_button_new_with_mnemonic (NULL, _("32 bits"));
|
||||
gtk_widget_show (radiobutton5);
|
||||
gtk_table_attach (GTK_TABLE (table6), radiobutton5, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton5), radiobutton3_group);
|
||||
radiobutton3_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton5));
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton5), radiobutton5_group);
|
||||
radiobutton5_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton5));
|
||||
|
||||
radiobutton6 = gtk_radio_button_new_with_mnemonic (NULL, _("64 bits"));
|
||||
gtk_widget_show (radiobutton6);
|
||||
gtk_table_attach (GTK_TABLE (table6), radiobutton6, 1, 2, 1, 2,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton6), radiobutton3_group);
|
||||
radiobutton3_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton6));
|
||||
gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton6), radiobutton6_group);
|
||||
radiobutton6_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton6));
|
||||
|
||||
checkbutton1 = gtk_check_button_new_with_mnemonic (_("Unsigned"));
|
||||
gtk_widget_show (checkbutton1);
|
||||
gtk_table_attach (GTK_TABLE (table6), checkbutton1, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) (GTK_FILL),
|
||||
(GtkAttachOptions) (0),
|
||||
(GtkAttachOptions) (0), 0, 0);
|
||||
|
||||
label56 = gtk_label_new (_("<b>Values of Size</b>"));
|
||||
|
@ -4045,13 +4061,26 @@ create_MemDlg (void)
|
|||
GtkWidget *MemDlg;
|
||||
GtkWidget *dialog_vbox7;
|
||||
GtkWidget *hbox40;
|
||||
GtkWidget *vbox62;
|
||||
GtkWidget *hbox42;
|
||||
GtkWidget *label99;
|
||||
GtkWidget *label100;
|
||||
GtkWidget *hbox41;
|
||||
GtkWidget *vbox64;
|
||||
GtkWidget *vbox70;
|
||||
GtkWidget *hbox46;
|
||||
GtkWidget *check_enable_mcd1;
|
||||
GtkWidget *check_enable_mcd2;
|
||||
GtkWidget *vbox65;
|
||||
GtkWidget *vbox66;
|
||||
GtkWidget *hbox44;
|
||||
GtkWidget *label106;
|
||||
GtkWidget *label107;
|
||||
GtkWidget *hbox45;
|
||||
GtkWidget *memcard1combo;
|
||||
GtkWidget *memcard2combo;
|
||||
GtkWidget *frame38;
|
||||
GtkWidget *alignment33;
|
||||
GtkWidget *vbox63;
|
||||
GtkWidget *check_eject_mcds;
|
||||
GtkWidget *label103;
|
||||
GtkWidget *label102;
|
||||
GtkWidget *dialog_action_area7;
|
||||
GtkWidget *memcardcancelbutton;
|
||||
GtkWidget *okbutton1;
|
||||
|
@ -4067,34 +4096,90 @@ create_MemDlg (void)
|
|||
gtk_widget_show (hbox40);
|
||||
gtk_box_pack_start (GTK_BOX (dialog_vbox7), hbox40, TRUE, TRUE, 0);
|
||||
|
||||
vbox62 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox62);
|
||||
gtk_box_pack_start (GTK_BOX (hbox40), vbox62, TRUE, TRUE, 0);
|
||||
|
||||
hbox42 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox42);
|
||||
gtk_box_pack_start (GTK_BOX (vbox62), hbox42, TRUE, TRUE, 0);
|
||||
|
||||
label99 = gtk_label_new (_("Memcard 1"));
|
||||
gtk_widget_show (label99);
|
||||
gtk_box_pack_start (GTK_BOX (hbox42), label99, TRUE, TRUE, 0);
|
||||
|
||||
label100 = gtk_label_new (_("Memcard 2"));
|
||||
gtk_widget_show (label100);
|
||||
gtk_box_pack_start (GTK_BOX (hbox42), label100, TRUE, TRUE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label100), GTK_JUSTIFY_RIGHT);
|
||||
|
||||
hbox41 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox41);
|
||||
gtk_box_pack_start (GTK_BOX (vbox62), hbox41, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox40), hbox41, TRUE, TRUE, 0);
|
||||
|
||||
vbox64 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox64);
|
||||
gtk_box_pack_start (GTK_BOX (hbox41), vbox64, TRUE, TRUE, 0);
|
||||
|
||||
vbox70 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox70);
|
||||
gtk_box_pack_start (GTK_BOX (vbox64), vbox70, TRUE, TRUE, 0);
|
||||
|
||||
hbox46 = gtk_hbox_new (TRUE, 0);
|
||||
gtk_widget_show (hbox46);
|
||||
gtk_box_pack_start (GTK_BOX (vbox70), hbox46, TRUE, TRUE, 0);
|
||||
|
||||
check_enable_mcd1 = gtk_check_button_new_with_mnemonic (_("Enabled"));
|
||||
gtk_widget_show (check_enable_mcd1);
|
||||
gtk_box_pack_start (GTK_BOX (hbox46), check_enable_mcd1, FALSE, FALSE, 0);
|
||||
|
||||
check_enable_mcd2 = gtk_check_button_new_with_mnemonic (_("Enabled"));
|
||||
gtk_widget_show (check_enable_mcd2);
|
||||
gtk_box_pack_start (GTK_BOX (hbox46), check_enable_mcd2, FALSE, FALSE, 0);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_enable_mcd2), TRUE);
|
||||
|
||||
vbox65 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox65);
|
||||
gtk_box_pack_start (GTK_BOX (vbox64), vbox65, TRUE, TRUE, 0);
|
||||
|
||||
vbox66 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox66);
|
||||
gtk_box_pack_start (GTK_BOX (vbox65), vbox66, TRUE, TRUE, 0);
|
||||
|
||||
hbox44 = gtk_hbox_new (TRUE, 0);
|
||||
gtk_widget_show (hbox44);
|
||||
gtk_box_pack_start (GTK_BOX (vbox66), hbox44, TRUE, TRUE, 0);
|
||||
|
||||
label106 = gtk_label_new (_("Memcard 1"));
|
||||
gtk_widget_show (label106);
|
||||
gtk_box_pack_start (GTK_BOX (hbox44), label106, TRUE, TRUE, 0);
|
||||
|
||||
label107 = gtk_label_new (_("Memcard 2"));
|
||||
gtk_widget_show (label107);
|
||||
gtk_box_pack_start (GTK_BOX (hbox44), label107, FALSE, FALSE, 0);
|
||||
gtk_label_set_justify (GTK_LABEL (label107), GTK_JUSTIFY_RIGHT);
|
||||
|
||||
hbox45 = gtk_hbox_new (FALSE, 0);
|
||||
gtk_widget_show (hbox45);
|
||||
gtk_box_pack_start (GTK_BOX (vbox66), hbox45, TRUE, TRUE, 0);
|
||||
|
||||
memcard1combo = gtk_combo_box_new_text ();
|
||||
gtk_widget_show (memcard1combo);
|
||||
gtk_box_pack_start (GTK_BOX (hbox41), memcard1combo, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox45), memcard1combo, TRUE, TRUE, 0);
|
||||
|
||||
memcard2combo = gtk_combo_box_new_text ();
|
||||
gtk_widget_show (memcard2combo);
|
||||
gtk_box_pack_start (GTK_BOX (hbox41), memcard2combo, TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox45), memcard2combo, TRUE, TRUE, 0);
|
||||
|
||||
frame38 = gtk_frame_new (NULL);
|
||||
gtk_widget_show (frame38);
|
||||
gtk_box_pack_start (GTK_BOX (hbox41), frame38, TRUE, TRUE, 0);
|
||||
|
||||
alignment33 = gtk_alignment_new (0.5, 0.5, 1, 1);
|
||||
gtk_widget_show (alignment33);
|
||||
gtk_container_add (GTK_CONTAINER (frame38), alignment33);
|
||||
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment33), 0, 0, 12, 0);
|
||||
|
||||
vbox63 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox63);
|
||||
gtk_container_add (GTK_CONTAINER (alignment33), vbox63);
|
||||
|
||||
check_eject_mcds = gtk_check_button_new_with_mnemonic (_("Eject Mcds when loading SaveStates"));
|
||||
gtk_widget_show (check_eject_mcds);
|
||||
gtk_box_pack_start (GTK_BOX (vbox63), check_eject_mcds, FALSE, FALSE, 0);
|
||||
|
||||
label103 = gtk_label_new (_("This feature tells games when the mcd contents have changed so that they re-index the new Mcd contents. WARNING: Disabling this option is NOT recommended, and could lead to MemCard corruption if you also use SaveStates."));
|
||||
gtk_widget_show (label103);
|
||||
gtk_box_pack_start (GTK_BOX (vbox63), label103, FALSE, FALSE, 0);
|
||||
gtk_label_set_line_wrap (GTK_LABEL (label103), TRUE);
|
||||
|
||||
label102 = gtk_label_new (_("<b>Options</b>"));
|
||||
gtk_widget_show (label102);
|
||||
gtk_frame_set_label_widget (GTK_FRAME (frame38), label102);
|
||||
gtk_label_set_use_markup (GTK_LABEL (label102), TRUE);
|
||||
|
||||
dialog_action_area7 = GTK_DIALOG (MemDlg)->action_area;
|
||||
gtk_widget_show (dialog_action_area7);
|
||||
|
@ -4121,13 +4206,26 @@ create_MemDlg (void)
|
|||
GLADE_HOOKUP_OBJECT_NO_REF (MemDlg, MemDlg, "MemDlg");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (MemDlg, dialog_vbox7, "dialog_vbox7");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox40, "hbox40");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox62, "vbox62");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox42, "hbox42");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label99, "label99");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label100, "label100");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox41, "hbox41");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox64, "vbox64");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox70, "vbox70");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox46, "hbox46");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, check_enable_mcd1, "check_enable_mcd1");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, check_enable_mcd2, "check_enable_mcd2");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox65, "vbox65");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox66, "vbox66");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox44, "hbox44");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label106, "label106");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label107, "label107");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, hbox45, "hbox45");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, memcard1combo, "memcard1combo");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, memcard2combo, "memcard2combo");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, frame38, "frame38");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, alignment33, "alignment33");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, vbox63, "vbox63");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, check_eject_mcds, "check_eject_mcds");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label103, "label103");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, label102, "label102");
|
||||
GLADE_HOOKUP_OBJECT_NO_REF (MemDlg, dialog_action_area7, "dialog_action_area7");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, memcardcancelbutton, "memcardcancelbutton");
|
||||
GLADE_HOOKUP_OBJECT (MemDlg, okbutton1, "okbutton1");
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1167,7 +1167,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_DIRECTORY | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = numfiles; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1175,7 +1175,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the dir
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1189,7 +1189,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_DIRECTORY | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = 2; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1197,7 +1197,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the dir
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1225,7 +1225,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_FILE | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = 0; // SIZE OF FILE
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1233,7 +1233,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the file
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1314,7 +1314,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_DIRECTORY | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = 2; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1322,7 +1322,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = dircluster; // cluster with the contents of the dir
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1367,7 +1367,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_DIRECTORY | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = numfiles; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1375,7 +1375,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the dir
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1389,7 +1389,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_DIRECTORY | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = 2; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1397,7 +1397,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the dir
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
@ -1425,7 +1425,7 @@ class MemoryCard
|
|||
*(u16 *)&dir[0] = Dir::DF_EXISTS | Dir::DF_FILE | Dir::DF_READ; // mode flag
|
||||
*(u32 *)&dir[4] = 2; // number of files inside the dir
|
||||
*(u8 *)&dir[8] = 0; // creation time seconds
|
||||
*(u8 *)&dir[9] = 0; // creation time minuts
|
||||
*(u8 *)&dir[9] = 0; // creation time minutes
|
||||
*(u8 *)&dir[10] = 0; // creation time hours
|
||||
*(u8 *)&dir[11] = 1; // creation time day
|
||||
*(u8 *)&dir[12] = 1; // creation time month
|
||||
|
@ -1433,7 +1433,7 @@ class MemoryCard
|
|||
*(u32 *)&dir[16] = 0; // cluster with the contents of the file
|
||||
*(u32 *)&dir[20] = 0; // dir entry for '.'
|
||||
*(u8 *)&dir[24] = 0; // modification time seconds
|
||||
*(u8 *)&dir[25] = 0; // modification time minuts
|
||||
*(u8 *)&dir[25] = 0; // modification time minutes
|
||||
*(u8 *)&dir[26] = 0; // modification time hours
|
||||
*(u8 *)&dir[27] = 1; // modification time day
|
||||
*(u8 *)&dir[28] = 1; // modification time month
|
||||
|
|
|
@ -82,7 +82,7 @@ using namespace std;
|
|||
#define B_G(x, action) { if( !(x) ) { ERROR_LOG("%s:%d: %s\n", __FILE__, (u32)__LINE__, #x); action; } }
|
||||
|
||||
|
||||
static __forceinline char *error_name(int err)
|
||||
static __forceinline const char *error_name(int err)
|
||||
{
|
||||
switch (err)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue