Commit Graph

823 Commits

Author SHA1 Message Date
twinaphex
0ba8db53cb (RMenu) Settings toggling fixed 2013-09-29 16:25:36 +02:00
twinaphex
25e7595a2d (RMenu) Reuse menu_set_settings 2013-09-29 16:07:36 +02:00
twinaphex
963b041d14 (RGUI) Split settings up into new file - menu_settings.c 2013-09-29 15:47:45 +02:00
twinaphex
43e3aa3372 (RMenu) Swap out controls for Resize so it works the same as RGUI 2013-09-29 05:08:57 +02:00
twinaphex
a1c8943d59 (RMenu) render_ingame_menu_resize - will be made same as RGUI so all the
bloat can go already
2013-09-29 05:03:36 +02:00
twinaphex
9abcd71e42 (RMenu) Remove INPUT_PRESET_CHOICE 2013-09-29 04:47:32 +02:00
twinaphex
cbe6e2ab6b (RMenu) Take out CONTROLS_SCHEME/SAVE_CUSTOM_CONTROLS - configswap is a
better substitute
2013-09-29 04:30:42 +02:00
twinaphex
977086d7da (RMenu) Quick fix when shaders are compiled in 2013-09-29 04:10:24 +02:00
twinaphex
33f1a4931d (RMenu) Take out non-working 'Autostart CGP on startup' setting 2013-09-29 04:05:10 +02:00
twinaphex
a3559645b2 (RMenu) Get rid of RMenu frame advance - we will use RetroArch's
frame advance functionality from now on - this hacky stuff can go
2013-09-29 03:36:51 +02:00
twinaphex
bc152410ef (RMenu) Have RMenu act exactly like RGUI - pressing Back in
LIBRETRO_CHOICE goes back to menu - you can now press left/right
in History list
2013-09-29 03:23:25 +02:00
twinaphex
91f2d76fbe (RMenu) Now shows no entries available when trying to enter a dir that has
no files with valid extensions - can also exit out of this dir
2013-09-29 01:34:34 +02:00
twinaphex
5a81028f96 Split up filebrowser code 2013-09-28 23:47:37 +02:00
twinaphex
14983ab56e (RGUI) rgui_flush_menu_stack - unroll 2013-09-28 18:34:37 +02:00
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
74cfcfa713 (rmenu.h) Get rid of useless externs 2013-09-28 04:28:28 +02:00
twinaphex
c5beaec16c (RMenu) Make RMenu even more minimalist - fit more text onscreen 2013-09-28 04:14:07 +02:00
twinaphex
f04501bcb2 (Rmenu) yellow selected file in filebrowser instead of red 2013-09-28 03:21:26 +02:00
twinaphex
488e0d10ea (RMenu) Properly goes back now a prev dir for select_directory/select_file 2013-09-28 02:40:24 +02:00
twinaphex
725be8ff94 (360/XDK) Build fixes 2013-09-28 01:46:55 +02:00
twinaphex
ff3ce71b98 (RMenu) select_directory - remove logic at RGUI_ACTION_CANCEL 2013-09-27 22:52:05 +02:00
twinaphex
24a05c5e5c (RMenu) Shows path again - get rid of comment in select_directory 2013-09-27 21:59:45 +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
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
twinaphex
1a0a23ac8e (Rmenu) Refactor all text rendering to render_text function - called once 2013-09-27 17:35:47 +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
twinaphex
123c1e2c88 (RMenu) Forgot break for case 2013-09-27 14:05:40 +02:00
twinaphex
a825ea8e53 (RMenu) Refactor select_rom into select_file 2013-09-27 13:47:21 +02:00
twinaphex
2ead9b328b (RMenu) Move filebrowser_update up one layer to rgui_iterate 2013-09-27 02:39:39 +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
217ad4b04d Update shader manager on game load. 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
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
twinaphex
01a1b16932 (RMenu) Use rgui->selection_ptr 2013-09-26 14:45:48 +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
d7eac16329 (menu_common) Add missing header include 2013-09-21 13:34: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
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
twinaphex
66716dc94c (RMenu XUI) Replace some snprintfs with strlcpy 2013-09-19 11:11:51 +02:00
twinaphex
290c6f99cb (RMenu XUI) Use fill_pathname_join instead of messy snprintf and messy
seperators
2013-09-19 10:04:49 +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
twinaphex
8837139271 (360) Build fixes 2013-09-15 18:49:18 +02: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
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
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
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
8aef9f4c64 Hide away g_settings.libretro mutation and do calls to environment
callback action instead - frontends should do it this way as well
2013-08-24 23:08:40 +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
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
52a160a744 (RMenu) Cleanups in select_file 2013-07-28 04:51:55 +02:00
twinaphex
2323cee6a7 Get rid of MODE_EXIT 2013-07-27 20:34:06 +02:00
twinaphex
3e3e6ed976 Get rid of MODE_VIDEO_PAL_VSYNC_BLOCK 2013-07-27 20:14:29 +02:00
twinaphex
248d4e8084 Get rid of MODE_OSK_DRAW 2013-07-27 20:12:46 +02:00
twinaphex
fe433b2322 Add new header file_ext.h - refactor out frontend_console.h 2013-07-15 14:54:40 +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
77d5190a01 (OSX) Make dummy context file - compile in RetroArch with Griffin 2013-07-04 15:01:38 +02:00
twinaphex
b696388f34 (Clang) No warnings now 2013-07-03 02:59:46 +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
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
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
f50332df41 (360) Build fix 2013-06-03 20:42:04 +02:00
twinaphex
11ae5fde33 (RMenu) Move around 'Save Custom Controls' 2013-06-03 01:50:59 +02:00
twinaphex
5b3ef441a4 (Rmenu) Scroll viewport text at Resize Menu 2013-06-03 01:42:58 +02:00
twinaphex
9adf9ce818 (RMenu) Shorter menu labels 2013-06-03 01:23:02 +02:00
twinaphex
2b32c4dd9b (RMenu) Remove stub 'Default all' options which were no longer used 2013-06-03 01:18:09 +02:00
twinaphex
a71a6a4749 (RMenu/RGUI) Console changes - menu should always run with vsync on +
remove video throttle option
2013-06-02 23:29:28 +02:00
twinaphex
5845530976 (RMenu) Fix game history Y positioning when dealing with multiple
pages
2013-06-02 22:57:35 +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
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
2613cf1b77 (RMenu XUI) Fix enums 2013-05-26 00:37:46 +02:00
twinaphex
eb05ee2ef4 (RMenu XUI) Move rewind options to RMenu XUI Options submenu 2013-05-26 00:37:00 +02:00
twinaphex
20fdda8ca9 (RMenu) Move rewind settings to Settings submenu 2013-05-26 00:32:39 +02:00
twinaphex
e492425700 (RMenu) Fixes key repeat 2013-05-26 00:03:27 +02:00
Themaister
de7fc0fb6f Increase ROM history size to 100. 2013-05-25 12:07:34 +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
twinaphex
f921162cac (RMenu/PS3) Implement Save Shader Preset 2013-05-19 23:10:21 +02:00
Themaister
085929a40d Fix potential segfault if rgui->info is broken. 2013-05-18 22:45:23 +02: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
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
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
twinaphex
8785a45da1 (RMenu XUI 360) Add savestate loading/saving by pressing OK button
in Menu
2013-05-10 22:52:34 +02:00
twinaphex
523a27ce61 (360) Load Game History list now works on 360 as well 2013-05-10 22:44:58 +02:00
twinaphex
f1358e1643 (RMenu XUI 360) Add initial Load Game History 2013-05-10 22:01:35 +02:00
twinaphex
21c335df74 (RMenu XUI 360) Add Core Options 2013-05-10 20:40:38 +02:00
twinaphex
1ee603b07e (RMenu XUI 360) Add Audio Options 2013-05-10 19:02:24 +02:00
twinaphex
3543885acf (RMenu XUI 360) Fix VIDEO_OPTIONS_MODE 2013-05-10 18:36:59 +02:00
twinaphex
cdcc068a18 (360 RMenu XUI) Rename rarch_quickmenu to rarch_video_options 2013-05-10 18:25:17 +02:00
twinaphex
c1757f7a3d (360 RMenu XUI) Take out some unnecessary HXUIOBJs and just have a root_menu and
current_menu HXUIOBJ instead
2013-05-10 17:14:22 +02:00
twinaphex
70af692622 (360 RMenu XUI) Easier way to declare new XUI menu classes 2013-05-10 03:54:20 +02:00
twinaphex
0ca3a52172 (360) Move more video options from 'Settings' to 'Video Options' 2013-05-10 03:36:32 +02:00
twinaphex
388a2d9830 (360) HD XUI overlay better positioned for 4:3 screen - make
gamma correction toggle a 'restart app' option
2013-05-10 03:22:59 +02:00
twinaphex
c9d5f8ba67 (RMenu XUI) Make text bottom label work 2013-05-09 22:27:18 +02:00
twinaphex
75edb0fa43 (RMenu XUI) Have filebrowsers use the same XUI file 2013-05-09 21:46:13 +02:00
twinaphex
18fe85bc1b (RMenu XUI) Restore rotation functionality + other tweaks 2013-05-09 20:24:58 +02:00
twinaphex
17ea68b9cd (RMenu XUI) Implement more options in main menu 2013-05-09 20:07:12 +02:00