#17 cheat button doesn't add -cheat option

v0.31
closed-accepted
i/o (10)
6
2003-03-24
2003-02-03
Anonymous
No

The 'Enable game cheats' button in the misc tab of the
default options doesn't seem to work.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    --- src/gxmame.h.orig 2003-02-03 22:04:28.000000000 +0000
    +++ src/gxmame.h 2003-02-03 22:05:38.000000000 +0000
    @@ -666,6 +666,7 @@
    gboolean snapshot_directory;
    gboolean diff_directory;
    gboolean cheat_file;
    + gboolean cheat;
    gboolean hiscore_file;
    gboolean history_file;
    gboolean mameinfo_file;
    --- src/mameio.c.orig 2003-02-03 21:55:10.000000000 +0000
    +++ src/mameio.c 2003-02-03 21:57:24.000000000 +0000
    @@ -1001,6 +1001,7 @@
    available_options.snapshot_directory = FALSE;
    available_options.diff_directory = FALSE;
    available_options.cheat_file = FALSE;
    + available_options.cheat = FALSE;
    available_options.hiscore_file = FALSE;
    available_options.history_file = FALSE;
    available_options.mameinfo_file = FALSE;
    @@ -1120,6 +1121,8 @@
    available_options.diff_directory = TRUE;
    else if (!strncmp(line,"-cheat_file",11))
    available_options.cheat_file = TRUE;
    + else if (!strncmp(line,"-[no]cheat",10))
    + available_options.cheat = TRUE;
    else if (!strncmp(line,"-hiscore_file",13))
    available_options.hiscore_file = TRUE;
    else if (!strncmp(line,"-history_file",13))
    --- src/options.c.orig 2003-02-03 21:55:17.000000000 +0000
    +++ src/options.c 2003-02-03 22:15:44.000000000 +0000
    @@ -6295,6 +6295,7 @@
    xmame_game_options *target;
    char *option_string, *new_artwork=NULL,
    *keyboard_leds=NULL,
    + *cheat=NULL,
    *debug=NULL,
    *network=NULL,
    *log=NULL,
    @@ -6328,6 +6329,12 @@
    (target->keyboard_leds)?"":"no"
    );
    }
    +
    + if (available_options.cheat)
    + {
    + cheat = g_strdup_printf ("-%scheat ",
    + (target->cheat)?"":"no");
    + }

    if \(available\_options.debug\)
    \{
    

    @@ -6428,6 +6435,7 @@
    (target->artwork)?"":"no",
    new_artwork?new_artwork:"",
    keyboard_leds?keyboard_leds:"",
    + cheat?cheat:"",
    debug?debug:"",
    network?network:"",
    log?log:"",
    @@ -6437,6 +6445,7 @@

    g\_free\(new\_artwork\);
    g\_free\(keyboard\_leds\);
    

    + g_free(cheat);
    g_free(debug);
    g_free(network);
    g_free(log);

     
  • Stéphane Pontier

    • labels: 412985 --> i/o
    • priority: 5 --> 6
    • status: open --> open-accepted
     
  • Stéphane Pontier

    • assigned_to: nobody --> shadow_walker
     
  • Stéphane Pontier

    Logged In: YES
    user_id=507424

    This bug will be fixed in next release

     
  • Stéphane Pontier

    • status: open-accepted --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks