Commit Graph

9243 Commits

Author SHA1 Message Date
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
Themaister a60d49293b Remove completely obsoleted "XML map" support.
This is from ancient times and no longer relevant.
2014-01-02 16:01:43 +01:00
Twinaphex b57dd76478 Merge pull request #458 from hizzlekizzle/master
increase range_mod for analogs to 3.5 to avoid snapping back to center
2014-01-01 18:02:38 -08:00
hunterk 59b5cfd81b increase range_mod for analogs to 3.5 to avoid snapping back to center 2014-01-01 19:24:30 -06:00
Toad King de5d749a3b Merge pull request #457 from libretro/per-core-config
Per-core configuration
2014-01-01 16:11:25 -08:00
Toad King e0671aba8b per-core minor fixes 2014-01-01 19:06:06 -05:00
Themaister 69b104f9e4 Comment about BGRA8888. 2014-01-01 21:58:02 +01:00
Themaister 08ba1ad14e Use GL_RGB565 internal format when available.
This is a feature from ES2_compat extension.
It fixes the speed issue associated with using 16-bit textures on
desktop GL. Improves performance a bit as well as there's less bandwidth
usage during shading.

On my HD3000 laptop, performance improved with ~10%.
2014-01-01 21:58:02 +01: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 63302e9404 Merge pull request #456 from hizzlekizzle/master
updated analogs to be moveable
2014-01-01 09:49:05 -08:00
hunterk 9c8b823731 updated analogs to be moveable 2014-01-01 11:47:05 -06:00
Themaister a287ea6c6e Remove debug check. 2014-01-01 17:01:33 +01:00
Themaister f64b670d9a Don't use std::shared_ptr for state tracker. 2014-01-01 16:59:19 +01:00
Themaister b618306995 Big D3D9 cleanup.
Use bool for return instead of int (many bugs because of that ...).
Remove all use of exceptions, use delayed constructors (due to no
exceptions ...). Drop use of unique_ptr in D3D9 (not really needed).
2014-01-01 16:53:15 +01:00
twinaphex 2158076bd7 (D3D9) Add <algorithm> header include 2014-01-01 16:04:31 +01:00
twinaphex e38a1096f0 Rename D3D9 in logs to D3D where appropriate (ie. D3D Cg can stay D3D9) 2014-01-01 03:19:57 +01:00
twinaphex a6df90ff71 (D3D) Move more defines/header includes to d3d_defines.h 2014-01-01 03:15:48 +01:00
twinaphex d4a9cc3d8c (D3D) Shouldn't need ifdef __cplusplus - extern "C" anymore 2014-01-01 02:58:19 +01:00
twinaphex 22d282c649 (D3D) Should fix Mingw compilation 2014-01-01 02:38:09 +01:00
twinaphex babba85aff Bump up version number 2014-01-01 01:52:07 +01: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
twinaphex 115f706f24 (D3D) Split up version-agnostic defines into separate header file - will be
fleshed out later for D3D8, D3D9, etc.
2014-01-01 00:58:21 +01:00
twinaphex 4b0e56a52e (D3D) Use memcmp instead of std::memset 2014-01-01 00:50:26 +01:00
twinaphex 88a0b45ad5 (D3D) Use version-agnostic defines 2014-01-01 00:49:00 +01:00
twinaphex 772383effc (D3D) Use defines to hide away D3D version-specific types 2014-01-01 00:27:55 +01:00
twinaphex 88194bcdae (D3D) Build fix 2014-01-01 00:01:20 +01:00
twinaphex 538bf3b49a (D3D) Cleanups 2014-01-01 00:00:01 +01:00
twinaphex 06becc939e (D3D) Get rid of most throws and exception catching 2013-12-31 23:49:45 +01:00
twinaphex dc734aea55 (D3D9) Get rid of C++ memory header include 2013-12-31 23:26:12 +01:00
twinaphex 2d651bbc1d (D3D9) Get rid of unneeded headers 2013-12-31 23:23:02 +01:00
twinaphex fe354b5616 Add new D3D file to Makefile.win too 2013-12-31 23:21:53 +01:00
twinaphex d4850b3cd4 (D3D) Split up D3DVideo-specific code to separate file 2013-12-31 23:20:37 +01:00
Themaister e5bedc343a At least use long for return type of read_file().
int is not acceptable as a return type for anything regarding sizes.
long is dubious as well, but better (64-bit on sane ABIs and the return
type of ftell()).
2013-12-31 22:54:11 +01:00
Themaister a91c416720 Fix licence header in file_path.h. 2013-12-31 22:37:47 +01:00
twinaphex 10915f2093 (MSVC) Rearrange files in project solution 2013-12-31 22:24:26 +01:00
twinaphex 4fa7580dea (MSVC) Builds again 2013-12-31 22:10:58 +01:00
twinaphex c5cbec6fdc Build fix - don't include msvc_compat.h reference in file_path.h -
instead just change return type for file_read to int
2013-12-31 21:55:09 +01:00
twinaphex aa5a74ed7f (MSVC) Build fixes to D3D9 driver 2013-12-31 21:52:15 +01:00
twinaphex 5e163045be (MSVC) Downgrade solution to MSVC 2010 - fix some issues 2013-12-31 21:40:49 +01:00
twinaphex 44ff5afcc2 (D3D) Start brining D3D9 and XDK D3D drivers together 2013-12-31 21:24:17 +01:00
twinaphex f0840a948f (XDK1) Compile in HAVE_OVERLAY - will need to be hooked up
in xdk_d3d driver
2013-12-31 20:56:17 +01:00
twinaphex 0e54989a61 (XDK1) RMenu build fix 2013-12-31 20:50:24 +01:00
Themaister 0d3428ad15 Add texture_image_free().
Cleans up deinit code for textures.
2013-12-31 19:16:29 +01:00
Themaister 132c3c46f7 Use struct texture_image instead of video_overlay_image. 2013-12-31 19:05:16 +01:00
Themaister 43f42b6439 Use correct size with calloc. 2013-12-31 18:55:15 +01:00