Commit Graph

253 Commits

Author SHA1 Message Date
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
Squarepusher 425c4a19ab Merge pull request #325 from libretro/libretrodesc
Resolve libretro core names in RGUI.
2013-10-04 20:40:34 -07:00
Themaister a53680a57e Resolve libretro core names in RGUI. 2013-10-04 17:33:21 +02:00
Themaister b72996da86 Add RGUI scroll acceleration. 2013-10-03 20:44:33 +02:00
Themaister b3c1afe2ec Redirect keyboard events to RGUI.
Fixes issue where libretro cores receive keyboard events even though
they are not running (inside RGUI).
2013-09-30 18:53:56 +02:00
Themaister b4a648ca8a Merge branch 'master' of github.com:libretro/RetroArch into inputconfig
Conflicts:
	frontend/menu/menu_common.h
	frontend/menu/rgui.c
2013-09-30 17:50:05 +02:00
twinaphex 103cf3a94e (RMenu/RGUI) Reuse two shader settings across RGUI/RMenu 2013-09-30 02:17:15 +02:00
twinaphex 66431d1524 (RMenu XUI) Refactor - implement rgui_iterate - go through same
code in menu_common.c as RGUI/RMenu
2013-09-30 00:54:35 +02:00
Themaister c5a033f7e1 Basic configuration seems to work. 2013-09-29 19:09:33 +02:00
Themaister dad5e347d8 Start adding joypad config. 2013-09-29 17:58:46 +02:00
twinaphex 5a81028f96 Split up filebrowser code 2013-09-28 23:47:37 +02:00
twinaphex 2ddbbcd85e Ifdef shader_manager_init function call invocation 2013-09-27 18:54:47 +02:00
twinaphex 5040f852ef Avoid warnings passing rarch_time_t value to rarch_sleep - cast to
unsigned int
2013-09-27 18:43:34 +02:00
twinaphex b858d268e6 (RMenu) Cleanups - comments no longer necessary 2013-09-27 18:00:54 +02:00
Hans-Kristian Arntzen 884ae34f0a Merge pull request #305 from libretro/configswap
Configswap
2013-09-27 08:34:36 -07:00
twinaphex af8caf45f7 (RGUI) RGUI_ACTION_SETTINGS was deprecated - get rid of it 2013-09-27 17:00:00 +02:00
twinaphex 7056edf143 (RMenu) Bake in rgui_list for PS3/Xbox 1/360 too 2013-09-27 16:52:03 +02:00
twinaphex 525f33687a (RGUI/RMenu) Useless include removed 2013-09-27 15:31:04 +02:00
twinaphex 52703220ea (RMenu/RGUI) Refactor RGUI/RMenu controls - now uses straight RetroPad polling
from input driver without awkward button mappings
2013-09-27 14:31:16 +02:00
Themaister 8238ba7d50 Allow saving new config files directly from RGUI.
The file name is inferred to avoid typing.
2013-09-27 00:19:03 +02:00
Themaister 17e2da87e1 Don't hardcode rgui.cgp/glslp as default.
In a multi-config environment, shader manager could conflict.
Instead, infer the default RGUI shader cgps/glslps from config path.

Fallback to old rgui.cgp/rgui.glslp if we use a default config.
2013-09-27 00:19:02 +02:00
Themaister 217ad4b04d Update shader manager on game load. 2013-09-27 00:19:02 +02:00
Themaister ce6de72181 Some cleanups in settings saving/load defaults. 2013-09-27 00:18:17 +02:00
Themaister aecbf71a90 Begin adding config swapping support to RGUI. 2013-09-27 00:17:42 +02:00
Themaister 933844274c Build fix. 2013-09-27 00:09:01 +02:00
twinaphex f74c698822 (RMenu) Start rewriting input code to be uniform to RGUI 2013-09-26 22:34:51 +02:00
Themaister b11895ec4c Build fix. 2013-09-26 21:45:35 +02:00
twinaphex 0039ade630 (RMenu/RGUI) Fast L/R scrolling 2013-09-26 15:50:10 +02:00
Themaister c2e863ac85 Fixup menu_ctx_init_first.
Use it directly instead of find_driver().
2013-09-19 17:44:28 +02:00
twinaphex 45f46abb6d Create a menu_context interface 2013-09-19 14:49:07 +02:00
Cray Elliott ba095dca79 Fix compilation error introduced by analog overlay changes 2013-09-06 01:43:55 -07:00
meancoot 149a0f37d0 (Overlay Analog) Coding style fixes 2013-09-05 18:19:07 -04:00
Themaister 32cae444a0 Fixup new private extensions.
Moved private stuff to libretro_private.h.
Dropped use of retro_variable (redundant and wrong type).

Didn't understand difference between EXEC_LOAD and EXEC_RELOAD at all.
Only one was used anyways ...
2013-08-25 11:10:32 +02:00
twinaphex edfab9630a Add RETRO_ENVIRONMENT_EXEC - refactor some stuff internally in
libretro frontend to implement this new functionality
2013-08-25 01:37:15 +02:00
twinaphex 7c81f554af Add RETRO_ENVIRONMENT_SET_LIBRETRO_PATH to libretro API. Also gives us opportunity
to write internal code - other libretro implementations can now just implement
this environ callback and have other external frontends of their own be able to swap
in/out libretro cores from outside
2013-08-24 22:35:54 +02:00
Themaister 2b28050c15 Build fixups. 2013-08-11 01:16:08 +02:00
Hans-Kristian Arntzen 21a1ae72d5 Remove unused variables. 2013-08-11 01:08:00 +02:00
Themaister b51fca8411 Fix X/Y on Shield. 2013-08-01 20:04:36 +02:00
twinaphex 2323cee6a7 Get rid of MODE_EXIT 2013-07-27 20:34:06 +02:00
twinaphex 328ce6ad31 (RARCH_CONSOLE) Combine frontend_console.c with frontend.c - hope
and pray this doesn't break hard
2013-07-15 14:19:29 +02:00
Themaister 73016a2752 Throttle RGUI with timers.
Some drivers have broken VSync and without audio blocking, RGUI can blast away
at 1k+ FPS making it unusable.
2013-07-06 21:16:54 +02:00
twinaphex b696388f34 (Clang) No warnings now 2013-07-03 02:59:46 +02:00
Themaister bb3bac7e0d Fix ROM history being deleted when ROM includes ;.
Using ';' as a delimiter in history file was a mistake as it breaks
when files have this file included. Instead, split on newline.

To avoid reading broken history files, the history file path is
changed.

Also add game_history_path/size to config.
2013-06-09 22:24:30 +02:00
twinaphex 2b32c4dd9b (RMenu) Remove stub 'Default all' options which were no longer used 2013-06-03 01:18:09 +02:00
twinaphex 537be9f6a3 (Xbox/RMenu) Prevent empty string_lists returned by dir_list_new from
crashing the program
2013-06-02 22:32:06 +02:00
Themaister 1fb7ff7c4e Push the correct path to history.
If a zipped ROM was loaded directly from CLI, the extracted path would
be pushed to history.
2013-05-30 22:53:40 +02:00
twinaphex 58557f837b (Menu) Reuse rgui_input for both HAVE_RMENU and HAVE_RGUI 2013-05-27 11:11:23 +02:00
Themaister de7fc0fb6f Increase ROM history size to 100. 2013-05-25 12:07:34 +02:00
Themaister 085929a40d Fix potential segfault if rgui->info is broken. 2013-05-18 22:45:23 +02:00
Themaister 608f88bd55 Refactor initial ROM history save.
Add menu_rom_history_push_current().
2013-05-17 18:33:45 +02:00
Themaister 50bd5bb4ff Save to ROM history when loading from CLI. 2013-05-17 18:22:03 +02:00
ToadKing 5e839e5d74 fix compile warnings 2013-05-05 16:19:27 -04:00
ToadKing 858ad034c8 don't scroll tickers for entries not highlighted 2013-05-05 15:42:45 -04:00
twinaphex 092b2625dd (RMenu/RGUI) Drop MODE_MENU_INGAME 2013-05-05 15:20:45 +02:00
Themaister 65deccfcad Refactor ticker line creation.
Move to menu_common. Can be reused.
2013-05-05 11:26:02 +02:00
twinaphex e6b3bb079b (RMenu/RGUI) Add rgui->current_pad 2013-05-04 16:15:05 +02:00
Themaister 946a2a2fc1 Update rgui->load_no_rom in the right place. 2013-05-04 14:55:29 +02:00
Themaister 13f0a8548f Fix crash when rgui->info.library_name is NULL.
If retroarch was started with g_settings.libretro as a directory, and a
ROM loaded. Going into RGUI would see g_settings.libretro as a directory
and rgui->info wouldn't be properly initialized.

Fixed by updating g_settings.libretro if a specific core is resolved.
2013-05-04 14:32:00 +02:00
Themaister 175e657071 Clear out load_no_rom after rom load. 2013-05-02 15:43:11 +02:00
Themaister 99990173cc Can load without ROM in RGUI (HAVE_DYNAMIC).
Not sure how this will work on RARCH_CONSOLE, but it'll probably be
checked for in startup on core load somehow and either start in menu or args->no_rom.
2013-05-02 14:46:05 +02:00
ToadKing a2247272ef add back in ROM load failure message 2013-04-30 21:45:02 -04:00
Themaister 81e8a51728 Should fix RMenu zip support. 2013-05-01 01:18:01 +02:00
ToadKing 210afcb23f (RGUI) fix ROM loading message not appearing 2013-04-29 16:01:41 -04:00
Themaister e15ba44c50 Drop ROM history if config_path isn't set.
Avoid loading and saving history from/to a potential broken path.
2013-04-29 14:12:39 +02:00
twinaphex 86628d3462 Add param to load_menu_game_history - rgui->selection_ptr is
unused yet in RMenu/RMenu XUI, so need to pass a param to function
2013-04-29 03:10:26 +02:00
twinaphex 4a772c3fa8 (Wii) Working Load Game History 2013-04-29 03:05:46 +02:00
twinaphex 3b5c85f485 (CONSOLE) Fixes history list on console when g_extern.fullpath
does not point to a ROM path
2013-04-28 17:30:08 +02:00
twinaphex 775ed24633 Fix for consoles in load_game_menu_prepare 2013-04-28 16:58:58 +02:00
twinaphex 63ba647018 Move all of the code to menu_common.c to avoid code duplication
across frontends
2013-04-28 16:38:13 +02:00
twinaphex 5aa4101620 (Menu) Move MODE_LOAD_GAME mechanics to upper function rarch_main 2013-04-28 15:00:37 +02:00
twinaphex 8768a69bc6 Move history_free and history_init to higher-level menu_common.c 2013-04-28 03:48:35 +02:00
twinaphex 74b5b8549e (RMenu) Drop ifndef for RMenu 2013-04-27 16:40:01 +02:00
twinaphex 3b2d41360c (RMenu) Initial 'doing menu toggle' without delay timers 2013-04-27 14:52:39 +02:00
twinaphex 5f449fc870 (RMenu) Add Settings link to Quick Menu 2013-04-27 03:50:42 +02:00
Themaister ac6c576d29 Drop dependency on delay_timer in RGUI. 2013-04-26 23:52:29 +02:00
twinaphex 0addc6d885 (RMenu) Use proper extensions 2013-04-24 18:58:07 +02:00
twinaphex 7a2c78ae68 Start unifying global init/deinit code for console 2013-04-22 22:16:46 +02:00
Themaister 1f96c5aeb3 Don't spam apply_state_changes in RGUI. 2013-04-21 15:43:14 +02:00
Themaister 610f33962a Add fullscreen toggle to RGUI.
Drop hotkey handling. Needed to add delay timer hackery in that case.
2013-04-21 00:01:49 +02:00
Themaister be01a0ea59 Refactor aspect ratio handling.
Rework aspect ratio handling in RGUI.
Custom viewports work on PC. Ensure that aspect_ratio_idx persist
through reentrancy. Change ASPECT_RATIO_AUTO to ASPECT_RATIO_SQUARE to
better signal that it's the square pixel option.

Add ASPECT_RATIO_CONFIG as an option to use config file defined aspect
ratio.
2013-04-20 10:56:04 +02:00
twinaphex b7e71f17b8 (RMenu/RGUI) Move menu_iterate to upper-layer menu_common 2013-04-19 17:53:01 +02:00
twinaphex 16a40af173 (RGUI) Move menu_stack code back into rgui.c 2013-04-18 22:22:25 +02:00
twinaphex fbb82177f3 (RMenu XUI) Build fix 2013-04-18 19:09:38 +02:00
twinaphex 798f40b6a1 (RMenu/RMenu XUI) Move browser_update to upper-layer menu_common.c -
use same function for both RMenu and RMenu XUI
2013-04-18 19:05:43 +02:00
twinaphex 96f2ecce20 (RMenu/RGUI) Move filebrowser/menu stack initialization to upper-layer
menu_init() function
2013-04-18 18:33:03 +02:00
twinaphex 5b35feddae (RMenu/RGUI) Free rgui and filebrowser in upper-layer menu_free() function 2013-04-18 17:29:04 +02:00
twinaphex 0127f5eadd (RMenu/RGUI) menu_init - check for NULL return value and fail gracefully
if so
2013-04-18 15:14:19 +02:00
twinaphex 7c4b730e51 (RMenu/RGUI) Move menu_init/menu_free to menu_common.c 2013-04-18 14:58:47 +02:00
twinaphex 84f80dc2c1 (RMenu/RGUI) Create menu_common to tie RMenu/RGUI more closely together 2013-04-17 23:31:49 +02:00