Skip to content

Commit

Permalink
history file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 15, 2021
1 parent 0985471 commit abd548b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion allmakes.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash
make all TARGET=capcom; cp EBOOT.PBP CAPCOM.PBP;
make all TARGET=Cave; cp EBOOT.PBP CAVE.PBP;
make all TARGET=cps1; cp EBOOT.PBP CPS1.PBP;
make all TARGET=deco; cp EBOOT.PBP DECO.PBP;
make all TARGET=dynax; cp EBOOT.PBP DYNAX.PBP
make all TARGET=irem; cp EBOOT.PBP IREM.PBP;
make all TARGET=Jaleco; cp EBOOT.PBP JALECO.PBP;
make all TARGET=konami; cp EBOOT.PBP KONAMI.PBP;
make all TARGET=konami2; cp EBOOT.PBP KONAMI2.PBP;
make all TARGET=namco; cp EBOOT.PBP NAMCO.PBP;
Expand All @@ -14,7 +16,6 @@ make all TARGET=sega; cp EBOOT.PBP SEGA.PBP;
make all TARGET=sega2; cp EBOOT.PBP SEGA2.PBP;
make all TARGET=sega3; cp EBOOT.PBP SEGA3.PBP;
make all TARGET=snk; cp EBOOT.PBP SNK.PBP;
make all TARGET=system1; cp EBOOT.PBP SYSTEM1.PBP;
make all TARGET=taito; cp EBOOT.PBP TAITO.PBP;
make all TARGET=taito2; cp EBOOT.PBP TAITO2.PBP;
make all TARGET=technos; cp EBOOT.PBP TECHNOS.PBP;
Expand Down
15 changes: 15 additions & 0 deletions src/psp/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ extern int usestereo;
extern int sampleratedetect;
extern int attenuation;

/* from datafile.c */
// const char *history_filename,*mameinfo_filename;
const char *history_filename;

char *rompath_extra;

// #define HISTRY_NAME "HISTORY.DAT"

/* from video.c for blit rotation */
extern int video_flipx;
extern int video_flipy;
Expand Down Expand Up @@ -335,6 +341,7 @@ static void get_fileio_opts( void )
{ "nvram_directory", "nvram" },
{ "memcard_directory", "memcard" },
{ "state_directory", "sta" },
{ "history_file", NULL },
{ NULL, NULL }
};

Expand Down Expand Up @@ -491,6 +498,11 @@ struct rc_option config_opts[] =
static void parse_cmdline( int argc, char **argv, int game_index )
{
int orientation;

char tmp[64];
sprintf(tmp, "hist/%s-history.dat", BUILD_NAME);
history_filename = tmp;

struct InternalMachineDriver/*machine_config*/ drv;

game = game_index;
Expand All @@ -507,6 +519,9 @@ static void parse_cmdline( int argc, char **argv, int game_index )
attenuation = get_int( "config", "volume", "vol", 0 );
sampleratedetect = get_bool( "config", "sampleratedetect", NULL, 1 );

/* misc configuration */
history_filename = get_string( "config", "historyfile", "history_file", history_filename, "", NULL, NULL );

/* process language configuration */
options.pause_bright = get_float( "config", "pause_brightness", NULL, 0.65, 0.5, 2.0 );
options.skip_disclaimer = get_bool( "config", "skip_disclaimer", NULL, 1 );
Expand Down
2 changes: 1 addition & 1 deletion src/psp/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ enum{
SCR_MAX, //SCR_END,
};

#define CONFIG_VER "0.0.2"
#define CONFIG_VER "0.0.3"

#define DRVIDX_MAX 1000
short drv_idx[DRVIDX_MAX];
Expand Down

0 comments on commit abd548b

Please sign in to comment.