Commit Graph

338 Commits

Author SHA1 Message Date
twinaphex 454ef3fa28 (menu context) Go through opaque pointers 2014-04-01 03:51:32 +02:00
Themaister 6eb349dca6 Remove passing around video_data inside RGUI.
Makes very little sense to add cruft to the interface
when it also risks using an invalidated video_data ...
2014-03-25 10:19:02 +01:00
Themaister bad7f9af82 Check command interface in rarch_input_poll. 2014-03-17 11:34:25 +01:00
twinaphex 6752687f16 (Menu) Cleanup 2014-03-16 13:55:30 +01:00
twinaphex 767f2a4466 (Menu) Simplify menu_update_libretro_info 2014-03-10 05:50:56 +01:00
twinaphex 451f4823d2 (RARCH_CONSOLE) Set rgui->libretro_dir to default_paths.core_dir 2014-03-10 03:31:00 +01:00
twinaphex be7798a308 (XDK Menu) Forcibly hardcode core path - was giving a lot of
problems
2014-03-10 03:04:18 +01:00
Themaister 171cb7ed79 Quick and dirty fix for fullscreen RGUI crash. 2014-03-09 16:47:36 +01:00
twinaphex 813a2daaa0 (XUI) Should update entries when pushing new dir list 2014-03-08 06:18:47 +01:00
twinaphex 16eb15376d (Menu) Update menu_navigation 2014-03-08 05:48:52 +01:00
twinaphex 40e0b70ee3 (Menu) Put guards around functions that get video_data passed to them 2014-03-07 19:44:38 +01:00
twinaphex 36716706c2 (Menu) Pass video_data pointer to menu functions 2014-03-07 06:28:49 +01:00
twinaphex ef01743ef9 (Xbox 360) Expose Gamma correction option in menu 2014-03-06 05:45:11 +01:00
twinaphex 29293476c1 Ifdef libretro_free_system_info with HAVE_DYNAMIC 2014-03-06 02:14:38 +01:00
twinaphex f7c532ea30 (Xbox 360) Set default libretro info path and default core path 2014-03-06 02:11:08 +01:00
twinaphex ec682695ba (RARCH_CONSOLE) Bake in 'Core Directory' in Path Settings 2014-03-06 00:17:02 +01:00
Toad King 97c7ea07ba fix core information not working on statically linked cores 2014-03-05 16:39:08 -05:00
twinaphex 2b59b2fda0 (Mobile) Don't expose 'Black Frame Insertion' for mobile platforms -
can be dangerous for screens
2014-03-05 18:40:01 +01:00
twinaphex 75fee188e2 (Xbox 1) Refactor Xbox 1-only audio volume setting 2014-03-05 03:40:55 +01:00
Themaister 6e42f4485d Join core info lists with new string_list_join_concat(). 2014-03-04 10:17:00 +01:00
Themaister f54898350b Style nits ... 2014-03-04 09:34:34 +01:00
AndresSM 20d1ccda0a fix spacing again 2014-03-03 18:50:08 -05:00
AndresSM c9ae29e347 fix spacing 2014-03-03 18:47:50 -05:00
AndresSM 511f158255 Merge branch 'master' of github.com:fr500/RetroArch
Conflicts:
	frontend/menu/menu_common.c
2014-03-03 18:45:06 -05:00
AndresSM a863dcdeae changed the layout of the list and add optional flag for BIOS 2014-03-03 18:43:30 -05:00
AndresSM 14381bd033 changed the layout of the list and add optional flag for BIOS 2014-03-03 18:23:56 -05:00
Themaister 5efedf134c And some more nits. 2014-03-03 13:58:14 +01:00
Themaister 344ebb77e9 Fixup style. 2014-03-03 10:11:07 +01:00
Twinaphex 7a19c34ead Merge pull request #587 from fr500/master
change code to match old info file structure to avoid crashes with old i...
2014-03-03 08:02:58 +01:00
AndresSM 508fc65292 Merge remote-tracking branch 'upstream/master' 2014-03-03 01:58:54 -05:00
AndresSM dea3f1ca1f change code to match old info file structure to avoid crashes with old info files
if firmware is numbered from 1, one entry will be missing
2014-03-03 01:57:18 -05:00
Twinaphex ac6801e653 Merge pull request #586 from fr500/master
check if BIOS is present
2014-03-03 07:11:26 +01:00
AndresSM 08fadaaf8c check if BIOS is present 2014-03-03 01:02:29 -05:00
twinaphex 7d178d015a (XUI) Add RGUI_SETTINGS_CORE_INFO 2014-03-03 06:48:09 +01:00
twinaphex 57aadf75b6 (Menu) Take out stray printf 2014-03-03 06:26:58 +01:00
AndresSM 10d90176e1 Add core information menu 2014-03-03 00:22:28 -05:00
Themaister 511bc8b5ec Allow retrieval of core_info_t for selected core.
Refactor a bit to avoid lots of duplicated
libretro_free_system_info/get_system_info, etc.
Also copy the core_info_t struct on core change.
2014-03-02 14:07:07 +01:00
Themaister a13da8da19 Repurpose RSound IP address setting.
It's hardcoded for RSound, but it's actually setting the generic audio device ...
2014-03-02 12:25:38 +01:00
twinaphex f9d21c6804 (Menu) Make 'Save as Shader Preset' option available to non-HAVE_OSK targets as
well
2014-03-02 06:44:32 +01:00
twinaphex 5bb7097fbb (Menu) Add OSK enable option 2014-03-02 06:07:18 +01:00
twinaphex a58820d927 (Menu) You can now input nickname, IP address and TCP/UDP port
with the keyboard
2014-03-02 05:46:33 +01:00
twinaphex 6f19662d75 (Menu) Split up keyboard input line cb code to separate file - menu_input_line_cb 2014-03-02 05:24:57 +01:00
twinaphex 23489132b3 (Menu) VERY WIP - Netplay options. Still lacks way to input a
name/IP address/port with a keyboard callback - also state
bringing up/teardown will need to be handled
2014-03-02 04:46:26 +01:00
twinaphex bca4b77573 (Menu) Isolate menu ptr selection code to separate file menu_navigation.c 2014-02-28 23:14:42 +01:00
twinaphex 6c6fd23a3f (XUI) Use XuiListSetCurVisible instead of XuiListSetCur 2014-02-28 21:58:37 +01:00
twinaphex 450318394a (XUI) Build fixes 2014-02-28 21:55:50 +01:00
twinaphex da3cff4903 (XUI/Menu_common) Set current selection per action 2014-02-28 21:49:46 +01:00
twinaphex 6daf8a1d4f (Menu) Make input_postprocess part of menu_ctx_driver_t 2014-02-28 01:44:03 +01:00
Themaister f49f16b7fb Add missing TURBO_ENABLE. Avoid weird +1 offset. 2014-02-27 08:10:09 +01:00
twinaphex e316a966a5 (RGUI) Make it possible to map all binds from RGUI 2014-02-27 05:25:33 +01:00
Themaister b83bce794f Use consistent casing for some menu entries.
Convention so far is casing every word.
2014-02-25 19:06:02 +01:00
twinaphex df5c88c837 (Menu) Add window compositing disable option in 'General Settings'
(only implemented for Windows Vista+ right now)
2014-02-25 18:47:53 +01:00
twinaphex 180717faab (Menu) Add 'Pause if window focus lost' to General Options 2014-02-25 18:23:20 +01:00
twinaphex 7064845e0e (Menu) Move all uncategorized remaining options to 'General Options' 2014-02-25 18:09:29 +01:00
twinaphex ca067fd31b (Menu) Move Overlay Options up one level 2014-02-25 16:40:12 +01:00
twinaphex a08c6c8303 (Menu) Move Shader Options up one level 2014-02-25 16:04:36 +01:00
Themaister cd597dc247 Make resampler "driver" hook code consistent with rest. 2014-02-25 09:39:48 +01:00
twinaphex 4b1438e4b2 (Menu) Add audio resampler selection to 'Drivers' section 2014-02-25 03:23:50 +01:00
twinaphex cf71da660e (Menu common) Add more runtime checks for checking if video is initialized 2014-02-23 05:02:48 +01:00
twinaphex 94dec420cd (PSP) (Menu common) Add file paths 2014-02-16 17:27:23 +01:00
Themaister b86ca166bf Expose more SRAM settings in RGUI.
Also treat save state slot -1 as the "auto save slot".
2014-02-15 11:12:34 +01:00
Themaister d129258c32 Allow toggling fullscreen from bind in RGUI. 2014-02-08 16:27:09 +01:00
twinaphex d22999ab14 Backpot neagix patch - prevent last button input when resuming from
menu
2014-02-01 22:30:31 +01:00
twinaphex 580e05fc0f (Menu) Add menu driver selection 2014-01-27 01:32:05 +01:00
Themaister c90a8bcfec Return to RGUI when core shuts down.
Don't do this on consoles (uses dummy core).
2014-01-23 20:00:25 +01:00
Themaister 2ea94aac37 Remove rgui->base_path.
Completely useless and buggy.
2014-01-12 21:23:38 +01:00
Twinaphex 165698b9f2 Merge pull request #481 from libretro/dpad-map
Analog D-pad mapping
2014-01-08 12:01:39 -08:00
twinaphex f23e41bd17 Safety checks for accessing video_poke function pointers 2014-01-08 19:42:42 +01:00
Themaister f6643fe12d Push analog dpad mode for autoconfig as well. 2014-01-08 17:47:07 +01:00
Themaister f57a1aa032 Add support for mapping analogs to D-pad again.
Use a cleaner approach which can feasibly work on all platforms.
Uses input_push/pop_analod_dpad to modify the joyaxis field before
polling input. This way, the RetroPad D-pad binds can inherit the
joyaxis fields from ANALOG_LEFT_X_PLUS and friends.

Also add support for the field in RGUI and saves settings.
2014-01-08 17:31:14 +01:00
twinaphex 2da438bcf0 (PS3) Add paths 2014-01-05 05:00:08 +01:00
Themaister 79cd808e81 Fix broken use of SET_LIBRETRO_PATH. 2014-01-03 21:38:48 +01:00
Themaister 76a6e61fdd Use core-specific config path for RGUI cgp/glslp if applicable.
Avoids some collisions.
2014-01-03 15:31:10 +01:00
Themaister 13a006d147 Restructure per-core configs.
Merging yesterday was probably a bit premature.

One issue I overlooked was that per-core configs were not flushed to disk
when loading a new core on PC. The per-core flushing only happened on
main_exit(), which is only run on application termination. This hence
would only work with consoles with exitspawn.

config_set_defaults() must be called when loading per-core-specifics as
well or lots of options silently leak into other core specific configs
when cores are changed.

The handling with g_extern.config_path and original_config_path was
difficult logic and very error prone considering it was mutated aribitrarily by RGUI.
I've removed the original config path concept and stuck
with that config_path is *only* for global config, and
core_specific_config_path is for core-specifics (which are resolved
during config load). Saves some memory too,
which is always nice.

The block_config_read solution I proposed yesterday was not good after
all (in fact, broken on PC), and the current solution should work better.

"RetroArch Config" option in RGUI now only shows global config.
2014-01-02 17:52:48 +01:00
Toad King e0671aba8b per-core minor fixes 2014-01-01 19:06:06 -05:00
Toad King 8f45063f74 menu support for core specific config 2014-01-01 15:02:57 -05:00
twinaphex 0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Themaister 2be201ecf3 Add volume option.
There's a rudimentary volume option for XBOX1 there though ...
Dunno what to do about that.
2013-12-29 12:01:23 +01:00
twinaphex 030012f664 (360) Some build fixes 2013-12-29 04:08:42 +01:00
twinaphex 75a6db27b4 (GX/PS3) Reimplement menu binds 2013-12-26 20:11:33 +01:00
Themaister b23ff3b663 Refactor content_directory.
It shouldn't be RGUI browser dir. Instead it is a more developer centric
option for when libretro apps are distributed (along with RetroArch for
example). Also facilitates a standardized assets folder later on if
applicable.
2013-12-26 02:03:11 +01:00
Toad King 3fd4f21c9a fix check for salamander file in core menu 2013-12-24 22:28:24 -05:00
twinaphex 204113e389 Add environ callback to expose 'Content Directory' path to core -
and refactor g_settings.rgui_browser_directory
2013-12-25 02:31:35 +01:00
Toad King 2f46fa4fe9 [GX] input changes work now 2013-12-22 21:07:37 -05:00
twinaphex 742f85eafc Add HAVE_LOCATION - still need to write frontend drivers now for
location
2013-12-19 01:51:51 +01:00
twinaphex 38d785984f Add RETRO_ENVIRONMENT_GET_PERF_INTERFACE to libretro.h 2013-12-17 19:10:40 +01:00
Toad King f291e9c353 make config directory require dynamic libraries for now. fixes issue #420
the way we implement chaning directories involves loading a dummy core, which we can't do on non-dynamic core platforms right now
2013-12-16 15:05:57 -05:00
twinaphex b946a5e302 (Menu) Omit "Threaded Video" for Gamecube/Wii 2013-12-14 02:33:09 +01:00
twinaphex eacc193d74 (GX) Rewrite audio interleaving
(GX) Make menu_binds variable Wii-only for now
(Menu) Add toggleable autodetect_enable for input
2013-12-12 22:10:11 +01:00
twinaphex 21ae4c24af (Wii) Menu now takes input again from Gamecube pad, Wiimote, Wiimote + Classic
and Nunchuk
2013-12-12 20:50:42 +01:00
Themaister fde4532a33 Fix menu_search_callback.
str can be empty and non-NULL.
2013-12-10 19:46:50 +01:00
Themaister 977cec1378 Refactor keyboard event callbacks.
Go through input/keyboard_line.c to better hide internal logic
regarding keyboard line input.
2013-12-10 19:39:09 +01:00
Themaister 84c93ef94a Add experimental RGUI keyboard search feature.
Type '/' to start search, then type search string (case sensitive for
now due to strcasestr being GNU ext). When done, type return.
2013-12-09 16:18:58 +01:00
twinaphex 7bcb695c68 (menu_common) Rename 'Game' to 'Content' - RetroArch is not limited
to games/emulators
2013-11-26 21:41:27 +01:00
twinaphex 6c638f91f4 (Android) Big changes -
- both MainMenuActivity and RetroActivity are single instances now
- AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered
- onBackPressed right now calls an instance of MainMenuActivity
(reuses the existing activity on the stack)
- User can switch back and forth between RetroActivity and MainMenuActivity
with AKEYCODE_BACK / Back button
- When a subsequent intent is launched after RetroActivity has already been
started up once, the pending intent gets passed to the existing RetroActivity
throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do
- With this we can now switch seamlessly between Android UI and RetroArch
itself.
2013-11-24 22:02:57 +01:00
twinaphex 7843a3bec3 (Menu) Add iterate to menu_ctx_driver_t - needed for RMenu XUI 2013-11-19 06:35:11 +01:00
twinaphex 8fe6a04b56 (Menu) Add populate_entries to menu_ctx_driver - will be needed for RMenu XUI 2013-11-19 06:09:14 +01:00
twinaphex 723fddea80 (PS3/menu_common) Add System BGM Control setting 2013-11-18 19:50:47 +01:00
twinaphex 921d45decc (Xbox 1) Build fix 2013-11-18 18:03:48 +01:00
twinaphex 275789d99f (HAVE_OSK/Xbox 1/PS3) Add Xbox 1/PS3/HAVE_OSK-specific additions
to settings
2013-11-18 02:57:31 +01:00
twinaphex c062f36059 (OSK) Cleanup conditionals in menu_common.c 2013-11-16 15:56:52 +01:00
twinaphex 6828183b64 (OSK) Move runtime state (OSK callbacks) to g_extern 2013-11-16 15:54:50 +01:00
twinaphex 9558a47ada (PS3 RGUI) Working OSK input 2013-11-15 23:19:44 +01:00
twinaphex be356b7b67 (Menu) Add extra settings 2013-11-15 22:53:58 +01:00
twinaphex e8723dec16 (HAVE_OSK) Add OSK to menu iterate function 2013-11-15 05:18:36 +01:00
twinaphex b20360948f (menu_common) Remove HAVE_OSK - will have to be reimplemented 2013-11-12 23:09:01 +01:00
twinaphex f9b502773d (OSK PS3) Fix free 2013-11-12 20:02:25 +01:00
twinaphex 8ce8051654 (OSK PS3) Refactor OSK PS3 input 2013-11-12 17:16:30 +01:00
twinaphex fde4311ef5 (PS3) Refactor OSK code - next thing should be abstracting it 2013-11-11 16:58:12 +01:00
twinaphex 6a9bc1bfa4 (Menu) Show camera driver inside 'Drivers' category 2013-11-11 15:39:46 +01:00
twinaphex 6997c207bd Remove HAVE_FILEBROWSER/remove file_browser.c 2013-11-11 04:12:30 +01:00
twinaphex 0e155f0ab4 (Xbox 1 - menu) Fix initial dir mappings 2013-11-11 03:39:30 +01:00
twinaphex 588224aaed (Menu) Use void* for arguments instead of passing by rgui_handle_t* 2013-11-08 15:38:18 +01:00
twinaphex a4d5c3c99c (Menu) Add init_assets/free_assets to menu_context 2013-11-08 15:13:14 +01:00
twinaphex 3d016bd5bc (Menu) Avoid warnings with SNC compiler 2013-11-08 07:21:08 +01:00
twinaphex a71314bded (file_list) Rename rgui_list to file_list - also replace function names 2013-11-08 04:48:31 +01:00
twinaphex 4ab64bcd8f (Menu) Rename some more functions with prefix rgui_ 2013-11-08 04:43:42 +01:00
twinaphex f8c37fc933 (Menu) Simplify menu preprocessor conditionals - there is now
one common catch-all define called HAVE_MENU
2013-11-08 04:36:47 +01:00
twinaphex 9d4d6fe23d (Menu) Refactor menu code - change namespace of functions
(PS3 Menu) Add PAL60 mode
2013-11-08 03:37:06 +01:00
twinaphex 0faa3fbbde (RARCH_CONSOLE) Compile in SRAM Autosave option in by default
for RARCH_CONSOLE now
2013-11-08 01:54:46 +01:00
ToadKing 3124dff2a3 fix deferred loading on consoles 2013-11-07 18:28:49 -05:00
twinaphex da8f8b6d63 Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead
2013-11-07 21:44:44 +01:00
twinaphex e61d086ef3 (PS3) Add RMenu as a rasterizer now for common menu interface 2013-11-07 02:54:09 +01:00
twinaphex c1c49f6ff6 (RGUI) Move Video/Audio/Input/Path Options to Settings as submenus 2013-11-07 00:27:30 +01:00
twinaphex 1d8da54f22 (menu_common) Build fix 2013-11-05 12:31:14 +01:00
twinaphex feec9bc9fa (Menu_common) Core selection - make it work on all console platforms
and not just Wii
2013-11-05 10:51:23 +01:00
twinaphex 2299a4fb3f (RGUI) Fix PS3 directory paths 2013-11-05 00:46:07 +01:00
twinaphex 3d756537ac Move popping of RGUI list out of rgui.c rasterizer - should make
all of the RGUI list state code self-contained inside menu_common.h
2013-11-04 16:37:51 +01:00
twinaphex 6bc239abf7 (RGUI) Turns rgui.c into a raster driver for common
menu code - rmenu.c and rmenu_xui.cpp will need to be
adapted accordingly
2013-11-04 16:23:37 +01:00
twinaphex 9688288837 Move initing/deiniting of menu_list over to menu_common.c - turn
rgui.c into a rasterizer
2013-11-04 13:18:07 +01:00
twinaphex 0612ec702c (RGUI) menu_set_settings_populate_entries moved to menu_common.c and
renamed menu_populate_entries
2013-11-04 12:32:43 +01:00
twinaphex fb8bc6ced6 Move more logic to menu_parse_and_resolve - rgui.c and rmenu.c
should become purely rasterizers only
2013-11-04 11:57:24 +01:00
twinaphex e9cfb210bd (RGUI) Combine menu_parse and menu_resolve_names 2013-11-04 11:53:25 +01:00
twinaphex cdb179f38a (RGUI) Combine resolve_names functions into one 2013-11-04 11:33:11 +01:00
twinaphex 1bc17ca81c (menu_common) load_menu_game_prepare - add RARCH_CONSOLE ifdef 2013-11-03 15:17:45 +01:00
Themaister e159007aca Remove a redundant branch. 2013-11-03 10:46:10 +01:00
twinaphex c55a0885c7 (RARCH_CONSOLE) Fixes pushes to ROM history list - it should only push an entry
if either g_extern.system.no_game is true, or when either *tmp
or g_extern.fullpath is not null. Otherwise it will push an entry
with a bogus 'ROM path' to the list, and this broke RMenu badly
2013-11-03 05:49:46 +01:00
ToadKing fea062ce67 fix static library builds with empty core directories 2013-10-30 21:53:01 -04:00
twinaphex d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Themaister 48602cbdbb Refactor out to menu_init_core_info. 2013-10-11 09:17:32 +02:00
twinaphex 310f404747 Get rid of MODE_INFO_DRAW 2013-10-11 01:28:26 +02:00
twinaphex acde3339cf (Filebrowser/RMenu) More fixes 2013-10-07 22:00:54 +02:00
twinaphex b163096028 (RMenu/Filebrowser) Refactor filebrowser 2013-10-07 09:45:49 +00:00
twinaphex af10f3f5bc Split up file_list into separate compilable file 2013-10-07 08:56:16 +00:00
twinaphex 79631ece8d Start using libretro_dir for RARCH_CONSOLE too 2013-10-06 15:09:36 +00:00
Themaister a3ddf8ed26 Sort results for libretro cores correctly. 2013-10-06 15:10:00 +02:00
Squarepusher 8a674d07e9 Merge pull request #326 from libretro/coreinfo
Integration of core info files in RGUI.
2013-10-06 04:54:46 -07:00
Themaister 8c768b0207 Move core_info stuff to menu_common. 2013-10-06 12:31:04 +02:00
twinaphex abb829283b Take out messy Dpad emulation code - this will require an entire
rewrite where we come up with a solution that works the same across
console/PC/mobile
2013-10-05 20:55:37 +00:00
Themaister 050e2375e3 Begin implementing core autoselect. 2013-10-05 17:07:56 +02:00