Commit Graph

502 Commits

Author SHA1 Message Date
Toad King
b006fcef82 fix core-specific configs not saving on consoles if you don't start a game 2014-01-11 02:23:24 -05:00
Themaister
2605951f8b Don't save mute setting.
Extremely annoying to start with lack of audio and have no idea what
causes it.
2014-01-09 23:11:33 +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
meancoot
b5ea9b4eb9 (OSX) Use more sane default config path. 2014-01-03 17:16:02 -05:00
Themaister
76c7f13f8c Add INPUT_UDEV string to get_default_input_driver. 2014-01-03 20:18:50 +01:00
Themaister
be81549d92 Only save per-core configs when core specific option is enabled.
Also, need to enforce that g_settings.core_specific_config is true
after loading core specific config. It's possible that core specific
option is set to false before loading a different core (using global
config only).
2014-01-02 18:01:01 +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
e022b39061 fix per-core config on PC 2014-01-01 15:34:56 -05:00
Toad King
8f45063f74 menu support for core specific config 2014-01-01 15:02:57 -05:00
Toad King
5215a7cf24 save core specific config option 2014-01-01 14:52:35 -05:00
Toad King
0a91c528f9 core-specific config files 2014-01-01 14:44:20 -05:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex
17af6a0465 (D3D) Rename video_d3d9 to video_d3d 2014-01-01 01:09:31 +01:00
Themaister
7bd6599634 Fix -L arg when default libretro is set. 2013-12-28 23:30:20 +01:00
twinaphex
ff036066e2 Rework frontend - separate functions now for iterating per frame
and for doing teardown - Emscripten and Apple ports can make use
of this now so we don't need separate frontend implementations
2013-12-28 21:08:30 +01:00
twinaphex
6ce9c64e04 (Android) Change default overlay for Android to snes/snes.cfg 2013-12-28 03:14:21 +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
meancoot
87fff22956 (iOS) Add some common settings to the root of the core settings menu; Add some default paths; Add a default overlay 2013-12-25 09:52:09 -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
meancoot
4d671fe116 Make settings abbreviate paths when saving config file. 2013-12-24 12:23:21 -05:00
twinaphex
129b7093a3 Set default overlay opacity to 0.7f 2013-12-22 03:03:26 +01:00
twinaphex
e983aa4c35 (Location) Implement stub Android location driver - will still need
a couple of functions filled in
2013-12-19 03:37:26 +01:00
twinaphex
742f85eafc Add HAVE_LOCATION - still need to write frontend drivers now for
location
2013-12-19 01:51:51 +01:00
Themaister
1c9895611b Rework performance interface.
Avoids super-ugly macros and retroarch-ifdefs.
2013-12-18 19:21:56 +01:00
twinaphex
9852c5dc4c Rewrite perf interface - exposes callbacks now for RETRO_PERFORMANCE_INIT/RETRO_PERFORMANCE_START/RETRO_PERFORMANCE_STOP calls without messy, hardcoded preprocessor-dependent variables in macros - will update cores accordingly too 2013-12-18 19:03:08 +01:00
twinaphex
ee18da7632 Save autodetect_enable 2013-12-12 22:14:10 +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
d21046ace8 Add keyboard layout support to udev.
Adds input_keyboard_layout setting.
2013-12-08 16:05:05 +01:00
twinaphex
cc7cda7252 (iOS) Skeleton camera driver 2013-12-01 14:41:18 +01:00
twinaphex
de1bae69c9 (Android) Add skeleton camera driver 2013-11-17 19:47:37 +01:00
twinaphex
683c6432cd Add camera_device to retroarch.cfg 2013-11-16 03:28:45 +01:00
Squarepusher
4ab77e8405 Merge pull request #385 from libretro/webcam-test
Emscripten webcam driver
2013-11-13 01:25:19 -08:00
ToadKing
aaff8f2648 move prototype camera interface to libretro interface - GL texture only for now 2013-11-12 19:48:36 -05:00
twinaphex
aec049c803 (OSK) Refactor - (Onscreen Keyboard) - PS3-only backend for now -
I will make an overlay-based backend soon too for all other platforms
2013-11-13 00:27:31 +01:00
twinaphex
f8d44c6e60 (Camera) Add camera driver init/deinit when HAVE_CAMERA is defined 2013-11-11 14:26:57 +01:00
twinaphex
82f548a969 Refactor out settings_set 2013-11-11 12:56:38 +01:00
twinaphex
7420012721 (RARCH_CONSOLE) Remove unneeded variables from default_paths 2013-11-11 10:37:39 +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
da8f8b6d63 Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead
2013-11-07 21:44:44 +01:00
twinaphex
c6aebe7211 (Rmenu_disp) Now loads rgui_show_start_screen from config file -
stops nagging of startup help message
2013-11-07 21:25:04 +01:00
twinaphex
1bdaf62be1 Move some more default settings to config.def.h 2013-10-31 02:34:49 +01:00
twinaphex
32acec4ab9 (Android) Default libretro path directory 2013-10-30 23:50:19 +01:00
twinaphex
229dbf9cb2 Move some more default settings to config.def.h 2013-10-30 13:58:35 +01:00
Themaister
f0f1b5ded6 Style nits and build fix. 2013-10-30 12:52:44 +01:00
twinaphex
ae896fbd79 Move some default values for settings over to config.def.h 2013-10-30 12:45:46 +01:00
twinaphex
1cb18daa50 (Info files) Set default directories for info files on iOS/QNX 2013-10-30 02:28:30 +01:00
twinaphex
ffdb4a5b08 (RGUI/RMenu) Should save SRAM Autosave now 2013-10-23 13:54:35 +02:00