From abd548ba4781fd49d595a7291b67ebdd2e78d4fb Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 15 Sep 2021 17:33:56 +0200 Subject: [PATCH] history file updates --- allmakes.sh | 3 ++- src/psp/config.c | 15 +++++++++++++++ src/psp/menu.h | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/allmakes.sh b/allmakes.sh index e647096..50cd456 100644 --- a/allmakes.sh +++ b/allmakes.sh @@ -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; @@ -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; diff --git a/src/psp/config.c b/src/psp/config.c index 219ad8b..817ee81 100644 --- a/src/psp/config.c +++ b/src/psp/config.c @@ -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; @@ -335,6 +341,7 @@ static void get_fileio_opts( void ) { "nvram_directory", "nvram" }, { "memcard_directory", "memcard" }, { "state_directory", "sta" }, + { "history_file", NULL }, { NULL, NULL } }; @@ -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; @@ -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 ); diff --git a/src/psp/menu.h b/src/psp/menu.h index c7cddaa..565f5b4 100644 --- a/src/psp/menu.h +++ b/src/psp/menu.h @@ -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];