Commit Graph

367 Commits

Author SHA1 Message Date
twinaphex c545c3e4f2 (RGUI) Split off RGUI display presentation code into separate file - should
be going through interface next
2013-09-28 04:45:44 +02:00
twinaphex 9e8d5d05cf Rename directory_parse to rgui_directory_parse to avoid namespace conlict 2013-09-27 21:05:51 +02:00
twinaphex e58cec4f05 (RMenu) Take out SETTING_FONT_SIZE 2013-09-27 20:32:29 +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 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 5d63d4d9e6 Fix potential segfault on config swap.
Main Menu list can shrink and selection_ptr wasn't set to a sane value.
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 a3d61e1ec5 Add Config Directory option to RGUI. 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
twinaphex f74c698822 (RMenu) Start rewriting input code to be uniform to RGUI 2013-09-26 22:34:51 +02:00
twinaphex 0039ade630 (RMenu/RGUI) Fast L/R scrolling 2013-09-26 15:50:10 +02:00
Themaister 841d8fa8e1 Add video_rotation.
Replaces g_extern.console.screen.orientation.
Rotation semantics have slightly changed to be more composable.
The rotation is now video_rotation + rotation set by cores themselves
(if allowed).

The config is now also saved properly.
2013-09-22 11:45:04 +02:00
Themaister 086caef070 Add input_libretro_device_pN setting.
Allows input device type to be saved in a config, which tremendously helps usability
for PlayStation 1 cores.
2013-09-22 11:09:14 +02:00
twinaphex 3b70e3be4a (RMenu XUI) Use interface for RMenu XUI too 2013-09-19 15:01:17 +02:00
twinaphex 45f46abb6d Create a menu_context interface 2013-09-19 14:49:07 +02:00
twinaphex 1fc1014448 More g_settings manipulation moved over to set_settings 2013-09-19 12:24:12 +02:00
twinaphex 81280896ed Move more g_settings manipulation to settings.c (settings_set) 2013-09-19 11:38:12 +02:00
Themaister 8707c4c648 Add screenshot directory option to RGUI. 2013-09-16 23:30:42 +02:00
Themaister 815cf1f35c Add GPU screenshots option. 2013-09-16 23:12:34 +02:00
Themaister bbbe058cad Avoid OSD fonts appearing on screenshots.
Clears message queue and renders a cached frame
before taking screenshot when taking GPU screenshots.
2013-09-16 22:29:07 +02:00
ToadKing 246139c022 fix rgui without dynamic cores 2013-09-15 17:09:23 -04:00
Themaister 04a1b4b652 Add Core Directory option to RGUI.
Also clean up some useless branches to ternaries.
2013-09-12 22:00:59 +02:00
Themaister a6268692b6 Add window scale x/y and crop overscan options. 2013-09-01 13:48:43 +02:00
Themaister b2bf3c12de Add swap_interval support.
Again, mostly useful for 120Hz monitors, and/or playing content which is
a fraction of monitor refresh rate.
2013-09-01 13:20:10 +02:00
pinumbernumber b3b92ee563 RGUI: Do not scroll if all items are visible at once 2013-08-30 11:29:54 +01:00
Themaister 62c34c7871 Add black_frame_insertion support for 120 Hz monitors. 2013-08-30 09:35:13 +02:00
twinaphex 7ad663c5f2 Get rid of RARCH_PERFORMANCE_MODE everywhere 2013-08-25 22:21:23 +02: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 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 9ce4684e14 Make sure ASPECT_RATIO_CUSTOM is set to something sane. 2013-08-19 23:00:17 +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 fe433b2322 Add new header file_ext.h - refactor out frontend_console.h 2013-07-15 14:54:40 +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 77d5190a01 (OSX) Make dummy context file - compile in RetroArch with Griffin 2013-07-04 15:01:38 +02:00
twinaphex 1ff0107bd4 Clang warnings fixed
'Equality comparison with extraneous parentheses' semantics warnings in
Clang fixed
2013-07-02 15:23:20 +02:00
Themaister 40046531f3 Should fix GPU screenshots if last frame was duped. 2013-06-22 00:38:00 +02:00
Themaister 73bfae9602 Always render cache when using HW render.
When using HW render, only GPU screenshots are allowed.
2013-06-16 13:56:49 +02:00
Themaister 312154d110 Use common rarch_take_screenshot in RGUI.
Adds GPU screenshot support from RGUI by rendering a clean frame
then taking screenshot.

Should also fix screenshot crash when using GL cores.

Always uses g_settings.screenshot_directory path.
I didn't see the purpose of the RARCH_CONSOLE #ifdef. Probably a Wii
hack from way back ...
2013-06-16 13:44:07 +02:00
Themaister d5a8d3bfb0 Can update video refresh rate from RGUI. 2013-06-07 14:34:09 +02:00
Themaister d8d9073f30 Allow resetting frame time estimator from RGUI. 2013-06-07 14:26:33 +02:00
Themaister b0b6e65ab6 Add monitor refresh rate monitor in RGUI.
Doesn't support updating refresh rate setting yet.
2013-06-07 14:10:42 +02:00
twinaphex 58557f837b (Menu) Reuse rgui_input for both HAVE_RMENU and HAVE_RGUI 2013-05-27 11:11:23 +02:00
Themaister 43a6346d26 Adds video_hard_sync_frames.
Allows to control the maximum amount of frames that can be queued on
GPU.
2013-05-26 13:43:24 +02:00
twinaphex 542a6b0385 (GX) Fix Gamecube build 2013-05-24 18:38:13 +02:00
twinaphex 1e05541477 (GX) Change ifdef HW_RVL to ifdef GEKKO for Gamecube resolution
support
2013-05-23 13:26:06 +02:00
twinaphex 5608683d41 Label of RGUI_OVERLAY_DIR_PATH - change to <default> 2013-05-22 23:02:03 +02:00
twinaphex 0977917837 (RGUI) Overlay directory path can now be set (and setting will be
saved)
2013-05-22 22:31:16 +02:00
twinaphex 79ea30f54f Introduce config_save_on_exit 2013-05-22 15:35:28 +02:00
twinaphex 82b6ab3ec7 (NGC) Build fixes 2013-05-22 00:30:02 +02:00
Themaister a66fdf8b5f Style nits. 2013-05-21 08:46:51 +02:00
ToadKing 655546849a (RGUI) allow setting paths from RGUI 2013-05-20 22:17:26 -04:00
Themaister 1325794178 Remove config path in RGUI.
Wonky, opens a can of worms to change it.
2013-05-18 00:34:52 +02:00
Themaister fd47aab9ee Allow user to browse overlays more easily. 2013-05-18 00:16:31 +02:00
Themaister 1a01c2b54a Print OVERLAY in menu when selecting one. 2013-05-18 00:14:11 +02:00
Themaister 44449a0ae6 Make overlay_scale logic consistent with overlay_alpha. 2013-05-18 00:09:09 +02:00
Themaister 2b72d6a30c Fixup overlay handling in RGUI.
- Fix massive memory leaks and behavior.
- Flush menu stack to input options.
- Display which overlay is used.
- Display (DIR)/(FILE) when overlay is searched for.
- Avoid potential floating point error when incrementing/decrementing
  opacity.
2013-05-18 00:04:29 +02:00
twinaphex 69e2bbd57e (RGUI) Add Overlay Scale option - when downscaling, doesn't seem to
update the hitboxes
2013-05-17 23:37:48 +02:00
twinaphex 21238048a3 (RGUI) Add opacity overlay setting 2013-05-17 23:26:11 +02:00
twinaphex 04e884a213 (RGUI) Make it possible to change overlays from RGUI 2013-05-17 23:13:09 +02:00
Themaister ea8aab4c42 Move rewind and SRAM settings around.
Move to general "Settings".
2013-05-17 22:22:15 +02:00
Themaister 559b5d39fc Reallow left/right RGUI scroll.
Assumed this was a bug as right scroll was broken.
Fixes right case as well.
2013-05-13 00:26:46 +02:00
Themaister f9cfface71 Don't set do_held on left/right.
Fixes a bug where NAV_MENU was checked for and not (1 << NAV_MENU).
2013-05-11 14:26:05 +02:00
ToadKing 9b7bd42cc0 fix compiler warning 2013-05-08 19:12:18 -04:00
Themaister 7f88b51828 Split video and shader toggle options.
Fixes crashes when left/right was used on browser options.
2013-05-08 18:17:30 +02:00
Themaister 3b06905329 Update RGUI shader menu when a preset is loaded. 2013-05-06 16:41:31 +02:00
twinaphex 3e39c1ebef (GX/RGUI) Build fix 2013-05-06 00:54:17 +02:00
twinaphex f2e8f1f1fd (RGUI) Create Settings menu 2013-05-05 22:02:47 +02:00
ToadKing 858ad034c8 don't scroll tickers for entries not highlighted 2013-05-05 15:42:45 -04:00
twinaphex 9c3d943600 (RGUI/RMenu) Get rid of SRAM/Savestate dir enable - obsolete now 2013-05-05 16:02:57 +02:00
twinaphex 092b2625dd (RMenu/RGUI) Drop MODE_MENU_INGAME 2013-05-05 15:20:45 +02:00
Themaister 1540cb9bba Use ticker line across the board. 2013-05-05 11:31:43 +02:00
Themaister 65deccfcad Refactor ticker line creation.
Move to menu_common. Can be reused.
2013-05-05 11:26:02 +02:00
Themaister 5b8257d62c Add ticker line to settings in RGUI.
Adds a ticker line so that long paths can still display in full
without overflowing the terminal.
2013-05-05 11:17:27 +02:00
Themaister e88b3204bc Clarify Hard VSync wording.
Can use Hard Sync even without VSync.
2013-05-05 09:54:54 +02:00
Themaister a12d163bde Move Video Options out of shader manager branch. 2013-05-04 23:44:50 +02:00
Themaister fdfdb43ada Move shader settings to their own sub-menu. 2013-05-04 23:44:50 +02:00
Themaister 086db7c24a Remove RATE_CONTROL in RGUI.
It's redundant as 0.000 delta disables it anyways.
2013-05-04 23:20:38 +02:00
twinaphex 58899bbbf2 (RGUI) Fixup config file 'option' 2013-05-04 22:54:17 +02:00
Themaister f5d4008018 Check g_settings.video.hard_sync per frame.
Don't use hard_sync default in RGUI.
2013-05-04 22:49:06 +02:00
twinaphex 6992ab8943 (RGUI) Add placeholder rate control option - needs way to be 'enabled'
/ 'disabled' ingame
2013-05-04 22:47:14 +02:00
twinaphex d447dba432 (RGUI) Add Vsync and Hard sync options 2013-05-04 22:29:22 +02:00
twinaphex f1d55b9360 (RGUI) Add Path options (note - not yet changeable - we will need 'scrolling'
if a label on the right side is too long to fit the screen - something
like a 'ticker' that increments the text from right to left by one
character per frame)
2013-05-04 21:17:47 +02:00
twinaphex 7c21bb1496 (RGUI) Split up 'disk options' into Disk submenu 2013-05-04 19:26:34 +02:00
twinaphex f93513113d (RGUI) Split up audio options into 'Audio Options' submenu 2013-05-04 19:00:57 +02:00
Themaister e3d78af36c Fix off-by-one bug.
Rename "Device No." to Player to clarify a bit.
2013-05-04 17:03:06 +02:00
Themaister 254d9b36d6 Flush RGUI menu stack correctly.
Menu stack wasn't flushed out correctly on ROM load.
2013-05-04 16:56:44 +02:00
twinaphex a5f89d88ce (RGUI) Make 'input' into its own category (should have been done from the start
really)
2013-05-04 16:48:53 +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
Themaister 2f61e3c65d Fix punctuation. 2013-05-01 16:49:23 +02:00
Themaister e2229ec3c3 Use strcasecmp in extension checking. 2013-04-30 23:58:49 +02:00
Themaister 1d9eea880a Add zip as extension in RGUI file browser. 2013-04-30 23:36:29 +02:00
Themaister 19f5d53b9d Fix capitalization. 2013-04-29 22:02:46 +02:00
Themaister 1cab391be8 Add SRAM autosave option to RGUI. 2013-04-29 16:12:15 +02: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