diff options
author | notaz | 2012-08-02 01:33:02 +0300 |
---|---|---|
committer | notaz | 2012-08-02 01:43:04 +0300 |
commit | 4ea086f6049c3f2c286f1a4e1e23b5763629067a (patch) | |
tree | 45bf94324383bb5900262bed6fe37225c8888ebd /frontend | |
parent | 9ed4ca47610027e8a0448d61389df5a583bd659b (diff) | |
download | pcsx_rearmed-4ea086f6049c3f2c286f1a4e1e23b5763629067a.tar.gz pcsx_rearmed-4ea086f6049c3f2c286f1a4e1e23b5763629067a.tar.bz2 pcsx_rearmed-4ea086f6049c3f2c286f1a4e1e23b5763629067a.zip |
release r15
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/menu.c | 30 | ||||
-rwxr-xr-x | frontend/pandora/pcsx.sh | 6 | ||||
-rw-r--r-- | frontend/plat_pandora.c | 2 |
3 files changed, 17 insertions, 21 deletions
diff --git a/frontend/menu.c b/frontend/menu.c index 6a50d16..3756c1a 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -261,7 +261,7 @@ static const struct { void *val; } config_data[] = { CE_CONFIG_STR(Bios), - CE_CONFIG_STR_V(Gpu, 2), + CE_CONFIG_STR_V(Gpu, 3), CE_CONFIG_STR(Spu), // CE_CONFIG_STR(Cdr), CE_CONFIG_VAL(Xa), @@ -340,6 +340,7 @@ static void make_cfg_fname(char *buf, size_t size, int is_game) } static void keys_write_all(FILE *f); +static char *mystrip(char *str); static int menu_write_config(int is_game) { @@ -386,14 +387,18 @@ static int menu_do_last_cd_img(int is_get) { char path[256]; FILE *f; + int ret; snprintf(path, sizeof(path), "." PCSX_DOT_DIR "lastcdimg.txt"); f = fopen(path, is_get ? "r" : "w"); if (f == NULL) return -1; - if (is_get) - fscanf(f, "%255s", last_selected_fname); + if (is_get) { + ret = fread(last_selected_fname, 1, sizeof(last_selected_fname) - 1, f); + last_selected_fname[ret] = 0; + mystrip(last_selected_fname); + } else fprintf(f, "%s\n", last_selected_fname); fclose(f); @@ -505,10 +510,6 @@ fail: menu_sync_config(); - // caanoo old config compat hack - if (strcmp(Config.Gpu, "gpuPCSX4ALL.so") == 0) - strcpy(Config.Gpu, "gpu_unai.so"); - // sync plugins for (i = bios_sel = 0; bioses[i] != NULL; i++) if (strcmp(Config.Bios, bioses[i]) == 0) @@ -694,7 +695,7 @@ static char *mystrip(char *str) len = strlen(str); for (i = len - 1; i >= 0; i--) - if (str[i] != ' ') break; + if (str[i] != ' ' && str[i] != '\r' && str[i] != '\n') break; str[i+1] = 0; return str; @@ -1254,13 +1255,10 @@ static const char h_bios[] = "HLE is simulated BIOS. BIOS selection is sav static const char h_plugin_gpu[] = #ifdef __ARM_NEON__ "builtin_gpu is the NEON GPU, very fast and accurate\n" - "gpuPEOPS " -#else - "builtin_gpu " #endif - "is Pete's soft GPU, slow but accurate\n" - "gpuPCSX4ALL is GPU from PCSX4ALL, fast but glitchy\n" - "gpuGLES Pete's hw GPU, uses 3D chip but is glitchy\n" + "gpu_peops is Pete's soft GPU, slow but accurate\n" + "gpu_unai is GPU from PCSX4ALL, fast but glitchy\n" + "gpu_gles Pete's hw GPU, uses 3D chip but is glitchy\n" "must save config and reload the game if changed"; static const char h_plugin_spu[] = "spunull effectively disables sound\n" "must save config and reload the game if changed"; @@ -1278,8 +1276,8 @@ static menu_entry e_menu_plugin_options[] = mee_handler_h ("Configure built-in GPU plugin", menu_loop_plugin_gpu_neon, h_gpu_neon), #endif mee_handler_h ("Configure gpu_peops plugin", menu_loop_plugin_gpu_peops, h_gpu_peops), - mee_handler_h ("Configure PCSX4ALL GPU plugin", menu_loop_plugin_gpu_unai, h_gpu_unai), - mee_handler_h ("Configure GLES GPU plugin", menu_loop_plugin_gpu_peopsgl, h_gpu_peopsgl), + mee_handler_h ("Configure gpu_unai GPU plugin", menu_loop_plugin_gpu_unai, h_gpu_unai), + mee_handler_h ("Configure gpu_gles GPU plugin", menu_loop_plugin_gpu_peopsgl, h_gpu_peopsgl), mee_handler_h ("Configure built-in SPU plugin", menu_loop_plugin_spu, h_spu), mee_end, }; diff --git a/frontend/pandora/pcsx.sh b/frontend/pandora/pcsx.sh index 2077a29..0957b94 100755 --- a/frontend/pandora/pcsx.sh +++ b/frontend/pandora/pcsx.sh @@ -3,8 +3,7 @@ # stupid nub mode thing nub0mode=`cat /proc/pandora/nub0/mode` nub1mode=`cat /proc/pandora/nub1/mode` -echo absolute > /proc/pandora/nub0/mode -echo absolute > /proc/pandora/nub1/mode +/usr/pandora/scripts/op_nubchange.sh absolute absolute ./pcsx "$@" @@ -12,5 +11,4 @@ echo absolute > /proc/pandora/nub1/mode ./picorestore sudo -n /usr/pandora/scripts/op_lcdrate.sh 60 -echo "$nub0mode" > /proc/pandora/nub0/mode -echo "$nub1mode" > /proc/pandora/nub1/mode +/usr/pandora/scripts/op_nubchange.sh $nub0mode $nub1mode diff --git a/frontend/plat_pandora.c b/frontend/plat_pandora.c index fb33056..9ec747d 100644 --- a/frontend/plat_pandora.c +++ b/frontend/plat_pandora.c @@ -57,7 +57,7 @@ static const struct in_default_bind in_evdev_defbinds[] = { { KEY_RIGHTCTRL, IN_BINDTYPE_PLAYER12, DKEY_R1 }, { KEY_Q, IN_BINDTYPE_PLAYER12, DKEY_L2 }, { KEY_P, IN_BINDTYPE_PLAYER12, DKEY_R2 }, - { KEY_TAB, IN_BINDTYPE_EMU, SACTION_MINIMIZE }, + { KEY_MENU, IN_BINDTYPE_EMU, SACTION_MINIMIZE }, { KEY_SPACE, IN_BINDTYPE_EMU, SACTION_ENTER_MENU }, { KEY_1, IN_BINDTYPE_EMU, SACTION_SAVE_STATE }, { KEY_2, IN_BINDTYPE_EMU, SACTION_LOAD_STATE }, |