Compare commits

...
4608 Commits
Author SHA1 Message Date
twinaphex 0a2b44273d Disable automatically add content by playlist by default 2017-12-25 18:19:55 +01:00
twinaphex 2fd3f41865 Bump to version 1.7.0 2017-12-25 18:17:57 +01:00
Twinaphex de5d5b0860 Merge pull request #5951 from aliaspider/master
(CTR) build fix.
2017-12-25 09:21:52 +01:00
aliaspider 1f143927ca (CTR) build fix. 2017-12-25 08:51:50 +01:00
Twinaphex 2c865d862b Update CHANGES.md 2017-12-25 08:37:50 +01:00
twinaphex 7321c6c87a (xaudio) Cleanups 2017-12-25 08:11:10 +01:00
twinaphex 3f281bb31f Cleanups 2017-12-25 07:49:07 +01:00
twinaphex c0c9764afe Update 2017-12-25 07:36:49 +01:00
twinaphex 72bf298701 libchdr requires both 7zip and zlib 2017-12-25 04:18:42 +01:00
twinaphex 8ff5c00600 HAVE_7ZIP should not be a requirement for CHD 2017-12-25 04:17:06 +01:00
bparker06 87e5dc9a93 Add DOS to the list of supported operating systems 2017-12-24 21:47:40 -05:00
Brad Parker 89bd38918e win32: correct usage of GetWindowPlacement per MS docs, fixes game window position on Win95/98 2017-12-24 17:17:36 -05:00
twinaphex 6664f8a772 (STB Truetype) Try to silence potential uninitialized reference to winding_lengths
variable
2017-12-24 18:54:57 +01:00
twinaphex 2e1e2cb406 Update 2017-12-24 18:53:03 +01:00
Brad Parker 6d484b7724 xinput: check for valid function pointers before calling them 2017-12-23 23:02:29 -05:00
Brad Parker 9cd3746702 enable STB Unicode font renderer for PS3 2017-12-23 21:35:45 -05:00
Twinaphex 2899d624cc Update config.def.h 2017-12-23 08:13:57 +01:00
twinaphex ca3c101161 Define DEX_BUILD/CEX_BUILD/ODE_BUILD for PS3 versions - set
custom buildbot core updater URL per target
2017-12-23 08:12:39 +01:00
Twinaphex 9bfba320f0 Merge pull request #5947 from esoptron/patch-1
Disable Temporal Interpolation by default in internal FFmpeg core
2017-12-23 04:47:14 +01:00
esoptron 2be322acbb Disable Temporal Interpolation by default in internal FFmpeg core 2017-12-22 17:24:13 -05:00
Twinaphex 05820677db Merge pull request #5942 from RobLoach/c_converter
Update c_converter with libretro-common vfs changes
2017-12-21 02:23:24 +01:00
Rob Loach 4564301bb5 Update c_converter with libretro-common vfs changes 2017-12-20 20:15:33 -05:00
twinaphex c2b8f03e50 Add CHANGES.md 2017-12-21 02:08:18 +01:00
twinaphex 6557bff118 Prevent some warnings on PS3 2017-12-21 02:06:34 +01:00
twinaphex ce50d39ada Update CHANGES.md 2017-12-21 01:29:23 +01:00
Twinaphex 0e3c067a53 Merge pull request #5941 from frangarcj/vita-adrenaline
(PSP) Fix for VITA's Adrenaline
2017-12-21 01:05:28 +01:00
Francisco José García García ab31e05f65 (PSP) Fix for VITA's Adrenaline 2017-12-21 00:09:38 +01:00
Brad Parker aeac9786b1 ps3: copy individual cores to a separate folder for use with the updater 2017-12-20 12:01:15 -05:00
twinaphex a4500eeafc Simplify config_file_write 2017-12-20 17:07:31 +01:00
twinaphex 513885d465 (PS3) Set up cheat dir/autoconfig dir 2017-12-20 16:11:59 +01:00
twinaphex f6e9a624ca (PS3) Add default dir for core download assets 2017-12-20 16:02:40 +01:00
twinaphex 259b077eef (PS3) Set PATH_MAX_LENGTH to CELL_FS_MAX_FS_PATH_LENGTH 2017-12-20 15:45:11 +01:00
twinaphex 7cda1aaab9 Set PATH_MAX_LENGTH to 512 for PS3 2017-12-20 15:39:01 +01:00
twinaphex 6441a25c35 PS3 has AF_INET6 defined yet we still shouldn't take this path 2017-12-20 15:34:57 +01:00
twinaphex 56f9d0a7cf Cleanup 2017-12-20 05:27:20 +01:00
Twinaphex f952123095 Merge pull request #5938 from fr500/master
Get rid of the console window correctly on MSVC 2003
2017-12-20 04:08:16 +01:00
radius 7a89537a16 this line is not required 2017-12-19 21:56:16 -05:00
radius ef7ecf229b try to get rid of the console window in MSVC 2003 builds 2017-12-19 21:56:15 -05:00
Twinaphex 089cb2a34d Merge pull request #5937 from QuarkTheAwesome/master
[WiiU] Add -D__WUT__; fixes integrated libiosuhax
2017-12-20 03:50:25 +01:00
Ash 46bffb8b12 [WiiU] Add -D__WUT__; fixes integrated libiosuhax
There was some type confusion around IOS_Open with libiosuhax, leading
to it treating the first instruction of that function as an address to
point to. Adding -D__WUT__ lets it know that we are using proper symbols
and not function pointers.
2017-12-20 13:47:30 +11:00
twinaphex 2f422a457f Revert config_file.c 2017-12-20 02:52:01 +01:00
Twinaphex 5eb6c5dae9 Merge pull request #5936 from clienthax/ps3res
More ps3 networking fixs.
2017-12-19 23:02:14 +01:00
clienthax 73aa381b27 More ps3 networking fixs. 2017-12-19 21:39:22 +00:00
twinaphex 7c73930a87 Add libiosuhax/libfat 2017-12-19 22:12:58 +01:00
Alcaro b7249525d4 guess drunk is better than untested 2017-12-19 00:13:19 +01:00
Alcaro b2d5fad4f5 strtok is drunk 2017-12-19 00:08:25 +01:00
Alcaro bfeb9ff5c2 that's an interesting double free 2017-12-18 22:29:27 +01:00
twinaphex 106721d943 Update Polish language - use the header 2017-12-18 19:46:28 +01:00
Twinaphex 659b32adb4 Merge pull request #5933 from alfrix/polish
Polish translation update (DEX357)
2017-12-18 18:54:02 +01:00
Alfrix 8371129143 Polish translation update (DEX357)
https://forums.libretro.com/t/polish-translation-characters/13763/7
2017-12-18 14:39:49 -03:00
Andrés 746c5e6845 Fix for empty console window on MSVC2003 builds 2017-12-18 09:42:24 -05:00
twinaphex 95e807749d Simplification/cleanup 2017-12-18 07:09:44 +01:00
twinaphex 422ce9396c Cleanup - input_key_pressed 2017-12-18 06:14:48 +01:00
twinaphex 69f85556a3 Get rid of meta_key_pressed 2017-12-18 05:59:57 +01:00
twinaphex 7b210ccf37 Don't call meta key pressed if not bound 2017-12-18 05:49:17 +01:00
twinaphex 1978689dcb Rewrite input_keys_pressed_iterate 2017-12-18 05:22:45 +01:00
twinaphex 9b9cf7b036 Cleanups 2017-12-18 05:13:57 +01:00
twinaphex 3c5d2f047c Create input_keys_pressed_iterate 2017-12-18 05:09:16 +01:00
Twinaphex db345d8ad6 Update CHANGES.md 2017-12-18 01:56:44 +01:00
twinaphex bd7a8a0479 Show Quick Menu title correctly 2017-12-18 01:55:35 +01:00
Twinaphex 6c266364fc Update CHANGES.md 2017-12-18 01:14:45 +01:00
twinaphex e16a501c46 Update CHANGES.md 2017-12-18 01:01:00 +01:00
Twinaphex b6f9681373 Merge pull request #5931 from fr500/master
fix fullscreen cli option
2017-12-17 19:21:26 +01:00
radius a7f989fdb6 fix fullscreen toggle 2017-12-17 13:16:40 -05:00
Twinaphex d3a72d147f Merge pull request #5930 from fr500/master
update this label to Stop immediately
2017-12-17 18:50:56 +01:00
radius 3ed436dbd0 update this label to Stop immediately 2017-12-17 12:16:34 -05:00
Twinaphex da5d0650d5 Merge pull request #5929 from fr500/master
show the frontend name and CPU architecture on netplay rooms
2017-12-17 18:10:39 +01:00
radius 7bdd8e945a show the frontend name and CPU architecture on netplay rooms 2017-12-17 11:51:50 -05:00
twinaphex d169d51180 Revert "Rewrite menu toggle"
This reverts commit 144ca2cfd8.
2017-12-17 17:21:51 +01:00
twinaphex edae66e413 Faulty fall-through 2017-12-17 17:12:02 +01:00
twinaphex 0f906d0986 Revert "that's a dumb bug."
This reverts commit 69a630f8e0.
2017-12-17 17:06:02 +01:00
Twinaphex 26f483b22d Merge pull request #5882 from hiddenasbestos/dolphinbar
Mayflash DolphinBar
2017-12-17 16:48:26 +01:00
Twinaphex 4758d3e22b Merge pull request #5926 from hyarsan/master
Fix typo in CHANGES.md
2017-12-17 14:30:16 +01:00
hyarsan c87ee34d07 Fix typo in CHANGES.md 2017-12-17 14:10:21 +01:00
Twinaphex bf9b6a7ddd Merge pull request #5925 from hiddenasbestos/overlay_fix
Fixes for overlay buttons
2017-12-17 14:06:18 +01:00
David Walters 02f6301607 fix reversed logic 2017-12-17 12:46:21 +00:00
David Walters adffa5fc4c Fixes for overlay buttons 2017-12-17 12:36:18 +00:00
twinaphex 2fa03755eb Cleanups 2017-12-17 04:11:56 +01:00
twinaphex 144ca2cfd8 Rewrite menu toggle 2017-12-17 03:54:11 +01:00
twinaphex 49634cc46e Create manual get_value cbs callback for URL 2017-12-16 22:31:38 +01:00
twinaphex 9596cc2866 Update 2017-12-16 17:06:37 +01:00
Brad Parker 03970ddacd Show BSD OSes in frontend OS info 2017-12-16 10:46:52 -05:00
Twinaphex 9f336b705a Merge pull request #5918 from bparker06/opacity_x11
x11: enable window transparency
2017-12-16 16:40:09 +01:00
Brad Parker af85c20e56 Update CHANGES.md 2017-12-16 10:35:25 -05:00
Brad Parker 81cd5435a1 x11: enable window transparency 2017-12-16 10:29:30 -05:00
Twinaphex c9716c066f Merge pull request #5919 from orbea/dbus
Ifdef the broken dbus code better.
2017-12-16 14:50:47 +01:00
orbea 1ddcc7be82 Ifdef the broken dbus code better. 2017-12-16 05:19:05 -08:00
twinaphex 6622cb0810 Update libretro API 2017-12-16 14:12:38 +01:00
Andrés 2974258589 Update CHANGES.md 2017-12-16 00:58:29 -05:00
Andrés f26db935ec Update CHANGES.md 2017-12-16 00:57:58 -05:00
Andrés cac184c75c Update CHANGES.md 2017-12-16 00:50:53 -05:00
twinaphex d8068553f4 Update 2017-12-16 02:47:59 +01:00
twinaphex 3fd059e073 Update 2017-12-16 01:20:21 +01:00
twinaphex c63859cca9 Add safeguard suggested by Alcaro 2017-12-16 00:19:56 +01:00
Andrés fbdd53b717 Change the entry point in MSVC2010 builds 2017-12-15 18:03:20 -05:00
twinaphex 4ba1e8336d Update libretro-common 2017-12-15 23:21:22 +01:00
twinaphex 1b6b670882 filestream - use int64_t 2017-12-15 21:10:58 +01:00
Twinaphex 60aa6bf3fb Fix warnings 2017-12-15 20:33:39 +01:00
twinaphex b7eba4b28f Update image_core.c 2017-12-15 19:25:30 +01:00
Andrés 4604faf8d9 Update RetroArch-msvc2010.vcxproj 2017-12-15 12:46:35 -05:00
twinaphex 42462c2ba9 Silence some warnings 2017-12-15 18:31:12 +01:00
twinaphex 4572675a15 (PS3) Fix Salamander build 2017-12-15 18:20:18 +01:00
Alcaro cbdb91a668 Remove file_ prefixes, for consistency with the rest of libretro. They're not useful, anything they'd mean is provided by the vfs_iface-> anyways. Also rename delete to remove to match libc and avoid C++ keywords. 2017-12-15 17:28:55 +01:00
Andrés f25ba04d91 Change the entry point in non DEBUG builds 2017-12-15 09:43:39 -05:00
Twinaphex fde0cca93d Merge pull request #5914 from frangarcj/psp_audio
(PSP) Sync audio thread
2017-12-15 14:19:12 +01:00
ggf906 21aedd46ee (PSP) Sync audio thread 2017-12-15 13:35:10 +01:00
Alcaro 69a630f8e0 that's a dumb bug. 2017-12-15 11:21:43 +01:00
Alcaro c88e5e08a0 Add VFS support to imageviewer (should get Unicode filenames working on Windows too, even without VFS) 2017-12-15 11:00:02 +01:00
Alcaro 29b9ec0b5e Create this thing because makefile 2017-12-15 10:12:01 +01:00
Alcaro 03723118e5 Some minor clarifications 2017-12-15 10:02:49 +01:00
Andrés 0602f8eb79 Try to get rid of the console in MSVC 2010 builds 2017-12-14 21:36:33 -05:00
twinaphex 4369ac1545 Update 2017-12-15 00:35:11 +01:00
twinaphex 1932513edb Update libretro-common 2017-12-15 00:31:37 +01:00
Alcaro ecf5d55a25 Rename this one, to not codify policy in what should be a frontend decision 2017-12-14 21:21:18 +01:00
twinaphex c6217ef14b (file_path.c) Get rid of libretro.h dependency 2017-12-14 20:06:15 +01:00
twinaphex c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
Brad Parker 8c0adf3594 move path_file_rename and path_file_remove into VFS 2017-12-14 13:32:26 -05:00
twinaphex 842ac40c6e Style nit 2017-12-14 19:09:29 +01:00
Alcaro 26e191f642 These have no reason to not be static 2017-12-14 18:58:20 +01:00
Alcaro ff1d452096 Implement get_path 2017-12-14 18:48:37 +01:00
twinaphex ef3ba4d989 Get rid of retro_vfs_file_putc 2017-12-14 18:45:54 +01:00
Alcaro f282044be2 this doesn't belong here. 2017-12-14 18:10:04 +01:00
Alcaro f536d25013 Too many ifdefs 2017-12-14 17:55:30 +01:00
Alcaro d5847c2391 Revert and fix "Don't use opaque handle to get around warnings and other issues"
This reverts commit e23409926e.
2017-12-14 17:28:13 +01:00
twinaphex 7bf996abe6 Cleanup 2017-12-14 16:53:19 +01:00
twinaphex b20de872a3 Remove file_stream.h dependency on vfs_implementation.c 2017-12-14 16:41:10 +01:00
twinaphex 41b1329bc1 Rewrite filestream_seek call 2017-12-14 15:56:28 +01:00
twinaphex 2c0c6ae65e Attempt to fix MSVC 2017-12-14 15:41:23 +01:00
twinaphex f6937e27f2 Add vfs_implementation to Salamander builds 2017-12-14 15:18:48 +01:00
twinaphex 10199d4c81 Remove this 2017-12-14 15:15:19 +01:00
twinaphex e23409926e Don't use opaque handle to get around warnings and other issues 2017-12-14 15:06:28 +01:00
twinaphex dadf968134 Add TODO/FIXME note 2017-12-14 14:05:55 +01:00
twinaphex 0b6c191354 Start moving file stream code over to vfs_implementation.c 2017-12-14 14:03:42 +01:00
twinaphex 7788a852c0 Some more cleanups 2017-12-14 00:16:18 +01:00
twinaphex d12df0d91f Rewrite file_stream.c - reimplement filestream_error 2017-12-14 00:01:58 +01:00
twinaphex 4dfbfc4d02 Reimplement filestream_gets 2017-12-13 19:19:49 +01:00
twinaphex adb0add226 print_buf_lines - moved 2017-12-13 05:04:52 +01:00
Twinaphex 7abf68a5b3 Merge pull request #5908 from RobLoach/patch-24
Replace double quotes in thumbnail names
2017-12-13 03:51:37 +01:00
twinaphex eeefdf980c Add menu_networking.c/menu_networking.h 2017-12-13 03:35:12 +01:00
Rob Loach cd2ae18ec1 Replace double quotes in thumbnail names 2017-12-12 13:08:24 -05:00
Twinaphex 44be5b0999 Merge pull request #5907 from hyarsan/master
Change "Retroarch" to "RetroArch" in HB Launcher for consistency.
2017-12-12 17:54:53 +01:00
hyarsan a28bc6ed23 Change "Retroarch" to "RetroArch" in HB Launcher for consistency.
In the Homebrew Launcher, RetroArch has always appeared as "Retroarch" which doesn't make sense if everything else is "RetroArch". This just does not look right and I get pissed just looking at it. lol
2017-12-12 16:57:33 +01:00
Francisco José García García 982d616025 Update psp_audio.c 2017-12-12 13:34:45 +01:00
twinaphex f8fd94f6f4 Buildfix 2017-12-12 12:22:06 +01:00
Twinaphex 709c7de40f Merge pull request #5906 from gblues/remove-trailing-whitespace
Remove trailing whitespace
2017-12-12 11:19:12 +01:00
gblues 0f7de204f7 Last batch of whitespace cleanup (post-rebase)
-- looks like a few files committed with DOS line endings
2017-12-12 00:24:46 -08:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Twinaphex 767a1f3d39 Merge pull request #5904 from bparker06/opacity
Add menu setting for window opacity
2017-12-12 00:50:38 +01:00
Brad Parker d53dbbfd4e style nits 2017-12-11 18:50:10 -05:00
Brad Parker b6644e2c3a buildfix again 2017-12-11 18:27:11 -05:00
Brad Parker c265c8328c buildfixes 2017-12-11 18:22:40 -05:00
twinaphex 621d89c52e (PSP1) Change to -O2 2017-12-12 00:17:17 +01:00
Twinaphex 237a0ab44a Merge pull request #5903 from frangarcj/psp1
(PSP) Strip and user 64MB where available
2017-12-12 00:14:58 +01:00
Brad Parker 247b9ea973 add menu setting for window opacity, includes generic display server interface 2017-12-11 18:12:42 -05:00
ggf906 940f0c6b0b (PSP) Strip and user 64MB where available 2017-12-12 00:04:35 +01:00
Twinaphex 9aa3dc2423 Buildfix 2017-12-11 22:01:54 +01:00
twinaphex 779d9a4258 Cleanup 2017-12-11 21:58:17 +01:00
twinaphex dca96ba6ad Reimplement filestream_getc 2017-12-11 21:49:51 +01:00
twinaphex 57b730ab61 Start implementing VFS layer ; first split up VFS libretro functionality
to separate header until things are finalized
2017-12-11 21:24:14 +01:00
twinaphex c03b791b46 Start adding stub VFS implementation 2017-12-11 20:51:46 +01:00
twinaphex 2a5bda2b14 C89_BUILD fix 2017-12-11 20:40:59 +01:00
twinaphex c4d8a8c800 Free after intfstream_close 2017-12-11 20:24:00 +01:00
twinaphex 784bb32c64 Cleanups 2017-12-11 19:55:42 +01:00
twinaphex a1ce8b58c4 Simply formats/xml/rxml.c 2017-12-11 18:01:56 +01:00
twinaphex 5960cd80d2 Simplify filestream_read_file 2017-12-11 17:59:18 +01:00
twinaphex ad70bb9866 Get rid of unused filestream_get_ext 2017-12-11 17:42:00 +01:00
twinaphex 43c9bb374d filestream_set_size can be made a static function 2017-12-11 17:39:56 +01:00
twinaphex 5b8f8b50e3 Reimplement filestream_eof 2017-12-11 17:36:20 +01:00
twinaphex 32511090ca (task_save.c) Move to intfstream 2017-12-11 14:56:58 +01:00
twinaphex 1cd7568f1f (gx_gfx) Go through intfstream 2017-12-11 13:26:52 +01:00
twinaphex e62e9233d7 Add intfstream_get_size 2017-12-11 13:21:44 +01:00
twinaphex 12e6f38999 (gfx/video_shader_parse) Use intfstream instead of file_stream 2017-12-11 13:01:17 +01:00
twinaphex 54ce2ec5e9 playlist.c - use intfstream 2017-12-11 12:57:53 +01:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 38e6d2443f Change functions 2017-12-11 12:31:14 +01:00
twinaphex fde596fae4 Cleanups 2017-12-11 12:25:44 +01:00
twinaphex 8aa4d6d148 Move convenience functions to interface_stream.c 2017-12-11 12:23:40 +01:00
twinaphex 6897f9a987 Pass hints to intfstream_open_file 2017-12-11 12:20:06 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex 93ee4df5f5 Move RFILE_HINT_UNBUFFERED to file_stream.c 2017-12-11 11:47:13 +01:00
twinaphex e1461cc0de Get rid of hashes in config_file.c 2017-12-11 11:40:36 +01:00
twinaphex c950613098 C comments 2017-12-11 11:28:48 +01:00
Twinaphex af50e3daf0 Merge pull request #5899 from pyhammond/master
udev device ordering fix that now numbers input joypads correctly
2017-12-11 08:24:02 +01:00
Peter Y. Hammond b14598657c Fixed a bug where the joypad devices were not always being assigned in the same order as they were numbered under /dev/input/. This showed up mainly when using an external USB Bluetooth dongle. In that case, controllers would be assigned often in reverse order. 2017-12-10 22:22:01 -07:00
Brad Parker f3a58f4ff3 remove extra #endif 2017-12-10 22:07:25 -05:00
Brad Parker e877595ff7 add buildbot url for msvc2003 (Windows 95) 2017-12-10 20:20:44 -05:00
Twinaphex 85d9d986eb Buildfix 2017-12-10 22:46:39 +01:00
twinaphex 2fd8210e59 Create shareable filestream_getline 2017-12-10 22:35:08 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
twinaphex d19eaeaab8 (file_stream.c) Cleanups; buildfix 2017-12-10 22:10:32 +01:00
twinaphex 1298a257ae Make HAVE_BUFFERED_IO the new default 2017-12-10 22:07:42 +01:00
twinaphex a8e031777e * Get rid of RFILE_MODE_READ_TEXT
* Get rid of PSP ifdef sinside file_stream.c
2017-12-10 22:05:24 +01:00
twinaphex 40f82c26f7 use RFILE_MODE_READ for video_shader_parse 2017-12-10 22:01:48 +01:00
twinaphex 9d54da14b6 Get rid of READ_TEXT requirement for features_cpu 2017-12-10 21:29:49 +01:00
twinaphex 95cc8e12d2 Get rid of RFILE_MODE_READ_TEXT dependency for config file/playlist 2017-12-10 21:28:13 +01:00
Alcaro e07ed18105 Fix text mode dependency 2017-12-10 21:00:24 +01:00
twinaphex d6fd9f0cc1 Add fallback AF_INET6 path 2017-12-10 01:19:58 +01:00
Twinaphex 7654e8e268 Merge pull request #5879 from clienthax/ps3res
[PS3] Partial fix of networking
2017-12-10 00:00:03 +01:00
Twinaphex 70bc2fe3a1 Merge pull request #5895 from Monroe88/input_driver
input_driver: Map Delete key to Y button for non-unified menu keyboard controls
2017-12-09 23:31:17 +01:00
Twinaphex d82812a292 Merge pull request #5896 from bparker06/filepath
omit extra slash at end of path, Win95/98 doesn't like them
2017-12-09 23:30:46 +01:00
Brad Parker 1a928b9c50 omit extra slash at end of path, Win95/98 doesn't like them 2017-12-09 16:38:33 -05:00
Monroe88 cfde6a44db input_driver: Map Delete key to Y button for non-unified menu keyboard controls 2017-12-09 14:17:54 -06:00
Brad Parker 812a99e5ca utf: fallback to ANSI codepage on windows if UTF8 conversion isn't available 2017-12-09 14:35:58 -05:00
Brad Parker 3318cd969b win95: fallback to strdup when MultiByteToWideChar fails (it only works with MSLU) 2017-12-09 14:26:46 -05:00
Twinaphex 5e2a3ec3ff Merge pull request #5894 from Themaister/master
Various stability fixes for WSI
2017-12-09 17:31:32 +01:00
Themaister f8447c4648 Set correct buffer size. 2017-12-09 17:28:20 +01:00
Themaister 75b84b4f94 Support pending swapchain creation. 2017-12-09 17:28:20 +01:00
Themaister ac42b87400 Recreate swapchain directly if vkAcquireNextImageKHR fails. 2017-12-09 17:28:20 +01:00
Themaister 714684a4d3 Don't wait for WSI fence unless it has been signalled. 2017-12-09 17:28:20 +01:00
Twinaphex d05c305210 Merge pull request #5892 from cpsw/patch-1
Small code style change
2017-12-09 15:13:06 +01:00
cpsw 54aec6c9e8 Small code style change
Suggesting a code style change.
2017-12-09 11:01:03 -03:00
Twinaphex 620dad1204 Merge pull request #5890 from Oibaf66/patch-1
Added labels to autoconfig wii controllers
2017-12-09 10:01:23 +01:00
Fabio 0d58d9ca0d Added label to wii controllers, inverted the right stick Y axis of classic controller
The right stick Y axis of classic controller was wrong
2017-12-09 08:24:19 +01:00
Twinaphex ed1a920f46 Update config.def.h 2017-12-09 01:05:55 +01:00
Twinaphex 22d8d35721 Merge pull request #5889 from hiddenasbestos/relpath_dup_fix
Playlist duplication fixes
2017-12-09 01:03:30 +01:00
David Walters deb017e17f On Windows builds, don't use case sensitive path comparisons when pushing to a playlist. 2017-12-08 23:50:00 +00:00
David Walters 004c1d2f0a Fix for relative paths being normalised and generating a duplicate history entry. 2017-12-08 23:37:07 +00:00
Brad Parker 8f7810d921 emscripten: only fire keyup once, and don't wait so long to do so (libretro.js) 2017-12-08 18:15:22 -05:00
Andrés a15820f86a Update index.html 2017-12-08 10:25:00 -05:00
Twinaphex 8b095eda74 Merge pull request #5878 from leiradel/cheevos_loaded
Fixed cheevos_loaded being true when there are no cheevos
2017-12-08 06:39:46 +01:00
Twinaphex c6dd33dbaf Merge pull request #5881 from leiradel/master
Fixed C89 build
2017-12-08 06:39:21 +01:00
leiradel 8c1e3e5d5b Fixed CXX_BUILD 2017-12-08 00:08:16 +00:00
leiradel 4f2398dd08 Merge branch 'master' of https://github.com/libretro/RetroArch 2017-12-07 23:53:05 +00:00
leiradel c53d3d35b8 Removed TODO comment 2017-12-07 23:51:15 +00:00
Andrés 305cb6d647 fix OS identification (#5880) 2017-12-07 18:49:35 -05:00
leiradel bf8f7b444b Fixed cheevos_expr_value to be C89 compliant 2017-12-07 23:48:03 +00:00
David Walters 124ddcd27a Add dolphin bar VID/PID - treat like a wii over bluetooth connection 2017-12-07 23:44:29 +00:00
Brad Parker b0445e1e21 Bliss-Box: Work around Windows sharing violation bug by trying to open device as read/write if read-only fails. Show OSD message if it still fails. 2017-12-07 17:47:20 -05:00
clienthax a565ba0149 [PS3] Partial fix of networking 2017-12-07 22:20:02 +00:00
Brad Parker 55b738a07a implement frontend get_architecture() for windows 2017-12-07 16:32:13 -05:00
Twinaphex d840625fa9 Merge pull request #5877 from clienthax/ps3res
[PS3] Possible fix for 0x0 resolution
2017-12-07 21:03:36 +01:00
leiradel 130a001846 Fixed wrong leaderboard count 2017-12-07 19:49:39 +00:00
clienthax d6daf2f573 [PS3] Possible fix for 0x0 resolution on 2017-12-07 19:49:11 +00:00
Brad Parker fa7cd77d7d win32: improve version reporting under System Information 2017-12-07 13:49:07 -05:00
twinaphex 951918a245 Reduce size of Makefiles 2017-12-07 05:54:54 +01:00
twinaphex 542235ffd7 (XMB) Get rid of hashes 2017-12-06 21:55:21 +01:00
Twinaphex 10cf3bc235 Merge pull request #5874 from RobLoach/patch-23
Update make install for new retroarch-assets src
2017-12-06 21:02:06 +01:00
twinaphex fbf4b4813c Cleanup path_set_redirect - no more hashes 2017-12-06 20:52:29 +01:00
twinaphex fd23a751e4 Fix joypad_driver 2017-12-06 20:40:18 +01:00
twinaphex 4e9cb21e03 Don't use hashes 2017-12-06 20:38:22 +01:00
Rob Loach 494ba8685e Update make install for new retroarch-assets src
The assets over at [retroarch-assets](https://github.com/libretro/retroarch-assets) have [moved the source files](https://github.com/libretro/retroarch-assets/pull/191) so that the asset installation process is a much easier. We no longer have the need to delete the theme src directories.
2017-12-06 14:34:20 -05:00
twinaphex d5b3104cfb Cleanups/warning fixes 2017-12-06 19:51:07 +01:00
twinaphex b1f1f519d5 Don't redefine HAVE_GL_SYNC 2017-12-06 18:28:57 +01:00
twinaphex 23e6f0be37 Update 2017-12-06 16:54:23 +01:00
twinaphex a53927c5aa Fix PS3 build 2017-12-06 16:53:19 +01:00
twinaphex 06a948c706 Update 2017-12-06 14:27:14 +01:00
twinaphex 30eb7f91b4 Fix Coverity warning 2017-12-06 14:25:41 +01:00
twinaphex 47a19483d1 Don't show Overlay Settings if HAVE_OVERLAY is not defined 2017-12-06 12:43:02 +01:00
twinaphex 0cd5b9d14c Update CHANGES.md 2017-12-06 12:04:04 +01:00
Brad Parker 1755cdcdf3 Update CHANGES.md 2017-12-06 01:41:06 -05:00
Brad Parker 75eed7997b GDI: use configured message color for OSD/menu text 2017-12-06 01:41:00 -05:00
Brad Parker 1828e891ad Update CHANGES.md 2017-12-06 00:57:57 -05:00
Brad Parker 21dc650000 update JP translation 2017-12-06 00:57:35 -05:00
twinaphex 24b02bc062 Update CHANGES.md 2017-12-06 04:52:51 +01:00
twinaphex de9b0127f8 (MSVC) Buildfix 2017-12-06 04:33:54 +01:00
Andrés 0c9fce98a2 fix vid/pid enumeration on xinput controllers when the xinput controllers are interleaved with dinput (#5872) 2017-12-05 22:07:48 -05:00
twinaphex 27e5adad27 Cleanups 2017-12-06 04:05:38 +01:00
Twinaphex d881931254 Merge pull request #5867 from hiddenasbestos/more_devices
Don't limit available input devices to user count.
2017-12-06 01:43:52 +01:00
Twinaphex 6876e27e51 Merge pull request #5865 from fr500/master
Improve vscode support
2017-12-05 23:19:31 +01:00
Brad Parker f5ea4a0c65 dinput: add missing function parameter 2017-12-05 17:19:17 -05:00
David Walters 8907a1251e Only show " (#x)" after a device name if it's part of a set (x of y similarly named devices) 2017-12-05 22:10:34 +00:00
David Walters 609bcb4dc2 fix device indexing 2017-12-05 22:03:56 +00:00
Twinaphex 300dbdf883 Merge pull request #5866 from ToKe79/fix-glsync-build-error
GLsync build fix for HAVE_OPENGLES2
2017-12-05 23:03:30 +01:00
David Walters 0d189ae067 Don't limit available input devices to user count. 2017-12-05 21:21:29 +00:00
ToKe79 6bb2a0e142 GLsync build fix for HAVE_OPENGLES2 2017-12-05 21:58:01 +01:00
radius dbe6af08dd Improve vscode support
add c properties

add ming32 config too

rename tasks to allow other targets
2017-12-05 14:50:40 -05:00
Brad Parker bc4bbe79aa don't define UNICODE at all, we don't need it and it causes dinput problems (names are wchar_t) 2017-12-05 14:26:59 -05:00
twinaphex 2bdf4a5bb4 update 2017-12-05 20:08:18 +01:00
twinaphex 408878a7e1 Start making it possible for xinput_joypad to be used without
DirectInput
2017-12-05 20:04:12 +01:00
Twinaphex 7ab7ed35b7 Merge pull request #5863 from bparker06/xinput
xinput: copy VID/PID from dinput so autoconfig does not rely solely on HID name
2017-12-05 20:01:16 +01:00
bparker06 4c9bde61b5 dinput: fix memory leak of joypad name 2017-12-05 13:54:15 -05:00
Twinaphex 4d21a77d9b Merge pull request #5864 from djipi/master
Added Visual Studio 2017 support
2017-12-05 19:48:05 +01:00
Jean-Paul Mari 3eb5b757c3 Merge pull request #2 from libretro/master
Merge #2
2017-12-05 12:51:58 -05:00
Brad Parker 35ab48ee61 xinput: copy VID/PID from dinput so autoconfig does not rely solely on HID name 2017-12-05 12:47:52 -05:00
Jean-Paul Mari 38b899e4d6 Added Visual Studio 2017 support
The msvc-2017 is based on msvc-2015
2017-12-05 11:23:38 -05:00
twinaphex db4387bd30 See if it's always defined this way 2017-12-05 17:10:31 +01:00
Twinaphex 763e6f766c Silence warning 2017-12-05 16:58:20 +01:00
twinaphex b69622ea88 Avoid usage of GLsync type 2017-12-05 16:56:33 +01:00
twinaphex 32c1c3134e Fix another C89 issue 2017-12-05 16:45:57 +01:00
twinaphex f9fa2ab2b7 More C89_BUILD fixes 2017-12-05 16:44:05 +01:00
twinaphex 863858ab00 Can't have anonymous variadic macros in C89 2017-12-05 16:42:37 +01:00
twinaphex 3e81996bd3 Update D3D headers 2017-12-05 16:40:13 +01:00
twinaphex 3ede6a9aeb Some C89_BUILD fixes 2017-12-05 16:35:03 +01:00
twinaphex de900325c6 More C89_BUILD fixes 2017-12-05 16:31:58 +01:00
twinaphex 88b85c2d15 Fix it for C89 2017-12-05 16:27:39 +01:00
twinaphex 69295c2179 Fix BIT_GET 2017-12-05 16:20:52 +01:00
twinaphex 4cb739d45a Update CHANGES.md 2017-12-05 16:09:44 +01:00
twinaphex 4b4ae0c1a0 Update CHANGES.md 2017-12-05 16:09:19 +01:00
twinaphex 7ba46356e6 Cut down on code duplication 2017-12-05 15:44:41 +01:00
twinaphex 5d8df93c99 Cleanups 2017-12-05 14:30:54 +01:00
twinaphex 264d9903e8 Update NL 2017-12-05 14:24:06 +01:00
twinaphex c486fa08ca Cut down on code duplication 2017-12-05 14:11:50 +01:00
twinaphex df8a2274df Update CHANGES.md 2017-12-05 13:47:23 +01:00
twinaphex fafc96d377 Cleanups 2017-12-05 13:31:51 +01:00
twinaphex b432fb4668 Bugfix 2017-12-05 13:21:29 +01:00
twinaphex 53efad05c6 Cleanups 2017-12-05 13:15:15 +01:00
Alcaro 332aee5b0f Dehardcode some sizes (#5856) 2017-12-05 13:03:34 +01:00
twinaphex 53ce29ca31 Cleanups 2017-12-05 12:49:59 +01:00
twinaphex f0c143766e Change to 256bit macros 2017-12-05 12:07:35 +01:00
twinaphex 6c09661a64 Move defines to retro_miscellaneous.h 2017-12-05 10:42:37 +01:00
twinaphex 31cc6a8dd7 Create 256 bit macros 2017-12-05 09:51:58 +01:00
twinaphex e94300a581 Get rid of a lot of RARCH_INPUT_STATE_BIT_ macros - replace them
with BIT128_ equivalents instead
2017-12-05 09:22:56 +01:00
Alcaro 0691c9e0d3 Let's not duplicate those macros more than needed 2017-12-05 08:55:42 +01:00
twinaphex 3ccce249ea Fixes hotkey issues with MSVC 2017-12-05 08:50:24 +01:00
Alcaro 0215648a83 Make booleans boolean again
#5856

why do both BIT_ and BIT128_ exist
2017-12-05 08:34:29 +01:00
Twinaphex d535739648 Merge pull request #5860 from RobLoach/patch-22
Fix to ARM to ensure chain has been declared
2017-12-05 06:38:02 +01:00
Brad Parker 49d0299808 LEGACY_WIN32: check for target of less than Win2K instead of < vc2005, since Win98 does not support Unicode 2017-12-04 22:49:08 -05:00
Rob Loach e8a9471afd Fix to ARM to ensure chain has been declared 2017-12-04 18:53:34 -05:00
leiradel d27e6746a1 Merge branch 'master' into cheevos_loaded 2017-12-04 20:23:02 +00:00
Alcaro 75c59aedcf Update fopen_utf8.h 2017-12-04 20:23:45 +01:00
Alcaro 2f1bcb6409 Update fopen_utf8.c 2017-12-04 20:20:10 +01:00
Alcaro 908784b0ae Update griffin.c 2017-12-04 20:19:35 +01:00
Alcaro 84691c7b9b Update retro_miscellaneous.h 2017-12-04 19:15:35 +01:00
Francisco José García García 90dd2892b0 FIX sceIoOpen return error 2017-12-04 18:09:37 +01:00
Alcaro 6359aee509 Update fopen_utf8.c 2017-12-04 17:03:53 +01:00
Alcaro 486d5e77e3 Update verbosity.c 2017-12-04 16:48:17 +01:00
Alcaro a6ef704369 Update config_file.c 2017-12-04 16:47:27 +01:00
Alcaro cc2dd827b5 Update Makefile.common 2017-12-04 16:46:59 +01:00
Alcaro 8a93a9eb8e Create fopen_utf8.c 2017-12-04 16:44:34 +01:00
Alcaro 8df699984e Update fopen_utf8.h 2017-12-04 16:34:56 +01:00
Alcaro d74ad6cd5e Create fopen_utf8.h 2017-12-04 16:32:40 +01:00
twinaphex 059354de2f Cleanup for config_file_write 2017-12-04 16:26:28 +01:00
Alcaro ff4dca86f9 Turns out this is char*, let's cast because CXX_BUILD wants that 2017-12-04 15:01:58 +01:00
Alcaro fbd3a435d2 Turns out this is char*, let's cast because CXX_BUILD wants that 2017-12-04 15:01:57 +01:00
Alcaro c10859b745 Update file_stream.c 2017-12-04 14:31:31 +01:00
Alcaro dca30d533f Update file_stream.h 2017-12-04 14:31:11 +01:00
Alcaro 300052626f Use FILE* all the way
Fixes platforms where RFILE isn't using the FILE* backend, needed for #5664
2017-12-04 14:30:32 +01:00
Alcaro b9900b1fb8 This cast isn't needed, and probably breaks CXX_BUILD 2017-12-04 14:27:36 +01:00
Alcaro 1aa6ae1b38 Use FILE* all the way
Fixes platforms where RFILE isn't using the FILE* backend, needed for #5664
2017-12-04 14:25:16 +01:00
Alcaro e4bb8e7aeb Update file_stream.c 2017-12-04 13:52:11 +01:00
Alcaro 130e4522e2 Update file_stream.h 2017-12-04 13:51:25 +01:00
Alcaro 2b3cc8898a Fix this one for non-stdio backends
Why does filestream_get_fp exist
2017-12-04 13:41:04 +01:00
Alcaro 0d4ac12310 Update file_stream.c 2017-12-04 13:34:15 +01:00
Alcaro df55e6b4d1 actually, let's just completely remove it 2017-12-04 13:30:38 +01:00
Alcaro 89f7afdc8f silence warning 2017-12-04 13:28:38 +01:00
Alcaro 50148c03e2 not used anymore
https://github.com/libretro/RetroArch/commit/4e66962ba83941b85b206778828596c6ad20be33
2017-12-04 13:27:05 +01:00
twinaphex f08b049520 Move more variables 2017-12-04 13:24:27 +01:00
twinaphex 2fd720bcb3 move more variables over 2017-12-04 13:21:23 +01:00
twinaphex 9a8f73fb6c Move variables 2017-12-04 13:18:34 +01:00
twinaphex 48c3a50932 Move more variables 2017-12-04 13:03:14 +01:00
twinaphex f47888aeda Move more variables to renderchain data 2017-12-04 12:50:22 +01:00
twinaphex 19ad9aa1cb Add resolve extensions callback 2017-12-04 12:43:22 +01:00
twinaphex 69d3fd5047 Get rid of fence_count in gl struct 2017-12-04 12:03:29 +01:00
twinaphex 267e6fe85f Move fence variables to renderchain data struct 2017-12-04 12:02:53 +01:00
twinaphex 072570bbf3 (GL) Update GL1 renderchain too 2017-12-04 11:58:16 +01:00
twinaphex 05ab278aca Pass chain userdata to renderchain driver 2017-12-04 11:54:30 +01:00
twinaphex 241df59771 Get rid of include 2017-12-04 11:20:18 +01:00
twinaphex 4e342956c1 Update comment 2017-12-04 06:13:01 +01:00
twinaphex 512a1b4cb6 Cleanups 2017-12-04 06:03:11 +01:00
twinaphex 9558e569f1 We can still make use of this for PowerPC Mac 2017-12-04 05:56:03 +01:00
twinaphex c869cc5102 Refactor GL code 2017-12-04 05:55:18 +01:00
twinaphex 5a341acb5f Wrap more GL framebuffer functions 2017-12-04 04:57:58 +01:00
twinaphex 44f3341ffe Add EXT versions for OSX PPC 2017-12-04 04:42:40 +01:00
twinaphex 19d7afd0c2 remove 2017-12-04 04:30:28 +01:00
twinaphex e9af9f1b09 Add EXT version 2017-12-04 04:20:54 +01:00
twinaphex b2fbb9aeda Prepare to map DeleteFramebuffersEXT like this 2017-12-04 04:18:28 +01:00
twinaphex 52e7a533f0 Improve FBO check 2017-12-04 04:12:46 +01:00
twinaphex 6221512911 use EXT version of Framebuffer/Renderbuffer functions for MacOS X
PowerPC
2017-12-04 04:04:07 +01:00
twinaphex 0bf461c40f Try to get past OSX PowerPC crash on exit 2017-12-04 03:27:03 +01:00
twinaphex f53093de4d Default to nbio stdio for PowerPC Mac 2017-12-04 03:12:45 +01:00
neville 43f6a03110 (OSX PPC) Buildfixes 2017-12-04 02:59:06 +01:00
twinaphex 97529ade6e OSX PowerPC might not define O_CLOEXEC 2017-12-04 02:48:08 +01:00
Jean-Paul Mari 5ba7433232 Merge pull request #1 from libretro/master
Merge #1
2017-12-03 16:13:17 -05:00
Andrés 5795d9926c Merge pull request #5854 from fr500/master
this probably fixes the shader on noveau and others
2017-12-03 15:11:52 -05:00
radius 2747067f61 this probably fixes the shader on noveau and others 2017-12-03 15:10:24 -05:00
Twinaphex da233c89c9 Merge pull request #5853 from fr500/master
fix the shader and the label
2017-12-03 18:28:58 +01:00
radius 3cd7026819 fix the shader and the label 2017-12-03 12:20:07 -05:00
Twinaphex ecb84c9224 Merge pull request #5852 from fr500/master
let it snow
2017-12-03 09:38:29 +01:00
radius bada13a215 let it snow 2017-12-02 22:47:44 -05:00
twinaphex 04b26fe111 Put braces around macros 2017-12-03 03:43:05 +01:00
twinaphex 0a3fb3ec40 Change value to 1.0f 2017-12-03 03:37:06 +01:00
Twinaphex 7e4cf9b0d0 Merge pull request #5850 from fr500/master
reenable network gamepad and fix slow motion
2017-12-03 03:32:16 +01:00
radius 69c2040e55 fix slow motion 2017-12-02 21:30:09 -05:00
Twinaphex 8082dfe56c Merge pull request #5851 from QuarkTheAwesome/wiiu-toolchain-patch1
[WiiU] Toolchain: Actually fix C++ constructors/destructors (oops!)
2017-12-03 03:14:47 +01:00
Ash e9a3088a79 [WiiU] Toolchain: Actually fix C++ constructors/destructors (oops!)
Looks like I temporarily forgot how external symbols work. Fixes
https://gbatemp.net/posts/7720955; hopefully we finally have C++ under
control.
2017-12-03 11:31:30 +11:00
Brad Parker 4efc8453c2 buildfix for certain mingw environments 2017-12-02 15:59:42 -05:00
radius b1911495ad reenable network gamepad 2017-12-02 13:59:44 -05:00
bparker06 78bf72e29e blissbox: add atari pad type 2017-12-02 13:33:09 -05:00
twinaphex 2608fd1550 (task_autodetect.c) Cleanups 2017-12-02 11:36:22 +01:00
Twinaphex 5f0a9fffbb Merge pull request #5827 from hiddenasbestos/input_driver_x11
Add new lightgun/mouse-bind features to X11 driver
2017-12-02 09:18:17 +01:00
twinaphex a132e33231 Add copyright headers to ps3py 2017-12-02 05:17:14 +01:00
Brad Parker 067f5bcd16 blissbox: add 4-Play to overridden hid name 2017-12-01 22:40:17 -05:00
Brad Parker 0eb8c47166 try to fix lack of GUID type on buildbot that I cannot reproduce 2017-12-01 14:38:13 -05:00
Brad Parker b9394846dc blissbox: use win32 HID API to get pad type on windows, libusb seems broken there 2017-12-01 14:07:40 -05:00
Twinaphex 64ef42c9f9 Merge pull request #5841 from orbea/revert-5824-retroarch-assets-makefile
Revert "Use RetroArch Assets' Makefile to install Assets"
2017-12-01 15:49:12 +01:00
orbea 5d5aa7ca60 Revert "Use RetroArch Assets' Makefile to install Assets" 2017-12-01 06:26:02 -08:00
Twinaphex 8e81b04374 Merge pull request #5840 from QuarkTheAwesome/wiiu-optional-controllerpatcher
[WiiU] Make controller_patcher a compile-time option
2017-12-01 09:20:25 +01:00
Ash bf3e256a43 [WiiU] Input: Make controller_patcher a compile-time option
As discussed in libretro#5357; controller_patcher is now optional. It's
off by default; though this could be changed with a simple makefile
tweak (ENABLE_CONTROLLER_PATCHER ?= 1, perhaps?)

To re-enable controller_patcher; append ENABLE_CONTROLLER_PATCHER=1 to
your usual make command.

controller_patcher was the only user of c++ constructors in the Wii U
port, so you'll need 26a006c in your tree otherwise you will have a
blackscreen on startup.
2017-12-01 18:29:21 +11:00
Ash 26a006cfac [WiiU] Toolchain: Fix C++ constructor/destructor handling
The old setup relied on there being at least one constructor *or* the
value of *__CTOR_LIST__ being NULL. Neither of these are guaranteed; and
having no C++ constructors actually resulted in a random value being
read (which passed the NULL check!). This new setup uses the
__CTOR_END__ symbol; which is a pointer to just after the end of the
list. When there are no constructors, it has the same value as
__CTOR_LIST__; so the while loop is never entered.

This fix also allows us to re-enable destructors; in case they're ever
needed.
2017-12-01 18:18:02 +11:00
Twinaphex 40a6136319 Merge pull request #5824 from RobLoach/retroarch-assets-makefile
Use RetroArch Assets' Makefile to install Assets
2017-12-01 07:53:29 +01:00
Twinaphex f48460b114 Merge pull request #5835 from Q3CPMA/master
Really fixes HOST_NAME_MAX usage this time
2017-12-01 01:31:11 +01:00
Twinaphex 96987e7cac Merge pull request #5836 from QuarkTheAwesome/wiiu-exception
[WiiU] Exception handler fixes - coreinit offsets now working
2017-12-01 01:30:40 +01:00
Ash 52fb8276d7 [WiiU] Exception handler: minor comment tweak 2017-12-01 11:03:09 +11:00
Ash 469662345f [WiiU] Exception handler: remove opcodes; fix strcmp misuse
Thanks for @gblues for finding the strcmp bug.
I've removed the opcode display since it's a bit unsafe - if the
exception handler causes a DSI; Cafe OS will take over and freeze up the
console. This is obviously not a good thing. There are possible
situations where memory is executable and not readable; so this is just
about covering all bases until a better solution can be implemented.
Maybe we can experiment a bit more once this handler isn't being used so
often ;)
2017-12-01 10:56:54 +11:00
Ash a79d3aa8aa [WiiU] Exception handler: fix coreinit handles, add opcode to DSIs
Coreinit seems to get special handles, so adding a special case should
make its relative addresses actually become helpful again. Let's just
hope __PPCExit stays at 0x180!
Also added the violating opcode to the DSI message; may have to move it
in case it pushes stuff off the end of the screen.

Untested at time of commit. Hopefully this should make debugging #5357 a
bit easier...
2017-12-01 10:54:21 +11:00
q3cpma 6e8fb49d05 Whoops 2017-12-01 00:17:50 +01:00
Twinaphex abfb9ec0b5 Merge pull request #5832 from Q3CPMA/master
Fixes compilation on FreeBSD (and hopefully on other POSIX platforms)
2017-11-30 22:24:47 +01:00
Twinaphex b5567b52de Merge pull request #5833 from theheroGAC/patch-26
Update msg_hash_it.h
2017-11-30 22:24:27 +01:00
theheroGAC 9ee5ef0f74 Update msg_hash_it.h 2017-11-30 21:54:59 +01:00
q3cpma fa3aab9768 Fixes compilation on FreeBSD (and hopefully on other POSIX platforms) 2017-11-30 16:53:55 +01:00
David Walters a9451822b5 Improved handling of libusb hotplug capability (#5830)
* Improved handling of libusb hotplug capability

* Only deregister hotplug callback if registration happened.
2017-11-30 10:30:46 -05:00
twinaphex 6c69002ab4 Start adding not-complete kqueue codepaths - bparker - see if you can
finish this up
2017-11-30 07:28:59 +01:00
twinaphex 62280439b7 Rename epfd to fd 2017-11-30 07:00:25 +01:00
Andrés 57d617cd5f Merge pull request #5828 from fr500/master
allow building and debugging RetroArch from Visual Studio code automa…
2017-11-29 21:59:22 -05:00
twinaphex 2203deb499 Need to include config.h here 2017-11-30 03:43:51 +01:00
Brad Parker 9aeddb781a GlobalMemoryStatusEx only exists for 2000 and up 2017-11-29 19:33:39 -05:00
radius 562f7071f0 allow building and debugging RetroArch from Visual Studio code automatically on a MINGW64 (MSYS2) installation
this works if MSYS2 is installed in the default path

allow building RetroArch from the command pallete

Allow building, and starting RetroArch via vscode Tasks

use 3 whitespaces for tabs
2017-11-29 18:21:13 -05:00
leiradel b13c9a89df Merge branch 'master' into cheevos_loaded 2017-11-29 22:10:29 +00:00
Alcaro 4e66962ba8 #5664 2017-11-29 21:39:35 +00:00
David Walters 05578f0634 Show VID/PID values for unsupported devices. (#5825) 2017-11-29 15:56:18 -05:00
David Walters 5f095677a7 fix for wiiu build (#5826) 2017-11-29 15:55:31 -05:00
David Walters 7dfcc169de Add new lighgun/mouse-bind features to X11 driver 2017-11-29 18:32:58 +00:00
Andrés cc2080c04f Rename PULL_REQUEST_TEMPLATE to PULL_REQUEST_TEMPLATE.md 2017-11-29 12:03:42 -05:00
Andrés 825887810b Create PULL_REQUEST_TEMPLATE 2017-11-29 12:03:21 -05:00
Rob Loach ed99c36851 Use retroarch-assets makefile to install assets 2017-11-29 11:46:11 -05:00
Brad Parker 5453853001 remove extra paren 2017-11-29 11:32:32 -05:00
Brad Parker f41187df22 remove extra brace 2017-11-29 11:17:13 -05:00
Brad Parker 44b70efb68 style nits 2017-11-29 10:42:39 -05:00
Brad Parker 42e81dcef4 add back missing code from c5bdc02 2017-11-29 10:35:52 -05:00
Brad Parker aa1f95b3d5 undo changes in c5bdc02 that reverted my previous commits: 34491a6 28c6237 1f58d9c 61bd9d7 2017-11-29 10:22:30 -05:00
Twinaphex 17d4793c3f Merge pull request #5815 from bparker06/blissbox
initial Bliss-Box support
2017-11-29 06:59:13 +01:00
Brad Parker 5279b02dce travis: libusb package was in wrong place 2017-11-28 23:16:38 -05:00
Brad Parker e2837d7dfb add libusb to travis file 2017-11-28 22:34:34 -05:00
Brad Parker 5a2dff0ff1 only use libusb code if we have support for it 2017-11-28 22:32:41 -05:00
Brad Parker def24ef8eb blissbox: print message if detecting update mode or old firmware versions, override vid/pid check for autoconfig profiles, misc comments 2017-11-28 21:25:54 -05:00
Brad Parker 2dd64d9c11 Initial blissbox support, requires firmware 2.0. Currently limited to platforms with libusb support. 2017-11-28 18:25:12 -05:00
Brad Parker 224b581881 C89 buildfix 2017-11-28 11:43:32 -05:00
Twinaphex eddeaddb17 Merge pull request #5813 from altiereslima/master
Updated Portuguese Translation
2017-11-28 17:03:24 +01:00
altiereslima 96b7fa46dc Updated Portuguese Translation 2017-11-28 13:58:03 -02:00
Twinaphex d8af18881f Merge pull request #5812 from hiddenasbestos/input_uint64_fixes
Controller 'get all buttons state' - replace uint64_t with retro_bits_t*
2017-11-28 16:42:40 +01:00
David Walters f09477d46a additional compile fixes 2017-11-28 10:36:16 +00:00
David Walters c5bdc02d6f replace uint64_t with retro_bits_t* for pad buttons state 2017-11-28 10:04:34 +00:00
twinaphex 6ed5a911d7 Create path_mkdir_error 2017-11-28 08:59:33 +01:00
twinaphex 013d2eba40 Fix Griffin build 2017-11-28 02:52:40 +01:00
Brad Parker 130203c431 gdi: fix closing window via X button 2017-11-27 20:49:56 -05:00
Brad Parker 02cb0fc583 griffin: add -DEBUG to linker flags for MSVC is building with DEBUG=1 2017-11-27 19:43:07 -05:00
Twinaphex 54bf818372 Merge pull request #5810 from orbea/systemd
qb: Make systemd support configurable.
2017-11-27 23:57:15 +01:00
Twinaphex 8b8907a715 Merge pull request #5811 from extrowerk/haiku_support
Haiku build fix
2017-11-27 23:56:58 +01:00
Brad Parker ae6892a89a nbio: buildfix for Windows versions older than 2000 2017-11-27 17:48:07 -05:00
Brad Parker 82884b319b add missing UTF-8 BOMs back for MSVC 2017-11-27 17:42:45 -05:00
Brad Parker ab5fa13027 some systems have lowercase drive letters 2017-11-27 17:42:12 -05:00
Zoltán Mizsei 4f46402afb Haiku build fix 2017-11-27 22:33:58 +01:00
orbea 4463c0c815 qb: Make systemd support configurable. 2017-11-27 13:25:20 -08:00
Twinaphex 2fbfbd8eac Merge pull request #5808 from orbea/qb
qb: Silence some shellcheck warnings.
2017-11-27 20:28:00 +01:00
orbea fadea3730f qb: Silence some shellcheck warnings. 2017-11-27 10:03:13 -08:00
Alcaro 26008ca580 #5802 2017-11-27 17:55:05 +01:00
Brad Parker 61bd9d7d70 libusb: early return if we fail to get a config descriptor, otherwise the memory returned is invalid (and should not be freed either) 2017-11-27 11:30:29 -05:00
Brad Parker 1f58d9cd1f comment 2017-11-27 11:30:29 -05:00
Brad Parker 28c6237b47 FreeBSD: support libusb hid input driver 2017-11-27 11:30:29 -05:00
Brad Parker 34491a6025 libusb: prevent crash on driver deinit when there are no pad connections 2017-11-27 11:30:29 -05:00
Alcaro 4cc7cad454 fix missing %s 2017-11-27 17:17:07 +01:00
Alcaro 00fd39c9a0 fix missing %s 2017-11-27 17:16:38 +01:00
Alcaro a96e3e1ead fix missing %s 2017-11-27 17:16:22 +01:00
Alcaro 6394e30cb5 fix missing %s 2017-11-27 17:16:11 +01:00
Alcaro e21de200a6 fix missing %s 2017-11-27 17:15:58 +01:00
Alcaro 485ad9f6f7 add missing %s 2017-11-27 17:15:21 +01:00
Alcaro 9b99a48cdb just remembered these PRIs don't start with % 2017-11-27 17:12:30 +01:00
Alcaro 0e91822ad1 #5802 2017-11-27 17:11:43 +01:00
Alcaro c1f81616b2 #582 2017-11-27 17:09:59 +01:00
Alcaro 6eaa65ebc0 #5802 2017-11-27 17:09:33 +01:00
Alcaro 4fb12c4bd3 #5802 2017-11-27 17:09:16 +01:00
Alcaro 4275dd8f1f #5802 2017-11-27 17:09:03 +01:00
Alcaro da9cddd833 #5802 2017-11-27 17:08:41 +01:00
Alcaro 0f695f074f #5802
aren't most of the memdesc fields size_t aka uintptr_t rather than uint64_t? whatever, good enough
2017-11-27 17:07:31 +01:00
Twinaphex d4d935ce28 Merge pull request #5806 from hiddenasbestos/input_driver_winraw_2
winraw input driver update for new lightgun/mouse changes
2017-11-27 17:01:52 +01:00
Alcaro ab0e1611e7 fix #5497 close #5802
according to https://github.com/libretro/RetroArch/issues/5497#issuecomment-336640951, this header exists on everything we care about except various microsoft platforms, and all of them have constant printf strings
2017-11-27 16:57:15 +01:00
David Walters e06290a06c updated winraw driver for new lightgun/mouse binding api 2017-11-27 12:51:06 +00:00
twinaphex fc9943476c Add another edge case 2017-11-27 07:25:01 +01:00
twinaphex 70769e435c Add another edge case 2017-11-27 07:23:43 +01:00
twinaphex d75c187c5b Don't show 'Scanning of Directory Finished' if we are scanning a
file instead
2017-11-27 07:04:52 +01:00
twinaphex 9f83175182 Add Automatically Load Content To Playlist feature 2017-11-27 06:47:31 +01:00
Twinaphex 03bd93d323 Merge pull request #5801 from orbea/gnu
libretro-common: Silence redefined warning.
2017-11-27 06:35:00 +01:00
orbea 768b1b433c libretro-common: Silence redefined warning. 2017-11-26 20:14:06 -08:00
twinaphex 09c39a91d7 Cleanups 2017-11-27 04:49:21 +01:00
twinaphex 2dc9c8ead7 Comment out unused code 2017-11-27 04:43:13 +01:00
twinaphex 311b786279 Silence Coverity warning 2017-11-27 04:34:45 +01:00
Twinaphex 0273fe769a Merge pull request #5800 from orbea/qb
qb: Used explicit word splitting to silence shellcheck warnings.
2017-11-27 04:31:51 +01:00
orbea a78f72ccd3 qb: Used explicit word splitting to silence shellcheck warnings. 2017-11-26 19:08:56 -08:00
twinaphex cdf1d9a417 Indent nits 2017-11-27 03:53:46 +01:00
Twinaphex d93b9ebf4d Silence warning 2017-11-27 03:53:25 +01:00
twinaphex 88905661e3 Cleanup 2017-11-27 03:50:33 +01:00
Twinaphex 46b6a5043c Merge pull request #5796 from orbea/printf
qb: Use printf and safer quoting in the check_pkgconf and check_header functions.
2017-11-27 00:55:41 +01:00
Andrés 5088797ca5 Merge pull request #5798 from fr500/master
clear the paths here instead
2017-11-26 18:33:30 -05:00
radius 6dfb6da4ec clear the paths here instead 2017-11-26 18:33:05 -05:00
Andrés cea5ffc38c Merge pull request #5797 from fr500/master
remove this again, it causes issues saving remaps/presets/overrides
2017-11-26 18:24:15 -05:00
radius bb5f7d1cc1 remove this again, it causes issues saving remaps/presets/overrides 2017-11-26 18:22:59 -05:00
leiradel ebbd1883ff Merge branch 'master' into cheevos_loaded 2017-11-26 22:50:39 +00:00
orbea 5361950d1c qb: Use printf and safer quoting in the check_pkgconf and check_header functions. 2017-11-26 14:19:29 -08:00
Andre Leiradella 6903602665 Set cheevos_loaded to false if the cheevos and leaderboard lists are empty 2017-11-26 22:03:59 +00:00
twinaphex dfebea9109 Cleanups 2017-11-26 22:58:36 +01:00
twinaphex 00d57af005 C89_BUILD fixes 2017-11-26 22:53:42 +01:00
twinaphex 493d442f8c Silence some warnings 2017-11-26 22:43:58 +01:00
twinaphex e35394d4bd Fix MSVC 2003 build 2017-11-26 22:41:34 +01:00
twinaphex 97f971fd46 Fix C89 build 2017-11-26 22:38:12 +01:00
Twinaphex 2980772fef Merge pull request #5790 from hiddenasbestos/new_lightgun_api
New Lightgun API
2017-11-26 22:17:51 +01:00
Twinaphex fc9f1a42e0 Merge pull request #5794 from orbea/config
qb: Set configure paths without unset variables.
2017-11-26 21:45:38 +01:00
orbea fec63ae8ed qb: Set configure paths without unset variables. 2017-11-26 12:26:33 -08:00
Twinaphex d85db4e759 Merge pull request #5793 from fr500/master
Misc fixes
2017-11-26 19:47:48 +01:00
radius 6e67a6ba63 let's just clear basename instead (used to populate override, remaps, shader preset paths 2017-11-26 13:43:00 -05:00
radius 2dda04787a only disable states when hardcore mode is enabled 2017-11-26 13:40:08 -05:00
radius bc69737dae remove this, it's causing issues with the history list 2017-11-26 13:40:08 -05:00
radius 3991f9b316 add frontend name to netplay announce 2017-11-26 13:40:08 -05:00
Twinaphex 4c38ac9bae Merge pull request #5792 from bkoropoff/no-bin
Remove commited Mac binaries
2017-11-26 19:02:02 +01:00
Brian Koropoff 461b884dc0 Remove commited Mac binaries 2017-11-26 09:58:24 -08:00
meepingsnesroms 34c7d61ec7 Merge pull request #5771 from meepingsnesroms/master
Add 3ds assets, move assets from ctr to pkg/ctr
2017-11-26 09:37:05 -08:00
David Walters 6168db8aeb correct lightgun api comment 2017-11-26 17:20:41 +00:00
David Walters 59c188f75c Implement new lightgun API 2017-11-26 17:09:15 +00:00
David Walters 816ffe6fcf Change mouse button name style in localisation strings. 2017-11-26 17:04:30 +00:00
David Walters dbd9bf3b46 New lightgun binds 2017-11-26 16:59:48 +00:00
Twinaphex a7eea8349c Merge pull request #5789 from fr500/master
Fix some issues with contentless cores
2017-11-26 17:57:01 +01:00
David Walters 70ff6db30c Lightgun input localisation strings. English only 2017-11-26 16:46:52 +00:00
David Walters 218d7f88ff New lightgun API in libretro.h 2017-11-26 16:46:33 +00:00
radius db2ce016de clear paths properly before loading the next core without closing content 2017-11-26 11:33:18 -05:00
radius 1003e681cc don't assume the core never has content 2017-11-26 11:33:02 -05:00
Twinaphex 286886e0a5 Merge pull request #5788 from hiddenasbestos/mbutton_binds
Bind mouse buttons/wheel to inputs
2017-11-26 17:05:02 +01:00
David Walters c733f96a16 listen for mouse buttons/wheel when binding input 2017-11-26 15:42:47 +00:00
David Walters cdb5a656f2 dinput: only support hardware mouse index 0 2017-11-26 15:40:27 +00:00
David Walters 59812e9509 include mouse buttons in block hotkey check 2017-11-26 13:23:39 +00:00
David Walters 9682e2777b support for mouse button binds in Windows input drivers 2017-11-26 12:55:17 +00:00
David Walters b267419551 initialise/clear mbutton field 2017-11-26 11:56:55 +00:00
David Walters 25efae0630 Show mbutton binds on settings list; comma separate joy and key bins 2017-11-26 11:56:02 +00:00
David Walters 1d70fef70c load/save mbutton assignments to retroarch config 2017-11-26 11:54:10 +00:00
David Walters 56ea1253ff msg_hash strings for mouse buttons+wheel *English Only* 2017-11-26 11:51:07 +00:00
David Walters b190ac1943 Add 'mbutton' field to retro_keybind struct 2017-11-26 11:49:37 +00:00
twinaphex 66c7eccd91 Cut down on code duplication 2017-11-26 07:35:06 +01:00
twinaphex 064ad8145a Cut down on code duplication 2017-11-26 07:29:19 +01:00
twinaphex e049b51a21 Cleanup 2017-11-26 07:17:31 +01:00
twinaphex ec92edb998 Cut down on code duplication 2017-11-26 07:10:18 +01:00
twinaphex 1dab4a7f83 Cut dowon on code duplication 2017-11-26 07:04:05 +01:00
twinaphex 2e7a532c89 Cut down on code duplication 2017-11-26 06:57:05 +01:00
twinaphex edfe5e6991 Cut down on code duplication 2017-11-26 06:49:58 +01:00
twinaphex d5c30fd68c Cleanups 2017-11-26 06:35:53 +01:00
twinaphex ce91c082e4 Cut down on code duplication 2017-11-26 06:23:30 +01:00
Twinaphex 3a13b3a065 Merge pull request #5784 from orbea/pkgconf
qb: Create a check_val function for the no pkg-config fallback path.
2017-11-26 06:13:33 +01:00
twinaphex 99fcc63b38 Cut down on code duplication 2017-11-26 06:12:51 +01:00
twinaphex bd1e06bbb7 Group identical functions 2017-11-26 06:03:34 +01:00
twinaphex f15aaa0b2c Reduce differences between the two functions 2017-11-26 05:07:35 +01:00
twinaphex dee66ab6bb Get rid of this - seems to be a highly problematic codepath in
general
2017-11-26 05:04:18 +01:00
Unknown 7f2f90de24 Fix name issue with nekop2, use ${DEVKITPRO} for smdhtool, got devkitarm setup, compiles and works 2017-11-25 18:35:05 -08:00
twinaphex 771efdabc0 Fix edge case issue where game's label was not being properly set
when loading two games one after another from a playlist/collection -
the previous game's name was being used instead
2017-11-26 03:01:28 +01:00
orbea 631f0c4a8b qb: Create a check_val function for the no pkg-config fallback path. 2017-11-25 17:42:41 -08:00
meepingsnesroms 621567e0e6 Merge pull request #2 from libretro/master
Merge upstream
2017-11-25 17:26:02 -08:00
twinaphex 9875bbbd7d Silence some Coverity warnings 2017-11-26 01:06:48 +01:00
Twinaphex 0dfb6e2c64 Merge pull request #5783 from orbea/pkgconf
qb: Define $2_LIBS in the check_lib function.
2017-11-26 01:02:40 +01:00
twinaphex 5e3eb437ac Change RARCH_ERR invocations 2017-11-26 00:57:02 +01:00
orbea 714aee7068 Makefile.common: Use new defines from config.mk. 2017-11-25 15:40:08 -08:00
orbea fc5f04a762 qb: Define $2_LIBS in the check_lib function. 2017-11-25 15:27:01 -08:00
twinaphex cda840683b playlist.c - some optimizations 2017-11-26 00:02:28 +01:00
twinaphex df7513be27 Cleanups 2017-11-25 23:39:31 +01:00
Twinaphex 591ffed24a Merge pull request #5782 from orbea/pkgconf
qb: Add $PKG_CONF_USED to the check_lib function to help avoid undefined references.
2017-11-25 23:10:42 +01:00
twinaphex b4ac3e7b2f Cleanups 2017-11-25 23:06:56 +01:00
twinaphex 8cc2e9bade Cleanups 2017-11-25 23:06:25 +01:00
twinaphex e8b21cbafe Refactor code 2017-11-25 22:59:47 +01:00
twinaphex b604a1871a Create command_playlist_update_write_file and move it to command.c 2017-11-25 22:54:42 +01:00
orbea e0eb2b8a31 qb: Add $PKG_CONF_USED to the check_lib function to help avoid undefined referenecs. 2017-11-25 13:52:52 -08:00
twinaphex ca616f3e32 Cleanup 2017-11-25 22:33:43 +01:00
twinaphex bf8cfe4123 Add HAVE_MENU ifdef 2017-11-25 22:00:56 +01:00
Twinaphex 93451012ec Merge pull request #5781 from orbea/pkgconf
qb: Clean up empty defines in config.mk
2017-11-25 21:58:00 +01:00
twinaphex a2f721a623 Cleanups 2017-11-25 21:54:30 +01:00
twinaphex ee26a2f2af Restore this 2017-11-25 21:52:30 +01:00
twinaphex aa14dca1b9 Cleanups 2017-11-25 21:51:32 +01:00
twinaphex c992d92c99 Updates 2017-11-25 21:45:28 +01:00
twinaphex 7f3738d3cd More refactoring 2017-11-25 21:40:29 +01:00
twinaphex 086ff6e60a More refactoring 2017-11-25 21:35:00 +01:00
orbea bc4d14149a qb: Clean up empty defines in config.mk 2017-11-25 12:27:41 -08:00
twinaphex 1d9d6d2f40 Refactoring some identical code 2017-11-25 21:18:25 +01:00
Alcaro 3fa035ba2a This include doesn't go here 2017-11-25 20:25:59 +01:00
Twinaphex c2a933e16c Merge pull request #5780 from orbea/egl
qb: Fix undefined references to EGL without pkg-config.
2017-11-25 20:24:33 +01:00
orbea 82db21ed0b qb: Fix undefined references to EGL without pkg-config. 2017-11-25 11:05:40 -08:00
Twinaphex 673219a5cc Merge pull request #5779 from RobLoach/playlist
[XMB] Add To Favorites Playlist Icon
2017-11-25 19:01:22 +01:00
Rob Loach 7e7c17596d Add Add To Favorites Playlist icon id 2017-11-25 12:51:12 -05:00
twinaphex 369be389f4 Don't need HAVE_MMAP for linux 2017-11-25 18:42:12 +01:00
Twinaphex ff7a244f5b use Unix mmap for OSX/macOS now 2017-11-25 18:39:09 +01:00
twinaphex e78ec12973 Can't have redefinitions of nbio_t in Griffin 2017-11-25 18:33:22 +01:00
twinaphex fe12e079bb Reimplement NBIO windows mmap 2017-11-25 17:38:37 +01:00
twinaphex 72b157bfcd DOn't rely on HASVE_MMAP for nbio_windowsmmap.c 2017-11-25 07:26:06 +01:00
Twinaphex 3335c9e246 Merge pull request #5773 from orbea/exists
qb: Clean up qb.comp.sh
2017-11-25 06:22:55 +01:00
twinaphex 72fdfb1edd Add HAVE_CONFIG_H to file_stream.c 2017-11-25 06:17:19 +01:00
twinaphex 0485bab0ef Add HAVE_CONFIG_H to nbio_intf.c 2017-11-25 06:15:30 +01:00
Twinaphex 679275857f Fix warnings 2017-11-25 05:55:48 +01:00
Twinaphex 3902d4c1cf Fix warning 2017-11-25 05:53:56 +01:00
twinaphex d4c3108b88 Implement new nbio interface implementations 2017-11-25 05:51:33 +01:00
twinaphex 7a772b9cd4 Create nbio_intf.c 2017-11-25 05:35:55 +01:00
twinaphex 81e543a4c9 Cleanups 2017-11-25 05:21:35 +01:00
twinaphex 64a6d6f184 Turn nbio_windowsmmap.c Unicode compatible 2017-11-25 05:18:30 +01:00
Twinaphex 8087df7c2c Merge pull request #5777 from bkoropoff/fmt-win
task_database: fix crash from Windows-incomptabile format string
2017-11-25 04:00:56 +01:00
Brian Koropoff fb5e788c1e task_database: fix crash from Windows-incomptabile format string 2017-11-24 18:17:43 -08:00
twinaphex 395e84ede2 Style nits 2017-11-25 02:18:24 +01:00
twinaphex ac651b7581 Cleanups 2017-11-25 02:12:15 +01:00
twinaphex 0f6c453428 Cleanups 2017-11-25 02:10:04 +01:00
Alcaro 0868c4e346 Fix build 2017-11-25 01:53:09 +01:00
twinaphex d0eef2579e remove this - shouldn't be necessary 2017-11-25 00:54:51 +01:00
Alcaro b5722127c7 Fix docs 2017-11-25 00:26:13 +01:00
Alcaro 5999999cd3 Add Linux-native nbio too 2017-11-24 23:56:05 +01:00
Twinaphex f929a83ae9 Merge pull request #5775 from hiddenasbestos/blank_bind
Show "---" for unbound controls, not "(Key: )"
2017-11-24 23:25:34 +01:00
Alcaro 5a6aad3dc7 Add mmap nbio for Windows too 2017-11-24 22:43:22 +01:00
David Walters b3a53ac8ca Show "---" for unbound controls, not "(Key: )" 2017-11-24 21:36:49 +00:00
twinaphex cb16aac7ce Revert "Invoke MAPPER_INIT after CONTROLLERS_INIT"
This reverts commit fdf79e2e9b.
2017-11-24 22:18:36 +01:00
Alcaro 7817ba2340 Add ugly check 2017-11-24 22:14:03 +01:00
Alcaro 053fbd6f27 Add mmap-based nbio implementation (which is too fast for the tests but otherwise passes) 2017-11-24 22:08:57 +01:00
twinaphex 92ea40d96e Fix edge case when file is empty 2017-11-24 21:39:10 +01:00
orbea 51dfbd98b1 qb: Prefer pkgconf over the legacy GNU pkg-config. 2017-11-24 12:12:56 -08:00
orbea 06f10d1368 qb: Clean up qb.comp.sh 2017-11-24 12:12:56 -08:00
Twinaphex 5ce0aca435 Merge pull request #5772 from orbea/add
qb: Combine the add_include_dirs and add_library_dirs functions
2017-11-24 20:47:08 +01:00
orbea 892c6b864a qb: Combine the add_include_dirs and add_library_dirs functions 2017-11-24 10:22:57 -08:00
meepingsnesroms 03f2a325fb Add 3ds assets, move assets from ctr to pkg/ctr
NOTE: I do not have the 3ds version of devkitARM installed so I could
not test it if moving the assets to pkg/ctr broke compiling but I did
change the assets paths in Makefile.ctr and Makefile.ctr.salimander so
it should compile.
2017-11-24 09:28:47 -08:00
Twinaphex fe7b12f274 Merge pull request #5770 from orbea/check_lib
qb: Clean up for qb.libs.sh
2017-11-24 17:39:09 +01:00
twinaphex fdf79e2e9b Invoke MAPPER_INIT after CONTROLLERS_INIT 2017-11-24 17:30:08 +01:00
orbea cf45945aa8 qb: Combine the check_switch_c and check_switch_cxx functions. 2017-11-24 08:21:38 -08:00
orbea 0c9308cd87 qb: Remove unused and redundant check_code_c and check_code_cxx functions. 2017-11-24 08:21:38 -08:00
orbea fbbaf7d5b1 qb: Check which c language is being used in its own function. 2017-11-24 08:21:12 -08:00
orbea f952f392b8 qb: Use printf and better quoting in the check_lib function. 2017-11-24 07:16:33 -08:00
Twinaphex 45fb685375 Merge pull request #5762 from hiddenasbestos/extend_input_bits
Extend input bind limit to 256
2017-11-24 14:48:53 +01:00
Andrés 76b24f7bb4 Merge pull request #5769 from fr500/master
fix a mistake I made when rewriting this code
2017-11-24 08:46:56 -05:00
radius 88e84d1c79 fix a mistake I made when rewriting this code 2017-11-24 08:40:29 -05:00
David Walters 5be7921445 reimplement using retro_bits_t; pass by ref; raise bind limit to 256 2017-11-24 11:19:17 +00:00
David Walters 5294d43bf1 use C89 compatible comment style 2017-11-24 09:28:26 +00:00
twinaphex 2916e6c7ac Cleanups 2017-11-24 06:45:21 +01:00
twinaphex a6f2e46b6a Cleanups - don't call path_get so often 2017-11-24 06:40:13 +01:00
Andrés d973a1eeae Merge pull request #5767 from fr500/master
use a single list for achievements
2017-11-23 22:53:28 -05:00
radius 9b19d334c7 use a single list for achievements 2017-11-23 22:49:11 -05:00
Twinaphex a490039253 Merge pull request #5759 from fr500/master
Achievement badges
2017-11-24 04:09:33 +01:00
twinaphex 8662d66f2e Try to be safer with calloc allocation 2017-11-24 04:08:32 +01:00
radius ca2d2e4ba5 undefine this 2017-11-23 21:43:08 -05:00
Twinaphex af41b0fd6b Merge pull request #5766 from orbea/define
qb: Combine the add_define_header and add_define_make functions.
2017-11-24 03:39:49 +01:00
orbea 1ca43bd819 qb: Combine the add_define_header and add_define_make functions. 2017-11-23 18:36:19 -08:00
radius 36b9bd9675 free CHEEVOS_VAR_JSON 2017-11-23 21:33:41 -05:00
Twinaphex 75f9351f7e Merge pull request #5765 from libretro/revert-5763-single_list
Revert "use a single list for achievements"
2017-11-24 02:50:33 +01:00
Andrés 3744108790 Revert "use a single list for achievements" 2017-11-23 20:49:42 -05:00
Twinaphex 67bec764a4 Merge pull request #5764 from orbea/config.h
qb: Turn $CONFIG_DEFINES from a temporary file into a variable.
2017-11-24 02:44:39 +01:00
Twinaphex c2eaf98c00 Merge pull request #5763 from fr500/single_list
use a single list for achievements
2017-11-24 02:43:36 +01:00
orbea 6351e21d9e qb: Turn $CONFIG_DEFINES from a temporary file into a variable. 2017-11-23 17:40:28 -08:00
twinaphex 7ac5eda1e1 Rewrite input_mapper code - no longer have an internal pointer
inside input_mapper
2017-11-24 02:37:53 +01:00
radius 64f927292f use a single list for achievements 2017-11-23 20:35:54 -05:00
Twinaphex 2d3aa5b917 Merge pull request #5760 from orbea/config.h
qb: Rewrite the create_config_header function to use printf instead of echo.
2017-11-24 02:21:12 +01:00
Twinaphex fcde68ecde Merge pull request #5761 from orbea/config.mk
qb: Turn $MAKEFILE_DEFINES from a temporary file into a variable.
2017-11-24 02:20:54 +01:00
radius f641979769 add badges.c to griffin 2017-11-23 19:43:16 -05:00
radius 556eba5e58 update CHANGES.md 2017-11-23 18:26:46 -05:00
David Walters b0e383d5f0 Extend input bind limit to 128 2017-11-23 23:04:09 +00:00
orbea 2fb0cb79ec qb: Turn $MAKEFILE_DEFINES from a temporary file into a variable. 2017-11-23 14:53:39 -08:00
radius faef304755 use filestream_write_file instead 2017-11-23 17:53:28 -05:00
radius a865720d25 indentation 2017-11-23 17:49:55 -05:00
radius 459b669798 use filestream 2017-11-23 17:47:50 -05:00
radius a80fc4a762 revert this for now 2017-11-23 17:40:22 -05:00
orbea ca534ffa56 qb: Rewrite the create_config_header function to use printf instead of echo. 2017-11-23 14:07:37 -08:00
radius 1c0e692070 rewrite so the variables are not allocated on stack 2017-11-23 17:07:22 -05:00
Twinaphex b16f22b357 Merge pull request #5757 from orbea/config.mk
qb: Rewrite the create_config_make function to use printf instead of echo
2017-11-23 22:10:48 +01:00
Twinaphex 60726b78b6 Merge pull request #5756 from Q3CPMA/master
Set _NET_WM_PID
2017-11-23 22:10:25 +01:00
radius e55adf164a Merge remote-tracking branch 'gamedragon/cheevos_badges' 2017-11-23 14:42:55 -05:00
orbea d3139754bc qb: Rewrite the create_config_make function to use printf instead of echo. 2017-11-23 10:30:59 -08:00
q3cpma 18b2bd527c Set _NET_WM_PID
Also set WM_CLIENT_MACHINE since https://specifications.freedesktop.org/wm-spec/1.3/ar01s05.html
says you must do so if setting the first.
2017-11-23 19:15:59 +01:00
twinaphex 096686140d Rewrite command_event_save_config 2017-11-23 18:07:28 +01:00
GameDragon2k 2b9636d782 Add xmb menu items 2017-11-23 11:55:53 -05:00
twinaphex 3bda00edaf (libretro-common) Add strldup to compat/strl 2017-11-23 17:51:55 +01:00
Twinaphex 3c99ccbea5 Merge pull request #5747 from meleu/patch-9
cheevos: do not show "0 of 0 cheevos unlocked" msg
2017-11-23 17:10:51 +01:00
Twinaphex 5517e6b2cf Merge pull request #5748 from TotalCaesar659/patch-2
Making shortcut description more concrete and adding Russian translation
2017-11-23 17:10:36 +01:00
Twinaphex 3c0dc87c42 Merge pull request #5750 from orbea/build
qb: Honor the --build option.
2017-11-23 17:10:23 +01:00
Twinaphex d0aed5c03d Merge pull request #5751 from justinweiss/ios-expand-symlinks-for-default-dirs
Expand symlinks in default configuration paths for iOS devices
2017-11-23 17:10:13 +01:00
Twinaphex 3944d77ba9 Merge pull request #5754 from orbea/pkgconf
qb: Fix undefined udev references without pkg-config
2017-11-23 17:08:20 +01:00
orbea c4dd3bbdce qb: Fix undefined udev references without pkg-config 2017-11-23 07:18:33 -08:00
GameDragon2k 4f9119d42e Fix conflict 2017-11-23 08:06:33 -05:00
GameDragon2k cfe59bcf2a Cheevos badges 2017-11-23 08:04:54 -05:00
GameDragon2k 63090ae2e4 Simple http request function to download badges. 2017-11-23 08:02:41 -05:00
GameDragon2k 8b9ad28ecb channges to populate and apply badges. 2017-11-23 07:56:47 -05:00
GameDragon2k ec2808685d Add files to handle all cheevos badges. 2017-11-23 07:56:46 -05:00
GameDragon2k 84e80e47df Initial test for badge icon 2017-11-23 07:53:24 -05:00
Justin Weiss 4069ddc926 Expand symlinks in default configuration paths for iOS devices
CFSearchPathForDirectoriesInDomains returns a path in /var, while
getenv(HOME) returns the same path in /private/var. /var is a symlink
to /private/var, but when config is generated, the difference in paths
means they won't be abbreviated correctly.

This change expands symlinks before filling in the default
directories, so those paths will match.
2017-11-22 20:07:27 -08:00
meleu 4318a43ab3 better grammar 2017-11-22 22:34:48 -02:00
orbea e82502f80a qb: Document syntax better. 2017-11-22 15:52:57 -08:00
orbea 8ab308d9dd qb: Honor the --build option.
This makes some distros happy even if it does nothing.
2017-11-22 15:40:15 -08:00
Alcaro f0becad9d9 Document this one's syntax 2017-11-22 23:46:23 +01:00
TotalCaesar659 e72c2bd34a Making description more concrete and adding Russian translation 2017-11-22 19:04:59 +03:00
meleu 8e0ee72283 cheevos: do not show "0 of 0 cheevos unlocked" msg
**This will happen only if `cheevos_verbose_enable = true`.**

When loading a game tha doesn't have any achievement, instead of showing an OSD message saying "You have 0 of 0 achievements unlocked." just say "This game doesn't have any achievement."

I've just added an `if(cheevos_locals.core.count > 0)` and added indentation. The diff makes it look like it got more changes than it actually got.
2017-11-22 12:56:17 -02:00
Twinaphex d5f950a624 Merge pull request #5740 from theheroGAC/patch-25
small change to translation
2017-11-22 13:08:39 +01:00
Twinaphex d991908ba8 Merge pull request #5741 from orbea/vulkan
Silence -Wunused-function warning.
2017-11-22 13:08:24 +01:00
Twinaphex b35f6a48cb Merge pull request #5742 from TotalCaesar659/patch-1
Updated Russian translation
2017-11-22 13:08:12 +01:00
Twinaphex 74693e62d3 Merge pull request #5744 from bparker06/x11_icon
x11: add RetroArch logo to window title bar
2017-11-22 13:07:02 +01:00
Brad Parker 20b73cd676 x11: add RetroArch logo to window title bar 2017-11-22 00:01:42 -05:00
Brad Parker 3c975fe6bd add option to force 32-bit compilation on 64-bit compilers 2017-11-21 23:57:20 -05:00
TotalCaesar659 bfe84d3348 Updated Russian translation 2017-11-22 04:14:34 +03:00
orbea e10dd4d95e Silence -Wunused-function warning. 2017-11-21 13:29:46 -08:00
theheroGAC ca1ae5276e small change to translation 2017-11-21 20:42:46 +01:00
twinaphex c0567266b1 Fix mistake 2017-11-21 19:40:39 +01:00
twinaphex 29b421512a Try to be safer 2017-11-21 19:22:44 +01:00
Twinaphex e8b10d342a Update CHANGES.md 2017-11-21 16:40:48 +01:00
twinaphex 6f5cad5f59 Bump to version 1.6.9 2017-11-21 16:32:24 +01:00
Twinaphex 3ac298a2ce Merge pull request #5736 from orbea/exists
qb: Add a function to find executables in the $PATH
2017-11-21 16:29:10 +01:00
Twinaphex 2f7f90ce36 Merge pull request #5738 from Supernature2k/patch-1
Fix https://github.com/libretro/RetroArch/issues/5737
2017-11-21 16:28:59 +01:00
twinaphex 2c7e5f98fc Bump version code 2017-11-21 16:26:45 +01:00
Supernature2k d9afa9170c Fix https://github.com/libretro/RetroArch/issues/5737
fix issue with network command working only 1 time each
see https://github.com/libretro/RetroArch/issues/5737
2017-11-21 12:04:47 +01:00
orbea b744f2a2c9 qb: Add a function to find executables in the $PATH 2017-11-20 22:06:50 -08:00
Twinaphex d980336a80 Merge pull request #5735 from RobLoach/fix-strdup-char
Fix strdup() memory leak
2017-11-21 04:38:56 +01:00
Twinaphex d36d3e2c89 Update menu_dialog.c 2017-11-21 04:38:38 +01:00
Rob Loach 9e3d6adf6e Fix coding standard 2017-11-20 18:47:27 -05:00
Rob Loach 25c116e192 Fix strdup() memory leak 2017-11-20 18:46:07 -05:00
Twinaphex f27574b807 Merge pull request #5734 from FayneAldan/patch-1
Move Retrosystem to end
2017-11-20 23:41:12 +01:00
twinaphex 76dadbc603 Try to retain backwards compat. with older ffmpeg versions 2017-11-20 23:38:25 +01:00
Twinaphex 517c7b19f5 Merge pull request #5733 from orbea/ffmpeg_snapshot
Fix build with ffmpeg snapshots.
2017-11-20 23:36:34 +01:00
Fayne Aldan 69212cf7c7 Move Retrosystem to end
Enums shouldn't be reordered
2017-11-20 15:19:36 -07:00
orbea 4f5fc6e4ad Fix build with ffmpeg snapshots.
Fixes https://github.com/libretro/RetroArch/issues/5717
2017-11-20 13:52:53 -08:00
twinaphex ed9cd1a70d MSVC 2005 - buildfix 2017-11-20 17:54:13 +01:00
Twinaphex 61df9b273b Merge pull request #5731 from fr500/staging
get a proper error
2017-11-20 11:56:35 +01:00
radius e10aee3f1d get a proper error 2017-11-19 21:04:58 -05:00
Twinaphex 7ff25fe732 Merge pull request #5730 from fr500/master
silence coverity warning
2017-11-20 02:02:22 +01:00
Twinaphex 731db6a4be Merge pull request #5663 from bkoropoff/mame-member
scanner: allow matching archives by member
2017-11-19 23:58:32 +01:00
radius 34934b169c silence coverity warning 2017-11-19 17:34:15 -05:00
Twinaphex 1615a6b538 Merge pull request #5729 from QuarkTheAwesome/wiiu-touch
[WiiU] Add proper DRC touch scaling for non-720p resolutions
2017-11-19 22:54:27 +01:00
Twinaphex ed2db75765 Merge pull request #5727 from fr500/staging
hook up touch callback
2017-11-19 22:53:58 +01:00
radius 4a09dfdb30 fix netplay join with touch 2017-11-19 16:47:34 -05:00
meepingsnesroms 9e3d631824 Fix outdated name of function (libretrodb_tool) 2017-11-19 13:25:17 -08:00
Andrés 842362699c Merge pull request #5728 from fr500/master
console buildfix
2017-11-19 16:22:05 -05:00
radius b32a69889e console buildfix 2017-11-19 16:21:26 -05:00
radius b7f3bede61 hook up touch callback 2017-11-19 16:04:22 -05:00
Twinaphex 118f1986ed Merge pull request #5725 from fr500/master
console build fixes
2017-11-19 21:50:38 +01:00
radius 8f14a92c54 console build fixes 2017-11-19 15:50:01 -05:00
Twinaphex 7588ed6944 Merge pull request #5723 from celerizer/celerizer-bcd
RA Leaderboards: BCD and Ignore Unused Fields
2017-11-19 21:25:51 +01:00
Twinaphex 4c3969976b Merge pull request #5724 from fr500/master
Fix leaks
2017-11-19 21:25:36 +01:00
celerizer 7be0dd9b18 RA Leaderboards: BCD and Ignore Unused Fields
- Support for binary-coded-decimal submits (b0x1234)
- Ignore unused fields from older leaderboards (PRO, FOR, TTL, DES)
2017-11-19 14:16:49 -06:00
radius 8dfc585c59 fix another leak 2017-11-19 13:07:51 -05:00
radius c5dfa314ad fix leak 2017-11-19 12:43:13 -05:00
twinaphex 5b3c1edbef Revert "qb: Add some safe defaults."
This reverts commit 0114c7b0c4.
2017-11-19 17:29:09 +01:00
twinaphex a1539e432c Set netplay_check_frames default to 600 now 2017-11-19 17:23:00 +01:00
Twinaphex 4c9fc31354 Merge pull request #5720 from hyarsan/master
Translated new "Fast forward." message :)
2017-11-19 17:02:38 +01:00
Twinaphex 877a218778 Merge branch 'master' into master 2017-11-19 17:02:31 +01:00
Twinaphex 18436a476d Merge branch 'master' into master 2017-11-19 17:02:06 +01:00
Twinaphex 846181951b Merge pull request #5715 from fr500/master
Fix lan rooms
2017-11-19 17:01:20 +01:00
hyarsan 29289011c2 Translated new "Fast forward." message :) 2017-11-19 16:43:53 +01:00
radius e9afdb327e styling fixes 2017-11-19 09:56:20 -05:00
radius b430b772b5 j is initialized as zero already, i should be netplay_room_count 2017-11-19 09:54:28 -05:00
radius 11611acbe4 use correct size here 2017-11-19 09:43:51 -05:00
radius 9b673152f7 fix C89 errors 2017-11-19 09:41:36 -05:00
Twinaphex 1cefef4d4f Merge pull request #5711 from orbea/IFS
qb: Don't set IFS.
2017-11-19 11:52:30 +01:00
Twinaphex 4f9ebc4037 Merge pull request #5713 from orbea/defaults
qb: Add some safe defaults.
2017-11-19 11:52:22 +01:00
Ash efad07e89f [WiiU] Add proper DRC touch scaling for non-720p resolutions 2017-11-19 17:18:03 +11:00
radius 885f5e7ed7 update Changelog 2017-11-18 22:54:38 -05:00
radius 149469515f Fix lan rooms
Squashed commit of the following:

commit 6e1fea3b16bb330ed2862eb00d2e911221c48a34
Author: radius <[email protected]>
Date:   Sat Nov 18 22:16:02 2017 -0500

    use the baked in address instead of sockaddr

commit 84f2d389fd6352b3037f48c18d133d2f1063d461
Author: radius <[email protected]>
Date:   Sat Nov 18 22:05:57 2017 -0500

    send replies

commit c6733009cc5a25e58391c5fc693b277ea27404b3
Author: radius <[email protected]>
Date:   Sat Nov 18 21:53:12 2017 -0500

    send replies

commit a6816c9481f7ea89a3c97597233e54c6354716e7
Author: radius <[email protected]>
Date:   Sat Nov 18 21:46:55 2017 -0500

    send replies

commit c2453b73ccafbd53192507affbc11d5f279c2e7c
Author: radius <[email protected]>
Date:   Sat Nov 18 21:26:34 2017 -0500

    look for common interfaces

commit fb42e6470242689f5e6160149ef91f0f0abf068d
Author: radius <[email protected]>
Date:   Sat Nov 18 20:06:50 2017 -0500

    send broadcasts in all interfaces

commit b7730596df9775fb815007689e9c7cc06b317b03
Author: radius <[email protected]>
Date:   Sat Nov 18 20:00:17 2017 -0500

    send broadcasts in all interfaces

commit b620a78052d1b95e81d346f3e5efb233e0547793
Author: radius <[email protected]>
Date:   Sat Nov 18 14:30:31 2017 -0500

    add more logging

commit c016c7d559cd631172a58f99cd3e1a1365965b8e
Author: radius <[email protected]>
Date:   Sat Nov 18 14:12:03 2017 -0500

    update log messages

commit 0a49ba61f56f2ca483fa76c7a04f0709c68b95ad
Author: radius <[email protected]>
Date:   Sat Nov 18 13:50:47 2017 -0500

    fix lan room listing for rooms > 1, allow connecting in arbitrary ports
2017-11-18 22:43:47 -05:00
orbea 0114c7b0c4 qb: Add some safe defaults. 2017-11-18 15:03:44 -08:00
orbea 6dc32ffe17 qb: Don't set IFS. 2017-11-18 14:51:53 -08:00
twinaphex c89ed117b6 Style nits 2017-11-18 19:11:14 +01:00
Twinaphex e807f04127 Merge pull request #5708 from RobLoach/cheevos-memory
Fix some Cheevos free() memory calls
2017-11-18 19:10:34 +01:00
Rob Loach 6eb18ed03f Fix some Cheevos free() memory calls 2017-11-18 12:40:46 -05:00
Twinaphex 0e01d3d821 Merge pull request #5707 from RobLoach/slowmotion-display
Fix Slow Motion message timing and priority
2017-11-18 17:57:26 +01:00
Rob Loach 8b360c9072 Fix Slow Motion message timing and priority 2017-11-18 11:54:24 -05:00
Twinaphex 1927508879 Merge pull request #5706 from RobLoach/fastforward-fix
Display a "Fast forward." message
2017-11-18 17:30:59 +01:00
Rob Loach b73a8750e4 Fix coding style for fast forward message 2017-11-18 11:08:11 -05:00
Rob Loach 5a990841dc Fix priority and timing of FPS and Fast Forward messages 2017-11-18 11:05:38 -05:00
Rob Loach 7f38177246 Revert "Revert "Display a "Fast forward." message""
This reverts commit f3c774a797.
2017-11-18 10:48:53 -05:00
Twinaphex 3b6f78972a Merge pull request #5704 from orbea/die
qb: Add a die function to print a warning or exit messages.
2017-11-18 12:37:31 +01:00
Twinaphex 47c99eb2b4 Merge pull request #5696 from alfrix/master
Add Retrosystem theme
2017-11-18 12:37:11 +01:00
twinaphex 2432445641 Update CHANGES.md 2017-11-18 12:23:25 +01:00
twinaphex 0c65e6e4e9 Start bumping version to 1.6.8 2017-11-18 12:21:25 +01:00
orbea bf8863d360 qb: Add a function to print warning or exit messages. 2017-11-18 02:54:58 -08:00
Twinaphex 46ab09e4b5 Merge pull request #5703 from orbea/submodule
qb: Remove old submodule tests.
2017-11-18 11:36:21 +01:00
orbea 84f61a8b46 qb: Remove old submodule tests.
RetroArch no longer uses submodules for various good reasons and now uses git subtrees instead.
    As a result these files will always exist and these tests will always be true.
2017-11-18 02:31:47 -08:00
Twinaphex 29b5e09b24 Merge pull request #5702 from orbea/zsh
qb: Fix --enable-* options for zsh.
2017-11-18 10:53:17 +01:00
orbea 21ae4a29a1 qb: Fix --enable-* options for zsh. 2017-11-18 01:21:29 -08:00
Twinaphex 5ba28b60aa Merge pull request #5699 from meepingsnesroms/master
Properly clean up memory on exit(libretrodb_tool)
2017-11-18 10:18:14 +01:00
Twinaphex eddc5d3b8d Merge pull request #5700 from alfrix/OSD
Shorter notification options
2017-11-18 10:17:59 +01:00
Twinaphex c720c237c5 Merge pull request #5701 from orbea/read
qb: read without -r will mangle backslashes.
2017-11-18 10:17:36 +01:00
Twinaphex 13a0da1f25 Merge pull request #5697 from hiddenasbestos/analog_buttons
Analog buttons
2017-11-18 10:14:35 +01:00
orbea 75e6ad53b6 qb: read without -r will mangle backslashes. 2017-11-17 18:42:49 -08:00
Alfrix f0f033486f Shorter notification options 2017-11-17 22:33:55 -03:00
Brian Koropoff 711877b056 content: preserve info for history/favorites
If the content came from a playlist, use the original label.
Preserve the core path and name in the favorites list.
2017-11-17 16:55:32 -08:00
Brian Koropoff 1db8ae9f60 Update changelog 2017-11-17 16:53:49 -08:00
Brian Koropoff bedf65e72e scanner: prioritize databases with recent matches
This should improve performance when scanning many files
in a row that all match against the same database, which is
the expectation.
2017-11-17 16:53:49 -08:00
Brian Koropoff b668193923 scanner: allow matching archives by member
This allows more flexible detection of content packaged as multiple
compressed files (e.g. MAME).
2017-11-17 16:53:49 -08:00
meepingsnesroms 9d598cb917 Properly clean up memory on exit(libretrodb_tool) 2017-11-17 16:44:15 -08:00
David Walters 795057bacf Support for RETRO_DEVICE_INDEX_ANALOG_BUTTON 2017-11-17 22:46:23 +00:00
Alfrix 1bd65c8f3e Add Retrosystem theme 2017-11-17 19:42:55 -03:00
David Walters 668cc01c5c Added RETRO_DEVICE_INDEX_ANALOG_BUTTON constant 2017-11-17 21:50:50 +00:00
Brad Parker 94aa2cd08a document setvbuf changes, only call it with bufsize >0 2017-11-17 16:12:36 -05:00
twinaphex e6e27fe4cb Silence one Coverity warning 2017-11-17 20:11:22 +01:00
twinaphex 56a3bc10e3 Conditional frees 2017-11-17 19:52:35 +01:00
Twinaphex 1aa05de8ba Merge pull request #5691 from hiddenasbestos/extra_mouse_buttons
Extra mouse buttons
2017-11-17 16:16:44 +01:00
David Walters 41df4a0555 Support for mouse buttons 4&5 2017-11-17 12:00:24 +00:00
Twinaphex a9c0297931 Merge pull request #5689 from bparker06/setvbuf
follow rules for setvbuf()
2017-11-17 11:04:13 +01:00
David Walters 066cbea3c3 Add constants for mouse buttons 4&5 2017-11-17 09:58:40 +00:00
Brad Parker 07f3919811 only call setvbuf right after opening file, and use our own buffer for C89 compliance 2017-11-17 02:28:45 -05:00
Twinaphex c0308f9954 Merge pull request #5684 from libretro/revert-5677-fastforward
Revert "Display a "Fast forward."  message"
2017-11-16 16:29:09 +01:00
Twinaphex f3c774a797 Revert "Display a "Fast forward." message" 2017-11-16 16:28:58 +01:00
twinaphex 6f2efe7f1e Add 'Add to Favorites' to playlist entries 2017-11-16 15:41:37 +01:00
twinaphex 40bb1da981 Cleanups 2017-11-16 14:23:03 +01:00
twinaphex c0d8a2f093 Cleanup 2017-11-16 14:01:42 +01:00
Twinaphex 360e2e54d3 Merge pull request #5677 from RobLoach/fastforward
Display a "Fast forward."  message
2017-11-16 12:20:02 +01:00
twinaphex bfd815985f Rename function callback 2017-11-16 12:02:25 +01:00
Twinaphex 1dc19d347c Merge pull request #5680 from meepingsnesroms/master
Add option to search libretro databases and only print game name (for libretrodb-tool)
2017-11-16 08:20:38 +01:00
Twinaphex 55cca49c76 Merge pull request #5679 from meleu/patch-8
added cheevos related updates
2017-11-16 08:20:29 +01:00
Twinaphex c1bf34606f Merge pull request #5682 from RobLoach/cheat-ENTER-key
Fix for pressing ENTER on cheats menu
2017-11-16 08:19:45 +01:00
Rob Loach dd6ec31f3d Fix for pressing ENTER on cheats 2017-11-15 22:19:29 -05:00
meepingsnesroms b3e22f6060 Add option to search libretro databases and only print game name 2017-11-15 16:42:22 -08:00
meleu 55461f2c2b added cheevos related updates
In my humble opinion the Leaderboards feature (and @celerizer) should be mentioned in the 1.6.8. annoucement.
The Leaderboards capability is a long-awaited feature by the RetroArch/RetroAchievements users.
2017-11-15 22:41:53 -02:00
meepingsnesroms 53d037ee58 Merge pull request #1 from libretro/master
Merge upstream
2017-11-15 15:44:40 -08:00
twinaphex 721b5f9529 Add set_mvp function callback 2017-11-15 16:51:29 +01:00
twinaphex b6b6ba9226 No more GL_FF_MATRIX/GL_FF_VERTEX 2017-11-15 14:30:38 +01:00
twinaphex a5076df751 Implement set_mvp/set_coords - remove GL code from video_driver.c 2017-11-15 14:24:16 +01:00
twinaphex 619acbb5aa Start implementing video_driver_set_mvp properly 2017-11-15 14:16:06 +01:00
twinaphex 2b1481d97f Refactor set_mvp code a bit 2017-11-15 14:09:41 +01:00
twinaphex 2ac75f98ae (renderchain) Start implementing set_coords/set_mvp 2017-11-15 14:02:41 +01:00
Twinaphex bc969d0bf7 Merge pull request #5666 from celerizer/master
RetroAchievements leaderboards
2017-11-15 11:30:13 +01:00
Rob Loach 0e131044fe Add a Fast Forward message to the user 2017-11-14 21:53:57 -05:00
Rob Loach 1ebf008517 Add MSG_FAST_FORWARD 2017-11-14 21:26:35 -05:00
twinaphex b50a667335 Buildfixes for Win32 2017-11-14 21:45:11 +01:00
twinaphex 229841b1c4 Create video_driver_set_coords 2017-11-14 21:43:13 +01:00
twinaphex 683c437941 Updates 2017-11-14 21:34:03 +01:00
twinaphex 41daddfe1c Create video_driver_set_mvp 2017-11-14 21:22:44 +01:00
Francisco José García García 2878818b34 Merge pull request #5676 from libretro/frangarcj-vita-vpk
Changes for Vita VPK
2017-11-14 19:57:59 +01:00
Francisco José García García 8c363f5e94 Copy info from compiled cores on Vita 2017-11-14 19:52:45 +01:00
Francisco José García García b975cb43a7 Change platform driver for vita 2017-11-14 19:49:50 +01:00
Francisco José García García ed41b3c531 Remove assets from vita vpk 2017-11-14 19:46:28 +01:00
Brad Parker 8d4ba8d8c8 griffin: fix rest of msvc platforms 2017-11-14 10:26:39 -05:00
twinaphex e40d392605 Should hopefully work with MSVC this way 2017-11-14 14:28:26 +01:00
Twinaphex 7b30868a29 Merge pull request #5673 from danieljg/usbgeneric
Introduce button mappings for generic usb controller
2017-11-14 07:37:38 +01:00
daniel jimenez e91bae38cf Introduce button mappings for generic usb controller 2017-11-13 22:08:24 -08:00
Brad Parker 0d572b0deb Update CHANGES.md 2017-11-13 17:02:06 -05:00
Brad Parker bc2d6d02af sanitize autoconfig filenames before saving 2017-11-13 16:59:23 -05:00
Francisco José García García bd586e6d2d Remove individual core vpks for vita 2017-11-13 21:11:51 +01:00
twinaphex 118002ce6c Add comment 2017-11-13 12:37:05 +01:00
twinaphex e560adcc9f Refactor this - get rid of set_coords_fallback 2017-11-13 12:27:45 +01:00
twinaphex ade80dbe76 Move gl_ff_matrix to gfx/video_driver.c 2017-11-13 12:15:28 +01:00
twinaphex f53fe4a07c Remove this from set_mvp function 2017-11-13 12:10:18 +01:00
twinaphex 2327d38e0d Remove this 2017-11-13 12:08:46 +01:00
twinaphex 8a82fd7905 Update 2017-11-13 12:05:50 +01:00
twinaphex 2aea191835 Cleanups 2017-11-13 11:34:40 +01:00
twinaphex 6b6d1ee986 Create cb_set_coords 2017-11-13 11:26:53 +01:00
twinaphex 97095404bd Buildfixes 2017-11-13 11:04:09 +01:00
Twinaphex fcae5deb2d Merge pull request #5670 from libretro/Alcaro-patch-2
mali_fbdev_ctx: Remove filestream dependency
2017-11-13 10:52:01 +01:00
Twinaphex 79fdb55f4b Merge pull request #5669 from libretro/Alcaro-patch-1
drm_ctx: Remove filestream dependency
2017-11-13 10:51:52 +01:00
Alcaro 58bae8456a Remove filestream dependency
This causes issues in #5664
2017-11-13 09:45:48 +00:00
twinaphex 5879e551a5 Pass video_info to font driver functions 2017-11-13 10:42:40 +01:00
Alcaro d005adbd42 Remove filestream dependency
This causes issues in #5664
2017-11-13 09:42:39 +00:00
twinaphex 87c82797fd Start cutting down on macro usage 2017-11-13 10:26:56 +01:00
twinaphex da15f9d730 Cleanups 2017-11-13 09:19:33 +01:00
twinaphex 6493b79324 Some buildfixes for CXX_BUILD 2017-11-13 09:11:09 +01:00
twinaphex d861d2b0ae Updates 2017-11-13 09:02:22 +01:00
twinaphex e5ed1acc0a (gl1_renderchain.c) Cleanups 2017-11-13 08:58:49 +01:00
twinaphex 67fea30406 Remove remaining references to HAVE_FBO 2017-11-13 08:55:41 +01:00
twinaphex ec123ef6ca Get rid of most of the HAVE_FBO usage 2017-11-13 06:20:30 +01:00
twinaphex 6fa5fcfa1f Add has_fbo member variable - fixes GL issues 2017-11-13 05:23:44 +01:00
Brad Parker 40a8388c29 skip empty cheats 2017-11-12 23:18:11 -05:00
Brad Parker e9acbbdf9e make some strings translatable and add JP translations 2017-11-12 20:54:58 -05:00
celerizer 3519e4e16a RA Leaderboards: Restore original var.c 2017-11-12 17:06:43 -06:00
celerizer 6db4bd2d8a RA Leaderboards: Submit condition hex multipliers
accidentally reverted a previous change
2017-11-12 11:27:12 -06:00
celerizer 91c40ddfbf RA Leaderboards: Submit condition hex multipliers
Wasn't aware this was possible
2017-11-12 11:23:08 -06:00
twinaphex 9c791e7fb5 CLeanups 2017-11-12 17:45:23 +01:00
twinaphex 60d96b60b5 Start adding gl1_renderchain.c 2017-11-12 17:32:18 +01:00
twinaphex 3ab26b6738 Prevent warning 2017-11-12 17:17:40 +01:00
twinaphex 5eadf021cf early return 2017-11-12 17:16:14 +01:00
twinaphex c5292025c3 Cut down on HAVE_FBO usage and make sure gl->fbo_inited is set to
false if HAVE_FBO is not defined
2017-11-12 17:15:29 +01:00
twinaphex ac14f8bb2a Rearrange some struct members 2017-11-12 17:02:14 +01:00
celerizer b11922dd17 RA Leaderboards: comment fixes
//s to comment blocks
2017-11-11 19:58:08 -06:00
celerizer 6e8cb62cb8 RA Leaderboards: changes at leiradel's request
Fixes:
- The cheevos_print_xxx functions have moved to cheevos_format_value, will be better for RPS in the future.
- CHEEVOS_CONSOLE_ZX81_SPECTRUM -> CHEEVOS_CONSOLE_ZX81
- Remove all instances of CHEEVOS_ENABLE_LBOARDS
- cheevos_parse_format rewritten

New:
- Multiple values multiplied by nothing add correctly
- Failsafe to prevent LBs from submitting 0
- Memory patching for Atari 2600
2017-11-11 17:30:10 -06:00
Brad Parker 23527a82ca free VAO before the renderchain is destroyed 2017-11-11 13:55:05 -05:00
Brad Parker 69f69849be fix circular dependency of renderchain and core context init 2017-11-11 13:51:33 -05:00
twinaphex c1c9e1897c Expand conditional 2017-11-11 19:12:32 +01:00
celerizer 764290b851 Free memory on invalid LB, allow decimal multipliers 2017-11-10 07:17:07 -06:00
twinaphex 40cfde0eba (MSVC 2010) Buildfix 2017-11-10 04:53:08 +01:00
twinaphex 063fc96736 Use gl_bind_texture 2017-11-10 04:28:22 +01:00
twinaphex faab2526c8 Create gl_bind_texture 2017-11-10 03:55:10 +01:00
celerizer ea5de035bf RetroAchievements leaderboards enable/fixes
- Leaderboards are enabled based on an Achievements settings boolean
- Leaderboards don't trigger in softcore
- Values multiplied by nothing are correctly parsed
- Leaderboard memaddrs are patched based on console like cheevos
- Support for '$' operator added
- Human-readable formatting for LB values
2017-11-09 20:33:29 -06:00
celerizer be21586b76 RetroAchievements leaderboard strings 2017-11-09 20:22:38 -06:00
celerizer 33d8031593 RetroAchievements leaderboard strings 2017-11-09 20:19:57 -06:00
celerizer 90aea4dfd7 RetroAchievements leaderboard strings 2017-11-09 20:19:13 -06:00
celerizer 7e7363305b RetroAchievements leaderboard strings 2017-11-09 20:16:47 -06:00
celerizer b80057bfe6 RetroAchievements leaderboard strings 2017-11-09 20:15:43 -06:00
celerizer c334b8f2fd accidental upload 2017-11-09 20:14:49 -06:00
celerizer dcfcfe8d70 RetroAchievements leaderboard strings 2017-11-09 20:10:06 -06:00
celerizer 7ae474e4ac RetroAchievements leaderboard strings 2017-11-09 20:09:37 -06:00
celerizer 5976f34805 RetroAchievements leaderboard strings 2017-11-09 20:07:36 -06:00
celerizer 72bf821a11 RetroAchievements leaderboard strings 2017-11-09 20:06:42 -06:00
celerizer 6a08ca6a18 Get up-to-date with master 2017-11-09 19:57:10 -06:00
celerizer 0495ea07c8 Delete unneeded upload 2017-11-09 19:56:22 -06:00
celerizer f1254e43f8 Delete unneeded upload 2017-11-09 19:55:11 -06:00
celerizer de4d38637c Delete unneeded upload 2017-11-09 19:54:52 -06:00
celerizer 385499d624 Delete unneeded upload 2017-11-09 19:54:16 -06:00
celerizer 7e185b7ce4 Leaderboard fixes, functions
Values multiplied by nothing always correctly add, leaderboard memaddrs are patched, support for '$' operator.
2017-11-09 19:48:38 -06:00
twinaphex b3d8146009 Try to fix PS3 build 2017-11-10 02:19:25 +01:00
twinaphex 0ff54e7bd7 Define GLsync 2017-11-09 01:26:11 +01:00
twinaphex 77ac13b2e9 Buildfix 2017-11-09 01:16:35 +01:00
twinaphex a4c9c738b8 Add init_textures_reference 2017-11-08 22:06:10 +01:00
twinaphex 4f016b2c2c Update 2017-11-08 19:31:00 +01:00
twinaphex 3e1f4defb8 Buildfix 2017-11-08 18:54:15 +01:00
twinaphex 3e0b4552d6 Cleanups 2017-11-08 18:49:45 +01:00
twinaphex 9ab13b719b Get rid of another ifdef 2017-11-08 18:48:01 +01:00
twinaphex 5f7527df08 Move readback function to renderchain 2017-11-08 18:45:28 +01:00
twinaphex c825f849f5 CLeanups 2017-11-08 18:31:17 +01:00
twinaphex d6cc447aa0 Add PBO callback functions 2017-11-08 18:22:05 +01:00
twinaphex 7c6377a7fa Cleanups 2017-11-08 17:45:39 +01:00
twinaphex 9f987dd97b Get rid of NO_GL_READ_PIXELS 2017-11-08 17:42:02 +01:00
twinaphex 0703615bf5 Cleanup 2017-11-08 17:37:16 +01:00
Twinaphex e7188d9444 Merge pull request #5662 from RobLoach/strdup
Fix strdup() call when no path is provided
2017-11-08 17:36:44 +01:00
Rob Loach 9f222010de Fix strdup() call when no path is provided 2017-11-08 11:31:17 -05:00
twinaphex 3428e3d80a Cleanup 2017-11-08 17:10:41 +01:00
twinaphex e91cc7aced Get rid of one extraneous HAVE_GLSL ifdef 2017-11-08 17:08:03 +01:00
twinaphex 9f79b99c94 Init renderchain prior to calling renderchain_driver 2017-11-08 16:58:23 +01:00
twinaphex f28d6009ec Update 2017-11-08 16:53:43 +01:00
twinaphex 6fefc71aa2 Cleanups 2017-11-08 16:49:42 +01:00
twinaphex c1d5622255 Get rid of another ifdef 2017-11-08 16:41:37 +01:00
twinaphex 4b0932ffb3 Move copy_frame to renderchain 2017-11-08 16:38:56 +01:00
twinaphex 64ac26b7d1 Get rid of ifdefs 2017-11-08 16:28:58 +01:00
twinaphex bc45ba38bf Cleanups 2017-11-08 16:25:57 +01:00
twinaphex a295169a3b Add restore_default_state callback - remove more ifdefs 2017-11-08 16:20:55 +01:00
twinaphex 308818afd1 Add VAO callback functions 2017-11-08 16:16:17 +01:00
twinaphex 5b268b79d2 Cleanups 2017-11-08 16:00:37 +01:00
twinaphex 9dd253adea Cleanup 2017-11-08 15:52:23 +01:00
twinaphex 5252d3216a Fix heap use after free error 2017-11-08 15:49:02 +01:00
twinaphex 4a7e8b03b2 Cache core context setting 2017-11-08 05:59:08 +01:00
twinaphex 24434db9d9 (GL) Cleanups 2017-11-08 05:47:37 +01:00
twinaphex a72461c16b Create disable_client_arrays function pointer 2017-11-08 05:44:12 +01:00
twinaphex bd1f04554e Implement ff_matrix/ff_vertex 2017-11-08 05:06:19 +01:00
twinaphex 96876c66ce Updates 2017-11-08 02:36:38 +01:00
twinaphex dc664ff4f2 Cleanups 2017-11-08 01:53:24 +01:00
twinaphex c1f0fceb4f More buildfixes 2017-11-08 00:59:16 +01:00
twinaphex e7599e8952 More buildfixes 2017-11-08 00:55:38 +01:00
twinaphex 97e0ffde9f Buildfix for iOS 2017-11-08 00:53:57 +01:00
twinaphex 0085b24fd5 Cut down on gl_check_capability calls 2017-11-08 00:49:01 +01:00
twinaphex 4cae577ade Cleanups 2017-11-08 00:07:04 +01:00
twinaphex dc700c5d8b Get rid of more ifdefs 2017-11-08 00:05:12 +01:00
twinaphex 0f6a3c8f9d Start cutting down on HAVE_GL_ASYNC_READBACK ifdef 2017-11-07 23:19:54 +01:00
twinaphex 5ea63f3b08 Get rid of HAVE_GL_SYNC ifdef 2017-11-07 23:13:26 +01:00
twinaphex 1bc30331a7 Cleanups 2017-11-07 22:59:36 +01:00
twinaphex 7a33bfe924 Get rid of more HAVE_FBO ifdefs 2017-11-07 22:54:38 +01:00
twinaphex 3ccf8c19f1 Start getting rid of HAVE_FBO ifdefs 2017-11-07 21:34:25 +01:00
twinaphex 0100e7b673 Update 2017-11-07 21:08:54 +01:00
twinaphex fc43a14637 Updates 2017-11-07 21:03:29 +01:00
twinaphex fe2bf47b98 Add more to renderchain driver 2017-11-07 20:56:08 +01:00
twinaphex 00d52a4783 Cleanups 2017-11-07 11:06:18 +01:00
twinaphex a7cd8d94b0 Start going through renderchain driver interface for GL 2017-11-07 11:01:30 +01:00
twinaphex 9c6edaff30 Update renderchain driver for GL 2017-11-07 10:10:52 +01:00
twinaphex 1729bdd7bd Remove this file 2017-11-07 08:21:19 +01:00
twinaphex b05b27bff6 config_file.c - cleanups 2017-11-07 08:08:22 +01:00
twinaphex f681cb455c Prepare GL renderchains 2017-11-07 07:56:18 +01:00
bparker06 814f18b7a8 Update RetroArch-msvc2005.vcproj 2017-11-06 23:46:55 -05:00
twinaphex 01ac15716e (Android) Add extra include dirs 2017-11-06 23:32:02 +01:00
twinaphex 79809df6b5 Add include dirs for PSP 2017-11-06 23:26:49 +01:00
Twinaphex c9c311a770 Merge pull request #5661 from rz5/patch-2
(xmb) De-hardcode the size of 'tabs' array
2017-11-06 22:32:19 +01:00
rz5 0d7f9c7cf0 (xmb) De-hardcode the size of 'tabs' array
As per @bparker06's recommendation.

First element of the enum is forced to be zero, so we can add a tail to the enum that we can use to query its max length.
2017-11-06 20:20:14 +00:00
twinaphex 7d2e9290e2 Convert another file to C 2017-11-06 19:49:06 +01:00
twinaphex f5d9427d48 Convert shader_hlsl.cpp to C 2017-11-06 19:44:00 +01:00
twinaphex 40a7755fe2 Cleanups 2017-11-06 19:39:21 +01:00
twinaphex 13e0bd1932 Change function signature of file_path_rename 2017-11-06 19:17:42 +01:00
twinaphex e5d4e2ac0a Silence a lot of warnings 2017-11-06 19:13:54 +01:00
Twinaphex 00f2a8d7ba Merge pull request #5660 from orbea/netbsd
Add NetBSD to the list of supported operating systems.
2017-11-06 18:42:59 +01:00
Twinaphex 9af89e5d8e Merge pull request #5659 from orbea/rm
qb: Better use of rm.
2017-11-06 18:42:13 +01:00
orbea 3c066b7a13 Add NetBSD to the list of supported operating systems. 2017-11-06 09:03:33 -08:00
orbea f2d70664a3 qb: Better use of rm. 2017-11-06 07:25:04 -08:00
twinaphex a1ce72ef0d Update iOS xcodeproj 2017-11-06 05:40:53 +01:00
Twinaphex 5136ec2df0 Updates 2017-11-06 05:37:32 +01:00
twinaphex 9d8dddfc3c Update solutions 2017-11-06 05:32:56 +01:00
twinaphex 451dc774b0 Update libretro-common 2017-11-06 05:26:07 +01:00
twinaphex 360a3686a0 Update include dirs 2017-11-06 05:23:53 +01:00
Twinaphex a776565367 Merge pull request #5658 from orbea/echo
qb: Remove old commented code.
2017-11-06 03:51:39 +01:00
orbea 10722920ed qb: Remove old commented code.
'echo -n' is not portable and should not be used even if it works on osx.
'printf' would be far preferable, but there really isn't any need.
2017-11-05 18:44:45 -08:00
Twinaphex 20031e0bc4 Merge pull request #5657 from rz5/patch-2
(xmb) Fixed array index out of bounds
2017-11-06 02:10:56 +01:00
rz5 82de482b9f (xmb) Fixed array index out of bounds
Caught by asan:

menu/drivers/xmb.c:3491:16: runtime error: index 8 out of bounds for type 'uint8_t [8]'
menu/drivers/xmb.c:1149:23: runtime error: index 8 out of bounds for type 'uint8_t [8]'
2017-11-06 01:06:13 +00:00
Brad Parker 1771b11a39 wayland: fix heap buffer overflows 2017-11-05 19:31:34 -05:00
Twinaphex b8df76271c Merge pull request #5654 from QuarkTheAwesome/wiiu-warnings
[WiiU] Various warning fixes
2017-11-05 16:14:18 +01:00
Twinaphex f7ac5b3baf Merge pull request #5652 from RobLoach/7z-deps-included
Fix for included 7zip headers
2017-11-05 01:13:33 +01:00
Twinaphex a0dde6ea48 Merge pull request #5653 from RobLoach/patch-19
Clean up deps file includes in audio_mixer.h
2017-11-05 01:13:07 +01:00
Rob Loach 3144c38e7d Clean up deps file includes in audio_mixer.h
The deps folder is already in the include path. This allows deps to be defined elsewhere.
2017-11-04 17:05:39 -04:00
Rob Loach e29e8d9c62 Fix for included 7zip headers 2017-11-04 16:21:02 -04:00
Twinaphex f781db38b9 Merge pull request #5651 from rootfather/intl-de
Intl: Update German translation
2017-11-04 18:29:21 +01:00
rootfather 7ceeb9804d Update German translation [msg_hash_de.c] 2017-11-04 17:37:42 +01:00
rootfather 0893f7df6f Fix tabbing in msg_hash_de.c 2017-11-04 17:17:49 +01:00
Twinaphex 5c39950cf1 Merge pull request #5650 from orbea/fbo
Fix compile with --disable-fbo.
2017-11-04 16:19:52 +01:00
orbea 10032affcb Fix compile with --disable-fbo.
Fixes https://github.com/libretro/RetroArch/issues/5647
2017-11-04 07:47:03 -07:00
Twinaphex 5bd78cc410 Merge pull request #5649 from QuarkTheAwesome/wiiu-makefile
[WiiU] Add quiet support to makefile
2017-11-04 15:12:37 +01:00
Twinaphex 2e62a0a7e7 Merge pull request #5646 from QuarkTheAwesome/master
[WiiU] Fix DRC touch - proper scaling; press detection
2017-11-04 12:44:45 +01:00
Ash 6090aa8f8a [WiiU] Account for 12px clamp on physical screen
Seriously, I think it's good now.
2017-11-04 20:58:25 +11:00
Ash 5f00e2f6bb [WiiU] Reformat fs_utils.c
Was getting warnings around misleading indentation when there
was none, so just redid the whole file.
2017-11-04 20:37:30 +11:00
Ash 0d38612f4a [WiiU] Various warning/format string fixes
All things from unsigned comparisons to missing initializers; we got it
here.
2017-11-04 20:37:30 +11:00
Ash b49268a9e9 [WiiU] Redo exception handler format strings
Deals with the infamous devkitPPC "int32_t = long int" thing, and
future-proofs in case they ever change it back.
2017-11-04 20:37:30 +11:00
Ash e39c820cee [WiiU] Change up wiiu_joypad_name semantics
Prevents warnings from GCC around the possibility of a negative index
going into hidName.
2017-11-04 20:37:30 +11:00
Ash e41b8db3e2 [WiiU] Add quiet support to makefile
Inspired by Makefile.win; this commit will hide compiler commands from
being printed to the shell. Old behaviour can be restored by running
"make -f Makefile.wiiu V=1". Should make it harder to miss warnings now.
2017-11-04 16:19:49 +11:00
Ash fc79fec964 [WiiU] DRC Touch - scale to game image viewport 2017-11-04 16:14:28 +11:00
Jean-André Santoni 4e463123af (Lakka) Flag some advanced settings 2017-11-04 11:27:31 +07:00
Ash a3e4a7612f [WiiU] Fix DRC touch - proper scaling; press detection
Oops! Didn't do this quite right the first time round.
This commit fixes RETRO_DEVICE_ID_POINTER_PRESSED, which would always
return 0 due to to an implicit case to int16_t. Basically, we'd do
(val & 0x00080000) & 0xFFFF; which would return 0 every time. Fixed that
by wrapping it in a ternary. Yes, I know we could use a rotation, but
for a boolean value it really doesn't matter.
I also rewrote scaleTP to deal entirely in integers. While the
floating-point math was theoretically faster on PowerPC; it gets awkward
to cast -0x7FFF to a float.
Speaking of, the driver now actually conforms to the libretro API. Not
sure how I managed to not see the spec; but hey, now its fixed.
RETRO_DEVICE_POINTER_ID_X/Y will now return values between -0x7FFF and
0x7FFF like they're supposed to.

Big thanks to @r-type for hounding me to fix this.
Partially addresses #5294; we still need mouse emulation.
2017-11-04 15:01:58 +11:00
Twinaphex c96a9dbf76 Merge pull request #5639 from orbea/raspian
Fix https://github.com/libretro/RetroArch/issues/5636
2017-11-02 00:19:35 +01:00
orbea 595e69d34d Fix https://github.com/libretro/RetroArch/issues/5636 2017-11-01 11:32:41 -07:00
Twinaphex ed0ce4988d Merge pull request #5637 from vanfanel/master
VC EGL context: Fixed hard freeze when toggling the bilinear filter option
2017-11-01 13:52:07 +01:00
Twinaphex b4abc39289 Merge pull request #5635 from orbea/readme
Add FreeBSD to the list of supported operating systems.
2017-11-01 13:51:46 +01:00
vanfanel 91c9da529f VC EGL context: Fixed hard freeze when toggling the bilinear filter option 2017-11-01 12:19:08 +01:00
orbea f91b9acf2e Add FreeBSD to the list of supported operating systems. 2017-10-31 21:49:41 -07:00
Brad Parker d1278306c7 fix negative wraparound of float/int settings 2017-10-31 11:52:40 -04:00
rootfather ad9f7c2e44 Unify translation for joypad related strings 2017-10-31 12:03:46 +01:00
celerizer bf50bd1df3 sublabels for new RA features 2017-10-31 01:19:55 -05:00
celerizer e41c79daed Add files via upload 2017-10-31 01:18:53 -05:00
celerizer 256766df5e RetroAchievements menu additions
Strings for leaderboards, RPS; changed instances of "Retro Achievements" to "RetroAchievements"
2017-10-31 01:17:44 -05:00
celerizer 1fe0002a21 Leaderboards
Fixed crashing errors for certain leaderboard expressions, added OSD messages, enable/disable options in menus, only allow LBs in hardcore mode, read FormatType and display accordingly on submit, memaddr patching for LB values (may not actually be needed), preliminary RPS stuff.
2017-10-31 01:08:29 -05:00
celerizer 3ada77d154 Add files via upload 2017-10-31 00:58:35 -05:00
Twinaphex 7ba2797032 Merge pull request #5629 from lunixoid/master
Fixed twice assigned values
2017-10-31 06:23:55 +01:00
Brad Parker 2ce53f32ac PSP buildfix 2017-10-30 23:31:51 -04:00
Roman Kalashnikov 400b27a227 Fixed twice assigned values 2017-10-31 00:26:41 +03:00
Brad Parker 598285b461 add missing include for lakka 2017-10-30 17:08:54 -04:00
Brad Parker 28ec3ac3b5 temporary fix for startup hang on Windows 2017-10-30 16:48:34 -04:00
Twinaphex 07b504ce2a Merge pull request #5625 from rz5/patch-3
Update README.md
2017-10-30 06:15:19 +01:00
Twinaphex f341c8daf2 Merge pull request #5626 from RobLoach/pc
Replace 'PC' with the operating system name
2017-10-30 06:15:11 +01:00
Rob Loach b63d12e091 Replace 'PC' with the operating system name 2017-10-30 01:06:20 -04:00
rz5 a25fcf31b7 Update README.md
Use docs.libretro.com instead of a buildbot link.
2017-10-30 05:06:05 +00:00
Twinaphex 65e2f85bc7 Merge pull request #5623 from rz5/patch-2
Update README.md
2017-10-30 04:55:29 +01:00
bparker06 6c157cfd85 Update retroarch.h 2017-10-29 23:29:21 -04:00
Brad Parker fc856c76a8 fix race condition reading OSD message in video driver 2017-10-29 23:28:02 -04:00
rz5 b7f9b08f30 Update README.md 2017-10-30 02:34:43 +00:00
Twinaphex ade710a331 Merge pull request #5622 from olsh/master
Update CHANGES.md
2017-10-29 22:30:18 +01:00
Oleg Shevchenko 93477289df Update CHANGES.md 2017-10-30 00:27:41 +03:00
rootfather 06b989f8bf Update German translation [msg_hash_de.c] 2017-10-29 18:52:55 +01:00
Brad Parker 68a8198e4a convert more file IO functions to use filestream, fixes encoding issues on Windows 2017-10-29 12:08:24 -04:00
Brad Parker 89265f5cf2 filestream_seek does not return the position in the file 2017-10-29 12:08:24 -04:00
Brad Parker 5715774c3f libFLAC: use windows utf8 helper functions for Unicode support 2017-10-29 12:08:24 -04:00
Twinaphex 3d236a57e4 Merge pull request #5621 from hevey/master
MFI Controller being set to Player 2
2017-10-29 14:54:22 +01:00
rootfather 7b24950438 Fix leftover word in MENU_ENUM_LABEL_CHECK_FOR_MISSING_FIRMWARE 2017-10-29 14:41:49 +01:00
Glenn ec806f65f9 fixed MFI controller being set to P2 2017-10-29 18:20:39 +11:00
Twinaphex 5aba01ed26 Merge pull request #5619 from lunixoid/master
Simplified condition in `while`
2017-10-29 01:55:42 +02:00
Brad Parker 22d4fc6fa1 update JP translation 2017-10-28 16:20:46 -04:00
Brad Parker bbf6f2f451 fix "may be used uninitialized in this function" warning 2017-10-28 16:01:29 -04:00
Brad Parker 1842471eb1 use filestream_open to check if a file exists 2017-10-28 16:00:51 -04:00
Roman Kalashnikov cdc61bc206 Simplified condition in while
if `*ptr` value equals ' ', then condition `if(*ptr != '\0')` will always true
2017-10-28 20:56:04 +03:00
Twinaphex a75014c705 Merge pull request #5617 from orbea/check_lib
qb: Combine the check_lib and check_lib_cxx functions.
2017-10-28 02:39:50 +02:00
orbea 48db41a112 qb: Combine the check_lib and check_lib_cxx functions. 2017-10-27 14:53:24 -07:00
bparker06 d5448f3261 Update CHANGES.md 2017-10-27 17:37:39 -04:00
Twinaphex 45058acbef Merge pull request #5616 from orbea/strlcpy
qb: Don't check for strlcpy on linux.
2017-10-27 21:30:08 +02:00
orbea b0d9a5c539 qb: Don't check for strlcpy on linux. 2017-10-27 11:23:55 -07:00
twinaphex 91b5fa7ad6 Update CHANGES.md 2017-10-27 17:06:55 +02:00
twinaphex 08cee280c9 Revert "SRAM Autosave enabled by default for PC / mobile, disabled by default"
This affects performance of games like Kirby Super Star - which use SRAM
as a scratchpad

This reverts commit 6c3a0b0fea.
2017-10-27 17:05:40 +02:00
twinaphex e1bddc8432 Update CHANGES.md 2017-10-27 16:28:13 +02:00
Twinaphex 34e5d73ce9 Merge pull request #5615 from hyarsan/master
Fixed an annoying typo.
2017-10-27 16:27:47 +02:00
twinaphex 526d63872a Fix italics bug 2017-10-27 15:48:26 +02:00
twinaphex c5a69a2b72 Update CHANGES.md 2017-10-27 15:43:10 +02:00
twinaphex 6c3a0b0fea SRAM Autosave enabled by default for PC / mobile, disabled by default
for consoles
2017-10-27 15:39:50 +02:00
Jean-André Santoni bd17c11350 Fix gamecube scanning 2017-10-27 15:17:18 +07:00
Jean-André Santoni 2ddba6770d Start implementing gamecube scanning 2017-10-27 15:17:18 +07:00
Jean-André Santoni 93ee38af05 Add gamecube magic number 2017-10-27 15:17:18 +07:00
hyarsan a71ec4a836 Fixed an annoying typo. 2017-10-26 23:58:10 +02:00
twinaphex 9ae4a9276b Test 2017-10-26 15:15:55 +02:00
Twinaphex 4f58c1a77b Merge pull request #5612 from orbea/quotes
qb: Replace extra quotes with braces.
2017-10-26 14:14:10 +02:00
Twinaphex 6bd333263a Merge pull request #5611 from orbea/sort
qb: Sort set variables.
2017-10-26 14:13:59 +02:00
Jean-André Santoni 77cd18e6bc Remove obsolete SD_FLAG_LAKKA_ADVANCED 2017-10-26 18:38:12 +07:00
Jean-André Santoni 94309a65cf Remove obsolete HAVE_LAKKA ifdefs 2017-10-26 17:58:41 +07:00
orbea 0d43f9f8c7 qb: Replace extra quotes with braces. 2017-10-25 23:16:09 -07:00
orbea 91f6218913 qb: Sort set variables. 2017-10-25 22:07:50 -07:00
Twinaphex b971b821be Merge pull request #5610 from orbea/sed
qb: Don't use sed.
2017-10-26 02:59:59 +02:00
orbea e13837fc18 qb: Don't use sed. 2017-10-25 17:32:29 -07:00
Twinaphex d540e87c3d Merge pull request #5609 from Maschell/master
[Wii U] Added some more checks while parsing the configuration files...
2017-10-25 23:00:12 +02:00
Twinaphex 50bea6a743 Merge pull request #5608 from frangarcj/master
Trying to fix L2/R2/L3/R3
2017-10-25 22:59:43 +02:00
Maschell 6fa80376e0 [Wii U]Added some more checks while parsing the configuration files for the HID controller
This hopefully fixes the crashes when starting retroarch with (faulty)
.ini files
2017-10-25 21:16:31 +02:00
Francisco José García García 03524278c6 Trying to fix L2/R2/L3/R3
Related to #5431
2017-10-25 21:05:15 +02:00
Twinaphex 6575cc5166 Merge pull request #5605 from orbea/test
qb: Remove poorly defined test behavior.
2017-10-25 04:27:45 +02:00
Twinaphex a0b5a2794c Merge pull request #5604 from orbea/subshell
qb: Remove redundant variables.
2017-10-25 04:27:38 +02:00
Twinaphex 185ef85ded Merge pull request #5603 from orbea/true
qb: Avoid using 'true' which could be a binary on some systems.
2017-10-25 04:27:30 +02:00
orbea b9a866326a qb: Remove poorly defined test behavior. 2017-10-24 19:01:36 -07:00
orbea 08dcac4b02 qb: Remove redundant variables. 2017-10-24 15:39:19 -07:00
orbea e12d203a76 qb: Avoid using 'true' which could be a binary on some systems. 2017-10-24 12:43:40 -07:00
Twinaphex 9503edce82 Merge pull request #5602 from orbea/alignment
Fix alignment in ../configure --help
2017-10-24 21:39:38 +02:00
Twinaphex e8abc1c0f0 Merge pull request #5601 from gingerbeardman/patch-2
revert last change that stopped 3DS nightly builds
2017-10-24 21:39:28 +02:00
orbea 8884190154 qb: Print config options first in ./configure --help. 2017-10-24 09:24:56 -07:00
orbea 86bb116625 qb: Fix alignment in ./configure --help. 2017-10-24 09:24:56 -07:00
Matt Sephton 5173be8cc6 revert file 2017-10-24 17:11:49 +01:00
Twinaphex cd942f1faa Merge pull request #5600 from orbea/Qt
qb: Add a description for the Qt wrapper in ./configure --help
2017-10-24 13:58:40 +02:00
Twinaphex c2a5296ee3 Merge pull request #5599 from orbea/tr
qb: Use POSIX character classes instead of character ranges.
2017-10-24 13:58:30 +02:00
orbea affe1932a8 qb: Add a description for the Qt wrapper in ./configure --help 2017-10-23 23:32:01 -07:00
orbea 2b939ab40b qb: Use POSIX character classes instead of character ranges. 2017-10-23 21:48:37 -07:00
Brad Parker 11ff3ddd4b travis/mingw: i686 not x86-64 2017-10-24 00:39:00 -04:00
Brad Parker 3098b5e3df gdi: fix uninitialized usage warning 2017-10-24 00:37:50 -04:00
Brad Parker 20850a7f92 travis: add mingw build targets 2017-10-24 00:37:31 -04:00
Brad Parker 3f27e5d7bb CXX_BUILD fix 2017-10-23 21:48:38 -04:00
Twinaphex 0731bbb81c Merge pull request #5593 from orbea/pdksh
qb: Explicitly set variables as a single command.
2017-10-24 02:09:32 +02:00
orbea 6ead9a09a1 qb: Explicitly set variables as a single command. 2017-10-23 16:19:16 -07:00
hyarsan f9b105d30f Translation update (#5592)
* Translation update

* I fixed it now

* Really this time I think.

* I thought that I just changed it?
2017-10-23 17:38:59 -04:00
Twinaphex 86ff1995b3 Merge pull request #5591 from orbea/cli
Fix regressions from commit 538d51553c.
2017-10-23 15:23:41 +02:00
orbea 33eb1f9e28 Fix regressions from commit 538d51553c. 2017-10-23 05:39:54 -07:00
Twinaphex 03803d1be4 Merge pull request #5587 from leiradel/master
More refactoring
2017-10-23 06:18:32 +02:00
Twinaphex c1543e6219 Merge pull request #5588 from hyarsan/master
Fixed some inconsistent messages asking for things
2017-10-23 06:18:21 +02:00
hyarsan 5a1555c91c Fixed some more inconsistent messages asking for things 2017-10-22 23:21:07 +02:00
hyarsan e2749ee426 Fixed some inconsistent messages asking for things 2017-10-22 22:25:55 +02:00
Andre Leiradella 9ee28f0f24 Moved all cheevos_cond_t related stuff to their own files 2017-10-22 19:42:15 +01:00
Andre Leiradella db1b53fd21 Fixed CID 178160: Uninitialized variables (UNINIT) 2017-10-22 18:02:15 +01:00
Twinaphex 108c4a3127 Merge pull request #5584 from orbea/cleanup
qb: Clean up.
2017-10-22 18:28:50 +02:00
Twinaphex 85f8823d05 Merge pull request #5583 from orbea/cli
When starting content from the cli open the quick menu.
2017-10-22 18:28:33 +02:00
Twinaphex 9279c33711 Merge pull request #5586 from leiradel/master
Moved all cheevos_var_t related stuff to their own files
2017-10-22 18:26:09 +02:00
Andre Leiradella ee6841e80f Add cheevos/var.c to griffin.c 2017-10-22 17:20:50 +01:00
Andre Leiradella cd918390bb Moved all cheevos_var_t related stuff to their own files 2017-10-22 17:11:23 +01:00
orbea 538d51553c When starting content from the cli open the quick menu.
Fix https://github.com/libretro/RetroArch/issues/5554
2017-10-22 08:07:37 -07:00
orbea 008a87c1ae qb: Clean up. 2017-10-22 07:44:14 -07:00
Twinaphex 24d2cafbdf Merge pull request #5570 from leiradel/master
Added a different code path to calculate the hash for Atari Lynx ROMs
2017-10-22 16:11:41 +02:00
Twinaphex 9c128cd2ea Merge pull request #5582 from hyarsan/master
Translation update
2017-10-22 16:00:48 +02:00
Twinaphex 3427c03aba Merge pull request #5578 from orbea/cleanup
qb: Clean up.
2017-10-22 16:00:41 +02:00
Twinaphex 50685a0101 Merge pull request #5577 from orbea/etc
Don't install retroarch.cfg to /etc if --prefix is not set to /usr*
2017-10-22 16:00:33 +02:00
Twinaphex db7c05edd5 Merge pull request #5579 from orbea/reset
Return to content when Reset is used.
2017-10-22 16:00:17 +02:00
hyarsan 182dec7802 Translation update 2017-10-22 14:49:54 +02:00
Andre Leiradella 83f6e70bfa Removed commas from the last enumerations values 2017-10-22 11:51:39 +01:00
orbea 565701b197 Return to content when Reset is used.
Fix https://github.com/libretro/RetroArch/issues/4805
2017-10-22 02:26:47 -07:00
orbea 7c6dc0c8a7 qb: Clean up Darwin tests. 2017-10-21 22:58:15 -07:00
orbea 72d189da96 qb: Clean up. 2017-10-21 22:11:15 -07:00
orbea 5438eb1c6e If the --global-config-dir is not defined and --prefix is not set to /usr* add it to the --global-config-dir. 2017-10-21 21:33:18 -07:00
Twinaphex 2fa74c997b Merge pull request #5575 from orbea/networking
Fix --disable-networking.
2017-10-22 05:38:04 +02:00
twinaphex 8072dab6fe Clean this up 2017-10-22 05:24:57 +02:00
twinaphex d203e4dc9c video_shader_driver_resolve_parameters - fix crash at startup with
MSVC
2017-10-22 05:21:31 +02:00
twinaphex bb051f185b MSVC/C89 buildfixes 2017-10-22 05:13:22 +02:00
orbea f1192ca8ac Fix --disable-networking.
Fixes https://github.com/libretro/RetroArch/issues/2663.
2017-10-21 19:22:14 -07:00
Twinaphex f7218eb85b Merge pull request #5574 from hyarsan/master
Translation update
2017-10-22 02:12:49 +02:00
Twinaphex 38ed310261 Merge pull request #5573 from orbea/zsh
Fix configure for zsh.
2017-10-22 02:12:02 +02:00
hyarsan 833c122d38 Translation update
For future reference, I was the dude named "CreativeName" or something on IRC that wanted to do contributions to the Dutch language of RetroArch. This is one of those contributions! 🙂
2017-10-22 00:46:04 +02:00
orbea 79ee19e2a5 qb: Clean up long lines in check_lib and check_lib_cxx 2017-10-21 14:49:26 -07:00
orbea b733807099 qb: Remove trailing white spaces from config.mk. 2017-10-21 14:49:26 -07:00
orbea 0ff7e829f0 qb: Explicitly word split libs and extralibs 2017-10-21 14:49:26 -07:00
orbea a943fabe1e qb: Fix $VARS for zsh. 2017-10-21 14:49:26 -07:00
orbea 514391b4d8 qb: Remove the leading whitespace from $INCLUDE_DIRS and $LIBRARY_DIRS. 2017-10-21 14:49:26 -07:00
orbea cca4a25757 qb: path is a special variable in zsh so avoid setting it. 2017-10-21 14:49:26 -07:00
orbea 40070e2c93 qb: Find working compilers with zsh. 2017-10-21 14:49:26 -07:00
Andre Leiradella aa8b7f65c5 Added a different code path to calculate the hash for Atari Lynx ROMs 2017-10-21 19:22:22 +01:00
Jean-André Santoni dc7b1c122b Hide savestates in the quickmenu if hardcore achievements are enabled. Fixes libretro/Lakka-LibreELEC#192 2017-10-21 19:12:00 +07:00
Jean-André Santoni 63ba8be296 (Menu) Reset the navigation pointer when closing content 2017-10-21 18:55:00 +07:00
Brad Parker 19af87214a wiiu: only one dash for gcc -std 2017-10-20 23:43:33 -04:00
bparker06 b0f8a570b5 encoding_utf: Fix coverity warnings, extra error checking 2017-10-19 17:24:35 -04:00
twinaphex e9708be756 Prevent Coverity warning 2017-10-19 23:02:18 +02:00
Twinaphex 675b257302 Merge pull request #5567 from gingerbeardman/patch-1
Added Fuse so that it has an APP_UNIQUE_ID
2017-10-19 21:13:12 +02:00
bparker06 be62ed11e5 Travis containers have 2 cores 2017-10-19 13:18:25 -04:00
Matt Sephton 4aaaf16aa8 Added Fuse so that it has an APP_UNIQUE_ID
Will add 81 and np2kai when I have created icons and banners for them and after checking this fixes things for Fuse in the next nightly.
2017-10-19 18:03:44 +01:00
Twinaphex ba2f79a8c3 Merge pull request #5566 from vanfanel/master
Moved original max_swapchain=2 implementation to proper location for future use or reference
2017-10-19 18:50:51 +02:00
vanfanel b40d50bba4 Moved commented old implementation to proper location. 2017-10-19 14:21:47 +00:00
Twinaphex 5b48112379 Merge pull request #5562 from orbea/printf
qb: Don't use variables in the printf format string.
2017-10-19 13:16:11 +02:00
Twinaphex 17a95abeef Merge pull request #5561 from orbea/constant
qb: Fix constant expressions.
2017-10-19 13:15:55 +02:00
Twinaphex ef5cbfed61 Merge pull request #5560 from orbea/xshm
Fix compilation with --enable-xshm.
2017-10-19 13:15:30 +02:00
Jean-André Santoni 628acf5296 Merge pull request #5564 from vanfanel/master
Add experimental way to make max_swapchain=2 work Rpi with GLES on dispmanx
2017-10-19 16:53:27 +07:00
orbea f50d755b45 qb: Don't use variables in the printf format string. 2017-10-18 16:05:09 -07:00
orbea 6733c37805 qb: Fix constant expressions. 2017-10-18 15:23:31 -07:00
Brad Parker fd18c2c942 win32: use W-function for file drag&drop 2017-10-18 15:08:01 -04:00
orbea 5ec052b675 Fix compilation with --enable-xshm.
Fixes https://github.com/libretro/RetroArch/issues/5551.
2017-10-18 09:33:09 -07:00
Brad Parker f3aceefe84 win32: use W-functions for nbio file IO too 2017-10-18 12:30:44 -04:00
vanfanel d9ec2267f7 Change max_swapchain=2 implementation to actually working code. 2017-10-18 12:06:58 +00:00
Twinaphex 3ba4ba5c42 Merge pull request #5559 from Maschell/master
[WII U] Fix for Issue #5556 - Fixed using multiple HID devices with the same vid/pad simoustanly
2017-10-18 12:32:31 +02:00
vanfanel 65ef37706c Add experimental way to make max_swapchain=2 work on EGL/GLES VideoCore (Raspberry Pi) 2017-10-18 03:06:30 +00:00
Maschell 05ef63fd08 [WII U] Fix for Issue #5556
This hopefully fixes the issues when you try to use 2 Controllers with
the same vid/pid at the same time.

Tested with 2 DS4 controller via the Hid to VPAD Network Client.
Adapters with multiple ports (like the official GC-Adapter) are still
working
2017-10-17 21:38:42 +02:00
Brad Parker 0d06a48546 use LEGACY_WIN32 ifdef for filestream also 2017-10-16 00:39:16 +00:00
Brad Parker bd06668075 win32: forgot to add unicode functions for filestream 2017-10-16 00:30:25 +00:00
twinaphex f8a60b2b76 Create LEGACY_WIN32 ifdef 2017-10-16 01:51:59 +02:00
Twinaphex 4121928899 Merge pull request #5555 from leiradel/master
Fixed memory leaks
2017-10-16 01:34:16 +02:00
twinaphex 8464ad30bd (Xbox 360) Buildfixes 2017-10-16 01:33:17 +02:00
Brad Parker 1b1d5c468d win32: use unicode functions for file IO if supported 2017-10-15 17:41:34 -04:00
Alcaro f3c57ee343 Don't allow more than a billion nanoseconds 2017-10-15 23:25:21 +02:00
Alcaro 2c773a0eb8 Whitespace cleanup 2017-10-15 23:25:21 +02:00
Andre Leiradella c7849de707 Fixed some cheevos with required hits not registering 2017-10-15 16:51:26 +01:00
Andre Leiradella d6dbe9a6ad Fixed some memory leaks; added logs for address patching 2017-10-15 16:49:25 +01:00
Twinaphex cf0d358f1e Merge pull request #5549 from leiradel/master
Added five retries with 3 secs interval for network connections durin…
2017-10-15 17:35:01 +02:00
Twinaphex b4854305b0 Merge pull request #5553 from theheroGAC/patch-24
Update msg_hash_it.h fix 1
2017-10-15 17:34:52 +02:00
Brad Parker ac3b7bc4cc windows.h already includes stringapiset for us 2017-10-15 10:16:19 -04:00
Andre Leiradella 1e40f73b76 Renamed coroutine variables to fix the griffin build 2017-10-15 13:35:49 +01:00
theheroGAC ac70cdce2a Update msg_hash_it.h 2017-10-15 14:32:24 +02:00
Twinaphex e86e237ed7 Merge pull request #5552 from bparker06/win32_file_encoding
win32: support local multibyte encoding for file paths
2017-10-15 13:07:18 +02:00
Brad Parker 338723bc31 fix some null pointer accesses with empty strings 2017-10-15 00:39:55 -04:00
Brad Parker f1d72e241c arm: __VFP_FP__ is defined even when using softfp, so don't use it 2017-10-15 00:16:23 -04:00
Brad Parker 303af012bb set buildbot url for armv7 hardfloat linux devices 2017-10-15 00:11:22 -04:00
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
Brad Parker 38c30667c5 fix include paths 2017-10-14 23:08:43 -04:00
Twinaphex 74ac642752 Merge pull request #5547 from bparker06/framecount_show
add option to remove frame count from FPS display
2017-10-14 17:45:20 +02:00
Twinaphex 590c8ee934 Merge pull request #5548 from orbea/micromod
Silence compiler warnings.
2017-10-14 17:45:07 +02:00
Andre Leiradella f462d5e7c2 A saner way to how only retry messages 2017-10-14 14:06:26 +01:00
Andre Leiradella aadc532b9c Only show retry messages after the first try 2017-10-14 13:44:24 +01:00
Andre Leiradella 5b7262d83f Added five retries with 3 secs interval for network connections during cheevos initialization 2017-10-14 12:53:14 +01:00
orbea bae8157697 Silence compiler warnings.
See.

https://github.com/martincameron/micromod/commit/010f30e404f1b703c31c46f6e67631b98d596ac9
https://github.com/martincameron/micromod/commit/9918b696478803e3a4abea59867b34ef11053a13
2017-10-13 22:09:15 -07:00
Brad Parker ee7590868a add option to remove frame count from FPS display 2017-10-13 20:35:55 -04:00
Twinaphex 052ea42c0b Merge pull request #5546 from rz5/patch-1
(gl driver) Set flags after detecting GL core context
2017-10-13 23:58:47 +02:00
rz5 0a0c538e2b (gl driver) Set flags after detecting GL core context 2017-10-13 22:48:17 +01:00
Twinaphex 55fa6696cd Merge pull request #5545 from theheroGAC/patch-23
Update msg_hash_it.h
2017-10-13 20:58:15 +02:00
theheroGAC bdb1f8588f Update msg_hash_it.h 2017-10-13 20:32:15 +02:00
Twinaphex 2bf338df12 Merge pull request #5540 from rz5/patch-1
(video driver) If we can't set flag data, do it later
2017-10-13 19:28:51 +02:00
Twinaphex d075074703 Merge pull request #5542 from bparker06/wraparound_left
allow wraparound of settings when pressing left key for int and float types
2017-10-12 23:13:30 +02:00
Brad Parker 4a68904733 allow wraparound of settings when pressing left key for int and float types 2017-10-12 17:12:20 -04:00
rz5 677229d541 (video driver) Style nit 2017-10-12 19:59:20 +01:00
Twinaphex aa6301e0d6 Merge pull request #5541 from bparker06/osd_text_color
add menu settings for OSD text color
2017-10-12 20:30:59 +02:00
Brad Parker 256bde3478 add menu settings for OSD text color 2017-10-12 14:26:17 -04:00
Alcaro 79155f7301 We don't need THAT much whitespace 2017-10-12 19:06:37 +02:00
rz5 24c1ad72ce (video driver) If we can't set flag data, do it later
Currently, there is at least one instance where video_context_driver_set_flags() is called when current_video_context.set_flags is set to NULL (see #5538). To solve this, we create 2 new global variables - one to store flag data and the other to symbolize we deferred setting flag data.
This way, the next time we do get_flags(), we first check if we have anything stored first.

Should fix #5538
2017-10-12 17:38:07 +01:00
Twinaphex 01f8e4e74f Merge pull request #5539 from Brunnis/master
XMB: Fix playlist entry graphic update issue when all system tabs except Main Menu are disabled
2017-10-12 14:08:38 +02:00
Twinaphex 81a5b6c2c2 Merge pull request #5535 from RobLoach/fix/RobLoach/remove-GL_SCISSOR_TEST
Fix background rendering when resizing window
2017-10-12 10:02:25 +02:00
Twinaphex 8708906f15 Merge pull request #5537 from bkoropoff/double-free
task_save: fix double-free
2017-10-12 10:01:42 +02:00
Brunnis a87cf6d2e7 Fix issue in XMB where playlist entry graphic wouldn't update when scrolling through the first playlist tab, if all system tabs except the Main Menu tab were disabled. 2017-10-12 09:49:59 +02:00
Brian Koropoff 20aa59249c task_save: fix double-free 2017-10-11 21:26:26 -07:00
Andrés f1453b6696 Merge pull request #5536 from fr500/master
move scissor test to nuklear driver exclusively
2017-10-11 22:49:12 -05:00
radius 840e772b16 move scissor test to nuklear driver exclusively 2017-10-11 22:48:13 -05:00
Rob Loach 1b856f7a1e Fix background rendering
Removes the use of GL_SCISSOR_TEST in the GL display driver.

Fixes #5534
2017-10-11 21:30:57 -04:00
twinaphex c68db61188 Silence more Clang warnings 2017-10-11 22:49:13 +02:00
twinaphex 7cf1793801 Silence some static code analysis warnings 2017-10-11 21:46:18 +02:00
Twinaphex cadc4f56a3 Merge pull request #5530 from lucianposton/fix-compilation
Fix build by removing settings var from ifdef
2017-10-11 17:29:13 +02:00
Twinaphex d5c2279502 Merge pull request #5531 from Brunnis/kiosk-mode-setting
Implemented new Kiosk Mode setting which hides all configuration related settings/tabs in XMB
2017-10-11 17:29:00 +02:00
Twinaphex 59cabfe80f Merge pull request #5454 from rz5/master
Prevent crashes caused by loading shaders in incompatible contexts
2017-10-11 17:25:25 +02:00
Brunnis cc3d2b0084 Merge branch 'master' into kiosk-mode-setting 2017-10-11 11:40:05 +02:00
Brunnis 39619d1245 Implemented new Kiosk Mode setting which hides all configuration related settings/tabs in XMB. 2017-10-11 11:30:53 +02:00
Lucian Poston 69a18324c0 Remove settings from ifdef 2017-10-11 02:12:21 -07:00
Twinaphex 8b7b85ad82 Merge pull request #5524 from fr500/master
update nuklear.h & fix window clipping
2017-10-11 08:01:36 +02:00
radius 5ccdc8811c update nuklear.h
fix window clipping
remove dead code
2017-10-10 18:08:53 -05:00
Brad Parker ab45670738 update JP translation 2017-10-10 17:33:02 -04:00
Twinaphex eb3d8c8804 Merge pull request #5527 from bparker06/osd_background
Add a configurable background color to OSD messages
2017-10-10 22:14:06 +02:00
Brad Parker fff3e225d2 comments 2017-10-10 15:28:29 -04:00
Brad Parker b6fef15457 update CHANGES.md and add JP translation for OSD background color settings 2017-10-10 15:24:34 -04:00
Brad Parker 072b347c0f fix OSD background alignment with non-default X/Y positions 2017-10-10 15:16:58 -04:00
Brad Parker a4bc1c9768 add menu options for OSD background color 2017-10-10 14:53:32 -04:00
Brad Parker 7aadb0ee13 allow transparency for OSD background 2017-10-10 14:00:49 -04:00
Brad Parker f156f7cd94 initial working OSD background color (only when content not loaded) 2017-10-09 23:30:11 -04:00
Brad Parker a153ed0b42 testing 2017-10-09 21:19:32 -04:00
Twinaphex 576583c9fb Merge pull request #5522 from Brunnis/quick-menu-show-hide-options
New settings for showing/hiding Quick Menu options
2017-10-09 13:45:31 +02:00
Mikael Brunnhede fd07c57ed5 Fixed merge issue. 2017-10-09 12:30:36 +02:00
Brunnis b1a6753976 Merge branch 'master' into quick-menu-show-hide-options 2017-10-09 12:05:04 +02:00
Mikael Brunnhede c7da6e1ca8 Fix issue with "Information" option being hidden when launching content. 2017-10-09 11:21:10 +02:00
Mikael Brunnhede 1053a4e38f Implemented setting for showing/hiding the "Information" option in the Quick Menu. 2017-10-09 11:16:04 +02:00
Mikael Brunnhede 6f8201d398 Implemented setting for showing/hiding the "Save Game Overrides" option in the Quick Menu. 2017-10-09 10:53:58 +02:00
Mikael Brunnhede 3f1dd895da Implemented setting for showing/hiding the "Save Core Overrides" option in the Quick Menu. 2017-10-09 10:44:37 +02:00
Mikael Brunnhede b7654dac7e Implemented setting for showing/hiding the "Shaders" option in the Quick Menu. 2017-10-09 10:30:25 +02:00
Mikael Brunnhede a64683ba34 Implemented setting for showing/hiding the "Cheats" option in the Quick Menu. 2017-10-09 10:17:15 +02:00
Mikael Brunnhede d5a802e4a8 Implemented setting for showing/hiding the "Controls" option in the Quick Menu. 2017-10-09 10:05:32 +02:00
Mikael Brunnhede d25916cacf Implemented setting for showing/hiding the "Options" option in the Quick Menu. 2017-10-09 09:56:27 +02:00
Mikael Brunnhede 9356c326e0 Implemented setting for showing/hiding the "Add to Favorites" option in the Quick Menu. 2017-10-09 09:46:42 +02:00
Mikael Brunnhede db0e0f443a Implemented setting for showing/hiding the options for undoing save/load state in the Quick Menu. 2017-10-09 09:30:53 +02:00
Mikael Brunnhede b402b4a6cd Implemented setting for showing/hiding the save/load state related options in the Quick Menu. 2017-10-09 09:13:00 +02:00
Mikael Brunnhede e286c5dda2 Implemented new settings menu view: User Interface -> Views -> Quick Menu.
Implemented setting for showing/hiding the "Take Screenshot" option in the Quick Menu.
2017-10-09 08:14:52 +02:00
Twinaphex affd56f293 Merge pull request #5515 from casdevel/winraw-lightgun
Add lightgun device capability
2017-10-09 02:42:09 +02:00
twinaphex 6a5ad56bc6 Start undoing C++ comments 2017-10-07 17:19:20 +02:00
Twinaphex ed061fd27b Merge pull request #5516 from Brunnis/main-menu-show-hide-options
New settings for showing/hiding Main Menu tab options in XMB
2017-10-07 17:03:34 +02:00
Twinaphex 7a3bbc3215 Merge pull request #5518 from casdevel/udev-mice-log
Add keyboard/mouse device index logging
2017-10-07 17:02:15 +02:00
Mikael Brunnhede 84701efd24 Don't hide option for showing/hiding "Online Updater" on Lakka. 2017-10-07 13:50:31 +02:00
Zoran Vuckovic 5c46e176d5 Add keyboard/mouse device index logging 2017-10-07 06:59:45 +02:00
Mikael Brunnhede 83991d6c36 Implemented setting for showing/hiding the "Reboot" option in XMB. The setting is only shown on Lakka. 2017-10-06 09:40:41 +02:00
Mikael Brunnhede 9db0e9dbc6 Implemented setting for showing/hiding the "Quit RetroArch" option in XMB. The setting is only shown on Lakka. 2017-10-06 09:27:42 +02:00
Mikael Brunnhede f073d5167a Implemented setting for showing/hiding the "Help" option in XMB. 2017-10-06 08:28:45 +02:00
Zoran Vuckovic 082629ccd5 Add lightgun device capability 2017-10-06 08:19:22 +02:00
Mikael Brunnhede 7ee1797fa1 Implemented setting for showing/hiding the "Configurations" option in XMB. 2017-10-06 08:18:39 +02:00
Twinaphex 7d34a5f423 Merge pull request #5514 from psyke83/pkgfix
config: Raspberry Pi: use videocore pkgconfig & fix fallback detection
2017-10-06 06:11:24 +02:00
Conn O'Griofa b67e6dc1ee config: Raspberry Pi: use videocore pkgconfig & fix fallback detection
Recent Raspberry Pi firmware images have renamed the vendor graphics
libraries (brcmEGL, brcmGLESv2, brcmOpenVG) to distinguish from the
standard VC4 Mesa driver.

* When videocore is selected, first try to use pkgconfig for the
new library names (brcmEGL, brcmGLESv2, brcmOpenVG).
* Ensure that non-pkgconfig fallback detection also checks the new
library names.

This should resolve compile issues in stretch whilst maintaining
compatibility with jessie firmwares later than 1.20160921-1 (the
first package that includes the renamed libraries).

The PKG_CONFIG_PATH must be set in your build environment in order
for the pkgconfig to be utilized, which will be included in
the next firmware (1.20170811-2 or later).
2017-10-06 04:03:29 +00:00
twinaphex 20da0f0666 Cleanups 2017-10-06 05:28:35 +02:00
twinaphex 608bc45388 Prevent another memory leak 2017-10-06 05:25:05 +02:00
Alcaro 3d9d5320ad typo 2017-10-06 02:15:49 +02:00
twinaphex 6013e25b2b Cleanups 2017-10-06 01:59:16 +02:00
twinaphex bd206f7744 C comments 2017-10-06 01:55:18 +02:00
Alcaro 76283edd07 fix buncha ignored errors and whatever 2017-10-06 01:53:00 +02:00
Mikael Brunnhede 19b313c221 Implemented setting for showing/hiding the "Information" option in XMB. 2017-10-05 14:30:15 +02:00
twinaphex 1e3da091a5 Get rid of some hashes 2017-10-05 11:44:11 +02:00
Twinaphex a88ee1a6e5 Merge pull request #5512 from casdevel/udev-mice-abs
Add "absolute" mouse support
2017-10-05 10:43:13 +02:00
Zoran Vuckovic 12d0f4107a Use int32_t instead of __s32 2017-10-05 10:00:20 +02:00
Mikael Brunnhede 0eb5566dea Implemented setting for showing/hiding the "Load Content" option in XMB. 2017-10-05 09:26:25 +02:00
Mikael Brunnhede cc3b64f951 Implemented setting for showing/hiding the "Load Core" option in XMB. 2017-10-05 09:14:05 +02:00
twinaphex 856fccd65c Update 2017-10-05 05:27:43 +02:00
twinaphex 489acabdf4 Update 2017-10-05 05:26:46 +02:00
twinaphex 9829019306 Update 2017-10-05 05:23:54 +02:00
Zoran Vuckovic 135b636bd4 Add "absolute" mouse support 2017-10-05 05:18:53 +02:00
twinaphex 032109512a Fix more Coverity errors 2017-10-04 08:37:21 +02:00
twinaphex bb6ca3e4ff Fix playlists in non-horizontal mode 2017-10-04 08:26:41 +02:00
twinaphex 1763a2ef7b Rename menu_displaylist_parse_history to menu_displaylist_parse_generic 2017-10-04 07:22:06 +02:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex 6bb5af8ee0 Cleanups 2017-10-04 06:36:23 +02:00
twinaphex 9cdea532ce Fix typo 2017-10-04 06:34:53 +02:00
twinaphex 970c35056d Update CHANGES.md 2017-10-04 02:43:21 +02:00
Brad Parker e01fdcb07d wiiu: enable cheevos 2017-10-03 20:35:18 -04:00
Twinaphex 59ec089c2e Merge pull request #5505 from heuripedes/master
Fix crash when navigating immediately after disabling horizontal animations
2017-10-04 02:21:26 +02:00
Twinaphex b7c5dbdd92 Merge pull request #5506 from heuripedes/menu
Do not try to find a setting for database entries
2017-10-04 02:18:39 +02:00
Higor Eurípedes fca48021aa (xmb) Fix whitespace 2017-10-03 21:16:11 -03:00
Higor Eurípedes 6ed9f28656 (xmb) Set selection_ptr_old to zero when animations are off 2017-10-03 21:15:35 -03:00
Higor Eurípedes f59470c523 Do not try to find a setting for database entries 2017-10-03 20:31:08 -03:00
Twinaphex 942ea38248 Merge pull request #5504 from heuripedes/master
Fix conditional jump on uninitialized data
2017-10-04 00:59:09 +02:00
Higor Eurípedes 41024fbb0a Fix conditional jump on uninitialized data
This fixes a bug introduced in 862cf48108
2017-10-03 19:54:32 -03:00
twinaphex 3b8559dafc Prevent null pointer dereference 2017-10-04 00:16:38 +02:00
Brad Parker 865d395f26 add back UTF-8 BOMs 2017-10-03 16:48:45 -04:00
Twinaphex 796746525d Merge pull request #5503 from leiradel/master
Remove threads as a prerequisite for cheevos
2017-10-03 22:24:33 +02:00
Andre Leiradella cfd4a4bdf4 Remove threads as a prerequisite for cheevos 2017-10-03 21:05:23 +01:00
Andre Leiradella 9d817f95f5 Fixed wrong message when deactivating cheevos 2017-10-03 21:03:48 +01:00
Twinaphex 4f1e9b0bd3 Merge pull request #5502 from yoshisuga/xcode-fix-appicons
iOS: Fixed app icon color profile
2017-10-03 21:22:58 +02:00
Andre Leiradella 355b6dcbdd Merge branch 'master' of https://github.com/libretro/RetroArch 2017-10-03 20:07:19 +01:00
Yoshi Sugawara 6597447324 Fixed app icon color profile to sRGB IEC61966-2.1 so they get displayed on the home screen when installed from xcode 9 2017-10-03 06:56:03 -10:00
Twinaphex e3ef431b79 Merge pull request #5501 from Brunnis/master
Don't show "Enable Settings Tab" option in RGUI
2017-10-03 11:36:12 +02:00
Twinaphex 54065807dc Merge pull request #5500 from RobLoach/cheevos
Update Cheevos log message format
2017-10-03 11:35:44 +02:00
Mikael Brunnhede 46ed23e649 Don't show "Enable Settings Tab" option in RGUI. 2017-10-03 09:12:05 +02:00
Rob Loach d87d57a368 Fix the Cheevos log message format 2017-10-03 02:34:04 -04:00
twinaphex 79908ec8d4 Cleanups 2017-10-03 05:34:05 +02:00
twinaphex 7dcafe4b40 (HLSL) Cleanups 2017-10-03 05:18:32 +02:00
twinaphex a1b39b9c8b (360) Buildfix 2017-10-03 05:15:18 +02:00
twinaphex 0a3a30c99c (xdk360_fonts.cpp) Use some d3d_common functions 2017-10-03 05:12:21 +02:00
twinaphex 86f5cc6571 xdk360_fonts.cpp - use C comments 2017-10-03 04:46:36 +02:00
twinaphex 0695d93cee (xdk360_fonts.cpp) Start using d3d_common functions 2017-10-03 04:43:54 +02:00
twinaphex be5d3cb0ba Convert platform_xdk.cpp to C 2017-10-03 04:36:43 +02:00
twinaphex d0d6d0bfe8 Prevent null pointer dereference here too 2017-10-03 04:26:34 +02:00
twinaphex 02ee7df743 Do a NULL check 2017-10-03 04:25:31 +02:00
twinaphex cf9ab18cab (360) Buildfix 2017-10-03 04:21:25 +02:00
Brad Parker 1f8adeaadc update JP translation 2017-10-02 22:18:48 -04:00
twinaphex 51ea984f4f Create d3d_texture_get_level_desc 2017-10-03 04:18:27 +02:00
twinaphex d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
twinaphex bd94f265fa Cleanups 2017-10-03 03:57:28 +02:00
twinaphex 51a173fc83 Fix CXX_BUILD 2017-10-03 02:57:24 +02:00
twinaphex 6c262fe44f Convert to C 2017-10-03 02:49:06 +02:00
twinaphex d23d742439 Convert d3d9_cg_renderchain to C 2017-10-03 02:45:06 +02:00
Twinaphex e101c9ae11 Merge pull request #5498 from bparker06/vector_list
add generic vector_list for custom types, remove std::vector from D3D9 Cg renderchain
2017-10-03 01:23:50 +02:00
bparker06 97f995218f Update vector_list.c 2017-10-02 19:19:12 -04:00
Brad Parker 2bb20a0b4f add generic vector_list for custom types, use it to remove std::vector from D3D9 Cg renderchain 2017-10-02 19:19:12 -04:00
twinaphex 71dd8f9084 Silence more warnings 2017-10-03 00:56:18 +02:00
twinaphex 702f1276d6 Silence warnings 2017-10-03 00:53:09 +02:00
Alcaro c91c4ff9c0 Nuke some more ifdefs and warnings 2017-10-03 00:35:41 +02:00
Alcaro dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
Alcaro 8d274f4f43 let's not include unneeded headers. 2017-10-03 00:03:55 +02:00
Alcaro b97853a536 Rename STRING_REP_ULONG to STRING_REP_USIZE 2017-10-02 22:51:51 +02:00
Twinaphex 9c89b3e546 Merge pull request #5496 from Brunnis/master
Add setting for showing/hiding the ability to rename playlist items
2017-10-02 22:37:50 +02:00
twinaphex bb2702ef2f (Xbox) Some buildfixes 2017-10-02 22:35:06 +02:00
twinaphex 345e1ae419 Buildfix for Xbox 2017-10-02 22:31:20 +02:00
twinaphex d22e662d1c (MSVC 2005) Compile griffin.c as C 2017-10-02 22:26:56 +02:00
twinaphex 34963ee438 (MSVC 2015) Compile griffin.c as C 2017-10-02 22:20:36 +02:00
Mikael Brunnhede af7df0cba3 Add setting for showing/hiding the ability to rename playlist items. 2017-10-02 22:17:44 +02:00
twinaphex 721afe22d8 (MSVC 2010) Compile griffin.c as C 2017-10-02 22:06:32 +02:00
twinaphex 7ff34f8efe Update 2017-10-02 21:58:06 +02:00
twinaphex 590cdeb130 Convert d3d_w32_font to C 2017-10-02 21:52:10 +02:00
twinaphex 8aef6dff1c Convert d3d8_renderchain to C 2017-10-02 21:39:35 +02:00
twinaphex cdb24aff1c (RGUI) Silence warning 2017-10-02 20:33:46 +02:00
twinaphex fa0728d6b7 (NGC/Wii) BUildfix 2017-10-02 20:31:38 +02:00
twinaphex 9abd790353 Remove some more D3DX dependencies 2017-10-02 20:18:36 +02:00
twinaphex 0db3aec722 Convert menu_display_d3d.cpp to C 2017-10-02 19:04:49 +02:00
twinaphex bceb8000dd Use replacement D3DXMatrix functions 2017-10-02 19:01:23 +02:00
twinaphex 6eb23efb54 Start implementing D3DXMatrix functions inside d3d_common.c 2017-10-02 18:50:54 +02:00
twinaphex af9ec3f7a2 Start adding C codepath 2017-10-02 18:25:54 +02:00
twinaphex bd66937112 Convert d3d_ctx.cpp to C 2017-10-02 07:57:49 +02:00
twinaphex c3bcbaea14 Convert d3d.cpp to C 2017-10-02 07:48:57 +02:00
twinaphex 983e160e67 Convert file to C 2017-10-02 07:18:11 +02:00
twinaphex 8d850dc0bd CXX_BUILD fixes 2017-10-02 07:07:18 +02:00
twinaphex 9c639ec529 Don't use std::vector 2017-10-02 06:12:33 +02:00
twinaphex 5ef6de4d4e C codepath for D3D9 works now 2017-10-02 03:52:53 +02:00
twinaphex 22b14142b6 Update d3d_common.cpp 2017-10-02 03:27:44 +02:00
twinaphex f6fb1fd953 Create d3d_create_device 2017-10-02 03:15:49 +02:00
twinaphex 4dd209696b Cleanups 2017-10-02 03:02:22 +02:00
twinaphex 6b1a1272a7 Remove d3d->d3d_err 2017-10-02 01:41:23 +02:00
twinaphex cf9147ff66 Remove <string> include 2017-10-02 01:40:20 +02:00
twinaphex ace611798e No longer include <string> for d3d.h 2017-10-02 01:38:48 +02:00
twinaphex 52b479fb22 Turn std::string shader_path into char * 2017-10-02 01:38:06 +02:00
twinaphex c4c41b277e Create d3d_begin_scene/d3d_end_scene 2017-10-02 01:15:23 +02:00
twinaphex c1cf1af265 Update d3d_device_create_offscreen_plain_surface 2017-10-02 00:49:29 +02:00
twinaphex 86096e677c Update 2017-10-02 00:48:31 +02:00
twinaphex b8253284e6 Create D3D9 C codepath 2017-10-02 00:47:14 +02:00
twinaphex 95d035883c Create d3d_surface_lock_rect 2017-10-02 00:45:33 +02:00
twinaphex 0559be4e72 Create d3d_device_create_offscreen_plain_surface 2017-10-02 00:38:05 +02:00
twinaphex 95ca5a3876 Cleanups 2017-10-02 00:30:29 +02:00
Twinaphex d254decf28 Merge pull request #5491 from bkoropoff/minor-cleanup
Minor cleanup
2017-10-02 00:22:19 +02:00
twinaphex 9f591fc42c Merge branch 'coverity_scan' of https://github.com/libretro/RetroArch into coverity_scan 2017-10-02 00:21:18 +02:00
twinaphex ebe5f65893 Create d3d_device_get_render_target_data 2017-10-02 00:21:06 +02:00
twinaphex d960cc8c0f (D3D) Cleanups 2017-10-01 23:22:35 +02:00
twinaphex 8b1ae9427e Create d3d_device_set_render_target 2017-10-01 23:19:44 +02:00
twinaphex d6533bac19 Create d3d_device_get_render_target_data 2017-10-01 23:14:43 +02:00
twinaphex 30af756969 Create d3d_device_get_render_target 2017-10-01 22:38:30 +02:00
twinaphex 563024502f Create d3d_surface_free 2017-10-01 22:28:48 +02:00
twinaphex ff40cba3de Create d3d_vertex_declaration_free - wrap more D3D functions 2017-10-01 22:23:28 +02:00
twinaphex 55a2020c07 Update CHANGES.md 2017-10-01 22:23:28 +02:00
Brian Koropoff 1aff508ae5 Update CHANGES 2017-10-01 13:22:17 -07:00
Brian Koropoff 96c3d6cc1d Remove debug abort() left in by accident 2017-10-01 13:10:24 -07:00
Twinaphex 8b4fd58f17 Merge pull request #5490 from Themaister/master
Vulkan: Enable VK_KHR_sampler_mirror_clamp_to_edge extension.
2017-10-01 20:33:39 +02:00
Hans-Kristian Arntzen 5c67fc3040 Vulkan: Enable VK_KHR_sampler_mirror_clamp_to_edge extension. 2017-10-01 20:20:45 +02:00
Twinaphex b4c950ac32 Merge pull request #5489 from Themaister/master
Fix crash in MaterialUI on reinit.
2017-10-01 20:02:58 +02:00
Hans-Kristian Arntzen 43b4c65b1e Fix crash in MaterialUI on reinit.
Can't cache pointers. Cache the index instead.
2017-10-01 20:00:20 +02:00
twinaphex cc988cf559 Trying to prevent Coverity error 2017-10-01 18:28:07 +02:00
twinaphex 1d960e0c42 Try to silence Coverity error 2017-10-01 18:23:40 +02:00
twinaphex 710c70f838 Remove another wrapper function 2017-10-01 17:43:38 +02:00
twinaphex 2b55e5858e Remove menu_entries_get_actiondata_at_offset 2017-10-01 17:25:41 +02:00
twinaphex df15a67c71 Remove menu_entries_get_last 2017-10-01 17:20:01 +02:00
twinaphex e66ef15580 Remove another useless wrapper function 2017-10-01 17:17:53 +02:00
twinaphex a87bef6ed0 Remove useless wrapper function 2017-10-01 17:11:09 +02:00
twinaphex 3cac2a6df8 (MUI) Fix memory leak 2017-10-01 16:51:09 +02:00
Twinaphex 59f7a59b3f (Cocoa) Fix small leak 2017-10-01 09:33:53 +02:00
Brad Parker a11d04f252 xmb: check that node exists before dereferencing it 2017-10-01 02:08:41 -04:00
Brad Parker bdad323b96 consoles: only use libretro_path for libretro_directory if it isn't empty 2017-10-01 01:17:45 -04:00
Brad Parker 7a6d2cb5e6 set list to NULL after free in case autoconfig directory is empty 2017-09-30 19:03:39 -04:00
twinaphex 45ce8bf773 Cleanups 2017-09-30 20:45:06 +02:00
twinaphex 849538b15c (MUI) Do texture unload before loading the new wallpaper 2017-09-30 20:03:51 +02:00
twinaphex 9dde5fc33f Update 2017-09-30 17:34:28 +02:00
twinaphex de6b1bcbf0 Fix another Coverity error 2017-09-30 17:11:51 +02:00
twinaphex 455b202142 Fix another Coverity error 2017-09-30 17:09:52 +02:00
twinaphex 73d1539bb0 Fix another Coverity error 2017-09-30 17:08:42 +02:00
twinaphex b46f2ba35f Fix Coverity error 2017-09-30 17:05:26 +02:00
twinaphex 1e37aab49b Cleanup 2017-09-30 16:59:14 +02:00
twinaphex 4dd6c7fac7 Fix crash 2017-09-30 16:55:50 +02:00
twinaphex 2a8b74eeb9 Fix some Coverity errors 2017-09-30 16:52:41 +02:00
twinaphex 98ddc80035 Remove unused menu_entries_get 2017-09-30 16:42:42 +02:00
twinaphex f61b9e1747 Cleanup 2017-09-30 08:24:01 +02:00
twinaphex 02cc57e5b3 Cleanup 2017-09-30 07:52:00 +02:00
Brad Parker 6b5d863136 check for end of string before trying to read more 2017-09-30 01:47:51 -04:00
twinaphex b0de197da4 Memset this variable 2017-09-30 07:43:37 +02:00
twinaphex 063343e538 Simplify this 2017-09-30 07:29:19 +02:00
Brad Parker c856a36a58 more null checks 2017-09-30 01:18:40 -04:00
twinaphex e376bd75c0 Fix crash with savestate thumbnails 2017-09-30 07:10:58 +02:00
twinaphex 638a441530 (XMB) Be safer 2017-09-30 06:40:54 +02:00
twinaphex 00ea9be8fc Be safer 2017-09-30 06:38:53 +02:00
twinaphex ff926439ac Fix this up 2017-09-30 06:29:07 +02:00
twinaphex 5fd05c6b56 There were some unused variables 2017-09-30 06:25:41 +02:00
twinaphex eae2217c6d Cleanup 2017-09-30 06:23:23 +02:00
twinaphex 3040d1da36 (task_database.c) Simplify conditionals 2017-09-30 06:21:38 +02:00
twinaphex 1156d6cec5 Simplify conditionals 2017-09-30 06:18:38 +02:00
twinaphex eea7fe2dce Cleanup materialui.c 2017-09-30 06:13:24 +02:00
twinaphex 94fdf314f2 Cleanup conditionals 2017-09-30 06:11:18 +02:00
twinaphex f323168251 Simplify conditionals 2017-09-30 06:08:09 +02:00
twinaphex d6b385d0b8 Try to be more safe 2017-09-30 05:08:11 +02:00
twinaphex aab154fadf (chd_stream.c) Cleanups 2017-09-30 01:45:48 +02:00
twinaphex f5dedd673f (trans_stream_zlib.c) Try to prevent null pointer dereferences 2017-09-30 01:41:09 +02:00
twinaphex dc2664a4ef Reorder variables 2017-09-29 22:58:32 +02:00
twinaphex 7959cd3993 Use malloc 2017-09-29 22:47:45 +02:00
twinaphex 57ded65189 (task_save.c) Use malloc 2017-09-29 22:40:31 +02:00
twinaphex 862cf48108 (task_image.c) Don't use calloc 2017-09-29 22:36:48 +02:00
twinaphex 127d98fb68 Rewrite path from nbio struct 2017-09-29 22:16:17 +02:00
twinaphex 35376a7961 Cleanups 2017-09-29 22:03:26 +02:00
Twinaphex fc79569682 (MaterialUI) Fix memory leak 2017-09-29 21:38:27 +02:00
twinaphex bae31a318d Prevent memory leak 2017-09-29 21:32:05 +02:00
twinaphex 542f87bf55 Prevent leaks 2017-09-29 21:29:34 +02:00
twinaphex 4fd00ac146 Be safer with this 2017-09-29 21:22:01 +02:00
Twinaphex 66de49c987 Fix memory leaks and crashes 2017-09-29 21:19:07 +02:00
twinaphex 01099d526c Fix the other leaks in menu_entry_get 2017-09-29 21:10:03 +02:00
twinaphex 3551ac825c Rewrite rich label allocation 2017-09-29 21:05:23 +02:00
twinaphex f398f44253 Rewrite xmb_draw_item 2017-09-29 21:00:56 +02:00
twinaphex 238de4aa57 Prevent memory leak 2017-09-29 20:56:54 +02:00
twinaphex 3490c3dbc5 Cleanups 2017-09-29 20:51:20 +02:00
twinaphex 3090f3ff3a (task_database.c) Rewrite char arrays 2017-09-29 20:47:54 +02:00
twinaphex 4db14dca9a (RGUI) Rewrite msgbox 2017-09-29 20:01:00 +02:00
twinaphex 5da54b6f88 (MUI) Rewrite box_message 2017-09-29 19:59:19 +02:00
twinaphex 7f80ecbe93 (XMB) xmb_free - prevent memory leaks 2017-09-29 19:57:23 +02:00
twinaphex 8e01424450 Refactor and rewrite big char arrays 2017-09-29 19:55:06 +02:00
twinaphex 4639b2547d Rewrite another function 2017-09-29 19:09:11 +02:00
twinaphex 1c477ca007 Rewrite menu_entry_get_sublabel 2017-09-29 18:52:15 +02:00
twinaphex efde859e17 Rewrite menu_entry_get_rich_label 2017-09-29 18:46:53 +02:00
twinaphex 9c90f97792 No longer use menu_entry_alloc 2017-09-29 18:37:04 +02:00
twinaphex 08f9e4aaf9 Refactor menu_entry 2017-09-29 18:22:11 +02:00
twinaphex 05d5def6c2 Simplify xmb_draw_item 2017-09-29 18:12:17 +02:00
twinaphex a90d0a2117 (360) Fix Salamander build 2017-09-29 18:05:40 +02:00
twinaphex 9b279ca968 (XDK360) Buildfix 2017-09-29 18:03:29 +02:00
twinaphex 851af0532d d3d_set_vertex_shader - add D3D9 C codepath 2017-09-29 17:46:57 +02:00
twinaphex a40692f0c4 More fleshing out of d3d_common.cpp 2017-09-29 17:40:27 +02:00
twinaphex 028c04f358 Buildfixes 2017-09-29 17:34:08 +02:00
twinaphex 9ca4b9baf0 Implement more D3D C codepaths 2017-09-29 17:32:06 +02:00
twinaphex 5b9f90dd9a (input overlay) Reorder variables in struct 2017-09-29 17:11:42 +02:00
twinaphex 819e3fb02a Initialize struct 2017-09-29 17:06:38 +02:00
twinaphex 51d98ef0c0 (XMB) Reduce stack usage 2017-09-29 16:54:57 +02:00
twinaphex 476f7e560b Reorder some struct members 2017-09-29 16:49:41 +02:00
twinaphex 8bf741257c (XMB) Reduce stack usage 2017-09-29 16:47:30 +02:00
twinaphex dc11a02e61 Cleanup 2017-09-29 16:34:20 +02:00
twinaphex b2932d5270 Split up function into two - create xmb_draw_item 2017-09-29 16:32:30 +02:00
Twinaphex f713a30705 Update task_autodetect.c 2017-09-29 15:08:09 +02:00
twinaphex 5951bed07d Make stdin an option 2017-09-29 06:16:35 +02:00
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +02:00
twinaphex 642818d59c Make sanitize_to_string safer 2017-09-29 05:26:48 +02:00
twinaphex 15bb8e2ebe Fix setting directories 2017-09-29 05:23:33 +02:00
twinaphex 9fc063cd43 playlist.c - use malloc instead of calloc 2017-09-29 05:13:10 +02:00
twinaphex 3564562563 database_info.c - use malloc 2017-09-29 05:01:00 +02:00
twinaphex 6dcbf0eab8 (menu_list.c) Use malloc 2017-09-29 04:49:59 +02:00
Alcaro 3374b0ffde Add why we're doing this 2017-09-29 04:04:51 +02:00
twinaphex 8eb28eaae9 Add this for Wiiu debugging 2017-09-29 04:03:13 +02:00
twinaphex 0f1d0ebfa9 config_file.c - use malloc instead of calloc 2017-09-29 03:56:33 +02:00
Twinaphex 5b96231f49 Merge pull request #5485 from r-type/master
fix wiiu build
2017-09-29 03:09:12 +02:00
not6 547557d443 fix wiiu build 2017-09-28 23:35:07 +02:00
twinaphex f1c2800fa4 Don't do implicit memset 2017-09-28 22:34:28 +02:00
twinaphex 0cbd2d4aa1 Cleanups 2017-09-28 21:51:03 +02:00
twinaphex 37ca5b0605 Cleanups 2017-09-28 21:49:23 +02:00
twinaphex be333837e9 Cleanup wasapi.c 2017-09-28 21:45:11 +02:00
twinaphex d9593c7cae (WASAPI) Cleanups 2017-09-28 19:07:53 +02:00
twinaphex ff48af4d06 Update 2017-09-28 18:57:00 +02:00
twinaphex 9eba2c8e39 Fix CXX_BUILD on Windows 2017-09-28 18:53:09 +02:00
twinaphex 7d12eb4a51 (WASAPI) Compiles now as C++ as well as C 2017-09-28 18:47:33 +02:00
twinaphex 2af4457bec (WASAPI) Start adding C++ codepath too 2017-09-28 18:43:06 +02:00
twinaphex 61810cfd82 (Xaudio2) Get rid of variadic macros so that it can compile as C89 2017-09-28 17:18:17 +02:00
twinaphex 51cdf5a6d7 Cleanup xaudio.h/xaudio.c 2017-09-28 16:54:09 +02:00
twinaphex 0a29c4711a xaudio file can now compile as both C and C++ 2017-09-28 16:50:30 +02:00
twinaphex 97f821e743 Fix crash when selecting 'Scan Directory' 2017-09-28 16:29:45 +02:00
twinaphex c828a425e7 Start preparing Xaudio driver for C codepaths 2017-09-28 10:04:48 +02:00
twinaphex 28c118c3c1 Some C89_BUILD fixes for libFLAC 2017-09-28 09:47:57 +02:00
twinaphex df13f3bbd0 Cleanups 2017-09-28 09:32:23 +02:00
twinaphex f21c520e28 Cleanups 2017-09-28 09:29:36 +02:00
twinaphex bb4a659abb Update 2017-09-28 09:23:30 +02:00
twinaphex ee8d8e1be6 Buildfix 2017-09-28 09:19:43 +02:00
twinaphex bb9efe9bf1 command.c - cleanups 2017-09-28 09:17:58 +02:00
twinaphex 282782c829 Remove unused command_event_quit 2017-09-28 09:09:50 +02:00
twinaphex 65edb2f06c Update 2017-09-28 08:55:40 +02:00
twinaphex 9185fb3ed1 (RGUI) Cleanups 2017-09-28 08:51:28 +02:00
twinaphex f444ef109f (MUI) Reorder variables 2017-09-28 08:45:42 +02:00
twinaphex 270f35753a reorder XMB variables 2017-09-28 08:42:12 +02:00
twinaphex 1fb640377f Remove hashes 2017-09-28 08:00:36 +02:00
twinaphex dfe6035ade Put menu_entry_t on heap inside xmb_draw_items 2017-09-28 07:26:43 +02:00
twinaphex f914a91944 Use menu_entry_get_type_new 2017-09-28 07:15:29 +02:00
twinaphex decea56c03 Rewrite menu_entry_get_path 2017-09-28 06:51:48 +02:00
twinaphex 7adf4ca854 Simplify menu_entry_get_spacing 2017-09-28 06:44:04 +02:00
twinaphex 76277a12b0 Rewrite menu_entry_get_label 2017-09-28 06:40:15 +02:00
twinaphex db7e1a4fdf Simplify menu_entry_get_sublabel 2017-09-28 06:37:48 +02:00
twinaphex b8e900cd32 Rewrite menu_entry_get_value 2017-09-28 06:32:49 +02:00
twinaphex c5255b1bff Simplify menu_entry_get_rich_label 2017-09-28 06:19:34 +02:00
twinaphex 2f10fd14d6 Create menu_entry_init/menu_entry_free 2017-09-28 06:02:14 +02:00
twinaphex bb6e4a6633 xmb_draw_items - small cleanups 2017-09-28 05:37:19 +02:00
Twinaphex a0552fa4d9 Update README.md 2017-09-28 05:06:42 +02:00
Twinaphex 3f433fe220 Update README.md 2017-09-28 05:06:21 +02:00
twinaphex a616fa16f3 Small cleanups 2017-09-28 05:00:22 +02:00
Andrés ec082df2e0 Merge pull request #5481 from fr500/master
readd HAVE_KEYMAPPER
2017-09-27 21:21:35 -05:00
radius afa7d7d8e5 readd this 2017-09-27 21:21:08 -05:00
twinaphex 7633141bd6 Try to prevent potential memory leak 2017-09-28 03:53:48 +02:00
twinaphex e1a0139164 Cleanups 2017-09-28 03:48:49 +02:00
twinaphex 8af2559b2a Be similarly careful in other functions 2017-09-28 03:39:35 +02:00
twinaphex 8b62a7cb7d Fix crash that could occur upon loading content 2017-09-28 03:37:29 +02:00
Twinaphex 04bc2fef8c Fix more memory leaks 2017-09-28 03:28:05 +02:00
twinaphex b28536ba16 Fix leaks in menu_displaylist_push 2017-09-28 03:22:42 +02:00
twinaphex 59e442419e Fix some leaks 2017-09-28 03:16:00 +02:00
twinaphex 8b5f8d8c64 menu_displaylist_info - rewrite path 2017-09-28 03:06:54 +02:00
twinaphex 08ecfc74ec Rewrite info.label 2017-09-28 02:45:03 +02:00
twinaphex 72087d1749 Rewrite path_b and path_c 2017-09-28 02:30:31 +02:00
twinaphex 72f42b602f menu_displaylist_info - reduce stack usage - exts no longer
a fixed size path
2017-09-28 01:38:05 +02:00
Andrés b253ea7b08 Move HAVE_KEYMAPPER 2017-09-27 18:03:34 -05:00
twinaphex 9863afdbd0 Cleanups 2017-09-28 00:55:47 +02:00
twinaphex 221939ccb5 Cleanups 2017-09-28 00:53:13 +02:00
twinaphex 67ff372a38 Reorder from lowest to highest sized variables 2017-09-28 00:50:03 +02:00
twinaphex 4a133144d5 Get rid of Coverity warning 2017-09-28 00:45:40 +02:00
twinaphex a75ceae688 Update - order according to size 2017-09-28 00:09:59 +02:00
twinaphex c7975d8e36 Take out RARCH_INTERNAL ifdef 2017-09-28 00:06:13 +02:00
twinaphex a05dd09ea8 Update 2017-09-28 00:03:50 +02:00
twinaphex 1ed61d2fdb Remove ifdefs from configuration.h 2017-09-28 00:01:42 +02:00
twinaphex cb92ad77d2 Remove ifdef conditionals from command.h 2017-09-27 23:59:18 +02:00
twinaphex f34250e38e Buildfix 2017-09-27 23:55:54 +02:00
twinaphex e7d41f6ea7 Cleanup 2017-09-27 23:54:31 +02:00
twinaphex 7acda37b4e This does not work right now 2017-09-27 23:50:40 +02:00
twinaphex a3ded01b64 Cleanups 2017-09-27 23:16:37 +02:00
twinaphex fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
Twinaphex 9302e5627e Merge pull request #5480 from ismouton/master
Audio Performance Change
2017-09-27 03:21:55 +02:00
Shane Mouton cf81ddcb4e Audio Performance Change
changed bufferSource variable to constant...This fixes the constant sound popping in Safari.
2017-09-26 20:53:02 -04:00
Twinaphex 8ec326a43f Merge pull request #5479 from Brunnis/master
Add XMB menu option to show the Settings tab if it has previously been hidden
2017-09-26 16:51:50 +02:00
Mikael Brunnhede 208854e3d9 Put new strings at the end. 2017-09-26 15:46:56 +02:00
Mikael Brunnhede a1e9027fe2 Added XMB menu option to show the Settings tab if it has previously been hidden. 2017-09-26 14:41:07 +02:00
Twinaphex e86beb7ee2 Merge pull request #5478 from fr500/master
show RetroPad buttons instead of keyboard keys when controls are not …
2017-09-26 13:18:27 +02:00
radius 5b388a0e81 show RetroPad buttons instead of keyboard keys when controls are not autoconfigured 2017-09-25 23:23:25 -05:00
twinaphex 33fad9ffa2 Revert "Bump up to version 1.6.8"
This reverts commit 9c4192c9c7.
2017-09-26 04:05:36 +02:00
twinaphex 9c4192c9c7 Bump up to version 1.6.8 2017-09-26 04:05:00 +02:00
twinaphex 6cf6d46e4b Try silencing more warnings - do something with return value 2017-09-26 03:51:50 +02:00
twinaphex 581ef744d7 Update RARCH_VERSION; replace with PACKAGE_VERSION 2017-09-26 02:52:24 +02:00
Twinaphex cd45143ec6 Merge pull request #5476 from Alcaro/master
Merge version.h, dist-cores.sh and version.all
2017-09-26 02:47:41 +02:00
Alcaro 5f6b79e7f4 Merge version.h, dist-cores.sh and version.all 2017-09-26 01:05:43 +02:00
Twinaphex 655d6d6047 Merge pull request #5475 from RobLoach/remove-snap
Move pkg/snap to libretro/retroarch-snap
2017-09-26 00:53:29 +02:00
twinaphex f75ce5fb5c Another update 2017-09-26 00:47:52 +02:00
twinaphex bf8811ca64 Update 2017-09-26 00:47:07 +02:00
twinaphex 76e9aaf172 Start using DTD file 2017-09-26 00:44:55 +02:00
twinaphex 5a7a54d10c Add Makefile.version 2017-09-26 00:39:29 +02:00
Rob Loach 2af496e7e2 Move pkg/snap to libretro/retroarch-snap .
The Snap now lives over at https://github.com/libretro/retroarch-snap .
2017-09-25 17:20:14 -04:00
Twinaphex 5fe9a613f9 Merge pull request #5473 from altiereslima/master
Update portuguese transation
2017-09-25 22:12:02 +02:00
altiereslima 65f9dc7acc Update portuguese transation 2017-09-25 14:47:04 -03:00
Twinaphex ac20e971c5 Merge pull request #5469 from gouchi/master
Adding snap package
2017-09-25 03:55:52 +02:00
gouchi 30132d5d73 Adding snap package 2017-09-24 21:28:55 +02:00
Andre Leiradella 38775b6be2 Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-24 15:26:18 +01:00
Brad Parker 09e1b2bdcd explicitly set codepage for Japanese menubar translation, fixes #4536 and #4761 2017-09-22 09:40:22 -07:00
Andrés 00dacaba56 Merge pull request #5465 from fr500/master
Add keymapper to wiiu builds
2017-09-21 23:59:27 -05:00
Andrés fcc5adda85 Add keymapper to wiiu builds 2017-09-21 23:44:35 -05:00
twinaphex cc8e897222 C89_BUILD fixes 2017-09-22 05:12:26 +02:00
twinaphex b97558d504 CXX_BUILD fixes 2017-09-22 05:06:36 +02:00
twinaphex b6cfd0456c CXX_BUILD fixes 2017-09-22 05:05:06 +02:00
twinaphex 06047bc958 Update 2017-09-22 05:00:43 +02:00
twinaphex d03ce02788 Update deps/libFLAC 2017-09-22 04:59:20 +02:00
twinaphex 905d1db813 CXX_BUILD fixes 2017-09-22 04:57:54 +02:00
twinaphex 848fe719fb Some CXX_BUILD fixes 2017-09-22 04:56:58 +02:00
twinaphex 6141761e63 Take out libchdr include from interface_stream.h 2017-09-22 04:47:58 +02:00
Twinaphex 4bbaa65361 Prevent redefinition of typedef; C11 only 2017-09-22 04:43:17 +02:00
Twinaphex 3c04a9776c (OSX) Add FLAC and CHD support 2017-09-22 04:41:09 +02:00
twinaphex a715bebaaa Cleanup 2017-09-22 04:31:54 +02:00
twinaphex e74da12d26 Fix another memory leak 2017-09-22 00:03:40 +02:00
twinaphex 50d48139a3 Fix some more memory leaks 2017-09-21 23:38:29 +02:00
twinaphex 1a77c383b9 Fix plethora of memory leaks again 2017-09-21 21:33:13 +02:00
twinaphex 0f80e31382 task_database.c - cleanups 2017-09-21 19:57:10 +02:00
twinaphex 01b2d09a98 Avoid some warnings with Griffin 2017-09-21 19:43:01 +02:00
twinaphex ece3dddfce Define _7ZIP_ST 2017-09-21 19:40:27 +02:00
twinaphex d5d6f8c49a Add missing files for Griffin 2017-09-21 19:37:40 +02:00
twinaphex 939b3b8772 Updates 2017-09-21 19:37:05 +02:00
twinaphex 1e30f02ecc Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-21 19:36:48 +02:00
twinaphex 46b79ccd78 Compilation fixes - headers need to be moved to separate include dir 2017-09-21 19:34:46 +02:00
twinaphex 477be1108a Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-21 19:31:04 +02:00
twinaphex 158920a786 Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-21 19:30:24 +02:00
twinaphex c0de19f23d Update 2017-09-21 19:29:13 +02:00
twinaphex c3b5981dc0 Create minmax.h for libchdr 2017-09-21 19:28:32 +02:00
twinaphex 6f5867b0fc Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-21 19:26:27 +02:00
Twinaphex cff35f3611 Fix warning - wrong type used 2017-09-21 19:24:42 +02:00
twinaphex df60512a0d Cleanup our dep version of 7zip - we don't want non-stdint types.
Other misc. cleanups
2017-09-21 19:23:09 +02:00
twinaphex e3f20e4b56 Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-21 18:27:31 +02:00
Twinaphex cf94e8e9c9 Merge pull request #5460 from fr500/master
Fix #2566 again
2017-09-21 16:35:48 +02:00
Twinaphex 7af2cc3b60 Merge pull request #5461 from bkoropoff/serial-crash
Fix crash importing small disc images
2017-09-21 16:35:27 +02:00
Brian Koropoff 2cfedab339 task_database_cue: only return error when errno would be set
On a short read, errno will be 0, and returning 0 without
setting system_name will cause a crash later.  Just continue
to the next magic number instead.
2017-09-20 21:24:59 -07:00
radius a3f04ffa9b update CHANGES.md 2017-09-20 23:00:41 -05:00
radius bb7243a412 fix offset, add a couple comments 2017-09-20 22:50:28 -05:00
twinaphex f58329d921 Add include dir for libflac 2017-09-20 23:20:17 +02:00
twinaphex 0002912328 Change size of variables 2017-09-20 16:35:18 +02:00
twinaphex e9a072c1ce uniquely name D3D function for initing renderchain 2017-09-20 14:53:40 +02:00
twinaphex 808a723969 Fix memory leaks 2017-09-20 12:18:31 +02:00
twinaphex ac732ecdb0 Fix memory leak 2017-09-20 12:13:44 +02:00
twinaphex 37715114ae Cleanup 2017-09-20 09:55:53 +02:00
Twinaphex 01c30f23c6 Merge pull request #5458 from aarononeal/hotfix/scan-path-hint
Optimize scanning using directory name hint
2017-09-20 09:32:25 +02:00
Aaron Oneal 4a929bd8e2 Optimize scanning using directory name hint
As discussed in issue #5440, directory scans are slow when compressed files must be checked against multiple databases. This commit adds support to hint to the scanner that a particular database should be used so that only a single scan is required. If the directory name being scanned matches the database name then that single database is selected.
2017-09-19 16:58:28 -07:00
Aaron Oneal 6ac4486f4d Fix typo from 9a76a93ea that broke the build 2017-09-19 16:49:45 -07:00
Twinaphex 9a76a93ea8 OSX buildfixes/cleanups 2017-09-19 21:37:51 +02:00
twinaphex e8f39f004e MSVC buildfixes 2017-09-19 21:29:28 +02:00
twinaphex b3a45a9899 Enable HAVE_FLAC and HAVE_CHD for Android 2017-09-19 21:19:34 +02:00
Twinaphex ee06a8f175 Merge pull request #5447 from bkoropoff/scanning2
More scanning rework
2017-09-19 15:46:04 +02:00
twinaphex 105b98b837 Rename gl_legacy_renderchain to gl2_renderchain 2017-09-19 15:06:49 +02:00
twinaphex 2fb68c7007 (D3D9 HLSL) Cleanups 2017-09-19 15:02:51 +02:00
twinaphex 0ddc349557 (D3D9 HLSL) Cleanups 2017-09-19 14:58:56 +02:00
twinaphex 52970c773b Cleanup 2017-09-19 14:55:18 +02:00
r5 d5321c2001 Fix missing include 2017-09-19 13:49:51 +01:00
Twinaphex 406aa2a1e7 Merge pull request #5456 from aarononeal/hotfix/archive-scanning
Fix archive scanning
2017-09-19 14:47:54 +02:00
Aaron Oneal fb8fe84684 Fix archive scanning
Archive scans were broken for cores like Atari 5200 and Commodore 64 because archive contents were skipped if a core reported it supported compressed files. The problem is, it's a false assumption that just because a core supports compressed files that the content database contains CRCs for compressed files.

Instead of adding the contents of every compressed file to the scan list ahead of time, the patched logic now checks for the CRC of the archive itself as it always has but then adds the archive contents to the scan list if the archive itself is no match. This maintains the logic of adding only the archive if the core supports compressed files and the archive CRC matches but also allows for deeper content scans when there is no match.

The patch also removes `core_info_unsupported_content_path` as it was redundant with existing `core_info_database_supports_content_path` logic.
2017-09-18 23:15:28 -07:00
Brad Parker 2c45f0c31e don't confuse libflac PACKAGE_VERSION with RetroArch's 2017-09-18 20:21:37 -04:00
r5 cc5adc56ac (shaders) Change RARCH_WARN message, add missing newline 2017-09-18 18:12:00 +01:00
Brian Koropoff d4beeeda33 task_database: skip serials for the right file type! 2017-09-18 09:03:43 -07:00
Brian Koropoff 84edc8ffb0 task_database: prune files referenced from cue/gdi files
Since we use cue/gdi files to find the right track file to
scan, don't bother scanning them separately.
2017-09-18 09:03:43 -07:00
Brian Koropoff 93d05665c2 database_info: prioritize scanning cue/gdi files
Scan them before the tracks so we can avoid scanning large
files we don't need to.
2017-09-18 09:03:43 -07:00
Brian Koropoff 46e78e9d1b task_database: fix parsing CUEs with one track 2017-09-18 09:03:43 -07:00
Brian Koropoff c6c090052e task_database: fix memory leak 2017-09-18 09:03:43 -07:00
Brian Koropoff 6c1044a699 task_database: support GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff 70ff0aa0c1 msg_hash: support GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff 7061cb14fb chd_stream: support CHDs from GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff fa6d0fac67 task_database: more scanning rework
- Use the primary (largest data) track for CRC identification, as it
  seems least likely to be shared among multiple discs
- CRC the primary track when importing a loose .cue file.
- If multiple tracks are in the same file, CRC the correct chunk
2017-09-18 09:03:43 -07:00
Brian Koropoff 5b20c13f92 chd_stream: support PRIMARY special track 2017-09-18 09:00:39 -07:00
Brian Koropoff edf90d250f task_database: fix memory leak in error path 2017-09-18 09:00:39 -07:00
twinaphex 770640be58 Fix more dereference before NULL checks 2017-09-18 16:40:38 +02:00
twinaphex fa7a792180 Fix dereference before NULL check 2017-09-18 16:39:28 +02:00
twinaphex 60c7f8e35f Fix 'pointer to local outside scope' 2017-09-18 16:35:31 +02:00
twinaphex c90307c585 Buildfix 2017-09-18 16:22:27 +02:00
twinaphex e931bad7d1 Cleanups 2017-09-18 16:18:25 +02:00
twinaphex 49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
twinaphex 21ff58f66e Cleanups 2017-09-18 12:55:11 +02:00
twinaphex bda1aefccc Add rules to Griffin 2017-09-18 12:27:11 +02:00
Twinaphex 6648ebed0d Silence some warnings 2017-09-18 11:56:59 +02:00
r5 33431b7b36 (shaders) Fix a bug when context is Vulkan. Remove smart code. 2017-09-18 10:51:38 +01:00
Twinaphex 5c6ad1645d Merge pull request #5449 from bkoropoff/serial-info-crash
menu_displaylist: don't crash on serial-only database entries
2017-09-18 10:29:45 +02:00
Twinaphex 8b666ff73d Merge pull request #5450 from bkoropoff/windows-chd
CHD support on Windows
2017-09-18 10:29:28 +02:00
Brian Koropoff a536532e30 Unleash the compressed hunks of data 2017-09-17 22:04:29 -07:00
Brian Koropoff 3b7a202934 Fix libchdr build on Windows 2017-09-17 22:04:11 -07:00
Brian Koropoff f1eaf787ec Fix libFLAC build in Windows 2017-09-17 22:03:38 -07:00
Brian Koropoff 1bbb7aff08 menu_displaylist: don't crash on serial-only database entries 2017-09-17 21:31:42 -07:00
r5 f5988b2323 (shaders) Log a warning when using the shader fallback type
Only allow using Cg shaders when HAVE_CG is set
2017-09-18 04:43:08 +01:00
r5 fdccf4a6b0 (C89) Should be able to build now
@bparker06 to the rescue again.
2017-09-18 04:21:59 +01:00
r5 da0abc3126 Try to fix C89 build 2017-09-18 04:09:28 +01:00
r5 4a9325d01d (shaders) Avoid certain shader types when context isn't compatible.
@bparker06 to the rescue.
2017-09-18 03:46:17 +01:00
Twinaphex 23fe08cb4b Merge pull request #5446 from fr500/master
only set_controller=true for the number of ports the core supports
2017-09-17 20:21:31 +02:00
radius 971458c039 only set_controller=true for the number of ports the core supports 2017-09-17 12:44:17 -05:00
twinaphex e35eeb8a42 Cleanups 2017-09-17 19:06:58 +02:00
twinaphex 9cfc41d96c Fix warnings 2017-09-17 18:53:58 +02:00
twinaphex 4e71b75a7d include retro_inline.h 2017-09-17 18:38:51 +02:00
twinaphex f67641c52c (libchdr) Can't have C++ comments
(config.params.sh) Have to disable FLAC for now; still doesn't
compile for Windows due to fseeko/ftello errors
2017-09-17 18:36:55 +02:00
Twinaphex 1d3a2d7002 Merge pull request #5445 from bkoropoff/scanning
Make scanning support .chd files
2017-09-17 18:29:09 +02:00
Brian Koropoff 94830e80d6 clang supports GCC block expressions 2017-09-17 02:38:54 -07:00
Brian Koropoff 5a3969d4fa task_database: rework cd scanning
Support chd files.  Fall back to using the CRC32 of the last track
of CDs if a serial number is not available.  This requires new
database files, but is necessary for chd scanning to work.
2017-09-17 02:11:07 -07:00
Brian Koropoff 08ce00d798 msg_hash: support chd files 2017-09-17 02:02:04 -07:00
Brian Koropoff a5dc63b390 common: integrate chd into interface stream 2017-09-17 02:02:04 -07:00
Brian Koropoff 2c7b6a94e4 common: add chd_stream interface 2017-09-17 02:02:04 -07:00
Brian Koropoff 8a5fe21702 deps:7zip: add files needed by libchdr 2017-09-17 02:02:04 -07:00
Brian Koropoff 4ead5da18a deps: import libFLAC
This is needed by libchdr
2017-09-17 02:02:04 -07:00
Brian Koropoff d41ea34d6b upgrade libchdr 2017-09-17 02:02:04 -07:00
Brad Parker 836111b99b C89 buildfix 2017-09-16 19:06:55 -04:00
twinaphex e5fdc50812 Fix build 2017-09-14 22:56:31 +02:00
twinaphex 92d0c1f593 (360) Update 2017-09-14 22:50:36 +02:00
twinaphex d149d590cf Fix some Xbox unresolved symbols 2017-09-14 22:24:04 +02:00
twinaphex 3ab07fc43f Fix some Xbox unresolved symbol errors 2017-09-14 22:17:05 +02:00
twinaphex 557c6c1d19 (D3D) Try to treat HLSL shaders same as Cg shaders for now 2017-09-13 04:37:29 +02:00
twinaphex 550a140405 (Xbox) Silence warning 2017-09-13 04:35:57 +02:00
twinaphex 88b593e4af (360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again(360) Builds again(360) Builds again(360) Builds
again(360) Builds again
2017-09-13 04:33:43 +02:00
twinaphex 170b368044 (360) Some buildfixes 2017-09-13 04:21:00 +02:00
twinaphex 07148293a5 (Xbox) Some buildfixes 2017-09-13 03:18:31 +02:00
twinaphex dd351a3501 (Xbox) Provide implementation function for inet_ntop_compat 2017-09-13 03:05:28 +02:00
twinaphex be367138f6 Provide implementation for inet_aton for Xbox 2017-09-12 23:54:10 +02:00
twinaphex 0800047258 (Xbox) Buildfixes 2017-09-12 23:44:05 +02:00
Twinaphex 5c7b288873 Merge pull request #5435 from fr500/staging
reset controllers when the core has set controller info
2017-09-12 23:10:57 +02:00
twinaphex 91feec157e Merge branch 'master' of https://github.com/libretro/RetroArch 2017-09-12 23:09:43 +02:00
twinaphex 587747e030 Update 2017-09-12 23:09:06 +02:00
Twinaphex 76aa866af8 Merge pull request #5438 from casdevel/fix5215
Fix mouse "absolute" move handling
2017-09-12 21:14:56 +02:00
Zoran Vuckovic d47de4b17e Fix mouse "absolute" move handling 2017-09-12 12:36:27 +02:00
radius e687e2bf6d reset controllers when the core has set controller info 2017-09-12 02:02:52 -05:00
Andrés 049d69f9cc Merge pull request #5434 from fr500/master
Clean remaps on deinit
2017-09-12 01:54:58 -05:00
radius 804c62cc9e clear the remap flags 2017-09-12 01:47:43 -05:00
radius 46ed484b69 Revert "Always set controller port device descriptors" for now
This reverts commit 0ced9ca913.
2017-09-12 01:46:47 -05:00
twinaphex b1b09837af Revert "Always set controller port device descriptors"
This reverts commit 0ced9ca913.
2017-09-12 08:46:08 +02:00
Brad Parker 278d171483 griffin msvc2012/2013: find Win8.1 SDK installation path if not using custom toolchain 2017-09-12 05:52:20 +00:00
Brad Parker 4bed91d919 griffin msvc: remove unneeded exports, remove any trailing slashes from local directx sdk dirs 2017-09-12 05:52:20 +00:00
Brad Parker dc2ccffbd4 griffin msvc2010: allow using system directx sdk 2017-09-12 05:52:20 +00:00
Brad Parker b36d23c1a9 griffin msvc2010: find Win7 SDK installation path if not using custom toolchain 2017-09-12 05:52:20 +00:00
Brad Parker b6d2e10ded griffin: add vc2013 target 2017-09-12 05:52:20 +00:00
Twinaphex d43b18b26d Merge pull request #5433 from fr500/master
use descriptors if available
2017-09-12 07:27:42 +02:00
radius 21d55fa626 use descriptors if available 2017-09-12 00:12:33 -05:00
Andrés 583a74c0e4 Merge pull request #5432 from fr500/master
input remapping cleanups
2017-09-11 23:07:42 -05:00
radius 6a561f6414 input remapping cleanups 2017-09-11 22:49:39 -05:00
twinaphex b51a19da5c Fix memory leak 2017-09-12 05:26:59 +02:00
Brad Parker c29c48bacf griffin: add vc2012 target 2017-09-12 03:23:22 +00:00
twinaphex 466df258d8 Fix use after free 2017-09-12 05:09:56 +02:00
twinaphex 2d4cd1bd0e Fix resource leak 2017-09-12 05:08:56 +02:00
twinaphex c1f60c1aa6 task_database_cue.c - reduce stack usage 2017-09-12 05:04:27 +02:00
twinaphex c1c42cac6b (task_database.c) Reduce stack usage 2017-09-12 05:00:22 +02:00
twinaphex a532ef3cea (XMB) Prevent memory leak 2017-09-12 04:47:37 +02:00
twinaphex a25f9d291e (XMB) Reduce stack usage 2017-09-12 04:37:58 +02:00
twinaphex 0ced9ca913 Always set controller port device descriptors 2017-09-12 04:29:37 +02:00
Andrés f62bf91e90 Merge pull request #5428 from fr500/master
resetting remaps should include keymaps
2017-09-11 02:05:58 -05:00
radius 5dc52d9489 resetting remaps should include keymaps 2017-09-11 02:04:27 -05:00
Twinaphex ba24d6440a Merge pull request #5420 from fr500/remap-redux
remap-redux part 1
2017-09-11 07:39:47 +02:00
radius 529afd8451 osx buildfixes 2017-09-11 00:21:48 -05:00
radius f1f4d629ad don't show the keymapper labels when not required 2017-09-11 00:21:48 -05:00
radius bb2a92c980 add defines to android builds 2017-09-11 00:21:48 -05:00
radius 551d85630e android build fixes 2017-09-11 00:21:48 -05:00
radius 708ff99513 indentation fix 2017-09-11 00:21:47 -05:00
radius 9abbf47a8d fix defaults 2017-09-11 00:21:47 -05:00
radius 3c9651ace0 fix wrapping 2017-09-11 00:21:46 -05:00
radius c8752ec630 add left/right callbacks 2017-09-11 00:21:46 -05:00
radius b93417fbed start implementing keymapper gui 2017-09-11 00:21:46 -05:00
radius 503658b446 cleanup 2017-09-11 00:21:45 -05:00
radius efce234dc4 save and load keymaps from file 2017-09-11 00:21:44 -05:00
radius 654db9caac it should work with the SET_KEYBOARD_CALLBACK now 2017-09-11 00:20:21 -05:00
radius cd72bd1bb4 implement keymapper 2017-09-11 00:20:21 -05:00
radius fe8a0657b4 add input_mapper scafolding 2017-09-11 00:20:20 -05:00
twinaphex 0af92cc92e Reduce stack usage 2017-09-11 06:31:44 +02:00
twinaphex db5f4dceb1 Update CHANGES.md 2017-09-11 06:20:04 +02:00
Twinaphex 4adbba2513 Merge pull request #5426 from casdevel/issue5162
Disable keyboard input if window is not active
2017-09-11 06:19:15 +02:00
Twinaphex 83b07b6d0d Merge pull request #5427 from fr500/master
clear inet_ntop_compat warning
2017-09-11 06:18:54 +02:00
twinaphex e1237f6d58 Reduce stack usage 2017-09-11 06:15:09 +02:00
Brad Parker 4d9ef0d9b6 griffin: add msvc2010 x64 support 2017-09-11 03:00:52 +00:00
Brad Parker 6b7fe304b8 griffin: add proper target versions for vc6/2005, add vc2010 x86 target 2017-09-11 03:00:52 +00:00
radius 5d03a4719f clear inet_ntop_compat warning 2017-09-10 21:44:15 -05:00
twinaphex 632225ee73 Reduce stack usage 2017-09-11 04:40:35 +02:00
twinaphex dbb6adb453 C89_BUILD fixes 2017-09-11 04:17:28 +02:00
twinaphex 266970bead Don't commit this 2017-09-11 03:11:07 +02:00
twinaphex 29114ffe29 generic_action_ok_displaylist_push - reduce stack usage 2017-09-11 03:09:42 +02:00
twinaphex e36c3b9a0b Cleanup 2017-09-11 03:07:04 +02:00
twinaphex c86901547b Cleanup 2017-09-11 03:04:55 +02:00
twinaphex ecd7733a85 Cleanups 2017-09-11 03:03:33 +02:00
twinaphex fedb4f1de6 Reduce stack usage 2017-09-11 03:01:33 +02:00
twinaphex fa802ac19a Remove this 2017-09-11 02:47:21 +02:00
twinaphex ea5538d955 (XMB) Reduce stack size cleanups 2017-09-11 02:37:53 +02:00
twinaphex 078e249ff7 Comment this out again 2017-09-11 02:22:59 +02:00
twinaphex 0007d66bf8 Fix memory leaks 2017-09-11 02:22:46 +02:00
Twinaphex 98d10a7cd3 Merge pull request #5425 from fr500/master
fix crash during animation when moving left right in lobbies
2017-09-11 01:27:51 +02:00
radius 419fbc60b6 fix crash during animation when moving left right in lobbies 2017-09-10 18:26:04 -05:00
twinaphex 2ccafff5c3 Prevent warning 2017-09-11 01:21:57 +02:00
twinaphex 402a2fd03a Fix memory leak 2017-09-11 01:13:32 +02:00
twinaphex 1eaa7a842e Some cleanups 2017-09-11 01:10:06 +02:00
twinaphex b13cc25358 Cleanups 2017-09-11 00:23:04 +02:00
twinaphex 4b2abc3334 Cleanups 2017-09-11 00:12:26 +02:00
twinaphex 716a21b5ac Use strdup for some variables where PATH_MAX_LENGTH is excessively large 2017-09-10 23:52:04 +02:00
twinaphex 8b43e738ba Reduce stack usage 2017-09-10 23:44:51 +02:00
Brad Parker 5f2a35853d griffin: fix lib path for vc6, make directx optional (default off) for vc2003, add vc2005 target 2017-09-10 21:27:20 +00:00
Brad Parker aaddc416a1 vc6: allow specifying custom toolchain 2017-09-10 21:27:20 +00:00
twinaphex f722e26167 Cleanups 2017-09-10 23:22:09 +02:00
twinaphex 155d6a23b9 Start using menu_displaylist_info_free 2017-09-10 22:57:26 +02:00
twinaphex daa82a3c4f Start creating menu_displaylist_info_free 2017-09-10 22:47:16 +02:00
twinaphex 08e3bb2122 (MSVC) Buildfixes 2017-09-10 22:38:03 +02:00
twinaphex b079cc8927 Another buildfix 2017-09-10 22:31:09 +02:00
twinaphex e6200f00e3 (MSVC) Fix error 2017-09-10 22:27:35 +02:00
twinaphex 0724cbbf2b Reduce stack usage 2017-09-10 21:58:05 +02:00
twinaphex 91b1afad0a (dirs.c/task_content.c) reduce stack usage 2017-09-10 21:42:24 +02:00
twinaphex ae3dc27a3f (file_path_special.c) Reduce stack usage 2017-09-10 21:27:50 +02:00
Twinaphex f676774eed Merge pull request #5424 from RobLoach/patch-18
Fix 7zip dependency include directory
2017-09-10 20:12:12 +02:00
Rob Loach c61f163454 Fix 7zip dependency include directory
Found `./decompress/7zip/`, which doesn't exist. It may be at [`deps/7zip`](https://github.com/libretro/RetroArch/tree/master/deps/7zip) instead.
2017-09-10 11:06:48 -04:00
Zoran Vuckovic 84d33fb847 Disable keyboard input if window is not active 2017-09-10 05:50:10 +02:00
twinaphex 14f57cad78 tmp_append_path freed too soon 2017-09-10 01:03:26 +02:00
twinaphex 5abf4b277e (menu_displaylist.c ) Cut down on stack usage 2017-09-10 00:04:41 +02:00
Twinaphex a38a9c643e Merge pull request #5419 from fr500/master
always show the controls menu, we should prune the entries inside ins…
2017-09-09 23:28:58 +02:00
radius e9d5413084 always show the controls menu, we should prune the entries inside instead 2017-09-09 16:26:16 -05:00
twinaphex 750621e28c (tasks/task_content.c) Reduce stack usage 2017-09-09 23:17:28 +02:00
twinaphex 3301c04a97 input_remapping.c - reduce stack usage 2017-09-09 23:03:28 +02:00
twinaphex ba77d862a3 video_shader_parse.c - reduce stack usage 2017-09-09 22:54:55 +02:00
twinaphex 9aa16ddfcc paths.c - reduce stack size 2017-09-09 22:32:39 +02:00
twinaphex e338838ade Cut down on stack usage 2017-09-09 22:10:19 +02:00
twinaphex 47fb82538a Reduce stack usage 2017-09-09 22:02:49 +02:00
twinaphex a2317bf1e1 (core_info.c) Reduce stack size usage 2017-09-09 21:55:35 +02:00
twinaphex 3860d95c8f Reduce stack usage 2017-09-09 21:41:38 +02:00
twinaphex 1f0394d0b6 (configuration.c) Cut down on stack usage 2017-09-09 21:35:09 +02:00
twinaphex 6df9c7ca30 Cleanup 2017-09-09 20:10:28 +02:00
twinaphex 4a7f9775bf Reorder variables 2017-09-09 19:58:09 +02:00
Twinaphex 28397b334f Merge pull request #5418 from libretro/revert-5417-master
Revert "cut on underscores too, might be required to add other delimiters so …"
2017-09-09 08:05:47 +02:00
Andrés f6bedeeb7c Revert "cut on underscores too, might be required to add other delimiters so …" 2017-09-09 01:04:32 -05:00
twinaphex 6ec9d643f6 (XMB) Reduce size of sysname 2017-09-09 07:59:53 +02:00
Twinaphex d6dd297721 Merge pull request #5417 from fr500/master
cut on underscores too, might be required to add other delimiters so …
2017-09-09 07:27:39 +02:00
radius 4a4de389d1 cut on underscores too, might be required to add other delimiters so it doesn't get stuck on an endless loop on long strings 2017-09-09 00:24:59 -05:00
Twinaphex 6d65c5157a remove unused variables 2017-09-09 07:22:25 +02:00
twinaphex 8e53ce6184 (XMB) Get rid of for loops for iterating over shadow coordinates 2017-09-09 06:52:49 +02:00
twinaphex 03009d618e Get rid of loop inside xmb_frame 2017-09-09 06:48:31 +02:00
twinaphex 116d3ae09a rarch_game_specific_options - reduce stack usage 2017-09-09 06:31:51 +02:00
twinaphex a14c2101dd retroarch_validate_game_options - reduce stack usage 2017-09-09 06:21:27 +02:00
twinaphex 75d850eead Reduce stack usage for menu_setting_new_internal 2017-09-09 06:10:58 +02:00
twinaphex 8792e78102 Reduce stack usage of menu_display_reset_textures_list 2017-09-09 05:41:23 +02:00
twinaphex 12957e461d Reduce more stack usage for offending functions 2017-09-09 05:26:14 +02:00
twinaphex 8654f124d1 Cleanup of audio_driver_dsp_filter_init - reduce stack usage 2017-09-09 04:56:13 +02:00
twinaphex 1b168bc95e Cleanups 2017-09-09 04:31:56 +02:00
twinaphex 06a33aada8 Cleanups 2017-09-09 04:22:38 +02:00
twinaphex 30bff1ffab Cleanups 2017-09-09 04:11:46 +02:00
twinaphex 0a6c8122d0 Cleanups 2017-09-09 02:36:08 +02:00
twinaphex 2dee343ec7 Rearrange variables 2017-09-09 01:35:15 +02:00
twinaphex 3a92a60a8e Cleanups 2017-09-09 01:30:47 +02:00
twinaphex 0488415329 Cleanups 2017-09-09 01:18:40 +02:00
twinaphex 36e0ff8268 Rearrange variables 2017-09-09 01:10:00 +02:00
twinaphex ce6c11c16b Reduce size of label 2017-09-09 00:23:24 +02:00
twinaphex c0207e9b56 Revert "Reduce size of variables"
This reverts commit 79f1166c6e.
2017-09-09 00:20:39 +02:00
twinaphex 06ed024f3a Update 2017-09-09 00:19:04 +02:00
twinaphex ad579e5cc4 Revert "Cleanups"
This reverts commit 3eeae957f6.
2017-09-09 00:17:14 +02:00
twinaphex 3eeae957f6 Cleanups 2017-09-09 00:12:40 +02:00
twinaphex 330d8dc59e Cleanups 2017-09-09 00:02:38 +02:00
twinaphex 79f1166c6e Reduce size of variables 2017-09-08 23:44:10 +02:00
twinaphex eb12526b79 Cleanup 2017-09-08 23:33:09 +02:00
twinaphex 017961d433 Cleanups 2017-09-08 23:25:02 +02:00
twinaphex 79f3f6ee72 Reduce size of some arrays 2017-09-08 23:19:55 +02:00
twinaphex ca32013665 Reduce size of some variables 2017-09-08 23:09:16 +02:00
Twinaphex ca6a7578e4 Merge pull request #5407 from aarononeal/hotfix/slowscan
Fix slow content scans.
2017-09-08 20:22:33 +02:00
twinaphex 02ac92b91d Cleanups 2017-09-08 16:43:34 +02:00
twinaphex 3b26263126 Cleanup input_config_get_prefix 2017-09-08 06:28:40 +02:00
twinaphex d6bcc45bb8 Reduce size of input_bind_map member variables 2017-09-08 06:11:19 +02:00
twinaphex d0cf88ebc5 Cleanups 2017-09-08 06:08:05 +02:00
twinaphex d1a41a742f Reduce joykey_label/joyaxis_label char arrays 2017-09-08 06:01:21 +02:00
twinaphex c3bb76a05e Try to reduce variable sizes 2017-09-08 05:58:48 +02:00
twinaphex 8b054c2a67 Shrink input_remap_ids array 2017-09-08 05:47:10 +02:00
Twinaphex 1cc4239e2b Merge pull request #5409 from Scheiker/xvideo
Better error handling in *xv_init()
2017-09-07 20:34:43 +02:00
Brad Parker cacef3866a vc6: use int instead of INT_PTR for callback to DialogBoxParam 2017-09-07 13:48:11 -04:00
Charlton Head d29e8c18fa Better error handling in *xv_init() 2017-09-07 12:28:16 -05:00
Brad Parker 07566c51a1 VC6 buildfixes, add Makefile.griffin target for it 2017-09-07 11:50:10 -04:00
twinaphex 8f1523f659 (ui_win32.c) Style nits/cleanups 2017-09-07 16:42:34 +02:00
twinaphex 3ef416d8ef Update libretro-common 2017-09-07 16:35:49 +02:00
Twinaphex a6cb25a3a5 Merge pull request #5408 from aarononeal/hotfix/iso-scan-crash
Fix ISO scan crash from buffer overflow
2017-09-07 16:07:39 +02:00
Aaron Oneal e3f4e0d71a Fix ISO scan crash from buffer overflow
Recent additions in commit #bbb2a7d6f to scan ISO files with ASCII characters overflowed the serial number buffer and caused a crash. This fix limits the read to 15 bytes which is all that is actually required.
2017-09-06 23:37:46 -07:00
Brad Parker 0bda66cc2e applies to any msvc 2017-09-07 02:08:35 -04:00
Brad Parker 8e3a2ad480 add msvc2003 target to Makefile.griffin and cleanup whitespace 2017-09-07 02:03:21 -04:00
Brad Parker ac949a14bf msvc2003 buildfixes 2017-09-07 02:02:43 -04:00
Aaron Oneal 48550235d5 Fix slow content scans.
The check for unsupported content was reversed which was causing files to be checked against every database. Correcting this improves performance drastically. This appears to have been broken since at least commit #fc1f2cdcf.
2017-09-06 20:51:37 -07:00
Brad Parker 7d3330da74 use DWORD to avoid type mismatch 2017-09-06 23:05:44 -04:00
Brad Parker 6f572654a2 add va_copy for all MSVC below 2013 2017-09-06 23:05:31 -04:00
Brad Parker de27275fc9 CreateThread must specify storage for the thread identifier on <= win98 2017-09-06 23:04:19 -04:00
Brad Parker 8e59cb9f7e accidentally removed vc2005 solution 2017-09-06 23:04:09 -04:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
twinaphex 42ac90665e Buildfix 2017-09-06 23:40:38 +02:00
twinaphex 47b4de7bbf Update 2017-09-06 23:17:00 +02:00
Andrés acc24b8a57 Merge pull request #5406 from retro-wertz/patch-2
Fix unable to set Audio DSP Plugin from menu
2017-09-05 21:56:24 -05:00
retro-wertz a37b880a3d Fix unable to set Audio DSP Plugin from menu
https://github.com/libretro/RetroArch/issues/5389
2017-09-06 09:51:29 +08:00
twinaphex 56c66376ff Update libco 2017-09-06 00:47:38 +02:00
twinaphex 33a77bd3a3 Cleanups 2017-09-06 00:40:14 +02:00
twinaphex 5ad8f2aa90 Update 2017-09-06 00:38:49 +02:00
twinaphex 511d563a1c (d3d_ctx) Log memory too - get rid of another _XBOX ifdef 2017-09-06 00:37:49 +02:00
twinaphex 582b688121 Silence some warnings for PS3 2017-09-06 00:21:20 +02:00
twinaphex 674dbfed19 Cleanups 2017-09-05 04:57:34 +02:00
twinaphex bde5a6dc19 Rename renderchain_driver_t to d3d_renderchain_driver_t 2017-09-05 04:21:40 +02:00
twinaphex 21d3e890f8 Cleanup 2017-09-05 04:16:27 +02:00
twinaphex 97d7240c47 Cleanups 2017-09-05 04:08:44 +02:00
twinaphex 1c6314f1ff Cleanups 2017-09-05 03:51:20 +02:00
twinaphex 057444433d Cleanups 2017-09-05 03:42:39 +02:00
twinaphex 3eecbd7135 Fix d3d9_cg_renderchain.cpp 2017-09-05 03:27:00 +02:00
twinaphex 374b6115e1 Update HLSL backend 2017-09-05 03:21:58 +02:00
twinaphex 83ffb5092a Cleanups 2017-09-05 03:00:51 +02:00
twinaphex 9880e76d25 Implement set min/mag/u/v for D3D8 2017-09-05 01:12:06 +02:00
twinaphex 2b81f945df Update D3D8 codepaths 2017-09-05 01:03:55 +02:00
twinaphex 6f26a9b97e Take this out 2017-09-05 01:01:00 +02:00
twinaphex c691bbaedc Start going through compilation errors 2017-09-05 00:57:58 +02:00
twinaphex fb5744318a Start adding D3D8 headers 2017-09-05 00:37:17 +02:00
twinaphex fd14986368 (d3d_common.cpp) Cleanups 2017-09-05 00:21:41 +02:00
twinaphex e1c139dda6 Buildfix 2017-09-05 00:10:24 +02:00
twinaphex d1709c7ffb Buildfix 2017-09-05 00:07:26 +02:00
twinaphex 9087b367b6 Start adding D3D8 rules 2017-09-05 00:06:07 +02:00
twinaphex b46c4b4db5 Create d3d8_renderchain.cpp and d3d9_hlsl_renderchain.cpp 2017-09-05 00:00:17 +02:00
twinaphex c96b843330 xdk_renderchain.cpp should become the D3D8 renderchain implementation
(for Xbox OG/PC);
xdk360_renderchain.cpp will become the D3D9 HLSL one (for 360/PC)
2017-09-04 23:50:13 +02:00
Brad Parker 521d3220b5 msvc2003: add "NoDX" debug target 2017-09-04 15:04:44 -04:00
Brad Parker 007888f54d msvc2003: add "NoDX" targets to remove DirectX8 needed to run on NT 2017-09-04 14:19:14 -04:00
Brad Parker 47f3a801ba gdi: allow compilation without DirectInput8 for NT 2017-09-04 14:18:50 -04:00
Brad Parker 455a455d9f msvc2005: remove WINVER as it was causing too much trouble with multimon (requires WINVER set to win2k but 98 supports it too) 2017-09-04 12:03:50 -04:00
Brad Parker 6b20986d67 msvc2005: can't target lower than 98 2017-09-04 05:58:23 +00:00
Brad Parker 747dd2ad12 support Windows 95/NT4 2017-09-03 23:39:25 -04:00
Brad Parker 1204715525 msvc throws debug assert with fopen on a null string 2017-09-03 23:52:58 -04:00
Brad Parker 9e41efbd24 msvc2003 linker fixes 2017-09-03 23:48:22 -04:00
Brad Parker 8d525f711a msvc2003 buildfixes 2017-09-03 23:39:25 -04:00
Brad Parker 0d8220cc1c add back UTF8 BOM, fixes msvc2005 2017-09-03 23:38:07 -04:00
twinaphex 80dc96a8fb CXX_BUILD buildfix 2017-09-04 03:49:23 +02:00
Twinaphex fa2b43f241 Merge pull request #5401 from heuripedes/master
(xmb) Fix crash when browsing small lists
2017-09-03 23:09:28 +02:00
Higor Eurípedes 455349880e (xmb) Fix crash when browsing to small lists 2017-09-03 18:06:38 -03:00
Twinaphex 3f70099f01 Merge pull request #5400 from heuripedes/master
More XMB improvements
2017-09-03 22:32:40 +02:00
Higor Eurípedes eac68b9d41 (xmb) Limit selection_buf_old to visible items 2017-09-03 16:30:45 -03:00
Higor Eurípedes d40deb737d (file_list.c) Add file_list_reserve() 2017-09-03 14:58:01 -03:00
Higor Eurípedes 6c7a354822 (xmb) Remove xmb->menu_stack_old 2017-09-03 14:51:14 -03:00
twinaphex 67710daf4b Fix initialization from incompatible pointer type 2017-09-03 15:45:18 +02:00
Twinaphex 2ac4bb7767 Merge pull request #5399 from heuripedes/master
Fix xmb_node_t memleaks
2017-09-03 15:33:48 +02:00
Higor Eurípedes 9a50f5f8b1 (file_list.c) Document file_list_free() behavior 2017-09-03 10:30:01 -03:00
Higor Eurípedes 718eeb4a39 (xmb) Fix memleak
Due to file_list_free()'s behavior of free()ing userdata as if it was a
simple, contiguous structure xmb_node_t's fullpath member wasn't being
free()'d.
2017-09-03 10:25:15 -03:00
Higor Eurípedes a7e6b02107 (xmb) Refactor xmb_copy_node()
xmb_node_t is nowhere as big as it used to be, so copying is fine now.
2017-09-03 10:19:03 -03:00
Higor Eurípedes 65ec1e973a (xmb) Add xmb_free_list_nodes()
Fixes some node->fullpath memleaks.
2017-09-03 09:48:31 -03:00
Twinaphex 8f72431b7e Merge pull request #5397 from heuripedes/master
(xmb) Fix crash while scanning
2017-09-03 04:42:00 +02:00
Higor Eurípedes 1a1e5047e8 (xmb) Fix crash while scanning 2017-09-02 20:21:02 -03:00
Brad Parker 35c4770c9b gdi: manually convert RGB444 to RGB555 to get around BI_BITFIELDS limitation on non-NT platforms 2017-09-01 20:52:58 -04:00
Twinaphex 145e404211 Merge pull request #5390 from heuripedes/master
(menu_cbs) Don't compare labels when menu entry comes from playlist
2017-09-01 03:41:26 +02:00
Higor Eurípedes a1822055b6 (menu_cbs) Don't compare labels when menu entry comes from playlist 2017-08-31 21:27:14 -03:00
Twinaphex 47bfca5365 Merge pull request #5388 from heuripedes/master
(xmb) Fix crash when toggling the menu
2017-08-31 20:25:16 +02:00
Higor Eurípedes 4bfc8f8243 (xmb) Fix crash when toggling the menu 2017-08-31 14:52:54 -03:00
Brad Parker c7d7c5c909 gl: don't try to render a blank OSD message on every frame 2017-08-31 11:59:23 -04:00
twinaphex 24dc35d97b Cleanups 2017-08-31 12:17:06 +02:00
twinaphex 44a1a429c8 Change type of pid/vid to uint16_t 2017-08-31 12:14:27 +02:00
Twinaphex 652b0aa940 Merge pull request #5386 from fr500/master
make the verbosity toggle less weird:
2017-08-31 11:50:47 +02:00
Twinaphex dfc25dc29f Merge pull request #5384 from heuripedes/master
(xmb) Don't animate more than needed when switching lists
2017-08-31 11:50:13 +02:00
Twinaphex d142a1c849 Merge pull request #5385 from RobLoach/patch-17
Remove include of input_config.h
2017-08-31 11:49:43 +02:00
radius e40ebccbdd make the verbosity toggle less weird:
right now, enabling verbosity via -v causes it to change the config parameter.

Now it doesn't changet the config parameter unless the switch is actually flicked manually
2017-08-30 22:23:13 -05:00
Rob Loach fa75f47995 Fix includes of input_config 2017-08-30 23:14:27 -04:00
Rob Loach d993bd3dcf Remove input_config.h include 2017-08-30 23:10:12 -04:00
Rob Loach 40f4d805a8 Fix non-existent include of input_config.h 2017-08-30 23:01:12 -04:00
Higor Eurípedes f521a32c00 (xmb) Don't animate more than needed when switching lists 2017-08-30 22:23:29 -03:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
twinaphex 0c5781ba8d (input_config.c) Cleanups 2017-08-31 01:57:51 +02:00
Andre Leiradella 863fd7b18d Merge branch 'master' of https://github.com/libretro/RetroArch 2017-08-30 23:14:44 +01:00
twinaphex d8f27886ad Reduce size of input driver ids to uint16_t - should be enough 2017-08-30 14:02:18 +02:00
Twinaphex e215341d05 Merge pull request #5383 from heuripedes/master
(xmb) Make xmb_node_t smaller
2017-08-30 12:56:46 +02:00
Brad Parker 5e3531a5f2 win98: fix core video graphics corruption\nbitmapinfoheader size should never include masks, but this is undocumented 2017-08-30 00:48:02 -04:00
Higor Eurípedes bd96c75bfe (xmb) Make xmb_node_t smaller
Each xmb_node_t instance used over 4KiB of memory even when it didn't
need to. In big list like MAME (30+ thousand entries) RetroArch would
consume over 100MiB (4096 bytes * 30000) just to hold all xmb_node_t
instances.
2017-08-29 22:19:19 -03:00
Andre Leiradella 3010b8ab2e Fixed Add/Sub source conditions 2017-08-26 12:53:10 +01:00
Andre Leiradella 7846f0312b Conditions are true by default 2017-08-26 12:44:35 +01:00
Twinaphex 85e2a11845 Merge pull request #5376 from JesterIOS/patch-3
Update msg_hash_ru.h
2017-08-26 11:32:28 +02:00
Twinaphex 32b0bb6f7f Merge pull request #5377 from rz5/patch-1
Update README.md
2017-08-26 11:32:21 +02:00
rz5 0a83c37272 Update README.md
Add images of all the menu drivers.
2017-08-26 10:26:18 +01:00
JesterIOS 17408b1b33 Fix Typo (now 90% translated) 2017-08-26 16:22:47 +07:00
twinaphex aea3b0c632 Update CHANGES.md 2017-08-25 17:33:02 +02:00
Twinaphex b4c8f4f9f5 Merge pull request #5371 from reztek/master
Update pt-br language files
2017-08-25 17:31:43 +02:00
Twinaphex 1aa07fe11a Merge pull request #5372 from JesterIOS/patch-2
Added more translations in msg_hash_ru
2017-08-25 17:31:35 +02:00
Twinaphex 13b1dba540 Merge pull request #5373 from theheroGAC/patch-22
Update msg_hash_it.h
2017-08-25 17:31:29 +02:00
theheroGAC 8c05967d75 Update msg_hash_it.h
little update
2017-08-24 14:36:35 +02:00
JesterIOS bb0b946fd1 Added more translations in msg_hash_ru 2017-08-24 18:00:27 +07:00
Adolfo Ketzer 7871d361b6 Add files via upload 2017-08-24 00:06:00 -03:00
Adolfo Ketzer 0454e72e49 Merge pull request #1 from libretro/master
Update master
2017-08-24 00:05:01 -03:00
Twinaphex 42017b6d08 Merge pull request #5370 from theheroGAC/patch-21
Update msg_hash_it.h
2017-08-23 18:53:25 +02:00
theheroGAC b03c818ae6 Update msg_hash_it.h 2017-08-23 15:52:45 +02:00
Twinaphex 439b204370 Merge pull request #5369 from JesterIOS/patch-1
Update msg_hash_ru.h
2017-08-23 14:41:12 +02:00
JesterIOS 8a91fcb60c Update msg_hash_ru.h
Add new translations & fixed old.
2017-08-23 19:35:22 +07:00
Twinaphex b599ac2122 Update CHANGES.md 2017-08-23 13:37:32 +02:00
Twinaphex a7159b6fb9 Merge pull request #5361 from theheroGAC/patch-20
Update other strings
2017-08-23 07:18:58 +02:00
Twinaphex 4e72be1bb6 Merge pull request #5362 from heuripedes/xmb-improv
Attempt at returning the perf improvement
2017-08-23 07:18:41 +02:00
Twinaphex 6e3f0fbc24 Merge pull request #5364 from heuripedes/glui-improv
Glui improvements
2017-08-23 07:18:20 +02:00
Brad Parker 9c49b693f3 rthreads: early return if thread was null (temporary fix for shutdown crash in win98) 2017-08-22 23:41:58 -04:00
Brad Parker e3d68cd131 GDI: fix flickering of text 2017-08-22 23:39:42 -04:00
Higor Eurípedes 972e5c2368 (glui) Cache content height and bbox calculation 2017-08-22 23:37:14 -03:00
Higor Eurípedes 4ae39dab32 (glui) Skip querying and drawing items that are not visible 2017-08-22 23:15:33 -03:00
Higor Eurípedes 70b6f951d3 (xmb) Uncomment xmb_calculate_visible_range() call
I tested the other drivers quickly and the previous commit did not
affect them, so I'm enabling this again.
2017-08-22 22:00:14 -03:00
Higor Eurípedes 22ef8538b7 (menu) Don't set selection to 0 on when navigating horizontally 2017-08-22 21:59:43 -03:00
theheroGAC 3f36bfbfb4 Update msg_hash_it.h 2017-08-23 01:18:09 +02:00
theheroGAC 788620a5cd Update msg_hash_it.h 2017-08-22 23:38:07 +02:00
Twinaphex b2d9bad3a2 Update wgl_ctx.c 2017-08-22 17:44:40 +02:00
Twinaphex a9eb27e079 Merge pull request #5359 from theheroGAC/patch-19
Update msg_hash_it.h
2017-08-22 14:17:33 +02:00
theheroGAC 7fbec9be75 Update msg_hash_it.h 2017-08-22 09:33:00 +02:00
theheroGAC 596c759982 Update msg_hash_it.h 2017-08-21 19:37:22 +02:00
theheroGAC 62afb605da Update msg_hash_it.h 2017-08-21 17:39:32 +02:00
Twinaphex 19fa2756d5 Merge pull request #5358 from theheroGAC/patch-18
Updated Italian strings and fix more
2017-08-21 15:22:34 +02:00
theheroGAC a6c59e4a84 fixed build 2017-08-21 12:00:03 +02:00
theheroGAC 1533bc0937 Update msg_hash_it.h 2017-08-21 11:26:24 +02:00
theheroGAC 6365177a20 Updated Italian strings and fix more
Updated Italian strings and fix more
2017-08-21 11:05:58 +02:00
twinaphex a235c0b771 Bump up AKP code 2017-08-21 08:30:46 +02:00
twinaphex c39332a496 (MaterialUI) Possible to manually set sublabel color too 2017-08-21 06:58:50 +02:00
twinaphex 5506f00018 Tweak icon color for Shield theme 2017-08-21 06:52:50 +02:00
twinaphex d86641e39d (MaterialUI) Go back to the old menu code 2017-08-21 06:43:44 +02:00
twinaphex 0d917b06c2 Buildfix 2017-08-21 05:54:54 +02:00
Twinaphex e7010e1517 Merge pull request #5356 from psyke83/revert-5351-master
Revert "config.lib.sh: use brcm vg/egl/glesv2 packages on RPI"
2017-08-21 05:24:13 +02:00
Conn O'Griofa 87b743969d Revert "config.lib.sh: use brcm vg/egl/glesv2 packages on RPI" 2017-08-21 04:20:40 +01:00
Twinaphex 585a931bb2 Merge pull request #5355 from theheroGAC/patch-17
Update msg_hash_it.h
2017-08-21 01:52:44 +02:00
theheroGAC ecc72ee748 Update msg_hash_it.h 2017-08-21 01:47:01 +02:00
Twinaphex 3507f299de Merge pull request #5349 from Alex793/master
(XMB) Regression Fix thumbnail ahead OSK overlay
2017-08-20 23:11:12 +02:00
Twinaphex df13d46523 Merge pull request #5354 from theheroGAC/patch-16
New revision of the strings in Italian
2017-08-20 23:10:32 +02:00
theheroGAC 37b49f5bc0 New revision of the strings in Italian
New revision of the strings in Italian
2017-08-20 22:43:00 +02:00
Twinaphex 1d251dd643 Update CHANGES.md 2017-08-20 21:05:58 +02:00
Brad Parker ebc9ee192b rgui does not support unicode, this prevents a buffer overflow if an unsupported language is set 2017-08-20 14:41:09 -04:00
twinaphex 764f5e22aa (RGUI) Redesign blit_line somewhat 2017-08-20 20:33:03 +02:00
Twinaphex 1711daab76 Merge pull request #5353 from theheroGAC/patch-15
Full Code Sorting, Current Translation
2017-08-20 20:26:53 +02:00
theheroGAC ecc91d743d Full Code Sorting, Current Translation
Full Code Sorting, Current Translation
2017-08-20 20:08:07 +02:00
Twinaphex 3854ee7a1c Merge pull request #5351 from psyke83/master
config.lib.sh: use brcm vg/egl/glesv2 packages on RPI
2017-08-20 19:15:32 +02:00
Conn O'Griofa 7aa05153eb config.lib.sh: use brcm vg/egl/glesv2 packages on RPI 2017-08-20 11:21:36 +01:00
Twinaphex d92458c554 Merge pull request #5350 from psyke83/rpi-stretch
config.libs.sh: fix Raspberry Pi library names
2017-08-20 09:23:47 +02:00
Conn O'Griofa 97d98b87ce config.libs.sh: fix Raspberry Pi library names 2017-08-20 06:42:59 +01:00
Alex e5adb1056c (XMB) Regression Fix thumbnail ahead OSK overlay 2017-08-20 06:38:23 +02:00
twinaphex 2bce8b10e3 Update 2017-08-20 00:54:39 +02:00
twinaphex 2b49669898 Update Makefile.libogc 2017-08-20 00:50:04 +02:00
twinaphex 06ab96c622 (libogc) Exclude unused dvd file to shave off a tiny bit of memory 2017-08-19 23:37:58 +02:00
twinaphex 1cac74d69f Makefile.libogc should not remove already pre-created lib files 2017-08-19 23:29:35 +02:00
twinaphex 7ca508d516 Small cleanups to Makefile.libogc 2017-08-19 23:28:38 +02:00
twinaphex 7156de52c4 Add Makefile.libogc 2017-08-19 23:20:54 +02:00
twinaphex 3a46538680 Remove hashes 2017-08-19 22:16:21 +02:00
twinaphex 836aae9e9d Add TODO/FIXME notes 2017-08-19 22:10:33 +02:00
twinaphex b694c99631 Regression fix 2017-08-19 22:08:51 +02:00
twinaphex d93dc10882 Remove hash 2017-08-19 21:58:47 +02:00
twinaphex f8b4307356 Cleanups; get rid of hashes 2017-08-19 21:38:33 +02:00
twinaphex af2042e0fd Cleanups; get rid of more hashes 2017-08-19 21:35:12 +02:00
twinaphex ca8fd24252 Get rid of some hashes 2017-08-19 21:10:15 +02:00
twinaphex 0605a8d656 Get rid of some hashes 2017-08-19 21:05:17 +02:00
Twinaphex e0eb935b90 Update CHANGES.md 2017-08-19 20:28:19 +02:00
Twinaphex 866760f6db Merge pull request #5348 from theheroGAC/patch-14
Fixed some strings
2017-08-19 20:21:39 +02:00
theheroGAC 85ab8b83a0 Fixed some strings
Fixed some strings and began to rearrange the various strings
2017-08-19 20:01:22 +02:00
Twinaphex d17bc12b32 Merge pull request #5343 from gizmo98/master
Broadcom VC4: Add Videocore config option
2017-08-19 19:57:38 +02:00
Twinaphex 17726b36a1 Merge pull request #5342 from heuripedes/master
(xmb) Comment out visible item calculation in xmb_draw_items()
2017-08-19 19:47:40 +02:00
gizmo98 e79ed86e38 config.lib.sh: add missing $ 2017-08-19 17:03:38 +02:00
gizmo98 1bc0319f79 Broadcom VC4: Add Videocore config option
Add option to disable Videocore autodetect so VC4 open source driver
can be used.
2017-08-19 17:03:01 +02:00
Higor Eurípedes 6bc5cd302a (xmb) Comment out visible item calculation in xmb_draw_items()
Fixes a regression where fading animations didn't render if you were far
into the previous list. This happened because "current" has an incorrect
value thanks to a menu_navigation_set_selection(0) call in
menu_cbs_left.c:162
2017-08-19 11:01:27 -03:00
Twinaphex 4d8914e24b Update CHANGES.md 2017-08-19 14:18:50 +02:00
twinaphex e065d70426 (WGL) Try to use wglSwapLayerBuffers first before resorting to SwapBuffers 2017-08-19 14:17:30 +02:00
Twinaphex 1205c2f438 Merge pull request #5336 from heuripedes/master
(playlist.c) Fix clear/free loop conditionals
2017-08-19 13:53:39 +02:00
Higor Eurípedes ab50eca024 (playlist.c) Fix clear/free loop conditionals 2017-08-19 08:40:09 -03:00
twinaphex e193f7a22a Style nits 2017-08-19 12:27:24 +02:00
twinaphex 822e2fd0d4 Put this around an HW_RVL ifdef 2017-08-19 12:13:03 +02:00
Twinaphex 1d2014a3c9 Update CHANGES.md 2017-08-19 10:17:44 +02:00
Twinaphex e77f990807 Update CHANGES.md 2017-08-19 10:09:37 +02:00
Twinaphex 5b5774e153 Update CHANGES.md 2017-08-19 10:09:00 +02:00
Twinaphex cb44766c47 Update CHANGES.md 2017-08-19 10:08:17 +02:00
Twinaphex 99aaee50f9 Merge pull request #5334 from QuarkTheAwesome/master
[libretro-common] Fix null dereference where argc is 0
2017-08-19 10:01:37 +02:00
Twinaphex 93f863aeb7 Merge pull request #5333 from QuarkTheAwesome/patch1
[WiiU] DRC touch support as pointer device
2017-08-19 10:00:51 +02:00
Ash 6b5aef09a1 [WiiU] DRC touch support as pointer device
Allow using the Gamepad's touch screen as a RETRO_DEVICE_POINTER.
Methodology could use some work, had to add an extra axis to
joypad in order to get the data transferred into the input driver.
Feel free to change this.
Needs to emulate RETRO_DEVICE_LIGHTGUN to really be useful.
Potential for Wiimote IR in future.

Partially addresses libretro/RetroArch#5294
2017-08-19 17:40:56 +10:00
Ash 738d17ff3b Fix null deref where argc = 0
I noticed this on the Wii U emulator Decaf - it sets argc to 0 and,
annoyingly, sets up argv so that argv[0] is a bad read.

Gah.
2017-08-19 17:16:50 +10:00
twinaphex 6de19a1d6c Add library files 2017-08-19 09:08:10 +02:00
twinaphex 7d259b4eaa Update 2017-08-19 09:03:10 +02:00
twinaphex 993309daf1 Revert "Don't link against wiiuse and bte for Salamander"
This reverts commit e2653c949b.
2017-08-19 09:01:51 +02:00
twinaphex e2653c949b Don't link against wiiuse and bte for Salamander 2017-08-19 09:01:24 +02:00
twinaphex de638b66b5 (GX) Start adding internal libogc 2017-08-19 08:46:04 +02:00
twinaphex 61473d8f15 Start adding hooks for internal libogc 2017-08-19 08:31:02 +02:00
twinaphex 67ea020cdf Fix typo 2017-08-19 06:27:25 +02:00
Twinaphex 842845a9fb Merge pull request #5332 from heuripedes/xmb-improv
(xmb) Skip drawing the fading list when it is already transparent
2017-08-19 03:40:20 +02:00
Higor Eurípedes aaecf82608 (xmb) Skip drawing the fading list when it is already transparent 2017-08-18 22:33:38 -03:00
Twinaphex 1d32d747d6 Merge pull request #5330 from GregorR/netplay-fix-disconnect
Fix disconnection not fully deinitializing Netplay.
2017-08-18 23:50:40 +02:00
Gregor Richards 584e12ed37 Fix disconnection not fully deinitializing Netplay. 2017-08-18 14:13:39 -04:00
Jean-André Santoni 6940019102 (XMB) Icon for the rename action 2017-08-18 18:30:31 +07:00
Jean-André Santoni 2ff6bee726 (Menu) Feedback when adding a content to favorites 2017-08-18 15:59:44 +07:00
Jean-André Santoni 6c56ddcc22 (Lakka) Expose the favorites tab setting 2017-08-18 14:54:35 +07:00
twinaphex 8e8bdaaab3 Update CHANGES.md 2017-08-18 02:52:46 +02:00
Brad Parker 6c91c39aae glui: fix entry box highlight calculation 2017-08-17 20:49:21 -04:00
Twinaphex 59aaabb9bf Merge pull request #5324 from theheroGAC/patch-13
Updated the MATERIALUI translation
2017-08-18 02:49:32 +02:00
Twinaphex 456e1b033f Merge pull request #5326 from heuripedes/xmb-improv
Xmb improvements
2017-08-18 02:40:17 +02:00
Higor Eurípedes 0d59994c42 (xmb) Only iterate over visible items in xmb_render() 2017-08-17 21:36:48 -03:00
Higor Eurípedes ea9991f749 (xmb) Detect non-visible items before drawing 2017-08-17 21:36:48 -03:00
Brad Parker 139d95c563 FreeBSD buildfix 2017-08-17 20:28:47 -04:00
theheroGAC 87b4576e78 Update msg_hash_it.h 2017-08-18 02:13:28 +02:00
theheroGAC e70c15e641 Updated the MATERIALUI translation 2017-08-17 23:57:52 +02:00
Andre Leiradella 8cae8a5720 Fixes to the new condition types 2017-08-17 21:14:50 +01:00
twinaphex 73e00e021a Bump up version to 1.6.7 2017-08-17 21:09:42 +02:00
twinaphex b4912db587 Update CHANGES.md 2017-08-17 21:07:16 +02:00
twinaphex 6fc48a39d9 (MaterialUI) Add Menu Icons Enable setting 2017-08-17 21:05:38 +02:00
twinaphex 6d3292945e Update CHANGES.md 2017-08-17 20:04:17 +02:00
Brad Parker 9242cdeda9 glui: subtract icon size from word wrap width if one is used 2017-08-17 14:02:41 -04:00
twinaphex 7a402b97ec Italian language build fixes 2017-08-17 20:01:34 +02:00
Twinaphex d4ffc6801f Merge pull request #5321 from theheroGAC/patch-12
Fixed translation errors
2017-08-17 20:00:16 +02:00
theheroGAC dff78cf0cc Fixed translation errors 2017-08-17 19:57:00 +02:00
twinaphex 4e37b784d2 Update CHANGES.md 2017-08-17 19:27:59 +02:00
twinaphex 828f4aa8b9 (materialUI) Add disk image append icons 2017-08-17 19:24:23 +02:00
twinaphex 6952d6bd12 Update CHANGES.md 2017-08-17 19:10:23 +02:00
twinaphex 366c73f429 Fix 'Append Disk Image' 2017-08-17 19:07:38 +02:00
twinaphex 5909d72a09 Fix 'Scan File' 2017-08-17 18:53:55 +02:00
Twinaphex 8e2689fca2 Merge pull request #5318 from theheroGAC/patch-11
Updated translation of some strings and tabs
2017-08-17 18:17:39 +02:00
twinaphex 33a2d58891 Fix 'Scan Directory' 2017-08-17 18:16:33 +02:00
theheroGAC 04b8f0584e Update msg_hash_it.h 2017-08-17 10:55:20 +02:00
theheroGAC 4af569fbcc Updated translation of some strings and tabs 2017-08-17 10:18:13 +02:00
Twinaphex e3818d50ac Merge pull request #5315 from ensra/master
Fix db build
2017-08-17 02:51:27 +02:00
ensra 4dcb151f03 Fix db build 2017-08-17 01:06:18 +01:00
twinaphex e56250c84f C89_BUILD fix 2017-08-17 01:41:30 +02:00
Twinaphex c08fc10ba4 Merge pull request #5314 from theheroGAC/patch-10
Missing strings added
2017-08-17 01:21:43 +02:00
twinaphex a795237898 Add some last-minute icons 2017-08-17 01:03:30 +02:00
theheroGAC 8dbafceebe Missing strings added 2017-08-17 01:00:59 +02:00
twinaphex 47cf178309 Bump up version to 1.6.6 2017-08-16 23:59:15 +02:00
twinaphex adc3b4b726 Playlist file needs to be written to when we add an entry to
Favorites
2017-08-16 22:43:42 +02:00
twinaphex e743875de2 Enable 'Show Physical Inputs' 2017-08-16 22:30:15 +02:00
twinaphex 8acd734be2 Remove some hash labels 2017-08-16 19:20:24 +02:00
twinaphex d0e24b02b4 Update 2017-08-16 19:10:07 +02:00
twinaphex a243278f53 Get rid of more hash labels 2017-08-16 19:06:14 +02:00
twinaphex 887364062a Get rid of more hash labels 2017-08-16 19:00:15 +02:00
twinaphex d1f0f19824 (menu_cbs_label.c) Cut down on code duplication 2017-08-16 18:51:44 +02:00
twinaphex b8008d74e5 Get rid of some hash labels 2017-08-16 18:47:29 +02:00
twinaphex 2a1c8c7a6c Update menu_cbs_title.c 2017-08-16 18:43:08 +02:00
twinaphex ef83954376 Fix relative header include 2017-08-16 09:00:36 +02:00
twinaphex 7a44d29ed4 Only show video entries when HAVE_FFMPEG is enabled 2017-08-16 08:50:46 +02:00
twinaphex 877d14b1e7 Fix playlist updating 2017-08-16 08:01:35 +02:00
twinaphex 494e229b03 Refactor this 2017-08-16 07:46:43 +02:00
twinaphex 1093c1bac8 (XMB) Fix black box regression 2017-08-16 05:52:59 +02:00
twinaphex 0eb78a26b3 Let's try to implement the message inside intl/msg_hash_us.c instead -
we need to get index from somewhere
2017-08-16 05:45:51 +02:00
Twinaphex 442339a63e Merge pull request #5307 from fr500/master
Start adding descriptions to lobbies
2017-08-16 05:24:52 +02:00
Twinaphex 1a3d79b458 Merge pull request #5306 from heuripedes/master
(xmb) Fix crash
2017-08-16 04:20:59 +02:00
radius f54a834ada update CHANGES.md 2017-08-15 21:07:10 -05:00
radius 6804432fa7 log address family, fix inet_ntop_compat 2017-08-15 21:03:59 -05:00
radius 6f4697d60f start adding descriptions for netplay rooms 2017-08-15 21:03:59 -05:00
twinaphex cf7fd7b34b Shorten sublabel for Information 2017-08-16 03:18:18 +02:00
twinaphex 5c7fd82a40 Add Music/Image/Video lists for MaterialUI and RGUI 2017-08-16 03:15:04 +02:00
Higor Eurípedes db48561289 (xmb) Fix crash 2017-08-15 21:34:49 -03:00
twinaphex 0d86027cd5 (RGUI) Add Load Content -> Favorites 2017-08-16 01:10:27 +02:00
twinaphex e32ec709b3 Added 'Favorites' to MaterialUI playlists tab 2017-08-16 00:01:56 +02:00
twinaphex 89b695dae3 Tweak Dark Blue a bit 2017-08-15 22:52:18 +02:00
twinaphex ef79711837 (MaterialUI) Hook up framebuffer opacity 2017-08-15 22:43:09 +02:00
twinaphex 5c6b230e42 Start adding separate setting 'framebuffer_opacity' 2017-08-15 22:17:02 +02:00
Twinaphex b2fd9c5b05 Merge pull request #5305 from RobLoach/joypadprofiles
Rename "Update Autoconfig Profiles" to "Update Joypad Profiles"
2017-08-15 20:12:38 +02:00
twinaphex 1887862a03 (MaterialUI) Update 2017-08-15 19:52:50 +02:00
Rob Loach a66f9249df Fix "Update Autoconfig Profiles" to "Update Joypad Profiles"
Fixes #2680
2017-08-15 13:43:41 -04:00
twinaphex c438e556b1 (MaterialUI) Update icons 2017-08-15 19:40:49 +02:00
twinaphex 990f746aee (MaterialUI) Update icons 2017-08-15 19:34:34 +02:00
twinaphex b760a407fd (MaterialUI) Add icons 2017-08-15 19:20:16 +02:00
twinaphex e34f8e0911 Update 2017-08-15 19:05:23 +02:00
twinaphex f1069ee7ed (MaterialUI) Update 2017-08-15 19:02:58 +02:00
twinaphex 573cf1df1a (MAterialUI) use white icons for shield theme 2017-08-15 18:11:47 +02:00
twinaphex 09cf3262f1 (RGUI) Cleanups 2017-08-15 17:56:42 +02:00
twinaphex ade279c0ba (RGUI) Cleanups 2017-08-15 17:51:08 +02:00
Twinaphex a73695aca9 Merge pull request #5303 from rz5/master
(materialui.c) New struct to hold all theme-related info
2017-08-15 17:36:13 +02:00
r5 31317f7cbf (materialui.c) New struct to hold all theme-related info
Struct should be used to group together variables that
control font/bg/fg/highlight/icon colors.
2017-08-15 16:32:39 +01:00
Twinaphex 09c980c645 Merge pull request #5301 from theheroGAC/patch-9
Update some strings
2017-08-15 10:25:02 +02:00
twinaphex 19efd41164 Add more icons 2017-08-15 10:06:52 +02:00
theheroGAC e4a8793dcc Update some strings 2017-08-15 09:57:13 +02:00
twinaphex 5de11039c6 Updates 2017-08-15 09:02:55 +02:00
twinaphex aad8e551fe Add more icons 2017-08-15 08:52:04 +02:00
twinaphex 27966879b0 (MaterialUI) Add more icons 2017-08-15 08:16:32 +02:00
twinaphex ea16a51342 Add icons 2017-08-15 07:47:17 +02:00
twinaphex 1bcec096bb Update icons 2017-08-15 07:27:15 +02:00
twinaphex 64686b46b1 Add icons 2017-08-15 07:08:55 +02:00
twinaphex c5c5af0507 Add more icons 2017-08-15 06:42:48 +02:00
twinaphex 14f7ee6116 Add new icons 2017-08-15 06:01:35 +02:00
twinaphex b40f59a6ec (MaterialUI) Add audio icon 2017-08-15 05:42:44 +02:00
twinaphex 950264e89e Fix setting the path 2017-08-15 05:30:57 +02:00
twinaphex 28ade72baf (MaterialUI) Cleanups 2017-08-15 05:23:54 +02:00
twinaphex 07dd7c8ccb Cleanups 2017-08-15 05:15:45 +02:00
twinaphex e9d738226a (MaterialUI) Some more refinements 2017-08-15 04:41:17 +02:00
twinaphex db24e4da42 Try to avoid countless string_is_equal function calls
being called multiple times per frame render - prebake
these decisions instead inside list_insert
2017-08-15 04:33:36 +02:00
twinaphex f608ac3556 (MaterialUI) small performance improvements 2017-08-15 03:24:07 +02:00
twinaphex a0859229f9 Locally cache menu_display_get_dpi inside a variable 2017-08-15 03:11:39 +02:00
twinaphex 8fc6427d0e Don't use menu_entries_get_end() inside for loop epilogue 2017-08-15 03:06:40 +02:00
twinaphex 058116b8da Add more labels 2017-08-15 03:00:49 +02:00
twinaphex 00ae975c6f (materialui) Add another icon 2017-08-15 01:21:20 +02:00
twinaphex 28147d8aa6 Add another icon 2017-08-15 01:11:37 +02:00
twinaphex 777308c42c Add icon 2017-08-15 00:35:36 +02:00
twinaphex 736477d4e4 (MaterialUI) Add icons 2017-08-15 00:24:02 +02:00
twinaphex e060029d4c (MaterialUI) Update icons 2017-08-14 23:51:52 +02:00
twinaphex 559fabeb08 (MaterialUI) Add more icons 2017-08-14 23:31:04 +02:00
twinaphex 4c877148fe (MaterialUI) Add image icon 2017-08-14 23:13:25 +02:00
twinaphex 648cf89893 Start using a second icon at the lefthand side 2017-08-14 23:05:51 +02:00
twinaphex c2c98184e6 Update CHANGES.md 2017-08-14 20:10:22 +02:00
twinaphex 147374c9c1 You can now rename playlist entries 2017-08-14 20:07:43 +02:00
twinaphex fd0c9fb9c1 Start adding entries for renaming entry 2017-08-14 19:40:25 +02:00
twinaphex 24878694f8 Silence some warnings 2017-08-14 07:13:50 +02:00
Twinaphex e262ae3326 Merge pull request #5297 from RobLoach/world
Remove TODO note for Show Favorites
2017-08-14 03:37:42 +02:00
Rob Loach 91d1b18124 Remove TODO note for Show Favorites 2017-08-13 21:30:29 -04:00
Twinaphex 8d4e06856b Merge pull request #5296 from RobLoach/favorites
Add to Favorites
2017-08-14 03:23:55 +02:00
Rob Loach 7c54cebfb3 Merge branch 'master' of github.com:libretro/RetroArch into favorites 2017-08-13 21:20:22 -04:00
Rob Loach d469be76a7 Add Show Favorites Tab to msg_hash_lbl 2017-08-13 21:07:41 -04:00
twinaphex 7165ba5245 Update CHANGES.md 2017-08-14 02:51:54 +02:00
twinaphex 81273cedcf Fix playlist remove regression 2017-08-14 02:49:55 +02:00
Rob Loach 0a9143b999 Merge branch 'favorites' of github.com:Kivutar/RetroArch into favorites 2017-08-13 19:22:33 -04:00
Rob Loach c8c3f9b842 Add eo spelling of Favorites 2017-08-13 19:10:21 -04:00
Rob Loach e324b4a074 Reorder the View settings 2017-08-13 19:10:09 -04:00
Rob Loach 6a47658502 Add Show Favorites to displaylist 2017-08-13 18:53:09 -04:00
Jean-André Santoni b906da5131 Save the favorites to the disk 2017-08-14 00:50:16 +02:00
Rob Loach 8e0e99ba66 Add Show Favorites sublabel 2017-08-13 18:44:50 -04:00
Jean-André Santoni b1daf18772 add_to_favorites OK callback 2017-08-14 00:42:56 +02:00
Rob Loach 8424c26068 Add View Favorites Tab setting 2017-08-13 18:38:38 -04:00
Jean-André Santoni 9dfb39c672 Start implementing the callback for add-to-favorites 2017-08-14 00:29:38 +02:00
Rob Loach 76899d0d33 Merge branch 'favorites' of github.com:Kivutar/RetroArch into favorites 2017-08-13 18:20:36 -04:00
Jean-André Santoni 42012389cd (Menu) Add the add-favorites entry to the quick menu too 2017-08-14 00:19:20 +02:00
Jean-André Santoni c9ad8cd1f9 (XMB) Display the small add-favorite icon 2017-08-14 00:12:55 +02:00
twinaphex 02cfe1f7c0 Bump up version to 1.6.5 2017-08-13 19:07:58 +02:00
twinaphex f6458334b6 Move some settings around, and rename 'Menu' to 'Appearance' 2017-08-13 18:29:34 +02:00
twinaphex 0ed4b97bbc Revert "Don't hide 'Resolution' setting behind compile-time ifdefs anymore"
This reverts commit 365cfd22ee.
2017-08-13 18:05:51 +02:00
twinaphex f9765a98fb Cut down on code duplication 2017-08-13 07:14:10 +02:00
twinaphex dce21063dd Cut down on code duplication 2017-08-13 06:57:32 +02:00
twinaphex 45cb6925cf Cut down on code duplication 2017-08-13 06:49:51 +02:00
twinaphex 2756217d9b (menu_cbs_ok.c) Cut down on code duplication 2017-08-13 06:36:53 +02:00
twinaphex 6ec27a7e5d Get rid of one calloc call and replace it with malloc 2017-08-13 06:14:54 +02:00
twinaphex a0cbb1ee43 Use malloc instead of calloc 2017-08-13 06:05:35 +02:00
Twinaphex 1666827ad4 Merge pull request #5289 from RobLoach/libui
Updates for libui
2017-08-13 06:02:51 +02:00
twinaphex 2558ca2fb6 Update CHANGES.md 2017-08-13 03:36:45 +02:00
Twinaphex 782b9eef0e Merge pull request #5290 from heuripedes/xmb-improv
More xmb improvements
2017-08-13 03:33:34 +02:00
Higor Eurípedes 950b77c0ca (xmb) Speed up xmb_list_insert() and xmb_deep_copy() a bit
This replaces calloc() and memcpy() calls with custom functions to
handle xmb_node_t allocation and copy optimized for the common case.
2017-08-12 22:30:22 -03:00
Higor Eurípedes 26a9648c4f (menu_animation) Detect when defrag is really needed 2017-08-12 22:30:22 -03:00
Higor Eurípedes c384f56e4f Speed up playlist reparse 2017-08-12 22:30:22 -03:00
Rob Loach 772c126f1e Merge branch 'master' of github.com:libretro/RetroArch into libui 2017-08-12 20:50:19 -04:00
Rob Loach 4177286dbb Add include directory for glib 2017-08-12 20:42:40 -04:00
twinaphex 4dd3d897dc Revert "Get rid of a ton of HAVE_SHADER_MANAGER ifdefs"
This reverts commit c4f7111aa3.
2017-08-13 02:08:33 +02:00
twinaphex c4f7111aa3 Get rid of a ton of HAVE_SHADER_MANAGER ifdefs 2017-08-13 02:04:57 +02:00
Rob Loach b0805d5e1d Update Makefile.common 2017-08-12 19:54:48 -04:00
Rob Loach 8ca5c7558f Restore libui_main 2017-08-12 19:54:31 -04:00
Rob Loach 45e823dec9 Update libui 2017-08-12 19:51:39 -04:00
twinaphex 51ca9825dd Cleanups 2017-08-13 00:55:47 +02:00
twinaphex cb2fd48bb6 Push some small optimizations to menu_cbs_left.c and menu_cbs_right.c
too
2017-08-13 00:45:20 +02:00
Rob Loach f4283f6de0 Add HAVE_LIBUI define 2017-08-12 18:43:16 -04:00
twinaphex a98e8bc915 Optimize this part 2017-08-13 00:39:11 +02:00
Higor Eurípedes 9f760af6c6 Menu improvements (#5288)
* (menu_animation) Stop KILL_BY_SUBJECT asap

* (xmb) Don't query mouse/pointer state so many times per frame
2017-08-12 22:53:56 +02:00
twinaphex 2f9ad9c3fa Update CHANGES.md 2017-08-12 22:07:49 +02:00
twinaphex ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
twinaphex f546020429 Silence more warnings with C89_BUILD 2017-08-12 18:06:48 +02:00
twinaphex 00412c9836 More C89_BUILD fixes 2017-08-12 18:02:39 +02:00
twinaphex 9c32d03c1e (Vulkan/Win32) C89_BUILD fixes 2017-08-12 17:56:30 +02:00
twinaphex 6611ccf3fa C89_BUILD fixes 2017-08-12 17:42:52 +02:00
twinaphex cfde480e82 Add some C89_BUILD rules 2017-08-12 17:41:34 +02:00
theheroGAC 39e72ae0f8 fix Other strings (#5286)
another update :)
2017-08-12 17:38:56 +02:00
Rob Loach 8bda6e8a3a Merge pull request #1 from Kivutar/favorites
Favorites
2017-08-12 11:31:51 -04:00
Jean-André Santoni f1ccd29e77 (XMB) Display the favorite icon for content 2017-08-12 17:27:31 +02:00
Jean-André Santoni d037546a13 (XMB) Display favorites tab, part 2 2017-08-12 17:10:14 +02:00
twinaphex 921418af03 Backport this regression fix for builds with no network support - this
should presumably restore 3DS performance according to danieljg
2017-08-12 16:47:13 +02:00
Jean-André Santoni 61cc899867 (XMB) Display the favorites tab, part 1 2017-08-12 16:37:20 +02:00
Rob Loach ae5535c425 Merge branch 'master' of github.com:libretro/RetroArch into libui 2017-08-12 10:16:37 -04:00
Rob Loach fc2637a696 Add to Favorites label 2017-08-12 10:04:12 -04:00
Rob Loach 80be260b68 Merge branch 'master' of github.com:libretro/RetroArch into favorites 2017-08-12 01:48:17 -04:00
twinaphex 74a22169ac Buildfixes 2017-08-11 21:37:00 +02:00
theheroGAC cb63584511 Update msg_hash_it.h (#5284) 2017-08-11 21:28:31 +02:00
theheroGAC e3015088c2 Update msg_hash_it.h (#5283) 2017-08-11 20:56:29 +02:00
twinaphex a443196726 Cut down on code duplication 2017-08-11 02:51:09 +02:00
twinaphex a5bb61684c Get rid of these conditionals 2017-08-11 02:30:23 +02:00
twinaphex dad0fcbbe8 Get rid of the conditionals 2017-08-11 01:20:57 +02:00
twinaphex 22139dc4a0 Turn menu_animation_ctx_tag into typedef 2017-08-11 01:16:21 +02:00
twinaphex 4e66ec28cb Some more truncation fixes 2017-08-10 23:19:54 +02:00
twinaphex 4a9c7384c7 Silence more format truncation warnings 2017-08-10 23:14:03 +02:00
twinaphex 29af83f8e3 Fix some format-truncation warnings 2017-08-10 23:07:27 +02:00
twinaphex 16f59aba96 Some C89_BUILD fixes 2017-08-10 21:38:57 +02:00
twinaphex edb70936ae Silence warning 2017-08-10 21:27:05 +02:00
twinaphex 7a490aa6d6 Use C-style comments 2017-08-10 21:25:30 +02:00
twinaphex 805c2ad529 Buildfixes 2017-08-10 21:22:30 +02:00
Brad Parker 5d12368c83 fix extern C usage for msvc2005 2017-08-10 11:42:47 -04:00
Brad Parker ff98730906 don't define UNICODE for msvc2005 2017-08-09 23:33:57 -04:00
Twinaphex abf95744ee Update (#5279) (#5280)
* Remove horizontal slide animation for XMB

* Add Horizontal Animation configuration

* add translations

* fix one translation error

* Add serial detection for Wii

* Cleanups

* Load Content Special should now produce a filebrowser

* Turn this off

* Revert "(GLUI) Don't select an entry when scrolling"

This reverts commit 9b1ab23aa1.

* (MUI) Attempt to fix the single click

* Revert "(MUI) Attempt to fix the single click"

This reverts commit d5d0f580b0.

* Bump up APK code

* fix windows buildbot urls to point to the correct folder

* (MUI) First batch of comments

* Start documenting menu_driver.h

* (MUI) More comments

* (MUI) More comments

* MOre documentation

* More documentation

* Document menu_event.c

* Document menu_cbs.c

* Update Russian translation

* (menu-setting.c) Allow Max Timing Skew to be set to 0

* Set buildbot dir for MSVC 2005 RetroArch build to MSVC 2005 cores

* Add "Delete Core" option to Core Information menu (#5132)

* msvc2005: add missing winmm dependency

* fire tv hack

* buildfix

* extra devices

* if swap override is not specified it should be false

* update CHANGES.md

* [WiiU] Rewrite exception handler

* Update CHANGES.md

* Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository)

* Update CHANGES.md

* First working prototype.

* Buildfix

* Shouldn't be part of images

* Add mod/s3m/xm support to audio mixer in GUI

* Get rid of logging

* Refactor this to be a bit safer with string lists

* Update CHANGES.md

* Buildfixes

* Some more build fixes

* gdi: enable OSD text drawing

* caca: enable OSD text drawing

* Proper fix for MOD support

* buildfix

* Fix some Coverity warnings

* Prevent dereference after null check warning by Coverity

* allow specifying libretro device and analog dpad mode on remap files

* allow saving analog dpad mode and libretro device to remap files

* remove remaps

* add new variables for "content dir"

* add menu settings

* allow savestates and savefiles to go into content dir via bool setting in addition of the empty string

* allow systemfiles into content dir via bool setting in addition of the empty string

* allow screenshots into content dir via bool setting in addition of the empty string

* make all the directories reseteable

* update win32 platform driver

* update android platform driver

* update CHANGES.md

* update CHANGES.md

* Updates

* Try to avoid direct initialization

* (Wii) Backport
https://github.com/SuperrSonic/RA-SS/commit/0574b91595a231e15bafa9f2778d1b9b14944ba6
- untested

* fix new android paths

* (GX) Buildfix

* (GX) Another buildfix

* add unicode-aware option for word_wrap (only needed for xmb)

* Update msg_hash_it.h

* Update msg_hash_it.h

* Update msg_hash_it.h

* (GX) Buildfix

* Get rid of some incompatible implicit declaration warnings

* Add encoding_utf to Salamander

* Get rid of some warnings

* Set PPU_CFLAGS

* (PS3) Fix Salamander

* Cleanup retro_dirent_is_dir

* Update msg_hash_it.h

Update italian language

* Missed break here

* Update CHANGES.md

* Update CHANGES.md

* Update CHANGES.md

* Update CHANGES.md

* Update CHANGES.md

* update CHANGES.md

* C89 buildfix

* (Localization) Update Dutch language

* Update CHANGES.md

* Some C89 buildfixes

* C89 buildfix

* C89 buildfix

* Some C89 buildfixes

* Buildfix

* (xmb) deep list copy - Use malloc instead of calloc

* Cleanup

* ps3: use python2 for pkg.py script

* ps3: copy data folder to dist-cores when ran

* fix #5257

* fix saving the libretro device in overrides

* msvc2005: use non-unicode stb font driver

* ps3: build pkgcrypt.dll and copy it to ps3py folder before running pkg.py

* forgot about mingw not defining _MSC_VER

* Add RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT

* Update CHANGES.md

* Bump up to 1.6.4

* Update imports.h

add additional imports  (semaphore)

* Added button press lightup on overlay.

input_overlay_add_inputs added, still need to implement dpad and analog visuals on overlay. Also still needs to be restructured so input_overlay_post_poll is only called once.

* use input_state instead of current_input->input_state.

* Moved input_overlay_add_inputs call out of input_driver.c, shortened arguments.

* reduce scope of input_overlay_add_inputs to file.

* Added analog overlay support to input_overlay_add_inputs.

* Fix MOD support not mixing core provided audio stream

* Add keyboard overlay support to input_overlay_add_inputs.

* Remove commented code in input_driver.c

* Cast ctype args to unsigned char

* Add option and menu setting for viewing inputs on overlay.

* Add support for buttons that are multiple inputs.

* Added sublabel to Show Inputs On Overlay

* Added option to change controller port to listen to for showing overlay input.

* msg_hash_it.h - fix build

* Update CHANGES.md

* Updates

* Updates

* Update msg_hash_it.h

* Update msg_hash_it.h

* (xmb) Improve responsiveness while browsing horizontally

* Try to be somewhat safer here in case of null pointer derefences

* (xmb) Fix segfault when entering certain lists

* (xmb) Defragment and shrink tween list after updates

* Add win32_get_video_output_size

* Add win32_get_video_output_prev

* Fix logic in win32_get_video_output_next

* Create win32_get_video_output_next

* Start filling in more resolution functionality for Windows

* emscripten: only fire keyup once, and don't wait so long to do so

* Don't hide 'Resolution' setting behind compile-time ifdefs anymore

* Start hooking up more resolution functions - not working properly yet

* Revert "Start hooking up more resolution functions - not working properly yet"

This reverts commit dccc9711d9.

* win32_common.cpp - style nits

* Convert win32_common.cpp to C - gets rid of all the extern "C"
references as well.
Note to bparker - DragAcceptFiles has a minimum dependency for WinXP,
might have to go through a function pointer there or have a
compilation-time ifdef

* Convert wgl_ctx into C - also take care of serious warning

* Convert gdi_ctx.cpp to C

* (Lakka) Fix Online Updater

* (dinput.c) Cleanups

* Cleanup

* Make DragAcceptFiles go through function pointer

* Go through DragAcceptFiles function pointer for ui_win32_window too

* (dinput) Buildfix

* update icons

* update icons

* update icons

* update banner

* d3d9: only use wide char on msvc if UNICODE is defined
2017-08-10 03:14:35 +02:00
Brad Parker 530d79f8e3 d3d9: only use wide char on msvc if UNICODE is defined 2017-08-09 18:25:45 -04:00
Twinaphex d557deb70d Merge pull request #5277 from fr500/master
update icons
2017-08-09 21:27:02 +02:00
radius d2f870a2a1 update banner 2017-08-09 13:13:59 -05:00
radius 23d9637dc0 update icons 2017-08-09 13:04:56 -05:00
radius 3310939983 update icons 2017-08-09 13:04:56 -05:00
radius 34236932a3 update icons 2017-08-09 13:04:55 -05:00
twinaphex 5101895cc9 (dinput) Buildfix 2017-08-09 16:53:06 +02:00
twinaphex dfd2c45454 Go through DragAcceptFiles function pointer for ui_win32_window too 2017-08-09 16:32:08 +02:00
twinaphex 2f832d145f Make DragAcceptFiles go through function pointer 2017-08-09 16:25:23 +02:00
twinaphex 4e49155147 Cleanup 2017-08-09 15:54:24 +02:00
twinaphex ee275c85d8 (dinput.c) Cleanups 2017-08-09 15:51:27 +02:00
twinaphex 795ae524e9 Convert gdi_ctx.cpp to C 2017-08-09 13:56:47 +02:00
twinaphex a4a027be67 Convert wgl_ctx into C - also take care of serious warning 2017-08-09 13:51:33 +02:00
twinaphex c3851d42e6 Convert win32_common.cpp to C - gets rid of all the extern "C"
references as well.
Note to bparker - DragAcceptFiles has a minimum dependency for WinXP,
might have to go through a function pointer there or have a
compilation-time ifdef
2017-08-09 13:39:14 +02:00
twinaphex 535dbe0aaa win32_common.cpp - style nits 2017-08-09 13:28:31 +02:00
Jean-André Santoni 05558697ca (Lakka) Fix Online Updater 2017-08-09 15:16:27 +02:00
twinaphex 3bac7cc7ef Revert "Start hooking up more resolution functions - not working properly yet"
This reverts commit dccc9711d9.
2017-08-09 11:19:27 +02:00
twinaphex dccc9711d9 Start hooking up more resolution functions - not working properly yet 2017-08-09 10:58:43 +02:00
twinaphex 365cfd22ee Don't hide 'Resolution' setting behind compile-time ifdefs anymore 2017-08-09 10:33:36 +02:00
twinaphex 9272d26269 Start filling in more resolution functionality for Windows 2017-08-09 04:17:32 +02:00
twinaphex cea3cab3f4 Create win32_get_video_output_next 2017-08-09 04:09:44 +02:00
twinaphex 97de6deb56 Fix logic in win32_get_video_output_next 2017-08-09 04:07:41 +02:00
twinaphex 1ecdbf4050 Add win32_get_video_output_prev 2017-08-09 03:53:19 +02:00
twinaphex b943060797 Add win32_get_video_output_size 2017-08-09 03:44:03 +02:00
twinaphex ca80f13b2b Try to be somewhat safer here in case of null pointer derefences 2017-08-09 02:42:19 +02:00
bparker06 3a5a2d9de6 emscripten: only fire keyup once, and don't wait so long to do so 2017-08-08 22:18:27 -04:00
Twinaphex aef66e3d9e Merge pull request #5273 from heuripedes/xmb-lists
XMB horizontal browsing tweaks
2017-08-09 04:12:03 +02:00
Higor Eurípedes 63c0cae326 (xmb) Defragment and shrink tween list after updates 2017-08-08 22:37:37 -03:00
Higor Eurípedes 8d358899df (xmb) Fix segfault when entering certain lists 2017-08-08 22:34:54 -03:00
Higor Eurípedes c0cb042998 (xmb) Improve responsiveness while browsing horizontally 2017-08-08 21:05:00 -03:00
Twinaphex a37f91c2a1 Merge pull request #5272 from theheroGAC/patch-5
Update msg_hash_it.h
2017-08-08 23:45:54 +02:00
theheroGAC ee76e54617 Update msg_hash_it.h 2017-08-08 20:49:55 +02:00
theheroGAC 3f3b30b5dc Update msg_hash_it.h 2017-08-08 19:18:40 +02:00
Twinaphex 988468f691 Merge pull request #5267 from rtissera/modmixfix
Fix MOD support not mixing core provided audio stream
2017-08-08 18:52:03 +02:00
twinaphex 3c758609b5 Updates 2017-08-08 18:51:01 +02:00
twinaphex e979eece1c Updates 2017-08-08 18:45:56 +02:00
twinaphex 383d810fd4 Update CHANGES.md 2017-08-08 17:45:27 +02:00
twinaphex 86a107afc9 msg_hash_it.h - fix build 2017-08-08 17:42:28 +02:00
Twinaphex d14fa0c8b9 Merge pull request #5269 from Denu8thell/overlay_controller_response
Overlay controller response
2017-08-08 19:41:33 +02:00
Twinaphex 060603b8d3 Merge pull request #5270 from theheroGAC/patch-5
Update msg_hash_it.h
2017-08-08 19:21:23 +02:00
denu8thell 5bece2cbcc Merge branch 'master' of https://github.com/libretro/RetroArch into overlay_controller_response 2017-08-08 09:57:50 -05:00
denu8thell c5b36320df Added option to change controller port to listen to for showing overlay input. 2017-08-08 09:56:27 -05:00
denu8thell c07380293e Added sublabel to Show Inputs On Overlay 2017-08-08 09:05:03 -05:00
denu8thell 8e69a348e6 Add support for buttons that are multiple inputs. 2017-08-08 07:49:02 -05:00
Twinaphex b0ad2c4a2b Merge pull request #5268 from ensra/master
Cast ctype args to unsigned char
2017-08-08 14:37:14 +02:00
denu8thell f0606d60d2 Add option and menu setting for viewing inputs on overlay. 2017-08-08 06:50:39 -05:00
ensra 6a36453f20 Cast ctype args to unsigned char 2017-08-08 12:21:48 +01:00
denu8thell 4ed715d0f3 Remove commented code in input_driver.c 2017-08-08 05:39:18 -05:00
denu8thell 23b2e4488a Add keyboard overlay support to input_overlay_add_inputs. 2017-08-08 05:32:34 -05:00
Romain Tisserand 5a85c53174 Fix MOD support not mixing core provided audio stream 2017-08-08 12:19:24 +02:00
denu8thell cc06b8b62e Added analog overlay support to input_overlay_add_inputs. 2017-08-08 05:10:44 -05:00
denu8thell 0df4186191 reduce scope of input_overlay_add_inputs to file. 2017-08-08 02:48:46 -05:00
denu8thell 4c31d41920 Moved input_overlay_add_inputs call out of input_driver.c, shortened arguments. 2017-08-08 02:31:26 -05:00
denu8thell 3d4e36455d use input_state instead of current_input->input_state. 2017-08-07 22:22:48 -05:00
denu8thell c882e64653 Added button press lightup on overlay.
input_overlay_add_inputs added, still need to implement dpad and analog visuals on overlay. Also still needs to be restructured so input_overlay_post_poll is only called once.
2017-08-07 21:59:05 -05:00
Twinaphex b6cd19a83c Merge pull request #5264 from r-type/master
Update imports.h (semaphore)
2017-08-07 23:38:10 +02:00
not6 10492c1ee7 Update imports.h
add additional imports  (semaphore)
2017-08-07 23:25:05 +02:00
twinaphex 08118cb445 Bump up to 1.6.4 2017-08-07 19:16:09 +02:00
twinaphex 7649164f51 Update CHANGES.md 2017-08-07 19:11:20 +02:00
twinaphex c7615fdf00 Add RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT 2017-08-07 18:06:03 +02:00
Brad Parker 6359fe44af forgot about mingw not defining _MSC_VER 2017-08-07 11:28:35 -04:00
Brad Parker 2e1ad9684a ps3: build pkgcrypt.dll and copy it to ps3py folder before running pkg.py 2017-08-07 11:23:05 -04:00
Brad Parker 09922f5ee7 msvc2005: use non-unicode stb font driver 2017-08-07 11:18:38 -04:00
Andrés 46552de0f6 Merge pull request #5259 from fr500/master
fix saving the libretro device in overrides
2017-08-06 22:41:15 -05:00
radius cfa0d74df9 fix saving the libretro device in overrides 2017-08-06 22:37:29 -05:00
Andrés b521236c3e Merge pull request #5258 from fr500/master
fix #5257
2017-08-06 20:03:01 -05:00
radius 7b09cd34db fix #5257 2017-08-06 20:02:17 -05:00
bparker06 5d2ab5bf82 ps3: copy data folder to dist-cores when ran 2017-08-06 20:45:13 -04:00
bparker06 bf72dafe5c ps3: use python2 for pkg.py script 2017-08-06 20:17:00 -04:00
twinaphex 2e7b4242f7 Cleanup 2017-08-07 01:48:21 +02:00
twinaphex 56733c6f18 (xmb) deep list copy - Use malloc instead of calloc 2017-08-07 00:14:37 +02:00
twinaphex 0afb629c81 Buildfix 2017-08-06 23:19:11 +02:00
twinaphex af477ff317 C89 buildfix 2017-08-06 17:11:13 +02:00
twinaphex 86dbcaf563 C89 buildfix 2017-08-06 17:09:30 +02:00
twinaphex ab936adf1c Some C89 buildfixes 2017-08-06 17:08:29 +02:00
twinaphex 7c1d3991f8 Some C89 buildfixes 2017-08-06 17:12:57 +02:00
twinaphex a550f83452 Update CHANGES.md 2017-08-06 16:56:40 +02:00
twinaphex 02db71f529 (Localization) Update Dutch language 2017-08-06 16:55:28 +02:00
twinaphex c426f68379 C89 buildfix 2017-08-06 16:41:09 +02:00
Brad Parker 8f616c13e4 update CHANGES.md 2017-08-06 10:40:28 -04:00
twinaphex 0bc4254ab1 Update CHANGES.md 2017-08-06 16:28:12 +02:00
twinaphex 2cd38297c2 Update CHANGES.md 2017-08-06 16:27:41 +02:00
twinaphex 5caabab2eb Update CHANGES.md 2017-08-06 16:25:32 +02:00
Twinaphex ceed309b19 Merge pull request #5199 from asakous/master
add translations
2017-08-06 16:29:50 +02:00
Twinaphex ba31285160 Merge pull request #5172 from RobLoach/horizontalperf
Allow Toggling the XMB Horizontal Animation
2017-08-06 16:08:59 +02:00
twinaphex b345a4b860 Update CHANGES.md 2017-08-06 16:02:03 +02:00
twinaphex 999fd0f120 Update CHANGES.md 2017-08-06 16:01:12 +02:00
Twinaphex 38b2f32dc0 Merge pull request #5256 from theheroGAC/patch-4
Update msg_hash_it.h
2017-08-06 16:06:15 +02:00
twinaphex c6379a7c62 Missed break here 2017-08-06 15:31:38 +02:00
theheroGAC c0e5f28498 Update msg_hash_it.h
Update italian language
2017-08-06 15:12:43 +02:00
twinaphex c7e6f19920 Cleanup retro_dirent_is_dir 2017-08-06 14:21:18 +02:00
twinaphex 7382a38485 (PS3) Fix Salamander 2017-08-06 14:12:09 +02:00
twinaphex 6d4d9aa1fb Set PPU_CFLAGS 2017-08-06 14:05:59 +02:00
twinaphex 912c7265e6 Get rid of some warnings 2017-08-06 14:03:09 +02:00
twinaphex e52e70aa5a Add encoding_utf to Salamander 2017-08-06 13:58:17 +02:00
twinaphex e3192ad3c5 Get rid of some incompatible implicit declaration warnings 2017-08-06 13:55:32 +02:00
twinaphex ba36055632 (GX) Buildfix 2017-08-06 13:43:01 +02:00
Twinaphex 1a7247c1bb Merge pull request #5247 from fr500/master
Input remapping improvements
2017-08-06 12:42:31 +02:00
Twinaphex 8c8334e5a5 Merge pull request #5255 from theheroGAC/patch-3
Update msg_hash_it.h
2017-08-06 12:42:16 +02:00
theheroGAC 5a4b5da68e Update msg_hash_it.h 2017-08-06 10:51:41 +02:00
theheroGAC ace3401042 Update msg_hash_it.h 2017-08-06 10:43:56 +02:00
theheroGAC 50ba42aa57 Update msg_hash_it.h 2017-08-06 10:35:34 +02:00
Brad Parker 6b369775cf add unicode-aware option for word_wrap (only needed for xmb) 2017-08-06 03:33:13 -04:00
Andrés 54ef8f1399 Merge branch 'master' into master 2017-08-06 02:06:19 -05:00
Twinaphex 99a8d2ec86 Merge pull request #5250 from fr500/content_dir
Content dir refactor
2017-08-06 06:05:46 +02:00
twinaphex 169aea5ae1 (GX) Another buildfix 2017-08-06 05:54:46 +02:00
twinaphex 740ad823ab (GX) Buildfix 2017-08-06 05:52:40 +02:00
Andrés c150b4f6dc Merge branch 'master' into content_dir 2017-08-05 21:59:05 -05:00
radius 4387dd7c15 fix new android paths 2017-08-05 21:56:52 -05:00
twinaphex 86f7972aa8 (Wii) Backport
https://github.com/SuperrSonic/RA-SS/commit/0574b91595a231e15bafa9f2778d1b9b14944ba6
- untested
2017-08-06 04:40:55 +02:00
twinaphex e259a8c63b Try to avoid direct initialization 2017-08-06 01:44:34 +02:00
twinaphex 944eb01fb4 Updates 2017-08-06 01:29:41 +02:00
Brad Parker a8d3b205ca update CHANGES.md 2017-08-05 20:06:11 +00:00
radius 27d9b04080 update CHANGES.md 2017-08-05 15:01:43 -05:00
radius 8bb3852944 update android platform driver 2017-08-05 14:52:16 -05:00
radius a17e23dc6c update win32 platform driver 2017-08-05 14:39:17 -05:00
radius 2cd552b760 make all the directories reseteable 2017-08-05 14:38:50 -05:00
radius cf8783644d allow screenshots into content dir via bool setting in addition of the empty string 2017-08-05 13:57:24 -05:00
radius a4192bf99b allow systemfiles into content dir via bool setting in addition of the empty string 2017-08-05 13:48:37 -05:00
radius 9858b94e87 allow savestates and savefiles to go into content dir via bool setting in addition of the empty string 2017-08-05 13:41:05 -05:00
radius 7af556e200 add menu settings 2017-08-05 13:14:26 -05:00
radius 70956dca6f add new variables for "content dir" 2017-08-05 12:31:58 -05:00
radius 2db79242c9 remove remaps 2017-08-05 11:21:07 -05:00
radius a973d5dc8a allow saving analog dpad mode and libretro device to remap files 2017-08-05 11:21:06 -05:00
radius 9862b75b4b allow specifying libretro device and analog dpad mode on remap files 2017-08-05 11:21:06 -05:00
twinaphex 32234b44d3 Prevent dereference after null check warning by Coverity 2017-08-05 16:42:28 +02:00
twinaphex 2aa095aa4b Fix some Coverity warnings 2017-08-05 16:24:33 +02:00
twinaphex 449a33cf17 buildfix 2017-08-05 15:24:15 +02:00
Twinaphex b671f68e00 Merge pull request #5248 from rtissera/modfix
Proper fix for MOD support buildfix
2017-08-05 12:20:52 +02:00
Romain Tisserand 05c7bdedbe Proper fix for MOD support 2017-08-05 12:00:20 +02:00
Rob Loach 9195eeb1e1 Add favorite enum 2017-08-04 23:05:54 -04:00
Rob Loach 2a7bb2def1 Add initial work on Favorites 2017-08-04 22:34:13 -04:00
Brad Parker b1904bcfa6 caca: enable OSD text drawing 2017-08-04 21:51:14 -04:00
Brad Parker c8e6a98651 gdi: enable OSD text drawing 2017-08-04 21:47:46 -04:00
twinaphex 24b3705fa1 Some more build fixes 2017-08-05 00:03:58 +02:00
twinaphex aa4d68760b Buildfixes 2017-08-04 23:53:38 +02:00
twinaphex 34af7f301d Update CHANGES.md 2017-08-04 21:19:22 +02:00
twinaphex 33f80371fc Refactor this to be a bit safer with string lists 2017-08-04 21:16:49 +02:00
twinaphex 7ea86f2b16 Get rid of logging 2017-08-04 21:08:42 +02:00
twinaphex 93eb7b349a Add mod/s3m/xm support to audio mixer in GUI 2017-08-04 21:08:02 +02:00
twinaphex 3de9bb9fe1 Shouldn't be part of images 2017-08-04 20:51:52 +02:00
twinaphex 70e741a70b Buildfix 2017-08-04 20:34:32 +02:00
Twinaphex d11b9e80b4 Merge pull request #5244 from rtissera/modsupport
Add MOD/S3M/XM support to audio mixer (libretro-common) through micromod/ibxm
2017-08-04 20:36:55 +02:00
Romain Tisserand d865c4cdcf First working prototype. 2017-08-04 16:09:53 +02:00
twinaphex e668d10a23 Update CHANGES.md 2017-08-04 15:08:28 +02:00
Romain Tisserand cbe2d9a941 Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository) 2017-08-04 15:05:29 +02:00
Twinaphex fb303a4d40 Merge pull request #5243 from QuarkTheAwesome/master
[WiiU] Rewrite exception handler
2017-08-04 14:59:34 +02:00
twinaphex 6f5220d774 Update CHANGES.md 2017-08-04 14:01:54 +02:00
Twinaphex eff03a1fd5 Merge pull request #5241 from fr500/master
fire stick & fire tv remote override hack
2017-08-04 13:49:17 +02:00
Ash 40a4a5a733 [WiiU] Rewrite exception handler 2017-08-04 21:30:49 +10:00
radius ceaeee33e0 update CHANGES.md 2017-08-04 01:40:36 -05:00
radius 3a3d9cd41e if swap override is not specified it should be false 2017-08-04 01:37:16 -05:00
radius f5360d0d82 extra devices 2017-08-04 01:17:32 -05:00
radius 2ef75cb300 buildfix 2017-08-04 01:11:31 -05:00
radius a6b24b4d42 fire tv hack 2017-08-04 01:09:05 -05:00
Brad Parker cacb69542c msvc2005: add missing winmm dependency 2017-08-03 23:17:56 -04:00
Twinaphex 15b05fb057 Merge pull request #5240 from dorkster/master
Add "Delete Core" option to Core Information menu (#5132)
2017-08-04 01:02:57 +02:00
Justin Jacobs 150bc81ee1 Add "Delete Core" option to Core Information menu (#5132) 2017-08-03 18:38:30 -04:00
Brad Parker 2c092a882e Set buildbot dir for MSVC 2005 RetroArch build to MSVC 2005 cores 2017-08-03 10:46:58 -04:00
Twinaphex 38b9ecb1b1 Merge pull request #5234 from Monroe88/patch-3
(menu-setting.c) Allow Max Timing Skew to be set to 0
2017-08-03 01:11:50 +02:00
Monroe88 3256af4ffe (menu-setting.c) Allow Max Timing Skew to be set to 0 2017-08-01 21:03:58 -05:00
Rob Loach 0996291d91 libui: Changes for LIBUI 2017-08-01 12:25:08 -04:00
Twinaphex d78ea9cffc Merge pull request #5232 from btimofeev/russian
Update Russian translation
2017-08-01 12:37:29 +02:00
Boris Timofeev 12c8a5d6a4 Update Russian translation 2017-08-01 13:00:04 +03:00
twinaphex 572f7bea2b Document menu_cbs.c 2017-07-31 18:40:23 +02:00
twinaphex 14d66749cc Document menu_event.c 2017-07-31 18:26:18 +02:00
twinaphex 3687a706b9 More documentation 2017-07-31 18:18:13 +02:00
twinaphex e7eac6004b MOre documentation 2017-07-31 17:58:28 +02:00
Jean-André Santoni 7a20875668 (MUI) More comments 2017-07-31 17:34:10 +02:00
Jean-André Santoni 3566c41b9c (MUI) More comments 2017-07-31 17:31:09 +02:00
twinaphex b8853b76a5 Start documenting menu_driver.h 2017-07-31 17:30:50 +02:00
Jean-André Santoni aed8ec7741 (MUI) First batch of comments 2017-07-31 17:06:12 +02:00
Brad Parker 387d087fcd fix windows buildbot urls to point to the correct folder 2017-07-31 09:58:54 -04:00
twinaphex d05dfcce78 Bump up APK code 2017-07-31 15:09:33 +02:00
twinaphex 8ed147e1f3 Revert "(MUI) Attempt to fix the single click"
This reverts commit d5d0f580b0.
2017-07-31 15:08:50 +02:00
Jean-André Santoni d5d0f580b0 (MUI) Attempt to fix the single click 2017-07-30 23:15:35 +02:00
twinaphex b5323b65b1 Revert "(GLUI) Don't select an entry when scrolling"
This reverts commit 9b1ab23aa1.
2017-07-30 16:35:17 +02:00
twinaphex 1b9ae701f5 Turn this off 2017-07-30 16:02:50 +02:00
twinaphex fad37a3bd1 Load Content Special should now produce a filebrowser 2017-07-30 15:58:46 +02:00
twinaphex 50b838d8ed Cleanups 2017-07-30 10:11:41 +02:00
Twinaphex a3b1b9f690 Merge pull request #5228 from RobLoach/feature/RobLoach/wii-serials
Add serial detection for Wii
2017-07-30 07:36:04 +02:00
Rob Loach bbb2a7d6f4 Add serial detection for Wii 2017-07-29 23:23:05 -04:00
Twinaphex c13c7d0df2 Merge pull request #5226 from Scheiker/tinyalsa
(TinyALSA) Use O_NONBLOCK in pcm_params_get.
2017-07-29 19:55:03 +02:00
Charlton Head a60049de90 (TinyALSA) Use O_NONBLOCK in pcm_params_get. 2017-07-29 12:44:55 -05:00
Twinaphex 6506b71776 Merge pull request #5223 from bparker06/country
netplay: show country next to lobby nickname
2017-07-29 05:34:41 +02:00
Brad Parker c072894a93 netplay: show country next to lobby nickname 2017-07-29 02:24:11 +00:00
Twinaphex 29d26f29a6 Merge pull request #5221 from casdevel/f5215
Add mice info log
2017-07-28 14:56:08 +02:00
Zoran Vuckovic 2a92b22128 Add mice info log 2017-07-28 13:03:26 +02:00
twinaphex 252dc1b130 Updates 2017-07-28 09:24:35 +02:00
Twinaphex aa455a7239 Update CHANGES.md 2017-07-28 09:09:39 +02:00
twinaphex adae0656eb Bump up versions 2017-07-28 06:42:02 +02:00
Twinaphex 2c587731bd Merge pull request #5218 from RobLoach/patch-15
Bump version to 1.6.2
2017-07-28 06:37:00 +02:00
Rob Loach 4d231d8c27 Bump version to 1.6.2 2017-07-28 00:21:10 -04:00
Twinaphex 266f7a3ad9 Merge pull request #5217 from RobLoach/filters-configure
Add "configure" to audio and video filters
2017-07-28 04:26:19 +02:00
Brad Parker 668ab0f0c4 update CHANGES.md 2017-07-28 13:26:33 -04:00
Rob Loach 2a0e34d66e Add ./configure to audio and video filters 2017-07-27 22:20:56 -04:00
twinaphex e517e9b96a Add file_stream_transforms 2017-07-27 09:09:37 +02:00
Twinaphex 99aed1723f Merge pull request #5213 from danieljg/master
Increase maximum sample rate in tinyalsa and implement check for upper and lower bounds
2017-07-27 06:21:26 +02:00
Daniel Jimenez ad542822ed Test upper & lower sample-rate bounds in tinyalsa 2017-07-26 21:02:09 -07:00
Daniel Jimenez 1b4d622bb4 Increase sample rate limit in tinyalsa 2017-07-26 20:20:17 -07:00
Brad Parker 9b71cdbb0f mbedtls: win32 buildfix 2017-07-26 09:18:17 -04:00
Brad Parker 02381aabef add SSL/TLS support 2017-07-26 09:18:17 -04:00
twinaphex 790cf1c27e C89_BUILD buildfix 2017-07-26 02:55:31 +02:00
twinaphex 507379406d Another build fix 2017-07-26 02:41:13 +02:00
twinaphex 82913126ef Buildfix + stub this out for now 2017-07-26 02:38:56 +02:00
Twinaphex 432e5c02de Merge pull request #5161 from fr500/subsystem
start implementing subsystem
2017-07-26 02:33:34 +02:00
Twinaphex 8f93a6f379 Merge pull request #5207 from RobLoach/patch-13
Add a make install command to the video filters
2017-07-25 19:39:47 +02:00
Twinaphex 106ae968a0 Merge pull request #5208 from RobLoach/patch-14
Add make install command for the audio filters
2017-07-25 19:39:39 +02:00
Twinaphex 2008327742 Merge pull request #5211 from RobLoach/patch-15
Fix integer wrap for Rewind Granularity in Menu
2017-07-25 19:39:20 +02:00
Rob Loach 2a8753d13c Fix integer wrap for Rewind Granularity in Menu
Fixes #5210
2017-07-25 12:33:41 -04:00
Rob Loach afa01c5421 Add make install command for the audio filters 2017-07-25 09:19:51 -04:00
Rob Loach 4f4ef6e815 Add a make install command to the video filters 2017-07-25 09:12:37 -04:00
Andrés 6f637df360 Merge pull request #5204 from fr500/master
build fix for platforms without threads
2017-07-24 21:25:26 -05:00
radius b64fe2adc2 build fix for platforms without threads 2017-07-24 21:24:22 -05:00
Twinaphex 1b8eb669d8 Merge pull request #5203 from fr500/master
add retroarch version to lan announcement
2017-07-25 04:16:31 +02:00
radius 84e0251a86 add retroarch version to lan announcement 2017-07-24 21:13:28 -05:00
Twinaphex a22062f4f9 Merge pull request #5160 from fr500/master
misc updates
2017-07-25 03:57:34 +02:00
radius 32525ea0d3 rename MITM with Relay 2017-07-24 20:54:33 -05:00
radius d560660bdc add room type in the title 2017-07-24 20:52:27 -05:00
radius f7f613a244 android buildfix 2017-07-24 20:13:53 -05:00
radius fcbcfab3d9 disable SRAM autosave while netplay is underway 2017-07-24 20:13:53 -05:00
radius c2882164f9 reenable rewind if the user disables netplay 2017-07-24 20:13:53 -05:00
radius c101b4ccb3 netplay tweaks: disable rewind 2017-07-24 20:13:53 -05:00
radius d889f594a3 small fixes 2017-07-24 20:13:53 -05:00
radius e09075dc25 Add RetroArch version and use different icons for different room types 2017-07-24 20:13:52 -05:00
radius b8bbf77196 update changelog again 2017-07-24 20:13:52 -05:00
radius 6804540635 improve logging 2017-07-24 20:13:52 -05:00
radius 08621cbd20 Update changelog 2017-07-24 20:13:51 -05:00
Twinaphex b35fdee119 Merge pull request #5200 from reztek/master
Update msg_hash_pt_br.h
2017-07-24 23:37:11 +02:00
Adolfo Ketzer 826a3eff46 Update msg_hash_pt_br.h 2017-07-24 15:20:59 -03:00
Matthew Wang 9c6b6ee4f0 fix one translation error 2017-07-24 17:20:37 +08:00
Matthew Wang 24ae754901 add translations 2017-07-24 17:14:48 +08:00
radius dcd71b403f add RetroArch version to the netplay announcement 2017-07-24 06:14:34 +02:00
twinaphex cfc7f4c8c7 Cleanups 2017-07-23 19:46:11 +02:00
twinaphex 58233137b0 (WASAPI) Cleanups 2017-07-23 07:55:24 +01:00
twinaphex 70e85ad719 Buildfix 2017-07-23 07:45:57 +01:00
twinaphex f5379815da Add function prototype 2017-07-23 07:43:42 +01:00
twinaphex 2a4c857df9 Update CHANGES.md 2017-07-23 07:02:55 +01:00
Brad Parker df09b0dc9b hook up traditional chinese translation to GUI, add utf8 BOM for msvc 2017-07-22 23:59:47 -04:00
asako a02cade1f2 add traditional Chinese language files (#5196)
* add traditional Chinese language ,basically convert from simplified Chinese with few term adjustment

* translate few term
2017-07-22 23:51:25 -04:00
Brad Parker 12ae59a197 freetype: better way to determine max_width/height, fixes buffer overflow with alternate OSD fonts 2017-07-22 22:21:26 -04:00
Brad Parker b9036e26a7 fix buffer overflow 2017-07-22 16:08:05 -04:00
Twinaphex 093c1c5a12 Merge pull request #5195 from yoshisuga/fix_xcode_build_phases
[iOS] Fix xcode build process to code sign the cores before copying the resources
2017-07-22 20:45:51 +02:00
Yoshi Sugawara e66c2d937a fix xcode build to codesign the cores before copying the resources 2017-07-22 08:20:16 -10:00
Yoshi Sugawara d3d9229f1d fix xcode build to codesign the cores before copying the resources 2017-07-22 08:17:04 -10:00
twinaphex 43c42c28e6 Cleanup font_renderer_create_atlas 2017-07-22 18:46:33 +01:00
Twinaphex 69c05cd7b4 Merge pull request #5194 from yoshisuga/ios_fix_texture_storage_capability
[iOS] Fix rendering for some cores (black screen issue)
2017-07-22 05:36:58 +02:00
Yoshi Sugawara c1ce224bd7 GL_CAPS_TEX_STORAGE_EXT not working/supported on iOS, so disabling 2017-07-21 17:19:52 -10:00
radius b14593081d start implementing subsystem 2017-07-21 19:06:06 -05:00
Twinaphex 6ea0eae4bb Merge pull request #5192 from yoshisuga/ios10_opengl_fix
The BGRA8888 gl extension is not working in iOS 10 and 11; report cap…
2017-07-21 07:27:15 +02:00
Yoshi Sugawara 4b29c9dcad Returning false for the BGRA8888 opengl extension for all iOS devices 2017-07-20 19:13:18 -10:00
Yoshi Sugawara 15be2d6b34 The BGRA8888 gl extension is not working in iOS 10 and 11; report capability as false to get rendering the screen working again for cores that output in the BGRA8888 pixel format (mednafen_psx, nestopia, others?) 2017-07-20 19:06:32 -10:00
twinaphex 9fe27117f2 Revert "(iOS) Take this out - see if it solves our issues"
This reverts commit 1cf6f2f20f.
2017-07-21 05:24:41 +01:00
Twinaphex 75bdde358a Merge pull request #5189 from meleu/patch-6
CHANGES.md: added CHEEVOS changes
2017-07-20 14:33:44 +02:00
meleu 8a3567ab61 CHANGES.md: added CHEEVOS changes 2017-07-20 08:54:53 -03:00
twinaphex 058dc172c7 Update 2017-07-20 04:37:19 +01:00
twinaphex 6bf26dc420 Update libretro-common 2017-07-20 04:36:38 +01:00
twinaphex 1cf6f2f20f (iOS) Take this out - see if it solves our issues 2017-07-19 18:42:59 +01:00
twinaphex bcaa24cf7b Add this check back in 2017-07-19 17:49:55 +01:00
Brad Parker ecfb0dda43 update JP translation 2017-07-19 10:55:25 -04:00
Brad Parker 3c4f13e9f5 msvc2005: add directx sdk include/lib paths to project file (msbuild is ignoring INCLUDE/LIB for some reason) 2017-07-18 22:30:10 +00:00
Brad Parker 2211f4391c msvc2005: add Platform SDK include dir to project file 2017-07-18 20:25:48 +00:00
Twinaphex 730f8d8996 Merge pull request #5184 from casdevel/f5162
Disable keyboard input and restrict mouse input in some cases
2017-07-18 03:09:44 +01:00
Zoran Vuckovic aa99f4f5ba Disable keyboard input and restrict mouse input in some cases 2017-07-18 01:16:48 +02:00
Jean-André Santoni d2cdc97e8f Don't reinit the audio driver when audio device is switched for now. It can break the setting UI. 2017-07-16 20:48:57 +02:00
Twinaphex b75bb07329 Merge pull request #5171 from RobLoach/patch-12
Fix RETRO_ENVIRONMENT_GET_LOG_INTERFACE docs
2017-07-14 21:04:49 +01:00
Rob Loach 7d71746b21 Add Horizontal Animation configuration 2017-07-14 15:11:27 -04:00
Rob Loach 24107229fc Remove horizontal slide animation for XMB 2017-07-14 14:49:41 -04:00
Rob Loach 63d36f658d Fix RETRO_ENVIRONMENT_GET_LOG_INTERFACE docs 2017-07-14 14:40:27 -04:00
Jean-André Santoni 9b1ab23aa1 (GLUI) Don't select an entry when scrolling 2017-07-13 18:00:02 +02:00
Twinaphex c800477bc8 Merge pull request #5164 from Grotke/fix-driver-wrap-left
Fix driver menu left wrap
2017-07-13 01:52:12 +01:00
Joseph Montgomery 28ef2d6487 Fix driver menu left wrap
Driver options in Settings/Driver should wrap left now.
2017-07-11 21:00:44 -04:00
Twinaphex 56e63d4460 Merge pull request #5158 from leiradel/master
Fix GBC cheevos using addresses in the Echo RAM
2017-07-09 20:26:54 +02:00
Andre Leiradella 2444d8b39c Fix GBC cheevos using addresses in the Echo RAM 2017-07-09 18:32:53 +01:00
Twinaphex bcb97caa4e Merge pull request #5157 from Grotke/fix-uint-wrap-left
Fix uint menu options wrap left
2017-07-09 11:45:40 +02:00
Joseph Montgomery a7e19107ce Fix uint menu options wrap left
Uint menu options should wrap left/down now. This includes options like audio
latency, user language, input max users, etc.
2017-07-09 00:55:31 -04:00
Brad Parker 5733d8ebd5 move content list builder into scanner task with progress, fixes menu freeze with large playlists 2017-07-09 00:44:02 -04:00
Andre Leiradella 3a590f126d Increased size limit to compute hashes because of 64 Mb N64 games 2017-07-09 01:15:21 +01:00
twinaphex 434bec8775 No longer bake in tinyalsa for android 2017-07-09 00:14:46 +02:00
Twinaphex 913eab54ff Merge pull request #5156 from leiradel/master
Added support for N64 cheevos
2017-07-09 00:07:10 +02:00
Andre Leiradella c3650f077a Removed the lazy initialization stuff, it's not needed anymore 2017-07-08 23:05:35 +01:00
Brad Parker e067dac2a4 fix keyboard regression with mupen cores 2017-07-08 17:39:29 -04:00
Andre Leiradella a62052eb0a Added support for N64 cheevos 2017-07-08 21:15:04 +01:00
Andre Leiradella abd22ae770 Dump delay to wait for Mupen64 to initialize 2017-07-08 00:48:26 +01:00
Andre Leiradella 5e2e586f6e Support N64 cheevos 2017-07-07 23:12:38 +01:00
Brad Parker 26711ec0d5 update JP translation 2017-07-07 14:09:14 -04:00
twinaphex 6ad1a5cc8f Update CHANGES.md 2017-07-06 12:59:03 +02:00
Francisco José García García e73a7c24e2 Merge pull request #5152 from meleu/patch-3
adding cheevos support to Vita port
2017-07-06 12:21:23 +02:00
meleu e247867bd7 adding cheevos support to Vita port
Tested with fceumm and the cheevos worked just fine.
Thanks for @frangarcj for the instructions on how to compile for Vita.
Fixes #4752
2017-07-06 07:19:17 -03:00
twinaphex dc521b42d1 Cleanup 2017-07-05 11:55:17 +02:00
Twinaphex 525c8f7c8e Merge pull request #5147 from reztek/master
Added entries for CHEEVOS_VERBOSE_ENABLE
2017-07-05 06:03:50 +02:00
Twinaphex 633cadcde7 Merge pull request #5150 from RobLoach/log-clean
Clean up the log output
2017-07-05 06:02:46 +02:00
Rob Loach 912068f850 Clean up the log output
References #1385
2017-07-04 21:46:22 -04:00
Adolfo Ketzer 2ce1dbcf02 Add files via upload 2017-07-04 12:27:47 -03:00
twinaphex 3a141cb891 Create retro_dirent_include_hidden 2017-07-04 04:09:45 +02:00
twinaphex 2fda0b7e66 Simplify retro_dirent 2017-07-04 03:30:53 +02:00
Twinaphex 0dc0cc5bf0 Merge pull request #5145 from meleu/patch-2
small fix on number of unlocked cheevos message
2017-07-04 00:35:47 +02:00
meleu b4902e7df5 small fix on number of unlocked cheevos message
The previous version was showing the number of **locked** cheevos.
2017-07-03 17:16:39 -03:00
twinaphex 95495cbf62 Update 2017-07-03 20:19:53 +02:00
twinaphex 87c94982c2 (libui) Add more logging 2017-07-03 20:19:20 +02:00
twinaphex e5d930ae0a Add more logging 2017-07-03 20:17:35 +02:00
twinaphex ff3a0d9a3c Add more logs 2017-07-03 20:13:38 +02:00
twinaphex 2aa004a1ce Update with more logs 2017-07-03 20:11:38 +02:00
twinaphex 344a4099eb Add more logs 2017-07-03 20:09:18 +02:00
twinaphex c2a4fa83e8 Add logs 2017-07-03 20:07:23 +02:00
twinaphex 15b1bb40a4 Add log 2017-07-03 20:05:15 +02:00
twinaphex e2d8771baf Add log message 2017-07-03 20:03:49 +02:00
twinaphex 790fcd2264 Add test for libui 2017-07-03 09:45:09 +02:00
twinaphex c576faae0c Cleanup 2017-07-03 09:34:12 +02:00
twinaphex 760fee18dd (libui) Update comments 2017-07-03 09:33:29 +02:00
twinaphex 1521a8dd38 Try to do a GetProcAddress to grab the function pointer to the
function
2017-07-03 09:20:37 +02:00
twinaphex c9b88fa1ab Buildfix 2017-07-03 08:57:26 +02:00
twinaphex 708596ba84 Call dylib_free at end of WGL context destroy function 2017-07-03 08:56:17 +02:00
twinaphex d27252daed Add -lusp10 2017-07-03 08:44:59 +02:00
twinaphex 9d91a38602 Add -ld2dl -ldwrite for libui/Win32 2017-07-03 08:43:42 +02:00
twinaphex 22dee03c65 Add -luxtheme for libui/Win32 2017-07-03 08:41:11 +02:00
twinaphex 4eb0f21b8f Get rid of DllMain 2017-07-03 08:36:43 +02:00
twinaphex 21cb98e3fb Add Darwin rules 2017-07-03 08:32:36 +02:00
twinaphex 8a618f8e95 Update libui 2017-07-03 08:26:43 +02:00
twinaphex 1d2b5fb534 Add winextra.h 2017-07-03 08:26:22 +02:00
Twinaphex f6ca13b658 Merge pull request #5140 from meleu/patch-2
added cheevos_verbose_enable to Achievements menu
2017-07-03 07:55:52 +02:00
twinaphex f8397a17c3 (deps/libui) Buildfix 2017-07-03 07:29:34 +02:00
twinaphex 49753a7385 Buildfix 2017-07-03 07:27:09 +02:00
twinaphex abba2f387e (deps/libui) Cleanups 2017-07-03 07:26:10 +02:00
twinaphex 39b1e43cbc Add win32 rules 2017-07-03 07:19:12 +02:00
twinaphex aed74a008c Add makefile rules 2017-07-03 07:10:23 +02:00
twinaphex 2a6ffd9c3b Add deps/libui 2017-07-03 06:34:21 +02:00
twinaphex ffc393cafc Get rid of unused variables 2017-07-02 20:58:32 +02:00
twinaphex 260f9532e9 Set buildbot dir for MSVC 2010 RetroArch build to MSVC 2010 cores 2017-07-02 20:45:15 +02:00
Twinaphex 22eb2f8f3b Merge pull request #5144 from Scheiker/tinyalsa
(tinyalsa) Fix pcm_can_pause.
2017-07-02 20:33:41 +02:00
Charlton Head 933627353b (tinyalsa) Fix pcm_can_pause. 2017-07-02 13:09:34 -05:00
Twinaphex 5ac0141a9a Merge pull request #5141 from bonzini/id-input-key
add support for remote control devices and other ID_INPUT_KEY devices
2017-07-02 16:32:27 +02:00
Paolo Bonzini d1dc2e9670 add support for remote control devices and other ID_INPUT_KEY devices
* the remote control presents itself as ID_INPUT_KEY, not
ID_INPUT_KEYBOARD.  However, ID_INPUT_KEYBOARD is a subset of
ID_INPUT_KEY.

* the remote control lacks the backspace and enter keys, which are hard
coded in RetroArch. It has "back" and "ok" instead, so map those to
RETROK_BACKSPACE and RETROK_ENTER as well.

Remote controls also have no ESC key, but that one is customizable
and I used the Power key of the remote (which already has a mapping
to RETROK_POWER).

The functionality provided is really the bare minimum, but it is enough
to teach a kid "press the power button here to watch TV"; compared to
pressing L1+R1+START+SELECT and navigating to the RetroArch's "quit"
menu item, that hopefully has more chances of success.
2017-07-02 10:50:00 +02:00
meleu 3c07209a1a added cheevos_verbose_enable to Achievements menu 2017-07-02 04:59:39 -03:00
meleu e9d8525e29 show login info only after a RA login procedure
The previous logic shows login info every time a game is launched.
2017-07-02 08:38:44 +01:00
Twinaphex b4b3887a1a Merge pull request #5138 from meleu/patch-1
show useful OSD messages to cheevos users after launching a game
2017-07-02 05:53:19 +02:00
meleu 58de712b77 show useful OSD messages to cheevos users after launching a game 2017-07-01 23:20:44 -03:00
Twinaphex fb33dcf17b Merge pull request #5136 from rossato/master
Fall back to IPv4 when IPv6 connections fail
2017-07-01 20:03:22 +02:00
Ken edc64991f3 Fall back to IPv4 when IPv6 connections fail 2017-07-01 08:21:09 -04:00
Twinaphex 3e2c713893 Merge pull request #5134 from Scheiker/tinyalsa
(tinyalsa) Add pcm_pause.
2017-07-01 05:41:06 +02:00
Charlton Head 645bae4931 (tinyalsa) Add pcm_pause. 2017-06-30 22:28:33 -05:00
twinaphex 60296c0b7d Improve logs some more 2017-07-01 04:37:32 +02:00
Twinaphex 6995154a9a Merge pull request #5133 from fr500/master
Fix #5091
2017-07-01 04:35:59 +02:00
twinaphex e9f9702a2d (playlist.c) Don't expose struct details to outside 2017-07-01 03:38:36 +02:00
radius 529ecf1e36 fix #5091 2017-06-30 20:23:20 -05:00
Twinaphex 95f4910a94 Merge pull request #5131 from sergiobenrocha2/master
Disable Core Updater in playlists too, if menu_show_core_updater == f…
2017-07-01 03:18:40 +02:00
radius 0a7968761f improve logging 2017-06-30 20:05:30 -05:00
Sérgio Benjamim 4293e5b334 Disable Core Updater in playlists too, if menu_show_core_updater == false 2017-06-30 19:59:56 -03:00
twinaphex 5636b0fdd6 playlist.c - cleanup 2017-06-30 20:17:34 +02:00
twinaphex c9a9880a36 Update Downloads Title label 2017-06-29 02:19:25 +02:00
twinaphex fd11190e9d Fix CXX_BUILD 2017-06-28 18:04:07 +02:00
twinaphex fe829e5eb0 Fix C89_BUILD 2017-06-28 18:01:04 +02:00
Twinaphex bec00d986c Merge pull request #5126 from Scheiker/tinyalsa
(tinyalsa) Calculate initial latency.
2017-06-28 17:57:01 +02:00
Charlton Head 768dbb5210 (tinyalsa) Calculate initial latency. 2017-06-28 10:41:47 -05:00
Twinaphex 626b8b5dae Merge pull request #5124 from reztek/pt-br-translation
pt-br translation corrections and formatting fixes
2017-06-28 16:27:01 +02:00
Adolfo Ketzer 5de9ba0bc2 Add files via upload 2017-06-28 09:02:49 -03:00
twinaphex 4813019c58 Cleanup 2017-06-28 07:53:05 +02:00
twinaphex 0c7f209e65 Update CHANGES.md 2017-06-28 07:20:06 +02:00
Twinaphex ccd5dec266 Merge pull request #5122 from Scheiker/tinyalsa
(tinyalsa) Big endian support.
2017-06-28 07:19:11 +02:00
Charlton Head 5ba36ad3a1 (tinyalsa) Big endian support. 2017-06-28 00:17:23 -05:00
twinaphex 36f700927e Silence some more ioctl coverity warnings 2017-06-28 07:00:28 +02:00
twinaphex fa8db9b4d2 Silence another Coverity warning 2017-06-28 06:59:00 +02:00
twinaphex 39679ccdce (oss.c) Silence some Coverity warnings 2017-06-28 06:58:01 +02:00
twinaphex 63d2e543af Don't try to redefine WIN32_LEAN_AND_MEAN if already defined 2017-06-28 06:44:17 +02:00
Twinaphex 540fdf358c Merge pull request #5121 from Scheiker/tinyalsa
(tinyalsa) Add error handling for sample rate.
2017-06-28 06:43:20 +02:00
twinaphex 25c18bb3ce (config_file.c) Cleanups 2017-06-28 06:41:58 +02:00
twinaphex 17d699c75b Cleanups 2017-06-28 06:26:56 +02:00
twinaphex 8fbcf34e02 Cleanup config_file.c 2017-06-28 06:25:32 +02:00
Charlton Head 175aaadb0d (tinyalsa) Add error handling for sample rate. 2017-06-27 23:14:55 -05:00
twinaphex b4173ee0b4 Add pspkernel.h 2017-06-28 06:13:33 +02:00
twinaphex e58eee37bc Cleanups 2017-06-28 05:44:59 +02:00
twinaphex 7c41e298a2 Update libretro-common 2017-06-28 05:34:29 +02:00
Twinaphex d561c7ff2d Revert "Don't show this warning when HAVE_SHADER_PIPELINE is not defined"
This reverts commit 431f1b4b7f.
2017-06-28 05:02:31 +02:00
Twinaphex 431f1b4b7f Don't show this warning when HAVE_SHADER_PIPELINE is not defined 2017-06-28 05:01:55 +02:00
twinaphex ddb4867c52 (file_path.c) Cleanups 2017-06-28 04:51:58 +02:00
twinaphex e1041030a2 Get rid of stdstring.h dependency for file_path.c 2017-06-28 04:44:33 +02:00
twinaphex b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex 50b07ad8c4 Move retro_le to archive_file_zlib.c 2017-06-28 04:20:52 +02:00
twinaphex ba71dda1b2 Stub out this message 2017-06-27 18:19:26 +02:00
Twinaphex be98b0ea0b Merge pull request #5117 from Scheiker/tinyalsa
(tinyalsa) open with O_NONBLOCK
2017-06-27 18:16:13 +02:00
Charlton Head 7cda786906 (tinyalsa) open with O_NONBLOCK 2017-06-27 10:39:02 -05:00
twinaphex 03ee897ae2 Try implementing core context version of XMB ribbon 2017-06-27 06:31:18 +02:00
Twinaphex c16bb5ff5e (Cocoa) Buildfix 2017-06-27 06:14:13 +02:00
twinaphex c1c5ebf5f6 (Cocoa) Start implementing core context hooks 2017-06-27 06:11:08 +02:00
twinaphex bfe8a8d48a (tinyalsa) Remove oops function 2017-06-27 05:07:58 +02:00
twinaphex 2127f5202b (tinyalsa) Fix memory leak 2017-06-27 05:01:55 +02:00
Twinaphex e3e41e433e Merge pull request #5115 from Scheiker/tinyalsa
(tinyalsa) Variable latency support.
2017-06-27 02:15:52 +02:00
Charlton Head 8b972a8d82 (tinyalsa) Variable latency support. 2017-06-26 19:08:22 -05:00
twinaphex 94af3addd0 Update cocoa_gl_ctx.m 2017-06-26 07:23:04 +02:00
twinaphex f5a12d63cc (Cocoa) Try to support Core GL 3.1/3.2/3.3 and 4.1 on OSX 10.7 and
10.10 respectively
2017-06-26 07:16:41 +02:00
twinaphex 688414c5bb Get rid of some retro_assert usage 2017-06-26 05:38:51 +02:00
twinaphex d3868cc06f Get rid of retro_assert usage in file_path.c 2017-06-26 05:33:47 +02:00
twinaphex 20e7ac4280 Buildfix 2017-06-26 03:50:34 +02:00
twinaphex 411ade7fb9 Mingw buildfix 2017-06-26 03:47:47 +02:00
Twinaphex 6bbe74d260 Merge pull request #5110 from gouchi/master
Typo
2017-06-25 21:00:44 +02:00
Twinaphex ff3a750e71 Merge pull request #5109 from Scheiker/tinyalsa
(tinyalsa) Allow changing device.
2017-06-25 20:59:18 +02:00
gouchi 721a8f6d47 Typo 2017-06-25 20:56:58 +02:00
Charlton Head 0ece49df50 (tinyalsa) Allow changing device. 2017-06-25 13:37:27 -05:00
Twinaphex c444659683 Merge pull request #5107 from reztek/pt-br-translation
Fix mistake
2017-06-25 14:14:55 +02:00
Adolfo Ketzer 84e799fd09 Add files via upload 2017-06-25 07:17:06 -03:00
twinaphex e1392b0fd4 (tinyalsa) Get rid of this variable 2017-06-25 07:08:09 +02:00
Twinaphex e34dc17859 Merge pull request #5106 from Scheiker/tinyalsa
Remove extra error handling in tinyalsa_write for now
2017-06-25 06:55:28 +02:00
Charlton Head 15ca6c9507 remove extra error handling in tinyalsa_write for now 2017-06-24 23:42:36 -05:00
twinaphex 56f0bc2dcc Cleanups to pcm_wait and pcm_sync_ptr 2017-06-25 04:54:28 +02:00
twinaphex fc8392d1e7 (tinyalsa) Tiny cleanups 2017-06-25 04:28:19 +02:00
twinaphex 9a382ce6f4 (tinyalsa) Rewrite pcm_wait slightly 2017-06-25 04:24:06 +02:00
twinaphex 8487966c0b (tinyalsa) Slightly rearrange pcm_writei 2017-06-25 04:18:05 +02:00
twinaphex 97063701f8 (tinyalsa) Buildfix 2017-06-25 04:11:11 +02:00
twinaphex b74b0ceed5 CXX_BUILD fixes 2017-06-25 04:08:38 +02:00
twinaphex 5d1cfc47cc C89_BUILD fixes 2017-06-25 04:05:34 +02:00
twinaphex aaa590c817 (tinyalsa) No longer a header dependency on sound/asound.h
(tinyalsa) Try to bake it in for android
2017-06-25 02:06:37 +02:00
twinaphex 57514668f3 Revert "Update"
This reverts commit af3b2f22ec.
2017-06-24 23:15:16 +02:00
twinaphex af3b2f22ec Update 2017-06-24 23:05:29 +02:00
twinaphex 737adeabe7 Style nit 2017-06-24 22:58:06 +02:00
twinaphex 33c96bf6f2 This crashes 2017-06-24 22:09:18 +02:00
twinaphex 69061352a7 Comment functions out for now which remain unused 2017-06-24 21:57:45 +02:00
twinaphex 38e5d062e8 Merge tinyalsa pcm into audio/drivers/tinyalsa.c - now single-file 2017-06-24 21:48:43 +02:00
twinaphex 0aa4edafcf Style nits 2017-06-24 21:28:21 +02:00
twinaphex 57c20bdee7 Try making driver a bit more full-featured 2017-06-24 21:23:49 +02:00
twinaphex b7666b56d1 (tinyalsa) Add early return 2017-06-24 21:08:48 +02:00
Twinaphex 89b345e262 Merge pull request #5104 from reztek/pt-br-translation
More translation goodies
2017-06-24 21:01:48 +02:00
Adolfo Ketzer b661466516 More translation goodies 2017-06-24 15:42:31 -03:00
Twinaphex 505d45fdc7 Merge pull request #5103 from Scheiker/tinyalsa
TinyALSA change pcm_config
2017-06-24 19:49:34 +02:00
Charlton Head 64cd82ceb2 TinyALSA change pcm_config 2017-06-24 12:42:53 -05:00
twinaphex aec2dcb62a (tinyalsa) silence warnings 2017-06-24 16:05:57 +02:00
Twinaphex bc64ad7774 Merge pull request #5099 from Scheiker/tinyalsa
TinyALSA support
2017-06-24 04:44:42 +02:00
Charlton Head 02fb4cf718 quick TinyALSA build fixes... 2017-06-23 21:22:35 -05:00
Charlton Head 4ad5f67663 TinyALSA support 2017-06-23 20:44:00 -05:00
Twinaphex e7d623f971 Merge pull request #5093 from libretro/revert-5076-master
Revert "udev input: support controlling the menu with a TV remote control"
2017-06-22 20:53:13 +02:00
Twinaphex 5c5c5ecbdf Revert "udev input: support controlling the menu with a TV remote control" 2017-06-22 20:53:07 +02:00
Twinaphex 379546207f Merge pull request #5090 from reztek/pt-br-translation
pt-br translation total remake
2017-06-22 19:18:13 +02:00
Adolfo Ketzer 091eff9879 Add files via upload 2017-06-22 10:36:53 -03:00
Jean-André Santoni 98beb5d64c Hide the wifi stuff if HAVE_LAKKA is undefined 2017-06-22 13:35:56 +02:00
twinaphex 681351c581 Bump up to 1.6.1 2017-06-22 04:10:15 +02:00
Twinaphex ffa9ddeec2 Merge pull request #5088 from RobLoach/patch-13
Use GLOBAL_CONFIG_DIR for the skeleton config path
2017-06-22 01:48:23 +02:00
Rob Loach 7b57696a51 Use GLOBAL_CONFIG_DIR for the skeleton config path
This saves us a compilation #if, and allows changing the `GLOBAL_CONFIG_DIR` during compilation if so desired.
2017-06-21 19:28:40 -04:00
Twinaphex 8068bcccbe Merge pull request #5076 from bonzini/master
udev input: support controlling the menu with a TV remote control
2017-06-21 23:35:22 +02:00
Twinaphex 59bfe30214 Merge pull request #5085 from RobLoach/feature/RobLoach/hide-hidden-files
Disable "Show Hidden Files" by default
2017-06-21 18:51:42 +02:00
Rob Loach 37c0cf50fd Disable showing hidden files by default 2017-06-21 10:46:32 -04:00
Twinaphex fcc3260341 Merge pull request #5082 from RobLoach/patch-12
Add input_driver to config.def.h
2017-06-21 14:51:18 +02:00
Jean-André Santoni 736defed49 Flag some settings with LAKKA_ADVANCED 2017-06-21 14:28:15 +02:00
Jean-André Santoni 7202d38c57 Adopt the default UI settings organization in Lakka 2017-06-21 14:25:01 +02:00
Jean-André Santoni e08089de48 Fix Lakka updater 2017-06-21 14:16:19 +02:00
Jean-André Santoni d67348b467 Typo 2017-06-21 14:11:26 +02:00
Jean-André Santoni eca0ac054a More french translations 2017-06-21 13:39:44 +02:00
Rob Loach 5dfd97ff29 Add input_driver to config.def.h
This fixes the following compilation error:

```
CC core_info.c
In file included from core_info.c:31:0:
config.def.h:302:48: error: ‘INPUT_TOGGLE_NONE’ undeclared here (not in a function)
 static unsigned menu_toggle_gamepad_combo    = INPUT_TOGGLE_NONE
                                                ^
Makefile:155: recipe for target 'obj-unix/core_info.o' failed
```
2017-06-21 01:01:07 -04:00
twinaphex 6aa99ebb37 Take out <sys/cdefs.h> 2017-06-21 05:02:03 +02:00
Twinaphex bf5a513e2d Merge pull request #5081 from Scheiker/macrofixes
Macrofixes
2017-06-21 04:31:20 +02:00
Charlton Head 4ae7718f1c add ; when !HAVE_MENU 2017-06-20 20:53:46 -05:00
Charlton Head e8976762a5 include command.h when !HAVE_MENU 2017-06-20 20:52:04 -05:00
Jean-André Santoni 53f089ff09 More french translations 2017-06-20 14:24:23 +02:00
twinaphex c2c4eeb4ca Buildfix 2017-06-20 02:52:04 +02:00
twinaphex 9bf8465e02 Disable this by default for lakka and vita 2017-06-20 02:47:55 +02:00
twinaphex 852ef54b7d Update CHANGES.md 2017-06-20 02:28:52 +02:00
twinaphex c6e6b394d1 Rename some strings 2017-06-20 02:26:56 +02:00
twinaphex 540b9d5615 Add 'Show Core Updater' 2017-06-20 02:22:07 +02:00
twinaphex c2c2e0cdc9 Add title to User Interface -> Views 2017-06-20 02:07:05 +02:00
twinaphex 652452b905 Create User Interface -> Views 2017-06-20 02:04:23 +02:00
twinaphex 2bc417e29f rename some strings 2017-06-20 01:49:37 +02:00
twinaphex 66fc9e6a06 Add menu_show_online_updater 2017-06-20 01:42:28 +02:00
fr500 6803c16bae Revert "Fixed dist-cores.sh script"
This reverts commit bcae2fdc9b.
2017-06-19 14:16:44 -05:00
Jean-André Santoni e2c3f42390 Updated French translation part 1. #5073 2017-06-19 18:06:48 +02:00
Twinaphex 4200c2f135 Merge pull request #5078 from psyke83/xmbwallpaper
xmb: fix incorrect wallpaper alpha blending
2017-06-19 17:43:32 +02:00
twinaphex f087419165 Rename platform_linux.c to platform_unix.c 2017-06-19 17:38:49 +02:00
Conn 78339ae67c xmb: fix incorrect wallpaper alpha blending 2017-06-19 16:38:09 +01:00
Twinaphex b2257347a3 Merge pull request #5075 from ensrha/master
Prevent OSS driver from being compiled & linked twice
2017-06-19 16:03:01 +02:00
Twinaphex 541cfbd635 Merge pull request #5077 from ensrha/sunxi-fix
Fix --enable-sunxi
2017-06-19 15:59:41 +02:00
ensrha 93ea78772d Add missing verbosity include 2017-06-19 14:38:26 +01:00
ensrha a1be55f655 Restore pixman, appears to have been deleted by mistake in 2078331495 2017-06-19 14:38:15 +01:00
Paolo Bonzini d5cdbca322 add support for remote control devices and other ID_INPUT_KEY devices
* the remote control presents itself as ID_INPUT_KEY, not
ID_INPUT_KEYBOARD.  However, ID_INPUT_KEYBOARD is a subset of
ID_INPUT_KEY.

* the remote control lacks the backspace and enter keys, which are hard
coded in RetroArch. It has "back" and "ok" instead, so map those to
RETROK_BACKSPACE and RETROK_ENTER as well.

Remote controls also have no ESC key, but that one is customizable
and I used the Power key of the remote (which already has a mapping
to RETROK_POWER).

The functionality provided is really the bare minimum, but it is enough
to teach a kid "press the power button here to watch TV"; compared to
pressing L1+R1+START+SELECT and navigating to the RetroArch's "quit"
menu item, that hopefully has more chances of success.
2017-06-19 15:09:13 +02:00
ensrha 1f841909f5 Prevent OSS driver from being compiled & linked twice 2017-06-19 13:18:04 +01:00
Paolo Bonzini f850e64037 add volume down and volume up keys 2017-06-19 13:22:34 +02:00
twinaphex e23f0be913 Prevent Coverity warning 2017-06-19 02:09:06 +02:00
twinaphex 914acd3956 Revert "Get rid of some warnings"
This reverts commit 3d45ba29d8.
2017-06-18 20:02:50 +02:00
twinaphex b134c5d23c Revert "Set joypad_info.axis_threshold only once"
This reverts commit 605d877279.
2017-06-18 20:01:48 +02:00
twinaphex 605d877279 Set joypad_info.axis_threshold only once 2017-06-18 19:56:31 +02:00
twinaphex 3d45ba29d8 Get rid of some warnings 2017-06-18 19:47:40 +02:00
twinaphex 097d9bc13b (iOS) Buildfix 2017-06-18 19:43:55 +02:00
Twinaphex 56d744ceaa (Cocoa) Shared hardware context starts to work now 2017-06-18 19:35:34 +02:00
twinaphex 652e00b93e Update CHANGES.md push 2017-06-18 19:19:55 +02:00
twinaphex e0cc113689 Try to fix this regression https://github.com/libretro/RetroArch/issues/5060 2017-06-18 18:50:46 +02:00
Andrés eb371741a2 Merge pull request #5068 from allanin/master
Fixing wrong settings in Nuklear
2017-06-18 10:52:43 -05:00
twinaphex a3f216ba86 (Android) Try to move this code to set_video_mode 2017-06-18 17:21:33 +02:00
twinaphex 4850af8eac Revert "Try to set use_hw_ctx in advance for Android"
This reverts commit c010c5b258.
2017-06-18 17:09:27 +02:00
twinaphex c010c5b258 Try to set use_hw_ctx in advance for Android 2017-06-18 16:45:36 +02:00
twinaphex 5c973b6649 Add another entry to debug logging 2017-06-18 15:52:17 +02:00
twinaphex 2d76e98c22 Add debug logging 2017-06-18 15:48:44 +02:00
twinaphex 55e23395e0 Update Makefile.common 2017-06-18 15:35:46 +02:00
twinaphex 96ded45dd2 Update CHANGES.md 2017-06-18 14:15:02 +02:00
Twinaphex 6db8aa8a65 Merge pull request #5067 from danieljg/master
Added code for single port psx to ps3 adapter
2017-06-18 11:16:15 +02:00
allanin c990a57359 Fixing wrong settings in Nuklear 2017-06-18 05:57:08 +00:00
Daniel Jimenez bcae2fdc9b Fixed dist-cores.sh script 2017-06-17 14:36:19 -07:00
Daniel Jimenez 5267b630f8 Added code for single port psx to ps3 adapter
On branch master
 Changes to be committed:
	modified:   ../griffin/griffin.c
	modified:   ../input/connect/connect_ps2adapter.c
	new file:   ../input/connect/connect_psxadapter.c
	modified:   ../input/connect/joypad_connection.c
	modified:   ../input/connect/joypad_connection.h
2017-06-17 14:19:09 -07:00
twinaphex e6a1afdb22 Update Makefiles 2017-06-16 15:38:20 +02:00
twinaphex cf71d465a3 Turn mkdir_norecurse into static function 2017-06-16 15:33:06 +02:00
twinaphex 6af5bd01bf Merge retro_stat and file_path 2017-06-16 15:00:11 +02:00
Jean-André Santoni 7e8aabd080 Revert "Update translation french"
This reverts commit 8980c8a46b.
2017-06-15 21:37:10 +02:00
twinaphex 822844e676 Update CHANGES.md 2017-06-15 16:23:02 +02:00
Twinaphex 55e6ddc88e Merge pull request #5062 from bubuleur/patch-1
Update translation french
2017-06-15 16:22:10 +02:00
bubuleur 8980c8a46b Update translation french 2017-06-15 16:15:45 +02:00
Twinaphex d25a749702 Merge pull request #5061 from QuarkTheAwesome/master
Tweaks to let DOSBox core work on Wii U
2017-06-15 07:43:22 +02:00
Ash 2492f3d6b3 Add missing_libc_functions.c (for DOSBox) 2017-06-15 15:21:38 +10:00
Ash 7f5986e1d5 Rename Wii U log functions (conflict in DOSBox) 2017-06-15 15:20:58 +10:00
Ash 6bc0f02435 Add Wii U files to .gitignore 2017-06-15 15:20:05 +10:00
Brad Parker aa45e5023f Merge branch 'master' of https://github.com/bparker06/RetroArch 2017-06-14 20:39:52 +00:00
Brad Parker d5a1ad0a73 android: delay loading of RetroActivity until after permissions are granted 2017-06-14 20:19:52 +00:00
Brad Parker fca0e52bdd win32: make includes lowercase to fix cross-compilation on linux 2017-06-13 22:25:47 -04:00
twinaphex 39ea7deef7 Add sha1_main 2017-06-13 10:21:38 +02:00
twinaphex 2e9c5ba6f9 Add sha1_main.c 2017-06-13 10:18:10 +02:00
twinaphex 34dd03a16f Don't bake in SHA1 main function 2017-06-13 09:33:18 +02:00
twinaphex c7ac70a923 Combine video_renderchain_driver.c and video_driver.c 2017-06-12 15:45:58 +02:00
Twinaphex 2496a6287c Merge pull request #5056 from casdevel/drm
Add missing include directive
2017-06-12 14:23:50 +02:00
Zoran Vuckovic 08b6fdb697 Add missing include directive 2017-06-12 14:13:08 +02:00
twinaphex 470995630b (7zip) Cleanup unneeded stuff 2017-06-12 13:07:35 +02:00
twinaphex 11d4827c9f Update griffin 2017-06-12 12:59:49 +02:00
twinaphex fba0080ebc (7zip) remove some unneeded files 2017-06-12 12:40:48 +02:00
twinaphex 8d1e51af7c Make archive_file_7z.c less dependent on 7zip source files 2017-06-12 12:26:19 +02:00
twinaphex 1598042e8e (udev) Keyboard should work again in DRM/KMS 2017-06-12 12:09:19 +02:00
Twinaphex e610a906b5 Merge pull request #5053 from Avton1/patch-5
Create msg_hash_ru.h
2017-06-12 06:42:55 +02:00
Twinaphex 77cc37743c Merge pull request #5054 from danieljg/master
Fix image mirroring in vertical games on the 3ds port (bug #4817)
2017-06-12 06:41:56 +02:00
Daniel Jimenez 288657971d Merge branch 'master' of github.com:libretro/RetroArch 2017-06-11 18:21:09 -07:00
Brad Parker f5a126df24 update Japanese translation 2017-06-11 21:12:39 -04:00
Daniel Jimenez 22fc07a839 Fix mirrored images in vertical games on 3DS (bug #4817)
On branch master
 Your branch is up-to-date with 'origin/master'.
 Changes to be committed:
	modified:   ctr_gfx.c
2017-06-11 18:12:37 -07:00
Avton1 075930c420 Create msg_hash_ru.h 2017-06-12 08:48:45 +08:00
Jean-André Santoni 364440813f Merge pull request #5009 from psyke83/xmbtrans
xmb: enable menu transparency support when emulation is paused (v2)
2017-06-11 21:23:24 +02:00
twinaphex a41b8bc199 Direct usage of epoll 2017-06-11 20:51:21 +02:00
twinaphex e92feb85af Use epoll functions directly 2017-06-11 20:44:02 +02:00
twinaphex 895c817fa5 ifdef this 2017-06-11 19:56:14 +02:00
twinaphex 5e0e970c92 Cleanups 2017-06-11 19:48:40 +02:00
twinaphex 483aceb2af Update CHANGES.md 2017-06-11 18:30:10 +02:00
twinaphex 0a77d35cb9 Update CHANGES.md 2017-06-11 18:29:31 +02:00
Brad Parker 42e56c8432 fix all_users_control_menu logic 2017-06-11 12:28:47 -04:00
twinaphex 0751cb238d Add HAVE_HID ifdefs 2017-06-11 18:12:38 +02:00
twinaphex 060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex 68516cf74c (input_keyboard.c) cleanups 2017-06-11 17:35:48 +02:00
twinaphex e2d4ff5614 Don't need ctype 'isprint' here anymore 2017-06-11 16:56:31 +02:00
twinaphex 9ec396c0ea Remove some dead code 2017-06-11 16:51:50 +02:00
twinaphex c14c4cd394 Use BIT64_SET 2017-06-11 16:45:55 +02:00
twinaphex 5081d03194 Cleanups 2017-06-11 16:26:27 +02:00
twinaphex 7e9cb39519 Use BIT64_SET 2017-06-11 16:24:24 +02:00
twinaphex 612cb54cfe Merge input_hid_driver 2017-06-11 08:56:36 +02:00
twinaphex 80e2911bec Cleanups 2017-06-11 00:23:19 +02:00
twinaphex d482739dfd Fix binding 2017-06-10 23:26:52 +02:00
Twinaphex d0aad07930 Merge pull request #5050 from hizzlekizzle/master
change --help text for --log-file option
2017-06-10 22:54:30 +02:00
hizzlekizzle 0319041ffb change --help text for --log-file option
--log-file seems to be one of the few CLI switches that doesn't accept both space and =. Instead, it will fail to launch if you use the '=', which is the suggested syntax in the --help text.
2017-06-10 15:39:59 -05:00
twinaphex 95e588ce0f Fix C89_BUILD 2017-06-10 12:52:45 +02:00
twinaphex 9b13894438 Slightly rewrite input_state for android input driver 2017-06-10 12:48:09 +02:00
twinaphex 34be5566dd (udev fix) This fixes touchpad movement inside the menu 2017-06-10 12:27:22 +02:00
twinaphex 84f5fa1f26 (epoll_common.c) Cleanups; don't use verbosity logging inside 2017-06-10 12:07:01 +02:00
twinaphex c70526b7af Fix hotplug regressions with udev 2017-06-10 11:58:22 +02:00
twinaphex e8c73c6683 Rewrite other input drivers too 2017-06-10 11:22:24 +02:00
twinaphex d32cf4c866 Slightly rewrite input_state implementations of cocoa_input.c
and linuxraw_input.c
2017-06-10 11:09:58 +02:00
twinaphex 37656eed84 (udev_input.c) Rework input_state 2017-06-10 10:58:56 +02:00
twinaphex cea6dbbb6a (wayland) Fix input issue 2017-06-10 08:40:28 +02:00
twinaphex cffe023085 Fix wayland 2017-06-10 08:33:01 +02:00
Twinaphex 6d85e1f0a6 Merge pull request #5045 from casdevel/mice
Add player mouse device selection
2017-06-10 04:13:16 +02:00
Zoran Vuckovic e698e75a51 Adapt touchpad code for multiple mice support 2017-06-09 21:17:11 +02:00
twinaphex 34c1c5a361 Try to guard against value being -1 2017-06-09 12:15:26 +02:00
twinaphex 473aed632d Get rid of this 2017-06-09 02:14:48 +02:00
Twinaphex 33905af090 Merge pull request #5042 from Avton1/patch-4
Create msg_hash_ru.h
2017-06-09 01:37:39 +02:00
Avton1 3a34329cb7 Create msg_hash_ru.h 2017-06-09 07:31:48 +08:00
twinaphex 44fdbf7763 Update CHANGES.md 2017-06-09 00:00:28 +02:00
twinaphex 96ab060995 Update CHANGES.md 2017-06-08 23:58:40 +02:00
twinaphex cdf7a403ea Add audio mixer mute enable 2017-06-08 23:53:24 +02:00
twinaphex cdd7fbeb52 Add audio mixer volume setting 2017-06-08 22:58:43 +02:00
twinaphex 8f5f3d15f3 Add AUDIO_ACTION_MIXER_VOLUME_GAIN 2017-06-08 22:38:54 +02:00
twinaphex 5812471350 Need to apply db_to_gain to convert decibel to gain 2017-06-08 22:32:03 +02:00
twinaphex 420d0d0607 Get rid of audio_driver_set_volume_gain 2017-06-08 22:24:51 +02:00
twinaphex 65633c93f3 Audio mute now applies audio gain of 0.00 - no longer stops/starts
audio driver on mute toggle - should no longer unblock on audio
now if we set audio mute
2017-06-08 22:09:04 +02:00
twinaphex cd3276c554 Add volume override for audio_mixer_mix 2017-06-08 22:03:11 +02:00
twinaphex 8980f8c1ea Get rid of useless wrapper function epoll_waiting 2017-06-08 21:52:50 +02:00
twinaphex eb08a86647 Get rid of udev_common.c 2017-06-08 21:46:26 +02:00
twinaphex b633b8ad2d Get rid of implicit memset 2017-06-08 21:38:05 +02:00
Zoran Vuckovic 39108f97e9 Add player mouse index handling to winraw input driver 2017-06-08 17:35:34 +02:00
Zoran Vuckovic 44930716ba Add player mouse index handling to udev input driver 2017-06-08 18:49:08 +02:00
Zoran Vuckovic a74197dc49 Add player mouse index setting 2017-06-08 17:57:36 +02:00
twinaphex f86f1b3e32 Simplify gl_raster_font_upload_atlas 2017-06-08 08:10:23 +02:00
twinaphex aaf3c876eb gl_raster_font.c - Cleanups 2017-06-08 06:44:04 +02:00
Twinaphex e2be9e659d Silence some warnings 2017-06-08 02:44:38 +02:00
twinaphex d7ff2de094 Add stubbed out setting 2017-06-08 00:28:53 +02:00
twinaphex 6b1b8fc35a Add netplay settings sublist 2017-06-08 00:19:43 +02:00
twinaphex 0c3283574d Add deferred hooks for netplay submenu 2017-06-08 00:11:00 +02:00
twinaphex ab087faa2a Try to move access call to maybe prevent 'time of check time of use'
coverity error
2017-06-07 23:29:29 +02:00
twinaphex 5c84f9158e Try to prevent out-of-bounds write 2017-06-07 23:03:08 +02:00
twinaphex a371815efd Try to null-terminate string 2017-06-07 22:47:07 +02:00
twinaphex eb5bf9451d (psp_joypad.c) Cleanups 2017-06-07 22:34:37 +02:00
twinaphex c711749973 (iohidmanager_hid.c) Cleanups 2017-06-07 21:14:34 +02:00
twinaphex 4a5593255f (android_joypad.c) Small cleanup 2017-06-07 21:10:06 +02:00
twinaphex 5ef8b69c9c (wiiu_input.c) Minor style nits 2017-06-07 21:06:24 +02:00
twinaphex dfcbd77a6b (ctr/wiiu) Minor stylistic nits 2017-06-07 21:04:13 +02:00
twinaphex afa07219cd (linuxraw_joypad.c) Cleanups 2017-06-07 20:58:46 +02:00
twinaphex f9061ca931 Simplify udev_joypad_button 2017-06-07 20:48:33 +02:00
twinaphex 9a471d0ef4 Simplify udev_joypad.c 2017-06-07 20:44:14 +02:00
Twinaphex c7036b24d4 Merge pull request #5038 from RobLoach/patch-11
[DB] Update RDB building to ignore missing keys
2017-06-07 19:54:00 +02:00
Twinaphex 0cbe5164b4 Merge pull request #5039 from shizeeg/keypadfix
[INPUT]: KP0, KP1, KP2, KP3 keys don't work on GNU/Linux fixes issue #5034
2017-06-07 19:53:31 +02:00
sh!zeeg 5887c46e08 [INPUT]: fix KP0, KP1, KP2, KP3 keys on GNU/Linux 2017-06-07 19:52:20 +03:00
Rob Loach 11f8938f7e Update RDB building to ignore missing keys
This change makes it so that when building the RDB files, the entries that are missing `serial` keys will simply be ignored and the RDB file will still build. When it's missing the key, it also logs which line it's processing so that we can easily fix the broken entry in libretro-database.
2017-06-07 10:43:56 -04:00
Jean-André Santoni 0dd2304e7c Merge pull request #5037 from casdevel/udev-drm
Fix DRM/KMS keyboard handling
2017-06-07 13:29:22 +02:00
Zoran Vuckovic ceca89e104 Fix DRM/KMS keyboard handling 2017-06-07 12:25:10 +02:00
twinaphex 6c81007eb9 Should hopefully fix scanning of PS1 games 2017-06-07 11:12:11 +02:00
Twinaphex 803ae53372 Merge pull request #5036 from GregorR/netplay-disconnection-forwarding
Handle forwarding of netplay state demotions correctly.
2017-06-07 03:54:13 +02:00
twinaphex f6c2d97ed5 Don't do these constant checks 2017-06-07 03:41:36 +02:00
Gregor Richards fb3c35dc9f Handle forwarding of netplay state demotions correctly.
Netplay state demotions, i.e. changes from playing to spectating or
disconnected states, could cause chain disconnections of all other
clients. This was due to a bug in when MODE change messages were sent.
Clients rely on the server sending all messages in its own order, and as
a consequence, the server typically holds messages for retransmission
until they can be retransmitted at the correct time. MODE messages were
not held, so could be sent early. When they were sent early, this caused
other clients to panic and disconnect.

A smaller but much stupider secondary bug was also fixed, in which the
first connection could be dropped due simply to writing connections[0]
instead of connections[i] somewhere.
2017-06-06 21:35:09 -04:00
twinaphex b610d034ae (sinc_resampler.c) Cut down on ifdef party 2017-06-07 03:09:23 +02:00
twinaphex 34b5d0025b Get rid of implicit declaration warnings 2017-06-07 03:02:50 +02:00
twinaphex 486660471e (Android) Buildfix 2017-06-07 03:01:00 +02:00
twinaphex d9e6cbb065 Simplifications to SDL input driver 2017-06-07 01:45:09 +02:00
twinaphex 59c3f8b06e Cleanups 2017-06-07 01:19:44 +02:00
twinaphex 603d4d0464 (udev/x11) Simplifications 2017-06-07 01:17:55 +02:00
twinaphex 9e93bdbe27 (linuxraw_input.c) simplifications 2017-06-07 01:12:35 +02:00
Twinaphex 3dede6d71a OSX buildfix 2017-06-07 00:35:11 +02:00
twinaphex c3f5c499f3 Simplify cocoa_input 2017-06-07 00:33:03 +02:00
twinaphex afd6a2bec5 Cleanups 2017-06-07 00:10:39 +02:00
twinaphex 604a558382 Get rid of input_wl_is_pressed 2017-06-07 00:09:31 +02:00
twinaphex deb804ab2f (x11_input.c) get rid of this inline function 2017-06-06 23:50:51 +02:00
twinaphex c7b45aaf80 warning fix for C89_BUILD 2017-06-06 23:22:20 +02:00
twinaphex 3d61c7fdfc MSVC buildfix 2017-06-06 23:19:07 +02:00
Twinaphex b148ae8092 Merge pull request #5035 from flibitijibibo/master
[SDL2] Fix joypad info for SDL_GameController devices
2017-06-06 22:34:47 +02:00
Ethan Lee bf20021338 [SDL2] Fix joypad info for SDL_GameController devices 2017-06-06 16:16:44 -04:00
twinaphex 3443153ccc (DRM/KMS) If we have the X11 input driver selected, default to udev and/or
linuxraw driver instead
2017-06-06 21:15:32 +02:00
twinaphex 96bfb35e0b Set default input driver to x - udev can be hit/miss on some
people's configurations
2017-06-06 21:04:15 +02:00
Twinaphex 89fe5625cb Merge pull request #5031 from casdevel/winraw
Add L/R virtual keys handling
2017-06-06 18:44:49 +02:00
Zoran Vuckovic d88b76c26f Add L/R virtual keys handling 2017-06-06 13:50:41 +02:00
Twinaphex 829392398e Merge pull request #5030 from blackgur/master
Update msg_hash_ru.h
2017-06-06 10:20:58 +02:00
twinaphex f5225a479e (task_database_cue.c) Use string_is_equal instead 2017-06-06 10:20:34 +02:00
blackgur d479bd0e1e Update msg_hash_ru.h 2017-06-06 11:15:54 +03:00
twinaphex 3d54afdc1b Change to string_is_equal 2017-06-06 09:46:13 +02:00
twinaphex 1d65222051 No longer need linux/input.h header 2017-06-06 08:31:41 +02:00
twinaphex 5d78c2209f Remove obsolete header 2017-06-06 08:30:01 +02:00
twinaphex efdfb29d50 Turn input_joypad_is_pressed into static inline function 2017-06-06 08:12:53 +02:00
twinaphex 7685f93d00 input_menu_keys_pressed - don't use input_joypad_pressed 2017-06-06 07:59:41 +02:00
twinaphex ded0813f6b Don't need this header 2017-06-06 07:36:06 +02:00
twinaphex f307135d1d Split up wayland input driver into separate driver; and
improve mouse support for menu
2017-06-06 07:34:33 +02:00
twinaphex 470c857470 Only unload core when it's not the dummy core 2017-06-06 06:16:43 +02:00
twinaphex 6b3dbff75f Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
twinaphex 0bd998665b Turn this function into static INLINE 2017-06-06 05:38:01 +02:00
twinaphex 007bb0de39 Buildfix 2017-06-06 05:36:12 +02:00
twinaphex 9ebfb36b4e Use rarch_keysym_lut directly 2017-06-06 05:17:25 +02:00
twinaphex e276142be3 (udev_input.c) Cleanup 2017-06-06 04:18:35 +02:00
twinaphex 4f22c3d13e (x11_input.c) Simplifications 2017-06-06 04:15:45 +02:00
twinaphex 15c4f82dec (udev_input.c) Cleanups 2017-06-06 03:59:52 +02:00
twinaphex ae98ea7210 Remove unused function 2017-06-06 03:49:21 +02:00
twinaphex eee1ff7b46 Update NL localization 2017-06-05 19:53:16 +02:00
Francisco José García García c9d90ce1b6 (VITA) Add support for external usb if mounted 2017-06-05 08:52:20 +02:00
twinaphex cacde2b464 (dynamic_dummy.c) Uniquely name frame_buf 2017-06-05 06:53:18 +02:00
twinaphex 7bcffde6c6 Revert "Add this conditional check"
This reverts commit f5fc95cd04.
2017-06-05 06:52:16 +02:00
twinaphex f5fc95cd04 Add this conditional check 2017-06-05 06:50:24 +02:00
twinaphex c3c772a79a (udev) Avoid warning with helgrind - input descriptor -1 is invalid 2017-06-05 05:18:38 +02:00
Twinaphex d903b1cc60 Merge pull request #5026 from fr500/staging
AARCH64 support
2017-06-05 04:37:31 +02:00
radius 304a647248 dlopen libandroid from lib64 instead 2017-06-04 21:20:39 -05:00
radius 8f55e77afe disable NEON 2017-06-04 21:00:40 -05:00
radius c6c8881ab2 add AARCH64 defines 2017-06-04 20:38:53 -05:00
twinaphex 37c0a2d923 Remove this code 2017-06-04 22:37:49 +02:00
twinaphex f5c5f489b3 (stb_vorbis.h) Cleanups 2017-06-04 22:34:27 +02:00
twinaphex dae733132a (stb_vorbis.h) Remove code we don't need 2017-06-04 22:28:06 +02:00
twinaphex 4a8d8d4d9f Remove code we don't need from stb_vorbis.h 2017-06-04 21:47:38 +02:00
twinaphex 8b945a103f (udev_input.c) Set st_dev manually 2017-06-04 21:16:35 +02:00
Twinaphex a3c88fec74 Merge pull request #5021 from casdevel/udev
Fix duplicate characters when searching
2017-06-04 21:01:43 +02:00
Zoran Vuckovic ab793b92a3 Remove XKBCOMMON code 2017-06-04 07:23:32 +02:00
Zoran Vuckovic 1911aadc19 Remove duplicate keyboard handling 2017-06-04 07:16:57 +02:00
twinaphex 85058fbe5c (udev_input.c) Some cleanups and a runtime check for X11 2017-06-03 18:54:04 +02:00
Twinaphex a8a8bde2ef Merge pull request #5017 from casdevel/udev
Add pointer handling to fullscreen mode
2017-06-03 18:43:29 +02:00
Zoran Vuckovic 210da4d204 Add ifdef checks for X11-specific code 2017-06-03 18:01:27 +02:00
Zoran Vuckovic 05a90f7f70 Add mouse grab/ungrab feature 2017-06-03 16:26:08 +02:00
Twinaphex 45305b4c04 Merge pull request #5014 from theheroGAC/patch-2
Update msg_hash_it.h
2017-06-03 16:08:07 +02:00
Zoran Vuckovic 39a9ac8444 Add pointer handling to fullscreen mode 2017-06-03 12:46:53 +02:00
theheroGAC 5efb90d614 Update msg_hash_it.h 2017-06-03 11:55:16 +02:00
theheroGAC d0a4632c13 Update msg_hash_it.h
82% Translated into Italian :)
2017-06-03 09:57:32 +02:00
Twinaphex 97e3a9e908 Merge pull request #5012 from theheroGAC/patch-1
Update msg_hash_it.h
2017-06-02 21:24:06 +02:00
theheroGAC e237b0f0aa Update msg_hash_it.h 2017-06-02 21:03:49 +02:00
theheroGAC 5afc868562 Update msg_hash_it.h 2017-06-02 18:57:17 +02:00
Twinaphex a8f1831a62 Merge pull request #5010 from casdevel/udev
Add multiple mice support to udev input driver
2017-06-02 16:45:13 +02:00
Twinaphex 647dc488ff Merge pull request #5011 from casdevel/winraw
Fix capabilities report
2017-06-02 15:25:07 +02:00
Zoran Vuckovic f740776105 Fix capabilities report 2017-06-02 09:47:43 +02:00
Zoran Vuckovic 11559f294a Add multiple mice support to udev driver 2017-06-02 07:57:07 +02:00
Conn f413b23f06 xmb: enable menu transparency support when emulation is paused (v2)
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.

Issues fixed:

gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
                  black or corrupt image)
gfx/video_driver: don't clobber cached frame during driver reinit if game was loaded
                  (fixes missing menu background/paused foreground on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
                  avoid background of cores with no content yet loaded mixing with wallpaper.
2017-06-02 02:55:59 +01:00
Zoran Vuckovic 2056ebc803 Allow udev input to be used with X11 context 2017-06-02 01:08:28 +02:00
twinaphex a4358deb0d Bump versioncode 2017-06-01 17:27:20 +02:00
twinaphex 44b4a4e028 Revert "xmb: enable menu transparency support when emulation is paused"
This reverts commit 17d0037bd5.
2017-06-01 17:21:55 +02:00
Jean-André Santoni 6e3b60a91a Merge pull request #5006 from psyke83/xmbtrans
xmb: enable menu transparency support when emulation is paused
2017-06-01 13:12:19 +02:00
Jean-André Santoni 478909697b Merge pull request #5007 from gouchi/master
Update CHANGES.md
2017-06-01 13:03:52 +02:00
gouchi 71efef723b Update CHANGES.md 2017-06-01 12:43:27 +02:00
twinaphex 25a89c3ff1 Update CHANGES.md 2017-06-01 05:26:44 +02:00
twinaphex 1056027d4d Bump up version code to 54 2017-06-01 03:49:51 +02:00
twinaphex f14473fd23 (PS3) Add HAVE_STB_VORBIS 2017-06-01 01:25:41 +02:00
twinaphex 69ab4b6137 Remove HAVE_RLAUNCH 2017-06-01 01:24:46 +02:00
twinaphex 6bf867330f (Android) Add -DHAVE_STB_VORBIS 2017-06-01 01:17:47 +02:00
twinaphex f085e69939 (OSX/iOS) Add HAVE_STB_VORBIS 2017-06-01 01:16:26 +02:00
Conn 17d0037bd5 xmb: enable menu transparency support when emulation is paused
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.

Issues fixed:

gfx/video_driver: enable menu transparency only when game is loaded (as a loaded core can display
                  black or corrupt image)
gfx/video_driver: don't clobber cached frame (fixes missing background on full screen toggle)
menu/drivers/xmb: ensure transparency is applied when game is loaded and no shader pipeline active.
menu/menu_driver: explicitly apply transparency only for existing textures (i.e. wallpapers), to
                  avoid background of cores with no content yet loaded mixing with wallpaper.
2017-05-31 23:45:16 +01:00
Twinaphex 03160ed3fc Merge pull request #5005 from libretro/revert-4985-master
Revert "xmb: allow transparency when emulation paused"
2017-06-01 00:28:01 +02:00
Twinaphex 1be1386161 Revert "xmb: allow transparency when emulation paused" 2017-06-01 00:27:44 +02:00
twinaphex cc1954b4ac Add 'Filter by current core' 2017-06-01 00:25:13 +02:00
Twinaphex 973600ab30 Merge pull request #4999 from fr500/master
prevent these tasks to run more than once on shutdown
2017-05-31 14:11:03 +02:00
radius f2a8b11ef7 prevent these tasks to run more than once on shutdown 2017-05-31 00:34:01 -05:00
twinaphex 558181e7dd (jsonsax_full.c) Silence some warnings 2017-05-31 04:23:28 +02:00
Twinaphex 6be03843e3 Merge pull request #4997 from hizzlekizzle/master
update Cg menu ribbon for additive blending
2017-05-31 03:16:49 +02:00
hizzlekizzle ba2cf008c6 update Cg menu ribbon for additive blending
Fixes solid white ribbon.
2017-05-30 20:13:58 -05:00
twinaphex 6b638cae8b prevent uninitialized variable 2017-05-31 02:21:43 +02:00
twinaphex 37283185c9 (setting_list.c) Cleanups 2017-05-31 02:00:38 +02:00
twinaphex b13dc7415c (audio_driver.c) Audio mixer - Plug another memory leak 2017-05-31 01:23:20 +02:00
Twinaphex 7053a74d3f Merge pull request #4995 from casdevel/winraw
Add missing keymaps
2017-05-31 00:38:36 +02:00
Zoran Vuckovic a47ab76500 Add missing keymaps 2017-05-31 00:35:28 +02:00
Twinaphex ecbd921668 Merge pull request #4992 from casdevel/winraw
Fix keyboard key translation issue
2017-05-30 23:57:51 +02:00
twinaphex 659668749c Use string_is_equal here 2017-05-30 23:50:02 +02:00
Zoran Vuckovic 32d4e740ce Fix keyboard key translation issue 2017-05-30 22:59:31 +02:00
twinaphex 1af6d8a59f Add audio_mixer_find_index - and attempt to plug memleaks 2017-05-30 22:34:18 +02:00
Twinaphex b46c78f391 Merge pull request #4991 from casdevel/winraw
Remove unused code
2017-05-30 21:43:09 +02:00
Zoran Vuckovic 8c9e72aec1 Remove unused code 2017-05-30 21:05:55 +02:00
twinaphex a6dc4430ba Change this to string_is_equal 2017-05-30 18:54:10 +02:00
twinaphex bc7427732c Buildfix 2017-05-30 16:57:29 +02:00
twinaphex eb8b31df3c Silence some Coverity warnings 2017-05-30 16:44:19 +02:00
Twinaphex dabbaee7b9 Merge pull request #4989 from Tatsuya79/patch-1
Hide load message when saving state.
2017-05-30 15:08:01 +02:00
Tatsuya79 1df9766491 Hide load message when saving state.
fix https://github.com/libretro/RetroArch/issues/4460
2017-05-30 14:07:04 +02:00
Jean-André Santoni c4b2feb811 Merge pull request #4985 from psyke83/master
xmb: allow transparency when emulation paused
2017-05-30 08:11:35 +02:00
twinaphex fd64b158ac Add audio_mixer_play_stop_cb initial impl. 2017-05-30 06:29:19 +02:00
twinaphex 70d906c176 (audio mixer) Add default stop_cb which decrements audio mixer idx value 2017-05-30 06:03:36 +02:00
Twinaphex b6c0688f41 Merge pull request #4987 from fr500/master
start fixing bsv recording
2017-05-30 05:50:54 +02:00
Zoran Vuckovic 451db1fac5 Add multiple mice support 2017-05-30 05:50:38 +02:00
radius 6d6309aaf0 start fixing bsv recording 2017-05-29 22:49:12 -05:00
twinaphex c83d72d589 Buildfix for Python 2017-05-30 04:11:04 +02:00
twinaphex 46806e7204 Bake out stdin_stream.c 2017-05-30 03:00:11 +02:00
twinaphex c5fe9f4252 Build warning fix 2017-05-30 02:58:59 +02:00
twinaphex eeff3b87e8 Turn this into #elif defined(_WIN32) 2017-05-30 02:55:29 +02:00
Brad Parker 78a0711bff XMB: prevent null pointer dereference with GDI driver 2017-05-29 20:35:33 -04:00
twinaphex 3d4d9b09cf Comment this out 2017-05-30 01:47:49 +02:00
twinaphex 449483206f Revert "New attempt to fix memory leaks of struct retro_system_info"
This reverts commit a1d3dd69dd.
2017-05-30 01:44:49 +02:00
Conn 57503051ea xmb: allow transparency when emulation paused
Allow xmb menu driver transparency when "Pause when menu activated" is enabled (default setting).
This is also the default behaviour of the rgui driver and is helpful for users to preview
video/shader changes on the fly.
2017-05-29 23:49:40 +01:00
Twinaphex 0066fe8065 Merge pull request #4982 from arakerlu/fix_video_driver_translate_coord_viewport
Fix scaling bug in video_driver_translate_coord_viewport()
2017-05-29 23:53:41 +02:00
Arto Vainiolehto 766e4f5110 Fix scaling bug in video_driver_translate_coord_viewport()
- now scaled_x and height are correctly calculated, using viewports's width and height, respectively, as the scaling factor
-- previously the scaling factor was the screen's width/height, which meant that if screen and viewport had different bounds, scaled_x/scaled_y were incorrectly calculated
2017-05-30 00:00:56 +03:00
twinaphex 691fa0a31d Remove the diff 2017-05-29 22:24:43 +02:00
twinaphex a1d3dd69dd New attempt to fix memory leaks of struct retro_system_info
char variables
2017-05-29 22:24:10 +02:00
twinaphex 68beaa5ffc Update diff 2017-05-29 22:21:01 +02:00
twinaphex 67c95d6dfb Add newdiff.diff 2017-05-29 21:35:33 +02:00
Jean-André Santoni 710e912aca (XMB) Code cleaning 2017-05-29 21:00:00 +02:00
Jean-André Santoni 66bfdc9408 (XMB) draw_thumbnail refactoring 2017-05-29 20:58:29 +02:00
twinaphex 0bd74c923f (playlist.c) Turn this code more robust 2017-05-29 20:36:18 +02:00
twinaphex 1cdd0e47cb Backport polling updates - mouse smoothness was broken in cores 2017-05-29 20:30:01 +02:00
twinaphex dfae380f33 Backport patches -
- Attempt to skip cheevos when path is of media type
- Don't do CRC32 encoding for media types
2017-05-29 20:26:10 +02:00
twinaphex b4e16c243c Style nits 2017-05-29 14:58:30 +02:00
twinaphex 2fa401ef26 Remove #if 0 2017-05-29 14:54:25 +02:00
twinaphex 5521d58994 Only use runloop_get_system_info function outside retroarch.c 2017-05-29 05:38:33 +02:00
twinaphex 44bf15ad28 Remove unused menu_display_msg_queue 2017-05-29 05:34:24 +02:00
twinaphex 30047af7a3 Get rid of these strdup leaks 2017-05-29 04:39:12 +02:00
twinaphex 426dfd79db Properly hide 'Core Information' if core is unloaded 2017-05-29 03:35:11 +02:00
twinaphex a58cbf6e42 Call libretro_free_system_info from RARCH_CTL_PREINIT 2017-05-29 03:26:05 +02:00
twinaphex 7fabbcebba Revert "Should get rid of the memory leaks to do with the system info"
This reverts commit 1808c6de57.
2017-05-29 03:24:15 +02:00
Jean-André Santoni 51adb3ff78 Fix the navigation pointer when clicking tabs in glui 2017-05-29 02:50:42 +02:00
twinaphex e67b6d4b3c Fix coverity error 2017-05-29 02:30:12 +02:00
Jean-André Santoni a23e2ead3c Start fixing the cancel callback in the content downloader 2017-05-29 02:25:35 +02:00
twinaphex d2bc5e0454 Fix more ASAN errors 2017-05-29 02:21:56 +02:00
twinaphex c6ead6e973 Make this code more robust 2017-05-29 02:16:25 +02:00
twinaphex 5a4bb34cf8 Fix directory selection by mouse/touch 2017-05-29 01:50:31 +02:00
twinaphex 39f1441b7c (XMB) Small optimizations 2017-05-29 01:46:57 +02:00
twinaphex 1808c6de57 Should get rid of the memory leaks to do with the system info 2017-05-29 01:40:46 +02:00
Jean-André Santoni 950aef8ded Clear the navigation pointer in the content downloader 2017-05-29 01:36:36 +02:00
twinaphex cf9ecbcf39 Revert "Not sure why we are doing this, we shouldn't need to do this if"
This reverts commit ca6c0110fe.
2017-05-29 00:59:52 +02:00
twinaphex ca6c0110fe Not sure why we are doing this, we shouldn't need to do this if
we already memcpy this in
2017-05-29 00:57:39 +02:00
twinaphex 30c5a2870f Put this back here 2017-05-28 19:11:18 +02:00
twinaphex ffe0987454 Silence some Coverity warnings 2017-05-28 19:06:15 +02:00
twinaphex c7825e4708 Put this here 2017-05-28 19:00:54 +02:00
twinaphex c2cb872b08 Cleanup 2017-05-28 18:42:11 +02:00
twinaphex fa809bd3f4 Buildfix 2017-05-28 18:36:49 +02:00
twinaphex fdafae33c1 Cleanup 2017-05-28 18:35:50 +02:00
twinaphex 9fa871ccf9 Buildfixes for consoles 2017-05-28 18:33:44 +02:00
twinaphex cf2f8f6489 Prevent passing NULL/empty strings to memcmp 2017-05-28 18:07:00 +02:00
twinaphex d8f1cf7b5a Style nits 2017-05-28 18:03:11 +02:00
twinaphex 57273a545f Be more careful here 2017-05-28 18:00:47 +02:00
twinaphex 66f056322a Fix pointer overflow 2017-05-28 17:53:45 +02:00
twinaphex 2f39e4cd33 Use local variable 2017-05-28 17:46:42 +02:00
twinaphex 857562bf9d Prevent immediate crash when compiling with SANITIZER=address 2017-05-28 17:46:01 +02:00
twinaphex 3fbed8df27 (Menu) Menu driver no longer uses a duplicate system info
struct
2017-05-28 17:21:57 +02:00
twinaphex c74104f8c9 Get rid of RARCH_MENU_CTL_SYSTEM_INFO_* 2017-05-28 16:25:46 +02:00
twinaphex ba58eaf9fe Simplify libretro_get_system_info 2017-05-28 15:52:07 +02:00
twinaphex d0b0246ee4 Add DRIVERS_CMD_ALL_BUT_MENU 2017-05-28 15:26:47 +02:00
twinaphex b5aef51cc0 Revert "Make this code somewhat more like the other menu drivers"
This reverts commit 6c5d5ea497.
2017-05-28 15:14:35 +02:00
twinaphex 6c5d5ea497 Make this code somewhat more like the other menu drivers 2017-05-28 15:13:18 +02:00
twinaphex 721c6bc5bb Create menu_driver_destroy 2017-05-28 15:09:17 +02:00
twinaphex dbbcba41a5 Clean this mess up 2017-05-28 15:03:03 +02:00
twinaphex b8041cc93b Add further conditional check 2017-05-28 13:51:55 +02:00
aliaspider d120c9f38b change this one too. 2017-05-28 12:50:21 +01:00
aliaspider b49d2a87ab getaddrinfo error codes can also be positive. 2017-05-28 12:46:39 +01:00
aliaspider f589c50043 (WiiU) misc. 2017-05-28 12:42:19 +01:00
twinaphex 3ec06a3a4c Move back to old code prior to commit 85afd63 2017-05-28 13:34:30 +02:00
Twinaphex 92b4982292 Merge pull request #4975 from fr500/master
bump
2017-05-28 03:34:20 +02:00
radius f019b434ef resume game immediately if it was already underway 2017-05-27 20:21:44 -05:00
radius 0dc55a34d9 update changelog 2017-05-27 20:16:03 -05:00
radius 79fdccb31f bump 2017-05-27 20:12:48 -05:00
twinaphex f1447ddf3f Music history list now usable for non-HAVE_FFMPEG builds 2017-05-28 00:09:30 +02:00
Twinaphex 9fe1b9f0b2 get rid of unused variables 2017-05-28 00:04:26 +02:00
twinaphex 556cc4b426 xmb_show_music no longer exclusive to HAVE_FFMPEG 2017-05-28 00:03:52 +02:00
twinaphex e47056468c xmb_show_music - no longer exclusive to HAVE_FFMPEG builds 2017-05-28 00:03:28 +02:00
twinaphex 8e2753cc53 Music history list no longer tied to HAVE_FFMPEG 2017-05-28 00:00:51 +02:00
twinaphex 9438545bca Add music tab for non-ffmpeg enabled builds now; add 'Run'
and 'Add to mixer' options when selecting Ogg/WAV files
2017-05-27 23:56:10 +02:00
twinaphex 63638ee571 Add 'Use builtin player' to file browser settings 2017-05-27 22:39:52 +02:00
twinaphex a379b71d42 Change string_is_equal to string_is_equal_noncase 2017-05-27 21:18:45 +02:00
twinaphex 4c1dc265bc Put ifdef around this 2017-05-27 21:18:23 +02:00
twinaphex 5851d103d0 Add 'Add to Mixer' option for Ogg/WAV files inside the music tab 2017-05-27 21:03:17 +02:00
Twinaphex 0b3ef16982 Merge pull request #4974 from fr500/master
re-add manual connection option, cleanup old codepaths
2017-05-27 20:05:15 +02:00
radius fabdc580ef readd manual connection option, cleanup old codepaths 2017-05-27 12:59:34 -05:00
twinaphex 3e8234ab38 Cleanups 2017-05-27 19:13:22 +02:00
twinaphex 22f8dfab2d Update 2017-05-27 17:17:52 +02:00
twinaphex a626a30098 Turn menu_display_set_alpha into macro 2017-05-27 16:52:52 +02:00
twinaphex 087debe45d Cleanups 2017-05-27 16:50:36 +02:00
twinaphex 09ddd9ddcf Cleanups 2017-05-27 16:31:47 +02:00
twinaphex 70ffe1c12e Cleanups 2017-05-27 16:26:45 +02:00
twinaphex 1acfb9fed6 Cleanups 2017-05-27 16:23:46 +02:00
twinaphex 1b754cf62d (menu_displaylist_parse_horizontal_content_actions -
Move playlist code up
2017-05-27 16:18:14 +02:00
twinaphex df17764673 Move code from menu_content.c to menu_cbs_ok.c 2017-05-27 03:51:56 +02:00
twinaphex 11576f1d99 Cleanup 2017-05-27 03:43:53 +02:00
twinaphex 08bed1b0a2 (ffmpeg core) Take out gl prefix 2017-05-27 03:28:49 +02:00
twinaphex 94e2570c2f Cleanups 2017-05-27 03:20:47 +02:00
twinaphex 716b9ac09a Start bumping up version 2017-05-27 01:25:46 +02:00
twinaphex 84418df9eb (menu_entries.c) Cleanups 2017-05-27 01:01:58 +02:00
twinaphex 63a640605c Cleanups 2017-05-27 00:50:14 +02:00
twinaphex c4478da202 (menu_displaylist.c) Cleanups 2017-05-27 00:47:55 +02:00
twinaphex 95457077c6 (menu_displaylist.c) Cleanups 2017-05-27 00:40:35 +02:00
twinaphex 5f52a06080 (menu_displaylist.c) Cleanups 2017-05-27 00:36:57 +02:00
twinaphex f1b900f7bc Cleanup 2017-05-27 00:34:36 +02:00
twinaphex a1f3aea089 Cleanups 2017-05-26 22:17:30 +02:00
twinaphex 82473e4e32 This prevents crashes 2017-05-26 22:14:36 +02:00
twinaphex c1386c6f6f Get rid of this 2017-05-26 22:13:39 +02:00
Jean-André Santoni 882fe09dad Reinit the menu when a new font is set 2017-05-26 20:39:42 +02:00
twinaphex 74f202bbda (Menu) Cleanups 2017-05-26 20:12:52 +02:00
twinaphex 588a64dcf2 Silence uninitialized variable warning 2017-05-26 19:38:54 +02:00
twinaphex b91dd1413f Silence warning 2017-05-26 19:32:18 +02:00
twinaphex 9f1ca98ca3 Update CHANGES.md 2017-05-26 18:58:40 +02:00
twinaphex 8b4f900652 menu_displaylist.c - fix bug on 'images history tab' 2017-05-26 18:32:29 +02:00
twinaphex 9f2c15c17c (Frontend) Change MENU_SETTING_ACTION to FILE_TYPE_DIRECTORY 2017-05-26 16:45:28 +02:00
twinaphex 11641645b2 (platform_linux.c) Change these entries to FILE_TYPE_DIRECTORY 2017-05-26 16:34:34 +02:00
twinaphex 43a3298990 Ability to scroll left/right when entry is on a font 2017-05-26 16:20:57 +02:00
twinaphex 1d013b49c6 Update parse_drive_list 2017-05-26 16:17:14 +02:00
twinaphex a40e77b408 Set load_content = false for audio filters/video filters 2017-05-26 16:14:28 +02:00
Jean-André Santoni 0d3593f794 Fix record config loading 2017-05-26 16:10:25 +02:00
twinaphex ecadf864c5 Fixed font selection 2017-05-26 15:57:18 +02:00
twinaphex e2a6a7ad17 Add 'load_content' parameter to parse_drive_list 2017-05-26 15:52:38 +02:00
twinaphex f89f6119e7 Cleanup some dead code 2017-05-26 15:39:55 +02:00
twinaphex 3fbfeadaf3 Cleanup menu_displaylist_ctl 2017-05-26 15:37:24 +02:00
aliaspider 5a92ec15cf (WiiU) fix netplay. 2017-05-26 12:32:45 +01:00
aliaspider e18a5716e3 realloc needed here. 2017-05-26 07:05:52 +01:00
Jean-André Santoni 0a73bccd52 Fix wrong code 2017-05-25 22:43:12 +02:00
Jean-André Santoni 9e1c426a3a Use the new netplay room list in place of the old netplay menu 2017-05-25 17:35:14 +02:00
Jean-André Santoni 329447f51c Fix warning 2017-05-25 15:40:29 +02:00
twinaphex 4f678dfdfc Cleanups 2017-05-25 15:04:55 +02:00
Jean-André Santoni 259cd900da Fix pointer timer 2017-05-25 14:14:38 +02:00
Twinaphex 056af331aa Merge pull request #4972 from alucryd/gcc710
Fix compilation with GCC 7.1.0
2017-05-25 13:44:05 +02:00
Maxime Gauduin f3453500d4 Fix compilation with GCC 7.1.0 2017-05-25 13:36:11 +02:00
Twinaphex 25210d5f2a Merge pull request #4971 from leiradel/master
Remove restriction of stereo-only OGGs
2017-05-24 22:31:28 +02:00
Andre Leiradella c72d47b9d0 Remove restriction of stereo-only OGGs 2017-05-24 21:16:19 +01:00
Twinaphex 37f74de732 (OSX) Buildfix 2017-05-24 20:19:48 +02:00
Twinaphex 62e96b63e4 Merge pull request #4969 from Sephiroth87/patch-1
Fix default record output dir on Mac
2017-05-24 16:50:33 +02:00
Fabio Ritrovato 341d1f9528 Fix default record output dir on Mac 2017-05-24 15:48:45 +01:00
Twinaphex 35e28d2f72 Merge pull request #4968 from casdevel/wasapi
Change shared-mode settings
2017-05-24 16:46:37 +02:00
Zoran Vuckovic eebd7bbeea Change shared-mode settings 2017-05-24 16:25:36 +02:00
aliaspider bf7d19f401 skip loading a core when it is already active when starting a netplay
game.
2017-05-24 15:10:31 +01:00
aliaspider 39adab8cc1 execv call was missing in frontend_linux_exec. 2017-05-24 11:13:56 +01:00
aliaspider ad7cb85fcc cannot assume the buffer size here. 2017-05-24 09:21:28 +01:00
Brad Parker a04b54006d win32: disable winraw input driver for targets older than XP 2017-05-23 21:03:00 -04:00
Andrés d00921b723 Merge pull request #4966 from fr500/fixes
Fix android build
2017-05-23 19:57:21 -05:00
radius 6f39d6da97 fix 2017-05-23 19:56:28 -05:00
radius a98c2c38c0 update copyrights 2017-05-23 19:55:47 -05:00
twinaphex 80b5bcd16c Cut down on some code duplication 2017-05-24 02:02:01 +02:00
twinaphex b70b40969b Set record output/config default dirs for Windows/Linux/Mac 2017-05-24 01:56:09 +02:00
twinaphex a883dfd825 Setup start callbacks for record config/output 2017-05-24 01:13:56 +02:00
twinaphex 9ccdcad906 Add RECORD_CONFIG/RECORD_OUTPUT to default_dirs 2017-05-24 01:11:39 +02:00
twinaphex ef4b5db5e2 Updated the other dir settings as well 2017-05-24 00:23:35 +02:00
twinaphex 0b1e6b437d Simplification 2017-05-24 00:16:56 +02:00
twinaphex c87445f0f9 This should set a sane default setting when pressing 'Start' 2017-05-24 00:15:18 +02:00
twinaphex 907f0db4a3 (platform_linux.c) Style nits 2017-05-23 22:46:12 +02:00
twinaphex bc64b7cd4e Windows buildfix 2017-05-23 21:18:20 +02:00
twinaphex d6b7bba069 Buildfix for PSP/Vita 2017-05-23 21:16:03 +02:00
twinaphex a6789c5717 Update logs 2017-05-23 21:14:53 +02:00
twinaphex 1421d1da30 Use path_mkdir 2017-05-23 20:45:14 +02:00
twinaphex 7b1b137866 Buildfixes 2017-05-23 20:39:56 +02:00
twinaphex ccba9635b6 Update the way default directories are handled 2017-05-23 19:43:58 +02:00
Twinaphex 5f0fcce8d0 Merge pull request #4965 from casdevel/wasapi-driver
Improve logging
2017-05-23 19:30:07 +02:00
Zoran Vuckovic 171694804b Improve logging 2017-05-23 19:20:41 +02:00
aliaspider 385539ccc5 fix stack overflow in netplay_refresh_rooms_cb. 2017-05-23 16:14:25 +01:00
aliaspider 78e5b63b41 (WiiU) salamander fix. 2017-05-23 12:24:37 +01:00
Twinaphex c09a2f9ab7 Merge pull request #4964 from aliaspider/master
(WiiU) enable networking.
2017-05-23 11:32:00 +02:00
aliaspider 934f7c58ba (WiiU) enable networking. 2017-05-23 10:24:23 +01:00
twinaphex 6b57791b0a Don't show up empty entries if there are no playlists 2017-05-23 10:46:42 +02:00
Twinaphex 801956aaaa Merge pull request #4963 from GregorR/netplay-pause-flush
Make sure we flush a netplay pause message, so it isn't forgotten.
2017-05-22 23:28:08 +02:00
Gregor Richards 2681352d53 Make sure we flush a netplay pause message, so it isn't forgotten. 2017-05-22 16:27:22 -04:00
Twinaphex 12e5b93a8b Merge pull request #4960 from casdevel/wasapi-driver
Simplify latency and buffer length calculations
2017-05-22 20:16:35 +02:00
Zoran Vuckovic 8ec72610d8 Remove unused variables 2017-05-22 19:57:05 +02:00
Zoran Vuckovic c045b80a5a Simplify latency and buffer length calculations 2017-05-22 18:47:48 +02:00
Twinaphex b13c8db6b5 Merge pull request #4959 from casdevel/wasapi-driver
Fix incorrect function arguments
2017-05-22 17:46:27 +02:00
Zoran Vuckovic 554519457b Fix incorrect function arguments 2017-05-22 17:29:17 +02:00
Twinaphex 88a44a2c2e Update CHANGES.md 2017-05-22 15:42:58 +02:00
twinaphex defab8842a (FFMPEG FFT) Add 1440p/2160p resolution options 2017-05-22 15:34:33 +02:00
Twinaphex 79d35d158a Use variable 2017-05-22 14:16:48 +02:00
twinaphex 98a3d80e71 Cleanups 2017-05-22 13:57:13 +02:00
Twinaphex fce0ca2a3a Merge pull request #4958 from aliaspider/master
allow easier scheduling of tasks in single threaded mode.
2017-05-22 12:50:43 +02:00
twinaphex ec79d8c46a Cleanups - don't keep setting joypad_info members needlessly - do
it once
2017-05-22 12:49:12 +02:00
twinaphex 371c3e56de Get rid of empty function 2017-05-22 12:43:50 +02:00
twinaphex 10df6d3b54 Rewrite pressed functions 2017-05-22 12:40:19 +02:00
twinaphex f62490b14f Don't have inline static functions 2017-05-22 12:34:34 +02:00
twinaphex d48ec2a9e6 Turn conditional into else if 2017-05-22 12:24:23 +02:00
twinaphex d78e1da956 Cut down on code duplication 2017-05-22 12:21:11 +02:00
aliaspider 801cc57e82 (WiiU) improve task scheduling. 2017-05-22 11:19:26 +01:00
aliaspider b00776b09e allow easier scheduling of tasks in single threaded mode by adding a
condition callback to task_queue_wait.
2017-05-22 11:18:42 +01:00
twinaphex e7d3f36a22 Call input_driver_pressed_keys_internal only once 2017-05-22 12:15:20 +02:00
twinaphex 8cc2886773 Get rid of some implicit memsets 2017-05-22 11:33:53 +02:00
twinaphex 5a46537968 Silence Coverity warning/error 2017-05-22 10:35:58 +02:00
twinaphex ec04fdf2f1 Update CHANGES.md 2017-05-22 10:03:49 +02:00
twinaphex a5d701d2dd Update CHANGES.md 2017-05-22 10:01:38 +02:00
aliaspider dd5bc1a951 (WiiU) fix icon scaling in XMB. 2017-05-22 07:34:30 +01:00
Twinaphex 50fc71a0a6 Merge pull request #4957 from fr500/fixes
[lobby] allow connecting without reloading content
2017-05-22 08:23:24 +02:00
radius 22a07eaf6c add logging 2017-05-22 01:05:39 -05:00
aliaspider 634de19dc9 (WiiU) enable libretrodb. 2017-05-22 06:07:27 +01:00
radius 80f9e6db90 update atv banner 2017-05-21 23:47:59 -05:00
radius 2797aae6cf update atv banner 2017-05-21 23:47:48 -05:00
radius 93a6426fe4 Radius TV ATV hack 2017-05-21 23:47:01 -05:00
radius e8cc77e567 cleanup 2017-05-21 23:43:13 -05:00
radius fd4e3c0448 update changelog 2017-05-21 23:43:13 -05:00
radius 75182bfc6f fix errors due to rebase 2017-05-21 23:43:13 -05:00
radius bae2110bb4 cleanup conditionals 2017-05-21 23:43:12 -05:00
radius d1291f406b allow connecting without reloading content when content_get_crc matches with that of the current loaded game 2017-05-21 23:43:12 -05:00
radius d87b85bdd1 fix LOBBY connect 2017-05-21 23:43:12 -05:00
aliaspider eede1a4978 no need to swap endianess here. 2017-05-22 05:26:13 +01:00
aliaspider db490a69a3 (WiiU) add a menu display driver. enable MATERIALUI and XMB. 2017-05-22 01:45:40 +01:00
Jean-André Santoni 0b1716650b Use additive blending for the ribbon in GL and Vulkan 2017-05-22 01:29:56 +02:00
Jean-André Santoni 1bd07c34c7 Make the Vulkan ribbon consistant with the GL ribbon 2017-05-22 00:39:09 +02:00
twinaphex b2b4cc667c Fix memory leaks 2017-05-22 00:27:41 +02:00
twinaphex f321763b1c Cleanups 2017-05-22 00:12:23 +02:00
twinaphex c0c3bb3dbd Cleanup 2017-05-22 00:11:46 +02:00
twinaphex 4963ff31f0 keyboard_event_xkb.c - cleanup 2017-05-22 00:11:28 +02:00
twinaphex 043574c5be Silence OSX warning 2017-05-22 00:04:11 +02:00
twinaphex a8b91ee910 Respect C89 rules 2017-05-21 23:55:53 +02:00
twinaphex 08521a02ba Move input code to runloop_check_state 2017-05-21 23:53:39 +02:00
twinaphex 954b95cc81 Cleanups 2017-05-21 22:43:40 +02:00
twinaphex 70bbe92154 Simplify input_menu_keys_pressed 2017-05-21 22:32:29 +02:00
twinaphex d7de9facc3 Simplify input_keys_pressed 2017-05-21 22:31:15 +02:00
twinaphex 77d83b4782 Cleanups 2017-05-21 21:55:20 +02:00
twinaphex 8bf552dacd Move this code to retroarch.c 2017-05-21 21:42:13 +02:00
twinaphex f8f25602e8 Get rid of old_input variable 2017-05-21 21:24:01 +02:00
twinaphex a35e452ec3 Use trigger_input only for menu 2017-05-21 21:19:07 +02:00
twinaphex 68ecade37d Revert "Call button combo toggle for quick menu toggle from runloop_check_state"
This reverts commit 4d4b00f877.
2017-05-21 20:57:36 +02:00
twinaphex 4d4b00f877 Call button combo toggle for quick menu toggle from runloop_check_state 2017-05-21 20:53:33 +02:00
twinaphex 3e00c632bd Pass value instead of pointer 2017-05-21 20:47:53 +02:00
twinaphex 184b519f84 Cleanups 2017-05-21 20:43:55 +02:00
twinaphex 136a435c43 Fix keys while in binding mode 2017-05-21 20:42:46 +02:00
Andrés abd6dcd57f Merge pull request #4952 from fr500/fixes
fix delimiter for mitm connect
2017-05-21 12:13:02 -05:00
radius a09a1030c0 fix delimiter for mitm connect 2017-05-21 12:04:50 -05:00
twinaphex 73cc655de7 Cleanups 2017-05-21 18:05:21 +02:00
twinaphex fd3025ff40 Memcpy the data 2017-05-21 18:04:58 +02:00
twinaphex e49c71b142 Cleanups 2017-05-21 17:10:53 +02:00
twinaphex c92bf4d5e8 Cleanups 2017-05-21 16:43:40 +02:00
twinaphex c64c072b43 runloop_cmd_triggered no longer needed 2017-05-21 16:36:27 +02:00
twinaphex cae04ff5f2 Cleanups 2017-05-21 16:36:08 +02:00
twinaphex 1d6b24b545 Optimize pause checks 2017-05-21 16:31:14 +02:00
Jean-André Santoni f25b60a7ab Display the Reboot entry in GLUI if HAVE_LAKKA 2017-05-21 15:32:09 +02:00
Jean-André Santoni bcbcabffe0 Reorder the reboot and shutdown entries 2017-05-21 15:29:33 +02:00
Twinaphex 450ab7de40 Merge pull request #4951 from leiradel/master
* Add a mutex to prevent issues if audio_mixer_mix is used in a diffe…
2017-05-21 15:26:53 +02:00
Jean-André Santoni 80f06b9574 Display thumbnails for Load Content->Collections 2017-05-21 15:08:56 +02:00
twinaphex aeddb18e31 Rewrite netplay checks 2017-05-21 14:18:10 +02:00
twinaphex 759b963c2f Rewrite menu toggle check 2017-05-21 13:54:17 +02:00
twinaphex d08b785f9d Rewrite quit key handling 2017-05-21 13:50:59 +02:00
twinaphex 24c7bcb196 Rewrite more code 2017-05-21 13:39:29 +02:00
twinaphex 1e02bd3455 Rewrite fast forward code 2017-05-21 13:32:36 +02:00
twinaphex d1b50acfee Rewrite check shader next/prev 2017-05-21 13:26:25 +02:00
twinaphex 45477658e1 Rewrite cheats 2017-05-21 13:17:48 +02:00
twinaphex d029cafdd9 CLeanups 2017-05-21 13:14:21 +02:00
twinaphex f85ab1f535 Cleanups 2017-05-21 13:06:48 +02:00
twinaphex 66b1ad99d4 Rewrite RARCH_PAUSE_TOGGLE 2017-05-21 12:59:36 +02:00
twinaphex f847548178 Cleanup 2017-05-21 12:57:28 +02:00
Andre Leiradella a088113f4c Use HAVE_THREADS around the mutex 2017-05-21 11:57:10 +01:00
twinaphex d61e5504a7 Get rid of static functions 2017-05-21 12:09:24 +02:00
twinaphex a19128422d Cleanup 2017-05-21 12:06:08 +02:00
twinaphex cd4c17624a Create check_reset 2017-05-21 12:00:03 +02:00
twinaphex 004a299b74 Create check_savestates 2017-05-21 11:52:36 +02:00
twinaphex be2fb7b10d Refactor savestate slot increase/decrease 2017-05-21 11:46:26 +02:00
twinaphex 999f7971ed Move macros 2017-05-21 11:36:47 +02:00
twinaphex 642e65f53f Add further conditional checks 2017-05-21 10:56:06 +02:00
twinaphex 3ad2d593fb Cleanups 2017-05-21 10:37:39 +02:00
twinaphex e5059a237a Cleanups 2017-05-21 10:34:50 +02:00
twinaphex c1493eb579 Cleanup 2017-05-21 10:31:25 +02:00
twinaphex 8c796f694f Windows buildfix 2017-05-21 10:04:02 +02:00
Jean-André Santoni 7197255211 (XMB) Fix dialog slice on 320x240 viewports 2017-05-21 09:55:50 +02:00
twinaphex c00e3b7b67 Another update 2017-05-21 09:43:59 +02:00
twinaphex 5cbe9dea09 Use local string for set_thumbnail_content function 2017-05-21 09:43:15 +02:00
twinaphex a0924a414f Get rid of some unnecessary function callback wrapper functions 2017-05-21 09:30:32 +02:00
twinaphex 0bb1de9561 Cleanups 2017-05-21 09:16:45 +02:00
twinaphex f653cf4e7c Make these variables part of this struct 2017-05-21 09:07:35 +02:00
aliaspider be3240a1a1 (WiiU) enable HAVE_LANGEXTRA. 2017-05-21 04:36:55 +01:00
aliaspider a03b3238cb (WiiU) update font atlas texture when required. 2017-05-21 04:36:26 +01:00
aliaspider b17e76d8b7 (WiiU) add freetype and stb font support.
freetype disabled by default due to requiring an external library.
2017-05-21 04:22:32 +01:00
aliaspider 1f13d616cc (WiiU) font renderer: fix vertical offset. 2017-05-21 04:17:38 +01:00
aliaspider 8dee95651f (WiiU) add a font driver. 2017-05-21 03:05:41 +01:00
Andre Leiradella 0c8f9663f2 * Add a mutex to prevent issues if audio_mixer_mix is used in a different thread
* Use free instead of memalign_free to free the OGG data in audio_mixer_destroy (ideally this should be a responsibility of the caller, just like with the WAV case)
* Re-use the voice in audio_mixer_stop
2017-05-21 00:23:07 +01:00
aliaspider 47d0cb053e fix resampler_sinc_process_c. 2017-05-20 23:12:56 +01:00
twinaphex e5f788b28c Update griffin 2017-05-20 23:16:49 +02:00
twinaphex e02cfe8cb0 Call core_poll at top of runloop_iterate only once 2017-05-20 22:55:34 +02:00
aliaspider ce61db1473 (WiiU) fix salamander build. 2017-05-20 21:34:50 +01:00
twinaphex 26e5c28208 Updates 2017-05-20 22:04:10 +02:00
twinaphex c962ad6009 Update 2017-05-20 21:56:32 +02:00
twinaphex d8d11c5dcc (x11_input.c) Cleanups 2017-05-20 20:57:14 +02:00
twinaphex f83a26c8b0 (udev_input.c) Simplifications 2017-05-20 20:50:23 +02:00
aliaspider 94615dfd35 remove .gitmodules 2017-05-20 19:38:01 +01:00
twinaphex 9f6dc975da Simplify udev_input.c 2017-05-20 20:35:42 +02:00
Twinaphex 8b4c92291f Merge pull request #4948 from Maschell/wiiu_controller_patcher
[Wii U] Adding support for HID Controllers
2017-05-20 20:28:58 +02:00
Maschell bd8d3d66d7 [Wii U] Using the controller_patcher lib files directly instead of including it as a submodule 2017-05-20 20:23:01 +02:00
Maschell a8a2d7730f Merge remote-tracking branch 'refs/remotes/libretro/master' into wiiu_controller_patcher 2017-05-20 20:19:04 +02:00
twinaphex ddf779008a Update 2017-05-20 19:48:02 +02:00
twinaphex 4f51341fc0 Update 2017-05-20 19:47:02 +02:00
twinaphex 46182e090b Merge keyboard_event_win32.cpp with win32_common.cpp 2017-05-20 19:46:27 +02:00
twinaphex 778ee176cc Update griffin 2017-05-20 19:44:35 +02:00
twinaphex 5a9dbf7e4f Merge keyboard files for udev/x11 2017-05-20 19:44:04 +02:00
Maschell 2da8a18086 Merge remote-tracking branch 'refs/remotes/libretro/master' into wiiu_controller_patcher 2017-05-20 19:27:13 +02:00
Maschell 7a2c09e9ce [Wii U ] Proper order of the HID devices.
Added individual names for the HID devices.
2017-05-20 19:26:12 +02:00
Maschell b34abd4c17 [Wii U] Added a missing target to the makefile 2017-05-20 19:25:33 +02:00
twinaphex 188d213c8d Cleanups 2017-05-20 19:24:21 +02:00
twinaphex e4055e0d1b Add headers 2017-05-20 19:05:09 +02:00
twinaphex b4f0ebca4d Cleanups 2017-05-20 17:55:26 +02:00
twinaphex b009b87530 Make this check a bit faster 2017-05-20 17:54:06 +02:00
twinaphex b7b7c67ca3 Windows buildfix 2017-05-20 17:47:56 +02:00
twinaphex 1ac44d8eca Fix hidden directories/files no longer showing up 2017-05-20 17:45:02 +02:00
twinaphex 0742ebec21 Get rid of local_enable variable 2017-05-20 16:32:57 +02:00
twinaphex eec0613c10 Add header include 2017-05-20 16:24:32 +02:00
twinaphex ff8a7f22fc Header include cleanup 2017-05-20 15:52:07 +02:00
twinaphex 2139abe8b7 Cut down on code duplication 2017-05-20 15:50:38 +02:00
twinaphex d339eb327c Don't implement read_stdin for Xbox 2017-05-20 15:09:19 +02:00
twinaphex e4210f5b00 Can't do this on Xbox 2017-05-20 15:02:34 +02:00
twinaphex 58787e6d89 (libretro-common) Create stdin_stream.c 2017-05-20 14:58:51 +02:00
twinaphex 4ed3e750d4 sinc_resampler - cleanups - set process function pointer
dynamically
2017-05-20 14:46:53 +02:00
twinaphex c0431b34c9 Turn some variables static 2017-05-20 14:31:07 +02:00
twinaphex 3ae54e0eed Move send_udp_packet to libretro-common 2017-05-20 14:28:18 +02:00
twinaphex bbef084955 Use getaddrinfo_retro even for dependencies 2017-05-20 14:22:30 +02:00
twinaphex 5f75ce3f12 Cleanups 2017-05-20 14:17:14 +02:00
twinaphex c1190551b2 Get rid of RUNLOOP_STATE_NONE 2017-05-20 14:14:27 +02:00
twinaphex 6fea8f14c5 Call video_driver_cb_has_focus directly 2017-05-20 14:11:50 +02:00
twinaphex bd424da015 Turn video_driver_data and current_video into static variables again 2017-05-20 14:09:24 +02:00
twinaphex 4333e3d5e7 Cleanups 2017-05-20 14:02:16 +02:00
twinaphex 57b7398bdd Move audio driver deinit 2017-05-20 13:15:14 +02:00
Maschell 2ac91822c3 Merge remote-tracking branch 'refs/remotes/libretro/master' into wiiu_controller_patcher 2017-05-20 13:14:13 +02:00
Maschell fa0d82b188 [Wii U] Fixing the .rpx build 2017-05-20 13:13:52 +02:00
twinaphex 5bcacf9b49 Create video_driver_cb_has_focus 2017-05-20 12:02:24 +02:00
twinaphex 40a287a7c1 Turn function into static function 2017-05-20 11:34:51 +02:00
Twinaphex e44475f581 Merge pull request #4946 from casdevel/gdi-winraw
Allow raw input driver to be used with GDI
2017-05-20 09:41:41 +02:00
Zoran Vuckovic 8535e766c8 Alow raw input driver to be used with GDI 2017-05-20 09:13:00 +02:00
Maschell 58543a43ff Merge remote-tracking branch 'refs/remotes/libretro/master' into wiiu_controller_patcher 2017-05-19 22:24:22 +02:00
twinaphex efce4d0abf Revert "Add cb_set_shader_coords"
This reverts commit 06df028722.
2017-05-19 21:21:40 +02:00
twinaphex 06df028722 Add cb_set_shader_coords 2017-05-19 21:13:44 +02:00
Twinaphex 8a12bb9f04 Merge pull request #4945 from casdevel/d3d-winraw
Alow raw input driver to be used with Direct3D
2017-05-19 19:54:25 +02:00
twinaphex d6c80d7de7 (D3D) Menu driver - don't use current_shader interface 2017-05-19 19:53:19 +02:00
twinaphex d8f5065d64 Add cb_set_shader_mvp 2017-05-19 19:52:33 +02:00
twinaphex 64fdadf60f Use cb_shader_use 2017-05-19 19:42:34 +02:00
twinaphex 452c02653e Turn gl_set_shader_viewport into gl_set_shader_viewports 2017-05-19 19:39:46 +02:00
Zoran Vuckovic 2eb7499b64 Alow raw input driver to be used with Direct3D 2017-05-19 19:36:14 +02:00
twinaphex 79bcc5efc9 Style nits 2017-05-19 19:16:05 +02:00
twinaphex a87f3ae3cd Prevent explicit NULL pointer dereference warning 2017-05-19 18:54:40 +02:00
twinaphex 16996aad6d Make thumbnail show too for IMAGEVIEWER type 2017-05-19 18:45:59 +02:00
Twinaphex 65fd5c406b Merge pull request #4943 from casdevel/winraw-input
Fix one pointer cast warning
2017-05-19 16:56:39 +02:00
Zoran Vuckovic 25e08cf6c4 Fix one pointer cast warning 2017-05-19 16:48:03 +02:00
twinaphex a830051076 Update gx_gfx.c 2017-05-19 16:33:59 +02:00
twinaphex 30d032ba5a Prevent some calls to menu_driver_is_alive() 2017-05-19 16:29:11 +02:00
twinaphex 21a58f13ec Revert this - seems to have come at a performance cost 2017-05-19 16:26:00 +02:00
twinaphex 1ffb1f4feb Use wrapper function for memcmp 2017-05-19 16:20:30 +02:00
Twinaphex 51bac3ef73 Merge pull request #4942 from casdevel/wgl-winraw
Allow raw input driver with OpenGL driver under Windows
2017-05-19 16:19:13 +02:00
Zoran Vuckovic 9358b0c3f3 Allow raw input driver with OpenGL driver under Windows 2017-05-19 16:13:32 +02:00
twinaphex c5485152aa Do away with conditional inside build_info 2017-05-19 15:59:28 +02:00
twinaphex cb2e898d8c Cleanups 2017-05-19 15:31:14 +02:00
twinaphex 59fb7700b8 Combine menu_driver.c and menu_display.c 2017-05-19 15:25:14 +02:00
twinaphex fd99239c99 Cleanup 2017-05-19 15:11:13 +02:00
Twinaphex 5e0eec8857 Remove unused variable 2017-05-19 14:53:25 +02:00
Twinaphex e42ed3e3df (iOS) Should fix some of the crashes 2017-05-19 14:46:59 +02:00
Twinaphex 0e4f1a400f Update ios 2017-05-19 14:38:18 +02:00
twinaphex 2a54544eb3 Add cb_shader_use to video_frame_info 2017-05-19 14:24:19 +02:00
twinaphex 4144c8de35 Prevent coverity warning 2017-05-19 13:54:43 +02:00
twinaphex b086b72ff9 (winraw_input.c) Minor cleanups 2017-05-19 12:58:44 +02:00
Twinaphex 6ef00432cb Merge pull request #4940 from casdevel/shader-glsl-revert
Fix crash in GLSL shader driver
2017-05-19 12:35:30 +02:00
Zoran Vuckovic 54b5d289b0 Fix crash in GLSL shader driver 2017-05-19 12:14:51 +02:00
twinaphex f185c1ef1f (MSVC) Buildfix 2017-05-19 06:30:49 +02:00
twinaphex c6aba1af2f Cleanups 2017-05-19 06:17:20 +02:00
twinaphex 9dbd605a66 Update 2017-05-19 05:56:20 +02:00
twinaphex 231e499714 Add winraw_input.c 2017-05-19 05:54:33 +02:00
twinaphex 2fb5e821cf Update Font Path menu option 2017-05-19 04:44:10 +02:00
twinaphex 24ce77155a Cleanup 2017-05-19 03:52:04 +02:00
twinaphex 9d74212a41 Buildfix 2017-05-19 03:35:32 +02:00
twinaphex b0398c1482 C89 build fixes 2017-05-19 03:34:53 +02:00
twinaphex fa9fe88547 Fix filebrowser issues 2017-05-19 02:39:33 +02:00
twinaphex 236f5b3514 Fix selecting image with Menu Wallpaper 2017-05-19 01:50:15 +02:00
twinaphex 6d20fa96e0 Revert "Fix #4920"
This reverts commit f341f70705.
2017-05-19 01:37:45 +02:00
twinaphex 89dddaf9f0 Cleanups 2017-05-19 01:19:38 +02:00
Jean-André Santoni f341f70705 Fix #4920 2017-05-19 00:38:20 +02:00
twinaphex 4d24153870 Turn into static function 2017-05-19 00:07:24 +02:00
Twinaphex 28cc34bf14 Merge pull request #4936 from casdevel/winraw-input
Add Windows raw input driver
2017-05-18 21:04:11 +02:00
twinaphex ed07ba0852 Update griffin.c 2017-05-18 20:34:34 +02:00
Zoran Vuckovic 1bc945e3dc Add Windows raw input driver 2017-05-18 18:48:41 +02:00
twinaphex 59b3344e72 Combine video_driver.c and video_shader_driver.c 2017-05-18 14:47:24 +02:00
twinaphex 4e7b376e18 Cleanups 2017-05-18 14:31:40 +02:00
twinaphex cb529822c6 Cleanups 2017-05-18 14:27:37 +02:00
twinaphex 374f8e8a19 Cleanups 2017-05-18 14:22:50 +02:00
twinaphex 2f72506959 Bind default function to filter_type callback 2017-05-18 14:20:05 +02:00
twinaphex 9d11133edf Cleanups - get rid of if conditionals 2017-05-18 14:18:01 +02:00
twinaphex 1411b9ee6e Do away with all these if conditionals 2017-05-18 14:06:50 +02:00
twinaphex d7ed925488 Cleanups 2017-05-18 13:40:47 +02:00
twinaphex 49bf9b62ae Cleanups 2017-05-18 09:46:04 +02:00
twinaphex d181f70303 Don't call video_viewport_get_system_av_info inside gfx/video_driver.c 2017-05-18 09:44:51 +02:00
twinaphex a0fcbf85a1 Cleanup 2017-05-18 09:36:59 +02:00
twinaphex 838c1eb93a Prevent leaks 2017-05-18 09:17:30 +02:00
twinaphex a137332218 Prevent overflowed array index read 2017-05-18 08:08:41 +02:00
twinaphex c53bb90b75 Get rid of error_msg label 2017-05-18 08:04:24 +02:00
twinaphex 82d37d2036 Don't loop audio files by default 2017-05-18 07:27:41 +02:00
twinaphex 735801a317 Create audio_driver_mixer_remove_stream static function 2017-05-18 06:19:37 +02:00
twinaphex 5343648dc9 Start creating state machien for audio mixer streams 2017-05-18 06:16:16 +02:00
twinaphex 312a2b5c80 Cleanups/try to prevent memory leaks with task_audio_mixer.c 2017-05-18 05:12:41 +02:00
twinaphex 4e04e95713 Buildfix 2017-05-18 04:03:49 +02:00
twinaphex c9af58494b Set video_context_driver functions to null functions if not
already set
2017-05-18 03:53:05 +02:00
twinaphex 3f7a30a4b3 Start hooking up dummy callback functions to video_context_data
so that conditionals aren't necessary
2017-05-18 03:37:02 +02:00
twinaphex 941a5d4f94 Go through function callback for swap_buffers as well 2017-05-18 03:05:07 +02:00
twinaphex 86ee08b7a7 Add video context driver update window title callback
to video_frame_info_t
2017-05-18 02:53:12 +02:00
twinaphex 668813cca9 (task_image.c) Refactor code 2017-05-18 01:31:14 +02:00
twinaphex 9a90477c6d Reimplement task_audio_mixer.c 2017-05-18 01:19:47 +02:00
twinaphex b3faed3906 Remove NBIO_STATUS_TRANSFER_PARSE_FREE to NBIO_STATUS_TRANSFER_FINISHED 2017-05-18 00:39:39 +02:00
twinaphex 4ad8d3c917 Remove NBIO_STATUS_POLL 2017-05-18 00:09:17 +02:00
twinaphex 80512800e1 (task_audio_mixer.c) Further work on task_audio_mixer.c 2017-05-17 14:13:02 +02:00
twinaphex 21341c5b3a Rework task_audio_mixer.c to use NBIO 2017-05-17 14:04:33 +02:00
twinaphex 2e490037ab Cleanups 2017-05-17 09:49:14 +02:00
twinaphex f9960b5f8d Typo 2017-05-17 09:43:41 +02:00
twinaphex 9096038e20 Correct set_thumbnail_system/set_thumbnail_content functions 2017-05-17 09:32:17 +02:00
Twinaphex 82c6dd1f3d Merge pull request #4929 from fr500/master
look into the history playlist too
2017-05-17 09:12:13 +02:00
twinaphex f51aa6e4ec Add TODO/FIXME note 2017-05-17 09:10:58 +02:00
radius 6e45af3858 look into the history playlist too 2017-05-17 02:08:17 -05:00
twinaphex 1178673380 Add PS4 ifdefs 2017-05-17 09:02:04 +02:00
twinaphex 7a2d799a6c Cleanups 2017-05-17 08:59:57 +02:00
Francisco José García García 2171439647 [VITA] buildfix 2017-05-17 08:55:33 +02:00
twinaphex 65b740a5ff Use some local variables 2017-05-17 08:51:49 +02:00
twinaphex 54c526f1e2 Cache menu_driver_is_alive function call 2017-05-17 08:47:23 +02:00
twinaphex ffac0c119e Cleanups 2017-05-17 07:55:02 +02:00
twinaphex fe4622fd3b Cleanups 2017-05-17 07:51:37 +02:00
twinaphex dd53162519 Add define for IPv6 code 2017-05-17 07:24:17 +02:00
twinaphex acaf65a8f7 Add in define if missing 2017-05-17 07:23:16 +02:00
twinaphex 5635894178 Buildfix 2017-05-17 07:05:15 +02:00
twinaphex be22290495 Rename to inet_ntop_compat 2017-05-17 07:00:47 +02:00
twinaphex 2749a6ada2 Add header include 2017-05-17 05:45:25 +02:00
twinaphex 8330a0ee46 Style nits 2017-05-17 05:36:02 +02:00
Twinaphex 3e69214d78 Merge pull request #4928 from fr500/master
add inet_ntop
2017-05-17 05:33:41 +02:00
radius 2f1c3fb437 add inet_ntop 2017-05-16 22:21:36 -05:00
twinaphex 204f0183e1 Header cleanups 2017-05-17 05:06:52 +02:00
twinaphex 529349019d Combine menu_navigation_ctl and menu_driver_ctl 2017-05-17 04:57:43 +02:00
twinaphex c0027ae9a1 Cleanup 2017-05-17 04:32:32 +02:00
twinaphex 7e08752da2 Revert "We can now change menu drivers on the fly"
This reverts commit 85afd633e4.
2017-05-17 04:14:29 +02:00
twinaphex aa10eecbbf Get rid of ifdef for menu_shader_pipeline 2017-05-17 03:40:57 +02:00
twinaphex 99466cba86 Cleanups 2017-05-17 03:35:20 +02:00
twinaphex 4436d5998b Cleanups 2017-05-17 03:30:37 +02:00
twinaphex 5dcebe4718 Cleanups 2017-05-17 03:25:23 +02:00
twinaphex 3a6ada1652 Cleanups 2017-05-17 03:19:19 +02:00
Andrés 64c22de3ae Merge pull request #4927 from fr500/master
use inet_ntoa if INET6_ADDRSTRLEN is not defined
2017-05-16 20:15:32 -05:00
radius a81c01729b use inet_ntoa if INET6_ADDRSTRLEN is not defined 2017-05-16 20:13:58 -05:00
twinaphex 85afd633e4 We can now change menu drivers on the fly 2017-05-17 03:04:36 +02:00
twinaphex ee8dc151a3 Combine menu_driver.c and menu_navigation.c 2017-05-17 03:00:32 +02:00
twinaphex 5072de4c0f (menu_navigation.c) Cleanup 2017-05-17 02:48:52 +02:00
Twinaphex e6f5270c3d Merge pull request #4926 from orbea/Wnonnull
Silence a -Wnonnull warning
2017-05-17 02:34:34 +02:00
orbea 649205178f Silence a -Wnonnull warning 2017-05-16 16:14:20 -07:00
twinaphex efacf637db Cleanup 2017-05-16 23:12:03 +02:00
twinaphex acbf11931b Move code 2017-05-16 22:46:56 +02:00
twinaphex 717709ef9e (wgl_ctx.cpp) Cleanups 2017-05-16 22:46:09 +02:00
twinaphex 7b7a31d944 Should link now 2017-05-16 22:43:21 +02:00
twinaphex f24a73351c Only use wglGetProcAddress for OpenGL 2017-05-16 22:40:47 +02:00
twinaphex 7cb78d499c Rework WANT_WGL rules 2017-05-16 22:33:48 +02:00
twinaphex 0a1f1237aa Comment out inet_ntop for now 2017-05-16 22:16:41 +02:00
twinaphex 4df6151e14 video_driver_init_filter - cleanup 2017-05-16 21:36:33 +02:00
twinaphex dd9034248b Take out HAVE_SHADERPIPELINE ifdef 2017-05-16 21:25:15 +02:00
twinaphex 0aeb683444 Style nits/cleanups 2017-05-16 20:33:14 +02:00
twinaphex 944eff06b8 Cleanup 2017-05-16 20:25:54 +02:00
twinaphex 2562391167 Split up runloop message queue code from netplay_log_connection 2017-05-16 20:24:08 +02:00
twinaphex eb409328ec Style nits 2017-05-16 20:15:57 +02:00
Twinaphex 808b973752 (OSX) Silence warnings 2017-05-16 08:44:17 +02:00
Twinaphex 0f91cf67fc Merge pull request #4923 from fr500/master
Netplay refinements
2017-05-16 08:05:08 +02:00
radius 54ce598a00 cut code duplication further 2017-05-16 00:34:28 -05:00
radius 1de95c6413 further refinement of the netplay workflow 2017-05-16 00:18:29 -05:00
radius ea0202a39d LAN rooms work on android although it seems to be always using IPv6 now 2017-05-16 00:18:28 -05:00
radius d749790521 add sublabel indicating the room type 2017-05-16 00:18:28 -05:00
twinaphex 140ad6ab98 Update msg_hash_pt_br.c 2017-05-16 05:47:17 +02:00
twinaphex e3213cc8a7 Use string_is_equal_fast macros 2017-05-16 05:46:05 +02:00
twinaphex 1bf0175da4 Try to prevent string message leaking in tasks 2017-05-16 04:50:20 +02:00
twinaphex 61a4e94649 Use string_is_equal_fast 2017-05-16 04:04:21 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
Andrés 98a79f2279 Update CHANGES.md 2017-05-15 20:13:39 -05:00
Twinaphex c035f9597a Merge pull request #4921 from fr500/master
NETPLAY menu improvements
2017-05-16 03:00:19 +02:00
twinaphex 7e89335392 (task_wifi.c) Prevent memory leak for title 2017-05-16 02:52:30 +02:00
twinaphex 8e76c4a131 Prevent title memory leak 2017-05-16 02:48:54 +02:00
radius c783dbff28 remove some more code duplication, lan rooms now show up correctly on left-right 2017-05-15 19:45:23 -05:00
Brad Parker b8cf967914 utf8 bom fixes for msvc 2017-05-15 20:41:04 -04:00
radius 4710bfcf43 split this function to avoid some code duplication 2017-05-15 19:25:56 -05:00
radius a98033f375 make the --start netplay host-- entry context sensitive 2017-05-15 18:58:46 -05:00
twinaphex 2f9eb86a59 Cleanup 2017-05-16 00:02:26 +02:00
twinaphex c21abd28f8 Implement audio_mixer_stopped differently 2017-05-15 23:15:22 +02:00
twinaphex b8cea125e4 Create stub function for looping sounds 2017-05-15 23:03:54 +02:00
Jean-André Santoni 8e47e7e8b3 Fix #4920 2017-05-15 21:24:27 +02:00
twinaphex eddb655eb9 Split off user_language from settings struct 2017-05-15 20:41:04 +02:00
twinaphex 15142be8ee Cleanups 2017-05-15 20:30:37 +02:00
twinaphex 6b4d4447b2 Cleanups 2017-05-15 20:24:12 +02:00
twinaphex 69f9bc840d Remove unused variable 2017-05-15 19:16:40 +02:00
twinaphex 7bf34c48a9 Cal xmb_list_get_selection only once 2017-05-15 19:00:24 +02:00
Jean-André Santoni 17837ec81d Display thumbnails in the Database Manager 2017-05-15 13:05:33 +02:00
twinaphex 63762e8850 (menu_input.c) Cleanups 2017-05-15 11:34:12 +02:00
twinaphex 5fc5cb4962 Cleanups 2017-05-15 11:25:45 +02:00
Twinaphex 2becbaf4e2 Merge pull request #4917 from aliaspider/master
Vulkan: font driver updates.
2017-05-15 11:24:42 +02:00
twinaphex 67610b8263 Update task_audio_mixer.c 2017-05-15 11:07:12 +02:00
twinaphex 375b588847 Cleanups 2017-05-15 09:29:44 +02:00
twinaphex d28ec842f3 Add menu_driver_push_list 2017-05-15 08:29:47 +02:00
twinaphex 575095c8e6 Add menu_driver_load_image 2017-05-15 08:21:02 +02:00
twinaphex 076a83a62b Remove some RARCH_MENU_CTL_ actions 2017-05-15 08:03:35 +02:00
twinaphex f584d1cea5 Add menu_driver_populate_entries 2017-05-15 07:59:24 +02:00
twinaphex 1fef134f04 Create menu_driver_navigation_set 2017-05-15 07:56:22 +02:00
aliaspider b503407abb Vulkan: font driver updates.
- submit font texture staging_to_dynamic copy with a seperate command
buffer. fixes a validation issue caused by using vkCmdCopyImage during a
render pass.
- limit copies to updated glyphs.
2017-05-15 05:52:38 +01:00
aliaspider 36137d22e5 Vulkan: use the command buffer provided as parameter in
vulkan_copy_staging_to_dynamic.
2017-05-15 05:35:17 +01:00
twinaphex d01b81749d Cleanups 2017-05-15 05:32:23 +02:00
twinaphex a0256fa321 Update CHANGES.md 2017-05-15 05:21:28 +02:00
twinaphex bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
twinaphex 06f3feec61 Cleanups 2017-05-15 04:39:09 +02:00
twinaphex 160c8167d6 Cleanups 2017-05-15 04:36:48 +02:00
twinaphex e2c7671e9f Create rarch_menu_running/rarch_menu_running_finished 2017-05-15 04:31:40 +02:00
twinaphex c70916ca31 Move callback to menu_displaylist.c 2017-05-15 02:57:47 +02:00
twinaphex b9148c1d70 Cleanups 2017-05-15 02:50:14 +02:00
twinaphex 8bdcb2f123 Push callback to task_push_wifi_scan 2017-05-15 02:44:24 +02:00
twinaphex 56fb642119 Rewrite task_netplay_lan_scan.c - pass callback function to task 2017-05-15 02:09:26 +02:00
Twinaphex 0655b49408 Merge pull request #4916 from aliaspider/master
Vulkan: Add unicode support.
2017-05-15 01:41:55 +02:00
aliaspider 1122a7c585 Vulkan: Add unicode support. 2017-05-15 00:37:50 +01:00
twinaphex c898ef1d6d Attempt to copy over audio mixer data 2017-05-15 01:28:46 +02:00
Twinaphex ba5f7ff5e4 Merge pull request #4915 from leiradel/master
Fix the parameter name
2017-05-15 00:26:27 +02:00
Andre Leiradella 9f5ec1cc42 Fix the parameter name 2017-05-14 23:14:09 +01:00
twinaphex b4e3a22fe6 Update 2017-05-14 23:59:06 +02:00
twinaphex 949a5c76fe Cleanup 2017-05-14 23:58:48 +02:00
twinaphex 6741423410 Fix mistake 2017-05-14 23:46:02 +02:00
twinaphex 3410d5c4e4 Cleanups 2017-05-14 23:36:30 +02:00
Twinaphex 2fc45fb5ac Merge pull request #4914 from leiradel/master
Pass the correct structure to the callback
2017-05-14 23:32:25 +02:00
twinaphex ec96fe89e9 Add callback function 2017-05-14 23:30:45 +02:00
Andre Leiradella eb08a3dbef Pass the correct structure to the callback 2017-05-14 22:29:52 +01:00
twinaphex 3afd2497d2 Add test 2017-05-14 23:27:03 +02:00
twinaphex b0746a4910 Update 2017-05-14 23:14:50 +02:00
twinaphex dd4146e302 Try to write initial implementation of audio mixer task 2017-05-14 23:12:27 +02:00
Twinaphex 2ee3f12c9d Merge pull request #4913 from leiradel/master
Use next_pow2
2017-05-14 23:02:28 +02:00
Andre Leiradella 4a611b5096 Use next_pow2 2017-05-14 21:59:29 +01:00
twinaphex b13ca2df97 (task_patch.c) Cleanup 2017-05-14 22:23:05 +02:00
twinaphex 4afa2871ab Add comments 2017-05-14 21:00:25 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
Twinaphex 1345e97f8c Merge pull request #4911 from sergiobenrocha2/master
Change default overlay in mobile to flat/retropad.cfg
2017-05-14 20:36:09 +02:00
twinaphex c6dd51da35 Cleanups 2017-05-14 20:25:13 +02:00
twinaphex 9e26332c48 Cleanups 2017-05-14 20:23:10 +02:00
Sérgio Benjamim b8c3c6e405 Change default overlay in mobile to flat/retropad.cfg 2017-05-14 14:29:39 -03:00
twinaphex 0e34d362d3 Fix video_driver_is_focused - keyboard should work again with
threaded video
2017-05-14 18:52:36 +02:00
twinaphex 52c1d398a2 (audio_driver.c) Cleanup 2017-05-14 17:40:17 +02:00
twinaphex ed40b13ea0 (task_image.c) Cleanups 2017-05-14 17:32:07 +02:00
twinaphex f98473b9da (task_image.c) Cleanups 2017-05-14 08:09:21 +02:00
twinaphex a4ac0df389 (task_image.c) Cleanups 2017-05-14 08:06:40 +02:00
twinaphex 13d6827689 (task_image.c) Cleanups 2017-05-14 07:58:43 +02:00
twinaphex f70da4c2e2 Cleanups 2017-05-14 05:06:01 +02:00
twinaphex 2df6b201da Cleanup 2017-05-14 05:02:17 +02:00
twinaphex fe56e4ffea Grab from global pointer 2017-05-14 05:00:24 +02:00
twinaphex e6bcb64ced Add name_ips/name_bps/name_ups 2017-05-14 04:52:34 +02:00
twinaphex 70457e06d8 Cleanups 2017-05-14 04:50:57 +02:00
twinaphex 055044be96 Set these values back to defaults here 2017-05-14 04:13:08 +02:00
twinaphex c78ce113b4 CXX_BUILD buildfix 2017-05-14 03:29:26 +02:00
twinaphex e5ed82858f C89_BUILD buildfix 2017-05-14 03:24:59 +02:00
Twinaphex 29121389e1 Merge pull request #4907 from leiradel/master
Taskified cheevos
2017-05-14 03:21:07 +02:00
Andre Leiradella 4764ba8770 Removed debug logs; added activity log 2017-05-14 01:20:07 +01:00
twinaphex fbe307ece7 Add file to Griffin 2017-05-14 02:04:06 +02:00
twinaphex def3343272 Add empty audio_mixer file 2017-05-14 02:03:40 +02:00
Andre Leiradella fb5d31816d Taskified cheevos 2017-05-14 01:01:17 +01:00
twinaphex c485b5b292 Add ogg and wav to file_path_str.c 2017-05-14 01:40:52 +02:00
twinaphex 88dbbb284d Add ips_pref/bps_pref/ups_pref to content_information_ctx 2017-05-14 01:12:47 +02:00
twinaphex 88c04be7a4 Cleanups 2017-05-14 01:04:37 +02:00
twinaphex 7dfbfef995 Cleanups 2017-05-14 00:54:58 +02:00
twinaphex 71499abf1f (task_patch.c) Cleanups 2017-05-14 00:52:56 +02:00
twinaphex 0185f71bab Cleanups 2017-05-13 23:47:25 +02:00
twinaphex 6dd3a84bc9 Cleanup 2017-05-13 23:41:13 +02:00
twinaphex 581333f222 Get rid of implicit memset 2017-05-13 23:24:27 +02:00
twinaphex b75f242a7f Cleanups 2017-05-13 22:35:10 +02:00
twinaphex 484fff5e28 Cleanups 2017-05-13 22:30:45 +02:00
twinaphex bd7970b9b7 Cleanups 2017-05-13 22:28:19 +02:00
twinaphex 8ae708576f task_patch.c - cleanups 2017-05-13 22:21:57 +02:00
twinaphex 6433cde3c0 Cleanups 2017-05-13 21:06:57 +02:00
twinaphex dd79c9a236 Pass is_idle to menu driver render function 2017-05-13 21:06:06 +02:00
twinaphex a7d09733a6 Get rid of rarch_ctl/runloop_ctl calls from menu_display.c 2017-05-13 20:00:51 +02:00
twinaphex 34870290cd Add menu_display_has_windowed - don't query video_driver_has_windowed
every time
2017-05-13 19:43:30 +02:00
twinaphex b22d7902f1 Turn macro back into function 2017-05-13 19:37:16 +02:00
twinaphex 17a15273ba Create function out of video_driver_is_focused - no longer
call video_driver_context_focus from video driver
2017-05-13 19:19:49 +02:00
twinaphex d4756f83e5 Stop calling video_driver_context_has_windowed from within video
drivers
2017-05-13 19:11:32 +02:00
twinaphex f6c8aba119 Move video_context_driver_update_window_title to video_driver_frame 2017-05-13 18:58:13 +02:00
twinaphex 45a648b042 Cleanups 2017-05-13 18:51:16 +02:00
twinaphex d87e1c57d6 Cleanups 2017-05-13 18:20:14 +02:00
twinaphex 72fe4a1e3c CLeanups 2017-05-13 18:10:26 +02:00
twinaphex 72bd83b8d1 Cleanups to tasks_internal.h 2017-05-13 18:08:37 +02:00
twinaphex e378b7053d Update 2017-05-13 17:55:29 +02:00
Twinaphex bd012a567e Merge pull request #4905 from frangarcj/master
(VITA) Fix problem with font renderer
2017-05-13 16:08:55 +02:00
Francisco José García García 5fc7a6776b (VITA) Fix problem with font renderer 2017-05-13 14:17:55 +02:00
Jean-André Santoni ce9439e722 Display Lakka version in System Information 2017-05-13 13:12:15 +02:00
twinaphex 541c6e6c41 (task_image.c) Cleanups 2017-05-13 08:06:52 +02:00
twinaphex 43dcc3d501 Add NBIO_TYPE_OGG/NBIO_TYPE_WAV 2017-05-13 08:03:00 +02:00
twinaphex acf7c681b4 Change to calloc 2017-05-13 07:56:44 +02:00
twinaphex 19db4f63a7 Take out filestream from audio_mixer.c 2017-05-13 07:53:42 +02:00
twinaphex e7061a8d2a Cleanups 2017-05-12 03:45:49 +02:00
twinaphex fa4a8b8bbd Cleanups 2017-05-12 03:39:37 +02:00
twinaphex 2adace47d4 Cleanup 2017-05-12 03:18:43 +02:00
aliaspider 66c8778878 'es' is required after #version 300. 2017-05-12 01:29:02 +01:00
twinaphex 3cb5b651a2 Add msg_hash_vn.h 2017-05-12 00:28:07 +02:00
Twinaphex c4f2e30819 Merge pull request #4902 from gouchi/master
Update Russian translation courtesy of Andrei Андрей Михайлов
2017-05-11 21:06:56 +02:00
gouchi aa55ab4866 Update Russian translation courtesy of Andrei Андрей Михайлов 2017-05-11 20:59:25 +02:00
aliaspider 9b1e66d302 correct the mask used on the first byte in utf8_walk. fixes #4892 2017-05-11 17:41:27 +01:00
twinaphex 2ce9d71553 Start cutting down on runloop_ctl actions 2017-05-11 09:20:35 +02:00
twinaphex 42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
Twinaphex cc9e951b44 Cleanup 2017-05-11 07:37:20 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
aliaspider 1223309052 better handling of existing #version directive in glsl shaders. 2017-05-11 05:14:11 +01:00
twinaphex f060863d40 Update CHANGES.md 2017-05-11 03:00:24 +02:00
twinaphex 57089dc108 Update gl_common.c - update CHANGES.md 2017-05-11 02:56:11 +02:00
Francisco José García García 1e7701bf29 [VITA] Fix 30 fps menu and frame throttle 2017-05-11 02:51:10 +02:00
twinaphex 9a6e137a56 Get rid of header include 2017-05-10 07:10:05 +02:00
twinaphex ef8094836f Create input_driver_get_float 2017-05-10 07:07:06 +02:00
twinaphex e0c0815f42 (shader_vulkan.cpp) cleanups - don't use memset 2017-05-10 06:40:21 +02:00
twinaphex 1b302d6e40 (shader_vulkan.cpp) Cleanups 2017-05-10 06:31:06 +02:00
twinaphex 865ec1eb71 Cleanup 2017-05-10 06:23:53 +02:00
Twinaphex c43a733dba Merge pull request #4897 from hizzlekizzle/master
fix version directives in GLSL shaders, courtesy of aliaspider
2017-05-10 06:22:38 +02:00
hunterk 7f8d4479f4 fix version directives in GLSL shaders, courtesy of aliaspider 2017-05-09 23:20:00 -05:00
Twinaphex ed2dedb233 Update CHANGES.md 2017-05-10 05:55:34 +02:00
Twinaphex a44318dae5 Merge pull request #4896 from fr500/master
fix #3829 & #4820
2017-05-10 05:44:17 +02:00
radius 4af9a92f76 fix 3829 2017-05-09 22:10:46 -05:00
twinaphex 9dff2434ef Fix some structurally dead code warnings 2017-05-09 20:54:03 +02:00
twinaphex 5a9f6ad9b7 Try to prevent null pointer dereference 2017-05-09 20:45:09 +02:00
twinaphex 06f5f635ca Cleanups 2017-05-09 20:10:58 +02:00
twinaphex 476738cc5c Cleanups 2017-05-09 20:08:40 +02:00
twinaphex 739495027b Cleanups 2017-05-09 20:03:39 +02:00
twinaphex 7ed57ee77d (task_image) Cleanups 2017-05-09 20:01:42 +02:00
twinaphex da1ab24c57 Cleanups 2017-05-09 07:13:47 +02:00
twinaphex 83b0d3e412 Update rwav.h 2017-05-09 02:46:32 +02:00
twinaphex 3593256a76 MSVC Buildfix 2017-05-09 02:29:24 +02:00
Twinaphex e3f854092f Remove unused variables 2017-05-09 01:53:03 +02:00
twinaphex d75f155eb6 Reorder video_driver.h 2017-05-09 01:37:12 +02:00
twinaphex f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex fa5d2b9920 Remove audiomixer-test.diff 2017-05-09 01:00:42 +02:00
twinaphex bac9973354 Cleanups 2017-05-09 00:58:01 +02:00
twinaphex 281dd9b4ac bsv_movie_check - cleanup 2017-05-09 00:40:13 +02:00
twinaphex 67c67f566f Cleanups 2017-05-09 00:30:10 +02:00
twinaphex e8c1c153d6 Prevent nULL pointer dereference 2017-05-08 22:55:45 +02:00
twinaphex 779a7676d6 Try to prevent null pointer dereference 2017-05-08 22:53:06 +02:00
twinaphex 18f06e177e Silence Coverity warning 2017-05-08 22:40:19 +02:00
twinaphex 99e7cb7d75 Only need to grab settings pointer from within audio_driver_flush
now when setting slowmotion
2017-05-08 21:50:21 +02:00
Maschell 63bb97287f [Wii U] Removed forcing Gamepad reading success 2017-05-08 21:49:24 +02:00
Maschell 4393e17ea7 [Wii U] Using the HID Controller as a own controller. Currently the stick only work when it's bind manually. Mapping from controller to retroarch input port may change when you attach a new device. 2017-05-08 21:46:34 +02:00
twinaphex 097515fa63 No longer have to grab settings pointer to get audio mute value 2017-05-08 21:39:08 +02:00
twinaphex 95214e8180 Cleanup 2017-05-08 21:31:14 +02:00
twinaphex c63f059e10 Cleanups 2017-05-08 21:28:21 +02:00
twinaphex 138a12d5e1 Cleanups 2017-05-08 21:24:14 +02:00
twinaphex 8e3d0612d2 Try to fix MSVC error 2017-05-08 21:12:55 +02:00
twinaphex efd0c991a6 Refactor audio_mixer_play 2017-05-08 20:44:25 +02:00
twinaphex a29e416be8 Another cleanup to wav2float 2017-05-08 20:37:12 +02:00
twinaphex 6766a62300 Cleanups 2017-05-08 20:35:02 +02:00
twinaphex bd36b0a968 (audio_mixer.c) Some refactors 2017-05-08 20:27:13 +02:00
twinaphex 48c4e1227a Add audio_mixer_active variable 2017-05-08 19:24:15 +02:00
twinaphex fec24bd47b Cleanup rwav 2017-05-08 18:45:37 +02:00
twinaphex de6e138d15 (audio_mixer.c) Cleanups 2017-05-08 18:37:31 +02:00
twinaphex 4a7c81b353 Cleanup wav2float - add some suggestions for leiradel here 2017-05-08 18:30:15 +02:00
twinaphex ef9c16c7c9 Add audio_mixer_done to audio_driver_deinit 2017-05-08 18:21:33 +02:00
twinaphex d8680542ba Add audio mixer calls 2017-05-08 18:18:43 +02:00
twinaphex 0411aba219 (audio_mixer.c) Cleanups 2017-05-08 18:11:09 +02:00
twinaphex 6c164984a0 Update audiomixer-test.diff 2017-05-08 17:52:28 +02:00
Maschell ad0953ac87 [Wii U] Adding missing .gitmodules file 2017-05-08 12:35:03 +02:00
Maschell 11a0610d13 [Wii U] Updating to new controller patcher. Removing debug stuff. 2017-05-08 12:32:02 +02:00
Maschell e695d4e8ad [WiiU] Initial controller patcher support (HID via USB and network)
- Reading config from sd cards currently broken
- Not implemeted as a driver, currently all devices will be mapped to the WiiU Gamepad driver
2017-05-08 12:24:06 +02:00
Maschell da0f3620bc [Wii U] Adding missing includes and defines 2017-05-08 12:18:28 +02:00
Maschell 4f4d288253 Merge remote-tracking branch 'refs/remotes/libretro/master' 2017-05-08 12:01:13 +02:00
twinaphex 127b803fba Update audiomixer-test.diff 2017-05-08 06:05:08 +02:00
twinaphex b4782d9a51 (audio_mixer.c) Small refactors 2017-05-08 05:59:45 +02:00
twinaphex 5245590bae (audio_mixer.c) Prevent null pointer dereference 2017-05-08 05:55:20 +02:00
twinaphex 5e7f175545 Remove some obsolete RUNLOOP_CTL_ actions 2017-05-08 04:41:24 +02:00
twinaphex 0eec872442 Kill some rarch_ctl actions 2017-05-08 03:59:02 +02:00
twinaphex 9605c01c49 Rename command_event_quit to retroarch_main_quit 2017-05-08 03:54:51 +02:00
twinaphex 0815055906 Pressing hotkey should invoke same operation as manually selecting
'Quit' from the menu - should hopefully fix issues with flushing
SRAM to disk/saving autostate
2017-05-08 03:41:23 +02:00
twinaphex fb78a3a017 (movie.c) Cleanups 2017-05-08 02:39:43 +02:00
twinaphex b73575bf79 Remove header include 2017-05-08 02:29:35 +02:00
twinaphex 988647f92a Move defines to configuration.c 2017-05-08 02:25:55 +02:00
twinaphex 4595ba8e1f (config.def.h) Refactor some of the defines 2017-05-08 02:20:02 +02:00
twinaphex 77a56f5114 Dehardcode recording driver enums 2017-05-07 22:54:03 +02:00
twinaphex 9bb5430956 Try to silence some more Coverity warnings 2017-05-07 22:52:34 +02:00
twinaphex 191c4f5299 Directly initialize some variables 2017-05-07 22:47:00 +02:00
twinaphex 308ff366de Fix missing break in switch 2017-05-07 22:44:07 +02:00
Twinaphex 601a260d47 Merge pull request #4890 from leiradel/master
Don't use more than 32 MB of the content data to compute the hash
2017-05-07 22:16:29 +02:00
Andre Leiradella 78efeb6ae2 Fix griffin and HTTP server builds 2017-05-07 19:52:22 +01:00
Andre Leiradella 7404abf938 Don't use more than 32 MB of the content data to compute the hash 2017-05-07 19:46:22 +01:00
Twinaphex 12027bf1a8 Merge pull request #4889 from leiradel/master
Reverted cheevos changes in preparation for conversion to task; fixed 4884
2017-05-07 20:28:32 +02:00
Andre Leiradella 844d1475e6 Reverted cheevos changes in preparation for conversion to task; fixed 4884 2017-05-07 19:06:03 +01:00
twinaphex 43956f07fa Add function prototype 2017-05-07 19:46:27 +02:00
twinaphex f97d084290 Create camera_driver_poll 2017-05-07 19:24:03 +02:00
twinaphex a2fe3dcaaf Revert "Refactor BSV movie code"
This reverts commit 7dca09d6f8.
2017-05-07 18:28:07 +02:00
twinaphex a43289684d Revert "Get rid of log message"
This reverts commit 2670d22d61.
2017-05-07 18:27:59 +02:00
twinaphex 2670d22d61 Get rid of log message 2017-05-07 18:22:23 +02:00
twinaphex 7dca09d6f8 Refactor BSV movie code 2017-05-07 18:21:58 +02:00
twinaphex e09358c712 Refactor bsv_movie_init code 2017-05-07 18:15:30 +02:00
twinaphex ce8083fd2e Create runloop_{set|unset} - only do autosave lock/unlock if
autosaves are actually active
2017-05-07 18:05:37 +02:00
twinaphex 924296c680 task_save.c - remove runloop.h header include 2017-05-07 17:53:53 +02:00
twinaphex 4d20460e6b Cleanup task_save.c 2017-05-07 17:52:48 +02:00
twinaphex 750d404e23 Rewrite autosave_init 2017-05-07 17:45:53 +02:00
Twinaphex 958fd82f24 Merge pull request #4887 from Avton1/patch-3
Update msg_hash_ru.h
2017-05-07 04:33:57 +02:00
twinaphex e0082c1a9f This still segfaults 2017-05-07 04:33:09 +02:00
Avton1 0b4e690f4d Update msg_hash_ru.h 2017-05-07 10:09:05 +08:00
twinaphex 03db246f88 Refactor cheevos_is_nes_game 2017-05-06 18:47:16 +02:00
twinaphex 637e8d76ab Create cheevos_is_nes_game 2017-05-06 18:43:45 +02:00
twinaphex 24ac625179 Update libretro-common 2017-05-06 18:23:26 +02:00
twinaphex 96718b281e Get rid of some bsv_movie_ctl actions 2017-05-06 18:14:16 +02:00
twinaphex d349ea61cf Create bsv_movie_end_of_file 2017-05-06 18:11:18 +02:00
twinaphex 7c9736bae8 Add to CHANGES.md 2017-05-06 18:07:11 +02:00
twinaphex 9e25597943 Prevent coverity warning 2017-05-06 18:00:44 +02:00
twinaphex ed86a2ed10 Add threading error notes 2017-05-06 17:35:12 +02:00
Twinaphex 0e2318998e Merge pull request #4886 from Avton1/patch-2
Update msg_hash_ru.h
2017-05-06 17:28:28 +02:00
Twinaphex 346a05b5fb Merge pull request #4885 from Avton1/patch-1
Update msg_hash_ru.h
2017-05-06 17:28:17 +02:00
twinaphex 881b18a965 Cleanups 2017-05-06 17:23:19 +02:00
twinaphex 75c45c4f2b Try to avoid warning 2017-05-06 17:15:35 +02:00
twinaphex 88ca3e993c (task_cheevos.c) Use retro_miscellaneous' next_pow2 function 2017-05-06 17:03:53 +02:00
twinaphex 0ba93887bf Optimize retro_endianness when MSB_FIRST is known 2017-05-06 16:52:30 +02:00
twinaphex 593334747b Define MSB_FIRST for RetroArch PPC 2017-05-06 16:45:02 +02:00
twinaphex 15a5083b8c (360) Define MSB_FIRST for RetroArch Salamander 2017-05-06 16:43:53 +02:00
twinaphex de80671658 Simplify content_get_crc 2017-05-06 16:41:22 +02:00
Avton1 3a17f41dc8 Update msg_hash_ru.h 2017-05-06 19:23:08 +08:00
Avton1 9517eff012 Update msg_hash_ru.h 2017-05-06 19:07:48 +08:00
twinaphex 46b1b113e0 Cheevos - buildfix 2017-05-06 06:48:32 +02:00
twinaphex d9c5013d42 Pass settings struct around 2017-05-06 06:46:48 +02:00
twinaphex 558cb64438 Don't grab settings pointer during task_overlay_handler 2017-05-06 06:08:24 +02:00
twinaphex 36375cecf8 input_swap_override - Get rid of dependency on settings 2017-05-06 06:01:15 +02:00
twinaphex 33f2fe8029 Move cheevos.c to tasks/task_cheevos.c and add TODO/FIXME note 2017-05-06 05:50:46 +02:00
twinaphex 75a5af26c6 Revert "(task_autodetect.c) Set input_swap_override later on"
This reverts commit 582573f324.
2017-05-06 05:42:11 +02:00
twinaphex 582573f324 (task_autodetect.c) Set input_swap_override later on 2017-05-06 05:32:46 +02:00
twinaphex 44b9943738 Cleanups to task_content.c 2017-05-06 05:19:19 +02:00
twinaphex 2c28505e04 Refactor cheevos_load 2017-05-06 05:13:28 +02:00
Twinaphex 2357c9ef82 Merge pull request #4883 from andrewlxer/master
Fix performance issue with max_swapchain_images
2017-05-06 02:54:12 +02:00
Andrew 858e15b837 Fix performance issue with max_swapchain_images
This fixes a performance problem introduced in my last commit when
max_swapchain_images == 3.

In my last commit I incorrectly stated the 3rd buffer was not being
used, after doing some additional testing I realized I was mistaken,
it can indeed be used due to the used page tracking.

Reverting that portion of my previous commit.
2017-05-05 16:58:17 -07:00
Twinaphex 6e51153387 Revert "Cleanu gl_raster_font_render_line"
This reverts commit 45cf53b487.
2017-05-05 05:30:49 +02:00
twinaphex 45cf53b487 Cleanu gl_raster_font_render_line 2017-05-05 05:23:26 +02:00
Twinaphex 2d83ed388f Merge pull request #4880 from andrewlxer/master
Fix max_swapchain_images and do some additional cleanup
2017-05-05 04:10:32 +02:00
Andrew 01e25bd5c7 Fix max_swapchain_images and do some additional cleanup
When max_swapchain_images was originally added it worked properly,
but was subsequently broken by using the value to specify the number
of buffers allocated.

Due to how the dispmanx driver works, only 2 buffers are ever actually
used, so the 3rd buffer in the "swapchain" ended up doing nothing.

Fix this by restoring it to the original intent, that is, if
max_swapchain_images <= 2 wait for vsync after the flip (reducing
lag), otherwise wait at the last possible moment (increasing lag).

Additionally, fix up some unnecessary void* usage where type safety
could be maintained.
2017-05-04 18:45:59 -07:00
twinaphex dfed19cb4d (Cheevos) More cleanups 2017-05-04 16:15:19 +02:00
twinaphex 10b636f80d (Cheevos) Cleanups 2017-05-04 16:13:11 +02:00
Jean-André Santoni c34b4dd787 Fix lakka settings 2017-05-03 17:01:37 +02:00
Jean-André Santoni a2d4a9efc5 Update lakka upgrading url 2017-05-03 16:52:25 +02:00
Twinaphex e9b7c32393 Merge pull request #4876 from aliaspider/master
XMB: unload thumbnail textures in xmb_context_destroy. fixes #3141
2017-05-03 15:31:28 +02:00
aliaspider 5a16b61ec5 XMB: unload thumbnail textures in xmb_context_destroy. fixes #3141 2017-05-03 14:14:35 +01:00
Brad Parker a568782309 add "off" toggle option to thumbnails in library 2017-05-02 22:27:36 -04:00
aliaspider 0310b67927 use strlen and not utf8len for the len parameter passed to
get_message_width. fixes #4873.
2017-05-03 03:09:01 +01:00
Twinaphex 8f25897d9e Merge pull request #4872 from Monroe88/menu_settings
Minor fix for previous pull request
2017-05-02 04:13:43 +02:00
Monroe88 2012abd6d1 (menu-setting.c) Use SD_FLAG_ADVANCED instead for Fullscreen resolution and config aspect ratio settings 2017-05-01 21:06:07 -05:00
Twinaphex edd4f46bbf Merge pull request #4871 from Monroe88/menu_settings
Add Fullscreen resolution and Config Aspect Ratio settings to the menu
2017-05-02 03:31:46 +02:00
Monroe88 b0d6919339 Add Config Aspect Ratio setting to the menu 2017-05-01 20:10:41 -05:00
Monroe88 0dee5b889d Add fullscreen resolution settings to the menu 2017-05-01 19:19:33 -05:00
twinaphex 08c7f63074 Revert "Make the framebuffer 32x32"
This reverts commit 51f7f7a22c.
2017-05-02 00:09:36 +02:00
twinaphex 51f7f7a22c Make the framebuffer 32x32 2017-05-02 00:05:34 +02:00
twinaphex b1cf9adfef (dynamic dummy core) Let's not perform this every frame 2017-05-01 23:40:34 +02:00
Twinaphex acabead15a Merge pull request #4869 from casdevel/wasapi-driver
Fix incorrect audio frame rate units
2017-04-30 23:54:08 +02:00
Zoran Vuckovic a5ecdf39fb Fix incorrect audio frame rate units 2017-04-30 23:34:51 +02:00
Twinaphex a05555cd99 Merge pull request #4868 from casdevel/wasapi-driver
Fix audio frame rate selection
2017-04-30 23:14:06 +02:00
Zoran Vuckovic 4cba63cdd0 Fix audio frame rate selection 2017-04-30 23:05:53 +02:00
Twinaphex 2009d359c9 Merge pull request #4866 from andrewlxer/master
Minor race fix and small cleanup to dispmanx_gfx
2017-04-30 11:48:41 +02:00
Andrew a1d094e64e Minor race fix and small cleanup to dispmanx_gfx
It's unlikely it was causing issues, but another race existed in the
dispmanx driver, it incremented the pending page count after sending the
update request.

If a context switch happened between sending the update and incrementing
the page count, the vsync callback would decrement it from 0 and cause
the uint to overflow.

Throw in a minor C89 fix and some whitespace fixups too.
2017-04-29 17:09:07 -07:00
Jean-André Santoni a2542590ef Fix the truncated game name in LAN rooms 2017-04-29 23:41:02 +02:00
Jean-André Santoni c335d870a5 Code cleaning 2017-04-29 22:07:16 +02:00
twinaphex 532b2ac1ba 'Open Archive' - if we have a core selected, filter roms
in an archive by supported extensions; otherwise, if no core
is selected, show all files that are supported
2017-04-29 21:19:55 +02:00
Twinaphex 34184654d9 Merge pull request #4865 from leiradel/master
Prevent the menu from getting garbage for the cheevos list
2017-04-29 21:16:19 +02:00
twinaphex 8f32801292 It should now properly show supported roms again when no
core info file is found and we have already loaded a
core
2017-04-29 20:27:40 +02:00
Andre Leiradella 7058207197 Prevent the menu from getting garbage for the cheevos list 2017-04-29 18:50:52 +01:00
twinaphex b303283ac3 (GDI) Buildfix 2017-04-29 19:35:13 +02:00
twinaphex 7df38ac5db (3DS) Buildfix 2017-04-29 19:34:20 +02:00
twinaphex 46bae549ac Fix some coverity warnings 2017-04-29 19:22:44 +02:00
twinaphex 17827940fd Get rid of some if conditionals 2017-04-29 19:21:24 +02:00
twinaphex 254fa75a0f Directly initialize sinc_size 2017-04-29 18:54:34 +02:00
twinaphex 4d419b2b56 (sdl_gfx.c) Update 2017-04-29 18:47:29 +02:00
twinaphex 60242e161a Buildfix 2017-04-29 18:45:58 +02:00
twinaphex c147604103 Update 2017-04-29 18:33:50 +02:00
twinaphex 7bdef1fde4 Buildfixes 2017-04-29 18:30:23 +02:00
twinaphex dd83b4a043 (Vita) Buildfix 2017-04-29 17:52:16 +02:00
twinaphex b5e97238ac Optimize video_driver_threaded_{lock|unlock} 2017-04-29 17:38:47 +02:00
twinaphex d86f466fe9 Turn video_driver_is_threaded into macro 2017-04-29 17:33:36 +02:00
twinaphex a5d7bedb8a Pass video_is_threaded variable to menu driver init function 2017-04-29 17:27:54 +02:00
twinaphex 6bae9244e8 Create menu_driver_init 2017-04-29 17:23:09 +02:00
twinaphex 5f6a342817 Pass param 2017-04-29 17:19:29 +02:00
twinaphex b515cd10f1 Pass video_is_threaded to context_reset 2017-04-29 17:16:05 +02:00
twinaphex 6f0df4cf60 Create menu_driver_context_reset 2017-04-29 17:13:18 +02:00
twinaphex 03145a0424 Pass video_is_threaded variable to video_driver_init 2017-04-29 17:10:59 +02:00
twinaphex 64b672125c (menu_display.c) Style nits 2017-04-29 17:05:21 +02:00
twinaphex 11a96df465 Rewrite font_driver_free 2017-04-29 17:02:35 +02:00
twinaphex e84adb504f Don't try to call video_driver_is_threaded from outside
gfx/video_driver.c - only exception right now - menu_display.c
2017-04-29 16:52:52 +02:00
twinaphex 63504cd9c8 No longer need to grab threaded variable from settings struct 2017-04-29 16:37:49 +02:00
twinaphex 91abbdd4f1 video_viewport_get_custom will never be NULL 2017-04-29 16:22:07 +02:00
twinaphex 6d4ac23f26 Cleanup 2017-04-29 16:20:26 +02:00
twinaphex c8bf28842f Get rid of some calls to video_driver_viewport_get_custom 2017-04-29 16:11:31 +02:00
twinaphex 2322e77795 Add to video_frame_info 2017-04-29 16:07:02 +02:00
Twinaphex c678d97270 Merge pull request #4864 from leiradel/master
Added a define to save the achievements JSON
2017-04-29 15:52:59 +02:00
Andre Leiradella 982c862deb Undefine the macro by default 2017-04-29 14:42:04 +01:00
Andre Leiradella 8a50b7373b Added a define to save the achievements JSON 2017-04-29 14:37:09 +01:00
twinaphex 97de027eb7 (movie.c) Cleanups 2017-04-29 14:10:00 +02:00
twinaphex ac7f1cc5e2 C89_BUILD buildfix 2017-04-29 14:06:08 +02:00
twinaphex 969403fadb Header include cleanups 2017-04-29 13:20:50 +02:00
twinaphex 79c7627651 Move video_viewport_custom to gfx/video_driver.c 2017-04-29 13:10:01 +02:00
twinaphex 6930262ec2 Update/buildfixes 2017-04-29 12:44:45 +02:00
Francisco José García García afe173c883 [VITA] Really fix build 2017-04-29 12:02:26 +02:00
Twinaphex 936b5e4b7c Merge pull request #4861 from Monroe88/menu_wasapi
Add WASAPI audio driver settings to the menu
2017-04-29 11:17:15 +02:00
Twinaphex ccd4bdbd60 Merge pull request #4862 from andrewlxer/master
Fix dispmanx triple buffering race and re-enable triple buffering
2017-04-29 11:16:51 +02:00
Francisco José García García f7c56ddda3 [VITA] Fix build 2017-04-29 09:06:49 +02:00
Andrew 301a094ef9 Avoid potential dispmanx_gfx driver lockup
The dispmanx driver had a small race wherein if the vsync completed
between checking for a free page and waiting on the condvar, it would
hang forever waiting for a condition that would never fire.

I'm hoping this is what was causing the triple buffering lockups. In
my testing with it re-enabled and this fix, things are stable (and
much more performant than with triple buffering disabled).
2017-04-28 20:24:36 -07:00
Andrew 253c8cd997 Revert "DISPMANX: Disable triple buffering for now, for stability reasons."
This reverts commit 0b75671c21.
2017-04-28 20:20:43 -07:00
Monroe88 ada900e1e1 Unhardcode WASAPI default settings 2017-04-28 21:40:24 -05:00
Monroe88 9d20af4249 Minor edits to the labels and sublabels 2017-04-28 21:09:49 -05:00
Monroe88 3e58159480 Add WASAPI audio driver settings to the menu 2017-04-28 20:36:52 -05:00
twinaphex 552845a94d Buildfixes 2017-04-29 02:39:32 +02:00
twinaphex 6d8789f4c1 (GX) Buildfix 2017-04-29 02:03:17 +02:00
twinaphex fe1151efc3 (Zarch) Buildfix 2017-04-29 02:02:28 +02:00
twinaphex 9fdcd926ad Buildfixes 2017-04-29 02:00:50 +02:00
twinaphex 8ab4f5a0b2 Gotten rid of all reallocs now inside configuration.c 2017-04-29 00:43:20 +02:00
twinaphex e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
Twinaphex 59da394197 Merge pull request #4859 from casdevel/wasapi-driver
Fix audio sync issue with fullscreen toggling
2017-04-28 23:13:31 +02:00
twinaphex f75fbafeb2 Cleanups 2017-04-28 23:10:24 +02:00
twinaphex 957c85f9ea Cleanups 2017-04-28 23:02:22 +02:00
twinaphex f0c2d786ae Update arrays struct 2017-04-28 22:59:13 +02:00
Zoran Vuckovic f3a55f1036 Fix audio sync issue with fullscreen toggling 2017-04-28 22:58:06 +02:00
twinaphex aed6fd8082 (WASAPI) Buildfix 2017-04-28 22:17:44 +02:00
twinaphex 87106b03c1 (3DS) Buildfix 2017-04-28 22:14:34 +02:00
twinaphex 5c024f1cd8 Fix memory leak 2017-04-28 21:47:26 +02:00
Twinaphex 927ed42498 Fix filestream memory leak 2017-04-28 21:27:40 +02:00
twinaphex 67ab87669f Update 2017-04-28 21:20:00 +02:00
twinaphex 35ac275f62 (OSX) Buildfix 2017-04-28 21:18:35 +02:00
twinaphex 47cb15cb03 No more realloc for uints settings 2017-04-28 21:05:34 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex 9ff3221c9d Refactors 2017-04-28 20:08:12 +02:00
twinaphex fdd85654d6 Split up uint and int 2017-04-28 19:55:09 +02:00
twinaphex 7bbd20b31d Move int settings 2017-04-28 19:12:48 +02:00
twinaphex dfe753042f Cleanups 2017-04-28 19:04:17 +02:00
Francisco José García García 18eaa7e709 [VITA] Fix dirs 2017-04-28 18:54:34 +02:00
twinaphex 324227d239 (Win32) Buildfix 2017-04-28 15:59:42 +02:00
twinaphex fa9b641ef0 (Android) Buildfix 2017-04-28 15:53:38 +02:00
twinaphex d6ffd69ed0 Silence warnings 2017-04-28 15:32:15 +02:00
twinaphex 98f6000ff6 Silence warnings 2017-04-28 15:31:33 +02:00
twinaphex 4ef0809931 (GX) Another buildfix 2017-04-28 15:29:54 +02:00
twinaphex d1b6a865c4 Buildfixes 2017-04-28 15:29:20 +02:00
twinaphex 684e83ef30 Updates 2017-04-28 15:19:39 +02:00
twinaphex 6d4b44bf94 Use malloc instead of calloc 2017-04-28 15:14:51 +02:00
twinaphex 09f108b4a7 (OSX) Buildfix 2017-04-28 15:09:43 +02:00
twinaphex df31ba6255 (Win32) Buildfix 2017-04-28 15:05:12 +02:00
twinaphex 7b9c146ae9 (iOS) Buildfix 2017-04-28 15:04:00 +02:00
twinaphex 2c53553952 (Zarch) Buildfix 2017-04-28 15:02:42 +02:00
twinaphex ff3a9e87e0 Optimize populate_settings_float 2017-04-28 15:01:11 +02:00
twinaphex 0da40fb3aa Move all float settings 2017-04-28 14:57:55 +02:00
twinaphex 4e92a4ed77 Fix this 2017-04-28 14:33:18 +02:00
twinaphex 7a152700fa Update 2017-04-28 14:31:23 +02:00
twinaphex f50eabb13c (iOS) Buildfixes 2017-04-28 14:29:22 +02:00
twinaphex 3ad821c102 (Win32) Buildfix 2017-04-28 14:28:40 +02:00
twinaphex 3764c39dfc Optimize populate_settings_bool - should not keep spamming
realloc now
2017-04-28 14:11:34 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
Francisco José García García 6bac458885 [VITA] Fix error 2017-04-28 13:47:53 +02:00
twinaphex b792c5deae move bool setting 2017-04-28 12:26:01 +02:00
twinaphex 3e24672a43 Move bool settings 2017-04-28 12:23:59 +02:00
twinaphex 9e7ac432c3 Try to prevent null pointer dereference 2017-04-28 12:07:11 +02:00
twinaphex 9812dfb4d4 Add conditionals 2017-04-28 12:05:17 +02:00
Francisco José García García c0e81ca820 [VITA] Get rid of griffin 2017-04-28 08:29:58 +02:00
twinaphex cc095e56fc Start refactoring bool variables 2017-04-28 00:53:20 +02:00
Francisco José García García 193b0b147f [VITA] Fix no sound 2017-04-28 00:29:51 +02:00
twinaphex ba079b14dc Cleanups 2017-04-28 00:01:47 +02:00
twinaphex ae1c26cbc4 Restructure settings struct 2017-04-28 00:00:43 +02:00
twinaphex d257ec51a0 Use wrapper configuration macros 2017-04-27 23:46:32 +02:00
twinaphex 124ef06ef7 Use wrapper functions 2017-04-27 23:43:19 +02:00
twinaphex 0e1406f3f1 Go through configuration_ wrapper functions 2017-04-27 23:34:47 +02:00
twinaphex eb34553fae Cleanup 2017-04-27 21:40:31 +02:00
twinaphex b9f110679a Remove unused variable 2017-04-27 21:38:39 +02:00
twinaphex 1bf7cbccbe input_device_names no longer part of settings struct 2017-04-27 21:35:46 +02:00
Francisco José García García 79f28f2985 [VITA] Fix compiling 2017-04-27 08:49:21 +02:00
Francisco José García García 514412afe0 [VITA] Compress things a little 2017-04-27 08:10:35 +02:00
twinaphex a54af2f2c1 Prevent implicit memset 2017-04-27 01:27:02 +02:00
twinaphex 5ea70ffb2e Get rid of some implicit memsets 2017-04-27 01:23:04 +02:00
twinaphex ace37d2c7a Cleanups 2017-04-27 01:10:44 +02:00
twinaphex 65f33f4403 See if this works for PSP as well 2017-04-27 00:58:56 +02:00
twinaphex 43ff75fd72 (psp_audio.c) Cut down on ifdefs 2017-04-27 00:46:48 +02:00
twinaphex 87d5fe2092 Cut down on ifdefs 2017-04-27 00:44:35 +02:00
Francisco José García García be87a8cdc7 [VITA] Fixing PSTV controls 2017-04-26 22:26:41 +02:00
twinaphex 0c6ba894fd task_autodetect.c - cleanups 2017-04-26 18:48:28 +02:00
Zoran Vuckovic c5e56b1b25 Add workaround for "Pause when menu activated" option
Audio driver start function never gets called when this option is set to
off, so we start in init function for now. This solves one problem but
introduces new one, WASAPI engine starts running even there is no real
need for that.
2017-04-26 18:38:40 +02:00
Zoran Vuckovic 4a715e79e3 Code cleanup 2017-04-26 18:38:27 +02:00
Zoran Vuckovic 409a6136b8 Remove one redundant comment 2017-04-26 18:38:23 +02:00
Zoran Vuckovic f412095047 Add shared-mode buffer length option 2017-04-26 18:37:44 +02:00
Zoran Vuckovic a53645cc55 Fix device enumeration log message 2017-04-26 18:37:30 +02:00
twinaphex 549ed6fc6b (Android) Buildfix 2017-04-26 15:43:16 +02:00
twinaphex 848d8a95ab Remove -marm for Vita 2017-04-26 15:42:23 +02:00
twinaphex 301ee64e80 Add HAVE_XINERAMA ifdefs 2017-04-26 15:29:21 +02:00
Twinaphex 8a4590462f Merge pull request #4849 from bsstephan/dont-build-disabled-xinerama
only build xinerama_common.o if it is enabled
2017-04-26 11:59:12 +02:00
Twinaphex e2dc60a0c0 Merge pull request #4850 from Monroe88/menu
(menu_setting.c) Make Audio Output Rate editable
2017-04-26 11:58:21 +02:00
Monroe88 1df9807954 (menu_setting.c) Make Audio Output Rate editable 2017-04-25 23:17:53 -05:00
Brian S. Stephan efe90a9f34 only build xinerama_common.o if it is enabled 2017-04-25 22:26:46 -05:00
Twinaphex c51e4397b0 remove unused variable 2017-04-26 03:00:21 +02:00
twinaphex 3dc26db377 Simplify libretro_input_binds 2017-04-26 02:43:39 +02:00
twinaphex 58fcf421b5 Simplify input_poll 2017-04-26 02:35:41 +02:00
twinaphex e179108080 Cleanups 2017-04-26 00:24:59 +02:00
twinaphex a146dfee79 Use input_config_binds directly 2017-04-25 23:47:23 +02:00
twinaphex 33dda78ea8 Cleanups 2017-04-25 23:32:38 +02:00
twinaphex fc5d240297 Get rid of some now-unused functions 2017-04-25 23:30:50 +02:00
twinaphex f0eaef9d51 Cleanups 2017-04-25 22:14:56 +02:00
twinaphex 3c57c991de Buildfix 2017-04-25 21:58:53 +02:00
twinaphex 3087ceb482 Don't go through all these slow wrapper functions 2017-04-25 20:47:21 +02:00
Twinaphex 840034d4a0 remove unused variables 2017-04-25 18:54:41 +02:00
twinaphex 5f9f43929a Turn settings->input.binds into static struct inside input_config.c 2017-04-25 18:54:01 +02:00
twinaphex 53c9acacd6 Wrap access to settings->input.binds completely 2017-04-25 18:50:49 +02:00
twinaphex c68c8a8cfe Rewrite this 2017-04-25 18:48:06 +02:00
twinaphex 87f05b3a7b Cleanups 2017-04-25 18:32:08 +02:00
twinaphex 8d0e3d7777 Wrap settings->input.binds 2017-04-25 18:27:18 +02:00
twinaphex 4845c4b4db Cleanup 2017-04-25 18:20:10 +02:00
twinaphex 3b3b008614 Move code to input_config_reset 2017-04-25 18:18:37 +02:00
twinaphex d66aff8fbd Start wrapping settings->input.binds 2017-04-25 18:12:13 +02:00
Twinaphex 129da8a802 Get rid of unused local variables 2017-04-25 17:19:31 +02:00
twinaphex e1e83b17b7 Wrap settings->input.libretro_device 2017-04-25 17:14:46 +02:00
twinaphex f4e5f896a2 Move input.device_name_index to task_autodetect and move it
outside of settings struct
2017-04-25 16:57:44 +02:00
twinaphex c871faa1f5 Move pid/vid arrays out of settings struct and move them
to input_config
2017-04-25 16:49:54 +02:00
twinaphex 690b729474 config_save_autoconf_profile - cleanup 2017-04-25 16:38:47 +02:00
twinaphex acf3b22fd3 Go through wrapper functions 2017-04-25 16:36:31 +02:00
twinaphex 6ace8ce66a Rewrite autoconf_binds and move it to task_autodetect.c - take
it out of the settings struct
2017-04-25 16:33:30 +02:00
twinaphex 359af5d5ab Go through wrapper function 2017-04-25 16:07:17 +02:00
twinaphex 20ed6eb90a Start using input_config_get_device_name 2017-04-25 16:04:28 +02:00
twinaphex f4b168f9b6 Call functions from task_autodetect.c 2017-04-25 15:53:30 +02:00
twinaphex 7b5b49a5e6 Move autoconfigured variables out of settings struct;
these values are not written back to the config file
2017-04-25 15:49:27 +02:00
twinaphex e36564b2b0 (Zarch) Not sure why this was done 2017-04-25 15:34:18 +02:00
twinaphex 15a8f0c485 Wrap some more settings manipulation 2017-04-25 15:31:32 +02:00
twinaphex 83684df3e9 Use configuration_set_ wrappers 2017-04-25 15:13:50 +02:00
twinaphex 632039f985 Cleanups 2017-04-25 13:28:42 +02:00
twinaphex b6d34e9581 Cleanups 2017-04-25 13:27:40 +02:00
twinaphex ffcb9d4a16 (gl_raster_font.c) Cleanups 2017-04-25 13:25:37 +02:00
twinaphex 03358b2ecd (gl_raster_font) Cleanup 2017-04-25 13:22:55 +02:00
twinaphex 047b10a3de (vulkan_raster_font.c) Small refactors 2017-04-25 13:19:32 +02:00
twinaphex 3917c658f3 Refactor vulkan_raster_font_render_line 2017-04-25 13:16:00 +02:00
twinaphex b495d85845 (setting_list.c) Initialize these values 2017-04-24 22:55:14 +02:00
twinaphex ee484b693c (vulkan_raster_font.c) Cleanups 2017-04-24 17:39:23 +02:00
twinaphex 765e636214 (Vulkan) Cleanups 2017-04-24 17:21:29 +02:00
twinaphex 2a13af52fc Revert "video_init function - video_info_t should not be const -"
This reverts commit c8bcbad4a7.
2017-04-24 12:25:14 +02:00
twinaphex e5b38315fe Revert "Add real_width and real_height to video_info struct - let"
This reverts commit 831ea1a507.
2017-04-24 12:25:07 +02:00
twinaphex 023599366c Revert "Cleanups"
This reverts commit 0021970c16.
2017-04-24 12:25:00 +02:00
twinaphex 8a215ce30e Revert "Cut down on another video_driver_set_size call"
This reverts commit b951c84e01.
2017-04-24 12:24:55 +02:00
twinaphex b951c84e01 Cut down on another video_driver_set_size call 2017-04-24 12:23:09 +02:00
twinaphex 0021970c16 Cleanups 2017-04-24 12:19:47 +02:00
twinaphex 831ea1a507 Add real_width and real_height to video_info struct - let
the drivers set this depending on the video width/height they
get back from the video context driver
2017-04-24 12:18:28 +02:00
twinaphex c8bcbad4a7 video_init function - video_info_t should not be const -
try to set video_driver_width/video_driver_height outside
of video driver init function
2017-04-24 12:03:21 +02:00
twinaphex 5a3b78bad3 Get rid of more performance counters 2017-04-24 11:24:16 +02:00
twinaphex 8f15467215 Getr id of perf counters 2017-04-24 11:21:32 +02:00
twinaphex d06c963a19 Get rid of PERF_ENABLE blocks 2017-04-24 11:20:30 +02:00
twinaphex e411e7c284 Add separate PI macro 2017-04-24 10:31:25 +02:00
twinaphex 365c7f9c8b (Video drivers) Cleanups 2017-04-24 10:08:32 +02:00
twinaphex 8efa2b146e Add this to d3d_alive 2017-04-24 09:44:15 +02:00
Twinaphex f6ca860bc9 Merge pull request #4841 from fr500/master
add a few paths even if they are not set by JNI
2017-04-24 08:09:43 +02:00
radius 95f172e3c7 add a few paths even if they are not set by JNI 2017-04-24 01:02:42 -05:00
twinaphex 34852e159a Cut down on amount of times video_driver_build_info is called 2017-04-23 22:20:11 +02:00
twinaphex 08bbc8199f (audio_driver.c) Cleanup 2017-04-23 22:04:03 +02:00
twinaphex 0e3bc69f8c Simplify video shader driver function 2017-04-23 21:53:03 +02:00
twinaphex 087002d9c5 Get rid of unused video_driver_get_frame_count - locking/unlocking
around this variable should no longer be necessary
2017-04-23 21:39:49 +02:00
twinaphex c38f86e14a Create menu_driver_{decrement|increment}_navigation 2017-04-23 21:17:01 +02:00
twinaphex e0483f73bc Create menu_driver_list_clear 2017-04-23 21:13:33 +02:00
twinaphex 467070f6a6 Silence Coverity warning 2017-04-23 21:07:49 +02:00
twinaphex edadba1ec7 Silence valgrind memcheck warning 2017-04-23 20:26:31 +02:00
twinaphex 13e4148996 (Menu) Cleanups 2017-04-23 20:22:41 +02:00
twinaphex 77dde2a85c Simplifications 2017-04-23 20:16:14 +02:00
Twinaphex f84da4b466 Remove unused variable 2017-04-23 19:55:21 +02:00
Andrés e5938bca1f Update CHANGES.md 2017-04-23 12:46:30 -05:00
twinaphex 2dfe441381 Get rid of video_info->frame_count 2017-04-23 19:21:12 +02:00
twinaphex bf7616cf0e Revert "Move structs to gfx/video_thread_wrapper.h"
This reverts commit 12d0073d50.
2017-04-23 19:17:52 +02:00
twinaphex d4a3726347 Update CHANGES.md 2017-04-23 19:08:58 +02:00
twinaphex 25c8baeefe menu drivers will have their own frame count; this fixes the
tickering issues with threaded video mode
2017-04-23 18:42:12 +02:00
twinaphex 12d0073d50 Move structs to gfx/video_thread_wrapper.h 2017-04-23 18:28:44 +02:00
twinaphex cb3943da0e Cleanup 2017-04-23 17:53:26 +02:00
twinaphex df60fa7a19 Bugfix 2017-04-23 17:51:06 +02:00
twinaphex eb208b170f Fix codepath for HAVE_MENU not being defined 2017-04-23 17:48:45 +02:00
twinaphex 32f4bc4b93 Cleanups 2017-04-23 17:46:14 +02:00
twinaphex 7c6b93f58f More cleanups 2017-04-23 17:44:24 +02:00
twinaphex c9646c1fd2 Use configuration macro wrappers 2017-04-23 17:36:25 +02:00
twinaphex 3ec5816259 Rewrite RUNLOOP_CTL_SYSTEM_INFO_GET 2017-04-23 16:41:26 +02:00
twinaphex 627089e2f6 Get rid of libretro_get_current_core_pathname 2017-04-23 16:13:58 +02:00
twinaphex 299b72e208 Revert "Cleanups"
This reverts commit a4963d2a19.
2017-04-23 15:10:34 +02:00
twinaphex a4963d2a19 Cleanups 2017-04-23 15:10:10 +02:00
twinaphex fc33b7abcc Log where core options file gets saved 2017-04-23 14:41:46 +02:00
twinaphex 6667560263 (iOS) Buildfix 2017-04-23 14:37:06 +02:00
Twinaphex d76c09fd08 Get rid of unused variables 2017-04-23 14:33:02 +02:00
twinaphex 7ea0528c6b Turn MENU_NAVIGATION_CTL_{SET|GET}_SELECTION into separate
functions
2017-04-23 14:31:49 +02:00
twinaphex 8e6b7a2751 Rewrite menu_entries function 2017-04-23 13:46:21 +02:00
twinaphex 217e71d568 (menu_setting.c) Cleanups 2017-04-23 13:41:02 +02:00
twinaphex 268a173f44 (menu_shader.c) Start using configuration_set_bool 2017-04-23 13:39:35 +02:00
twinaphex 59faeb510b Start putting settings->modified in most mutable situations 2017-04-23 13:37:00 +02:00
twinaphex ccc8d1aec2 Start using configuration_set_bool 2017-04-23 13:32:16 +02:00
twinaphex 1febb963ae Start bookkeeping when we are modifying settings 2017-04-23 13:24:17 +02:00
twinaphex e192d4eaa6 (Playlist) Prevent us writing the playlist file another time
after we have already saved it once
2017-04-23 12:54:13 +02:00
twinaphex 7e3cce9397 Only write to playlists if they are modified 2017-04-23 12:25:54 +02:00
twinaphex aea00f1e00 Use memcmp instead of string_is_equal for more instances 2017-04-23 12:17:51 +02:00
twinaphex 1c93cc4b18 Update logs 2017-04-23 12:00:49 +02:00
twinaphex 953045f0d2 Update logs 2017-04-23 11:56:46 +02:00
twinaphex 0f2a6f3dd2 Don't use performance counters in GL/Vulkan/video thread wrapper
unless PERF_ENABLE is defined
2017-04-23 11:31:11 +02:00
twinaphex caafee006c Get rid of performance counter for softfilter 2017-04-23 11:26:10 +02:00
twinaphex d61edc51ad (audio_driver.c) Get rid of performance counters 2017-04-23 11:05:42 +02:00
twinaphex a88284897b (D3D) Use C-style allocation for d3d->menu 2017-04-23 09:38:44 +02:00
Twinaphex 7afc83518d Merge pull request #4836 from Monroe88/audio_device_fix
(menu_setting.c) Reinit audio driver when audio device is changed
2017-04-23 07:51:39 +02:00
Monroe88 b260254fd4 (menu_setting.c) Reinit audio driver when audio device is changed 2017-04-22 20:06:15 -05:00
twinaphex 8defa3b924 Update libretro-ffmpeg 2017-04-22 20:56:59 +02:00
twinaphex 6078864e26 Turn ffmpeg FFT into C code and remove GLM dependency 2017-04-22 12:59:28 +02:00
twinaphex 21f7f6059a (ffmpeg FFT) No longer needs GLM 2017-04-22 12:25:54 +02:00
twinaphex d674d2102e (ffmpeg FFT) Move variable initialization to top 2017-04-22 12:11:42 +02:00
twinaphex 25f31883d5 (libretro ffmpeg FFT) Start using libretro-common gfx/matrix
functions instead of GLM; GLM only used now still for
packHalf2x16
2017-04-22 12:08:10 +02:00
twinaphex a65675d24f (FFT) Swap around matrices arguments for matrix_4x4_multiply 2017-04-22 11:15:41 +02:00
Zoran Vuckovic 9ef51d8215 Change default buffering behavior in shared mode 2017-04-22 11:09:08 +02:00
twinaphex c97fd9afcf Correct matrix_4x4_lookat 2017-04-22 10:23:04 +02:00
twinaphex 45dc1b7977 Some build fixes 2017-04-22 10:09:52 +02:00
twinaphex 40d55b7ae3 Reimplement file_path_str 2017-04-22 09:54:22 +02:00
twinaphex f12ea0e1e3 Fix C89_BUILD 2017-04-22 09:37:36 +02:00
twinaphex aa2c29ac8b (exynos_gfx.c) Use memcmp 2017-04-22 09:34:30 +02:00
Zoran Vuckovic 62d9e087c4 Fix issues with some cores in shared mode 2017-04-22 09:25:12 +02:00
Zoran Vuckovic 4197cfe174 Add device init fallback 2017-04-22 09:25:01 +02:00
Zoran Vuckovic 5526a2ba93 Fix sync off in shared mode 2017-04-22 09:24:52 +02:00
Zoran Vuckovic 86fdca5e68 Fix incorrect log messages 2017-04-22 09:24:32 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
twinaphex d77da6b53d Fix bug in shader_glsl.c 2017-04-21 23:10:55 +02:00
twinaphex 284e6b2994 Replace more instances of string_is_equal 2017-04-21 22:51:04 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex e9e1db2945 Cleanups 2017-04-21 21:18:28 +02:00
twinaphex bcce88e516 (D3D) Cleanup d3dx9anim.h header 2017-04-21 21:00:22 +02:00
twinaphex 6951111459 (libretro-common) Cleanups 2017-04-21 20:53:07 +02:00
twinaphex 0c66441d08 (archive_file) Cleanups 2017-04-21 20:46:41 +02:00
twinaphex 5b1ecbff87 Remove rsemaphore 2017-04-21 20:41:26 +02:00
twinaphex dd1da5154f Better implementation of string_is_equal_noncase and fix bug
in string_list
2017-04-21 14:53:01 +02:00
twinaphex 271edb4ca1 We don't want uppercase for these instances 2017-04-21 14:26:35 +02:00
twinaphex 607ae71259 Turn string_is_equal_noncase into self-contained function 2017-04-21 14:17:47 +02:00
twinaphex 76788d3890 Turn string_is_equal into selfcontained function 2017-04-21 14:09:02 +02:00
twinaphex dd517f4660 Try to avoid directly calling strcmp 2017-04-21 13:56:15 +02:00
twinaphex 82c62b1693 Use stdstring in more instances 2017-04-21 13:50:24 +02:00
twinaphex 06f98fcd16 (stdstring) Turn some functions into static inline functions 2017-04-21 13:35:26 +02:00
twinaphex 120cf21505 Rewrite alsa_write pt. 2 2017-04-21 13:27:46 +02:00
twinaphex 74431917a2 Rewrite alsa_write 2017-04-21 12:21:38 +02:00
twinaphex 40411e5a6f Turn gfx/math functions into macros 2017-04-20 22:14:03 +02:00
twinaphex 04223b464a Check for return value of config_get_bool 2017-04-20 21:52:29 +02:00
twinaphex 0215badb4c (FIFO queue) Turn some functions into static inline functions 2017-04-20 20:28:57 +02:00
twinaphex 75e02c4646 Simplify alsa_write 2017-04-20 18:27:46 +02:00
twinaphex d8ba05170f (ALSA) Use macro for frames to bytes 2017-04-20 13:31:02 +02:00
twinaphex 9faae7eb3f (ALSA) Use macro for determing frames from bytes instead of snd_pcm_bytes_to_frames 2017-04-20 11:20:34 +02:00
twinaphex d1664481c2 Don't call input_remote_state unless pointer is non-NULL 2017-04-20 10:57:09 +02:00
twinaphex 69a3bf6a31 Create bsv_movie_is_playback_{on|off} 2017-04-20 10:40:11 +02:00
twinaphex 9daa63437a Simplify math/vector files 2017-04-20 10:30:30 +02:00
twinaphex fa347475e8 Simplify matrix_3x3.c 2017-04-20 10:25:54 +02:00
twinaphex 3fb630c571 Get rid of is_perfcnt_enable for audio_driver_write function 2017-04-20 10:15:11 +02:00
twinaphex 154b98394b Don't stop/start the audio driver when muting/unmuting 2017-04-20 10:02:54 +02:00
twinaphex 637b26772c Directly initialize some variables 2017-04-20 09:46:03 +02:00
twinaphex 1cc350bfdb Prevent some implicit memsets 2017-04-20 09:21:08 +02:00
twinaphex 96a9730a08 Cleanups 2017-04-20 09:15:56 +02:00
twinaphex d1ff5dd973 Header include cleanups 2017-04-20 09:14:20 +02:00
twinaphex 4df1ba690d (D3D) Header cleanups 2017-04-19 19:11:58 +02:00
twinaphex d220ce5870 Update D3D9 2017-04-19 18:58:01 +02:00
Twinaphex 8eed4c38cf Merge pull request #4833 from kbrenneman/platform-enums
Define the platform enums if they aren't in eglext.h.
2017-04-19 16:13:07 +02:00
twinaphex 87c5b03bed Get rid of another pragma warning 2017-04-19 16:11:35 +02:00
twinaphex d4ecc6398d (d3d9_cg_renderchain.cpp) Fix header includes 2017-04-19 16:11:00 +02:00
twinaphex 0b3e90dbf4 Header cleanups D3D9 2017-04-19 16:10:11 +02:00
twinaphex 0a074ec4a5 audio_driver_alive() should return true inside audio_driver_start 2017-04-19 15:55:35 +02:00
Kyle Brenneman a4d19e174a Define the platform enums if they aren't in eglext.h.
Add #defines for EGL_PLATFORM_X11_KHR, EGL_PLATFORM_WAYLAND_KHR, and
EGL_PLATFORM_GBM_KHR, if they aren't already defiend in eglext.h.
2017-04-19 07:08:05 -06:00
twinaphex 27a6d68af9 Get rid of this pragma 2017-04-19 12:56:25 +02:00
twinaphex d5d04babdd Cleanups 2017-04-19 12:55:41 +02:00
twinaphex 9ca27adb59 Simplify D3D9 headers 2017-04-19 12:46:07 +02:00
twinaphex 1f29de24de Update Makefile.common 2017-04-19 12:43:26 +02:00
twinaphex ca6eee21d9 Add header include for null_renderchain.c 2017-04-19 12:37:54 +02:00
twinaphex 0a33e6e8e4 Fix relative path header includes 2017-04-19 02:17:34 +02:00
twinaphex b15cca82c7 Fix some relative path header includes 2017-04-19 02:15:47 +02:00
twinaphex 841adf04a5 Add header include 2017-04-19 02:14:51 +02:00
twinaphex 5bfc513af4 Buildfixes 2017-04-19 02:03:01 +02:00
twinaphex 00a59629aa Silence some more warnings 2017-04-19 01:57:00 +02:00
twinaphex 7790fc3647 MOve renderchain files to dir 2017-04-19 01:51:05 +02:00
twinaphex 32c91baca6 Move read_viewport and viewport_info to render_chain_gl_legacy.c 2017-04-19 01:25:34 +02:00
Twinaphex faafa2def0 Merge pull request #4831 from GregorR/netplay-rewind
Make rewind compatible with netplay.
2017-04-18 22:22:25 +02:00
Gregor Richards fbb508ab5e Make rewind compatible with netplay.
This commit adds support for temporary desync in netplay. When frontend
features that can't be truly synced, in particular rewind, are used,
netplay is momentarily disabled. As soon as the feature finished, e.g. a
rewind ending, netplay resumes with a state load. For rewind, netplay
peers won't actually experience the effect of rewind, but they will load
the rewound state.
2017-04-18 15:25:58 -04:00
twinaphex 7104d329fd Update logs 2017-04-18 06:02:43 +02:00
twinaphex d722ac6c04 Cleanup 2017-04-18 05:57:38 +02:00
twinaphex d5821c7f61 Update logs 2017-04-18 05:42:49 +02:00
twinaphex f4071ba6ec Set axis_threshold 2017-04-18 05:11:44 +02:00
twinaphex 0a8f7b9ff2 Simplify CMD_EVENT_AUDIO_STOP/CMD_EVENT_AUDIO_START 2017-04-18 04:11:34 +02:00
twinaphex e21df42ec1 Turn function static 2017-04-18 03:59:15 +02:00
twinaphex 8aa7ae168e Remove unused function 2017-04-18 03:54:53 +02:00
twinaphex 55dd4ac754 Simplifications 2017-04-18 03:52:01 +02:00
twinaphex 662755c899 Start simplifying audio driver start/stop 2017-04-18 03:49:35 +02:00
Twinaphex 4159dc43ed Merge pull request #4828 from kbrenneman/fix-eglGetDisplay-ifdef
Add #ifdefs for trying to use eglGetPlatformDisplay.
2017-04-17 10:19:30 +02:00
Kyle Brenneman 7baa75bee0 Add #ifdefs for trying to use eglGetPlatformDisplay.
Add #ifdefs for EGL_VERSION_1_5 and EGL_EXT_platform_base around the calls to
eglGetPlatformDisplay and eglGetPlatformDisplayEXT, respectively.

This avoids compiler errors when the EGL header files don't have the necessary
declarations for EGL 1.5 or EGL_EXT_platform_base.

Follow-up fix for https://github.com/libretro/RetroArch/issues/4790
2017-04-16 17:11:27 -06:00
twinaphex d433d592e1 Do this workaround for now - for Android/Emscripten 2017-04-17 00:26:20 +02:00
Twinaphex 692caf19ce Merge pull request #4827 from fr500/master
android autoconf improvements
2017-04-17 00:23:39 +02:00
twinaphex 96d984b04d (egl_common.c) Cleanups/style nits 2017-04-17 00:04:08 +02:00
radius a759cd9a19 allow swapping ok/cancel via autoconf parameter 2017-04-16 16:59:05 -05:00
radius d236b2db58 try to override swap ok/cancel for remote controls 2017-04-16 16:51:54 -05:00
radius d70d04c473 improve shield portable hack 2017-04-16 16:48:37 -05:00
Twinaphex 996bb990a0 Merge pull request #4826 from kbrenneman/fix-eglGetDisplay
Use eglGetPlatformDisplay when it's available.
2017-04-16 22:52:21 +02:00
Kyle Brenneman fcccc9dc0b Use eglGetPlatformDisplay when it's available.
Added a platform parameter to egl_init_context. If the caller provides a
platform other than EGL_NONE, then it will try to use eglGetPlatformDisplay or
eglGetPlatformDisplayEXT instead of eglGetDisplay.

If neither eglGetPlatformDisplay or eglGetPlatformDisplayEXT is supported, then
it will still fall back to calling eglGetDisplay.

Updated the Wayland, X11, and DRM callers to use the correct platform enum.
Those are the callers that don't just pass EGL_DEFAULT_DISPLAY as the native
display handle.

Calling eglGetDisplay with any value other than EGL_DEFAULT_DISPLAY is
inherently unreliable, because it requires the EGL implementation to guess a
platform type based on a (void *) pointer. Some implementations might not
identify a particular platform, or worse, might guess wrong.

Fixes https://github.com/libretro/RetroArch/issues/4790
2017-04-16 14:19:40 -06:00
twinaphex 5b9a17dc8f (gfx/scaler) Cleanups 2017-04-16 19:54:38 +02:00
twinaphex f21bb4d0dc Simplify scaler_filter 2017-04-16 12:57:21 +02:00
twinaphex 0c5a87b1d7 Create scaler_ctx_scale_direct 2017-04-16 11:03:29 +02:00
twinaphex 9c7dd3068f Get rid of unnecessary wrappers around calloc/free 2017-04-16 10:39:42 +02:00
twinaphex f14dbe081b Simplify scaler.c 2017-04-16 10:36:16 +02:00
twinaphex 8fd0033b43 Simplify scaler code 2017-04-16 10:29:22 +02:00
twinaphex 602ba5d8a6 scaler_filter - cleanups 2017-04-16 09:58:42 +02:00
twinaphex 9ee32a4dd6 Style nit 2017-04-16 09:50:53 +02:00
twinaphex 23bedbb3fb Turn libretro_get_environment_info into static function 2017-04-16 09:42:17 +02:00
twinaphex c1e85bb504 Add to CHANGES.md 2017-04-16 08:45:29 +02:00
twinaphex b43d0b4201 Simplify matrix_3x3 2017-04-16 08:36:04 +02:00
twinaphex 9b3519f850 Turn matrix_4x4_lookat into macro, remove matrix_4x4.c 2017-04-16 07:57:31 +02:00
twinaphex 257410d058 Turn matrix_4x4_multiply into macro 2017-04-16 07:55:02 +02:00
twinaphex b7aefa71f8 Cleanups to matrix_3x3.c 2017-04-16 07:30:23 +02:00
twinaphex 8ac346be63 (libretro-common) Cleanups 2017-04-16 05:06:15 +02:00
twinaphex a86e6975cc Update 2017-04-16 04:57:45 +02:00
twinaphex 8f7fc79cd7 Don't include retro_inline.h 2017-04-16 04:50:34 +02:00
twinaphex e06006b436 Turn more matrix_4x4 functions into macros 2017-04-16 04:44:35 +02:00
twinaphex d30686a78f Add math.h header include to matrix_4x4.h 2017-04-16 04:03:55 +02:00
twinaphex 32cebbbcba Turn more matrix_4x4 functions into macros 2017-04-16 04:00:20 +02:00
twinaphex fbd6d0ebc6 Turn more matrix 4x4 functions into macros 2017-04-16 03:53:07 +02:00
twinaphex 809bce6cd9 Start turning most matrix 4x4 functions into macros 2017-04-16 03:45:07 +02:00
twinaphex 793930b352 Simplify matrix_4x4_identity 2017-04-16 03:34:33 +02:00
twinaphex bd63327c3d Cleanup matrix_3x3_identity 2017-04-15 22:30:02 +02:00
twinaphex a9492f6a44 Cleanups 2017-04-15 22:27:23 +02:00
twinaphex b591d63e8b Silence unused variable warning 2017-04-15 20:20:47 +02:00
twinaphex 4b419ce125 (iOS) Fix 'release is unavailable; not available in automatic reference
counting mode'
2017-04-15 20:20:08 +02:00
Zoran Vuckovic 66f1c42fcc Add sync off support, improve format negotiation 2017-04-15 20:09:14 +02:00
Zoran Vuckovic 05a3f43057 Add sync off support, improve format negotiation 2017-04-15 20:09:08 +02:00
twinaphex 7f4b490fdb Prevent implicit memsets with struct video_viewport 2017-04-15 19:43:52 +02:00
twinaphex e3fce81097 Use BRIDGE macro 2017-04-15 19:28:10 +02:00
twinaphex 1d97a81224 Optimize get_backing_scale_factor - store result of backing scale
factor query and use it for later function call invocations
2017-04-15 19:27:33 +02:00
Twinaphex 2324399fa8 Buildfix 2017-04-15 19:21:10 +02:00
twinaphex e97682d4ca Simplify cocoa_gl_ctx.m 2017-04-15 19:20:42 +02:00
Twinaphex a5998cb589 (MUI) Remove some unused variables 2017-04-15 19:14:02 +02:00
Twinaphex 80017f7d71 (OSX) Try to free allocation at the end of get_selector 2017-04-15 19:13:21 +02:00
Twinaphex fe33f30c15 Merge pull request #4824 from fr500/master
Couple of small fixes
2017-04-15 18:11:32 +02:00
radius 0b2afde90b Partial match is never used and interferes with the fallback mechanism 2017-04-15 10:47:51 -05:00
radius 89829d22b4 [lobby] disable these logs, too verbose for production 2017-04-15 10:47:51 -05:00
twinaphex 592fe4d967 Too long filenames were causing crashes/segfaults 2017-04-15 02:38:22 +02:00
twinaphex f9b75e7d76 CXX_BUILD buildfix 2017-04-14 03:40:58 +02:00
Zoran Vuckovic 90cfb50658 Added settings and non-standard frame rate handling 2017-04-14 03:35:40 +02:00
aliaspider c04573233c add missing extern "C" guard. 2017-04-11 18:54:26 +01:00
aliaspider f73c3af445 (msvc) use the correct config for x64 builds. 2017-04-11 17:58:35 +01:00
aliaspider b1d750bc1d enable x64 builds in RetroArch-msvc2010.sln 2017-04-11 16:31:18 +01:00
twinaphex a58395b718 Add to CHANGES.md 2017-04-11 00:55:47 +02:00
twinaphex d63e79a8ce (Griffin) Update 2017-04-11 00:54:21 +02:00
twinaphex 0341bdcf77 (WASAPI) Get rid of this header include 2017-04-11 00:51:34 +02:00
twinaphex 05496a8b57 (WASAPI) Nits 2017-04-11 00:35:21 +02:00
Zoran Vuckovic 2a594d313c fixed latency and buffer duration calculations 2017-04-11 00:24:43 +02:00
Zoran Vuckovic 129151d5fc add wasapi audio driver 2017-04-11 00:24:37 +02:00
twinaphex c6887aa999 Update compat/zlib.h 2017-04-10 23:17:30 +02:00
twinaphex 29b9c2e14d Update deps/libz/uncompr.c 2017-04-10 22:08:20 +02:00
twinaphex 2712b60de0 (rjpeg) Cleanup 2017-04-10 06:11:53 +02:00
twinaphex a84540515c Cleanup 2017-04-10 06:03:49 +02:00
Twinaphex 286b4e8f09 Merge pull request #4813 from Monroe88/autosave2
Allow setting SRAM Autosave in 1 second intervals
2017-04-08 23:29:15 +02:00
Monroe88 f36b70e8b5 Allow setting SRAM Autosave in 1 second intervals 2017-04-08 15:41:45 -05:00
twinaphex 9e5d6c4155 Update Makefile.common/griffin 2017-04-07 20:56:30 +02:00
Twinaphex 652c59b25e Merge pull request #4809 from BlueKore/master
Forked the generic portuguese locale file into two versions: the portuguese and brazilian one.
2017-04-07 20:53:57 +02:00
BlueKore 292ed35005 Fixed a bug in the french translations file. 2017-04-07 19:47:29 +01:00
BlueKore d1bfea400c Fixed some portuguese expressions. 2017-04-07 19:41:11 +01:00
Twinaphex a74c2748ec Merge pull request #4807 from joolswills/mali_compat
hardcode struct for compatibility between various mali EGL headers
2017-04-07 20:25:11 +02:00
BlueKore f6ebe7c6a9 Changed the language enums. Fixed the language references in the msg files. 2017-04-07 19:15:44 +01:00
BlueKore c1e13a9fcf Deleted the old locale files. 2017-04-07 19:04:34 +01:00
BlueKore b5e379dd80 Replaced the language files. Initial commit. 2017-04-07 19:04:16 +01:00
Jools Wills b587018c56 hardcode struct for compatibility between various mali EGL headers
Old kronos headers used mali_native_window, ARM's headers used fbdev_window, and
latest mali-fbdev package on the odroid with newer khronos headers, the struct seems missing
2017-04-07 18:55:33 +01:00
Francisco José García García 67055289d0 Merge pull request #4803 from libretro/frangarcj-io-patch
Small fix
2017-04-06 14:20:20 +02:00
Francisco José García García 8983af2016 Small fix 2017-04-06 11:47:19 +02:00
twinaphex 295cae5a7b Take this out 2017-04-05 20:56:03 +02:00
Twinaphex 893fcdd39e Merge pull request #4801 from libretro/frangarcj-io-patch
[VITA] Fix slow IO
2017-04-05 19:38:00 +02:00
Francisco José García García 8568667481 Add threading.c 2017-04-05 19:35:45 +02:00
Francisco José García García 5940d227bb Fix slow io 2017-04-05 19:32:07 +02:00
Twinaphex 50281f5755 Merge pull request #4795 from Tatsuya79/master
Make mouse relative again.
2017-04-01 18:54:07 +02:00
Twinaphex fdae8f4c6d Merge pull request #4794 from fr500/master
Lobby improvements
2017-04-01 17:53:54 +02:00
radius 40ac2126c9 [lobby] fallback to filename based matching when a match isn't found by CRC, should help users with manually created playlists 2017-04-01 00:19:15 -05:00
radius 74d3915302 fix comments 2017-03-31 23:20:35 -05:00
Tatsuya79 5649f084e3 Make mouse relative again. 2017-03-31 17:28:49 +02:00
twinaphex 3da08c9d9e Cleanup egl_create_context 2017-03-30 02:39:08 +02:00
twinaphex 38f9b93885 Refine egl_init_context - DRM EGL contexts still fails
at eglGetDisplay
2017-03-30 02:31:51 +02:00
Brad Parker dd80ffc61b FreeBSD buildfix 2017-03-29 16:47:58 +00:00
Twinaphex 989815e9f2 Merge pull request #4783 from Monroe88/audio_latency
Allow audio latency setting to be fine tuned with 1ms intervals
2017-03-27 06:46:48 +02:00
Monroe88 0610721aa0 Allow audio latency setting to be fine tuned with 1ms intervals 2017-03-26 21:28:19 -05:00
twinaphex 3996dc4b79 Update libretro-common 2017-03-26 05:07:48 +02:00
twinaphex ab2d94bb64 Update libretro-common 2017-03-26 04:54:50 +02:00
twinaphex 4a9639f02f Silence warning 2017-03-26 03:31:41 +02:00
twinaphex ef733f0049 Update compat/zlib.h 2017-03-26 00:24:33 +01:00
twinaphex 91dabc3165 Cleanups 2017-03-25 23:07:50 +01:00
twinaphex 95e934825a Update deps/libz 2017-03-25 21:58:56 +01:00
twinaphex aace0ae9bd Set default libretro logging level to 1 2017-03-25 10:36:24 +01:00
twinaphex 4921cb719b Update CHANGES.md 2017-03-25 10:26:52 +01:00
twinaphex 55a0b7d1a9 Create default_ortho static variable 2017-03-25 10:22:57 +01:00
twinaphex 7d79e367f9 (GL) Prevent implicit memset; some other general cleanups 2017-03-25 10:18:24 +01:00
twinaphex d77c209c85 Cleanups 2017-03-25 10:13:18 +01:00
twinaphex 53efaf1816 Move files 2017-03-25 10:06:13 +01:00
twinaphex 69abe6dbb9 Move deps/zlib to deps/libz 2017-03-25 10:05:33 +01:00
twinaphex 92221216bf Update deps/zlib 2017-03-25 01:33:06 +01:00
twinaphex ed0aefaf6c Update deps/zlib/crc32.c 2017-03-25 01:31:04 +01:00
twinaphex 7123d1fbd2 Update crc32 2017-03-25 01:28:25 +01:00
twinaphex 6d49ccf978 (zlib) Update adler32 2017-03-25 01:26:21 +01:00
twinaphex 0369fd6578 Try to silence potential resource leak pointed out by Coverity 2017-03-24 01:51:29 +01:00
twinaphex e5370c114b Update logs 2017-03-24 01:46:28 +01:00
twinaphex b97c8a183d Update log 2017-03-24 01:38:23 +01:00
twinaphex 24311af259 Update logs for V4L2 2017-03-24 01:36:30 +01:00
twinaphex a72cdb77ad Update logs 2017-03-24 01:33:22 +01:00
twinaphex 396857db9a Update logs 2017-03-24 01:28:58 +01:00
twinaphex 755ceda4f9 More consistent log messages 2017-03-24 00:30:14 +01:00
twinaphex 1b27c3dec1 Make some log messages more consistent 2017-03-24 00:28:21 +01:00
twinaphex 0fc2a87bfd CXX_BUILD fix 2017-03-24 00:18:20 +01:00
twinaphex 7579d68272 Cleanups 2017-03-24 00:15:17 +01:00
twinaphex 62aa0c4415 Split up dbus functions into separate file 2017-03-24 00:12:21 +01:00
twinaphex 22672af217 Update logs 2017-03-23 23:59:08 +01:00
twinaphex 17235d70e2 Create set_coords_fallback for shader driver 2017-03-23 21:49:29 +01:00
twinaphex 571f899c3d Don't include these headers 2017-03-23 20:09:24 +01:00
twinaphex 805470072b Make desktop_mode a static variable inside x11_common.c 2017-03-23 20:07:56 +01:00
twinaphex 1ce3b12335 Split up xinerama functions into separate files 2017-03-23 19:59:11 +01:00
twinaphex 09e7186a4e Start splitting up xinerama functions 2017-03-23 19:46:06 +01:00
twinaphex 4c0ce28e6e (x11_common.c) Cleanups 2017-03-23 19:36:39 +01:00
twinaphex a56afd8b8f Only set video.shader_enable to false if video_driver_set_shader
fails
2017-03-23 19:17:09 +01:00
twinaphex 541c1b34e1 Don't do early return inside menu_shader_manager_init; free the
previously allocated menu shader first
2017-03-23 19:15:14 +01:00
Twinaphex 76a53e75ad Merge pull request #4773 from fr500/master
Always extract zips except for content
2017-03-22 06:14:30 +01:00
radius 482261e81b remove pointless check 2017-03-21 23:59:18 -05:00
radius 32a132e0ab only use this flag for actual content, the rest of the downloads should always be extracted 2017-03-21 23:53:57 -05:00
twinaphex 8c89ec158c Update copyrights 2017-03-22 03:09:18 +01:00
twinaphex 1274092fdd Move audio_mixer code to libretro-common 2017-03-22 03:00:21 +01:00
twinaphex 8906ebc272 Get rid of header include 2017-03-22 02:54:11 +01:00
Brad Parker 84558215fd android: permission result is only valid if our request code matches 2017-03-20 15:58:25 +00:00
meepingsnesroms f79630e778 Merge pull request #4770 from bparker06/permissions
android: add runtime permission checking for Android 6.0+
2017-03-20 07:58:51 -07:00
Brad Parker 61cbb25b12 add callback for permission request result, style nits 2017-03-20 14:46:43 +00:00
Brad Parker b1e94e8215 android: add runtime permission checking for Android 6.0+ 2017-03-20 05:25:05 +00:00
Brad Parker 151feee826 add null pointer check, fixes startup crash with null video driver 2017-03-19 19:25:19 -04:00
twinaphex c9c0621076 Try to fix some Coverity bugs 2017-03-19 02:27:07 +01:00
Twinaphex b8830815ab Merge pull request #4763 from hizzlekizzle/master
finish French translation, courtesy of forum user Tromzy
2017-03-18 20:29:12 +01:00
Twinaphex 3d992be092 Merge pull request #4766 from rootfather/intl-de
Intl: Update German GUI translation
2017-03-18 20:29:06 +01:00
Lothar Serra Mari 422c6a4935 Intl: Update German GUI translation 2017-03-18 16:28:41 +01:00
hunterk 3a0692711f finish French translation 2017-03-17 10:59:40 -05:00
Brad Parker 3e1be4d549 update JP translation 2017-03-17 11:05:51 -04:00
Brad Parker 32a5c1a58b missing null pointer check, just close dialog if no hostname was specified, fixes issue #4703 2017-03-13 21:05:00 -04:00
twinaphex 137f8df057 Bump up version code 2017-03-13 20:28:20 +01:00
Jean-André Santoni 0b05fdf0b5 (Input) Fix shift release in xkb 2017-03-13 00:52:42 +01:00
Jean-André Santoni f4103b4074 (GLUI) Attempt to fix the browser+touch bug 2017-03-12 16:03:18 +01:00
Brad Parker c549f7e8d7 android: set XMB as default for Android TV devices 2017-03-10 22:17:05 -05:00
twinaphex 51581e1578 Include string.h instead 2017-03-09 01:50:27 +01:00
Jean-André Santoni 1148c6156e Fix wrong wraparound code 2017-03-08 21:32:43 +01:00
Twinaphex 256433a00b Bump up to 1.5.0 2017-03-07 18:37:57 +01:00
twinaphex 2559aec92d Bump version 2017-03-07 18:35:06 +01:00
twinaphex 9e2ae4aca4 Use 1.5.0 2017-03-07 18:33:35 +01:00
Brad Parker c12cc8e5be netplay: change lobby reannounce period to 600 frames 2017-03-07 12:29:51 -05:00
twinaphex 03d58e9e62 Update 2017-03-07 15:00:20 +01:00
twinaphex 17739435de Cleanups 2017-03-07 12:59:58 +01:00
twinaphex 4118d0bbd2 Cleanups 2017-03-07 12:49:52 +01:00
twinaphex f4ac760178 Cleanups 2017-03-07 12:37:11 +01:00
twinaphex cb1c8df547 Simplify gl_glsl_set_coords 2017-03-07 12:35:29 +01:00
Jean-André Santoni 7db6e58273 Don't run OSK code if the OSK is not displayed 2017-03-07 11:57:30 +01:00
Brad Parker bb362f307d netplay: don't advertise over LAN or try to open a port with UPnP if we're using a MITM server 2017-03-06 21:39:03 -05:00
bparker06 ced1dc10c1 Merge pull request #4732 from GregorR/netplay-server-spectator-fix-2-electric-boogaloo
Yet another server-is-spectator bug. Don't ever ignore stalls if we're a client
2017-03-06 21:25:18 -05:00
Brad Parker 4f02450bf9 forgot extra storage for NULL byte 2017-03-06 21:10:27 -05:00
Gregor Richards 2f21a3e370 Yet another server-is-spectator bug. Don't ever ignore stalls if we're a
client
2017-03-06 20:13:26 -05:00
Jean-André Santoni ff575a3460 PCE-CD magic number detection 2017-03-07 01:16:58 +01:00
Brad Parker d9c78c75f0 fix setting of netplay has_password in lobby announcement 2017-03-06 16:01:45 -05:00
Twinaphex 4b796ae740 Silence warnings 2017-03-06 12:12:00 +01:00
Jean-André Santoni c7722143b9 Update CHANGES.md 2017-03-06 09:50:24 +01:00
Brad Parker 6a68a01eb9 msvc2005 buildfix 2017-03-05 22:02:55 -05:00
Brad Parker 310c486f6a update changelog 2017-03-05 20:48:14 -05:00
Jean-André Santoni e7be847784 Avoid pushing netplay rooms on wrong tabs 2017-03-05 22:42:33 +01:00
Jean-André Santoni 4318000f8f (XMB) Change icon sets on the fly 2017-03-05 22:31:30 +01:00
twinaphex cf82bdbebd Get rid of more implicit memsets 2017-03-05 22:24:35 +01:00
twinaphex 85e5a01576 Get rid of some implicit memsets 2017-03-05 22:21:55 +01:00
Twinaphex 7d9edc0874 Update iOS solutions 2017-03-05 22:07:19 +01:00
Brad Parker 12a208f75e merge reannounce bugfix from radius 2017-03-05 15:49:07 -05:00
Twinaphex ec14874363 Update to version 1.4.2 2017-03-05 20:52:24 +01:00
twinaphex c5717ecd84 Start bumping up to version 1.4.2 2017-03-05 20:51:15 +01:00
Twinaphex c343a88c10 Silence unused variable warnings 2017-03-05 20:30:14 +01:00
Brad Parker 9a7d38de77 MSVC buildfix: add UTF8 BOM to korean translation 2017-03-05 14:28:33 -05:00
Brad Parker 1a251de6be update changelog 2017-03-05 14:22:50 -05:00
Brad Parker c6b1a4bb48 join MITM server when host starts game, if the announcement requested MITM 2017-03-05 14:19:39 -05:00
Brad Parker 2df1ed9157 fix inconsistent dll linkage warning in msvc 2017-03-05 14:19:39 -05:00
Brad Parker bd6ca986d8 msvc buildfix 2017-03-05 14:19:38 -05:00
Brad Parker bf553fe65c netplay: connect to MITM server instead of host IP if one is specified in lobby listing 2017-03-05 14:19:38 -05:00
Brad Parker 8a01dda5d6 send force MITM setting with lobby announcement 2017-03-05 14:19:38 -05:00
Brad Parker f2c4eb5047 add sublabel for MITM 2017-03-05 14:19:38 -05:00
Brad Parker 1f42889936 add settings -> network entry to force using a MITM server for netplay 2017-03-05 14:19:37 -05:00
Brad Parker 1fc7a50f3e fix non-ascii URL encoding 2017-03-05 14:19:37 -05:00
Brad Parker 7aca744635 URL encode non-ascii characters 2017-03-05 14:19:37 -05:00
Brad Parker c7c0e1351a send CRC as hex string 2017-03-05 14:19:37 -05:00
Brad Parker 4f2cdf3a84 populate system info before reading it 2017-03-05 14:19:36 -05:00
Brad Parker 79899e6b71 silence linux warning 2017-03-05 14:19:36 -05:00
Brad Parker ad6733b519 add full urlencoder and encode lobby announcement POST data 2017-03-05 14:19:36 -05:00
Brad Parker 9c19f16539 remove debug stuff 2017-03-05 14:19:36 -05:00
Brad Parker 0d81b2005f parse new lobby room listing with JSON 2017-03-05 14:19:35 -05:00
Brad Parker 21fe0c8499 bake in johnanthonyowens/jsonsax as jsonsax_full 2017-03-05 14:19:35 -05:00
Brad Parker fb3393eb3a add user agent to http requests 2017-03-05 14:19:35 -05:00
Brad Parker 101475c2f6 fix POST handling 2017-03-05 14:19:34 -05:00
Brad Parker c31823aa94 add HTTP POST support 2017-03-05 14:19:34 -05:00
twinaphex c99d83f15c Update 2017-03-05 20:14:01 +01:00
twinaphex 71b0666ec5 Silence another Coverity warning 2017-03-05 20:06:36 +01:00
twinaphex 0123d33780 Silence CXX_BUILD warnings 2017-03-05 19:28:34 +01:00
twinaphex 3a5eb48c4a C89_BUILD fixes 2017-03-05 19:25:11 +01:00
twinaphex df1313bc37 Change signature for word_wrap 2017-03-05 19:15:04 +01:00
twinaphex bb15b14388 word_wrap - Dont' call strlen once every loop iteration 2017-03-05 19:09:31 +01:00
twinaphex c70b8c42c5 Cleanups to word_wrap 2017-03-05 19:02:32 +01:00
twinaphex 63973a52e0 Simplify word_wrap 2017-03-05 19:01:44 +01:00
Twinaphex a5c57fe882 Prevent unused variable warning 2017-03-05 18:57:15 +01:00
twinaphex 79bde3f9b1 remove unused value 2017-03-05 18:52:36 +01:00
twinaphex 0b7ef78122 Simplify core_info_database_supports_content_path 2017-03-05 18:47:02 +01:00
twinaphex 279b2e1123 Update CHANGES.md 2017-03-05 18:04:29 +01:00
twinaphex e122c91519 Update CHANGES.md 2017-03-05 18:03:51 +01:00
Jean-André Santoni e758406d52 Undo save/load state shouldn't be an advanced setting 2017-03-05 17:54:37 +01:00
Jean-André Santoni e587264b3d (OSK) Ascii symbol page 2017-03-05 11:54:08 +01:00
Jean-André Santoni 69694a2fab Merge pull request #4727 from losernator/master
Add Korean translation
2017-03-05 11:30:31 +01:00
Jean-André Santoni c808fa54c7 Merge pull request #4729 from libretro/touch-improvements
Touch improvements
2017-03-05 11:23:59 +01:00
Jean-André Santoni 130e3a77d8 (GLUI) Fix the menu entry being selected while we try to scroll 2017-03-05 09:49:22 +01:00
Jean-André Santoni 199d7b63a1 (Menu) Attempt to fix scroll speed issue 2017-03-05 00:15:21 +01:00
Jean-André Santoni bb0d4dae07 (Menu) iOS touch fixes 2017-03-04 22:16:55 +01:00
losernator d019855439 Update msg_hash_ko.c 2017-03-05 02:10:53 +09:00
losernator b8020c0c21 add support for Korean 2017-03-05 01:43:13 +09:00
losernator baa666022f add support for Korean 2017-03-05 01:42:14 +09:00
losernator aed6fa83bd add support for Korean 2017-03-05 01:39:14 +09:00
losernator 5f2e6c4320 add support for Korean 2017-03-05 01:36:08 +09:00
losernator b5a01bc42e add support for Korean language 2017-03-05 01:32:16 +09:00
losernator 36c2d457fc add support for Korean language 2017-03-05 01:31:18 +09:00
Jean-André Santoni 013bf29fff (Menu) A long press will reset a setting to its default value 2017-03-04 15:35:05 +01:00
Jean-André Santoni 002928c399 (Menu) Separate callbacks for pointer_up and pointer_down 2017-03-04 15:11:29 +01:00
Andrés ec395048b6 Update CHANGES.md 2017-03-01 23:07:14 -05:00
twinaphex 85b099b8cf Update 2017-03-01 22:09:38 +01:00
Twinaphex a2def14969 Merge pull request #4715 from gingerbeardman/master
Additional icons and banners for 3DS
2017-03-01 13:12:19 +01:00
twinaphex 4109ffdb6b Update of libretro-common 2017-03-01 05:03:23 +01:00
Brad Parker 96650e14ea break early if server frame count is ahead of NOINPUT 2017-02-28 21:46:57 -05:00
Jean-André Santoni dbd359ad6a Merge pull request #4712 from leiradel/master
Fix resampler->process overriding memory because we don't know exactl…
2017-02-28 19:49:45 +01:00
Jean-André Santoni 18e1a817b3 Merge pull request #4713 from fr500/master
mantain LAN rooms in the list after moving left/right
2017-02-28 19:48:57 +01:00
Matt Sephton 34e3490ce9 Updated assets.7z 2017-02-28 16:32:52 +00:00
Matt Sephton 693652b2a9 Created icons and banners for cores that have recently been compiled for 3DS
See:
https://gbatemp.net/threads/unofficial-3ds-retroarch-builds-compatibilit
y-thread.462252/page-2#post-7138543

Art files available as .afdesign or .svg or similar
2017-02-28 16:32:43 +00:00
Brad Parker fea8a0f780 Don't stall for spectator data when we're not in spectator mode, thanks @GregorR 2017-02-28 11:31:59 -05:00
Andrés f39de90837 Merge pull request #4671 from dankcushions/patch-3
One option moved to advanced settings.
2017-02-28 11:14:53 -05:00
radius eba92bd3ca mantain LAN rooms in the list after moving left/right 2017-02-28 11:10:17 -05:00
Andre Leiradella 2481d25f0f Fix resampler->process overriding memory because we don't know exactly how much memory it needss 2017-02-28 14:48:20 +00:00
twinaphex 57e0e30600 Update core_info.c 2017-02-28 11:16:05 +01:00
twinaphex 6396f0391a Cleanups 2017-02-28 10:56:02 +01:00
twinaphex 3cecdcdd7d Cleanups 2017-02-28 10:55:39 +01:00
twinaphex 824a619b90 Initialize db manually 2017-02-28 10:53:20 +01:00
twinaphex ef1323bbfd Prevent explicit NULL dereference 2017-02-28 10:47:24 +01:00
twinaphex 56eb09406b Add TODO/FIXME 2017-02-28 10:28:49 +01:00
twinaphex c17dbe6ddb Using calloc seems to get us past the crashes 2017-02-28 10:27:34 +01:00
twinaphex 2fa9d47b61 Cleanups 2017-02-28 10:22:06 +01:00
twinaphex aff63e6c3f Cleanups 2017-02-28 10:16:36 +01:00
twinaphex 8195c601d5 Cleanups 2017-02-28 10:14:00 +01:00
twinaphex 05b760d0f8 Fix C89_BUILD/CXX_BUILD 2017-02-28 09:52:33 +01:00
twinaphex 5bf5388759 Cleanups 2017-02-28 09:44:44 +01:00
Twinaphex 59f5c596d6 Merge pull request #4707 from fr500/master
LAN scanning into rooms
2017-02-28 05:47:49 +01:00
radius 0c456c2235 comment this out for now 2017-02-27 23:47:04 -05:00
twinaphex 2be88a44ed (XMB) Fix 2017-02-28 04:50:07 +01:00
bparker06 b30b9599a2 Merge pull request #4708 from GregorR/netplay-empty-info
Support empty INFO packet for undifferentiated servers.
2017-02-27 22:24:02 -05:00
Gregor Richards 8fb1f6a647 Support empty INFO packet for undifferentiated servers. 2017-02-27 22:06:20 -05:00
radius 35d78bb010 better label 2017-02-27 22:04:59 -05:00
radius ba4804ed7c differentiate lan and internet rooms 2017-02-27 21:58:39 -05:00
radius 650655abbe doesn't seem to crash anymore 2017-02-27 21:44:11 -05:00
radius e50ea80dfa integrate the rest of the lan scan parameters 2017-02-27 21:24:34 -05:00
Twinaphex 92bbeab6f6 Merge pull request #4704 from gingerbeardman/icons
Corrected height of fceumm icon to 48px
2017-02-28 02:44:57 +01:00
radius 5ca55aa533 publish IP address correctly 2017-02-27 20:22:56 -05:00
Twinaphex c9add8c68e Merge pull request #4706 from fr500/master
Adds lan games to the ROOM list
2017-02-28 01:04:59 +01:00
radius b719f30b8e add lan games 2017-02-27 19:00:43 -05:00
radius 2bdd938338 after the first scan it will no longer scan because of this line 2017-02-27 18:10:35 -05:00
Jean-André Santoni fc3547b8e4 Don't allow input on the user language setting 2017-02-28 00:03:19 +01:00
Jean-André Santoni 64a11ca0f4 (XMB) Allow hidding the netplay tab 2017-02-27 23:32:24 +01:00
Jean-André Santoni 834087d1ad (XMB) Use a tab styled icon for the netplay tab 2017-02-27 22:48:27 +01:00
Jean-André Santoni 46c153a0fe (XMB) Move netplay to the left of Add Tab 2017-02-27 22:36:45 +01:00
Matt Sephton a26e229445 Corrected height of fceumm icon to 48px
It had previously been stretched from 41px
2017-02-27 20:39:21 +00:00
Jean-André Santoni 15001a87d3 (XMB) Use a texture slice for dialogs 2017-02-27 20:34:17 +01:00
twinaphex 58c08c0c02 Cleanups 2017-02-27 09:33:20 +01:00
twinaphex 10bf8d4a8a Backport enlarge char buffers 2017-02-27 09:28:38 +01:00
Twinaphex 308aa4678f Update bundle identifiers 2017-02-27 03:52:11 +01:00
Jean-André Santoni 4b84449f59 Fix iOS9 static project 2017-02-27 03:50:08 +01:00
Twinaphex a6420ae966 Update ios10 target 2017-02-27 02:00:57 +01:00
Twinaphex 951ca852f5 Add ios .a targets 2017-02-27 02:00:57 +01:00
Jean-André Santoni c0ac7095fa Update pkg/apple/RetroArch_iOS9-Info.plist 2017-02-27 01:50:54 +01:00
Twinaphex ae92a0ceff Add to Info.plist 2017-02-27 01:42:29 +01:00
Twinaphex ddae075733 Silence more warnings 2017-02-27 01:28:01 +01:00
Twinaphex 9ebd8736e0 Update iOS 10 static 2017-02-27 01:05:10 +01:00
twinaphex 7974fb5c6e Add HAVE_APPLE_STORE to iOS 10 2017-02-26 23:00:03 +01:00
twinaphex 803dd83e67 Put IOS ifdef around this 2017-02-26 22:24:07 +01:00
Twinaphex 43c32aad3d Silence more warnings 2017-02-26 22:16:03 +01:00
Twinaphex fdbdcfee65 Merge pull request #4691 from GregorR/netplay-slave-mode
Netplay slave mode
2017-02-26 21:49:21 +01:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
twinaphex 89715b7195 Fix CXX_BUILD 2017-02-26 10:39:15 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex 8f01bcfb8d Update of command.c 2017-02-26 09:35:35 +01:00
twinaphex af971ea9be Try setting path when defaults menu_config is set 2017-02-26 09:35:00 +01:00
twinaphex c2036e4aed (iOS) App Store versions cannot reference non-public selectors 2017-02-26 07:05:14 +01:00
twinaphex 19bf048b68 Add log message 2017-02-26 06:44:35 +01:00
twinaphex c653e6d886 Buildfix 2017-02-26 06:14:33 +01:00
twinaphex e523280cb0 Add fallback message that informs us when config saving is not working 2017-02-26 06:07:58 +01:00
twinaphex 24b9237669 Prevent null pointer dereferences 2017-02-26 04:38:24 +01:00
twinaphex e48bd0b2b5 Update config.def.h 2017-02-26 04:00:15 +01:00
Twinaphex aa2e7dc794 Silence warning 2017-02-26 03:53:05 +01:00
Twinaphex a55df42978 Update static project 2017-02-26 03:52:28 +01:00
twinaphex 1e96a600d7 Update iOS10 static solution 2017-02-25 23:23:43 +01:00
twinaphex 2b1fbca318 Add to the define 2017-02-25 02:49:18 +01:00
twinaphex 671771d3cd Update RetroArch iOS 10 solution 2017-02-25 02:47:32 +01:00
twinaphex ca2716eef7 Add DONT_WANT_ARM_OPTIMIZATIONS 2017-02-25 02:27:47 +01:00
Twinaphex 2dfb9b9638 Revert "Attempt to not use this codepath for arm64"
This reverts commit a16ba84502.
2017-02-25 02:15:26 +01:00
Twinaphex 9062f62375 Merge pull request #4695 from zeromus/master
fix win32 console logging to be better than ever and no longer slay msys windows (fixes #4673)
2017-02-25 02:10:33 +01:00
zeromus e89706d251 fix win32 console logging to be better than ever and no longer slay msys windows (fixes #4673) 2017-02-24 18:42:19 -06:00
twinaphex a16ba84502 Attempt to not use this codepath for arm64 2017-02-25 00:28:23 +01:00
Twinaphex ed51eaf449 Update iOS 10 target for both arm64 and armv7s 2017-02-25 00:21:27 +01:00
Twinaphex 3c0afd730b Update xcode proj 2017-02-25 00:13:40 +01:00
Twinaphex 5eab3e3d96 Merge pull request #4692 from daviderickson/master
Detect non-standard joystick buttons
2017-02-24 19:31:44 +01:00
David Erickson da8662bb4a Detect non-standard joystick buttons
The Xbox One S controller when connected via Bluetooth
is exposing its select button with the Linux KEY_BACK
code, which is outside of the normal input code
scan range for joysticks.  This patch adds additional
scanning to pick up such extra buttons, and adds
them as buttons after the normal ranges to preserve
compatibility with existing key mappings.
2017-02-24 01:09:15 -08:00
twinaphex 3ae52e2095 Prevent potential crashes when pressing left/right on playlists 2017-02-24 06:58:22 +01:00
twinaphex 26474ee99e Update 2017-02-24 06:52:45 +01:00
twinaphex af02707298 Update core_manager.c 2017-02-24 06:41:18 +01:00
twinaphex cc75e002cd Add managers/core_manager.c 2017-02-24 06:29:13 +01:00
twinaphex d6ecfd42b5 Take out logging 2017-02-24 06:26:50 +01:00
twinaphex 59b86027e9 Simplify menu_displaylist_parse_cores 2017-02-24 06:26:20 +01:00
twinaphex fd5836d4e7 Prevent crash 2017-02-24 04:53:54 +01:00
Gregor Richards 07cfd90dc6 Actually USE the new slave options in config. 2017-02-23 21:49:22 -05:00
Gregor Richards a3e3b3e790 Adding settings to allow/require connections in slave mode. 2017-02-23 21:33:44 -05:00
twinaphex db02a0c52a Move this back 2017-02-24 02:21:18 +01:00
twinaphex b36683ba09 Enable companion UI start on boot if HAVE_DYNAMIC = false 2017-02-24 02:19:15 +01:00
Jean-André Santoni e6bdc9363c Buildfix for RetroArch_iOS10_static 2017-02-24 01:42:37 +01:00
Twinaphex 7a510000bb Need to change bundle identifier for RetroArchiOS 10 2017-02-24 01:11:02 +01:00
Gregor Richards 3ff9a43b7d Spectator and slave mode are rewind-free
This commit makes spectator mode and slave mode in netplay always stay
ahead of the input, thereby avoiding rewinds, which is sort of the
point. This also changes catch-up detection to be a bit less eager, so
that they hopefully don't flap between stalling for server input and
catching up with that input.
2017-02-23 19:05:43 -05:00
Twinaphex d462e91659 Merge pull request #4690 from libretro/msr_temp
Avoid 'unused scalar variable' warning
2017-02-23 21:50:28 +01:00
twinaphex b5b87d7735 Avoid 'unused scalar variable' warning 2017-02-23 21:49:51 +01:00
Twinaphex 6146daf5e8 Merge pull request #4689 from libretro/coverity_scan
Coverity scan
2017-02-23 21:35:33 +01:00
twinaphex b8e68030d0 (menu_cbs_ok.c) Cleanups 2017-02-23 21:35:06 +01:00
twinaphex dcd4d6b422 Cleanups 2017-02-23 21:32:38 +01:00
Twinaphex d969229f6a Merge pull request #4688 from libretro/msr_temp
Make sure to save the config file after bundle_decompressed
2017-02-23 15:18:08 +01:00
twinaphex 1f9059f2b5 Make sure to save the config file after bundle_decompressed 2017-02-23 15:16:51 +01:00
twinaphex f9ca3c9d87 stb_vorbis.h - get rid of this 2017-02-23 14:29:47 +01:00
twinaphex 8cbb4e13ee Prevent crashes 2017-02-23 14:27:43 +01:00
twinaphex 2074d25441 Make STB_VORBIS optional 2017-02-23 05:56:31 +01:00
twinaphex aaef2bb820 Add audio_mixer.h header file 2017-02-23 05:32:03 +01:00
twinaphex 8de102e607 Make stb_vorbis C89-compatible 2017-02-23 05:23:34 +01:00
Gregor Richards e495671563 In spectator mode, we should never be ahead of our peer. 2017-02-22 23:19:22 -05:00
Gregor Richards 3e0bc5acdc Don't flush so eagerly... 2017-02-22 23:19:02 -05:00
twinaphex 22223fa6c4 Fix CXX_BUILD for audio_mixer 2017-02-23 04:41:43 +01:00
Twinaphex 1dcf57c046 Buildfixes for stb_vorbis.h 2017-02-23 04:28:36 +01:00
twinaphex cec74a9460 Add audio_mixer.c for console/Apple builds 2017-02-23 04:26:27 +01:00
twinaphex c5b7a69801 Cleanups 2017-02-23 04:03:53 +01:00
twinaphex 4e0c24acbe Some cleanups for audio mixer 2017-02-23 04:00:40 +01:00
Twinaphex c8dfdaa5ff Merge pull request #4687 from leiradel/feature/mixer
Feature/mixer
2017-02-23 03:39:19 +01:00
Gregor Richards d1ab288d73 Fix update_unread_ptr to handle the case of only slaves connected 2017-02-22 21:10:02 -05:00
Gregor Richards e70ee045bf Initial implementation of Netplay master/slave mode. 2017-02-22 20:34:17 -05:00
Andre Leiradella 342d399a2a Don't dispose the sound on behalf of the user 2017-02-23 00:15:07 +00:00
Andre Leiradella 13ef64769d Properly dispose the sound 2017-02-23 00:10:16 +00:00
Andre Leiradella 1499a7ec64 Added the audio mixer to the Makefile 2017-02-23 00:00:16 +00:00
Andre Leiradella 7e029a5981 Added an audio mixer 2017-02-22 23:54:28 +00:00
Jean-André Santoni 8a6e102a82 Increase UPNP compatibility 2017-02-22 23:02:17 +01:00
twinaphex bd9e2e5fc7 Revert "Cleanups - menu_cbs_left.c"
This reverts commit 378a69aba9.
2017-02-22 18:45:07 +01:00
twinaphex dba6c537f2 Revert "Cleanups"
This reverts commit e9f1b25e55.
2017-02-22 18:44:59 +01:00
twinaphex e9f1b25e55 Cleanups 2017-02-22 07:23:40 +01:00
twinaphex 378a69aba9 Cleanups - menu_cbs_left.c 2017-02-22 07:21:51 +01:00
twinaphex 80fff292d8 action_right_mainmenu - cleanups 2017-02-22 07:14:41 +01:00
twinaphex c72311a708 Cleanups for left/right callbacks 2017-02-22 06:01:02 +01:00
Brad Parker d61d55e3ea update nuklear 2017-02-21 23:53:29 -05:00
twinaphex ea56249661 (net_natt.c) Free net_addrinfo before going out of scope 2017-02-22 05:24:28 +01:00
bparker06 8eb32fa824 Merge pull request #4684 from GregorR/natt-uninitialized
Fixed a bug failing to check initialization in non-UPnP-supporting setups
2017-02-21 22:09:11 -05:00
BuildTools ac9aa4783a Fixed a bug failing to check initialization in non-UPnP-supporting
setups
2017-02-21 22:02:20 -05:00
twinaphex 4403734d97 (audio_mix.c) Cleanups 2017-02-22 02:04:28 +01:00
twinaphex 5e6a79c4ac Try to fix Coverity warnings 2017-02-22 01:57:16 +01:00
Twinaphex 636ab5c12c Enable 'Requires Fullscreen' 2017-02-22 00:26:13 +01:00
Twinaphex 44f08a4739 (iOS) Use libretro_ios.a 2017-02-22 00:20:45 +01:00
twinaphex f7f333477c Add iOS 10 static solution 2017-02-22 00:01:13 +01:00
Twinaphex 188141a628 Merge pull request #4683 from GregorR/ranetplayer-info-packet
Make ranetplayer save the INFO packet as a sort of format header
2017-02-21 23:55:26 +01:00
Twinaphex d2a5f53f8d Merge pull request #4682 from GregorR/natt-else-clause
Fix missing memory free when IPv6 is unsupported
2017-02-21 23:55:16 +01:00
Gregor Richards 4746bbc972 Make ranetplayer save the INFO packet as a sort of format header 2017-02-21 17:46:29 -05:00
Gregor Richards 22500914e1 Fix missing memory free when IPv6 is unsupported 2017-02-21 17:42:09 -05:00
Brad Parker 4e1b4d051d win32: copy selected file path from browser into core/content buffer 2017-02-21 15:29:16 -05:00
twinaphex 238e234106 Prevent another Coverity warning 2017-02-21 21:20:33 +01:00
twinaphex 457b54149d Prevent another Coverity warning 2017-02-21 21:17:17 +01:00
twinaphex dc4464471e Use string_is_empty 2017-02-21 21:14:58 +01:00
twinaphex 60f0b42b1c Get rid of another FORWARD_NULL 2017-02-21 21:14:33 +01:00
twinaphex 5eec1c1f39 Get rid of forward NULL 2017-02-21 21:13:46 +01:00
twinaphex f7bbafa93d Get rid of double break 2017-02-21 21:08:01 +01:00
Twinaphex d06273e38a Merge pull request #4680 from libretro/msr_temp
patch_content - cleanup
2017-02-21 20:38:52 +01:00
twinaphex ef5b26350d patch_content - cleanup 2017-02-21 20:38:02 +01:00
twinaphex 7c83071b01 Prevent 'explicit NULL dereferenced' 2017-02-21 20:30:52 +01:00
twinaphex 8b4893965f task_image.c - FIx another REVERSE_INULL coverity warning 2017-02-21 20:29:29 +01:00
twinaphex 4645e7709b Fix another REVERSE_INULL coverity warning 2017-02-21 20:28:49 +01:00
twinaphex 2ed15fbfbc (task_image.c) Fix REVERSE_INULL coverity warning 2017-02-21 20:28:10 +01:00
twinaphex 9540e91e4c (msg_hash_de.c) Fix missing break 2017-02-21 20:26:38 +01:00
twinaphex 31bf313a4f (libretro-common) Fix resource leak 2017-02-21 20:25:25 +01:00
twinaphex 21ddee6690 Don't define M_PI if we are using MSVC and USE_MATH_DEFINES is
already defined
2017-02-21 20:14:19 +01:00
twinaphex c6e150ae2a Fix CXX_BUILD 2017-02-21 20:07:13 +01:00
twinaphex f8576ca88c Fix C89_BUILD again 2017-02-21 19:56:43 +01:00
Jean-André Santoni 1cccfa09fb (Menu) Fix core option ON/OFF buttons 2017-02-21 19:54:55 +01:00
twinaphex 63eafbcac2 Silence another signed/unsigned warning 2017-02-21 19:36:43 +01:00
twinaphex e3ddb75a2a signed/unsigned warning fix 2017-02-21 19:35:22 +01:00
twinaphex 1068e67032 Add pragma disable warning for MSVC 2010 2017-02-21 19:34:04 +01:00
twinaphex 40536fde63 Get rid of retroarch_fail() inside of load_dynamic 2017-02-21 19:20:50 +01:00
twinaphex 227b862cba Cleanups to task_load_content 2017-02-21 19:09:43 +01:00
twinaphex 85053cb210 Make it unneeded to have to grab settings pointer from
firmware_update_status
2017-02-21 19:06:08 +01:00
twinaphex c215fef8dd Updates 2017-02-21 18:58:03 +01:00
twinaphex f553f3f6bd Cut down on HAVE_MENU ifdefs 2017-02-21 18:55:11 +01:00
twinaphex d789013789 Cut down on some duplicate code 2017-02-21 18:51:47 +01:00
twinaphex 0789fff6df Rename load content tasks 2017-02-21 18:36:47 +01:00
Jean-André Santoni 460e28f7e5 (Lakka) Add a way to hide most settings with SD_FLAG_LAKKA_ADVANCED 2017-02-21 18:26:39 +01:00
twinaphex 873a07030f (Win32) Buildfix 2017-02-21 17:33:51 +01:00
Jean-André Santoni d0c640af7f (Lakka) Simplified quick menu with HAVE_LAKKA 2017-02-21 17:31:56 +01:00
Twinaphex 2d239779a5 (OSX) Buildfix 2017-02-21 17:30:18 +01:00
twinaphex d3e8e66b9f Create task_push_load_content_with_current_core_from_companion_ui 2017-02-21 17:29:30 +01:00
twinaphex 03948eafd3 Create task_push_start_builtin_core 2017-02-21 17:22:04 +01:00
twinaphex 9087bc82a0 Add TODO/FIXME note 2017-02-21 17:02:37 +01:00
twinaphex 8206a751f0 Create task_push_load_content_from_cli 2017-02-21 16:59:48 +01:00
twinaphex 1ec7b79ad6 Rename another task 2017-02-21 16:53:02 +01:00
twinaphex d0e49a2d8f Rename some tasks 2017-02-21 16:50:39 +01:00
twinaphex d7fda3016e Update 2017-02-21 16:33:22 +01:00
twinaphex d74f1a56f3 Create load_content_with_new_core_from_companion_ui 2017-02-21 16:30:47 +01:00
twinaphex 4bbf2ab535 Cleanups 2017-02-21 16:11:54 +01:00
Jean-André Santoni b648f459c4 (Lakka) Move Menu Settings out of UI Settings if HAVE_LAKKA. Avoid deep settings. 2017-02-21 15:30:45 +01:00
Jean-André Santoni 8d188ff013 (Lakka) Fix display of Download Content with HAVE_LAKKA 2017-02-21 15:11:25 +01:00
Jean-André Santoni af54ca3547 (Lakka) Hide Download Core 2017-02-21 15:08:40 +01:00
twinaphex 36f5504375 Cleanup 2017-02-21 06:37:42 +01:00
twinaphex fc8063b334 Update CHANGES.md 2017-02-21 06:04:48 +01:00
Twinaphex eebc239348 Merge pull request #4678 from hizzlekizzle/master
(Vulkan) add bokeh menu shader for vulkan
2017-02-21 06:02:22 +01:00
hunterk a1124b8ded (Vulkan) add bokeh menu shader for vulkan 2017-02-20 22:59:05 -06:00
Twinaphex c6d255ef63 Merge pull request #4677 from GregorR/netplay-nat-traversal-task-3
Properly conditionalize NAT traversal task on HAVE_NETWORKING
2017-02-21 05:50:03 +01:00
twinaphex 81949ae2fe (task_content.c) Cleanups 2017-02-21 05:31:34 +01:00
Gregor Richards 631586b0b7 Properly conditionalize NAT traversal task on HAVE_NETWORKING 2017-02-20 23:27:50 -05:00
twinaphex a7592c2db7 Create task_load_content_callback function 2017-02-21 05:17:07 +01:00
twinaphex 0e24e2a9ef Cleanup 2017-02-21 05:07:53 +01:00
twinaphex 14297ef0d9 Cleanups 2017-02-21 04:50:26 +01:00
twinaphex b6fcc0dfac Cleanups 2017-02-21 04:47:01 +01:00
twinaphex 0a3cc7da52 Cleanups 2017-02-21 04:43:08 +01:00
twinaphex 409a7769c6 Cleanup task_push_content_load_default 2017-02-21 04:40:57 +01:00
twinaphex 1582a47bb9 Create task_push_content_load_new_content_with_new_core_from_menu 2017-02-21 04:31:03 +01:00
twinaphex f80064e0a3 Cleanup task_push_content_load_default 2017-02-21 04:18:51 +01:00
twinaphex 90b9cf2d46 Cleanups 2017-02-21 04:11:46 +01:00
twinaphex 0b5118423d Create task_push_content_load_nothing_with_new_core_from_menu 2017-02-21 04:07:40 +01:00
twinaphex e075ade748 Cleanups 2017-02-21 03:55:42 +01:00
twinaphex cca72126f2 Create task_push_content_load_nothing_with_current_core_from_menu 2017-02-21 03:54:34 +01:00
twinaphex 96210188b0 Create task_push_content_load_content_from_playlist_from_menu 2017-02-21 03:44:36 +01:00
twinaphex ba16bee5d1 Create task_push_content_load_nothing_with_dummy_core 2017-02-21 03:32:52 +01:00
Twinaphex 91ed01dbcc Merge pull request #4676 from GregorR/netplay-nat-traversal-task-2
Fix race condition in NAT traversal task.
2017-02-21 02:18:43 +01:00
Gregor Richards 972b41f803 Fix race condition in NAT traversal task. 2017-02-20 20:16:53 -05:00
Twinaphex ef5b8046f0 Merge pull request #4675 from GregorR/netplay-nat-traversal-task
Moving NAT traversal into a task to avoid blocking the UI.
2017-02-21 01:44:28 +01:00
Gregor Richards 5f723d1bda Moving NAT traversal into a task to avoid blocking the UI. 2017-02-20 19:08:31 -05:00
twinaphex 28e8b6090c Add to CHANGES.md 2017-02-20 23:57:11 +01:00
Jean-André Santoni b700a4e77b (CoreText) Fix loading fonts from a path 2017-02-20 23:11:40 +01:00
twinaphex b42fdf3bdc Add to CHANGES.md 2017-02-20 21:54:17 +01:00
twinaphex 4fb3315091 Change to 6 * 2 2017-02-20 21:52:49 +01:00
twinaphex 0d873b6da1 (Vulkan) Add fancy snow for Vulkan 2017-02-20 21:51:58 +01:00
twinaphex 962149ef63 (Vulkan) Add pipeline_snow 2017-02-20 21:25:40 +01:00
Twinaphex 9964f8e717 Merge pull request #4674 from Themaister/master
Vulkan: Simple snow pipeline works.
2017-02-20 20:56:46 +01:00
Hans-Kristian Arntzen 2d88530c98 Vulkan: Simple snow pipeline works.
Some other fixes too.
2017-02-20 20:53:59 +01:00
hunterk 43569c254c more French translation work 2017-02-20 10:48:58 -06:00
Twinaphex 24b28e59c8 Merge pull request #4672 from rootfather/intl-de
intl: Translate the new Netplay settings to German
2017-02-20 15:07:34 +01:00
rootfather 093916abfe intl: Translate the new Netplay settings to German
This adds translations for the new Netplay settings (Spectator Mode)
to the German GUI translation.
2017-02-20 10:58:48 +01:00
twinaphex bb542332dc scaler_ctx_gen_reset - get rid of memsets 2017-02-20 06:48:32 +01:00
twinaphex 712724e0ff (archive_file.c) Get rid of memsets 2017-02-20 02:12:39 +01:00
twinaphex af8f0eb9b2 (file_list.c) file_list_add - get rid of memset 2017-02-20 02:01:17 +01:00
twinaphex aaaba64f81 Get rid of memsets in materialui.c 2017-02-20 01:59:08 +01:00
twinaphex 90d6466d56 (configuration.c) Get rid of another memset 2017-02-20 01:53:53 +01:00
twinaphex b15698e6d2 string_list - get rid of memset 2017-02-20 01:50:35 +01:00
dankcushions 67a311a76b game_specific_options defaults to true and would need some specific test cases for them to be turned off 2017-02-19 22:35:30 +00:00
Twinaphex b59e015b8b Merge pull request #4670 from dankcushions/patch-2
Default game_specific_options to true.
2017-02-19 21:34:37 +01:00
dankcushions f05da5c0e1 Default game_specific_options to true.
This is the core-option overrides functionality. If the user hasn't created any override files, they won't be used. Seems to me like there's no harm in defaulting this to on.
2017-02-19 18:54:35 +00:00
twinaphex 7ee65bfe5d (libretro-db) Get rid of some memsets 2017-02-19 19:44:45 +01:00
twinaphex 3cfaf47637 Avoid 'variable may be used uninitialized in this function' warnings 2017-02-19 18:59:02 +01:00
Andrés 342be9a594 Merge pull request #4669 from fr500/master
fix no playlists + no content edge case
2017-02-19 11:58:30 -05:00
radius f33b6bc226 fix no playlists + no content edge case 2017-02-19 11:58:09 -05:00
aliaspider 0d945a81d7 stb_unicode: use the same unicode handling code as the freetype
renderer, which supports codepoints > 0xFFFF.
2017-02-19 14:40:05 +01:00
twinaphex 75188800b1 Use C comments 2017-02-19 04:37:40 +01:00
Twinaphex e51cfce8e3 Merge pull request #4666 from diablodiab/android-mouse-support
Android input driver mouse support fixes
2017-02-19 03:01:44 +01:00
Diablodiab 2cbd1898e8 Android input driver mouse support fixes:
- Fix bug with cursor moving down to the right
- Remove handling of "copy" and "thread" input states simplifying the driver
2017-02-19 02:57:28 +01:00
bparker06 0231585d06 Merge pull request #4665 from fr500/master
fix #4663
2017-02-18 20:41:58 -05:00
radius e980577531 fix #4663 2017-02-18 20:10:37 -05:00
twinaphex d1aff197b9 Cleanup netplay_lan_scan_callback 2017-02-18 22:12:41 +01:00
twinaphex 5576115389 Make natt_open_port a static function 2017-02-18 22:03:02 +01:00
twinaphex e6ee2527e5 Add filestream_get_size/filestream_set_size 2017-02-18 02:21:33 +01:00
twinaphex e9524f1b95 Add filestream_get_ext 2017-02-18 02:16:40 +01:00
Twinaphex acb20e2d28 Merge pull request #4658 from mcrisostomo/master
New translation file
2017-02-18 00:27:56 +01:00
Twinaphex cd3a58224f Merge pull request #4659 from aliaspider/master
(WiiU) use the TV resolution instead of the gamepad resolution for
2017-02-18 00:27:36 +01:00
mcrisostomo cb1aab93db New file
Added new file containing the portuguese translation of RetroArch texts
2017-02-17 11:12:42 -03:00
mcrisostomo 85478b8fc8 Reversing previous commit 2017-02-17 11:11:29 -03:00
aliaspider 461d6ed3e0 (WiiU) use the TV resolution instead of the gamepad resolution for
viewport settings. fixes #4655
2017-02-17 15:06:48 +01:00
mcrisostomo 5a74bbb0b3 New translation file
Added new file containing the portuguese translation of RetroArch texts
2017-02-17 11:01:20 -03:00
twinaphex 7a5ed7cc65 Add filestream_flush and use filestream interface for tasks/task_save.c 2017-02-17 03:03:18 +01:00
twinaphex 4964892e59 (movie.c) Simplify code 2017-02-17 02:53:40 +01:00
twinaphex ba4d57ba70 (movie.c) Cleanups 2017-02-17 02:37:12 +01:00
Twinaphex 7030c64bde Merge pull request #4656 from GregorR/ranetplayer
Adding ranetplayer netplay regression testing tool
2017-02-17 02:07:33 +01:00
Gregor Richards 0955667f0d Adding ranetplayer netplay regression testing tool 2017-02-16 19:59:40 -05:00
Twinaphex 5974acc3c7 Merge pull request #4653 from diablodiab/android-mouse-support
Android input driver - add middle mouse button and lightgun support
2017-02-17 01:21:55 +01:00
Twinaphex 139d2d65d7 Merge pull request #4654 from GregorR/netplay-start-as-spectator
Re-adding the option to start in spectator mode
2017-02-17 01:21:45 +01:00
Gregor Richards 816d7786ac Re-adding the option to start in spectator mode
This used to be a configuration option because spectator mode and "net"
mode were incompatible. When the ability to switch between player and
spectator was added, the configuration option was removed, since it was
no longer a mode toggle. This re-adds it, mainly so that I can use it to
implement regression tests.
2017-02-16 19:17:06 -05:00
Diablodiab 47d5242dd7 Add middle mouse button support to Android input driver
Add lightgun support to Android input driver
2017-02-16 21:52:52 +01:00
Andrés 8114ce70d2 Merge pull request #4650 from fr500/master
Better console behavior
2017-02-15 23:59:51 -05:00
radius 742e45c6eb attach to console if present, spawn our own otherwise 2017-02-15 22:25:17 -05:00
radius 4db257c104 allow console to work again 2017-02-15 21:09:27 -05:00
Brad Parker abc7da4c87 miniupnpc: fix include dir for linux, fix setsockopt warning on windows 2017-02-15 20:23:12 -05:00
twinaphex 5d8c191df7 Cleanup 2017-02-16 01:30:50 +01:00
twinaphex 91f2cd0b95 Fix this up 2017-02-16 01:10:45 +01:00
neville 4b63ef3123 (OSX PPC) MiniUPNPC support 2017-02-16 01:09:39 +01:00
Twinaphex c6502e9f2d Can't set this to 'yes' by default - certain platforms wouldn't
have this library
2017-02-16 01:06:06 +01:00
twinaphex da5966d474 Bake this in for default targets 2017-02-16 01:00:43 +01:00
twinaphex b3d71320bc Add miniupnpc to Android 2017-02-16 00:59:32 +01:00
Twinaphex 18f614ef8a Add MiniUPNPC to iOS build 2017-02-16 00:57:18 +01:00
Twinaphex 5f78d0594c Enable MiniUPNPC for OSX 2017-02-16 00:50:47 +01:00
Twinaphex 417cf09967 Merge branch 'master' of https://github.com/libretro/RetroArch 2017-02-16 00:45:36 +01:00
Twinaphex a51b751814 Merge pull request #4648 from leiradel/master
Fix for when net_http_get returns NET_HTTP_GET_OK but a NULL body
2017-02-16 00:38:36 +01:00
Twinaphex 37b2ebfcaa Merge pull request #4649 from fr500/master
Check if this string is null before trying to copy it
2017-02-16 00:36:27 +01:00
radius 14c1d48c66 update changelog 2017-02-15 18:26:18 -05:00
radius f00dd6f7c4 update changelog & copyright 2017-02-15 18:25:21 -05:00
radius 3a6c7b96fd prevent null check 2017-02-15 18:15:42 -05:00
Andre Leiradella 1b2685949a Fix for when net_http_get returns NET_HTTP_GET_OK but a NULL body 2017-02-15 21:30:47 +00:00
Twinaphex 37baccab99 Merge pull request #4647 from GregorR/netplay-reset
Support for reset in netplay
2017-02-15 21:40:42 +01:00
twinaphex db4b757843 Add missing file 2017-02-15 21:06:16 +01:00
twinaphex cd1b95220a Add miniupnpc dependency which can be optionally compiled in 2017-02-15 21:03:57 +01:00
Gregor Richards 4c1abfaa71 Support for reset in netplay
This patch transfers core_reset across netplay. Resets effectively
worked before thanks to check_frames, but this makes resets work even
without check_frames, and in particular should allow resets to force
sync in savestateless cores, bringing them one step closer to actually
being usable by non-experts.
2017-02-15 14:40:37 -05:00
Twinaphex d0b29f3d8e Merge pull request #4646 from dankcushions/patch-1
Change to advanced settings: auto_remaps_enable & auto_overrides_enable
2017-02-15 18:59:43 +01:00
dankcushions 6309b21252 Change to advanced settings: auto_remaps_enable & auto_overrides_enable
There seems to be no reason to show these options as they default to true and there's no reason to disable them unless you were debugging something (and even then...)

Maybe even remove the option entirely?
2017-02-15 15:15:09 +00:00
twinaphex 8da9acd1fe Rename variable 2017-02-15 12:03:25 +01:00
Twinaphex f84b6e9020 Merge pull request #4645 from fr500/master
Fix #4644
2017-02-15 11:49:45 +01:00
Twinaphex 604b49f7d3 Merge pull request #4640 from diablodiab/android-mouse-support
Add external mouse support and touch screen mouse emulation to Android input driver
2017-02-15 11:48:53 +01:00
radius 71b397902a better variable name 2017-02-15 01:42:44 -05:00
radius a67935404d fix logging to file 2017-02-15 01:40:04 -05:00
Diablodiab 4f039cac22 This adds external mouse support to the Android input driver. It also adds support for using the touch screen as mouse in cores with mouse support (eg. ScummVM).
It has been tested with the ScummVM core on:
- NVIDIA Shield TV running Android Nougat 7.0
- NVIDIA Shield Tablet running Android Nougat 7.0
- NVIDIA Shield Tablet running Android Lollipop 5.1
- Huawei Honor 7 running Android Marshmallow 6.0
- HTC Desire 500 running Android Jelly Bean 4.1

It's been tested using the touch screen, a USB mouse/keyboard combo, and a bluetooth mouse.

The Android version running on the device limits the functionality and user experience of the external mouse support.
Android Nougat and/or an NVIDIA SHIELD device with NVIDIA extensions provides the best user experience:

Android API < 14:
- Only left mouse button supported
- The Android mouse cursor will be visible along with the in game mouse cursor
- When the Android mouse cursor hits the edge of the screen it will not be possible to move the in-game mouse cursor further in that direction

Android API < 24 and no NVIDIA extensions available:
- Both left and right mouse buttons supported
- The Android mouse cursor will be visible along with the in game mouse cursor
- When the Android mouse cursor hits the edge of the screen it will not be possible to move the in-game mouse cursor further in that direction

Android API > 23 and/or NVIDIA extensions available (SHIELD devices):
- Both left and right mouse buttons supported
- The Android mouse cursor will be hidden
- The mouse is not limited by the (hidden) Android mouse cursor hitting the edge of the screen

Description of how the the touchscreen mouse support works:
- You can move the in-game mouse cursor using the touch screen. The in-game mouse cursor will move relative to your movements on the touch screen, it will not be centered on where you press the screen.
- One quick tap on the touch screen results in the left mouse button being clicked
- Two taps on the screen and keeping the second tap pressed down results in a left mouse being held down until you release
- Two fingers on the touch screen results in the right mouse button being clicked

The touch screen mouse functionality is active at the same time as overlay support. This might cause some confusion when using cores that are designed for mouse support but where you have also enabled overlay controls. At the top of android_input.c there's a define that can be used to turn off this functionality if it causes more problems than it solves.
2017-02-14 22:34:46 +01:00
Brad Parker d8e38bedf0 fix heap corruption in core info extension list 2017-02-14 13:50:42 -05:00
Twinaphex a624e617ed Merge pull request #4639 from bparker06/9slice
add 9-slice texture draw function and selectable texture filter type
2017-02-14 17:16:38 +01:00
Brad Parker 75a96b10bb add 9-slice texture draw function and selectable texture filter type 2017-02-14 11:04:21 -05:00
Twinaphex e05a8a7460 Add HAVE_SEGA 2017-02-14 10:30:28 +01:00
Brad Parker 8aa8d6ff6b MSVC2005: add winmm.lib to linker, needed by rthreads changes in f4c187e 2017-02-14 02:39:26 +00:00
Brad Parker 6d821132f5 msvc buildfix 2017-02-14 02:37:25 +00:00
Andrés a8f2f94bf6 Merge pull request #4637 from pedrib/patch-1
Fix dualshock 3 detection bug
2017-02-13 19:50:29 -05:00
Pedro Ribeiro 6659c6af3a Fix dualshock 3 detection bug 2017-02-13 21:52:53 +00:00
Brad Parker 91ebcc0680 revert 6e969d0, but need to investigate if the original change to string_is_equal is valid 2017-02-13 15:37:34 -05:00
Brad Parker 6e969d0bc6 should be !string_is_equal 2017-02-13 15:12:04 -05:00
twinaphex 0143b537a8 Avoid warnings 2017-02-13 20:24:27 +01:00
twinaphex 07881d9f4f Buildfix 2017-02-13 19:11:32 +01:00
Twinaphex b52bdeb038 Merge pull request #4634 from hizzlekizzle/master
More French fixes
2017-02-13 19:01:29 +01:00
hizzlekizzle 04904c5c9e whoops, double-quotes typoed in. 2017-02-13 11:48:43 -06:00
hizzlekizzle 854fd3f1f9 More French fixes
Courtesy of forum user Tromzy, once again. Much appreciated!
2017-02-13 11:33:11 -06:00
Twinaphex ab7ac777d7 Merge pull request #4628 from rootfather/intl-de
Finish the rewrite of the German translation
2017-02-13 17:52:11 +01:00
Twinaphex 31c65140c4 Merge pull request #4631 from hizzlekizzle/master
French remap save and load had the same word (charger)
2017-02-13 17:52:01 +01:00
Twinaphex 4241e4fedb Merge pull request #4632 from Themaister/master
Vulkan: Find supported composite alpha in swapchain.
2017-02-13 17:51:41 +01:00
Hans-Kristian Arntzen 6395907887 Vulkan: Find supported composite alpha in swapchain. 2017-02-13 16:30:02 +01:00
hizzlekizzle 31a62a63f6 Remap save and load had the same word (charger)
Thanks to forum user Tromzy for the heads-up!
2017-02-13 09:22:15 -06:00
rootfather b5c87b68f8 Claim copyright for msg_hash_de.c 2017-02-13 15:12:03 +01:00
rootfather c8f3c15cf5 Finish the rewrite of the German translation 2017-02-13 13:27:40 +01:00
Twinaphex d7ff3c809f Merge pull request #4627 from fr500/master
fix #4625
2017-02-13 12:48:06 +01:00
radius 28deb34742 fix #4625 2017-02-13 01:24:48 -05:00
Twinaphex 66c3599019 Merge pull request #4622 from rootfather/intl-de
Add some more strings to German translation
2017-02-12 23:44:31 +01:00
rootfather 672add6cab Add some more strings to German translation 2017-02-12 22:32:24 +01:00
Twinaphex e9cbde3188 Merge pull request #4621 from vanfanel/master
DISPMANX: Disable triple buffering for now, for stability reasons.
2017-02-12 19:36:01 +01:00
vanfanel 0b75671c21 DISPMANX: Disable triple buffering for now, for stability reasons. 2017-02-12 19:27:59 +01:00
Andrés 89244d0e58 Merge pull request #4620 from leiradel/master
Only compile support for leaderboards if CHEEVOS_ENABLE_LBOARDS is de…
2017-02-12 12:02:50 -05:00
Andre Leiradella 4fc758799f Only compile support for leaderboards if CHEEVOS_ENABLE_LBOARDS is defined 2017-02-12 16:18:32 +00:00
Twinaphex 55de1ff8c6 Merge pull request #4619 from diablodiab/android-ui-parameters
Add two new UI specific extras to Android version
2017-02-12 14:59:02 +01:00
Diablodiab 77e479a8bc Adds two new parameters that can be passed to the Android version of Retroarch at launch:
QUITFOCUS
If enabled this will cause Retroarch to quit completely when it loses focus (eg. when the home button is pressed). This is useful when you are using an alternative launcher such as Kodi because it will make the home button function as an alternative quit key, return to the alternative launcher, and then allow for a different game to start instead of returning to the current session.

HIDEMOUSE
Normally it is not possible to hide the mouse cursor if you have attached an external mouse to your Android unit. This makes it difficult to implement mouse support in the Android version of Retroarch because you will end up having two mouse cursors on the screen. NVIDIA has implemented extensions on the SHIELD that allows for hiding the mouse cursor. If this parameter is provided when starting Retroarch it will check for these extensions and if available it will hide the mouse cursor.

(I am almost done with adding mouse support to the Android input driver and will be submitting a suggestion for this very soon)
2017-02-12 13:26:18 +01:00
Twinaphex 66ff3db2e2 Merge pull request #4618 from rootfather/intl-de
Add more strings to the German translation
2017-02-12 11:34:13 +01:00
rootfather af7c346e23 Fix typo in the German translation 2017-02-11 23:10:29 +01:00
rootfather e0cbce96c5 Add more strings to the German translation 2017-02-11 22:15:25 +01:00
Twinaphex 640dca71cf Merge pull request #4617 from fr500/master
Changelog
2017-02-11 21:03:43 +01:00
radius 8783d92f23 update changelog 2017-02-11 14:45:11 -05:00
radius 0f1943259e add changelog 2017-02-11 14:43:28 -05:00
Twinaphex 7a79ee68d9 Merge pull request #4612 from fr500/master
Fix #3807
2017-02-11 16:37:59 +01:00
radius 9e09b28f50 Merge branch 'master' of github.com:fr500/RetroArch 2017-02-11 00:01:41 -05:00
radius 5ea570c978 add zip and 7z always to the list of supported extensions 2017-02-10 23:58:58 -05:00
radius 0c5fe1dd79 add zip and 7z always to the list of supported extensions 2017-02-10 23:58:40 -05:00
Twinaphex 25a29a4e0a Merge pull request #4609 from rootfather/intl-de
Add some more strings to German translation
2017-02-10 22:26:02 +01:00
rootfather b2f4359234 Add some more strings to German translation 2017-02-10 20:08:55 +01:00
Brad Parker 8e6df5fe85 MSVC buildfix 2017-02-09 23:54:35 -05:00
Andrés 754b7326f3 Merge pull request #4607 from fr500/master
fix crashes when trying to connect with contentless cores
2017-02-09 21:23:57 -05:00
radius cd17927990 fix contentless netplay! thanks Gregor 2017-02-09 21:22:52 -05:00
radius a33778cb87 fix crashes when trying to connect with contentless cores 2017-02-09 21:10:40 -05:00
aliaspider d1b93741d7 Merge pull request #4605 from xhp-creations/master
WiiU Fix Keyboard Input
2017-02-09 20:11:47 +01:00
xhp-creations b04bf809e3 WiiU Fix Keyboard Input
WiiU Fix Keyboard Input
2017-02-09 14:08:27 -05:00
aliaspider f0e45e970c Merge pull request #4602 from xhp-creations/master
WiiU Initial Keyboard Support
2017-02-09 18:52:06 +01:00
xhp-creations 4915f452f5 WiiU Initial Keyboard Support
WiiU Initial Keyboard Support
2017-02-09 12:34:12 -05:00
Twinaphex a0379f0598 Merge pull request #4600 from rootfather/intl-de
Rewrite German translation (Part 2.9)
2017-02-09 14:02:13 +01:00
rootfather 1c2e97b0c1 Rewrite German translation (Part 2.9) 2017-02-09 12:21:30 +01:00
Twinaphex bd40dd3ec2 Merge pull request #4597 from nadenislamarre/batocera-sdl2-blink
sdl2 renderer: remove the random flashing black borders
2017-02-08 22:57:57 +01:00
Nicolas Adenis-Lamarre 9993435cf9 sdl2 renderer: remove the random flashing black borders
on the batocera linux distribution (https://github.com/nadenislamarre/batocera.linux),
retroarch gives some flashing black borders sometimes when running a game.
It looks like sometimes the rendering is done without clearing the screen causing
this flashing effect.

Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
2017-02-08 22:31:26 +01:00
Twinaphex 8d2bafb279 Merge pull request #4596 from leiradel/master
Fixed crash in cheevos_get_description
2017-02-08 21:43:53 +01:00
Andre Leiradella 3785fc4524 Fixed crash in cheevos_get_description 2017-02-08 19:45:01 +00:00
Twinaphex bd8ecd9dfd Merge pull request #4595 from libretro/revert-4592-fix/robloach/battery-clock-scale
Revert "Allow normal Battery/Clock icon sizes [WIP]"
2017-02-08 20:02:33 +01:00
Twinaphex 962cf6b076 Revert "Allow normal Battery/Clock icon sizes [WIP]" 2017-02-08 20:02:26 +01:00
Twinaphex 890f28ae71 Merge pull request #4592 from RobLoach/fix/robloach/battery-clock-scale
Allow normal Battery/Clock icon sizes [WIP]
2017-02-08 19:57:08 +01:00
Twinaphex 90aa5ef8a5 Merge pull request #4585 from micochops/master
Updated a few more menu sublabels
2017-02-08 09:08:55 +01:00
Brad Parker 373535f329 DOS: improve color accuracy and scaling, thanks to aliaspider 2017-02-08 00:17:12 -05:00
Twinaphex 35f8ed82a0 Merge pull request #4584 from rootfather/intl-de
Rewrite German translation (part 2.1/fixes)
2017-02-08 05:15:54 +01:00
Mico Chopitea 0617262cd2 removed ifdef 2017-02-08 11:06:14 +08:00
Rob Loach 1ef482d6df Apply icon scaling to the battery and clock icons 2017-02-07 21:48:18 -05:00
Mico Chopitea 452c3529a8 Updated a few more menu sublabels 2017-02-07 23:11:08 +08:00
rootfather c3701783b1 Rewrite German translation (part 2.1/fixes)
Improve consistency and fix some errors.
Intermediate release in preparation of part 3.
2017-02-07 12:32:28 +01:00
Twinaphex a2141e61f7 Merge pull request #4582 from micochops/master
Updated menu sublabels and others
2017-02-07 08:03:15 +01:00
Mico Chopitea 46797c982b Updated menu sublabels and others 2017-02-07 14:39:17 +08:00
Twinaphex 98003ecf5d Merge pull request #4581 from fr500/master
Autoconf fallback for android
2017-02-07 06:20:46 +01:00
radius ee6d76e932 fix message 2017-02-07 00:12:30 -05:00
radius c9015aa9ba attempt autoconf fallback for android 2017-02-07 00:12:30 -05:00
Twinaphex ddeaf2c893 Merge pull request #4576 from rootfather/intl-de
Rewrite German translation (part 2)
2017-02-07 03:52:16 +01:00
Andrés 8005970842 Merge pull request #4579 from GregorR/netplay-private
Make announcing netplay on the public lobby optional
2017-02-06 13:48:02 -05:00
Gregor Richards aa77d688ec Make announcing netplay on the public lobby optional. 2017-02-06 13:45:58 -05:00
rootfather e98fac2046 Rewrite German translation (part 2) 2017-02-06 11:45:27 +01:00
twinaphex 593d1ff7b5 Update Chinese 2017-02-06 05:56:33 +01:00
twinaphex 959b1c4b13 Revert "Update Chinese"
This reverts commit c7297d41b2.
2017-02-06 05:56:01 +01:00
twinaphex c7297d41b2 Update Chinese 2017-02-06 05:55:25 +01:00
Twinaphex 9158573fda Merge pull request #4570 from rootfather/intl-de
Rewrite German translation (part 1)
2017-02-06 05:54:08 +01:00
Twinaphex cea6945963 Merge pull request #4571 from leiradel/master
Added preliminary support for Retro Achievements leaderboards
2017-02-06 05:53:33 +01:00
twinaphex 52d46dcaf4 Fix another relative include 2017-02-06 05:51:51 +01:00
twinaphex 6e5b7c3a7b Fix relative includes 2017-02-06 05:51:28 +01:00
Brad Parker 0bdcdac2da DOS: scale menu frame to fit screen 2017-02-05 15:23:38 -05:00
Brad Parker 83619b25e6 DOS: add keyboard driver to support non-joypad keys 2017-02-05 13:55:21 -05:00
Andre Leiradella bfcb8227f5 Fix typpo; parse constant values in leaderboards 2017-02-05 17:00:07 +00:00
Andre Leiradella b5153ced9d Make leaderboard term multipliers signed; mark leaderboards explicitly in log messages 2017-02-05 16:39:14 +00:00
Andre Leiradella 6b9ba1e2b1 Added preliminary support for Retro Achievements leaderboards 2017-02-05 16:23:13 +00:00
rootfather c866a3f1a8 Remove leftover pragma 2017-02-05 16:49:09 +01:00
rootfather a56a825dfb Rewrite German translation (part 1) 2017-02-05 16:12:06 +01:00
Alcaro fa341f03a0 Thing 2017-02-05 14:13:30 +01:00
twinaphex 0383d20465 Revert "Revert "Merge lakka patch for DRM""
This reverts commit 4e0ed3d3d6.
2017-02-05 11:06:51 +01:00
twinaphex 4e0ed3d3d6 Revert "Merge lakka patch for DRM"
This reverts commit 207ebe5e59.
2017-02-05 11:05:55 +01:00
twinaphex e6102fed35 Revert "Don't make AUDIO_DEVICE an 'advanced' option"
This reverts commit c1e08c1138.
2017-02-05 11:05:05 +01:00
twinaphex c1e08c1138 Don't make AUDIO_DEVICE an 'advanced' option 2017-02-05 06:59:23 +01:00
twinaphex e95f797307 Try to stay under max. 80-char width limit 2017-02-05 06:01:22 +01:00
twinaphex e99ba9a06a Cleanups 2017-02-05 05:47:15 +01:00
twinaphex df962d5898 Silence warnings 2017-02-05 05:45:08 +01:00
Alcaro 7d30b475ba Merge pull request #4392 from zeromus/master
rthreads work from desmume
2017-02-05 02:12:31 +01:00
zeromus 0ef09a0ed4 win32 scond_wait_timeout: refine 0 timeout logic 2017-02-04 16:24:14 -06:00
Brad Parker 38bfed4a93 revert retroarch.cfg overwrite 2017-02-04 14:01:57 -05:00
twinaphex b3cd6f13a5 Fix ./configure --disable-rgui 2017-02-04 09:22:17 +01:00
twinaphex e3a1b1859d Fix ./configure --disable-rgui 2017-02-04 09:20:41 +01:00
twinaphex a06380e9ca Fix ./configure --enable-python 2017-02-04 09:01:02 +01:00
zeromus 233c13228e attempt win32 scond_wait_timeout 2017-02-03 21:52:52 -06:00
Twinaphex f1b63bddbe Merge pull request #4559 from leiradel/master
Moved cheevos files to their own folder in preparation for the change…
2017-02-03 19:14:30 +01:00
Andre Leiradella 0c8ee93e3e Moved cheevos files to their own folder in preparation for the changes to support leaderboards 2017-02-03 10:03:57 +00:00
Twinaphex 49cb7789f7 Merge pull request #4557 from RobLoach/sublabel-information
Update sublabel for Information
2017-02-03 08:18:25 +01:00
Rob Loach 92eac10560 Update sublabel for Information 2017-02-02 20:21:24 -05:00
Twinaphex 74d29c4b40 Merge pull request #4556 from RobLoach/sublabel-network
Update the sublabel for Network
2017-02-03 02:19:20 +01:00
Rob Loach 30f8505647 Update Network sublabel 2017-02-02 20:14:00 -05:00
Twinaphex ba98ecd081 Merge pull request #4554 from JuanVCS/master
Workaround for manual netplay content loading
2017-02-02 23:24:40 +01:00
Juan 2c721a478c Workaround for manual netplay content loading 2017-02-02 16:32:01 -03:00
zeromus 168de31fb9 make scond_signal slightly more pthreads compliant (and other tidying). re: PR #4392 2017-01-21 22:44:31 -06:00
zeromus 3e8e02c953 change the main lock mutex to a critical section, and update copyrights year 2017-01-21 17:10:09 -06:00
zeromus 10157c5831 apply feedback re: PR #4392 2017-01-21 16:49:10 -06:00
zeromus f4c187e980 - port slock and scond fixes from desmume
- make sthread_isself return false for null test thread
full disclosure: this work was done months ago. I can't be 100% sure I've merged it correctly with recent rthreads.c changes
2017-01-09 16:46:35 -06:00
2228 changed files with 444420 additions and 124106 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
## Guidelines
1. Rebase before opening a pull request
2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises
## Description
[Description of the pull request, detail any issues you are fixing or any features you are implementing]
## Related Issues
[Any issues this pull request may be addressing]
## Related Pull Requests
[Any other PRs from related repositories that might be needed for this pull request to work]
## Reviewers
[If possible @mention all the people that should review your pull request]
+9 -2
View File
@@ -63,6 +63,11 @@ menu/driverspzarch.c
/media/shaders_glsl/
/obj-w32/
# Wii U
*.depend
*.rpx
wiiu/wut/elf2rpl/elf2rpl
# Ctags
/tags
@@ -90,8 +95,6 @@ pkg/apple/iOS/modules/
obj-unix/
.vagrant/
.MAKEFILE_DEFINES
.CONFIG_DEFINES
/pkg/msvc/Release Cg/*.exe
/pkg/msvc/Release Cg/*.iobj
/pkg/msvc/Release Cg/*.ipdb
@@ -99,9 +102,13 @@ obj-unix/
/pkg/msvc/Release Cg/*.lpl
/pkg/msvc/Release Cg/*.cfg
/pkg/msvc/*.db
/pkg/msvc/.vs
/pkg/msvc/*/.vs
/pkg/msvc/msvc-2010/Release Cg/RetroArc.27FF7CE1.tlog/*.tlog
/pkg/msvc/msvc-2010/Release Cg/RetroArc.27FF7CE1.tlog/*.lastbuildstate
/pkg/msvc/msvc-2010/Release Cg/*.log
/pkg/msvc/msvc-2010/Release Cg/*.obj
/pkg/msvc/msvc-2010/Release Cg/*.res
/pkg/msvc/msvc-2010/Release Cg/*.pdb
retroarch.cfg
+18
View File
@@ -3,6 +3,22 @@ language: generic
matrix:
include:
- compiler: mingw-x86
addons:
apt:
packages:
- g++-mingw-w64-i686
- mingw-w64-i686-dev
script:
- CROSS_COMPILE=i686-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: mingw-x64
addons:
apt:
packages:
- g++-mingw-w64-x86-64
- mingw-w64-x86-64-dev
script:
- CROSS_COMPILE=x86_64-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: gcc
- compiler: clang
addons:
@@ -25,6 +41,7 @@ script:
env:
global:
- MAKEFLAGS="-j2"
- secure: "qc91ReC3OlzSh2gFaSH6TYzC2qIQvgA2AZff6J13eaH8xijAhuMzttZ0rMQJ0DWCIhPeUb0kIzVyaGoe4MwPALzpw1C1AznIWiZJ53HN+hWCOcS/af7YVPk6HPySnwqrS+Wv3AIIvIKFV2mxv21F/JbT/N+pArlRrp904Xj+KPo="
addons:
apt:
@@ -38,6 +55,7 @@ addons:
- libsdl-image1.2-dev
- libsdl-mixer1.2-dev
- libsdl-ttf2.0-dev
- libusb-1.0-0-dev
coverity_scan:
project:
name: "RetroArch"
+125
View File
@@ -0,0 +1,125 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
]
},
{
"name": "Linux",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "Win32",
"includePath": [
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/winrt",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/winrt",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "msys2-mingw32",
"includePath": [
"C:/msys64/mingw32/include",
"C:/msys64/mingw32/i686-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/msys64/mingw32/include",
"C:/msys64/mingw32/i686-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "msys2-mingw64",
"includePath": [
"C:/msys64/mingw64/include",
"C:/msys64/mingw64/x86_64-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/msys64/mingw64/include",
"C:/msys64/mingw64/x86_64-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 3
}
+48
View File
@@ -0,0 +1,48 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "msys2-mingw64 debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/retroarch.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "msys2-mingw32 debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/retroarch.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "c:\\msys64\\mingw32\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
+12
View File
@@ -0,0 +1,12 @@
{
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.env.windows": {
"PATH": "/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:$PATH",
"MSYSTEM": "MINGW64",
},
"terminal.integrated.cursorBlinking": true,
"editor.tabSize": 3,
"editor.renderWhitespace": "all",
"editor.insertSpaces": true,
}
+91
View File
@@ -0,0 +1,91 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "msys2-mingw64 build",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true },
"command": "./configure; make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 build with debug symbols",
"type": "shell",
"group": "build",
"command": "./configure; DEBUG=1 make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 rebuild",
"type": "shell",
"group": "build",
"command": "make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 clean",
"type": "shell",
"group": "build",
"command": "make clean",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 run",
"type": "shell",
"group": {
"kind": "test",
"isDefault": true },
"command": "./retroarch -v",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
]
}
+262
View File
@@ -0,0 +1,262 @@
# 1.7.0 (future)
- CHEEVOS: Add badges for achievements, shows thumbnail images of achievements.
- CHEEVOS: Leaderboard support.
- CHEEVOS: Only disable savestates on hardcore mode if achievements are not available.
- COMMANDLINE: Fix fullscreen toggle switch.
- COMMON: Add 'Automatically Load Content To Playlist' feature, enabled by default.
- COMMON: Fix slowmotion ratio always being reset back to 1.
- COMMON: Optimized NBIO implementations now for Apple, Windows, and Linux. Uses mmap for Linux/Windows/BSD if/when available. File I/O should now be much faster for loading images inside the menu.
- COMMON: Native Blissbox support now for latest firmware as of writing (2.0). Implementation through libusb and/or native Windows HID.
- COMMON: New lightgun API.
- COMMON: New VFS (Virtual File System) API.
- COMMON: Fixed some playlist bugs.
- COMMON: New snow shader.
- COMMON: Fix Quick Menu title.
- COMMON: Fix loading cores that require no content one after another.
- EMSCRIPTEN: Fix references to browserfs.
- FREEBSD: Support libusb HID input driver.
- HAIKU: Buildfix.
- INPUT: Map clear button to DEL key.
- LINUX/X11: Add RetroArch logo to window title bar.
- LINUX/X11: Input driver now supports new lightgun code.
- LINUX/X11: Support window transparency (requires a compositing window manager).
- LOBBIES: Fix for crash on join netplay rooms via touch / glui.
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Portuguese-Brazilian translation.
- LOCALIZATION: Update Russian translation.
- OSX/PPC: Fix the GL2 renderchain, had to use EXT versions of framebuffer/renderbuffer functions.
- PS3: HTTP requests / downloads should now work.
- PS3: Core Updater now works.
- PS3: Improved font rendering, enable STB Unicode font renderer.
- PSP: Make it work with Vita's Adrenaline.
- PSP: Fix audio sync.
- PSP: Fix content loading, port should be functional again.
- PSP: Use 64MB when available.
- SCANNER: Fix crash from Windows-incompatible format string.
- VITA: Improve packaging, installation times.
- WIIU: Disabled the controller patcher for now since it was the source of many stability issues.
- WINDOWS: Add MSVC 2017 solution.
- WINDOWS: Get rid of the empty console window in MSVC 2010 builds.
- WINDOWS: Raw input driver now supports new lightgun code.
- WINDOWS: Use configured OSD/text message color on GDI driver.
- WINDOWS/XINPUT: Populate XInput VID/PID from DInput so autoconfig doesn't rely solely on joypad names
- WINDOWS/XINPUT: Fix crash that occurs in some situations with Steam running and a Steam Controller plugged in.
- WINDOWS: Improve version reporting under System Information.
- WINDOWS: Support window transparency.
- WINDOWS: Correct usage of GetWindowPlacement per MS docs, fixes game window position on Win95/98.
# 1.6.9
- COMMON: Small memory leak.
- NETPLAY: Fix network command only working once.
# 1.6.8
- Audio: Fix the Audio DSP picker
- CHEEVOS: Add support for Atari Lynx cheevos.
- CHEEVOS: Add support for RetroAchievements Leaderboards.
- GUI: (MaterialUI) Fix crash that happened on context reset with Vulkan.
- GUI: (MaterialUI) Skip querying and drawing items that are not visible; Cache content height and bbox calculation.
- GUI: (MaterialUI) Fix entry box highlight calculation.
- GUI: (XMB) Skip drawing the fading list when it is already transparent. Optimization.
- GUI: (XMB) Comment out visible item calculation in xmb_draw_items().
- GUI: (RGUI) Prevent crashes when using a non-English language reliant on UTF8.
- GUI: Add menu option for OSD background color.
- GUI: Add menu option for OSD text color.
- GUI: Add menu option to remove frame count from OSD.
- GUI: Allow wraparound of int/float settings when pressing the left key
- INPUT/LIBRETRO: Add support for more mouse buttons (buttons 4/5)
- INPUT/LIBRETRO: Add support for analog buttons
- INPUT: Always show the controls menu even if descriptors are not set
- INPUT: Fix input descriptors not being set on cores that don't implement the controllers interface
- INPUT: Apply descriptors only for the amount of cores the core supports
- INPUT: Implement keyboard to gamepad input remapping (limited to one gamepad device for now)
- INPUT: Fix absolute mouse move handling on the winraw driver
- INPUT: Ignore keyboard input if window is not active on udev driver
- INPUT: Sanitize the filenames of autoconfig profiles before saving
- LOBBIES: Fix crash on navigating left / right from the lobby menu
- LOCALIZATION: Update Dutch translation
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Portuguese-Brazilian translation.
- LOCALIZATION: Update Russian translation.
- LINUX/ARMHF: Set buildbot updater URL to armhf location instead of blank string
- LINUX/PI: Broadcom VC4: Add Videocore config option
- LINUX/UDEV: Fix - RetroArch reads keyboard input when not focused with the udev input driver.
- NETPLAY: Fix disconnection not fully deinitializing Netplay.
- NETPLAY: Fix lan rooms when there is more than one room
- NETPLAY: Fix lan rooms on systems where all addresses are treated as IPv6
- COMMON: Fix clear/free loop conditionals in playlists.
- WINDOWS/GDI: Fix flickering of text.
- WINDOWS/GDI: Fix graphics corruption on Windows 98
- WINDOWS/GDI: Allow compiling without DirectInput8 for NT support
- WINDOWS/WGL: Try to use wglSwapLayerBuffers instead of SwapBuffers if possible (for more optimal performance).
- WINDOWS: Fix menubar text corruption on Japanese locale systems
- WINDOWS: Support Unicode file I/O (can now display CJK characters in file browser for example).
- WINDOWS: Support Windows 95, NT3.51, NT4
- WINDOWS: add Makefile.griffin targets for msvc6,2003,2005,2010,2012,2013
- WII: Use custom, embedded libogc SDK.
- WIIU: Initial touchscreen support for WiiU gamepad.
- WIIU: Add Cheevos support.
- SCANNER: Fix archive scanning.
- SCANNER: Support CHD files.
- SCANNER: Support Gamecube ISO scanning.
- SCANNER: Use primary data track of disc images for CRC lookups rather than cue files. This is slower but finds matches more reliably, and is necessary for CHD files to work at all. Update your databases!
- SCANNER: Fall back on looking inside archives when matching MAME/FBA content (most recent cores only). If you had difficulty with content being detected before, you may have better luck now. Update your databases and core info!
# 1.6.7
- SCANNER: Fix directory scanning.
- SCANNER: Fix file scanning.
- COMMON: Fix 'Disk Image Append' option.
- FREEBSD: Compatibility fixes for Video4Linux2 camera driver.
- GUI: (MaterialUI) Add disk image append icons.
- GUI: (MaterialUI) Improve word wrapping when menu icons are enabled.
- GUI: (MaterialUI) Add User Interface -> Appearance -> Menu Icons Enable. You can turn on/off the icons on the lefthand side of the menu entries.
- GUI: Performance optimizations for XMB menu driver - only calculates visible items.
- LOCALIZATION: Update Italian translation.
# 1.6.6
- 3DS: Fixes serious performance regression that affected every core; rewind was always implicitly enabled.
- AUDIO: MOD/S3M/XM sound should now be properly mixed in with the core's sound.
- GUI: Visual makeover of MaterialUI.
- GUI: Added 'Music', 'Images' and 'Video' collection options to RGUI/MaterialUI.
- GUI: Allow the user to add 'Favorites'.
- GUI: Allow the user to rename entries.
- GUI: Performance optimizations for XMB menu driver.
- LOCALIZATION: Update Italian translation
- INPUT: Overlay controller response - when we press buttons on the gamepad or keyboard, the corresponding buttons on the overlay will be highlighted as well.
- NETBSD: Silence some compilation warnings.
- COMMON: Fixed bug 'Deleting an entry from a playlist would not update the list view inside XMB'.
- COMMON: Fix inet_ntop_compat on Unix
- LOBBY: Add skeleton to add help descriptions to lobbies
# 1.6.5
Skipped this one.
# 1.6.4
- ANDROID: Fire Stick & Fire TV remote overrides gamepad port 0 on button press and viceversa like SHIELD devices
- ANDROID: Provide default save / system / state / screenshot locations
- AUDIO: Audio mixer supports MOD/S3M/XM file types now!
- INPUT: input swap override flag (for remotes) is cleared correctly
- INPUT: allow specifying libretro device in remap files
- INPUT: allow specifying analog dpad mode in remap files
- INPUT: allow saving libretro device to remap files
- INPUT: allow saving analog dpad mode to remap files
- INPUT: allow removing core and game remap files from the menu
- COMMON: Cores can now request to set a 'shared context'. You no longer need to explicitly enable 'Shared Hardware Context' for Citra/OpenLara/Dolphin.
- COMMON: Add 'Delete Core' option to Core Information menu.
- COMMON: Allow Max Timing Skew to be set to 0.
- COMMON: Change the "content dir" behavior so it works on either a flag or an empty directory setting, now platform drivers can provide defaults for save / system / state / screenshot dirs and still allow the content dir functionality, these settings are under settings / saving and flagged as advanced
- GUI: You can turn on/off 'Horizontal Animation' now for the XMB menu. Turning animations off can result in a performance boost.
- GUI: Fix sublabel word-wrapping in XMB where multi-byte languages were cut off too soon
- LOCALIZATION: Update Dutch translation
- LOCALIZATION: Update Traditional Chinese translation
- LOCALIZATION: Update Italian translation
- LOCALIZATION: Update Russian translation
- WINDOWS: Provide default save / system / state / screenshot locations
- LOBBIES: Show what country the host is in
- MENU: Enable OSD text rendering for gdi and libcaca drivers
- WINDOWS 98/ME/2K: Set default directory for MSVC 2005 RetroArch version.
- WII: Better V-Sync handling, backported from SuperrSonic.
- WIIU: Exception handler rewritten.
# 1.6.3
- IOS: Fix GL regression - 32bit color format cores were no longer rendering
- CHEEVOS: Add support for N64 cheevos and other small fixes.
- CHEEVOS: Add 'Achievements -> Achievements Verbose Mode'. Ability to display cheevos related messages in OSD, useful for RetroAchievements users.
- AUDIO: Audio mixer's volume can now be independently increased/decreased, and muted.
- AUDIO: Mute now no longer disables/enables audio but instead properly mutes the audio volume. Mute is also independent from the audio mixer volume.
- INPUT: Add mouse index selection; ability now to select between different mice
- INPUT: Fix 'All Users Control Menu' setting
- LINUX: Add a tinyalsa audio driver. Doesn't require asoundlib, should be self-contained and lower-level.
- LOBBIES: Announce the RetroArch version too
- LOCALIZATION: Add Traditional Chinese translation
- LOCALIZATION: Update French translation
- LOCALIZATION: Update Italian translation
- LOCALIZATION: Update Japanese translation
- LOCALIZATION: Update Russian translation
- MENU: Add 'User Interface -> Views'. Ability to display/hide online updater and core updater options.
- NETPLAY: Disconnecting one client shouldn't cause everyone to disconnect anymore
- NETWORK: SSL/TLS support, disabled by default
- SCANNER: Fix PS1 game scanning
- SCANNER: Move content list builder into scanner task with progress, fixes menu freeze with large playlists
- SDL2: Fix 'SDL2 driver does not see the hat on wired Xbox 360 controller"
- SETTINGS: Fix regression 'Custom Viewport is no longer overridable per-core or per-game'
- VITA: Add cheevos support
- VITA: Add support for external USB if mounted
- WAYLAND: Fix menu mouse input
- WII: Add support for single-port 'PS1/PS2 to USB controller adapter
# 1.6.0
- ANDROID: Allow remotes to retain OK/Cancel position when menu_swap_ok_cancel is enabled
- ANDROID: Improve autoconf fallback
- ANDROID: Improve shield portable/gamepad device grouping workaround
- ANDROID: Runtime permission checking
- AUDIO: Audio mixer support. Mix up to 8 streams with the game's audio.
- AUTOSAVE/SRAM - Fix bug #3829 / #4820 (https://github.com/libretro/RetroArch/issues/3829)
- ENDIANNESS: Fixed database scanning. Should fix scanning on PS3/WiiU/Wii, etc.
- LOBBIES: Fallback to filename based matching if no CRC matches are found (for people making playlists by hand)
- LOBBIES: GUI refinement, show stop hosting when a host has been started, show disconnect when playing as client
- LOBBIES: if the game is already loaded it will try to connect directly instead of re-loading content (non-fullpath cores only)
- LOBBIES: unify both netplay menus
- LOCALIZATION/GUI: Korean font should display properly now with XMB/MaterialUI's default font
- LOCALIZATION: Update German translation
- LOCALIZATION: Update Japanese translation
- LOCALIZATION: Update Russian translation
- LOCALIZATION: Update/finish French translation
- MENU: Improved rendering for XMB ribbon; using additive blending (Vulkan/GL)
- MISC: Various frontend optimizations.
- NET: Fix bug #4703 (https://github.com/libretro/RetroArch/issues/4703)
- OSX/MACOS: Fixes serious memory leak
- THUMBNAILS: Thumbnails show up now in Load Content -> Collection, Information -> Database
- VIDEO: Fix threaded video regression; tickering of menu entries would no longer work.
- VITA: Fix 30fps menu (poke into input now instead of reading the entire input buffer which apparently is slow)
- VITA: Fix frame throttle
- VITA: Fix slow I/O
- VULKAN: Fix some crashes on loading some thumbnails
- VULKAN: Unicode font rendering support. Should fix bad character encoding for French characters, etc.
- WII: Fix crashing issues which could occur with the dummy core
- WIIU: HID Controller support
- WIIU: Initial network/netplay support
- WIIU: XMB/MaterialUI menu driver support
- WINDOWS: Added RawInput input driver for low-latency, low-level input.
- WINDOWS: Added WASAPI audio driver for low-latency audio. Both shared and exclusive mode.
- WINDOWS: Core mouse input should be relative again in cores
# 1.5.0
- ANDROID: Autoconf fallback
- ANDROID: Mouse support / Emulated mouse support
- AUTOCONF: Fix partial matches for pad name
- CHEEVOS: Fix crashes in the cheevos description menu
- CHEEVOS: WIP leaderboards support
- COMMON: 9-slice texture drawing support
- COMMON: Threading fixes
- CORETEXT/APPLE: Ability to load menu display font drivers and loading of custom font.
- DOS: Add keyboard driver
- DOS: Improve color accuracy and scaling
- GUI: Add a symbol page in the OSK
- GUI: Allow changing icon theme on the fly
- GUI: Better dialogs for XMB
- GUI: Various settings are now only visible when advanced settings is enabled
- LOCALIZATION: Add/update Korean translation
- LOCALIZATION: Rewrite German translation
- LOCALIZATION: Update several English sublabels
- LOCALIZATION: Update several Japanese labels
- MOBILE: Long-tap a setting to reset to default
- MOBILE: Single-tap for menu entry selection
- NET: Allow manual netplay content loading
- NET: Announcing network games to the public lobby is optional now
- NET: Bake in miniupnpc
- NET: Fix netplay join for contentless cores
- NET: Fix netplay rooms being pushed on the wrong tab
- NET: Lan games show next to lobbies with (lan) and connect via the private IP address
- NET: Use new lobby system with MITM support
- NUKLEAR: Update to current version
- SCANNER: Always add 7z & zip to supported extensions
- VULKAN: Add snow/bokeh shader pipeline effects - at parity with GL now
- VULKAN: Find supported composite alpha in swapchain
- WIIU: Keyboard support
- WINDOWS: Fix loading of core/content via file menu
- WINDOWS: Logging to file no longer spawns an empty window
# 1.4.1
+16 -16
View File
@@ -13,22 +13,23 @@ TARGET = retroarch
OBJDIR := obj-unix
ifeq ($(GLOBAL_CONFIG_DIR),)
GLOBAL_CONFIG_DIR = /etc
endif
OBJ :=
LIBS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
ifneq ($(findstring BSD,$(OS)),)
CFLAGS += -DBSD
LDFLAGS += -L/usr/local/lib
endif
ifneq ($(findstring DOS,$(OS)),)
CFLAGS += -march=i386
LDFLAGS += -lemu
endif
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -static-libgcc
LDFLAGS += -static-libgcc -lwinmm
endif
include Makefile.common
@@ -73,7 +74,7 @@ ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I.
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I. -Ideps -Ideps/stb
APPEND_CFLAGS := $(CFLAGS)
CXXFLAGS += $(APPEND_CFLAGS) -std=c++11 -D__STDC_CONSTANT_MACROS
@@ -118,10 +119,16 @@ endif
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
ifneq ($(X86),)
CFLAGS += -m32
CXXLAGS += -m32
LDFLAGS += -m32
endif
ifneq ($(SANITIZER),)
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
endif
ifneq ($(findstring $(GPERFTOOLS),profiler),)
@@ -198,13 +205,6 @@ install: $(TARGET)
mkdir -p $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/glui; \
cp -r media/assets/xmb/ $(DESTDIR)$(ASSETS_DIR)/retroarch/assets; \
cp -r media/assets/glui/ $(DESTDIR)$(ASSETS_DIR)/retroarch/assets; \
echo "Removing unneeded source image files.."; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/flatui/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/monochrome/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/retroactive/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/neoactive/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/retroactive_marked/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/dot-art/src; \
echo "Asset copying done."; \
fi
+481 -101
View File
@@ -1,6 +1,11 @@
ROOT_DIR := .
DEPS_DIR := $(ROOT_DIR)/deps
LIBRETRO_COMM_DIR := $(ROOT_DIR)/libretro-common
WANT_WGL = 0
ifeq ($(HAVE_STACK_USAGE), 1)
CFLAGS += -fstack-usage
endif
ifeq ($(HAVE_GL_CONTEXT),)
HAVE_GL_CONTEXT=0
@@ -47,10 +52,6 @@ ifeq ($(HAVE_VITA2D), 1)
DEFINES += -DHAVE_VITA2D
endif
ifeq ($(HAVE_FBO), 1)
DEFINES += -DHAVE_FBO
endif
ifeq ($(HAVE_DYLIB), 1)
DEFINES += -DHAVE_DYLIB
endif
@@ -90,7 +91,7 @@ ifeq ($(HAVE_SHADERPIPELINE), 1)
CFLAGS += -DHAVE_SHADERPIPELINE
endif
CFLAGS += -I$(LIBRETRO_COMM_DIR)/include
CFLAGS += -I$(LIBRETRO_COMM_DIR)/include -I$(DEPS_DIR)
# Switches
@@ -104,7 +105,7 @@ endif
ifneq ($(findstring BSD,$(OS)),)
BSD_LOCAL_INC += -I/usr/local/include
OBJ += frontend/drivers/platform_bsd.o
HAVE_UNIX = 1
endif
ifneq ($(findstring Darwin,$(OS)),)
@@ -118,11 +119,17 @@ ifneq ($(findstring Linux,$(OS)),)
LIBS += -lrt
OBJ += input/drivers/linuxraw_input.o \
input/common/linux_common.o \
input/common/epoll_common.o \
input/drivers_joypad/linuxraw_joypad.o \
frontend/drivers/platform_linux.o
input/drivers_joypad/linuxraw_joypad.o
HAVE_UNIX = 1
endif
ifeq ($(HAVE_UNIX), 1)
OBJ += frontend/drivers/platform_unix.o
endif
ifeq ($(TARGET), retroarch_3ds)
OBJ += frontend/drivers/platform_ctr.o
endif
ifeq ($(findstring Haiku,$(OS)),)
LIBS += -lm
@@ -156,38 +163,46 @@ OBJ += frontend/frontend.o \
retroarch.o \
dirs.o \
paths.o \
input/input_keyboard.o \
command.o \
msg_hash.o \
intl/msg_hash_us.o \
runloop.o \
$(LIBRETRO_COMM_DIR)/queues/task_queue.o \
tasks/task_content.o \
tasks/task_save.o \
tasks/task_file_transfer.o \
tasks/task_image.o \
tasks/task_audio_mixer.o \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.o \
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.o \
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.o \
$(LIBRETRO_COMM_DIR)/lists/file_list.o \
$(LIBRETRO_COMM_DIR)/lists/dir_list.o \
$(LIBRETRO_COMM_DIR)/file/retro_dirent.o \
$(LIBRETRO_COMM_DIR)/streams/stdin_stream.o \
$(LIBRETRO_COMM_DIR)/streams/file_stream.o \
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.o \
$(LIBRETRO_COMM_DIR)/streams/interface_stream.o \
$(LIBRETRO_COMM_DIR)/streams/memory_stream.o \
$(LIBRETRO_COMM_DIR)/file/retro_stat.o \
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.o \
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
$(LIBRETRO_COMM_DIR)/memmap/memalign.o \
setting_list.o \
list_special.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_linux.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_unixmmap.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_windowsmmap.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_intf.o \
$(LIBRETRO_COMM_DIR)/file/file_path.o \
file_path_special.o \
file_path_str.o \
$(LIBRETRO_COMM_DIR)/hash/rhash.o \
audio/audio_driver.o \
$(LIBRETRO_COMM_DIR)/audio/audio_mixer.o \
input/input_driver.o \
gfx/video_coord_array.o \
gfx/video_display_server.o \
gfx/video_driver.o \
camera/camera_driver.o \
wifi/wifi_driver.o \
@@ -198,12 +213,11 @@ OBJ += frontend/frontend.o \
dynamic.o \
cores/dynamic_dummy.o \
$(LIBRETRO_COMM_DIR)/queues/message_queue.o \
managers/core_manager.o \
managers/state_manager.o \
gfx/drivers_font_renderer/bitmapfont.o \
tasks/task_autodetect.o \
input/input_autodetect_builtin.o \
input/input_joypad_driver.o \
input/input_config.o \
input/input_keymaps.o \
input/input_remapping.o \
tasks/task_overlay.o \
@@ -220,7 +234,6 @@ OBJ += frontend/frontend.o \
tasks/task_powerstate.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler.o \
gfx/drivers_shader/shader_null.o \
gfx/video_shader_driver.o \
gfx/video_shader_parse.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/pixconv.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler_int.o \
@@ -236,6 +249,7 @@ OBJ += frontend/frontend.o \
camera/drivers/nullcamera.o \
wifi/drivers/nullwifi.o \
gfx/drivers/nullgfx.o \
gfx/display_servers/dispserv_null.o \
audio/drivers/nullaudio.o \
input/drivers/nullinput.o \
input/drivers_hid/null_hid.o \
@@ -264,12 +278,15 @@ OBJ += intl/msg_hash_de.o \
intl/msg_hash_fr.o \
intl/msg_hash_it.o \
intl/msg_hash_ja.o \
intl/msg_hash_ko.o \
intl/msg_hash_nl.o \
intl/msg_hash_pl.o \
intl/msg_hash_pt.o \
intl/msg_hash_pt_br.o \
intl/msg_hash_pt_pt.o \
intl/msg_hash_ru.o \
intl/msg_hash_vn.o \
intl/msg_hash_chs.o
intl/msg_hash_chs.o \
intl/msg_hash_cht.o
endif
@@ -313,7 +330,7 @@ endif
endif
ifeq ($(HAVE_SSA),1)
LIBS += -lass
LIBS += $(SSA_LIBS)
endif
# LibretroDB
@@ -329,6 +346,203 @@ OBJ += libretro-db/bintree.o \
tasks/task_database_cue.o
endif
ifneq ($(C89_BUILD), 1)
HAVE_LIBUI = 0
HAVE_GTKPLUS = 0
ifeq ($(HAVE_SSL), 1)
DEFINES += -DHAVE_SSL
DEFINES += -DMBEDTLS_SSL_DEBUG_ALL
# MinGW requires this for some reason, even though the include paths are relative to the source
INCLUDE_DIRS += -Ideps/mbedtls
OBJS_TLS_CRYPTO = deps/mbedtls/aes.o deps/mbedtls/aesni.o deps/mbedtls/arc4.o \
deps/mbedtls/asn1parse.o deps/mbedtls/asn1write.o deps/mbedtls/base64.o \
deps/mbedtls/bignum.o deps/mbedtls/blowfish.o deps/mbedtls/camellia.o \
deps/mbedtls/ccm.o deps/mbedtls/cipher.o deps/mbedtls/cipher_wrap.o \
deps/mbedtls/cmac.o deps/mbedtls/ctr_drbg.o deps/mbedtls/des.o \
deps/mbedtls/dhm.o deps/mbedtls/ecdh.o deps/mbedtls/ecdsa.o \
deps/mbedtls/ecjpake.o deps/mbedtls/ecp.o \
deps/mbedtls/ecp_curves.o deps/mbedtls/entropy.o deps/mbedtls/entropy_poll.o \
deps/mbedtls/error.o deps/mbedtls/gcm.o deps/mbedtls/havege.o \
deps/mbedtls/hmac_drbg.o deps/mbedtls/md.o deps/mbedtls/md2.o \
deps/mbedtls/md4.o deps/mbedtls/md5.o deps/mbedtls/md_wrap.o \
deps/mbedtls/memory_buffer_alloc.o deps/mbedtls/oid.o \
deps/mbedtls/padlock.o deps/mbedtls/pem.o deps/mbedtls/pk.o \
deps/mbedtls/pk_wrap.o deps/mbedtls/pkcs12.o deps/mbedtls/pkcs5.o \
deps/mbedtls/pkparse.o deps/mbedtls/pkwrite.o deps/mbedtls/platform.o \
deps/mbedtls/ripemd160.o deps/mbedtls/rsa.o deps/mbedtls/sha1.o \
deps/mbedtls/sha256.o deps/mbedtls/sha512.o deps/mbedtls/threading.o \
deps/mbedtls/timing.o deps/mbedtls/version.o \
deps/mbedtls/version_features.o deps/mbedtls/xtea.o
OBJS_TLS_X509 = deps/mbedtls/certs.o deps/mbedtls/pkcs11.o deps/mbedtls/x509.o \
deps/mbedtls/x509_create.o deps/mbedtls/x509_crl.o deps/mbedtls/x509_crt.o \
deps/mbedtls/x509_csr.o deps/mbedtls/x509write_crt.o deps/mbedtls/x509write_csr.o
OBJS_TLS = deps/mbedtls/debug.o deps/mbedtls/net_sockets.o \
deps/mbedtls/ssl_cache.o deps/mbedtls/ssl_ciphersuites.o \
deps/mbedtls/ssl_cli.o deps/mbedtls/ssl_cookie.o \
deps/mbedtls/ssl_srv.o deps/mbedtls/ssl_ticket.o \
deps/mbedtls/ssl_tls.o
OBJ += $(OBJS_TLS_CRYPTO) $(OBJS_TLS_X509) $(OBJS_TLS)
endif
ifeq ($(HAVE_LIBUI), 1)
DEFINES += -DHAVE_LIBUI
ifneq ($(findstring Win32,$(OS)),)
OBJ += deps/libui/windows/alloc.o \
deps/libui/windows/area.o \
deps/libui/windows/areadraw.o \
deps/libui/windows/areaevents.o \
deps/libui/windows/areascroll.o \
deps/libui/windows/areautil.o \
deps/libui/windows/box.o \
deps/libui/windows/button.o \
deps/libui/windows/checkbox.o \
deps/libui/windows/colorbutton.o \
deps/libui/windows/colordialog.o \
deps/libui/windows/combobox.o \
deps/libui/windows/container.o \
deps/libui/windows/control.o \
deps/libui/windows/d2dscratch.o \
deps/libui/windows/datetimepicker.o \
deps/libui/windows/debug.o \
deps/libui/windows/draw.o \
deps/libui/windows/drawmatrix.o \
deps/libui/windows/drawpath.o \
deps/libui/windows/drawtext.o \
deps/libui/windows/dwrite.o \
deps/libui/windows/editablecombo.o \
deps/libui/windows/entry.o \
deps/libui/windows/events.o \
deps/libui/windows/fontbutton.o \
deps/libui/windows/fontdialog.o \
deps/libui/windows/form.o \
deps/libui/windows/graphemes.o \
deps/libui/windows/grid.o \
deps/libui/windows/group.o \
deps/libui/windows/init.o \
deps/libui/windows/label.o \
deps/libui/windows/main.o \
deps/libui/windows/menu.o \
deps/libui/windows/multilineentry.o \
deps/libui/windows/parent.o \
deps/libui/windows/progressbar.o \
deps/libui/windows/radiobuttons.o \
deps/libui/windows/separator.o \
deps/libui/windows/sizing.o \
deps/libui/windows/slider.o \
deps/libui/windows/spinbox.o \
deps/libui/windows/stddialogs.o \
deps/libui/windows/tab.o \
deps/libui/windows/tabpage.o \
deps/libui/windows/text.o \
deps/libui/windows/utf16.o \
deps/libui/windows/utilwin.o \
deps/libui/windows/window.o \
deps/libui/windows/winpublic.o \
deps/libui/windows/winutil.o
LIBS += -luxtheme -ld2d1 -ldwrite -lusp10
else
ifneq ($(findstring Darwin,$(OS)),)
OBJ += deps/libui/darwin/alloc.o \
deps/libui/darwin/area.o \
deps/libui/darwin/areaevents.o \
deps/libui/darwin/autolayout.o \
deps/libui/darwin/box.o \
deps/libui/darwin/button.o \
deps/libui/darwin/checkbox.o \
deps/libui/darwin/colorbutton.o \
deps/libui/darwin/combobox.o \
deps/libui/darwin/control.o \
deps/libui/darwin/datetimepicker.o \
deps/libui/darwin/debug.o \
deps/libui/darwin/draw.o \
deps/libui/darwin/drawtext.o \
deps/libui/darwin/editablecombo.o \
deps/libui/darwin/entry.o \
deps/libui/darwin/fontbutton.o \
deps/libui/darwin/form.o \
deps/libui/darwin/grid.o \
deps/libui/darwin/group.o \
deps/libui/darwin/image.o \
deps/libui/darwin/label.o \
deps/libui/darwin/main.o \
deps/libui/darwin/map.o \
deps/libui/darwin/menu.o \
deps/libui/darwin/multilineentry.o \
deps/libui/darwin/progressbar.o \
deps/libui/darwin/radiobuttons.o \
deps/libui/darwin/scrollview.o \
deps/libui/darwin/separator.o \
deps/libui/darwin/slider.o \
deps/libui/darwin/spinbox.o \
deps/libui/darwin/stddialogs.o \
deps/libui/darwin/tab.o \
deps/libui/darwin/text.o \
deps/libui/darwin/util.o \
deps/libui/darwin/window.o \
deps/libui/darwin/winmoveresize.o
else
CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0
LIBS += -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
OBJ += deps/libui/unix/alloc.o \
deps/libui/unix/area.o \
deps/libui/unix/box.o \
deps/libui/unix/button.o \
deps/libui/unix/cellrendererbutton.o \
deps/libui/unix/checkbox.o \
deps/libui/unix/child.o \
deps/libui/unix/colorbutton.o \
deps/libui/unix/combobox.o \
deps/libui/unix/control.o \
deps/libui/unix/datetimepicker.o \
deps/libui/unix/debug.o \
deps/libui/unix/draw.o \
deps/libui/unix/drawmatrix.o \
deps/libui/unix/drawpath.o \
deps/libui/unix/drawtext.o \
deps/libui/unix/editablecombo.o \
deps/libui/unix/entry.o \
deps/libui/unix/fontbutton.o \
deps/libui/unix/form.o \
deps/libui/unix/future.o \
deps/libui/unix/graphemes.o \
deps/libui/unix/grid.o \
deps/libui/unix/group.o \
deps/libui/unix/image.o \
deps/libui/unix/label.o \
deps/libui/unix/main.o \
deps/libui/unix/menu.o \
deps/libui/unix/multilineentry.o \
deps/libui/unix/progressbar.o \
deps/libui/unix/radiobuttons.o \
deps/libui/unix/separator.o \
deps/libui/unix/slider.o \
deps/libui/unix/spinbox.o \
deps/libui/unix/stddialogs.o \
deps/libui/unix/tab.o \
deps/libui/unix/text.o \
deps/libui/unix/util.o \
deps/libui/unix/window.o
endif
endif
OBJ += deps/libui/common/areaevents.o \
deps/libui/common/control.o \
deps/libui/common/debug.o \
deps/libui/common/matrix.o \
deps/libui/common/shouldquit.o \
deps/libui/common/userbugs.o
OBJ += deps/libui/libui_main.o
endif
endif
# Miscellaneous
ifeq ($(HAVE_STDIN_CMD), 1)
@@ -363,12 +577,19 @@ ifeq ($(HAVE_CORETEXT), 1)
OBJ += gfx/drivers_font_renderer/coretext.o
endif
ifeq ($(TARGET), retroarch_3ds)
OBJ += gfx/drivers_font/ctr_font.o
endif
ifeq ($(HAVE_OSS), 1)
OBJ += audio/drivers/oss.o
else ifeq ($(HAVE_OSS_BSD), 1)
OBJ += audio/drivers/oss.o
endif
ifeq ($(HAVE_OSS_BSD), 1)
OBJ += audio/drivers/oss.o
ifeq ($(TARGET), retroarch_3ds)
OBJ += audio/drivers/ctr_csnd_audio.o \
audio/drivers/ctr_dsp_audio.o
endif
ifeq ($(HAVE_ALSA), 1)
@@ -381,6 +602,11 @@ endif
DEFINES += $(ALSA_CFLAGS)
endif
ifeq ($(HAVE_TINYALSA), 1)
OBJ += audio/drivers/tinyalsa.o
DEFINES += -DHAVE_TINYALSA
endif
ifeq ($(HAVE_ROAR), 1)
OBJ += audio/drivers/roar.o
LIBS += $(ROAR_LIBS)
@@ -392,7 +618,7 @@ ifeq ($(HAVE_AL), 1)
ifeq ($(OSX),1)
LIBS += -framework OpenAL
else
LIBS += -lopenal
LIBS += $(AL_LIBS)
endif
endif
@@ -423,12 +649,17 @@ ifeq ($(HAVE_RSOUND), 1)
endif
ifeq ($(HAVE_DSOUND), 1)
HAVE_DIRECTX=1
OBJ += audio/drivers/dsound.o
DEFINES += -DHAVE_DSOUND
LIBS += -ldxguid -ldsound
endif
ifeq ($(HAVE_WASAPI), 1)
OBJ += audio/drivers/wasapi.o
DEFINES += -DHAVE_WASAPI
LIBS += -lole32 -lksuser
endif
ifeq ($(HAVE_XAUDIO), 1)
OBJ += audio/drivers/xaudio.o
DEFINES += -DHAVE_XAUDIO
@@ -451,9 +682,9 @@ ifeq ($(HAVE_NEON),1)
endif
OBJ += $(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float.o \
$(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16.o \
$(LIBRETRO_COMM_DIR)/audio/audio_mix.o \
$(LIBRETRO_COMM_DIR)/formats/wav/rwav.o
$(LIBRETRO_COMM_DIR)/audio/conversion/float_to_s16.o \
$(LIBRETRO_COMM_DIR)/audio/audio_mix.o \
$(LIBRETRO_COMM_DIR)/formats/wav/rwav.o
ifeq ($(HAVE_NEON),1)
OBJ += $(LIBRETRO_COMM_DIR)/audio/conversion/s16_to_float_neon.o \
@@ -515,10 +746,7 @@ endif
ifeq ($(HAVE_NUKLEAR), 1)
OBJ += menu/drivers/nuklear/nk_common.o
OBJ += menu/drivers/nuklear/nk_menu.o
OBJ += menu/drivers/nuklear/nk_wnd_main.o
OBJ += menu/drivers/nuklear/nk_wnd_file_picker.o
OBJ += menu/drivers/nuklear/nk_wnd_shader_parameters.o
OBJ += menu/drivers/nuklear/nk_wnd_settings.o
OBJ += menu/drivers/nuklear/nk_wnd_debug.o
OBJ += menu/drivers/nuklear.o
DEFINES += -DHAVE_NUKLEAR
endif
@@ -545,8 +773,8 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/menu_input.o \
menu/menu_event.o \
menu/menu_entries.o \
menu/menu_navigation.o \
menu/menu_setting.o \
menu/menu_networking.o \
menu/menu_shader.o \
menu/widgets/menu_filebrowser.o \
menu/widgets/menu_dialog.o \
@@ -573,7 +801,6 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/cbs/menu_cbs_up.o \
menu/cbs/menu_cbs_down.o \
menu/cbs/menu_cbs_contentlist_switch.o \
menu/menu_display.o \
menu/menu_displaylist.o \
menu/menu_animation.o \
menu/drivers_display/menu_display_null.o \
@@ -599,12 +826,11 @@ endif
ifeq ($(HAVE_THREADS), 1)
OBJ += $(LIBRETRO_COMM_DIR)/rthreads/rthreads.o \
$(LIBRETRO_COMM_DIR)/rthreads/rsemaphore.o \
gfx/video_thread_wrapper.o \
audio/audio_thread_wrapper.o
DEFINES += -DHAVE_THREADS
ifeq ($(findstring Haiku,$(OS)),)
LIBS += -lpthread
LIBS += $(THREADS_LIBS)
endif
endif
@@ -636,8 +862,16 @@ endif
CFLAGS += -I$(DEPS_DIR)/libvita2d/include
endif
ifeq ($(TARGET), retroarch_3ds)
OBJ += gfx/drivers/ctr_gfx.o \
menu/drivers_display/menu_display_ctr.o \
input/drivers/ctr_input.o \
input/drivers_joypad/ctr_joypad.o
endif
ifeq ($(HAVE_WAYLAND), 1)
OBJ += gfx/drivers_context/wayland_ctx.o
OBJ += gfx/drivers_context/wayland_ctx.o \
input/drivers/wayland_input.o
DEFINES += $(WAYLAND_CFLAGS) $(WAYLAND_CURSOR_CFLAGS)
LIBS += $(WAYLAND_LIBS) $(WAYLAND_CURSOR_LIBS)
endif
@@ -646,7 +880,6 @@ endif
ifeq ($(HAVE_DINPUT), 1)
LIBS += -ldinput8 -ldxguid -lole32
HAVE_DIRECTX=1
DEFINES += -DHAVE_DINPUT
OBJ += input/drivers/dinput.o \
input/drivers_joypad/dinput_joypad.o
@@ -667,10 +900,11 @@ ifeq ($(HAVE_X11), 1)
OBJ += input/common/input_x11_common.o \
input/drivers/x11_input.o \
gfx/common/x11_common.o \
input/drivers_keyboard/keyboard_event_x11.o
gfx/common/xinerama_common.o \
gfx/display_servers/dispserv_x11.o
LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS)
DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
DEFINES += -DHAVE_X11 $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
ifeq ($(HAVE_XCB),1)
LIBS += -lX11-xcb
endif
@@ -693,14 +927,13 @@ endif
ifeq ($(HAVE_DBUS), 1)
LIBS += $(DBUS_LIBS)
CFLAGS += $(DBUS_CFLAGS)
OBJ += gfx/common/dbus_common.o
endif
ifeq ($(HAVE_UDEV), 1)
DEFINES += $(UDEV_CFLAGS)
LIBS += $(UDEV_LIBS)
OBJ += input/drivers/udev_input.o \
input/common/udev_common.o \
input/drivers_keyboard/keyboard_event_udev.o \
input/drivers_joypad/udev_joypad.o
endif
@@ -709,7 +942,11 @@ ifeq ($(HAVE_THREADS), 1)
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_LIBUSB
OBJ += input/drivers_hid/libusb_hid.o
LIBS += -lusb-1.0
ifneq ($(findstring BSD,$(OS)),)
LIBS += -lusb
else
LIBS += -lusb-1.0
endif
endif
endif
endif
@@ -729,10 +966,10 @@ endif
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_HID
OBJ += input/input_hid_driver.o \
input/drivers_joypad/hid_joypad.o \
OBJ += input/drivers_joypad/hid_joypad.o \
input/connect/joypad_connection.o \
input/connect/connect_ps2adapter.o \
input/connect/connect_psxadapter.o \
input/connect/connect_ps3.o \
input/connect/connect_ps4.o \
input/connect/connect_wii.o \
@@ -746,6 +983,10 @@ ifeq ($(HAVE_PARPORT), 1)
OBJ += input/drivers_joypad/parport_joypad.o
endif
ifneq ($(findstring Win32,$(OS)),)
OBJ += input/drivers/winraw_input.o
endif
# Companion UI
ifneq ($(findstring Win32,$(OS)),)
@@ -758,14 +999,8 @@ endif
# Video
OBJ += gfx/video_context_driver.o \
gfx/drivers_context/gfx_null_ctx.o \
gfx/video_state_tracker.o \
$(LIBRETRO_COMM_DIR)/gfx/math/vector_2.o \
$(LIBRETRO_COMM_DIR)/gfx/math/vector_3.o \
$(LIBRETRO_COMM_DIR)/gfx/math/vector_4.o \
$(LIBRETRO_COMM_DIR)/gfx/math/matrix_4x4.o \
$(LIBRETRO_COMM_DIR)/gfx/math/matrix_3x3.o
OBJ += gfx/drivers_context/gfx_null_ctx.o \
gfx/video_state_tracker.o
ifeq ($(HAVE_KMS), 1)
HAVE_AND_WILL_USE_DRM = 1
@@ -790,11 +1025,14 @@ ifeq ($(HAVE_PLAIN_DRM), 1)
LIBS += -ldrm
endif
OBJ += \
gfx/drivers_renderchain/null_renderchain.o
ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
OBJ += gfx/drivers/gl.o \
gfx/drivers_renderchain/gl2_renderchain.o \
$(LIBRETRO_COMM_DIR)/gfx/gl_capabilities.o \
gfx/drivers/gl_renderchains/render_chain_gl_legacy.o \
gfx/common/gl_common.o \
gfx/drivers_font/gl_raster_font.o \
$(LIBRETRO_COMM_DIR)/glsym/rglgen.o
@@ -839,7 +1077,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
ifeq ($(HAVE_FFMPEG), 1)
ifneq ($(C89_BUILD), 1)
ifneq ($(HAVE_OPENGLES), 1)
OBJ += cores/libretro-ffmpeg/fft/fft.o
OBJ += cores/libretro-ffmpeg/ffmpeg_fft.o
DEFINES += -I$(DEPS_DIR) -DHAVE_GL_FFT
NEED_CXX_LINKER=1
endif
@@ -858,13 +1096,13 @@ endif
else
DEFINES += -DHAVE_GL_SYNC
OBJ += $(LIBRETRO_COMM_DIR)/glsym/glsym_gl.o
GL_LIBS := -lGL
GL_LIBS := $(OPENGL_LIBS)
ifeq ($(OSX), 1)
GL_LIBS := -framework OpenGL
OBJ += gfx/drivers_context/cgl_ctx.o
else ifneq ($(findstring Win32,$(OS)),)
GL_LIBS := -lopengl32 -lgdi32 -lcomdlg32 -lcomctl32
OBJ += gfx/drivers_context/wgl_ctx.o
GL_LIBS := -lopengl32 -lgdi32 -lcomdlg32
WANT_WGL=1
endif
LIBS += $(GL_LIBS)
endif
@@ -917,6 +1155,7 @@ endif
ifeq ($(HAVE_VULKAN), 1)
ifneq ($(findstring Win32,$(OS)),)
GLSLANG_PLATFORM := Windows
WANT_WGL = 1
else
GLSLANG_PLATFORM := Unix
endif
@@ -975,6 +1214,10 @@ ifeq ($(HAVE_VULKAN), 1)
DEFINES += -DHAVE_SLANG
endif
ifeq ($(WANT_WGL), 1)
OBJ += gfx/drivers_context/wgl_ctx.o
LIBS += -lcomctl32
endif
ifeq ($(HAVE_OMAP), 1)
OBJ += gfx/drivers/omap_gfx.o
@@ -1022,24 +1265,39 @@ ifeq ($(HAVE_CG), 1)
endif
ifeq ($(HAVE_D3D9), 1)
OBJ += gfx/drivers/d3d.o \
gfx/drivers/d3d_renderchains/render_chain_null.o \
gfx/drivers/d3d_renderchains/render_chain_driver.o \
gfx/common/d3d_common.o \
gfx/drivers_font/d3d_w32_font.o \
gfx/drivers_context/d3d_ctx.o
HAVE_DIRECTX=1
DEFINES += -DHAVE_D3D -DHAVE_D3D9
HAVE_D3D_COMMON = 1
DEFINES += -DHAVE_D3D9
LIBS += -ld3d9 -ld3dx9 -ldxguid
OBJ += gfx/drivers_font/d3d_w32_font.o
ifeq ($(HAVE_CG), 1)
LIBS += -lcgD3D9
OBJ += gfx/drivers_renderchain/d3d9_cg_renderchain.o
endif
ifeq ($(HAVE_HLSL), 1)
LIBS += -lcgD3D9
OBJ += gfx/drivers_renderchain/d3d9_hlsl_renderchain.o \
gfx/drivers_shader/shader_hlsl.o
endif
endif
ifeq ($(HAVE_D3D8), 1)
HAVE_D3D_COMMON = 1
DEFINES += -DHAVE_D3D8
LIBS += -ld3d8 -ld3dx8 -ldxguid
OBJ += gfx/drivers_renderchain/d3d8_renderchain.o
endif
ifeq ($(HAVE_D3D_COMMON), 1)
DEFINES += -DHAVE_D3D
OBJ += gfx/drivers/d3d.o \
gfx/common/d3d_common.o \
gfx/drivers_context/d3d_ctx.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d.o
endif
ifeq ($(HAVE_CG), 1)
LIBS += -lcgD3D9
OBJ += gfx/drivers/d3d_renderchains/render_chain_cg.o
endif
endif
#ifeq ($(HAVE_LIBXML2), 1)
@@ -1058,14 +1316,14 @@ OBJ += $(LIBRETRO_COMM_DIR)/file/archive_file.o \
ifeq ($(HAVE_7ZIP),1)
CFLAGS += -I$(DEPS_DIR)/7zip
HAVE_COMPRESSION = 1
DEFINES += -DHAVE_7ZIP
DEFINES += -DHAVE_7ZIP -D_7ZIP_ST
7ZOBJ = $(DEPS_DIR)/7zip/7zIn.o \
$(DEPS_DIR)/7zip/7zAlloc.o \
$(DEPS_DIR)/7zip/Bra86.o \
$(DEPS_DIR)/7zip/7zFile.o \
$(DEPS_DIR)/7zip/7zStream.o \
$(DEPS_DIR)/7zip/7zBuf2.o \
$(DEPS_DIR)/7zip/LzFind.o \
$(DEPS_DIR)/7zip/LzmaDec.o \
$(DEPS_DIR)/7zip/LzmaEnc.o \
$(DEPS_DIR)/7zip/7zCrcOpt.o \
$(DEPS_DIR)/7zip/Bra.o \
$(DEPS_DIR)/7zip/7zDec.o \
@@ -1077,6 +1335,33 @@ ifeq ($(HAVE_7ZIP),1)
$(7ZOBJ)
endif
ifeq ($(HAVE_FLAC),1)
CFLAGS += -I$(DEPS_DIR)/libFLAC/include
DEFINES += -DHAVE_FLAC -DHAVE_STDINT_H -DHAVE_LROUND -DFLAC__HAS_OGG=0 \
-DFLAC_PACKAGE_VERSION="\"retroarch\""
FLACOBJ = $(DEPS_DIR)/libFLAC/bitmath.o \
$(DEPS_DIR)/libFLAC/bitreader.o \
$(DEPS_DIR)/libFLAC/cpu.o \
$(DEPS_DIR)/libFLAC/crc.o \
$(DEPS_DIR)/libFLAC/fixed.o \
$(DEPS_DIR)/libFLAC/float.o \
$(DEPS_DIR)/libFLAC/format.o \
$(DEPS_DIR)/libFLAC/lpc.o \
$(DEPS_DIR)/libFLAC/lpc_intrin_avx2.o \
$(DEPS_DIR)/libFLAC/lpc_intrin_sse2.o \
$(DEPS_DIR)/libFLAC/lpc_intrin_sse41.o \
$(DEPS_DIR)/libFLAC/lpc_intrin_sse.o \
$(DEPS_DIR)/libFLAC/md5.o \
$(DEPS_DIR)/libFLAC/memory.o \
$(DEPS_DIR)/libFLAC/stream_decoder.o
ifneq ($(findstring Win32,$(OS)),)
DEFINES += -DHAVE_FSEEKO
# make sure not to use this on legacy Windows versions that don't have W-functions implemented
DEFINES += -DNEED_UTF8_SUPPORT
FLACOBJ += $(DEPS_DIR)/libFLAC/windows_unicode_filenames.o
endif
OBJ += $(FLACOBJ)
endif
ifeq ($(HAVE_ZLIB), 1)
OBJ += $(LIBRETRO_COMM_DIR)/file/archive_file_zlib.o \
@@ -1085,6 +1370,7 @@ ifeq ($(HAVE_ZLIB), 1)
DEFINES += -DHAVE_ZLIB
HAVE_COMPRESSION = 1
ifeq ($(HAVE_BUILTINZLIB), 1)
INCLUDE_DIRS += -I$(LIBRETRO_COMM_DIR)/include/compat
DEFINES += -DWANT_ZLIB
else
LIBS += -lz
@@ -1112,8 +1398,14 @@ ifeq ($(HAVE_RBMP), 1)
OBJ += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp.o
endif
ifeq ($(HAVE_IBXM), 1)
DEFINES += -DHAVE_IBXM
OBJ += $(DEPS_DIR)/ibxm/ibxm.o
endif
OBJ += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp_encode.o \
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax.o \
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax_full.o \
$(LIBRETRO_COMM_DIR)/formats/image_transfer.o
ifdef HAVE_COMPRESSION
@@ -1121,26 +1413,41 @@ ifdef HAVE_COMPRESSION
endif
ifeq ($(HAVE_BUILTINZLIB),1)
OBJ += $(DEPS_DIR)/zlib/adler32.o \
$(DEPS_DIR)/zlib/compress.o \
$(DEPS_DIR)/zlib/crc32.o \
$(DEPS_DIR)/zlib/deflate.o \
$(DEPS_DIR)/zlib/gzclose.o \
$(DEPS_DIR)/zlib/gzlib.o \
$(DEPS_DIR)/zlib/gzread.o \
$(DEPS_DIR)/zlib/gzwrite.o \
$(DEPS_DIR)/zlib/inffast.o \
$(DEPS_DIR)/zlib/inflate.o \
$(DEPS_DIR)/zlib/inftrees.o \
$(DEPS_DIR)/zlib/trees.o \
$(DEPS_DIR)/zlib/uncompr.o \
$(DEPS_DIR)/zlib/zutil.o
OBJ += $(DEPS_DIR)/libz/adler32.o \
$(DEPS_DIR)/libz/compress.o \
$(DEPS_DIR)/libz/crc32.o \
$(DEPS_DIR)/libz/deflate.o \
$(DEPS_DIR)/libz/gzclose.o \
$(DEPS_DIR)/libz/gzlib.o \
$(DEPS_DIR)/libz/gzread.o \
$(DEPS_DIR)/libz/gzwrite.o \
$(DEPS_DIR)/libz/inffast.o \
$(DEPS_DIR)/libz/inflate.o \
$(DEPS_DIR)/libz/inftrees.o \
$(DEPS_DIR)/libz/trees.o \
$(DEPS_DIR)/libz/uncompr.o \
$(DEPS_DIR)/libz/zutil.o
else
ifeq ($(HAVE_ZLIB),1)
ifeq ($(HAVE_ZLIB), 1)
OBJ += $(ZLIB_OBJS)
endif
endif
ifeq ($(HAVE_7ZIP), 1)
ifeq ($(HAVE_ZLIB), 1)
ifeq ($(HAVE_FLAC), 1)
DEFINES += -DHAVE_CHD -DWANT_SUBCODE -DWANT_RAW_DATA_SECTOR
CFLAGS += -I$(LIBRETRO_COMM_DIR)/formats/libchdr
OBJ += $(LIBRETRO_COMM_DIR)/formats/libchdr/bitstream.o \
$(LIBRETRO_COMM_DIR)/formats/libchdr/cdrom.o \
$(LIBRETRO_COMM_DIR)/formats/libchdr/chd.o \
$(LIBRETRO_COMM_DIR)/formats/libchdr/flac.o \
$(LIBRETRO_COMM_DIR)/formats/libchdr/huffman.o \
$(LIBRETRO_COMM_DIR)/streams/chd_stream.o
endif
endif
endif
# Video4Linux 2
ifeq ($(HAVE_V4L2),1)
@@ -1165,9 +1472,14 @@ ifeq ($(HAVE_NETWORKING), 1)
network/net_http_special.o \
tasks/task_http.o \
tasks/task_netplay_lan_scan.o \
tasks/task_netplay_nat_traversal.o \
tasks/task_wifi.o \
tasks/task_netplay_find_content.o
ifeq ($(HAVE_SSL), 1)
OBJ += $(LIBRETRO_COMM_DIR)/net/net_socket_ssl.o
endif
ifneq ($(HAVE_SOCKET_LEGACY),1)
OBJ += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
endif
@@ -1190,16 +1502,22 @@ ifeq ($(HAVE_NETWORKING), 1)
network/netplay/netplay_io.o \
network/netplay/netplay_sync.o \
network/netplay/netplay_discovery.o \
network/netplay/netplay_buf.o
network/netplay/netplay_buf.o \
network/netplay/netplay_room_parse.o
# Retro Achievements (also depends on threads)
# Retro Achievements
ifeq ($(HAVE_CHEEVOS), 1)
ifeq ($(HAVE_THREADS), 1)
DEFINES += -DHAVE_CHEEVOS
OBJ += cheevos.o \
$(LIBRETRO_COMM_DIR)/utils/md5.o
endif
DEFINES += -DHAVE_CHEEVOS
OBJ += cheevos/cheevos.o \
cheevos/var.o \
cheevos/cond.o \
cheevos/badges.o \
$(LIBRETRO_COMM_DIR)/utils/md5.o
endif
ifeq ($(HAVE_KEYMAPPER), 1)
OBJ += input/input_mapper.o
endif
ifeq ($(HAVE_NETWORKGAMEPAD), 1)
@@ -1208,22 +1526,41 @@ ifeq ($(HAVE_NETWORKING), 1)
endif
ifeq ($(HAVE_MINIUPNPC), 1)
LIBS += -lminiupnpc
ifeq ($(HAVE_BUILTINMINIUPNPC), 1)
DEFINES += -DHAVE_BUILTINMINIUPNPC -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR
DEFINES += -I$(DEPS_DIR)
OBJ += \
$(DEPS_DIR)/miniupnpc/igd_desc_parse.o \
$(DEPS_DIR)/miniupnpc/upnpreplyparse.o \
$(DEPS_DIR)/miniupnpc/upnpcommands.o \
$(DEPS_DIR)/miniupnpc/upnperrors.o \
$(DEPS_DIR)/miniupnpc/connecthostport.o \
$(DEPS_DIR)/miniupnpc/portlistingparse.o \
$(DEPS_DIR)/miniupnpc/receivedata.o \
$(DEPS_DIR)/miniupnpc/upnpdev.o \
$(DEPS_DIR)/miniupnpc/minissdpc.o \
$(DEPS_DIR)/miniupnpc/miniwget.o \
$(DEPS_DIR)/miniupnpc/miniupnpc.o \
$(DEPS_DIR)/miniupnpc/minixml.o \
$(DEPS_DIR)/miniupnpc/minisoap.o
else
LIBS += $(MINIUPNPC_LIBS)
endif
endif
endif
ifneq ($(findstring Win32,$(OS)),)
OBJ += media/rarch.o \
input/drivers_keyboard/keyboard_event_win32.o \
gfx/common/win32_common.o \
frontend/drivers/platform_win32.o
OBJ += gfx/drivers/gdi_gfx.o \
gfx/drivers_context/gdi_ctx.o \
gfx/drivers_font/gdi_font.o \
gfx/display_servers/dispserv_win32.o \
menu/drivers_display/menu_display_gdi.o
LIBS += -lmsimg32
LIBS += -lmsimg32 -lhid -lsetupapi
endif
ifeq ($(HAVE_AVFOUNDATION), 1)
@@ -1253,10 +1590,6 @@ ifeq ($(HAVE_COMPRESSION), 1)
OBJ += tasks/task_decompress.o
endif
#ifeq ($(HAVE_DIRECTX), 1)
#$DEFINES += -I"$(DXSDK_DIR)/Include"
#endif
ifeq ($(HAVE_COCOA),1)
DEFINES += -DHAVE_MAIN
OBJ += input/drivers/cocoa_input.o \
@@ -1273,9 +1606,56 @@ endif
ifneq ($(findstring DOS,$(OS)),)
OBJ += gfx/drivers/vga_gfx.o gfx/drivers_font/vga_font.o \
input/drivers/dos_input.o input/drivers_joypad/dos_joypad.o \
frontend/drivers/platform_dos.o
frontend/drivers/platform_dos.o input/drivers_keyboard/keyboard_event_dos.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_vga.o
endif
endif
ifeq ($(HAVE_STATIC_VIDEO_FILTERS), 1)
OBJ += gfx/video_filters/2xsai.o \
gfx/video_filters/super2xsai.o \
gfx/video_filters/supereagle.o \
gfx/video_filters/2xbr.o \
gfx/video_filters/darken.o \
gfx/video_filters/epx.o \
gfx/video_filters/scale2x.o \
gfx/video_filters/blargg_ntsc_snes.o \
gfx/video_filters/lq2x.o \
gfx/video_filters/phosphor2x.o
endif
ifeq ($(WANT_IOSUHAX), 1)
DEFINES += -I$(DEPS_DIR)/libiosuhax
CFLAGS += -I$(DEPS_DIR)/libiosuhax
OBJ += $(DEPS_DIR)/libiosuhax/iosuhax.o \
$(DEPS_DIR)/libiosuhax/iosuhax_devoptab.o \
$(DEPS_DIR)/libiosuhax/iosuhax_disc_interface.o
endif
ifeq ($(WANT_LIBFAT), 1)
DEFINES += -I$(DEPS_DIR)/libfat/include
CFLAGS += -I$(DEPS_DIR)/libfat/include
OBJ += $(DEPS_DIR)/libfat/cache.o \
$(DEPS_DIR)/libfat/directory.o \
$(DEPS_DIR)/libfat/disc.o \
$(DEPS_DIR)/libfat/fatdir.o \
$(DEPS_DIR)/libfat/fatfile.o \
$(DEPS_DIR)/libfat/file_allocation_table.o \
$(DEPS_DIR)/libfat/filetime.o \
$(DEPS_DIR)/libfat/libfat.o \
$(DEPS_DIR)/libfat/lock.o \
$(DEPS_DIR)/libfat/partition.o
endif
ifeq ($(HAVE_STATIC_AUDIO_FILTERS), 1)
OBJ += libretro-common/audio/dsp_filters/echo.o \
libretro-common/audio/dsp_filters/eq.o \
libretro-common/audio/dsp_filters/chorus.o \
libretro-common/audio/dsp_filters/iir.o \
libretro-common/audio/dsp_filters/panning.o \
libretro-common/audio/dsp_filters/phaser.o \
libretro-common/audio/dsp_filters/reverb.o \
libretro-common/audio/dsp_filters/wahwah.o
endif
+19 -45
View File
@@ -9,21 +9,21 @@ BUILD_3DS = 1
BUILD_CIA = 1
LIBCTRU_NO_DEPRECATION = 1
APP_TITLE = Retroarch 3DS
APP_DESCRIPTION = Retroarch 3DS
APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS
APP_AUTHOR = Team Libretro
APP_PRODUCT_CODE = RETROARCH-3DS
APP_UNIQUE_ID = 0xBAC00
APP_ICON = ctr/assets/default.png
APP_BANNER = ctr/assets/libretro_banner.png
APP_AUDIO = ctr/assets/silent.wav
APP_RSF = ctr/tools/template.rsf
APP_ICON = pkg/ctr/assets/default.png
APP_BANNER = pkg/ctr/assets/libretro_banner.png
APP_AUDIO = pkg/ctr/assets/silent.wav
APP_RSF = pkg/ctr/tools/template.rsf
APP_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
APP_BIG_TEXT_SECTION = 0
APP_USE_SVCHAX = 0
include ctr/Makefile.cores
include pkg/ctr/Makefile.cores
OBJ :=
OBJ += gfx/drivers/ctr_shaders/ctr_sprite.o
@@ -61,42 +61,16 @@ else
HAVE_ZARCH = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += gfx/drivers/ctr_gfx.o
OBJ += gfx/drivers_font/ctr_font.o
OBJ += menu/drivers_display/menu_display_ctr.o
OBJ += input/drivers/ctr_input.o
OBJ += input/drivers_joypad/ctr_joypad.o
OBJ += audio/drivers/ctr_csnd_audio.o
OBJ += audio/drivers/ctr_dsp_audio.o
OBJ += frontend/drivers/platform_ctr.o
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
endif
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
@@ -142,7 +116,7 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_END := -Wl,--no-whole-archive
endif
CFLAGS += -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
CFLAGS += -I. -Ideps -Ideps/libz -Ideps/7zip -Ideps/stb -Ilibretro-common/include
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE -DSINC_LOWEST_QUALITY
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
@@ -190,14 +164,14 @@ NM := $(PREFIX)nm
LD := $(CXX)
ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-linux
BANNERTOOL = ctr/tools/bannertool-linux
MAKEROM = pkg/ctr/tools/makerom-linux
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-mac
BANNERTOOL = ctr/tools/bannertool-mac
MAKEROM = pkg/ctr/tools/makerom-mac
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
MAKEROM = ctr/tools/makerom.exe
BANNERTOOL = ctr/tools/bannertool.exe
MAKEROM = pkg/ctr/tools/makerom.exe
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
%.o: %.vsh %.gsh
@@ -228,15 +202,15 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(DEVKITPRO)/devkitARM/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
cp ctr/big_text_section.xml $(TARGET).xml
cp pkg/ctr/big_text_section.xml $(TARGET).xml
else
rm -f $(TARGET).xml
endif
-3dsxtool $< $@ $(_3DSXFLAGS)
$(DEVKITPRO)/devkitARM/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
+16 -15
View File
@@ -11,10 +11,10 @@ APP_DESCRIPTION = Retroarch 3DS
APP_AUTHOR = Team Libretro
APP_PRODUCT_CODE = RETROARCH-3DS
APP_UNIQUE_ID = 0xBAC00
APP_ICON = ctr/assets/default.png
APP_BANNER = ctr/assets/libretro_banner.png
APP_AUDIO = ctr/assets/silent.wav
APP_RSF = ctr/tools/template.rsf
APP_ICON = pkg/ctr/assets/default.png
APP_BANNER = pkg/ctr/assets/libretro_banner.png
APP_AUDIO = pkg/ctr/assets/silent.wav
APP_RSF = pkg/ctr/tools/template.rsf
APP_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
@@ -25,6 +25,7 @@ OBJ := ctr/ctr_system.o \
frontend/frontend_driver.o \
frontend/drivers/platform_ctr.o \
frontend/drivers/platform_null.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/file_path.o \
libretro-common/string/stdstring.o \
@@ -34,7 +35,7 @@ OBJ := ctr/ctr_system.o \
libretro-common/compat/compat_strl.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o
@@ -44,7 +45,7 @@ ifeq ($(strip $(DEVKITPRO)),)
endif
ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/ctrulib
CTRULIB = $(DEVKITPRO)/libctru
endif
APP_TITLE := $(shell echo "$(APP_TITLE)" | cut -c1-128)
@@ -74,7 +75,7 @@ else
CFLAGS += -O3
endif
CFLAGS += -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
CFLAGS += -I. -Ideps/libz -Ideps/7zip -Ideps/stb -Ilibretro-common/include
#CFLAGS += -DRARCH_INTERNAL
CFLAGS += -DRARCH_CONSOLE -DIS_SALAMANDER
@@ -122,14 +123,14 @@ NM := $(PREFIX)nm
LD := $(CXX)
ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-linux
BANNERTOOL = ctr/tools/bannertool-linux
MAKEROM = pkg/ctr/tools/makerom-linux
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-mac
BANNERTOOL = ctr/tools/bannertool-mac
MAKEROM = pkg/ctr/tools/makerom-mac
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
MAKEROM = ctr/tools/makerom.exe
BANNERTOOL = ctr/tools/bannertool.exe
MAKEROM = pkg/ctr/tools/makerom.exe
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
%.o: %.vsh %.gsh
@@ -160,11 +161,11 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(DEVKITPRO)/devkitARM/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
cp ctr/big_text_section.xml $(TARGET).xml
cp pkg/ctr/big_text_section.xml $(TARGET).xml
else
rm -f $(TARGET).xml
endif
+4 -23
View File
@@ -19,8 +19,9 @@ HAVE_RGUI = 1
HAVE_SDL = 0
HAVE_SDL2 = 1
HAVE_ZLIB = 1
HAVE_FBO = 1
WANT_ZLIB = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
MEMORY = 536870912
# XXX: setting this to 1/2 currently crashes Firefox nightly
@@ -52,27 +53,7 @@ endif
include Makefile.common
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
CFLAGS += -Ideps/zlib/
CFLAGS += -Ideps/libz -Ideps -Ideps/stb
libretro = libretro_emscripten.bc
ifneq ($(V), 1)
@@ -111,7 +92,7 @@ $(TARGET): $(OBJ)
clean:
rm -f *.o
rm -f deps/zlib/*.o
rm -f deps/libz/*.o
rm -f frontend/*.o
rm -f menu/*.o
rm -f menu/disp/*.o
+718 -254
View File
File diff suppressed because it is too large. Load diff
+358
View File
@@ -0,0 +1,358 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
endif
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
export PATH := $(DEVKITPPC)/bin:$(PATH)
ifeq ($(PLATFORM),)
PLATFORM=wii
endif
#---------------------------------------------------------------------------------
# change shell on Snow Leopard
#---------------------------------------------------------------------------------
UNAME_S := $(shell uname -s)
UNAME_R := $(shell uname -r)
ifneq (,$(findstring Darwin,$(UNAME_S)))
ifneq (,$(findstring 10.8.0,$(UNAME_R)))
export SHELL=/bin/bash
endif
endif
#---------------------------------------------------------------------------------
# path to tools
#---------------------------------------------------------------------------------
export PORTLIBS := $(DEVKITPRO)/portlibs/ppc
export PATH := $(DEVKITPPC)/bin:$(PORTLIBS)/bin:$(PATH)
#---------------------------------------------------------------------------------
# the prefix on the compiler executables
#---------------------------------------------------------------------------------
PREFIX := powerpc-eabi-
export AS := $(PREFIX)as
export CC := $(PREFIX)gcc
export CXX := $(PREFIX)g++
export AR := $(PREFIX)ar
export OBJCOPY := $(PREFIX)objcopy
ISVC=$(or $(VCBUILDHELPER_COMMAND),$(MSBUILDEXTENSIONSPATH32),$(MSBUILDEXTENSIONSPATH))
#---------------------------------------------------------------------------------
%.a:
#---------------------------------------------------------------------------------
@rm -f $@
$(AR) -rc $@ $^
#---------------------------------------------------------------------------------
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
#---------------------------------------------------------------------------------
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
#---------------------------------------------------------------------------------
%.o: %.m
$(CC) $(OBJCFLAGS) -c $< -o $@
#---------------------------------------------------------------------------------
%.o: %.s
$(CC) -x assembler-with-cpp $(ASFLAGS) -c $< -o $@
#---------------------------------------------------------------------------------
%.o: %.S
$(CC) -x assembler-with-cpp $(ASFLAGS) -c $< -o $@
#---------------------------------------------------------------------------------
# canned command sequence for binary data
#---------------------------------------------------------------------------------
define bin2o
bin2s -a 32 $< | $(AS) -o $(@)
echo "extern const u8" `(echo $(<F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(<F) | tr . _)`.h
echo "extern const u8" `(echo $(<F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(<F) | tr . _)`.h
echo "extern const u32" `(echo $(<F) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(<F) | tr . _)`.h
endef
BUILD := build
BUILD_LITE = 1
CURDIR = .
export BASEDIR := $(CURDIR)
export DEPSDIR := $(BASEDIR)/wii/libogc/deps
export LWIPDIR := $(BASEDIR)/wii/libogc/lwip
export OGCDIR := $(BASEDIR)/wii/libogc/libogc
export DBDIR := $(BASEDIR)/wii/libogc/libdb
export BTEDIR := $(BASEDIR)/wii/libogc/lwbt
export WIIUSEDIR := $(BASEDIR)/wii/libogc/wiiuse
export LIBWIIKEYB := $(BASEDIR)/wii/libogc/libwiikeyboard
export STUBSDIR := $(BASEDIR)/wii/libogc/lockstubs
export LIBS := $(BASEDIR)/wii/libogc/libs
export INCDIR := $(BASEDIR)/wii/libogc/include
export LIBDIR := $(LIBS)/$(PLATFORM)
#---------------------------------------------------------------------------------
BBALIB := $(LIBDIR)/libbba
OGCLIB := $(LIBDIR)/libogc
DBLIB := $(LIBDIR)/libdb
BTELIB := $(LIBDIR)/libbte
WIIUSELIB := $(LIBDIR)/libwiiuse
WIIKEYBLIB := $(LIBDIR)/libwiikeyboard
STUBSLIB := $(LIBDIR)/libgclibstubs
#---------------------------------------------------------------------------------
DEFAULTINCDIR := $(BASEDIR)/wii/libogc/include
DEFINCS := -I$(DEFAULTINCDIR)
INCLUDES := $(DEFINCS) \
-I$(BASEDIR)/wii/libogc \
-I$(DEFAULTINCDIR)/netif \
-I$(DEFAULTINCDIR)/ipv4 \
-I$(DEFAULTINCDIR)/sdcard \
-I$(DEFAULTINCDIR)/ogc \
-I$(DEFAULTINCDIR)/ogc/machine \
-I$(DEFAULTINCDIR)/bte \
-I$(DEFAULTINCDIR)/sdcard \
-I$(DEFAULTINCDIR)/wiikeyboard \
-I$(DEFAULTINCDIR)/wiiuse \
-I$(DEFAULTINCDIR)/di
MACHDEP := -DBIGENDIAN -DGEKKO -mcpu=750 -meabi -msdata=eabi -mhard-float -ffunction-sections -fdata-sections
ifeq ($(PLATFORM),wii)
MACHDEP += -DHW_RVL
endif
ifeq ($(PLATFORM),cube)
MACHDEP += -DHW_DOL
endif
CFLAGS := -DLIBOGC_INTERNAL -DNDEBUG -O2 -fno-strict-aliasing -mregnames -Wall $(MACHDEP) $(INCLUDES)
ASFLAGS := $(MACHDEP) -mregnames -D_LANGUAGE_ASSEMBLY $(INCLUDES)
#---------------------------------------------------------------------------------
VPATH := $(LWIPDIR) \
$(LWIPDIR)/arch/gc \
$(LWIPDIR)/arch/gc/netif \
$(LWIPDIR)/core \
$(LWIPDIR)/core/ipv4 \
$(LWIPDIR)/netif \
$(OGCDIR) \
$(DBDIR) \
$(DBDIR)/uIP \
$(BTEDIR) \
$(WIIUSEDIR) \
$(SDCARDDIR) \
$(LIBWIIKEYB) \
$(STUBSDIR)
#---------------------------------------------------------------------------------
SOURCES_LWIP := $(LWIPDIR)/network.c \
$(LWIPDIR)/netio.c \
$(LWIPDIR)/arch/gc/netif/gcif.c \
$(LWIPDIR)/core/inet.c \
$(LWIPDIR)/core/mem.c \
$(LWIPDIR)/core/dhcp.c \
$(LWIPDIR)/core/raw.c \
$(LWIPDIR)/core/memp.c \
$(LWIPDIR)/core/netif.c \
$(LWIPDIR)/core/pbuf.c \
$(LWIPDIR)/core/stats.c \
$(LWIPDIR)/core/sys.c \
$(LWIPDIR)/core/tcp.c \
$(LWIPDIR)/core/tcp_in.c \
$(LWIPDIR)/core/tcp_out.c \
$(LWIPDIR)/core/udp.c \
$(LWIPDIR)/core/ipv4/icmp.c \
$(LWIPDIR)/core/ipv4/ip.c \
$(LWIPDIR)/core/ipv4/ip_frag.c \
$(LWIPDIR)/core/ipv4/ip_addr.c \
$(LWIPDIR)/netif/etharp.c \
$(LWIPDIR)/netif/loopif.c
LWIPOBJ := $(SOURCES_LWIP:.c=.o)
#---------------------------------------------------------------------------------
SOURCES_OGC := \
$(OGCDIR)/console.c \
$(OGCDIR)/lwp_priority.c \
$(OGCDIR)/lwp_queue.c \
$(OGCDIR)/lwp_threadq.c \
$(OGCDIR)/lwp_threads.c \
$(OGCDIR)/lwp_sema.c \
$(OGCDIR)/lwp_messages.c \
$(OGCDIR)/lwp.c \
$(OGCDIR)/lwp_stack.c \
$(OGCDIR)/lwp_mutex.c \
$(OGCDIR)/lwp_watchdog.c \
$(OGCDIR)/lwp_wkspace.c \
$(OGCDIR)/lwp_objmgr.c \
$(OGCDIR)/lwp_heap.c \
$(OGCDIR)/sys_state.c \
$(OGCDIR)/exception.c \
$(OGCDIR)/irq.c \
$(OGCDIR)/semaphore.c \
$(OGCDIR)/video.c \
$(OGCDIR)/pad.c \
$(OGCDIR)/exi.c \
$(OGCDIR)/mutex.c \
$(OGCDIR)/arqueue.c \
$(OGCDIR)/arqmgr.c \
$(OGCDIR)/system.c \
$(OGCDIR)/cond.c \
$(OGCDIR)/gx.c \
$(OGCDIR)/gu.c \
$(OGCDIR)/audio.c \
$(OGCDIR)/cache.c \
$(OGCDIR)/decrementer.c \
$(OGCDIR)/message.c \
$(OGCDIR)/card.c \
$(OGCDIR)/aram.c \
$(OGCDIR)/depackrnc1.c \
$(OGCDIR)/dsp.c \
$(OGCDIR)/si.c \
$(OGCDIR)/tpl.c \
$(OGCDIR)/ipc.c \
$(OGCDIR)/console_font_8x16.c \
$(OGCDIR)/timesupp.c \
$(OGCDIR)/lock_supp.c \
$(OGCDIR)/newlibc.c \
$(OGCDIR)/usbgecko.c \
$(OGCDIR)/usbmouse.c \
$(OGCDIR)/sbrk.c \
$(OGCDIR)/malloc_lock.c \
$(OGCDIR)/kprintf.c \
$(OGCDIR)/stm.c \
$(OGCDIR)/ios.c \
$(OGCDIR)/es.c \
$(OGCDIR)/isfs.c \
$(OGCDIR)/usb.c \
$(OGCDIR)/network_common.c \
$(OGCDIR)/sdgecko_io.c \
$(OGCDIR)/sdgecko_buf.c \
$(OGCDIR)/gcsd.c \
$(OGCDIR)/argv.c \
$(OGCDIR)/network_wii.c \
$(OGCDIR)/wiisd.c \
$(OGCDIR)/conf.c \
$(OGCDIR)/usbstorage.c \
$(OGCDIR)/texconv.c \
$(OGCDIR)/wiilaunch.c
SOURCES_OGC_ASM := $(OGCDIR)/cache_asm.S \
$(OGCDIR)/decrementer_handler.S \
$(OGCDIR)/depackrnc.S \
$(OGCDIR)/exception_handler.S \
$(OGCDIR)/gu_psasm.S \
$(OGCDIR)/irq_handler.S \
$(OGCDIR)/lwp_handler.S \
$(OGCDIR)/ogc_crt0.S \
$(OGCDIR)/system_asm.S \
$(OGCDIR)/video_asm.S
ifneq ($(BUILD_LITE), 1)
SOURCES_OGC += $(OGCDIR)/dvd.c
endif
OGCOBJ := $(SOURCES_OGC:.c=.o) $(SOURCES_OGC_ASM:.S=.o)
#---------------------------------------------------------------------------------
SOURCES_DB := \
$(DBDIR)/uIP/uip_ip.c \
$(DBDIR)/uIP/uip_tcp.c \
$(DBDIR)/uIP/uip_pbuf.c \
$(DBDIR)/uIP/uip_netif.c \
$(DBDIR)/uIP/uip_arp.c \
$(DBDIR)/uIP/uip_arch.c \
$(DBDIR)/uIP/uip_icmp.c \
$(DBDIR)/uIP/memb.c \
$(DBDIR)/uIP/memr.c \
$(DBDIR)/uIP/bba.c \
$(DBDIR)/tcpip.c \
$(DBDIR)/debug.c \
$(DBDIR)/debug_handler.c \
$(DBDIR)/debug_supp.c \
$(DBDIR)/geckousb.c
DBOBJ := $(SOURCES_DB:.c=.o)
#---------------------------------------------------------------------------------
SOURCES_BTE := \
$(BTEDIR)/bte.c \
$(BTEDIR)/hci.c \
$(BTEDIR)/l2cap.c \
$(BTEDIR)/btmemb.c \
$(BTEDIR)/btmemr.c \
$(BTEDIR)/btpbuf.c \
$(BTEDIR)/physbusif.c
BTEOBJ := $(SOURCES_BTE:.c=.o)
#---------------------------------------------------------------------------------
SOURCES_WIIUSE := \
$(WIIUSEDIR)/classic.c \
$(WIIUSEDIR)/dynamics.c \
$(WIIUSEDIR)/events.c \
$(WIIUSEDIR)/io.c \
$(WIIUSEDIR)/io_wii.c \
$(WIIUSEDIR)/ir.c \
$(WIIUSEDIR)/nunchuk.c \
$(WIIUSEDIR)/wiiuse.c \
$(WIIUSEDIR)/speaker.c \
$(WIIUSEDIR)/wpad.c \
$(WIIUSEDIR)/motion_plus.c
WIIUSEOBJ := $(SOURCES_WIIUSE:.c=.o)
#---------------------------------------------------------------------------------
SOURCES_WIIKEYB = $(LIBWIIKEYB)/usbkeyboard.c \
$(LIBWIIKEYB)/keyboard.c \
$(LIBWIIKEYB)/ukbdmap.c \
$(LIBWIIKEYB)/wskbdutil.c
WIIKEYBLIBOBJ := $(SOURCES_WIIKEYB:.c=.o)
LIBRARIES := $(OGCLIB).a $(DBLIB).a
ifeq ($(PLATFORM),cube)
LIBRARIES += $(BBALIB).a
endif
ifeq ($(PLATFORM),wii)
LIBRARIES += $(BTELIB).a $(WIIUSELIB).a $(WIIKEYBLIB).a
endif
all: $(LIBRARIES)
#---------------------------------------------------------------------------------
$(BBALIB).a: $(LWIPOBJ)
#---------------------------------------------------------------------------------
$(OGCLIB).a: $(OGCOBJ)
#---------------------------------------------------------------------------------
$(DBLIB).a: $(DBOBJ)
#---------------------------------------------------------------------------------
$(WIIKEYBLIB).a: $(WIIKEYBLIBOBJ)
#---------------------------------------------------------------------------------
$(BTELIB).a: $(BTEOBJ)
#---------------------------------------------------------------------------------
$(WIIUSELIB).a: $(WIIUSEOBJ)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
clean:
#---------------------------------------------------------------------------------
rm -fr $(LWIPOBJ) $(OGCOBJ) $(DBOBJ) $(BTEOBJ) $(WIIUSEOBJ) $(WIIKEYBLIBOBJ)
rm -f *.map
+1 -1
View File
@@ -1,4 +1,4 @@
RARCH_VERSION = "0.9.9.3"
include version.all
DEBUG = 0
+20 -13
View File
@@ -1,4 +1,4 @@
RARCH_VERSION = "0.9.9.3"
include version.all
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
@@ -15,7 +15,6 @@ DEBUG = 0
HAVE_GCMGL = 0
HAVE_LOGGER = 0
HAVE_FREETYPE = 0
HAVE_RLAUNCH = 0
WHOLE_ARCHIVE_LINK = 0
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
@@ -34,7 +33,7 @@ EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. -Idefines -Ideps/zlib -Ilibretro-common/include
INCDIRS = -I. -Idefines -Ideps/libz -Ilibretro-common/include -Ideps -Ideps/stb
# system platform
system_platform = unix
@@ -64,11 +63,19 @@ endif
PPU_SRCS = griffin/griffin.c
ifeq ($(HAVE_RLAUNCH), 1)
DEFINES += -DHAVE_RLAUNCH
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER -DHAVE_STB_VORBIS -DHAVE_STB_FONT
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
@@ -106,7 +113,7 @@ PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -l
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN
#DEFINES += -DHAVE_IMAGEVIEWER
@@ -168,20 +175,20 @@ pkg: $(PPU_TARGET) create-shaders copy-media-files create-npdrm-salamander crea
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf pkg/ps3
pkg-signed: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-cfw: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
pkg-signed-cfw-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
clean-selfs:
ifeq ($(EBOOT_EXISTS),1)
+20 -13
View File
@@ -1,4 +1,4 @@
RARCH_VERSION = "0.9.9.3"
include version.all
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
@@ -13,7 +13,6 @@ DEBUG = 0
HAVE_GCMGL = 1
HAVE_LOGGER = 0
HAVE_FREETYPE = 0
HAVE_RLAUNCH = 0
WHOLE_ARCHIVE_LINK = 0
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
@@ -32,7 +31,7 @@ EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. -Idefines
INCDIRS = -I. -Idefines -Ideps -Ideps/stb
# system platform
system_platform = unix
@@ -62,11 +61,19 @@ endif
PPU_SRCS = griffin/griffin.c
ifeq ($(HAVE_RLAUNCH), 1)
DEFINES += -DHAVE_RLAUNCH
DEFINES += -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_MENU -DRARCH_INTERNAL
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
DEFINES += -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_MENU -DRARCH_INTERNAL
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
@@ -104,7 +111,7 @@ PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -l
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_STB_VORBIS
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
@@ -164,20 +171,20 @@ pkg: $(PPU_TARGET) create-shaders copy-media-files create-npdrm-salamander crea
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf pkg/ps3
pkg-signed: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-cfw: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
pkg-signed-cfw-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(RARCH_VERSION)-kmeaw.pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
clean-selfs:
ifeq ($(EBOOT_EXISTS),1)
+26 -4
View File
@@ -16,9 +16,32 @@ else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O2 -DNDEBUG
endif
STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe
PPU_CFLAGS += -I. -Ilibretro-common/include -Ideps/zlib -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC
INCFLAGS = -I. -Idefines -Ilibretro-common/include -Ideps/libz
DEFINES = -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_SRCS = frontend/frontend_salamander.c \
frontend/frontend_driver.c \
frontend/drivers/platform_ps3.c \
@@ -27,12 +50,13 @@ PPU_SRCS = frontend/frontend_salamander.c \
libretro-common/lists/dir_list.c \
libretro-common/lists/string_list.c \
libretro-common/file/retro_dirent.c \
libretro-common/file/retro_stat.c \
libretro-common/hash/rhash.c \
libretro-common/string/stdstring.c \
libretro-common/encodings/encoding_utf.c \
libretro-common/compat/compat_strl.c \
libretro-common/compat/compat_strcasestr.c \
libretro-common/streams/file_stream.c \
libretro-common/vfs/vfs_implementation.c \
libretro-common/file/config_file.c \
file_path_str.c \
verbosity.c
@@ -61,8 +85,6 @@ endif
PPU_LDLIBS += -lm -lnet_stub -lnetctl_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lsysutil_game_stub -lfs_stub -lsysutil_np_stub
PPU_OPTIMIZE_LV := -O2
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
include $(CELL_MK_DIR)/sdk.target.mk
+4 -4
View File
@@ -1,4 +1,4 @@
RARCH_VERSION = "0.9.9.3"
include version.all
DEBUG = 0
HAVE_LOGGER = 0
@@ -17,7 +17,7 @@ ELF_TARGET := retroarch_psl1ght.elf
EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
INCLUDE := -I. -I$(PS3DEV)/ppu/include -Ideps/zlib -Ips3/gcmgl/include/export -Ips3/include
INCLUDE := -I. -I$(PS3DEV)/ppu/include -Ideps/libz -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb
LIBDIRS := -L$(PS3DEV)/ppu/lib -L$(PS3DEV)/portlibs/ppu/lib -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__
@@ -89,7 +89,7 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
SHARED_FLAGS := -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_GCMGL -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_MOUSE -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts -DHAVE_CC_RESAMPLER
SHARED_FLAGS := -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_GCMGL -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_MOUSE -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts -DHAVE_CC_RESAMPLER
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
@@ -121,7 +121,7 @@ pkg: $(ELF_TARGET) create-npdrm-core
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf ps3/pkg
pkg-signed: $(ELF_TARGET) create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(RARCH_VERSION).pkg
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
clean:
rm -f $(ELF_TARGET)
+5 -3
View File
@@ -1,6 +1,8 @@
BUILD_PRX = 1
BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
DEBUG = 0
HAVE_KERNEL_PRX = 1
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_THREADS = 0
BIG_STACK = 0
@@ -11,7 +13,7 @@ TARGET = retroarchpsp
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O3 -g
OPTIMIZE_LV := -O2
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
@@ -19,7 +21,7 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_END := -Wl,--no-whole-archive
endif
INCDIR = deps/zlib deps/7zip libretro-common/include
INCDIR = deps deps/stb deps/libz deps/7zip libretro-common/include
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
ASFLAGS = $(CFLAGS)
+6 -4
View File
@@ -1,4 +1,5 @@
BUILD_PRX = 1
BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
HAVE_FILE_LOGGER = 0
DEBUG = 0
@@ -7,7 +8,7 @@ TARGET = retroarchpsp_salamander
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O2 -g
OPTIMIZE_LV := -O2
endif
INCDIR = $(PSPPATH)/include libretro-common/include
@@ -24,7 +25,7 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
CFLAGS += $(RARCH_DEFINES)
CFLAGS += $(RARCH_DEFINES)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = RetroArch
@@ -40,11 +41,12 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o \
+4 -19
View File
@@ -45,7 +45,10 @@ else
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
HAVE_CC_RESAMPLER := 1
HAVE_CHEEVOS := 1
RARCH_CONSOLE := 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
ifeq ($(DEBUG), 1)
HAVE_NETLOGGER = 1
@@ -59,24 +62,6 @@ else
OBJ += input/drivers_joypad/psp_joypad.o
OBJ += audio/drivers/psp_audio.o
OBJ += frontend/drivers/platform_psp.o
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
endif
@@ -97,7 +82,7 @@ STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)
INCDIRS := -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
INCDIRS := -I. -Ideps/libz -Ideps/7zip -Ilibretro-common/include -Ideps/stb
LIBDIRS := -L.
ARCHFLAGS := -march=armv7-a -mfpu=neon -mfloat-abi=hard -DVITA
+2 -1
View File
@@ -41,11 +41,12 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o
+29 -3
View File
@@ -6,6 +6,7 @@
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
EXTERNAL_LIBOGC = 0
# system platform
system_platform = unix
@@ -29,13 +30,23 @@ ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
DOL_TARGET := retroarch-salamander_wii.dol
ELF_TARGET := retroarch-salamander_wii.elf
INCLUDE := -I. -I$(DEVKITPRO)/libogc/include -Ilibretro-common/include -Ideps/zlib
INCLUDE := -I. -Ilibretro-common/include -Ideps/libz
ifeq ($(EXTERNAL_LIBOGC), 1)
INCLUDE += -I$(DEVKITPRO)/libogc/include
LIBDIRS := -L$(DEVKITPRO)/libogc/lib/wii -L.
else
INCLUDE += -Iwii/libogc/include
LIBDIRS := -Lwii/libogc/libs/wii -L.
endif
MACHDEP := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP) -Wl,-Map,$(notdir $(ELF_TARGET)).map
LIBS := -lfat -lwiiuse -logc -lbte
LIBS := -lwiiuse -logc -lbte
ifeq ($(EXTERNAL_LIBOGC), 1)
LIBS += -lfat
endif
APP_BOOTER_DIR = wii/app_booter
@@ -50,8 +61,9 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_stat.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
@@ -59,6 +71,20 @@ OBJ = frontend/frontend_salamander.o \
verbosity.o \
$(APP_BOOTER_DIR)/app_booter.binobj
ifeq ($(EXTERNAL_LIBOGC), 1)
else
OBJ += wii/libogc/libfat/cache.o \
wii/libogc/libfat/directory.o \
wii/libogc/libfat/disc.o \
wii/libogc/libfat/fatdir.o \
wii/libogc/libfat/fatfile.o \
wii/libogc/libfat/file_allocation_table.o \
wii/libogc/libfat/filetime.o \
wii/libogc/libfat/libfat.o \
wii/libogc/libfat/lock.o \
wii/libogc/libfat/partition.o
endif
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
+86 -43
View File
@@ -1,28 +1,54 @@
TARGET := retroarch_wiiu
BUILD_HBL_ELF = 1
BUILD_RPX = 1
BUILD_RPX = 1
DEBUG = 0
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
PC_DEVELOPMENT_IP_ADDRESS =
PC_DEVELOPMENT_TCP_PORT =
ifneq ($(V), 1)
Q := @
endif
PC_DEVELOPMENT_IP_ADDRESS ?=
PC_DEVELOPMENT_TCP_PORT ?=
OBJ :=
OBJ += wiiu/system/memory.o
OBJ += wiiu/system/exception_handler.o
OBJ += wiiu/system/missing_libc_functions.o
OBJ += wiiu/fs/sd_fat_devoptab.o
OBJ += wiiu/fs/fs_utils.o
OBJ += wiiu/tex_shader.o
OBJ += wiiu/hbl.o
ifeq ($(ENABLE_CONTROLLER_PATCHER), 1)
OBJ += wiiu/controller_patcher/ControllerPatcher.o
OBJ += wiiu/controller_patcher/ControllerPatcherWrapper.o
OBJ += wiiu/controller_patcher/ConfigReader.o
OBJ += wiiu/controller_patcher/config/ConfigParser.o
OBJ += wiiu/controller_patcher/config/ConfigValues.o
OBJ += wiiu/controller_patcher/network/ControllerPatcherNet.o
OBJ += wiiu/controller_patcher/network/TCPServer.o
OBJ += wiiu/controller_patcher/network/UDPClient.o
OBJ += wiiu/controller_patcher/network/UDPServer.o
OBJ += wiiu/controller_patcher/patcher/ControllerPatcherUtils.o
OBJ += wiiu/controller_patcher/patcher/ControllerPatcherHID.o
OBJ += wiiu/controller_patcher/utils/CPRetainVars.o
OBJ += wiiu/controller_patcher/utils/CPStringTools.o
OBJ += wiiu/controller_patcher/utils/PadConst.o
OBJ += wiiu/controller_patcher/utils/FSHelper.o
endif
DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_RGUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB -DHAVE_CC_RESAMPLER
# DEFINES += -DHAVE_XMB -DHAVE_MATERIALUI
DEFINES += -DHAVE_STB_FONT -DHAVE_STB_VORBIS -DHAVE_LANGEXTRA -DHAVE_LIBRETRODB -DHAVE_NETWORKING
# DEFINES += -DWANT_IFADDRS
# DEFINES += -DHAVE_FREETYPE
DEFINES += -DHAVE_XMB -DHAVE_MATERIALUI
else
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
@@ -33,44 +59,40 @@ else
HAVE_ZLIB = 1
HAVE_7ZIP = 1
HAVE_BUILTINZLIB = 1
HAVE_KEYMAPPER = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 0
HAVE_XMB = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 1
HAVE_STB_FONT = 1
# HAVE_FREETYPE = 1
HAVE_LANGEXTRA = 1
HAVE_LIBRETRODB = 1
HAVE_NETWORKING = 1
HAVE_CHEEVOS = 1
# WANT_IFADDRS = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
WANT_LIBFAT = 1
WANT_IOSUHAX = 1
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.o
BLACKLIST += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += gfx/drivers/wiiu_gfx.o
# OBJ += gfx/drivers_font/wiiu_font.o
# OBJ += menu/drivers_display/menu_display_wiiu.o
OBJ += gfx/drivers_font/wiiu_font.o
OBJ += menu/drivers_display/menu_display_wiiu.o
OBJ += input/drivers/wiiu_input.o
OBJ += input/drivers_joypad/wiiu_joypad.o
OBJ += audio/drivers/wiiu_audio.o
OBJ += frontend/drivers/platform_wiiu.o
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
endif
DEFINES += -DHAVE_KEYMAPPER
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
@@ -101,7 +123,7 @@ else
endif
INCDIRS := -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
INCDIRS := -I. -Ideps -Ideps/stb -Ideps/libz -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
LIBDIRS := -L. -L$(DEVKITPRO)/portlibs/ppc/lib
CFLAGS := -mwup -mcpu=750 -meabi -mhard-float
@@ -121,9 +143,13 @@ CFLAGS += -ffast-math -Werror=implicit-function-declaration
#CFLAGS += -Wall
#todo: remove -DWIIU and use the built-in macros instead (HW_WUP or __wiiu__).
CFLAGS += -DWIIU -DMSB_FIRST
CFLAGS += -DWIIU -DMSB_FIRST -D__WUT__
CFLAGS += -DHAVE_MAIN
CFLAGS += -DHAVE_UPDATE_ASSETS
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
ifeq ($(ENABLE_CONTROLLER_PATCHER), 1)
CFLAGS += -DENABLE_CONTROLLER_PATCHER
endif
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
ifneq ($(PC_DEVELOPMENT_IP_ADDRESS),)
@@ -138,11 +164,19 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -D_GNU_SOURCE
LDFLAGS += -Wl,--gc-sections
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm -lfat -liosuhax
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm
ifneq ($(WANT_LIBFAT), 1)
LIBS += -lfat
endif
ifneq ($(WANT_IOSUHAX), 1)
LIBS += -liosuhax
endif
RPX_OBJ = wiiu/system/stubs_rpl.o
@@ -172,41 +206,50 @@ all: $(TARGETS)
%.o: %.cpp
%.o: %.cpp %.depend
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
@$(if $(Q), echo CXX $<,)
$(Q)$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
%.o: %.c
%.o: %.c %.depend
$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
@$(if $(Q), echo CC $<,)
$(Q)$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
%.o: %.S
%.o: %.S %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
@$(if $(Q), echo AS $<,)
$(Q)$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
%.o: %.s
%.o: %.s %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
@$(if $(Q), echo AS $<,)
$(Q)$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
%.a:
$(AR) -rc $@ $^
@$(if $(Q), echo AR $<,)
$(Q)$(AR) -rc $@ $^
%.depend: ;
$(ELF2RPL):
$(MAKE) -C wiiu/wut/elf2rpl/
@$(if $(Q), echo MAKE $@,)
$(Q)$(MAKE) -C wiiu/wut/elf2rpl/
$(TARGET).elf: $(OBJ) $(HBL_ELF_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(LD) $(OBJ) $(HBL_ELF_OBJ) $(LDFLAGS) $(HBL_ELF_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
@$(if $(Q), echo LD $@,)
$(Q)$(LD) $(OBJ) $(HBL_ELF_OBJ) $(LDFLAGS) $(HBL_ELF_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx.elf: $(OBJ) $(RPX_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(LD) $(OBJ) $(RPX_OBJ) $(LDFLAGS) $(RPX_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
@$(if $(Q), echo LD $@,)
$(Q)$(LD) $(OBJ) $(RPX_OBJ) $(LDFLAGS) $(RPX_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx: $(TARGET).rpx.elf $(ELF2RPL)
-$(ELF2RPL) $(TARGET).rpx.elf $@
@$(if $(Q), echo ELF2RPL $@,)
$(Q)-$(ELF2RPL) $(TARGET).rpx.elf $@
clean:
rm -f $(OBJ) $(RPX_OBJ) $(HBL_ELF_OBJ) $(TARGET).elf $(TARGET).rpx.elf $(TARGET).rpx
+3 -2
View File
@@ -16,6 +16,7 @@ OBJ += frontend/frontend_salamander.o
OBJ += frontend/frontend_driver.o
OBJ += frontend/drivers/platform_wiiu.o
OBJ += frontend/drivers/platform_null.o
OBJ += libretro-common/encodings/encoding_utf.o
OBJ += libretro-common/compat/compat_strcasestr.o
OBJ += libretro-common/file/file_path.o
OBJ += libretro-common/string/stdstring.o
@@ -25,7 +26,7 @@ OBJ += libretro-common/file/retro_dirent.o
OBJ += libretro-common/compat/compat_strl.o
OBJ += libretro-common/file/config_file.o
OBJ += libretro-common/streams/file_stream.o
OBJ += libretro-common/file/retro_stat.o
OBJ += libretro-common/vfs/vfs_implementation.o
OBJ += libretro-common/hash/rhash.o
OBJ += file_path_str.o
OBJ += verbosity.o
@@ -59,7 +60,7 @@ else
endif
INCDIRS := -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
INCDIRS := -I. -Ideps/libz -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
LIBDIRS := -L. -L$(DEVKITPRO)/portlibs/ppc/lib
CFLAGS := -mwup -mcpu=750 -meabi -mhard-float
+3 -3
View File
@@ -3,8 +3,8 @@ TARGET = retroarch.exe
HAVE_DINPUT = 1
HAVE_XAUDIO = 1
HAVE_DSOUND = 1
HAVE_WASAPI = 1
HAVE_OPENGL = 1
HAVE_FBO = 1
HAVE_DYLIB = 1
HAVE_D3D9 = 1
HAVE_NETWORKING = 1
@@ -121,8 +121,8 @@ else
CXXFLAGS += -O3 -ffast-math
endif
CFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I.
CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -std=c++98 -D__STDC_CONSTANT_MACROS
CFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -Ideps
CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -Ideps -std=c++98 -D__STDC_CONSTANT_MACROS
ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++98 -xc++ -D__STDC_CONSTANT_MACROS
else
+22 -94
View File
@@ -8,6 +8,12 @@ Popular examples of implementations for this API includes videogame system emula
more generalized 3D programs.
These programs are instantiated as dynamic libraries. We refer to these as "libretro cores".
![XMB menu driver](http://i.imgur.com/BMR1xxr.png "XMB menu driver")
![rgui menu driver](http://i.imgur.com/X3CbBKa.png "rgui menu driver")
![glui menu driver](http://i.imgur.com/ooqv8rw.png "glui menu driver")
## libretro
[libretro](http://libretro.com) is an API that exposes generic audio/video/input callbacks.
@@ -30,13 +36,16 @@ or visit our IRC channel: #retroarch @ irc.freenode.org.
## Documentation
See our [wiki](https://github.com/libretro/RetroArch/wiki). On Unix, man-pages are provided.
See our [Documentation Center](https://docs.libretro.com/). On Unix, man-pages are provided.
More developer-centric stuff is found [here](https://github.com/libretro/libretro.github.com/wiki/Documentation-devs).
## Related projects
- Cg/HLSL shaders: [common-shaders](https://github.com/libretro/common-shaders)
- slang shaders: [slang-shaders](https://github.com/libretro/slang-shaders)
- GLSL shaders: [glsl-shaders](https://github.com/libretro/glsl-shaders)
- Helper scripts to build libretro implementations: [libretro-super](https://github.com/libretro/libretro-super)
- GitHub mirrors of projects, useful for generating diff files: [libretro-mirrors](https://github.com/libretro-mirrors/)
## Philosophy
@@ -52,12 +61,20 @@ RetroArch also emphasizes on being easy to integrate into various launcher front
## Platforms
RetroArch has been ported to the following platforms outside PC:
RetroArch has been ported to the following platforms:
- DOS
- Windows
- Linux
- FreeBSD
- NetBSD
- MacOS
- PlayStation 3
- PlayStation Portable
- Original Xbox
- Xbox 360 (Libxenon/XeXDK)
- Xbox 1
- Wii, Gamecube (Libogc)
- Wii, GameCube (Libogc)
- WiiU
- Nintendo 3DS
- Raspberry Pi
- Android
@@ -119,94 +136,5 @@ Users only need to configure a certain option if the desired value deviates from
To configure joypads, use the built-in menu or the `retroarch-joyconfig` command-line tool.
## Compiling and installing
**Linux**
- Prerequisites:
```bash
sudo apt-get install -y make git-core curl g++ pkg-config libglu1-mesa-dev freeglut3-dev mesa-common-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
```
- Compiling:
```bash
./configure
make
```
**Mac**
- Prerequisites: [XCode](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fxcode%2Fid497799835%3Fmt%3D12&ei=ZmfeVNPtIILVoASBnoCYBw&usg=AFQjCNGrxKmVtXUdvUU3MhqZhP4MHT6Gtg&sig2=RIXKsWQ79YTQBt_lK5fdKA&bvm=bv.85970519,d.cGU), [Cg](https://developer.nvidia.com/cg-toolkit-download).
- You can open the project (**pkg/apple/RetroArch.xcodeproj**) in the Xcode IDE and build (**&#8984;-B**) and run (**&#8984;-R**) it there. Or you can use the command line...
- Debug:
```bash
# Build
xcodebuild -target RetroArch -configuration Debug -project pkg/apple/RetroArch.xcodeproj
# Run
open ./pkg/apple/build/Debug/RetroArch.app/
```
- Release:
```bash
# Build
xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
# Run
open ./pkg/apple/build/Release/RetroArch.app/
```
**PC**
Instructions for compiling on PC can be found in the [wiki](https://github.com/Themaister/RetroArch/wiki).
**PlayStation 3**
RetroArch PS3 needs to be compiled in the following order:
1) Compile RetroArch Salamander
make -f Makefile.ps3.salamander
2) Finally, compile RetroArch packed together with the GUI:
make -f Makefile.ps3
**PlayStation 3 - Creating a PKG installable file**
You can add `pkg` as a parameter in order to make a PKG file - for example:
make -f Makefile.ps3 pkg
This creates an NPDRM package. This can be installed on debug PS3s.
To make a non-NPDRM package that can be installed on a jailbroken/CFW PS3 (such as PSGroove or PS3 CFWs and other 3.55 CFW derivatives), do:
make -f Makefile.ps3 pkg-signed
If you're using Kmeaw 3.55 firmware, the package needs to be signed:
make -f Makefile.ps3 pkg-signed-cfw
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch PS3. This file needs to be called ***`libretro_ps3.a`***.
**Xbox 360 (XeXDK)**
You will need Microsoft Visual Studio 2010 installed (or higher) in order to compile RetroArch 360.
The solution file can be found at the following location:
pkg/msvc-360/RetroArch-360.sln
NOTE: A pre-existing libretro library needs to be present in the `pkg/msvc-360/RetroArch-360/Release` directory in order to link RetroArch 360. This file needs to be
called ***`libretro_xdk360.lib`***.
**Xbox 360 (Libxenon)**
You will need to have the libxenon libraries and a working Devkit Xenon toolchain installed in order to compile RetroArch 360 Libxenon.
make -f Makefile.xenon
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch 360 Libxenon. This file needs to be called ***`libretro_xenon360.a`***.
**Wii**
You will need to have the libogc libraries and a working Devkit PPC toolchain installed in order to compile RetroArch Wii.
make -f Makefile.griffin platform=wii
NOTE: A pre-existing libretro library needs to be present in the root directory in order to link RetroArch Wii. This file needs to be called ***`libretro_wii.a`***.
Instructions for compiling and installing RetroArch can be found in the [Libretro/RetroArch Documentation Center](https://docs.libretro.com/).
+472 -173
View File
File diff suppressed because it is too large. Load diff
+48 -9
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <boolean.h>
#include <audio/audio_mixer.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
@@ -33,6 +34,17 @@ RETRO_BEGIN_DECLS
#define AUDIO_MAX_RATIO 16
enum audio_action
{
AUDIO_ACTION_NONE = 0,
AUDIO_ACTION_RATE_CONTROL_DELTA,
AUDIO_ACTION_MIXER_MUTE_ENABLE,
AUDIO_ACTION_MUTE_ENABLE,
AUDIO_ACTION_VOLUME_GAIN,
AUDIO_ACTION_MIXER_VOLUME_GAIN,
AUDIO_ACTION_MIXER
};
typedef struct audio_driver
{
/* Creates and initializes handle to audio driver.
@@ -67,8 +79,7 @@ typedef struct audio_driver
* Unless said otherwise with set_nonblock_state(), all writes
* are blocking, and it should block till it has written all frames.
*/
ssize_t (*write)(void *data, const void *buf, size_t size,
bool is_perfcnt_enable);
ssize_t (*write)(void *data, const void *buf, size_t size);
/* Temporarily pauses the audio driver. */
bool (*stop)(void *data);
@@ -79,7 +90,7 @@ typedef struct audio_driver
/* Is the audio driver currently running? */
bool (*alive)(void *data);
/* Should we care about blocking in audio thread? Fast forwarding.
/* Should we care about blocking in audio thread? Fast forwarding.
*
* If state is true, nonblocking operation is assumed.
* This is typically used for fast-forwarding. If driver cannot
@@ -92,7 +103,7 @@ typedef struct audio_driver
void (*free)(void *data);
/* Defines if driver will take standard floating point samples,
* or int16_t samples.
* or int16_t samples.
*
* If true is returned, the audio driver is capable of using
* floating point data. This will likely increase performance as the
@@ -116,6 +127,24 @@ typedef struct audio_driver
size_t (*buffer_size)(void *data);
} audio_driver_t;
enum audio_mixer_state
{
AUDIO_STREAM_STATE_NONE = 0,
AUDIO_STREAM_STATE_STOPPED,
AUDIO_STREAM_STATE_PLAYING,
AUDIO_STREAM_STATE_PLAYING_LOOPED
};
typedef struct audio_mixer_stream_params
{
float volume;
enum audio_mixer_type type;
enum audio_mixer_state state;
void *buf;
size_t bufsize;
audio_mixer_stop_cb_t cb;
} audio_mixer_stream_params_t;
void audio_driver_destroy_data(void);
void audio_driver_set_own_driver(void);
@@ -124,8 +153,6 @@ void audio_driver_unset_own_driver(void);
void audio_driver_set_active(void);
void audio_driver_unset_active(void);
void audio_driver_destroy(void);
void audio_driver_deinit_resampler(void);
@@ -175,7 +202,7 @@ void audio_driver_sample_rewind(int16_t left, int16_t right);
size_t audio_driver_sample_batch_rewind(const int16_t *data, size_t frames);
void audio_driver_set_volume_gain(float gain);
bool audio_driver_mixer_extension_supported(const char *ext);
void audio_driver_dsp_filter_free(void);
@@ -212,16 +239,27 @@ void audio_driver_unset_callback(void);
void audio_driver_frame_is_reverse(void);
bool audio_driver_alive(void);
void audio_set_float(enum audio_action action, float val);
void audio_set_bool(enum audio_action action, bool val);
void audio_unset_bool(enum audio_action action, bool val);
float *audio_get_float_ptr(enum audio_action action);
bool *audio_get_bool_ptr(enum audio_action action);
bool audio_driver_deinit(void);
bool audio_driver_init(void);
bool audio_driver_mixer_add_stream(audio_mixer_stream_params_t *params);
extern audio_driver_t audio_rsound;
extern audio_driver_t audio_oss;
extern audio_driver_t audio_alsa;
extern audio_driver_t audio_alsathread;
extern audio_driver_t audio_tinyalsa;
extern audio_driver_t audio_roar;
extern audio_driver_t audio_openal;
extern audio_driver_t audio_opensl;
@@ -230,6 +268,7 @@ extern audio_driver_t audio_sdl;
extern audio_driver_t audio_xa;
extern audio_driver_t audio_pulse;
extern audio_driver_t audio_dsound;
extern audio_driver_t audio_wasapi;
extern audio_driver_t audio_coreaudio;
extern audio_driver_t audio_xenon360;
extern audio_driver_t audio_ps3;
+7 -9
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -56,7 +56,7 @@ static void audio_thread_loop(void *data)
return;
RARCH_LOG("[Audio Thread]: Initializing audio driver.\n");
thr->driver_data = thr->driver->init(thr->device, thr->out_rate, thr->latency,
thr->driver_data = thr->driver->init(thr->device, thr->out_rate, thr->latency,
thr->block_frames, thr->new_rate);
slock_lock(thr->lock);
thr->inited = thr->driver_data ? 1 : -1;
@@ -68,7 +68,7 @@ static void audio_thread_loop(void *data)
if (thr->inited < 0)
return;
/* Wait until we start to avoid calling
/* Wait until we start to avoid calling
* stop immediately after initialization. */
slock_lock(thr->lock);
while (thr->stopped)
@@ -188,7 +188,7 @@ static bool audio_thread_stop(void *data)
audio_thread_t *thr = (audio_thread_t*)data;
if (!thr)
return false;
return false;
audio_thread_block(thr);
thr->is_paused = true;
@@ -228,8 +228,7 @@ static bool audio_thread_use_float(void *data)
return thr->use_float;
}
static ssize_t audio_thread_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t audio_thread_write(void *data, const void *buf, size_t size)
{
ssize_t ret;
audio_thread_t *thr = (audio_thread_t*)data;
@@ -237,8 +236,7 @@ static ssize_t audio_thread_write(void *data, const void *buf, size_t size,
if (!thr)
return 0;
ret = thr->driver->write(thr->driver_data, buf, size,
is_perfcnt_enable);
ret = thr->driver->write(thr->driver_data, buf, size);
if (ret < 0)
{
@@ -276,7 +274,7 @@ static const audio_driver_t audio_thread = {
*
* Starts a audio driver in a new thread.
* Access to audio driver will be mediated through this driver.
* This driver interfaces with audio callback and is
* This driver interfaces with audio callback and is
* only used in that case.
*
* Returns: true (1) if successful, otherwise false (0).
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+73 -67
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -29,6 +29,7 @@ typedef struct alsa
snd_pcm_t *pcm;
size_t buffer_size;
bool nonblock;
unsigned int frame_bits;
bool has_float;
bool can_pause;
bool is_paused;
@@ -46,11 +47,11 @@ static bool find_float_format(snd_pcm_t *pcm, void *data)
if (snd_pcm_hw_params_test_format(pcm, params, SND_PCM_FORMAT_FLOAT) == 0)
{
RARCH_LOG("ALSA: Using floating point format.\n");
RARCH_LOG("[ALSA]: Using floating point format.\n");
return true;
}
RARCH_LOG("ALSA: Using signed 16-bit format.\n");
RARCH_LOG("[ALSA]: Using signed 16-bit format.\n");
return false;
}
@@ -92,6 +93,9 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
alsa->pcm, params, SND_PCM_ACCESS_RW_INTERLEAVED) < 0)
goto error;
/* channels hardcoded to 2 for now */
alsa->frame_bits = snd_pcm_format_physical_width(format) * 2;
if (snd_pcm_hw_params_set_format(alsa->pcm, params, format) < 0)
goto error;
@@ -117,22 +121,22 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
if (snd_pcm_hw_params(alsa->pcm, params) < 0)
goto error;
/* Shouldn't have to bother with this,
/* Shouldn't have to bother with this,
* but some drivers are apparently broken. */
if (snd_pcm_hw_params_get_period_size(params, &buffer_size, NULL))
snd_pcm_hw_params_get_period_size_min(params, &buffer_size, NULL);
RARCH_LOG("ALSA: Period size: %d frames\n", (int)buffer_size);
RARCH_LOG("[ALSA]: Period size: %d frames\n", (int)buffer_size);
if (snd_pcm_hw_params_get_buffer_size(params, &buffer_size))
snd_pcm_hw_params_get_buffer_size_max(params, &buffer_size);
RARCH_LOG("ALSA: Buffer size: %d frames\n", (int)buffer_size);
RARCH_LOG("[ALSA]: Buffer size: %d frames\n", (int)buffer_size);
alsa->buffer_size = snd_pcm_frames_to_bytes(alsa->pcm, buffer_size);
alsa->can_pause = snd_pcm_hw_params_can_pause(params);
RARCH_LOG("ALSA: Can pause: %s.\n", alsa->can_pause ? "yes" : "no");
RARCH_LOG("[ALSA]: Can pause: %s.\n", alsa->can_pause ? "yes" : "no");
if (snd_pcm_sw_params_malloc(&sw_params) < 0)
goto error;
@@ -153,7 +157,7 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
return alsa;
error:
RARCH_ERR("ALSA: Failed to initialize...\n");
RARCH_ERR("[ALSA]: Failed to initialize...\n");
if (params)
snd_pcm_hw_params_free(params);
@@ -173,74 +177,82 @@ error:
return NULL;
}
static ssize_t alsa_write(void *data, const void *buf_, size_t size_,
bool is_perfcnt_enable)
#define BYTES_TO_FRAMES(bytes, frame_bits) ((bytes) * 8 / frame_bits)
#define FRAMES_TO_BYTES(frames, frame_bits) ((frames) * frame_bits / 8)
static ssize_t alsa_write(void *data, const void *buf_, size_t size_)
{
alsa_t *alsa = (alsa_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
bool eagain_retry = true;
snd_pcm_sframes_t written = 0;
snd_pcm_sframes_t size = snd_pcm_bytes_to_frames(alsa->pcm, size_);
snd_pcm_sframes_t size = BYTES_TO_FRAMES(size_, alsa->frame_bits);
size_t frames_size = alsa->has_float ? sizeof(float) : sizeof(int16_t);
while (size)
if (alsa->nonblock)
{
snd_pcm_sframes_t frames;
if (!alsa->nonblock)
while (size)
{
snd_pcm_sframes_t frames = snd_pcm_writei(alsa->pcm, buf, size);
if (frames == -EPIPE || frames == -EINTR || frames == -ESTRPIPE)
{
if (snd_pcm_recover(alsa->pcm, frames, 1) < 0)
return -1;
break;
}
else if (frames == -EAGAIN)
break;
else if (frames < 0)
return -1;
written += frames;
buf += (frames << 1) * frames_size;
size -= frames;
}
}
else
{
bool eagain_retry = true;
while (size)
{
snd_pcm_sframes_t frames;
int rc = snd_pcm_wait(alsa->pcm, -1);
if (rc == -EPIPE || rc == -ESTRPIPE || rc == -EINTR)
{
if (snd_pcm_recover(alsa->pcm, rc, 1) < 0)
{
RARCH_ERR("[ALSA]: (#1) Failed to recover from error (%s)\n",
snd_strerror(rc));
return -1;
continue;
}
frames = snd_pcm_writei(alsa->pcm, buf, size);
if (frames == -EPIPE || frames == -EINTR || frames == -ESTRPIPE)
{
if (snd_pcm_recover(alsa->pcm, frames, 1) < 0)
return -1;
break;
}
else if (frames == -EAGAIN)
{
/* Definitely not supposed to happen. */
if (eagain_retry)
{
eagain_retry = false;
continue;
}
continue;
break;
}
}
frames = snd_pcm_writei(alsa->pcm, buf, size);
if (frames == -EPIPE || frames == -EINTR || frames == -ESTRPIPE)
{
if (snd_pcm_recover(alsa->pcm, frames, 1) < 0)
{
RARCH_ERR("[ALSA]: (#2) Failed to recover from error (%s)\n",
snd_strerror(frames));
else if (frames < 0)
return -1;
}
break;
written += frames;
buf += (frames << 1) * frames_size;
size -= frames;
}
else if (frames == -EAGAIN && !alsa->nonblock)
{
/* Definitely not supposed to happen. */
RARCH_WARN("[ALSA]: poll() was signaled, but EAGAIN returned from write.\n"
"Your ALSA driver might be subtly broken.\n");
if (eagain_retry)
{
eagain_retry = false;
continue;
}
return written;
}
else if (frames == -EAGAIN) /* Expected if we're running nonblock. */
return written;
else if (frames < 0)
{
RARCH_ERR("[ALSA]: Unknown error occurred (%s).\n",
snd_strerror(frames));
return -1;
}
written += frames;
buf += (frames << 1) *
(alsa->has_float ? sizeof(float) : sizeof(int16_t));
size -= frames;
}
return written;
@@ -318,19 +330,13 @@ static void alsa_free(void *data)
static size_t alsa_write_avail(void *data)
{
alsa_t *alsa = (alsa_t*)data;
alsa_t *alsa = (alsa_t*)data;
snd_pcm_sframes_t avail = snd_pcm_avail(alsa->pcm);
if (avail < 0)
{
#if 0
RARCH_WARN("[ALSA]: snd_pcm_avail() failed: %s\n",
snd_strerror(avail));
#endif
return alsa->buffer_size;
}
return snd_pcm_frames_to_bytes(alsa->pcm, avail);
return FRAMES_TO_BYTES(avail, alsa->frame_bits);
}
static size_t alsa_buffer_size(void *data)
@@ -364,7 +370,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || string_is_equal(io,"Output"))
if (!io || (string_is_equal_fast(io, "Output", 6)))
string_list_append(s, name, attr);
if (name)
+7 -7
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -17,6 +17,7 @@
#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API
#include <sys/asoundlib.h>
#include <retro_math.h>
#include "../audio_driver.h"
@@ -219,8 +220,7 @@ static int check_pcm_status(void *data, int channel_type)
}
static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size)
{
alsa_t *alsa = (alsa_t*)data;
snd_pcm_sframes_t written = 0;
@@ -231,7 +231,7 @@ static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size,
if (avail_write)
{
memcpy(alsa->buffer[alsa->buffer_index] +
memcpy(alsa->buffer[alsa->buffer_index] +
alsa->buffer_ptr, buf, avail_write);
alsa->buffer_ptr += avail_write;
@@ -355,8 +355,8 @@ static void alsa_qsa_free(void *data)
static size_t alsa_qsa_write_avail(void *data)
{
alsa_t *alsa = (alsa_t*)data;
size_t avail = (alsa->buf_count -
(int)alsa->buffered_blocks - 1) * alsa->buf_size +
size_t avail = (alsa->buf_count -
(int)alsa->buffered_blocks - 1) * alsa->buf_size +
(alsa->buf_size - (int)alsa->buffer_ptr);
return avail;
}
@@ -364,7 +364,7 @@ static size_t alsa_qsa_write_avail(void *data)
static size_t alsa_qsa_buffer_size(void *data)
{
alsa_t *alsa = (alsa_t*)data;
return alsa->buf_size * alsa->buf_count;
return alsa->buf_size * alsa->buf_count;
}
audio_driver_t audio_alsa = {
+5 -6
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -77,7 +77,7 @@ static void alsa_worker_thread(void *data)
frames = snd_pcm_writei(alsa->pcm, buf, alsa->period_frames);
if (frames == -EPIPE || frames == -EINTR ||
if (frames == -EPIPE || frames == -EINTR ||
frames == -ESTRPIPE)
{
if (snd_pcm_recover(alsa->pcm, frames, 1) < 0)
@@ -192,7 +192,7 @@ static void *alsa_thread_init(const char *device,
TRY_ALSA(snd_pcm_hw_params(alsa->pcm, params));
/* Shouldn't have to bother with this,
/* Shouldn't have to bother with this,
* but some drivers are apparently broken. */
if (snd_pcm_hw_params_get_period_size(params, &alsa->period_frames, NULL))
snd_pcm_hw_params_get_period_size_min(
@@ -243,8 +243,7 @@ error:
return NULL;
}
static ssize_t alsa_thread_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
{
alsa_thread_t *alsa = (alsa_thread_t*)data;
@@ -371,7 +370,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || string_is_equal(io,"Output"))
if (!io || (string_is_equal_fast(io,"Output", 6)))
string_list_append(s, name, attr);
if (name)
+18 -21
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2014 - Chris Moeller
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -94,13 +94,11 @@ static OSStatus audio_write_cb(void *userdata,
(void)bus_number;
(void)number_frames;
if (!io_data)
return noErr;
if (io_data->mNumberBuffers != 1)
if (!io_data || io_data->mNumberBuffers != 1)
return noErr;
write_avail = io_data->mBuffers[0].mDataByteSize;
outbuf = io_data->mBuffers[0].mData;
outbuf = io_data->mBuffers[0].mData;
slock_lock(dev->lock);
@@ -114,7 +112,7 @@ static OSStatus audio_write_cb(void *userdata,
slock_unlock(dev->lock);
/* Technically possible to deadlock without. */
scond_signal(dev->cond);
scond_signal(dev->cond);
return noErr;
}
@@ -171,10 +169,10 @@ static void choose_output_device(coreaudio_t *dev, const char* device)
size = 1024;
if (AudioObjectGetPropertyData(devices[i],
&propaddr, 0, 0, &size, device_name) == noErr
&propaddr, 0, 0, &size, device_name) == noErr
&& string_is_equal(device_name, device))
{
AudioUnitSetProperty(dev->dev, kAudioOutputUnitProperty_CurrentDevice,
AudioUnitSetProperty(dev->dev, kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global, 0, &devices[i], sizeof(AudioDeviceID));
goto done;
}
@@ -246,7 +244,7 @@ static void *coreaudio_init(const char *device,
#endif
if (comp == NULL)
goto error;
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
component_unavailable = (OpenAComponent(comp, &dev->dev) != noErr);
#else
@@ -261,7 +259,7 @@ static void *coreaudio_init(const char *device,
choose_output_device(dev, device);
#endif
dev->dev_alive = true;
dev->dev_alive = true;
/* Set audio format */
stream_desc.mSampleRate = rate;
@@ -271,17 +269,17 @@ static void *coreaudio_init(const char *device,
stream_desc.mBytesPerFrame = 2 * sizeof(float);
stream_desc.mFramesPerPacket = 1;
stream_desc.mFormatID = kAudioFormatLinearPCM;
stream_desc.mFormatFlags = kAudioFormatFlagIsFloat |
kAudioFormatFlagIsPacked | (is_little_endian() ?
stream_desc.mFormatFlags = kAudioFormatFlagIsFloat |
kAudioFormatFlagIsPacked | (is_little_endian() ?
0 : kAudioFormatFlagIsBigEndian);
if (AudioUnitSetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, 0, &stream_desc, sizeof(stream_desc)) != noErr)
goto error;
/* Check returned audio format. */
i_size = sizeof(real_desc);
if (AudioUnitGetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
if (AudioUnitGetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, 0, &real_desc, &i_size) != noErr)
goto error;
@@ -317,11 +315,11 @@ static void *coreaudio_init(const char *device,
if (AudioUnitInitialize(dev->dev) != noErr)
goto error;
fifo_size = (latency * (*new_rate)) / 1000;
fifo_size *= 2 * sizeof(float);
dev->buffer_size = fifo_size;
fifo_size = (latency * (*new_rate)) / 1000;
fifo_size *= 2 * sizeof(float);
dev->buffer_size = fifo_size;
dev->buffer = fifo_new(fifo_size);
dev->buffer = fifo_new(fifo_size);
if (!dev->buffer)
goto error;
@@ -339,8 +337,7 @@ error:
return NULL;
}
static ssize_t coreaudio_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
{
coreaudio_t *dev = (coreaudio_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
+5 -13
View File
@@ -17,11 +17,10 @@
#include <string.h>
#include <malloc.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include "../audio_driver.h"
#include "../../performance_counters.h"
typedef struct
{
bool nonblocking;
@@ -50,7 +49,7 @@ typedef struct
static void ctr_csnd_audio_update_playpos(ctr_csnd_audio_t* ctr)
{
uint64_t current_tick = svcGetSystemTick();
uint32_t samples_played = (current_tick - ctr->cpu_ticks_last)
uint32_t samples_played = (current_tick - ctr->cpu_ticks_last)
/ CTR_CSND_CPU_TICKS_PER_SAMPLE;
ctr->playpos = (ctr->playpos + samples_played) & CTR_CSND_AUDIO_COUNT_MASK;
@@ -95,7 +94,7 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan,
if (loopMode == CSND_LOOPMODE_NORMAL && paddr1 > paddr0)
{
/* Now that the first block is playing,
/* Now that the first block is playing,
* configure the size of the subsequent blocks */
size -= paddr1 - paddr0;
CSND_SetBlock(chn, 1, paddr1, size);
@@ -163,13 +162,11 @@ static void ctr_csnd_audio_free(void *data)
free(ctr);
}
static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
{
int i;
uint32_t samples_played = 0;
uint64_t current_tick = 0;
static struct retro_perf_counter ctraudio_f = {0};
const uint16_t *src = buf;
ctr_csnd_audio_t *ctr = (ctr_csnd_audio_t*)data;
@@ -178,9 +175,6 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size,
(void)samples_played;
(void)current_tick;
performance_counter_init(ctraudio_f, "ctraudio_f");
performance_counter_start_plus(is_perfcnt_enable, ctraudio_f);
ctr_csnd_audio_update_playpos(ctr);
if((((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 2)) ||
@@ -211,13 +205,11 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size,
GSPGPU_FlushDataCache(ctr->l, CTR_CSND_AUDIO_SIZE);
GSPGPU_FlushDataCache(ctr->r, CTR_CSND_AUDIO_SIZE);
performance_counter_stop_plus(is_perfcnt_enable, ctraudio_f);
return size;
}
static bool ctr_csnd_audio_stop(void *data)
{
{
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
/* using SetPlayState would make tracking the playback
+1 -9
View File
@@ -18,7 +18,6 @@
#include <malloc.h>
#include "../audio_driver.h"
#include "../../performance_counters.h"
#include "../../ctr/ctr_debug.h"
typedef struct
@@ -93,11 +92,9 @@ static void ctr_dsp_audio_free(void *data)
ndspExit();
}
static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
{
u32 pos;
static struct retro_perf_counter ctraudio_dsp_f = {0};
ctr_dsp_audio_t * ctr = (ctr_dsp_audio_t*)data;
uint32_t sample_pos = ndspChnGetSamplePos(ctr->channel);
@@ -117,9 +114,6 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size,
}
}
performance_counter_init(ctraudio_dsp_f, "ctraudio_dsp_f");
performance_counter_start_plus(is_perfcnt_enable, ctraudio_dsp_f);
pos = ctr->pos << 2;
if((pos + size) > CTR_DSP_AUDIO_SIZE)
@@ -141,8 +135,6 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size,
ctr->pos += size >> 2;
ctr->pos &= CTR_DSP_AUDIO_COUNT_MASK;
performance_counter_stop_plus(is_perfcnt_enable, ctraudio_dsp_f);
return size;
}
+14 -10
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -31,6 +31,7 @@
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
@@ -92,7 +93,7 @@ static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
struct audio_lock *region)
{
const char *err = NULL;
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region->chunk1, &region->size1, &region->chunk2, &region->size2, 0);
if (res == DSERR_BUFFERLOST)
@@ -151,7 +152,7 @@ static void dsound_thread(void *data)
struct audio_lock region;
DWORD read_ptr, avail, fifo_avail;
get_positions(ds, &read_ptr, NULL);
avail = write_avail(read_ptr, write_ptr, ds->buffer_size);
EnterCriticalSection(&ds->crit);
@@ -160,12 +161,12 @@ static void dsound_thread(void *data)
if (avail < CHUNK_SIZE || ((fifo_avail < CHUNK_SIZE) && (avail < ds->buffer_size / 2)))
{
/* No space to write, or we don't have data in our fifo,
/* No space to write, or we don't have data in our fifo,
* but we can wait some time before it underruns ... */
/* We could opt for using the notification interface,
* but it is not guaranteed to work, so use high
* but it is not guaranteed to work, so use high
* priority sleeping patterns.
*/
retro_sleep(1);
@@ -181,7 +182,7 @@ static void dsound_thread(void *data)
if (fifo_avail < CHUNK_SIZE)
{
/* Got space to write, but nothing in FIFO (underrun),
/* Got space to write, but nothing in FIFO (underrun),
* fill block with silence. */
memset(region.chunk1, 0, region.size1);
@@ -190,7 +191,7 @@ static void dsound_thread(void *data)
release_region(ds, &region);
write_ptr = (write_ptr + region.size1 + region.size2) % ds->buffer_size;
}
else
else
{
/* All is good. Pull from it and notify FIFO. */
@@ -321,7 +322,11 @@ static void *dsound_init(const char *device, unsigned rate, unsigned latency,
RARCH_LOG("DirectSound devices:\n");
#ifndef _XBOX
DirectSoundEnumerate(enumerate_cb, &dev);
#ifdef UNICODE
DirectSoundEnumerate((LPDSENUMCALLBACKW)enumerate_cb, &dev);
#else
DirectSoundEnumerate((LPDSENUMCALLBACKA)enumerate_cb, &dev);
#endif
#endif
if (DirectSoundCreate(dev.guid, &ds->ds, NULL) != DS_OK)
@@ -426,8 +431,7 @@ static void dsound_set_nonblock_state(void *data, bool state)
ds->nonblock = state;
}
static ssize_t dsound_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t dsound_write(void *data, const void *buf_, size_t size)
{
size_t written = 0;
dsound_t *ds = (dsound_t*)data;
+4 -5
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -116,8 +116,7 @@ static INLINE void copy_swapped(uint32_t * restrict dst,
}while(--size);
}
static ssize_t gx_audio_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t gx_audio_write(void *data, const void *buf_, size_t size)
{
size_t frames = size >> 2;
const uint32_t *buf = buf_;
@@ -130,9 +129,9 @@ static ssize_t gx_audio_write(void *data, const void *buf_, size_t size,
if (frames < to_write)
to_write = frames;
/* FIXME: Nonblocking audio should break out of loop
/* FIXME: Nonblocking audio should break out of loop
* when it has nothing to write. */
while ((wa->dma_write == wa->dma_next ||
while ((wa->dma_write == wa->dma_next ||
wa->dma_write == wa->dma_busy) && !wa->nonblock)
OSSleepThread(wa->cond);
+16 -20
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -13,18 +13,16 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <jack/jack.h>
#include <jack/types.h>
#include <jack/ringbuffer.h>
#include <boolean.h>
#include <retro_assert.h>
#include <rthreads/rthreads.h>
#include "../audio_driver.h"
@@ -75,7 +73,6 @@ static int process_cb(jack_nframes_t nframes, void *data)
jack_nframes_t f;
jack_default_audio_sample_t *out = (jack_default_audio_sample_t*)jack_port_get_buffer(jd->ports[i], nframes);
retro_assert(out);
jack_ringbuffer_read(jd->buffer[i], (char*)out, min_avail * sizeof(jack_default_audio_sample_t));
for (f = min_avail; f < nframes; f++)
@@ -106,7 +103,7 @@ static int parse_ports(char **dest_ports, const char **jports)
char *save = NULL;
int parsed = 0;
settings_t *settings = config_get_ptr();
char *audio_device_cpy = strdup(settings->audio.device);
char *audio_device_cpy = strdup(settings->arrays.audio_device);
const char *con = strtok_r(audio_device_cpy, ",", &save);
if (con)
@@ -136,12 +133,12 @@ static size_t find_buffersize(jack_t *jd, int latency, unsigned out_rate)
jack_latency = range.max;
}
RARCH_LOG("JACK: Jack latency is %d frames.\n", jack_latency);
RARCH_LOG("[JACK]: Jack latency is %d frames.\n", jack_latency);
buffer_frames = frames - jack_latency;
buffer_frames = frames - jack_latency;
min_buffer_frames = jack_get_buffer_size(jd->client) * 2;
RARCH_LOG("JACK: Minimum buffer size is %d frames.\n", min_buffer_frames);
RARCH_LOG("[JACK]: Minimum buffer size is %d frames.\n", min_buffer_frames);
if (buffer_frames < min_buffer_frames)
buffer_frames = min_buffer_frames;
@@ -181,27 +178,27 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
jd->ports[1] = jack_port_register(jd->client, "right", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
if (jd->ports[0] == NULL || jd->ports[1] == NULL)
{
RARCH_ERR("Failed to register ports.\n");
RARCH_ERR("[JACK]: Failed to register ports.\n");
goto error;
}
jports = jack_get_ports(jd->client, NULL, NULL, JackPortIsPhysical | JackPortIsInput);
if (jports == NULL)
{
RARCH_ERR("Failed to get ports.\n");
RARCH_ERR("[JACK]: Failed to get ports.\n");
goto error;
}
bufsize = find_buffersize(jd, latency, *new_rate);
bufsize = find_buffersize(jd, latency, *new_rate);
jd->buffer_size = bufsize;
RARCH_LOG("JACK: Internal buffer size: %d frames.\n", (int)(bufsize / sizeof(jack_default_audio_sample_t)));
RARCH_LOG("[JACK]: Internal buffer size: %d frames.\n", (int)(bufsize / sizeof(jack_default_audio_sample_t)));
for (i = 0; i < 2; i++)
{
jd->buffer[i] = jack_ringbuffer_create(bufsize);
if (jd->buffer[i] == NULL)
{
RARCH_ERR("Failed to create buffers.\n");
RARCH_ERR("[JACK]: Failed to create buffers.\n");
goto error;
}
}
@@ -210,7 +207,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
if (jack_activate(jd->client) < 0)
{
RARCH_ERR("Failed to activate Jack...\n");
RARCH_ERR("[JACK]: Failed to activate Jack...\n");
goto error;
}
@@ -218,14 +215,14 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
{
if (jack_connect(jd->client, jack_port_name(jd->ports[i]), dest_ports[i]))
{
RARCH_ERR("Failed to connect to Jack port.\n");
RARCH_ERR("[JACK]: Failed to connect to Jack port.\n");
goto error;
}
}
for (i = 0; i < parsed; i++)
free(dest_ports[i]);
jack_free(jports);
return jd;
@@ -292,8 +289,7 @@ static size_t write_buffer(jack_t *jd, const float *buf, size_t size)
return written * sizeof(float) * 2;
}
static ssize_t ja_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ja_write(void *data, const void *buf, size_t size)
{
jack_t *jd = (jack_t*)data;
+2 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -35,8 +35,7 @@ static void null_audio_free(void *data)
(void)data;
}
static ssize_t null_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t null_audio_write(void *data, const void *buf, size_t size)
{
(void)data;
(void)buf;
+3 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -31,6 +31,7 @@
#endif
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
@@ -173,8 +174,7 @@ static size_t al_fill_internal_buf(al_t *al, const void *buf, size_t size)
return read_size;
}
static ssize_t al_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t al_write(void *data, const void *buf_, size_t size)
{
al_t *al = (al_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
+6 -7
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -116,7 +116,7 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency,
if (!sl)
goto error;
RARCH_LOG("[SLES]: Requested audio latency: %u ms.", latency);
RARCH_LOG("[OpenSL]: Requested audio latency: %u ms.", latency);
GOTO_IF_FAIL(slCreateEngine(&sl->engine_object, 0, NULL, 0, NULL, NULL));
GOTO_IF_FAIL(SLObjectItf_Realize(sl->engine_object, SL_BOOLEAN_FALSE));
@@ -144,7 +144,7 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency,
for (i = 0; i < sl->buf_count; i++)
sl->buffer[i] = sl->buffer_chunk + i * sl->buf_size;
RARCH_LOG("[SLES]: Setting audio latency: Block size = %u, Blocks = %u, Total = %u ...\n",
RARCH_LOG("[OpenSL]: Setting audio latency: Block size = %u, Blocks = %u, Total = %u ...\n",
sl->buf_size, sl->buf_count, sl->buf_size * sl->buf_count);
fmt_pcm.formatType = SL_DATAFORMAT_PCM;
@@ -192,7 +192,7 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency,
return sl;
error:
RARCH_ERR("Couldn't initialize OpenSL ES driver, error code: [%d].\n", (int)res);
RARCH_ERR("[OpenSL]: Couldn't initialize OpenSL ES driver, error code: [%d].\n", (int)res);
sl_free(sl);
return NULL;
}
@@ -200,7 +200,7 @@ error:
static bool sl_stop(void *data)
{
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
== SL_RESULT_SUCCESS) ? true : false;
return sl->is_paused ? true : false;
@@ -230,8 +230,7 @@ static bool sl_start(void *data, bool is_shutdown)
}
static ssize_t sl_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t sl_write(void *data, const void *buf_, size_t size)
{
sl_t *sl = (sl_t*)data;
size_t written = 0;
+11 -8
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -51,7 +51,7 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency,
int frags, frag, channels, format, new_rate;
int *fd = (int*)calloc(1, sizeof(int));
const char *oss_device = device ? device : DEFAULT_OSS_DEV;
if (!fd)
return NULL;
@@ -97,8 +97,7 @@ error:
return NULL;
}
static ssize_t oss_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t oss_write(void *data, const void *buf, size_t size)
{
ssize_t ret;
int *fd = (int*)data;
@@ -121,7 +120,9 @@ static bool oss_stop(void *data)
{
int *fd = (int*)data;
ioctl(*fd, SNDCTL_DSP_RESET, 0);
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
return false;
oss_is_paused = true;
return true;
}
@@ -156,7 +157,9 @@ static void oss_free(void *data)
{
int *fd = (int*)data;
ioctl(*fd, SNDCTL_DSP_RESET, 0);
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
return;
close(*fd);
free(fd);
}
@@ -168,7 +171,7 @@ static size_t oss_write_avail(void *data)
if (ioctl(*fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
{
RARCH_ERR("SNDCTL_DSP_GETOSPACE failed ...\n");
RARCH_ERR("[OSS]: SNDCTL_DSP_GETOSPACE failed ...\n");
return 0;
}
@@ -182,7 +185,7 @@ static size_t oss_buffer_size(void *data)
if (ioctl(*fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
{
RARCH_ERR("SNDCTL_DSP_GETOSPACE failed ...\n");
RARCH_ERR("[OSS]: SNDCTL_DSP_GETOSPACE failed ...\n");
return 1; /* Return something non-zero to avoid SIGFPE. */
}
+4 -5
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -110,11 +110,11 @@ static void *ps3_audio_init(const char *device,
return NULL;
}
data->buffer = fifo_new(CELL_AUDIO_BLOCK_SAMPLES *
data->buffer = fifo_new(CELL_AUDIO_BLOCK_SAMPLES *
AUDIO_CHANNELS * AUDIO_BLOCKS * sizeof(float));
#ifdef __PSL1GHT__
sys_lwmutex_attr_t lock_attr =
sys_lwmutex_attr_t lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
sys_lwmutex_attr_t cond_lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
@@ -146,8 +146,7 @@ static void *ps3_audio_init(const char *device,
return data;
}
static ssize_t ps3_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
{
ps3_audio_t *aud = data;
+49 -41
View File
@@ -50,6 +50,9 @@ typedef struct psp_audio
char lock[32] __attribute__ ((aligned (8)));
char cond_lock[32] __attribute__ ((aligned (8)));
char cond[32] __attribute__ ((aligned (8)));
#else
SceUID lock;
SceUID cond;
#endif
} psp_audio_t;
@@ -83,15 +86,13 @@ static int audioMainLoop(SceSize args, void* argp)
#ifdef VITA
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
#else
sceKernelWaitSema(psp->lock, 1, 0);
#endif
cond = ((uint16_t)(psp->write_pos - read_pos) & AUDIO_BUFFER_SIZE_MASK)
< (AUDIO_OUT_COUNT * 2);
#ifndef VITA
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos));
#endif
if (!cond)
{
read_pos += AUDIO_OUT_COUNT;
@@ -106,6 +107,13 @@ static int audioMainLoop(SceSize args, void* argp)
sceAudioOutOutput(port,
cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos_2));
#else
sceKernelSignalSema(psp->lock, 1);
if(!cond){
sceKernelSignalSema(psp->cond, 1);
}
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos));
#endif
}
@@ -151,6 +159,8 @@ static void *psp_audio_init(const char *device,
psp->thread = sceKernelCreateThread
("audioMainLoop", audioMainLoop, 0x10000100, 0x10000, 0, 0, NULL);
#else
psp->cond=sceKernelCreateSema("audio_start_sema", 0, 0, 1, NULL);
psp->lock=sceKernelCreateSema("audio_lock_sema", 0, 1, 1, NULL);
psp->thread = sceKernelCreateThread
("audioMainLoop", audioMainLoop, 0x08, 0x10000, 0, NULL);
#endif
@@ -177,6 +187,8 @@ static void psp_audio_free(void *data)
sceKernelDeleteLwCond((struct SceKernelLwCondWork*)&psp->cond);
#else
sceKernelWaitThreadEnd(psp->thread, &timeout);
sceKernelDeleteSema(psp->lock);
sceKernelDeleteSema(psp->cond);
#endif
free(psp->buffer);
sceKernelDeleteThread(psp->thread);
@@ -184,27 +196,33 @@ static void psp_audio_free(void *data)
free(psp);
}
static ssize_t psp_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
{
psp_audio_t* psp = (psp_audio_t*)data;
uint16_t write_pos = psp->write_pos;
uint16_t sampleCount = size / sizeof(uint32_t);
#ifdef VITA
if (psp->nonblocking)
{
//#ifdef VITA
if (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
return 0;
return 0;
//#endif
}
#ifdef VITA
while (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size){
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
sceKernelWaitLwCond((struct SceKernelLwCondWork*)&psp->cond, 0);
}
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
#else
while (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
sceKernelWaitSema(psp->cond, 1, 0);
sceKernelWaitSema(psp->lock, 1, 0);
#endif
if((write_pos + sampleCount) > AUDIO_BUFFER_SIZE)
{
@@ -220,36 +238,15 @@ static ssize_t psp_audio_write(void *data, const void *buf, size_t size,
write_pos += sampleCount;
write_pos &= AUDIO_BUFFER_SIZE_MASK;
psp->write_pos = write_pos;
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
return size;
#else
sceKernelSignalSema(psp->lock, 1);
#if 0
if (psp->nonblocking)
{
/* TODO */
}
#endif
if((write_pos + sampleCount) > AUDIO_BUFFER_SIZE)
{
memcpy(psp->buffer + write_pos, buf,
(AUDIO_BUFFER_SIZE - write_pos) * sizeof(uint32_t));
memcpy(psp->buffer, (uint32_t*) buf +
(AUDIO_BUFFER_SIZE - write_pos),
(write_pos + sampleCount - AUDIO_BUFFER_SIZE) * sizeof(uint32_t));
}
else
memcpy(psp->buffer + write_pos, buf, size);
write_pos += sampleCount;
write_pos &= AUDIO_BUFFER_SIZE_MASK;
psp->write_pos = write_pos;
return sampleCount;
return size;
#endif
}
@@ -268,6 +265,9 @@ static bool psp_audio_stop(void *data)
SceUInt timeout = 100000;
psp_audio_t* psp = (psp_audio_t*)data;
if(psp && !psp->running)
return true;
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(
@@ -291,6 +291,9 @@ static bool psp_audio_start(void *data, bool is_shutdown)
SceKernelThreadInfo info;
psp_audio_t* psp = (psp_audio_t*)data;
if(psp && psp->running)
return true;
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(
@@ -322,20 +325,25 @@ static bool psp_audio_use_float(void *data)
static size_t psp_write_avail(void *data)
{
psp_audio_t* psp = (psp_audio_t*)data;
#ifdef VITA
size_t val;
psp_audio_t* psp = (psp_audio_t*)data;
#ifdef VITA
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
#else
sceKernelWaitSema(psp->lock, 1, 0);
#endif
val = AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK);
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
return val;
#else
/* TODO */
return AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK);
sceKernelSignalSema(psp->lock, 1);
#endif
return val;
}
static size_t psp_buffer_size(void *data)
+7 -8
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -88,7 +88,7 @@ static void context_state_cb(pa_context *c, void *data)
}
}
static void stream_state_cb(pa_stream *s, void *data)
static void stream_state_cb(pa_stream *s, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -104,7 +104,7 @@ static void stream_state_cb(pa_stream *s, void *data)
}
}
static void stream_request_cb(pa_stream *s, size_t length, void *data)
static void stream_request_cb(pa_stream *s, size_t length, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -114,7 +114,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *data)
pa_threaded_mainloop_signal(pa->mainloop, 0);
}
static void stream_latency_update_cb(pa_stream *s, void *data)
static void stream_latency_update_cb(pa_stream *s, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -149,7 +149,7 @@ static void buffer_attr_cb(pa_stream *s, void *data)
}
static void *pulse_init(const char *device, unsigned rate,
unsigned latency,
unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
@@ -232,12 +232,11 @@ static void *pulse_init(const char *device, unsigned rate,
unlock_error:
pa_threaded_mainloop_unlock(pa->mainloop);
error:
pulse_free(pa);
pulse_free(pa);
return NULL;
}
static ssize_t pulse_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
static ssize_t pulse_write(void *data, const void *buf_, size_t size)
{
pa_t *pa = (pa_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
+2 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -58,8 +58,7 @@ static void *ra_init(const char *device, unsigned rate, unsigned latency,
return roar;
}
static ssize_t ra_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ra_write(void *data, const void *buf, size_t size)
{
int err;
size_t written = 0;
+2 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -102,8 +102,7 @@ error:
return NULL;
}
static ssize_t rs_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t rs_write(void *data, const void *buf, size_t size)
{
rsd_t *rsd = (rsd_t*)data;
+36 -36
View File
@@ -1,6 +1,6 @@
/* RSound - A PCM audio client/server
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
*
*
* RSound is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -43,7 +43,7 @@ RETRO_BEGIN_DECLS
#endif
/* Feature tests */
#define RSD_SAMPLERATE RSD_SAMPLERATE
#define RSD_SAMPLERATE RSD_SAMPLERATE
#define RSD_CHANNELS RSD_CHANNELS
#define RSD_HOST RSD_HOST
#define RSD_PORT RSD_PORT
@@ -125,7 +125,7 @@ enum rsd_settings
/* Audio callback for rsd_set_callback. Return -1 to trigger an error in the stream. */
typedef ssize_t (*rsd_audio_callback_t)(void *data, size_t bytes, void *userdata);
/* Error callback. Signals caller that stream has been stopped,
/* Error callback. Signals caller that stream has been stopped,
* either by audio callback returning -1 or stream was hung up. */
typedef void (*rsd_error_callback_t)(void *userdata);
@@ -144,7 +144,7 @@ typedef struct rsound
int conn_type;
volatile int buffer_pointer; /* Obsolete, but kept for backwards header compatibility. */
size_t buffer_size;
size_t buffer_size;
fifo_buffer_t *fifo_buffer;
volatile int thread_active;
@@ -196,13 +196,13 @@ typedef struct rsound
rsd_set_param(rd, RSD_HOST, "foohost");
*sets more params*
rsd_start(rd);
rsd_write(rd, buf, size);
rsd_write(rd, buf, size);
rsd_stop(rd);
rsd_free(rd);
*/
int rsd_init (rsound_t **rd);
/* This is a simpler function that initializes an rsound struct, sets params as given,
/* This is a simpler function that initializes an rsound struct, sets params as given,
and starts the stream. Should this function fail, the structure will stay uninitialized.
Should NULL be passed in either host, port or ident, defaults will be used. */
@@ -211,29 +211,29 @@ int rsd_simple_start (rsound_t **rd, const char* host, const char* port, const c
/* Sets params associated with an rsound_t. These options (int options) include:
RSD_HOST: Server to connect to. Expects (char *) in param.
If not set, will default to environmental variable RSD_SERVER or "localhost".
RSD_HOST: Server to connect to. Expects (char *) in param.
If not set, will default to environmental variable RSD_SERVER or "localhost".
RSD_PORT: Set port. Expects (char *) in param.
RSD_PORT: Set port. Expects (char *) in param.
If not set, will default to environmental variable RSD_PORT or "12345".
RSD_CHANNELS: Set number of audio channels. Expects (int *) in param. Mandatory.
RSD_SAMPLERATE: Set samplerate of audio stream. Expects (int *) in param. Mandatory.
RSD_BUFSIZE: Sets internal buffersize for the stream.
Might be overridden if too small.
RSD_BUFSIZE: Sets internal buffersize for the stream.
Might be overridden if too small.
Expects (int *) in param. Optional.
RSD_LATENCY: Sets maximum audio latency in milliseconds,
(must be used with rsd_delay_wait() or this will have no effect).
Most applications do not need this.
Might be overridden if too small.
RSD_LATENCY: Sets maximum audio latency in milliseconds,
(must be used with rsd_delay_wait() or this will have no effect).
Most applications do not need this.
Might be overridden if too small.
Expects (int *) in param. Optional.
RSD_FORMAT: Sets sample format.
It defaults to S16_LE, so you probably will not use this.
Expects (int *) in param, with available values found in the format enum.
RSD_FORMAT: Sets sample format.
It defaults to S16_LE, so you probably will not use this.
Expects (int *) in param, with available values found in the format enum.
If invalid format is given, param might be changed to reflect the sample format the library will use.
RSD_IDENTITY: Sets an identity string associated with the client.
@@ -244,14 +244,14 @@ Will be truncated if longer than 256 bytes.
int rsd_set_param (rsound_t *rd, enum rsd_settings option, void* param);
/* Enables use of the callback interface. This must be set when stream is not active.
When callback is active, use of the blocking interface is disabled.
Only valid functions to call after rsd_start() is stopping the stream with either rsd_pause() or rsd_stop(). Calling any other function is undefined.
The callback is called at regular intervals and is asynchronous, so thread safety must be ensured by the caller.
If not enough data can be given to the callback, librsound will fill the rest of the callback data with silence.
/* Enables use of the callback interface. This must be set when stream is not active.
When callback is active, use of the blocking interface is disabled.
Only valid functions to call after rsd_start() is stopping the stream with either rsd_pause() or rsd_stop(). Calling any other function is undefined.
The callback is called at regular intervals and is asynchronous, so thread safety must be ensured by the caller.
If not enough data can be given to the callback, librsound will fill the rest of the callback data with silence.
librsound will attempt to obey latency information given with RSD_LATENCY as given before calling rsd_start().
max_size signifies the maximum size that will ever be requested by librsound. Set this to 0 to let librsound decide the maximum size.
Should an error occur to the stream, err_callback will be called, and the stream will be stopped. The stream can be started again.
Should an error occur to the stream, err_callback will be called, and the stream will be stopped. The stream can be started again.
Callbacks can be disabled by setting callbacks to NULL. */
@@ -260,37 +260,37 @@ void rsd_set_callback (rsound_t *rd, rsd_audio_callback_t callback, rsd_error_ca
/* Lock and unlock the callback. When the callback lock is aquired, the callback is guaranteed to not be executing.
The lock has to be unlocked afterwards.
Attemping to call several rsd_callback_lock() in succession might cause a deadlock.
The lock should be held for as short period as possible.
The lock should be held for as short period as possible.
Try to avoid calling code that may block when holding the lock. */
void rsd_callback_lock (rsound_t *rd);
void rsd_callback_unlock (rsound_t *rd);
/* Establishes connection to server. Might fail if connection can't be established or that one of
/* Establishes connection to server. Might fail if connection can't be established or that one of
the mandatory options isn't set in rsd_set_param(). This needs to be called after params have been set
with rsd_set_param(), and before rsd_write(). */
with rsd_set_param(), and before rsd_write(). */
int rsd_start (rsound_t *rd);
/* Shuts down the rsound data structures, but returns the file descriptor associated with the connection.
The control socket will be shut down. If this function returns a negative number, the exec failed,
but the data structures will not be teared down.
The control socket will be shut down. If this function returns a negative number, the exec failed,
but the data structures will not be teared down.
Should a valid file descriptor be returned, it will always be blocking.
This call will block until all internal buffers have been sent to the network. */
int rsd_exec (rsound_t *rd);
/* Disconnects from server. All audio data still in network buffer and other buffers will be dropped.
/* Disconnects from server. All audio data still in network buffer and other buffers will be dropped.
To continue playing, you will need to rsd_start() again. */
int rsd_stop (rsound_t *rd);
/* Writes from buf to the internal buffer. Might fail if no connection is established,
/* Writes from buf to the internal buffer. Might fail if no connection is established,
or there was an unexpected error. This function will block until all data has
been written to the buffer. This function will return the number of bytes written to the buffer,
or 0 should it fail (disconnection from server). You will have to restart the stream again should this occur. */
size_t rsd_write (rsound_t *rd, const void* buf, size_t size);
/* Gets the position of the buffer pointer.
Not really interesting for normal applications.
Might be useful for implementing rsound on top of other blocking APIs.
/* Gets the position of the buffer pointer.
Not really interesting for normal applications.
Might be useful for implementing rsound on top of other blocking APIs.
*NOTE* This function is deprecated, it should not be used in new applications. */
size_t rsd_pointer (rsound_t *rd);
@@ -306,12 +306,12 @@ size_t rsd_delay_ms (rsound_t *rd);
/* Returns bytes per sample */
int rsd_samplesize(rsound_t *rd);
/* Will sleep until latency of stream reaches maximum allowed latency defined earlier by rsd_set_param - RSD_LATENCY
/* Will sleep until latency of stream reaches maximum allowed latency defined earlier by rsd_set_param - RSD_LATENCY
Useful for hard headed blocking I/O design where user defined latency is needed. If rsd_set_param hasn't been set
with RSD_LATENCY, this function will do nothing. */
void rsd_delay_wait(rsound_t *rd);
/* Pauses or unpauses a stream. pause -> enable = 1
/* Pauses or unpauses a stream. pause -> enable = 1
This function essentially calls on start() and stop(). This behavior might be changed later. */
int rsd_pause (rsound_t *rd, int enable);
+2 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -51,8 +51,7 @@ static void *rwebaudio_init(const char *device, unsigned rate, unsigned latency,
return data;
}
static ssize_t rwebaudio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t rwebaudio_write(void *data, const void *buf, size_t size)
{
(void)data;
return RWebAudioWrite(buf, size);
+13 -10
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -26,6 +26,7 @@
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
#include <retro_inline.h>
#include <retro_math.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
@@ -92,11 +93,11 @@ static void *sdl_audio_init(const char *device,
if (!sdl)
return NULL;
/* We have to buffer up some data ourselves, so we let SDL
/* We have to buffer up some data ourselves, so we let SDL
* carry approximately half of the latency.
*
* SDL double buffers audio and we do as well. */
frames = find_num_frames(rate, latency / 4);
frames = find_num_frames(rate, latency / 4);
spec.freq = rate;
spec.format = AUDIO_S16SYS;
@@ -107,9 +108,8 @@ static void *sdl_audio_init(const char *device,
if (SDL_OpenAudio(&spec, &out) < 0)
{
RARCH_ERR("Failed to open SDL audio: %s\n", SDL_GetError());
free(sdl);
return 0;
RARCH_ERR("[SDL audio]: Failed to open SDL audio: %s\n", SDL_GetError());
goto error;
}
*new_rate = out.freq;
@@ -119,7 +119,7 @@ static void *sdl_audio_init(const char *device,
sdl->cond = scond_new();
#endif
RARCH_LOG("SDL audio: Requested %u ms latency, got %d ms\n",
RARCH_LOG("[SDL audio]: Requested %u ms latency, got %d ms\n",
latency, (int)(out.samples * 4 * 1000 / (*new_rate)));
/* Create a buffer twice as big as needed and prefill the buffer. */
@@ -135,12 +135,15 @@ static void *sdl_audio_init(const char *device,
SDL_PauseAudio(0);
return sdl;
error:
free(sdl);
return NULL;
}
static ssize_t sdl_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t sdl_audio_write(void *data, const void *buf, size_t size)
{
ssize_t ret = 0;
ssize_t ret = 0;
sdl_audio_t *sdl = (sdl_audio_t*)data;
if (sdl->nonblock)
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+7 -17
View File
@@ -25,7 +25,6 @@
#include "wiiu/system/memory.h"
#include "audio/audio_driver.h"
#include "performance_counters.h"
typedef struct
{
@@ -192,23 +191,17 @@ static bool ax_audio_start(void* data, bool is_shutdown)
return true;
}
static ssize_t ax_audio_write(void* data, const void* buf, size_t size,
bool is_perfcnt_enable)
static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
{
int i;
static struct retro_perf_counter ax_audio_write_perf = {0};
uint32_t i;
size_t countAvail = 0;
ax_audio_t* ax = (ax_audio_t*)data;
const uint16_t* src = buf;
int count = size >> 2;
size_t count = size >> 2;
if(!size || (size & 0x3))
return 0;
/* Measure copy performance from here */
performance_counter_init(ax_audio_write_perf, "ax_audio_write");
performance_counter_start_plus(is_perfcnt_enable, ax_audio_write_perf);
if(count > AX_AUDIO_MAX_FREE)
count = AX_AUDIO_MAX_FREE;
@@ -286,9 +279,6 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size,
if(!AXIsMultiVoiceRunning(ax->mvoice))
ax_audio_start(ax, false);
/* Done copying new data */
performance_counter_stop_plus(is_perfcnt_enable, ax_audio_write_perf);
/* return what was actually copied */
return (count << 2);
}
@@ -340,8 +330,8 @@ audio_driver_t audio_ax =
ax_audio_free,
ax_audio_use_float,
"AX",
NULL,
NULL,
/* ax_audio_write_avail, */
/* ax_audio_buffer_size */
NULL, /* device_list_new */
NULL, /* device_list_free */
NULL, /* write_avail */
NULL, /* buffer_size */
};
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -45,6 +45,12 @@ typedef struct xaudio2 xaudio2_t;
#define MAX_BUFFERS_MASK (MAX_BUFFERS - 1)
#ifndef COINIT_MULTITHREADED
#define COINIT_MULTITHREADED 0x00
#endif
#define XAUDIO2_WRITE_AVAILABLE(handle) ((handle)->bufsize * (MAX_BUFFERS - (handle)->buffers - 1))
typedef struct
{
xaudio2_t *xa;
@@ -53,8 +59,13 @@ typedef struct
size_t bufsize;
} xa_t;
#ifdef __cplusplus
struct xaudio2 : public IXAudio2VoiceCallback
#else
struct xaudio2
#endif
{
#ifdef __cplusplus
xaudio2() :
buf(0), pXAudio2(0), pMasterVoice(0),
pSourceVoice(0), hEvent(0), buffers(0), bufsize(0),
@@ -64,7 +75,7 @@ struct xaudio2 : public IXAudio2VoiceCallback
virtual ~xaudio2() {}
STDMETHOD_(void, OnBufferStart) (void *) {}
STDMETHOD_(void, OnBufferEnd) (void *)
STDMETHOD_(void, OnBufferEnd) (void *)
{
InterlockedDecrement((LONG volatile*)&buffers);
SetEvent(hEvent);
@@ -74,6 +85,9 @@ struct xaudio2 : public IXAudio2VoiceCallback
STDMETHOD_(void, OnVoiceError) (void *, HRESULT) {}
STDMETHOD_(void, OnVoiceProcessingPassEnd) () {}
STDMETHOD_(void, OnVoiceProcessingPassStart) (UINT32) {}
#else
const IXAudio2VoiceCallbackVtbl *lpVtbl;
#endif
uint8_t *buf;
IXAudio2 *pXAudio2;
@@ -87,6 +101,31 @@ struct xaudio2 : public IXAudio2VoiceCallback
unsigned write_buffer;
};
#ifndef __cplusplus
static void WINAPI voice_on_buffer_end(void *handle_, void *data)
{
xaudio2_t *handle = (xaudio2_t*)handle_;
(void)data;
InterlockedDecrement((LONG volatile*)&handle->buffers);
SetEvent(handle->hEvent);
}
static void WINAPI dummy_voidp(void *handle, void *data) { (void)handle; (void)data; }
static void WINAPI dummy_nil(void *handle) { (void)handle; }
static void WINAPI dummy_uint32(void *handle, UINT32 dummy) { (void)handle; (void)dummy; }
static void WINAPI dummy_voidp_hresult(void *handle, void *data, HRESULT dummy) { (void)handle; (void)data; (void)dummy; }
const struct IXAudio2VoiceCallbackVtbl voice_vtable = {
dummy_uint32,
dummy_nil,
dummy_nil,
dummy_voidp,
voice_on_buffer_end,
dummy_voidp,
dummy_voidp_hresult,
};
#endif
#if 0
static void xaudio2_enumerate_devices(xaudio2_t *xa)
{
@@ -97,13 +136,13 @@ static void xaudio2_enumerate_devices(xaudio2_t *xa)
(void)i;
(void)dev_count;
#ifndef _XBOX
xa->pXAudio2->GetDeviceCount(&dev_count);
IXAudio2_GetDeviceCount(xa->pXAudio2, &dev_count);
fprintf(stderr, "XAudio2 devices:\n");
for (i = 0; i < dev_count; i++)
{
XAUDIO2_DEVICE_DETAILS dev_detail;
xa->pXAudio2->GetDeviceDetails(i, &dev_detail);
IXAudio2_GetDeviceDetails(xa->pXAudio2, i, &dev_detail);
fwprintf(stderr, L"\t%u: %s\n", i, dev_detail.DisplayName);
}
#endif
@@ -130,51 +169,68 @@ static void xaudio2_free(xaudio2_t *handle)
if (handle->pSourceVoice)
{
handle->pSourceVoice->Stop(0, XAUDIO2_COMMIT_NOW);
handle->pSourceVoice->DestroyVoice();
IXAudio2SourceVoice_Stop(handle->pSourceVoice,
0, XAUDIO2_COMMIT_NOW);
IXAudio2SourceVoice_DestroyVoice(handle->pSourceVoice);
}
if (handle->pMasterVoice)
handle->pMasterVoice->DestroyVoice();
{
IXAudio2MasteringVoice_DestroyVoice(handle->pMasterVoice);
}
if (handle->pXAudio2)
handle->pXAudio2->Release();
{
IXAudio2_Release(handle->pXAudio2);
}
if (handle->hEvent)
CloseHandle(handle->hEvent);
free(handle->buf);
delete handle;
}
#ifndef COINIT_MULTITHREADED
#define COINIT_MULTITHREADED 0x00
#ifdef __cplusplus
delete handle;
#else
free(handle);
#endif
}
static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
size_t size, unsigned device)
{
xaudio2_t *handle;
WAVEFORMATEX wfx = {0};
xaudio2_t *handle = NULL;
WAVEFORMATEX wfx = {0};
#ifndef _XBOX
CoInitializeEx(0, COINIT_MULTITHREADED);
#endif
#ifdef __cplusplus
handle = new xaudio2;
#else
handle = (xaudio2_t*)calloc(1, sizeof(*handle));
#endif
if (!handle)
goto error;
#ifndef __cplusplus
handle->lpVtbl = &voice_vtable;
#endif
if (FAILED(XAudio2Create(&handle->pXAudio2, 0, XAUDIO2_DEFAULT_PROCESSOR)))
goto error;
if (FAILED(handle->pXAudio2->CreateMasteringVoice(&handle->pMasterVoice,
channels, samplerate, 0, device, NULL)))
if (FAILED(IXAudio2_CreateMasteringVoice(handle->pXAudio2, &handle->pMasterVoice, channels, samplerate, 0, device, NULL)))
goto error;
xaudio2_set_wavefmt(&wfx, channels, samplerate);
if (FAILED(handle->pXAudio2->CreateSourceVoice(&handle->pSourceVoice, &wfx,
if (FAILED(IXAudio2_CreateSourceVoice(handle->pXAudio2,
&handle->pSourceVoice, &wfx,
XAUDIO2_VOICE_NOSRC, XAUDIO2_DEFAULT_FREQ_RATIO,
handle)))
(IXAudio2VoiceCallback*)handle, 0, 0)))
goto error;
handle->hEvent = CreateEvent(0, FALSE, FALSE, 0);
@@ -186,7 +242,8 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
if (!handle->buf)
goto error;
if (FAILED(handle->pSourceVoice->Start(0)))
if (FAILED(IXAudio2SourceVoice_Start(handle->pSourceVoice, 0,
XAUDIO2_COMMIT_NOW)))
goto error;
return handle;
@@ -196,22 +253,16 @@ error:
return NULL;
}
static size_t xaudio2_write_avail(xaudio2_t *handle)
static size_t xaudio2_write(xaudio2_t *handle, const uint8_t *buffer, size_t bytes_)
{
return handle->bufsize * (MAX_BUFFERS - handle->buffers - 1);
}
static size_t xaudio2_write(xaudio2_t *handle, const void *buf, size_t bytes_,
bool is_perfcnt_enable)
{
unsigned bytes = bytes_;
const uint8_t *buffer = (const uint8_t*)buf;
unsigned bytes = bytes_;
while (bytes)
{
unsigned need = MIN(bytes, handle->bufsize - handle->bufptr);
memcpy(handle->buf + handle->write_buffer * handle->bufsize + handle->bufptr,
memcpy(handle->buf + handle->write_buffer *
handle->bufsize + handle->bufptr,
buffer, need);
handle->bufptr += need;
@@ -220,15 +271,23 @@ static size_t xaudio2_write(xaudio2_t *handle, const void *buf, size_t bytes_,
if (handle->bufptr == handle->bufsize)
{
XAUDIO2_BUFFER xa2buffer = {0};
XAUDIO2_BUFFER xa2buffer;
while (handle->buffers == MAX_BUFFERS - 1)
WaitForSingleObject(handle->hEvent, INFINITE);
xa2buffer.Flags = 0;
xa2buffer.AudioBytes = handle->bufsize;
xa2buffer.pAudioData = handle->buf + handle->write_buffer * handle->bufsize;
xa2buffer.PlayBegin = 0;
xa2buffer.PlayLength = 0;
xa2buffer.LoopBegin = 0;
xa2buffer.LoopLength = 0;
xa2buffer.LoopCount = 0;
xa2buffer.pContext = NULL;
if (FAILED(handle->pSourceVoice->SubmitSourceBuffer(&xa2buffer, NULL)))
if (FAILED(IXAudio2SourceVoice_SubmitSourceBuffer(
handle->pSourceVoice, &xa2buffer, NULL)))
return 0;
InterlockedIncrement((LONG volatile*)&handle->buffers);
@@ -274,15 +333,14 @@ static void *xa_init(const char *device, unsigned rate, unsigned latency,
return xa;
}
static ssize_t xa_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t xa_write(void *data, const void *buf, size_t size)
{
size_t ret;
xa_t *xa = (xa_t*)data;
if (xa->nonblock)
{
size_t avail = xaudio2_write_avail(xa->xa);
size_t avail = XAUDIO2_WRITE_AVAILABLE(xa->xa);
if (avail == 0)
return 0;
@@ -290,7 +348,7 @@ static ssize_t xa_write(void *data, const void *buf, size_t size,
size = avail;
}
ret = xaudio2_write(xa->xa, buf, size, is_perfcnt_enable);
ret = xaudio2_write(xa->xa, (const uint8_t*)buf, size);
if (ret == 0 && size > 0)
return -1;
return ret;
@@ -346,7 +404,7 @@ static void xa_free(void *data)
static size_t xa_write_avail(void *data)
{
xa_t *xa = (xa_t*)data;
return xaudio2_write_avail(xa->xa);
return XAUDIO2_WRITE_AVAILABLE(xa->xa);
}
static size_t xa_buffer_size(void *data)
+81 -15
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2010-2014 - OV2
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -15,20 +15,29 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
// Kinda stripped down. Only contains the bare essentials used in RetroArch.
/* Kinda stripped down. Only contains the bare essentials used in RetroArch. */
#ifndef XAUDIO2_STRIPPED_H
#define XAUDIO2_STRIPPED_H
#include <retro_inline.h>
#include <retro_environment.h>
// All structures defined in this file use tight field packing
/* All structures defined in this file use tight field packing */
#pragma pack(push, 1)
#ifdef __cplusplus
#define X2DEFAULT(x) = (x)
#else
#define X2DEFAULT(x)
#endif
#ifdef _XBOX
#include <xtl.h>
#ifndef __cplusplus
#define OPAQUE interface
#endif
#define DEFINE_CLSID(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
DEFINE_GUID(CLSID_##className, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
#define DEFINE_IID(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
@@ -38,7 +47,7 @@ DEFINE_CLSID(XAudio2, 3eda9b49, 2085, 498b, 9b, b2, 39, a6, 77, 84, 93, de);
DEFINE_CLSID(XAudio2_Debug, 47199894, 7cc2, 444d, 98, 73, ce, d2, 56, 2c, c6, 0e);
DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
#include <audiodefs.h> // Basic audio data types and constants
#include <audiodefs.h> /* Basic audio data types and constants */
#else
@@ -48,6 +57,11 @@ DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
#include <objbase.h>
#include <mmreg.h>
#ifndef __cplusplus
#undef OPAQUE
#define OPAQUE struct
#endif
#define DEFINE_GUID_X(n, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
static const GUID n = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
#define DEFINE_CLSID_X(className, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
@@ -55,7 +69,13 @@ DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
#define DEFINE_IID_X(interfaceName, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
DEFINE_GUID_X(IID_##interfaceName, 0x##l, 0x##w1, 0x##w2, 0x##b1, 0x##b2, 0x##b3, 0x##b4, 0x##b5, 0x##b6, 0x##b7, 0x##b8)
DEFINE_CLSID_X(XAudio2, 5a508685, a254, 4fba, 9b, 82, 9a, 24, b0, 03, 06, af); // 2.7
#ifndef __cplusplus
#ifndef INTERFACE
#define INTERFACE void
#endif
#endif
DEFINE_CLSID_X(XAudio2, 5a508685, a254, 4fba, 9b, 82, 9a, 24, b0, 03, 06, af); /* 2.7 */
DEFINE_IID_X(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
#endif
@@ -99,7 +119,11 @@ typedef enum XAUDIO2_XBOX_HWTHREAD_SPECIFIER
#else
typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER
{
#if defined(__STDC_C89__)
XAUDIO2_ANY_PROCESSOR = 0xffff,
#else
XAUDIO2_ANY_PROCESSOR = 0xffffffff,
#endif
XAUDIO2_DEFAULT_PROCESSOR = XAUDIO2_ANY_PROCESSOR
} XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER, XAUDIO2_PROCESSOR;
#endif
@@ -107,7 +131,7 @@ typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER
typedef enum XAUDIO2_FILTER_TYPE {
LowPassFilter,
BandPassFilter,
HighPassFilter
HighPassFilter
} XAUDIO2_FILTER_TYPE;
typedef struct XAUDIO2_DEVICE_DETAILS
@@ -118,7 +142,8 @@ typedef struct XAUDIO2_DEVICE_DETAILS
WAVEFORMATEXTENSIBLE OutputFormat;
} XAUDIO2_DEVICE_DETAILS;
// Forward declarations.
/* Forward declarations. */
#ifdef __cplusplus
struct XAUDIO2_VOICE_DETAILS;
struct XAUDIO2_VOICE_SENDS;
struct XAUDIO2_EFFECT_DESCRIPTOR;
@@ -130,6 +155,20 @@ struct XAUDIO2_PERFORMANCE_DATA;
struct XAUDIO2_DEBUG_CONFIGURATION;
struct IXAudio2EngineCallback;
struct IXAudio2SubmixVoice;
#else
typedef OPAQUE XAUDIO2_VOICE_DETAILS XAUDIO2_VOICE_DETAILS;
typedef OPAQUE XAUDIO2_VOICE_SENDS XAUDIO2_VOICE_SENDS;
typedef OPAQUE XAUDIO2_EFFECT_DESCRIPTOR XAUDIO2_EFFECT_DESCRIPTOR;
typedef OPAQUE XAUDIO2_EFFECT_CHAIN XAUDIO2_EFFECT_CHAIN;
typedef OPAQUE XAUDIO2_FILTER_PARAMETERS XAUDIO2_FILTER_PARAMETERS;
typedef OPAQUE XAUDIO2_BUFFER_WMA XAUDIO2_BUFFER_WMA;
typedef OPAQUE XAUDIO2_VOICE_STATE XAUDIO2_VOICE_STATE;
typedef OPAQUE XAUDIO2_PERFORMANCE_DATA XAUDIO2_PERFORMANCE_DATA;
typedef OPAQUE XAUDIO2_DEBUG_CONFIGURATION XAUDIO2_DEBUG_CONFIGURATION;
typedef OPAQUE IXAudio2EngineCallback IXAudio2EngineCallback;
typedef OPAQUE IXAudio2SubmixVoice IXAudio2SubmixVoice;
#endif
typedef struct XAUDIO2_BUFFER
{
@@ -253,31 +292,58 @@ DECLARE_INTERFACE_(IXAudio2, IUnknown)
void *pReserved X2DEFAULT(NULL)) PURE;
};
#ifdef __cplusplus
/* C++ hooks */
#define IXAudio2_Initialize(handle,a,b) handle->Initialize(a, b)
#define IXAudio2SourceVoice_SubmitSourceBuffer(handle, a, b) handle->SubmitSourceBuffer(a, b)
#define IXAudio2SourceVoice_Stop(handle, a, b) handle->Stop(a, b)
#define IXAudio2SourceVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2MasteringVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2_Release(handle) handle->Release()
#define IXAudio2_CreateSourceVoice(handle, a, b, c, d, e, f, g) handle->CreateSourceVoice(a, b, c, d, e, f, g)
#define IXAudio2_CreateMasteringVoice(handle, a, b, c, d, e, f) handle->CreateMasteringVoice(a, b, c, d, e, f)
#define IXAudio2SourceVoice_Start(handle, a, b) handle->Start(a, b)
#else
/* C hooks */
#define IXAudio2_Initialize(THIS,a,b) (THIS)->lpVtbl->Initialize(THIS, a, b)
#define IXAudio2_Release(THIS) (THIS)->lpVtbl->Release(THIS)
#define IXAudio2_CreateSourceVoice(THIS,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (THIS)->lpVtbl->CreateSourceVoice(THIS, ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
#define IXAudio2_CreateMasteringVoice(THIS,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (THIS)->lpVtbl->CreateMasteringVoice(THIS, ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
#define IXAudio2_GetDeviceCount(THIS, puCount) (THIS)->lpVtbl->GetDeviceCount(THIS, puCount)
#define IXAudio2_GetDeviceDetails(THIS, Index,pDeviceDetails) (THIS)->lpVtbl->GetDeviceDetails(THIS, Index, pDeviceDetails)
#define IXAudio2SourceVoice_Start(THIS, Flags, OperationSet) (THIS)->lpVtbl->Start(THIS, Flags, OperationSet)
#define IXAudio2SourceVoice_Stop(THIS, Flags, OperationSet) (THIS)->lpVtbl->Stop(THIS, Flags, OperationSet)
#define IXAudio2SourceVoice_SubmitSourceBuffer(THIS, pBuffer, pBufferWMA) (THIS)->lpVtbl->SubmitSourceBuffer(THIS, pBuffer, pBufferWMA)
#define IXAudio2SourceVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS)
#define IXAudio2MasteringVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS)
#endif
#ifdef _XBOX
STDAPI XAudio2Create(__deref_out IXAudio2** ppXAudio2, UINT32 Flags X2DEFAULT(0),
XAUDIO2_PROCESSOR XAudio2Processor X2DEFAULT(XAUDIO2_DEFAULT_PROCESSOR));
#else
static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32, XAUDIO2_PROCESSOR)
static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_PROCESSOR proc)
{
IXAudio2 *pXAudio2;
IXAudio2 *pXAudio2 = NULL;
#ifdef __cplusplus
HRESULT hr = CoCreateInstance(CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, IID_IXAudio2, (void**)&pXAudio2);
#else
HRESULT hr = CoCreateInstance(&CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, &IID_IXAudio2, (void**)&pXAudio2);
#endif
if (SUCCEEDED(hr))
{
//hr = IXAudio2_Initialize(pXAudio2, 0, XAUDIO2_DEFAULT_PROCESSOR);
hr = pXAudio2->Initialize(0, XAUDIO2_DEFAULT_PROCESSOR);
hr = IXAudio2_Initialize(pXAudio2, 0, XAUDIO2_DEFAULT_PROCESSOR);
if (SUCCEEDED(hr))
*ppXAudio2 = pXAudio2;
else
//IXAudio2_Release(pXAudio2);
pXAudio2->Release();
IXAudio2_Release(pXAudio2);
}
return hr;
}
#endif
// Undo the #pragma pack(push, 1) directive at the top of this file
/* Undo the #pragma pack(push, 1) directive at the top of this file */
#pragma pack(pop)
#endif
+3 -4
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -57,8 +57,7 @@ static INLINE uint32_t bswap_32(uint32_t val)
((val >> 8) & 0xff00) | ((val << 8) & 0xff0000);
}
static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size)
{
size_t written = 0, i;
const uint32_t *in_buf = buf;
@@ -71,7 +70,7 @@ static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size,
{
while (xenon_sound_get_unplayed() >= MAX_BUFFER)
{
/* libxenon doesn't have proper
/* libxenon doesn't have proper
* synchronization primitives for this... */
udelay(50);
}
+3 -3
View File
@@ -348,7 +348,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
}
#elif defined (__ARM_NEON__)
#elif defined (__ARM_NEON__) && !defined(DONT_WANT_ARM_OPTIMIZATIONS)
#define CC_RESAMPLER_IDENT "NEON"
@@ -498,12 +498,12 @@ static void *resampler_CC_init(const struct resampler_config *config,
rarch_CC_resampler_t *re = (rarch_CC_resampler_t*)
memalign_alloc(32, sizeof(rarch_CC_resampler_t));
/* TODO: lookup if NEON support can be detected at
/* TODO: lookup if NEON support can be detected at
* runtime and a funcptr set at runtime for either
* C codepath or NEON codepath. This will help out
* Android. */
(void)mask;
(void)config;
(void)config;
if (!re)
return NULL;
+21 -20
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -16,7 +16,7 @@
/* RSound - A PCM audio client/server
* Copyright (C) 2010 - Hans-Kristian Arntzen
*
*
* RSound is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -67,15 +67,16 @@
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <errno.h>
#include <errno.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
/*
****************************************************************************
/*
****************************************************************************
Naming convention. Functions for use in API are called rsd_*(), *
internal function are called rsnd_*() *
****************************************************************************
@@ -250,7 +251,7 @@ static int rsnd_connect_server( rsound_t *rd )
if ( rd->conn.ctl_socket < 0 )
goto error;
/* Uses non-blocking IO since it performed more deterministic with poll()/send() */
/* Uses non-blocking IO since it performed more deterministic with poll()/send() */
#ifdef __CELLOS_LV2__
setsockopt(rd->conn.socket, SOL_SOCKET, SO_NBIO, &i, sizeof(int));
@@ -301,7 +302,7 @@ static int rsnd_send_header_info(rsound_t *rd)
uint16_t temp16;
uint32_t temp32;
/* These magic numbers represent the position of the elements in the wave header.
/* These magic numbers represent the position of the elements in the wave header.
We can't simply send a wave struct over the network since the compiler is allowed to
pad our structs as they like, so sizeof(waveheader) might not be similar on two different
systems. */
@@ -352,7 +353,7 @@ static int rsnd_send_header_info(rsound_t *rd)
}
/* Since the values in the wave header we are interested in, are little endian (>_<), we need
to determine whether we're running it or not, so we can byte swap accordingly.
to determine whether we're running it or not, so we can byte swap accordingly.
Could determine this compile time, but it was simpler to do it this way. */
// Fancy macros for embedding little endian values into the header.
@@ -500,7 +501,7 @@ static int rsnd_get_backend_info ( rsound_t *rd )
// Can we read the last 8 bytes so we can use the protocol interface?
// This is non-blocking.
if ( rsnd_recv_chunk(rd->conn.socket, rsnd_header, RSND_HEADER_SIZE, 0) == RSND_HEADER_SIZE )
rd->conn_type |= RSD_CONN_PROTO;
rd->conn_type |= RSD_CONN_PROTO;
else
{ RSD_DEBUG("[RSound] Failed to get new proto.\n"); }
@@ -514,7 +515,7 @@ static int rsnd_get_backend_info ( rsound_t *rd )
return 0;
}
/* Makes sure that we're connected and done with wave header handshaking. Returns -1 on error, and 0 on success.
/* Makes sure that we're connected and done with wave header handshaking. Returns -1 on error, and 0 on success.
This goes for all other functions in use. */
static int rsnd_create_connection(rsound_t *rd)
{
@@ -749,7 +750,7 @@ static int64_t rsnd_get_time_usec(void)
/* Calculates how many bytes there are in total in the virtual buffer. This is calculated client side.
It should be accurate enough unless we have big problems with buffer underruns.
This function is called by rsd_delay() to determine the latency.
This function is called by rsd_delay() to determine the latency.
This function might be changed in the future to correctly determine latency from server. */
static void rsnd_drain(rsound_t *rd)
{
@@ -776,7 +777,7 @@ static void rsnd_drain(rsound_t *rd)
}
/* Tries to fill the buffer. Uses signals to determine when the buffer is ready to be filled. Should the thread not be active
it will treat this as an error. Crude implementation of a blocking FIFO. */
it will treat this as an error. Crude implementation of a blocking FIFO. */
static size_t rsnd_fill_buffer(rsound_t *rd, const char *buf, size_t size)
{
@@ -850,7 +851,7 @@ static int rsnd_stop_thread(rsound_t *rd)
sthread_join(rd->thread.thread);
RSD_DEBUG("[RSound] Thread joined successfully.\n");
return 0;
}
else
@@ -980,7 +981,7 @@ static int rsnd_close_ctl(rsound_t *rd)
}
// Sends delay info request to server on the ctl socket. This code section isn't critical, and will work if it works.
// Sends delay info request to server on the ctl socket. This code section isn't critical, and will work if it works.
// It will never block.
static int rsnd_send_info_query(rsound_t *rd)
{
@@ -1110,7 +1111,7 @@ static void rsnd_thread ( void * thread_data )
// We only bother to check after 1 sec of audio has been played, as it might be quite inaccurate in the start of the stream.
if ( (rd->conn_type & RSD_CONN_PROTO) && (rd->total_written > rd->channels * rd->rate * rd->samplesize) )
{
rsnd_send_info_query(rd);
rsnd_send_info_query(rd);
rsnd_update_server_info(rd);
}
@@ -1262,7 +1263,7 @@ static void rsnd_cb_thread(void *thread_data)
if ( (rd->conn_type & RSD_CONN_PROTO) && (rd->total_written > rd->channels * rd->rate * rd->samplesize) )
{
rsnd_send_info_query(rd);
rsnd_send_info_query(rd);
rsnd_update_server_info(rd);
}
@@ -1303,7 +1304,7 @@ int rsd_stop(rsound_t *rd)
const char buf[] = "RSD 5 STOP";
// Do not really care about errors here.
// Do not really care about errors here.
// The socket will be closed down in any case in rsnd_reset().
rsnd_send_chunk(rd->conn.ctl_socket, buf, strlen(buf), 0);
@@ -1324,7 +1325,7 @@ size_t rsd_write( rsound_t *rsound, const void* buf, size_t size)
while ( written < size )
{
size_t write_size = (size - written) > max_write ? max_write : (size - written);
size_t write_size = (size - written) > max_write ? max_write : (size - written);
size_t result = rsnd_fill_buffer(rsound, (const char*)buf + written, write_size);
if (result == 0)
@@ -1453,7 +1454,7 @@ int rsd_set_param(rsound_t *rd, enum rsd_settings option, void* param)
rd->max_latency = *((int*)param);
break;
// Checks if format is valid.
// Checks if format is valid.
case RSD_FORMAT:
rd->format = (uint16_t)(*((int*)param));
rd->samplesize = rsnd_format_to_samplesize(rd->format);
@@ -1508,7 +1509,7 @@ size_t rsd_pointer(rsound_t *rsound)
retro_assert(rsound != NULL);
int ptr;
ptr = rsnd_get_ptr(rsound);
ptr = rsnd_get_ptr(rsound);
return ptr;
}
+2 -2
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -37,7 +37,7 @@ void autosave_lock(void);
**/
void autosave_unlock(void);
void autosave_init(void);
bool autosave_init(void);
void autosave_deinit(void);
+1 -1
View File
@@ -14,7 +14,7 @@ USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1
LIBDIR =
LDFLAGS = -mno-crt0 -nostartfiles
LDFLAGS = -nostartfiles
LIBS = -lpspdebug -lpspge -lpspsdk -lc -lpspuser
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
+5 -4
View File
@@ -55,9 +55,10 @@ void exitspawn_kernel(const char *fileName, SceSize args, void *argp)
game_param.unk4 = 0;
game_param.unk5 = 0x10000;
pspSdkSetK1(0);
sceKernelSuspendAllUserThreads();
sceKernelLoadExecVSHMs2(fileName, &game_param);
int k1 = pspSdkSetK1(0);
//sceKernelSuspendAllUserThreads();
int ret = sceKernelLoadExecVSHMs2(fileName, &game_param);
pspSdkSetK1(k1);
}
int module_start(SceSize args, void *argp)
@@ -66,7 +67,7 @@ int module_start(SceSize args, void *argp)
(void)argp;
buttons = 0;
thread_active = 0;
thread_active = 0;
main_thread_id = sceKernelCreateThread("main Thread", main_thread, 0x11, 0x200, 0, NULL);
if (main_thread >= 0)
+229
View File
@@ -0,0 +1,229 @@
// This provides support for __getreent() as well as implementation of our thread-related wrappers
#include <reent.h>
#include <stdio.h>
#include <string.h>
#include <vitasdk/utils.h>
#include <psp2/kernel/threadmgr.h>
#define MAX_THREADS 256
typedef struct reent_for_thread {
int thread_id;
int needs_reclaim;
void *tls_data_ext;
void *pthread_data_ext;
struct _reent reent;
} reent_for_thread;
static reent_for_thread reent_list[MAX_THREADS];
static int _newlib_reent_mutex;
static struct _reent _newlib_global_reent;
#define TLS_REENT_THID_PTR(thid) sceKernelGetThreadTLSAddr(thid, 0x88)
#define TLS_REENT_PTR sceKernelGetTLSAddr(0x88)
#define list_entry(ptr, type, member) \
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
int __vita_delete_thread_reent(int thid)
{
struct reent_for_thread *for_thread;
// We only need to cleanup if reent is allocated, i.e. if it's on our TLS
// We also don't need to clean up the global reent
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
on_tls = TLS_REENT_THID_PTR(thid);
if (!*on_tls || *on_tls == &_newlib_global_reent)
return 0;
for_thread = list_entry(*on_tls, struct reent_for_thread, reent);
// Remove from TLS
*on_tls = 0;
// Set thread id to zero, which means the reent is free
for_thread->thread_id = 0;
// We can't reclaim it here, will be done later in __getreent
for_thread->needs_reclaim = 1;
return 1;
}
int vitasdk_delete_thread_reent(int thid)
{
int res = 0;
// Lock the list because we'll be modifying it
sceKernelLockMutex(_newlib_reent_mutex, 1, NULL);
res = __vita_delete_thread_reent(thid);
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return res;
}
int _exit_thread_common(int exit_status, int (*exit_func)(int)) {
int res = 0;
int ret = 0;
int thid = sceKernelGetThreadId();
// Lock the list because we'll be modifying it
sceKernelLockMutex(_newlib_reent_mutex, 1, NULL);
res = __vita_delete_thread_reent(0);
ret = exit_func(exit_status);
if (res)
{
struct _reent **on_tls = TLS_REENT_PTR;
struct reent_for_thread *for_thread = list_entry(*on_tls, struct reent_for_thread, reent);
for_thread->thread_id = thid;
// And put it back on TLS
*on_tls = &for_thread->reent;
}
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return ret;
}
int vita_exit_thread(int exit_status) {
return _exit_thread_common(exit_status, sceKernelExitThread);
}
int vita_exit_delete_thread(int exit_status) {
return _exit_thread_common(exit_status, sceKernelExitDeleteThread);
}
static inline void __vita_clean_reent(void)
{
int i;
SceKernelThreadInfo info;
for (i = 0; i < MAX_THREADS; ++i)
{
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(reent_list[i].thread_id, &info) < 0)
{
reent_list[i].thread_id = 0;
reent_list[i].needs_reclaim = 1;
}
}
}
static inline struct reent_for_thread *__vita_allocate_reent(void)
{
int i;
struct reent_for_thread *free_reent = 0;
for (i = 0; i < MAX_THREADS; ++i)
if (reent_list[i].thread_id == 0) {
free_reent = &reent_list[i];
break;
}
return free_reent;
}
struct _reent *__getreent_for_thread(int thid) {
struct reent_for_thread *free_reent = 0;
struct _reent *returned_reent = 0;
// A pointer to our reent should be on the TLS
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
on_tls = TLS_REENT_THID_PTR(thid);
if (*on_tls) {
return *on_tls;
}
sceKernelLockMutex(_newlib_reent_mutex, 1, 0);
// If it's not on the TLS this means the thread doesn't have a reent allocated yet
// We allocate one and put a pointer to it on the TLS
free_reent = __vita_allocate_reent();
if (!free_reent) {
// clean any hanging thread references
__vita_clean_reent();
free_reent = __vita_allocate_reent();
if (!free_reent) {
// we've exhausted all our resources
__builtin_trap();
}
} else {
// First, check if it needs to be cleaned up (if it came from another thread)
if (free_reent->needs_reclaim) {
_reclaim_reent(&free_reent->reent);
free_reent->needs_reclaim = 0;
}
memset(free_reent, 0, sizeof(struct reent_for_thread));
// Set it up
if(thid==0){
thid = sceKernelGetThreadId();
}
free_reent->thread_id = thid;
_REENT_INIT_PTR(&free_reent->reent);
returned_reent = &free_reent->reent;
}
// Put it on TLS for faster access time
*on_tls = returned_reent;
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return returned_reent;
}
struct _reent *__getreent(void) {
return __getreent_for_thread(0);
}
void *vitasdk_get_tls_data(SceUID thid)
{
struct reent_for_thread *for_thread;
struct _reent *reent = __getreent_for_thread(thid);
for_thread = list_entry(reent, struct reent_for_thread, reent);
return &for_thread->tls_data_ext;
}
void *vitasdk_get_pthread_data(SceUID thid)
{
struct reent_for_thread *for_thread;
struct _reent *reent = __getreent_for_thread(thid);
for_thread = list_entry(reent, struct reent_for_thread, reent);
return &for_thread->pthread_data_ext;
}
// Called from _start to set up the main thread reentrancy structure
void _init_vita_reent(void) {
memset(reent_list, 0, sizeof(reent_list));
_newlib_reent_mutex = sceKernelCreateMutex("reent list access mutex", 0, 0, 0);
reent_list[0].thread_id = sceKernelGetThreadId();
_REENT_INIT_PTR(&reent_list[0].reent);
*(struct _reent **)(TLS_REENT_PTR) = &reent_list[0].reent;
_REENT_INIT_PTR(&_newlib_global_reent);
}
void _free_vita_reent(void) {
sceKernelDeleteMutex(_newlib_reent_mutex);
}
+33 -31
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -25,7 +25,6 @@
#include "../configuration.h"
#include "../driver.h"
#include "../retroarch.h"
#include "../runloop.h"
#include "../list_special.h"
#include "../verbosity.h"
@@ -48,6 +47,12 @@ static const camera_driver_t *camera_drivers[] = {
NULL,
};
static struct retro_camera_callback camera_cb;
static const camera_driver_t *camera_driver = NULL;
static void *camera_data = NULL;
static bool camera_driver_active = false;
static bool camera_driver_data_own = false;
/**
* camera_driver_find_handle:
* @idx : index of driver to get handle to.
@@ -102,14 +107,20 @@ bool driver_camera_start(void)
return camera_driver_ctl(RARCH_CAMERA_CTL_START, NULL);
}
void camera_driver_poll(void)
{
if (!camera_cb.caps)
return;
if (!camera_driver || !camera_driver->poll || !camera_data)
return;
camera_driver->poll(camera_data,
camera_cb.frame_raw_framebuffer,
camera_cb.frame_opengl_texture);
}
bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
{
settings_t *settings = config_get_ptr();
static struct retro_camera_callback camera_cb;
static const camera_driver_t *camera_driver = NULL;
static void *camera_data = NULL;
static bool camera_driver_active = false;
static bool camera_driver_data_own = false;
switch (state)
{
@@ -128,7 +139,7 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
case RARCH_CAMERA_CTL_OWNS_DRIVER:
return camera_driver_data_own;
case RARCH_CAMERA_CTL_SET_ACTIVE:
camera_driver_active = true;
camera_driver_active = true;
break;
case RARCH_CAMERA_CTL_FIND_DRIVER:
{
@@ -136,11 +147,11 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
driver_ctx_info_t drv;
drv.label = "camera_driver";
drv.s = settings->camera.driver;
drv.s = settings->arrays.camera_driver;
driver_ctl(RARCH_DRIVER_CTL_FIND_INDEX, &drv);
i = drv.len;
i = (int)drv.len;
if (i >= 0)
camera_driver = (const camera_driver_t*)camera_driver_find_handle(i);
@@ -148,7 +159,7 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
{
unsigned d;
RARCH_ERR("Couldn't find any camera driver named \"%s\"\n",
settings->camera.driver);
settings->arrays.camera_driver);
RARCH_LOG_OUTPUT("Available camera drivers are:\n");
for (d = 0; camera_driver_find_handle(d); d++)
RARCH_LOG_OUTPUT("\t%s\n", camera_driver_find_ident(d));
@@ -163,10 +174,10 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
}
break;
case RARCH_CAMERA_CTL_UNSET_ACTIVE:
camera_driver_active = false;
camera_driver_active = false;
break;
case RARCH_CAMERA_CTL_IS_ACTIVE:
return camera_driver_active;
return camera_driver_active;
case RARCH_CAMERA_CTL_DEINIT:
if (camera_data && camera_driver)
{
@@ -180,30 +191,21 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
camera_data = NULL;
break;
case RARCH_CAMERA_CTL_STOP:
if ( camera_driver
&& camera_driver->stop
if ( camera_driver
&& camera_driver->stop
&& camera_data)
camera_driver->stop(camera_data);
break;
case RARCH_CAMERA_CTL_START:
if (camera_driver && camera_data && camera_driver->start)
{
if (settings->camera.allow)
if (settings->bools.camera_allow)
return camera_driver->start(camera_data);
runloop_msg_queue_push(
"Camera is explicitly disabled.\n", 1, 180, false);
}
break;
case RARCH_CAMERA_CTL_POLL:
if (!camera_cb.caps)
return false;
if (!camera_driver || !camera_driver->poll || !camera_data)
return false;
camera_driver->poll(camera_data,
camera_cb.frame_raw_framebuffer,
camera_cb.frame_opengl_texture);
break;
case RARCH_CAMERA_CTL_SET_CB:
{
struct retro_camera_callback *cb =
@@ -222,12 +224,12 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
return false;
camera_data = camera_driver->init(
*settings->camera.device ? settings->camera.device : NULL,
*settings->arrays.camera_device ? settings->arrays.camera_device : NULL,
camera_cb.caps,
settings->camera.width ?
settings->camera.width : camera_cb.width,
settings->camera.height ?
settings->camera.height : camera_cb.height);
settings->uints.camera_width ?
settings->uints.camera_width : camera_cb.width,
settings->uints.camera_height ?
settings->uints.camera_height : camera_cb.height);
if (!camera_data)
{
@@ -241,6 +243,6 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
default:
break;
}
return true;
}
+3 -2
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -37,7 +37,6 @@ enum rarch_camera_ctl_state
RARCH_CAMERA_CTL_UNSET_ACTIVE,
RARCH_CAMERA_CTL_IS_ACTIVE,
RARCH_CAMERA_CTL_FIND_DRIVER,
RARCH_CAMERA_CTL_POLL,
RARCH_CAMERA_CTL_SET_CB,
RARCH_CAMERA_CTL_STOP,
RARCH_CAMERA_CTL_START,
@@ -105,6 +104,8 @@ void driver_camera_stop(void);
bool driver_camera_start(void);
void camera_driver_poll(void);
bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data);
RETRO_END_DECLS
+4 -4
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -152,7 +152,7 @@ static void android_camera_stop(void *data)
CALL_VOID_METHOD(env, android_app->activity->clazz,
androidcamera->onCameraStop);
if (androidcamera->tex)
video_driver_texture_unload((uintptr_t*)&androidcamera->tex);
}
@@ -171,12 +171,12 @@ static bool android_camera_poll(void *data,
(void)frame_raw_cb;
CALL_BOOLEAN_METHOD(env, newFrame, android_app->activity->clazz,
CALL_BOOLEAN_METHOD(env, newFrame, android_app->activity->clazz,
androidcamera->onCameraPoll);
if (newFrame)
{
/* FIXME: Identity for now. Use proper texture matrix as
/* FIXME: Identity for now. Use proper texture matrix as
* returned by Android Camera. */
static const float affine[] = {
1.0f, 0.0f, 0.0f,
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2012-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2012-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+37 -29
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -16,7 +16,9 @@
*/
#include <stdio.h>
#if !defined(__FreeBSD__) || __FreeBSD__ < 5
#include <malloc.h>
#endif
#include <string.h>
#include <assert.h>
#include <stddef.h>
@@ -28,7 +30,9 @@
#include <sys/time.h>
#include <sys/ioctl.h>
#ifndef __FreeBSD__
#include <asm/types.h>
#endif
#include <linux/videodev2.h>
#include <memmap.h>
@@ -36,7 +40,8 @@
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include <gfx/scaler/scaler.h>
#include <retro_stat.h>
#include <gfx/video_frame.h>
#include <file/file_path.h>
#include <compat/strl.h>
@@ -89,15 +94,15 @@ static bool init_mmap(void *data)
if (xioctl(v4l->fd, (uint8_t)VIDIOC_REQBUFS, &req) == -1)
{
if (errno == EINVAL)
RARCH_ERR("%s does not support memory mapping.\n", v4l->dev_name);
RARCH_ERR("[V4L2]: %s does not support memory mapping.\n", v4l->dev_name);
else
RARCH_ERR("xioctl of VIDIOC_REQBUFS failed.\n");
RARCH_ERR("[V4L2]: xioctl of VIDIOC_REQBUFS failed.\n");
return false;
}
if (req.count < 2)
{
RARCH_ERR("Insufficient buffer memory on %s.\n", v4l->dev_name);
RARCH_ERR("[V4L2]: Insufficient buffer memory on %s.\n", v4l->dev_name);
return false;
}
@@ -105,7 +110,7 @@ static bool init_mmap(void *data)
if (!v4l->buffers)
{
RARCH_ERR("Out of memory allocating V4L2 buffers.\n");
RARCH_ERR("[V4L2]: Out of memory allocating V4L2 buffers.\n");
return false;
}
@@ -119,7 +124,7 @@ static bool init_mmap(void *data)
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYBUF, &buf) == -1)
{
RARCH_ERR("Error - xioctl VIDIOC_QUERYBUF.\n");
RARCH_ERR("[V4L2]: Error - xioctl VIDIOC_QUERYBUF.\n");
return false;
}
@@ -131,7 +136,7 @@ static bool init_mmap(void *data)
if (v4l->buffers[v4l->n_buffers].start == MAP_FAILED)
{
RARCH_ERR("Error - mmap.\n");
RARCH_ERR("[V4L2]: Error - mmap.\n");
return false;
}
}
@@ -150,21 +155,21 @@ static bool init_device(void *data)
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYCAP, &cap) < 0)
{
if (errno == EINVAL)
RARCH_ERR("%s is no V4L2 device.\n", v4l->dev_name);
RARCH_ERR("[V4L2]: %s is no V4L2 device.\n", v4l->dev_name);
else
RARCH_ERR("Error - VIDIOC_QUERYCAP.\n");
RARCH_ERR("[V4L2]: Error - VIDIOC_QUERYCAP.\n");
return false;
}
if (!(cap.capabilities & V4L2_CAP_VIDEO_CAPTURE))
{
RARCH_ERR("%s is no video capture device.\n", v4l->dev_name);
RARCH_ERR("[V4L2]: %s is no video capture device.\n", v4l->dev_name);
return false;
}
if (!(cap.capabilities & V4L2_CAP_STREAMING))
{
RARCH_ERR("%s does not support streaming I/O (V4L2_CAP_STREAMING).\n",
RARCH_ERR("[V4L2]: %s does not support streaming I/O (V4L2_CAP_STREAMING).\n",
v4l->dev_name);
return false;
}
@@ -187,7 +192,7 @@ static bool init_device(void *data)
if (xioctl(v4l->fd, (uint8_t)VIDIOC_S_FMT, &fmt) < 0)
{
RARCH_ERR("Error - VIDIOC_S_FMT\n");
RARCH_ERR("[V4L2]: Error - VIDIOC_S_FMT\n");
return false;
}
@@ -202,18 +207,18 @@ static bool init_device(void *data)
*/
if (fmt.fmt.pix.pixelformat != V4L2_PIX_FMT_YUYV)
{
RARCH_ERR("The V4L2 device doesn't support YUYV.\n");
RARCH_ERR("[V4L2]: The V4L2 device doesn't support YUYV.\n");
return false;
}
if (fmt.fmt.pix.field != V4L2_FIELD_NONE
&& fmt.fmt.pix.field != V4L2_FIELD_INTERLACED)
{
RARCH_ERR("The V4L2 device doesn't support progressive nor interlaced video.\n");
RARCH_ERR("[V4L2]: The V4L2 device doesn't support progressive nor interlaced video.\n");
return false;
}
RARCH_LOG("V4L2 device: %u x %u.\n", v4l->width, v4l->height);
RARCH_LOG("[V4L2]: device: %u x %u.\n", v4l->width, v4l->height);
return init_mmap(v4l);
}
@@ -224,7 +229,7 @@ static void v4l_stop(void *data)
enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (xioctl(v4l->fd, VIDIOC_STREAMOFF, &type) == -1)
RARCH_ERR("Error - VIDIOC_STREAMOFF.\n");
RARCH_ERR("[V4L2]: Error - VIDIOC_STREAMOFF.\n");
v4l->ready = false;
}
@@ -245,7 +250,7 @@ static bool v4l_start(void *data)
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QBUF, &buf) == -1)
{
RARCH_ERR("Error - VIDIOC_QBUF.\n");
RARCH_ERR("[V4L2]: Error - VIDIOC_QBUF.\n");
return false;
}
}
@@ -254,7 +259,7 @@ static bool v4l_start(void *data)
if (xioctl(v4l->fd, VIDIOC_STREAMON, &type) == -1)
{
RARCH_ERR("Error - VIDIOC_STREAMON.\n");
RARCH_ERR("[V4L2]: Error - VIDIOC_STREAMON.\n");
return false;
}
@@ -270,7 +275,7 @@ static void v4l_free(void *data)
unsigned i;
for (i = 0; i < v4l->n_buffers; i++)
if (munmap(v4l->buffers[i].start, v4l->buffers[i].length) == -1)
RARCH_ERR("munmap failed.\n");
RARCH_ERR("[V4L2]: munmap failed.\n");
if (v4l->fd >= 0)
close(v4l->fd);
@@ -287,7 +292,7 @@ static void *v4l_init(const char *device, uint64_t caps,
if ((caps & (UINT64_C(1) << RETRO_CAMERA_BUFFER_RAW_FRAMEBUFFER)) == 0)
{
RARCH_ERR("video4linux2 returns raw framebuffers.\n");
RARCH_ERR("[V4L2]: Returns raw framebuffers.\n");
return NULL;
}
@@ -304,7 +309,7 @@ static void *v4l_init(const char *device, uint64_t caps,
if (!path_is_character_special(v4l->dev_name))
{
RARCH_ERR("%s is no device.\n", v4l->dev_name);
RARCH_ERR("[V4L2]: %s is no device.\n", v4l->dev_name);
goto error;
}
@@ -312,7 +317,7 @@ static void *v4l_init(const char *device, uint64_t caps,
if (v4l->fd == -1)
{
RARCH_ERR("Cannot open '%s': %d, %s\n", v4l->dev_name,
RARCH_ERR("[V4L2]: Cannot open '%s': %d, %s\n", v4l->dev_name,
errno, strerror(errno));
goto error;
}
@@ -325,7 +330,7 @@ static void *v4l_init(const char *device, uint64_t caps,
if (!v4l->buffer_output)
{
RARCH_ERR("Failed to allocate output buffer.\n");
RARCH_ERR("[V4L2]: Failed to allocate output buffer.\n");
goto error;
}
@@ -338,20 +343,21 @@ static void *v4l_init(const char *device, uint64_t caps,
if (!scaler_ctx_gen_filter(&v4l->scaler))
{
RARCH_ERR("Failed to create scaler.\n");
RARCH_ERR("[V4L2]: Failed to create scaler.\n");
goto error;
}
return v4l;
error:
RARCH_ERR("V4L2: Failed to initialize camera.\n");
RARCH_ERR("[V4L2]: Failed to initialize camera.\n");
v4l_free(v4l);
return NULL;
}
static bool preprocess_image(void *data)
{
struct scaler_ctx *ctx = NULL;
video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_buffer buf = {0};
@@ -365,7 +371,7 @@ static bool preprocess_image(void *data)
case EAGAIN:
break;
default:
RARCH_ERR("VIDIOC_DQBUF.\n");
RARCH_ERR("[V4L2]: VIDIOC_DQBUF.\n");
break;
}
@@ -374,10 +380,12 @@ static bool preprocess_image(void *data)
retro_assert(buf.index < v4l->n_buffers);
scaler_ctx_scale(&v4l->scaler, v4l->buffer_output, (const uint8_t*)v4l->buffers[buf.index].start);
ctx = &v4l->scaler;
scaler_ctx_scale_direct(ctx, v4l->buffer_output, (const uint8_t*)v4l->buffers[buf.index].start);
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QBUF, &buf) == -1)
RARCH_ERR("VIDIOC_QBUF\n");
RARCH_ERR("[V4L2]: VIDIOC_QBUF\n");
return true;
}
-2904
View File
File diff suppressed because it is too large. Load diff
-74
View File
@@ -1,74 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2016 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_H
#define __RARCH_CHEEVOS_H
#include <stdint.h>
#include <stdlib.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct cheevos_ctx_desc
{
unsigned idx;
char *s;
size_t len;
} cheevos_ctx_desc_t;
typedef struct
{
unsigned size;
unsigned type;
int bank_id;
unsigned value;
unsigned previous;
} cheevos_var_t;
bool cheevos_load(const void *data);
void cheevos_reset_game(void);
void cheevos_populate_menu(void *data, bool hardcore);
bool cheevos_get_description(cheevos_ctx_desc_t *desc);
bool cheevos_apply_cheats(bool *data_bool);
bool cheevos_unload(void);
bool cheevos_toggle_hardcore_mode(void);
void cheevos_test(void);
bool cheevos_set_cheats(void);
void cheevos_set_support_cheevos(bool state);
bool cheevos_get_support_cheevos(void);
void cheevos_parse_guest_addr(cheevos_var_t *var, unsigned value);
uint8_t *cheevos_get_memory(const cheevos_var_t *var);
extern bool cheevos_loaded;
extern int cheats_are_enabled;
extern int cheats_were_enabled;
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_H */
+58
View File
@@ -0,0 +1,58 @@
#include <file/file_path.h>
#include <string/stdstring.h>
#include <streams/file_stream.h>
#include "../file_path_special.h"
#include "../configuration.h"
#include "../verbosity.h"
#include "../network/net_http_special.h"
#include "badges.h"
badges_ctx_t badges_ctx;
bool badge_exists(const char* filepath)
{
return filestream_exists(filepath);
}
void set_badge_menu_texture(badges_ctx_t * badges, int i)
{
char fullpath[PATH_MAX_LENGTH];
const char * locked_suffix = (badges->badge_locked[i] == true)
? "_lock.png" : ".png";
unsigned int bufferSize = 16;
/* TODO/FIXME - variable length forbidden in C89 - rewrite this! */
char badge_file[bufferSize];
snprintf(badge_file, bufferSize, "%s", badges->badge_id_list[i]);
strcat(badge_file, locked_suffix);
fill_pathname_application_special(fullpath,
PATH_MAX_LENGTH * sizeof(char),
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
menu_display_reset_textures_list(badge_file, fullpath,
&badges->menu_texture_list[i],TEXTURE_FILTER_MIPMAP_LINEAR);
}
void set_badge_info (badges_ctx_t *badge_struct, int id,
const char *badge_id, bool active)
{
if (!badge_struct)
return;
badge_struct->badge_id_list[id] = badge_id;
badge_struct->badge_locked[id] = active;
set_badge_menu_texture(badge_struct, id);
}
menu_texture_item get_badge_texture(int id)
{
settings_t *settings = config_get_ptr();
if (!settings->bools.cheevos_badges_enable)
return (menu_texture_item)NULL;
return badges_ctx.menu_texture_list[id];
}
+29
View File
@@ -0,0 +1,29 @@
#ifndef __RARCH_BADGE_H
#define __RARCH_BADGE_H
#include "../menu/menu_driver.h"
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
#define CHEEVOS_BADGE_LIMIT 256
typedef struct
{
bool badge_locked[CHEEVOS_BADGE_LIMIT];
const char * badge_id_list[CHEEVOS_BADGE_LIMIT];
menu_texture_item menu_texture_list[CHEEVOS_BADGE_LIMIT];
} badges_ctx_t;
bool badge_exists(const char* filepath);
void set_badge_menu_texture(badges_ctx_t * badges, int i);
extern void set_badge_info (badges_ctx_t *badge_struct, int id, const char *badge_id, bool active);
extern menu_texture_item get_badge_texture(int id);
extern badges_ctx_t badges_ctx;
static badges_ctx_t new_badges_ctx;
RETRO_END_DECLS
#endif
+3560
View File
File diff suppressed because it is too large. Load diff
+147
View File
@@ -0,0 +1,147 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2016 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_H
#define __RARCH_CHEEVOS_H
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
/*****************************************************************************
Setup - mainly for debugging
*****************************************************************************/
/* Define this macro to get extra-verbose log for cheevos. */
#undef CHEEVOS_VERBOSE
/*****************************************************************************
End of setup
*****************************************************************************/
#define CHEEVOS_TAG "[CHEEVOS]: "
typedef struct cheevos_ctx_desc
{
unsigned idx;
char *s;
size_t len;
} cheevos_ctx_desc_t;
typedef enum
{
CHEEVOS_CONSOLE_NONE = 0,
/* Don't change those, the values match the console IDs
* at retroachievements.org. */
CHEEVOS_CONSOLE_MEGA_DRIVE = 1,
CHEEVOS_CONSOLE_NINTENDO_64 = 2,
CHEEVOS_CONSOLE_SUPER_NINTENDO = 3,
CHEEVOS_CONSOLE_GAMEBOY = 4,
CHEEVOS_CONSOLE_GAMEBOY_ADVANCE = 5,
CHEEVOS_CONSOLE_GAMEBOY_COLOR = 6,
CHEEVOS_CONSOLE_NINTENDO = 7,
CHEEVOS_CONSOLE_PC_ENGINE = 8,
CHEEVOS_CONSOLE_SEGA_CD = 9,
CHEEVOS_CONSOLE_SEGA_32X = 10,
CHEEVOS_CONSOLE_MASTER_SYSTEM = 11,
CHEEVOS_CONSOLE_PLAYSTATION = 12,
CHEEVOS_CONSOLE_ATARI_LYNX = 13,
CHEEVOS_CONSOLE_NEOGEO = 14,
CHEEVOS_CONSOLE_XBOX_360 = 15,
CHEEVOS_CONSOLE_GAMECUBE = 16,
CHEEVOS_CONSOLE_ATARI_JAGUAR = 17,
CHEEVOS_CONSOLE_NINTENDO_DS = 18,
CHEEVOS_CONSOLE_WII = 19,
CHEEVOS_CONSOLE_WII_U = 20,
CHEEVOS_CONSOLE_PLAYSTATION_2 = 21,
CHEEVOS_CONSOLE_XBOX = 22,
CHEEVOS_CONSOLE_SKYNET = 23,
CHEEVOS_CONSOLE_XBOX_ONE = 24,
CHEEVOS_CONSOLE_ATARI_2600 = 25,
CHEEVOS_CONSOLE_MS_DOS = 26,
CHEEVOS_CONSOLE_ARCADE = 27,
CHEEVOS_CONSOLE_VIRTUAL_BOY = 28,
CHEEVOS_CONSOLE_MSX = 29,
CHEEVOS_CONSOLE_COMMODORE_64 = 30,
CHEEVOS_CONSOLE_ZX81 = 31
} cheevos_console_t;
enum
{
CHEEVOS_DIRTY_TITLE = 1 << 0,
CHEEVOS_DIRTY_DESC = 1 << 1,
CHEEVOS_DIRTY_POINTS = 1 << 2,
CHEEVOS_DIRTY_AUTHOR = 1 << 3,
CHEEVOS_DIRTY_ID = 1 << 4,
CHEEVOS_DIRTY_BADGE = 1 << 5,
CHEEVOS_DIRTY_CONDITIONS = 1 << 6,
CHEEVOS_DIRTY_VOTES = 1 << 7,
CHEEVOS_DIRTY_DESCRIPTION = 1 << 8,
CHEEVOS_DIRTY_ALL = (1 << 9) - 1
};
enum
{
CHEEVOS_ACTIVE_SOFTCORE = 1 << 0,
CHEEVOS_ACTIVE_HARDCORE = 1 << 1
};
enum
{
CHEEVOS_FORMAT_FRAMES = 0,
CHEEVOS_FORMAT_SECS,
CHEEVOS_FORMAT_MILLIS,
CHEEVOS_FORMAT_SCORE,
CHEEVOS_FORMAT_VALUE,
CHEEVOS_FORMAT_OTHER
};
bool cheevos_load(const void *data);
void cheevos_reset_game(void);
void cheevos_populate_menu(void *data);
bool cheevos_get_description(cheevos_ctx_desc_t *desc);
bool cheevos_apply_cheats(bool *data_bool);
bool cheevos_unload(void);
bool cheevos_toggle_hardcore_mode(void);
void cheevos_test(void);
bool cheevos_set_cheats(void);
void cheevos_set_support_cheevos(bool state);
bool cheevos_get_support_cheevos(void);
cheevos_console_t cheevos_get_console(void);
extern bool cheevos_loaded;
extern int cheats_are_enabled;
extern int cheats_were_enabled;
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_H */
+192
View File
@@ -0,0 +1,192 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2017 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "cond.h"
#include "var.h"
#include "../retroarch.h"
#include "../verbosity.h"
/*****************************************************************************
Parsing
*****************************************************************************/
static cheevos_cond_op_t cheevos_cond_parse_operator(const char** memaddr)
{
const char *str = *memaddr;
cheevos_cond_op_t op;
if (*str == '=' && str[1] == '=')
{
op = CHEEVOS_COND_OP_EQUALS;
str += 2;
}
else if (*str == '=')
{
op = CHEEVOS_COND_OP_EQUALS;
str++;
}
else if (*str == '!' && str[1] == '=')
{
op = CHEEVOS_COND_OP_NOT_EQUAL_TO;
str += 2;
}
else if (*str == '<' && str[1] == '=')
{
op = CHEEVOS_COND_OP_LESS_THAN_OR_EQUAL;
str += 2;
}
else if (*str == '<')
{
op = CHEEVOS_COND_OP_LESS_THAN;
str++;
}
else if (*str == '>' && str[1] == '=')
{
op = CHEEVOS_COND_OP_GREATER_THAN_OR_EQUAL;
str += 2;
}
else if (*str == '>')
{
op = CHEEVOS_COND_OP_GREATER_THAN;
str++;
}
else
{
RARCH_ERR(CHEEVOS_TAG "unknown operator %c\n.", *str);
op = CHEEVOS_COND_OP_EQUALS;
}
*memaddr = str;
return op;
}
void cheevos_cond_parse(cheevos_cond_t* cond, const char** memaddr)
{
const char* str = *memaddr;
cond->type = CHEEVOS_COND_TYPE_STANDARD;
if (*str != 0 && str[1] == ':')
{
int skip = 2;
switch (*str)
{
case 'R':
cond->type = CHEEVOS_COND_TYPE_RESET_IF;
break;
case 'P':
cond->type = CHEEVOS_COND_TYPE_PAUSE_IF;
break;
case 'A':
cond->type = CHEEVOS_COND_TYPE_ADD_SOURCE;
break;
case 'B':
cond->type = CHEEVOS_COND_TYPE_SUB_SOURCE;
break;
case 'C':
cond->type = CHEEVOS_COND_TYPE_ADD_HITS;
break;
default:
skip = 0;
break;
}
str += skip;
}
cheevos_var_parse(&cond->source, &str);
cond->op = cheevos_cond_parse_operator(&str);
cheevos_var_parse(&cond->target, &str);
cond->curr_hits = 0;
if (*str == '(' || *str == '.')
{
char* end;
cond->req_hits = (unsigned)strtol(str + 1, &end, 10);
str = end + (*end == ')' || *end == '.');
}
else
cond->req_hits = 0;
*memaddr = str;
}
unsigned cheevos_cond_count_in_set(const char* memaddr, unsigned which)
{
cheevos_cond_t dummy;
unsigned index = 0;
unsigned count = 0;
for (;;)
{
for (;;)
{
cheevos_cond_parse(&dummy, &memaddr);
if (index == which)
count++;
if (*memaddr != '_')
break;
memaddr++;
}
index++;
if (*memaddr != 'S')
break;
memaddr++;
}
return count;
}
void cheevos_cond_parse_in_set(cheevos_cond_t* cond, const char* memaddr, unsigned which)
{
cheevos_cond_t dummy;
unsigned index = 0;
for (;;)
{
for (;;)
{
if (index == which)
{
cheevos_cond_parse(cond, &memaddr);
#ifdef CHEEVOS_VERBOSE
/*cheevos_log_cond(cond);*/
#endif
cond++;
}
else
cheevos_cond_parse(&dummy, &memaddr);
if (*memaddr != '_')
break;
memaddr++;
}
index++;
if (*memaddr != 'S')
break;
memaddr++;
}
}
+62
View File
@@ -0,0 +1,62 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2017 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_COND_H
#define __RARCH_CHEEVOS_COND_H
#include "var.h"
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef enum
{
CHEEVOS_COND_TYPE_STANDARD,
CHEEVOS_COND_TYPE_PAUSE_IF,
CHEEVOS_COND_TYPE_RESET_IF,
CHEEVOS_COND_TYPE_ADD_SOURCE,
CHEEVOS_COND_TYPE_SUB_SOURCE,
CHEEVOS_COND_TYPE_ADD_HITS
} cheevos_cond_type_t;
typedef enum
{
CHEEVOS_COND_OP_EQUALS,
CHEEVOS_COND_OP_LESS_THAN,
CHEEVOS_COND_OP_LESS_THAN_OR_EQUAL,
CHEEVOS_COND_OP_GREATER_THAN,
CHEEVOS_COND_OP_GREATER_THAN_OR_EQUAL,
CHEEVOS_COND_OP_NOT_EQUAL_TO
} cheevos_cond_op_t;
typedef struct
{
cheevos_cond_type_t type;
unsigned req_hits;
unsigned curr_hits;
cheevos_var_t source;
cheevos_cond_op_t op;
cheevos_var_t target;
} cheevos_cond_t;
void cheevos_cond_parse(cheevos_cond_t* cond, const char** memaddr);
unsigned cheevos_cond_count_in_set(const char* memaddr, unsigned which);
void cheevos_cond_parse_in_set(cheevos_cond_t* cond, const char* memaddr, unsigned which);
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_COND_H */
+83
View File
@@ -0,0 +1,83 @@
#ifndef CORO_H
#define CORO_H
/*
Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
*/
/* Use at the beginning of the coroutine, you must have declared a variable coro_t* coro */
#define CORO_ENTER() \
{ \
CORO_again: ; \
switch ( coro->step ) { \
case CORO_BEGIN: ;
/* Use to define labels which are targets to GOTO and GOSUB */
#define CORO_SUB( x ) \
case x: ;
/* Use at the end of the coroutine */
#define CORO_LEAVE() \
} \
} \
do { return 0; } while ( 0 )
/* Go to the x label */
#define CORO_GOTO( x ) \
do { \
coro->step = ( x ); \
goto CORO_again; \
} while ( 0 )
/* Go to a subroutine, execution continues until the subroutine returns via RET */
/* x is the subroutine label, y and z are the A and B arguments */
#define CORO_GOSUB( x ) \
do { \
coro->stack[ coro->sp++ ] = __LINE__; \
coro->step = ( x ); \
goto CORO_again; \
case __LINE__: ; \
} while ( 0 )
/* Returns from a subroutine */
#define CORO_RET() \
do { \
coro->step = coro->stack[ --coro->sp ]; \
goto CORO_again; \
} while ( 0 )
/* Yields to the caller, execution continues from this point when the coroutine is resumed */
#define CORO_YIELD() \
do { \
coro->step = __LINE__; \
return 1; \
case __LINE__: ; \
} while ( 0 )
#define CORO_STOP() \
do { \
return 0; \
} while ( 0 )
/* The coroutine entry point, never use 0 as a label */
#define CORO_BEGIN 0
/* Sets up a coroutine, x is a pointer to coro_t */
#define CORO_SETUP( x ) \
do { \
( x )->step = CORO_BEGIN; \
( x )->sp = 0; \
} while ( 0 )
#define CORO_VAR( x ) ( coro->x )
/* A coroutine */
typedef struct
{
CORO_VARS
int step, sp;
int stack[ 8 ];
}
coro_t;
#endif /* CORO_H */
+427
View File
@@ -0,0 +1,427 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2017 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <ctype.h>
#include <stdint.h>
#include <libretro.h>
#include "var.h"
#include "../retroarch.h"
#include "../core.h"
#include "../verbosity.h"
static void STUB_LOG(const char *fmt, ...)
{
(void)fmt;
}
#ifdef CHEEVOS_VERBOSE
#define CHEEVOS_LOG RARCH_LOG
#else
#define CHEEVOS_LOG STUB_LOG
#endif
/*****************************************************************************
Parsing
*****************************************************************************/
static cheevos_var_size_t cheevos_var_parse_prefix(const char** memaddr)
{
/* Careful not to use ABCDEF here, this denotes part of an actual variable! */
const char* str = *memaddr;
cheevos_var_size_t size;
switch (toupper((unsigned char)*str++))
{
case 'M':
size = CHEEVOS_VAR_SIZE_BIT_0;
break;
case 'N':
size = CHEEVOS_VAR_SIZE_BIT_1;
break;
case 'O':
size = CHEEVOS_VAR_SIZE_BIT_2;
break;
case 'P':
size = CHEEVOS_VAR_SIZE_BIT_3;
break;
case 'Q':
size = CHEEVOS_VAR_SIZE_BIT_4;
break;
case 'R':
size = CHEEVOS_VAR_SIZE_BIT_5;
break;
case 'S':
size = CHEEVOS_VAR_SIZE_BIT_6;
break;
case 'T':
size = CHEEVOS_VAR_SIZE_BIT_7;
break;
case 'L':
size = CHEEVOS_VAR_SIZE_NIBBLE_LOWER;
break;
case 'U':
size = CHEEVOS_VAR_SIZE_NIBBLE_UPPER;
break;
case 'H':
size = CHEEVOS_VAR_SIZE_EIGHT_BITS;
break;
case 'X':
size = CHEEVOS_VAR_SIZE_THIRTYTWO_BITS;
break;
default:
str--;
/* fall through */
case ' ':
size = CHEEVOS_VAR_SIZE_SIXTEEN_BITS;
break;
}
*memaddr = str;
return size;
}
static size_t cheevos_var_reduce(size_t addr, size_t mask)
{
while (mask)
{
size_t tmp = (mask - 1) & ~mask;
addr = (addr & tmp) | ((addr >> 1) & ~tmp);
mask = (mask & (mask - 1)) >> 1;
}
return addr;
}
static size_t cheevos_var_highest_bit(size_t n)
{
n |= n >> 1;
n |= n >> 2;
n |= n >> 4;
n |= n >> 8;
n |= n >> 16;
return n ^ (n >> 1);
}
void cheevos_var_parse(cheevos_var_t* var, const char** memaddr)
{
char *end = NULL;
const char *str = *memaddr;
unsigned base = 16;
var->is_bcd = false;
if (toupper((unsigned char)*str) == 'D' && str[1] == '0' && toupper((unsigned char)str[2]) == 'X')
{
/* d0x + 4 hex digits */
str += 3;
var->type = CHEEVOS_VAR_TYPE_DELTA_MEM;
}
else if (toupper((unsigned char)*str) == 'B' && str[1] == '0' && toupper((unsigned char)str[2]) == 'X')
{
/* b0x (binary-coded decimal) */
str += 3;
var->is_bcd = true;
var->type = CHEEVOS_VAR_TYPE_ADDRESS;
}
else if (*str == '0' && toupper((unsigned char)str[1]) == 'X')
{
/* 0x + 4 hex digits */
str += 2;
var->type = CHEEVOS_VAR_TYPE_ADDRESS;
}
else
{
var->type = CHEEVOS_VAR_TYPE_VALUE_COMP;
if (toupper((unsigned char)*str) == 'H')
str++;
else
{
if (toupper((unsigned char)*str) == 'V')
str++;
base = 10;
}
}
if (var->type != CHEEVOS_VAR_TYPE_VALUE_COMP)
{
var->size = cheevos_var_parse_prefix(&str);
}
var->value = (unsigned)strtol(str, &end, base);
*memaddr = end;
}
void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console)
{
rarch_system_info_t *system = runloop_get_system_info();
var->bank_id = -1;
if (console == CHEEVOS_CONSOLE_NINTENDO)
{
if (var->value >= 0x0800 && var->value < 0x2000)
{
CHEEVOS_LOG(CHEEVOS_TAG "NES memory address in mirrorred RAM %X, adjusted to %X\n", var->value, var->value & 0x07ff);
var->value &= 0x07ff;
}
}
else if (console == CHEEVOS_CONSOLE_GAMEBOY_COLOR)
{
if (var->value >= 0xe000 && var->value <= 0xfdff)
{
CHEEVOS_LOG(CHEEVOS_TAG "GBC memory address in echo RAM %X, adjusted to %X\n", var->value, var->value - 0x2000);
var->value -= 0x2000;
}
}
if (system->mmaps.num_descriptors != 0)
{
const rarch_memory_descriptor_t *desc = NULL;
const rarch_memory_descriptor_t *end = NULL;
/* Patch the address to correctly map it to the mmaps */
if (console == CHEEVOS_CONSOLE_GAMEBOY_ADVANCE)
{
if (var->value < 0x8000) /* Internal RAM */
{
CHEEVOS_LOG(CHEEVOS_TAG "GBA memory address %X adjusted to %X\n", var->value, var->value + 0x3000000);
var->value += 0x3000000;
}
else /* Work RAM */
{
CHEEVOS_LOG(CHEEVOS_TAG "GBA memory address %X adjusted to %X\n", var->value, var->value + 0x2000000 - 0x8000);
var->value += 0x2000000 - 0x8000;
}
}
else if (console == CHEEVOS_CONSOLE_PC_ENGINE)
{
CHEEVOS_LOG(CHEEVOS_TAG "PCE memory address %X adjusted to %X\n", var->value, var->value + 0x1f0000);
var->value += 0x1f0000;
}
else if (console == CHEEVOS_CONSOLE_SUPER_NINTENDO)
{
if (var->value < 0x020000) /* Work RAM */
{
CHEEVOS_LOG(CHEEVOS_TAG "SNES memory address %X adjusted to %X\n", var->value, var->value + 0x7e0000);
var->value += 0x7e0000;
}
else /* Save RAM */
{
CHEEVOS_LOG(CHEEVOS_TAG "SNES memory address %X adjusted to %X\n", var->value, var->value + 0x006000 - 0x020000);
var->value += 0x006000 - 0x020000;
}
}
desc = system->mmaps.descriptors;
end = desc + system->mmaps.num_descriptors;
for (; desc < end; desc++)
{
if (((desc->core.start ^ var->value) & desc->core.select) == 0)
{
unsigned addr = var->value;
var->bank_id = (int)(desc - system->mmaps.descriptors);
var->value = (unsigned)cheevos_var_reduce(
(addr - desc->core.start) & desc->disconnect_mask,
desc->core.disconnect);
if (var->value >= desc->core.len)
var->value -= cheevos_var_highest_bit(var->value);
var->value += desc->core.offset;
CHEEVOS_LOG(CHEEVOS_TAG "address %X set to descriptor %d at offset %X\n", addr, var->bank_id + 1, var->value);
break;
}
}
}
else
{
unsigned i;
for (i = 0; i < 4; i++)
{
retro_ctx_memory_info_t meminfo;
switch (i)
{
case 0:
meminfo.id = RETRO_MEMORY_SYSTEM_RAM;
break;
case 1:
meminfo.id = RETRO_MEMORY_SAVE_RAM;
break;
case 2:
meminfo.id = RETRO_MEMORY_VIDEO_RAM;
break;
case 3:
meminfo.id = RETRO_MEMORY_RTC;
break;
}
core_get_memory(&meminfo);
if (var->value < meminfo.size)
{
var->bank_id = i;
break;
}
/* HACK subtract the correct amount of bytes to reach the save RAM */
if (i == 0 && console == CHEEVOS_CONSOLE_NINTENDO)
var->value -= 0x6000;
else
var->value -= meminfo.size;
}
}
}
/*****************************************************************************
Testing
*****************************************************************************/
uint8_t* cheevos_var_get_memory(const cheevos_var_t* var)
{
uint8_t* memory = NULL;
if (var->bank_id >= 0)
{
rarch_system_info_t* system = runloop_get_system_info();
if (system->mmaps.num_descriptors != 0)
memory = (uint8_t*)system->mmaps.descriptors[var->bank_id].core.ptr;
else
{
retro_ctx_memory_info_t meminfo = {NULL, 0, 0};
switch (var->bank_id)
{
case 0:
meminfo.id = RETRO_MEMORY_SYSTEM_RAM;
break;
case 1:
meminfo.id = RETRO_MEMORY_SAVE_RAM;
break;
case 2:
meminfo.id = RETRO_MEMORY_VIDEO_RAM;
break;
case 3:
meminfo.id = RETRO_MEMORY_RTC;
break;
default:
RARCH_ERR(CHEEVOS_TAG "invalid bank id: %s\n", var->bank_id);
break;
}
core_get_memory(&meminfo);
memory = (uint8_t*)meminfo.data;
}
if (memory)
memory += var->value;
}
return memory;
}
unsigned cheevos_var_get_value(cheevos_var_t* var)
{
const uint8_t* memory = NULL;
unsigned value = 0;
switch (var->type)
{
case CHEEVOS_VAR_TYPE_VALUE_COMP:
value = var->value;
break;
case CHEEVOS_VAR_TYPE_ADDRESS:
case CHEEVOS_VAR_TYPE_DELTA_MEM:
memory = cheevos_var_get_memory(var);
if (memory)
{
value = memory[0];
switch (var->size)
{
case CHEEVOS_VAR_SIZE_BIT_0:
value &= 1;
break;
case CHEEVOS_VAR_SIZE_BIT_1:
value = (value >> 1) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_2:
value = (value >> 2) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_3:
value = (value >> 3) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_4:
value = (value >> 4) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_5:
value = (value >> 5) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_6:
value = (value >> 6) & 1;
break;
case CHEEVOS_VAR_SIZE_BIT_7:
value = (value >> 7) & 1;
break;
case CHEEVOS_VAR_SIZE_NIBBLE_LOWER:
value &= 0x0f;
break;
case CHEEVOS_VAR_SIZE_NIBBLE_UPPER:
value = (value >> 4) & 0x0f;
break;
case CHEEVOS_VAR_SIZE_EIGHT_BITS:
break;
case CHEEVOS_VAR_SIZE_SIXTEEN_BITS:
value |= memory[1] << 8;
break;
case CHEEVOS_VAR_SIZE_THIRTYTWO_BITS:
value |= memory[1] << 8;
value |= memory[2] << 16;
value |= memory[3] << 24;
break;
}
}
if (var->type == CHEEVOS_VAR_TYPE_DELTA_MEM)
{
unsigned previous = var->previous;
var->previous = value;
value = previous;
}
break;
case CHEEVOS_VAR_TYPE_DYNAMIC_VAR:
/* We shouldn't get here... */
break;
}
if(var->is_bcd)
return (((value >> 4) & 0xf) * 10) + (value & 0xf);
else
return value;
}
+78
View File
@@ -0,0 +1,78 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2017 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_VAR_H
#define __RARCH_CHEEVOS_VAR_H
#include <stdint.h>
#include "cheevos.h"
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef enum
{
CHEEVOS_VAR_SIZE_BIT_0 = 0,
CHEEVOS_VAR_SIZE_BIT_1,
CHEEVOS_VAR_SIZE_BIT_2,
CHEEVOS_VAR_SIZE_BIT_3,
CHEEVOS_VAR_SIZE_BIT_4,
CHEEVOS_VAR_SIZE_BIT_5,
CHEEVOS_VAR_SIZE_BIT_6,
CHEEVOS_VAR_SIZE_BIT_7,
CHEEVOS_VAR_SIZE_NIBBLE_LOWER,
CHEEVOS_VAR_SIZE_NIBBLE_UPPER,
/* Byte, */
CHEEVOS_VAR_SIZE_EIGHT_BITS, /* =Byte, */
CHEEVOS_VAR_SIZE_SIXTEEN_BITS,
CHEEVOS_VAR_SIZE_THIRTYTWO_BITS
} cheevos_var_size_t;
typedef enum
{
/* compare to the value of a live address in RAM */
CHEEVOS_VAR_TYPE_ADDRESS = 0,
/* a number. assume 32 bit */
CHEEVOS_VAR_TYPE_VALUE_COMP,
/* the value last known at this address. */
CHEEVOS_VAR_TYPE_DELTA_MEM,
/* a custom user-set variable */
CHEEVOS_VAR_TYPE_DYNAMIC_VAR
} cheevos_var_type_t;
typedef struct
{
cheevos_var_size_t size;
cheevos_var_type_t type;
int bank_id;
bool is_bcd;
unsigned value;
unsigned previous;
} cheevos_var_t;
void cheevos_var_parse(cheevos_var_t* var, const char** memaddr);
void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console);
uint8_t* cheevos_var_get_memory(const cheevos_var_t* var);
unsigned cheevos_var_get_value(cheevos_var_t* var);
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_VAR_H */
+821 -756
View File
File diff suppressed because it is too large. Load diff
+31 -9
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2016 - Brad Parker
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -61,6 +61,8 @@ enum event_command
/* Quits RetroArch. */
CMD_EVENT_QUIT,
/* Reinitialize all drivers. */
CMD_EVENT_REINIT_FROM_TOGGLE,
/* Reinitialize all drivers. */
CMD_EVENT_REINIT,
/* Toggles cheevos hardcore mode. */
CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE,
@@ -134,6 +136,8 @@ enum event_command
CMD_EVENT_REBOOT,
/* Resume RetroArch when in menu. */
CMD_EVENT_RESUME,
/* Add a playlist entry to favorites. */
CMD_EVENT_ADD_TO_FAVORITES,
/* Toggles pause. */
CMD_EVENT_PAUSE_TOGGLE,
/* Pauses RetroArch. */
@@ -191,12 +195,14 @@ enum event_command
CMD_EVENT_REMOTE_INIT,
/* Deinitializes remote gamepad interface. */
CMD_EVENT_REMOTE_DEINIT,
/* Initializes keyboard to gamepad mapper interface. */
CMD_EVENT_MAPPER_INIT,
/* Deinitializes keyboard to gamepad mapper interface. */
CMD_EVENT_MAPPER_DEINIT,
/* Reinitializes audio driver. */
CMD_EVENT_AUDIO_REINIT,
/* Resizes windowed scale. Will reinitialize video driver. */
CMD_EVENT_RESIZE_WINDOWED_SCALE,
/* Deinitializes temporary content. */
CMD_EVENT_TEMPORARY_CONTENT_DEINIT,
CMD_EVENT_LOG_FILE_DEINIT,
/* Toggles disk eject. */
CMD_EVENT_DISK_EJECT_TOGGLE,
@@ -217,15 +223,17 @@ enum event_command
CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG,
CMD_EVENT_VOLUME_UP,
CMD_EVENT_VOLUME_DOWN,
CMD_EVENT_MIXER_VOLUME_UP,
CMD_EVENT_MIXER_VOLUME_DOWN,
CMD_EVENT_DISABLE_OVERRIDES,
CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET
CMD_EVENT_RESTORE_REMAPS,
CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET,
CMD_EVENT_LIBUI_TEST
};
#ifdef HAVE_COMMAND
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD)
bool command_set_shader(const char *arg);
bool command_network_send(const char *cmd_);
#endif
#endif
bool command_network_new(
command_t *handle,
@@ -233,7 +241,7 @@ bool command_network_new(
bool network_enable,
uint16_t port);
command_t *command_new(bool local_enable);
command_t *command_new(void);
bool command_poll(command_t *handle);
@@ -253,6 +261,20 @@ bool command_free(command_t *handle);
**/
bool command_event(enum event_command action, void *data);
void command_playlist_push_write(
void *data,
const char *path,
const char *label,
const char *core_path,
const char *core_name);
void command_playlist_update_write(
void *data,
size_t idx,
const char *core_display_name,
const char *label,
const char *path);
RETRO_END_DECLS
#endif
+121 -386
View File
@@ -20,166 +20,12 @@
#include <boolean.h>
#include "gfx/video_defines.h"
#include "input/input_driver.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "input/input_driver.h"
#include "config.def.keybinds.h"
enum video_driver_enum
{
VIDEO_GL = 0,
VIDEO_VULKAN,
VIDEO_DRM,
VIDEO_XVIDEO,
VIDEO_SDL,
VIDEO_SDL2,
VIDEO_EXT,
VIDEO_WII,
VIDEO_WIIU,
VIDEO_XENON360,
VIDEO_XDK_D3D,
VIDEO_PSP1,
VIDEO_VITA2D,
VIDEO_CTR,
VIDEO_D3D9,
VIDEO_VG,
VIDEO_OMAP,
VIDEO_EXYNOS,
VIDEO_SUNXI,
VIDEO_DISPMANX,
VIDEO_CACA,
VIDEO_GDI,
VIDEO_VGA,
VIDEO_NULL
};
enum audio_driver_enum
{
AUDIO_RSOUND = VIDEO_NULL + 1,
AUDIO_OSS,
AUDIO_ALSA,
AUDIO_ALSATHREAD,
AUDIO_ROAR,
AUDIO_AL,
AUDIO_SL,
AUDIO_JACK,
AUDIO_SDL,
AUDIO_SDL2,
AUDIO_XAUDIO,
AUDIO_PULSE,
AUDIO_EXT,
AUDIO_DSOUND,
AUDIO_COREAUDIO,
AUDIO_PS3,
AUDIO_XENON360,
AUDIO_WII,
AUDIO_WIIU,
AUDIO_RWEBAUDIO,
AUDIO_PSP,
AUDIO_CTR,
AUDIO_NULL
};
enum audio_resampler_driver_enum
{
AUDIO_RESAMPLER_CC = AUDIO_NULL + 1,
AUDIO_RESAMPLER_SINC,
AUDIO_RESAMPLER_NEAREST,
AUDIO_RESAMPLER_NULL
};
enum input_driver_enum
{
INPUT_ANDROID = AUDIO_RESAMPLER_NULL + 1,
INPUT_SDL,
INPUT_SDL2,
INPUT_X,
INPUT_WAYLAND,
INPUT_DINPUT,
INPUT_PS3,
INPUT_PSP,
INPUT_CTR,
INPUT_XENON360,
INPUT_WII,
INPUT_WIIU,
INPUT_XINPUT,
INPUT_UDEV,
INPUT_LINUXRAW,
INPUT_COCOA,
INPUT_QNX,
INPUT_RWEBINPUT,
INPUT_DOS,
INPUT_NULL
};
enum joypad_driver_enum
{
JOYPAD_PS3 = INPUT_NULL + 1,
JOYPAD_XINPUT,
JOYPAD_GX,
JOYPAD_WIIU,
JOYPAD_XDK,
JOYPAD_PSP,
JOYPAD_CTR,
JOYPAD_DINPUT,
JOYPAD_UDEV,
JOYPAD_LINUXRAW,
JOYPAD_ANDROID,
JOYPAD_SDL,
JOYPAD_DOS,
JOYPAD_HID,
JOYPAD_QNX,
JOYPAD_NULL
};
enum camera_driver_enum
{
CAMERA_V4L2 = JOYPAD_NULL + 1,
CAMERA_RWEBCAM,
CAMERA_ANDROID,
CAMERA_AVFOUNDATION,
CAMERA_NULL
};
enum wifi_driver_enum
{
WIFI_CONNMANCTL = CAMERA_NULL + 1,
WIFI_NULL
};
enum location_driver_enum
{
LOCATION_ANDROID = WIFI_NULL + 1,
LOCATION_CORELOCATION,
LOCATION_NULL
};
enum osk_driver_enum
{
OSK_PS3 = LOCATION_NULL + 1,
OSK_NULL
};
enum menu_driver_enum
{
MENU_RGUI = OSK_NULL + 1,
MENU_XUI,
MENU_MATERIALUI,
MENU_XMB,
MENU_NUKLEAR,
MENU_NULL
};
enum record_driver_enum
{
RECORD_FFMPEG = MENU_NULL + 1,
RECORD_NULL
};
#if defined(HW_RVL)
#define MAX_GAMMA_SETTING 30
#elif defined(GEKKO)
@@ -188,224 +34,6 @@ enum record_driver_enum
#define MAX_GAMMA_SETTING 1
#endif
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(__CELLOS_LV2__)
#define VIDEO_DEFAULT_DRIVER VIDEO_GL
#elif defined(GEKKO)
#define VIDEO_DEFAULT_DRIVER VIDEO_WII
#elif defined(WIIU)
#define VIDEO_DEFAULT_DRIVER VIDEO_WIIU
#elif defined(XENON)
#define VIDEO_DEFAULT_DRIVER VIDEO_XENON360
#elif (defined(_XBOX1) || defined(_XBOX360)) && (defined(HAVE_D3D8) || defined(HAVE_D3D9))
#define VIDEO_DEFAULT_DRIVER VIDEO_XDK_D3D
#elif defined(HAVE_D3D9)
#define VIDEO_DEFAULT_DRIVER VIDEO_D3D9
#elif defined(HAVE_VG)
#define VIDEO_DEFAULT_DRIVER VIDEO_VG
#elif defined(HAVE_VITA2D)
#define VIDEO_DEFAULT_DRIVER VIDEO_VITA2D
#elif defined(PSP)
#define VIDEO_DEFAULT_DRIVER VIDEO_PSP1
#elif defined(_3DS)
#define VIDEO_DEFAULT_DRIVER VIDEO_CTR
#elif defined(HAVE_XVIDEO)
#define VIDEO_DEFAULT_DRIVER VIDEO_XVIDEO
#elif defined(HAVE_SDL)
#define VIDEO_DEFAULT_DRIVER VIDEO_SDL
#elif defined(HAVE_SDL2)
#define VIDEO_DEFAULT_DRIVER VIDEO_SDL2
#elif defined(_WIN32) && !defined(_XBOX)
#define VIDEO_DEFAULT_DRIVER VIDEO_GDI
#elif defined(DJGPP)
#define VIDEO_DEFAULT_DRIVER VIDEO_VGA
#elif defined(HAVE_DYLIB) && !defined(ANDROID)
#define VIDEO_DEFAULT_DRIVER VIDEO_EXT
#else
#define VIDEO_DEFAULT_DRIVER VIDEO_NULL
#endif
#if defined(__CELLOS_LV2__)
#define AUDIO_DEFAULT_DRIVER AUDIO_PS3
#elif defined(XENON)
#define AUDIO_DEFAULT_DRIVER AUDIO_XENON360
#elif defined(GEKKO)
#define AUDIO_DEFAULT_DRIVER AUDIO_WII
#elif defined(WIIU)
#define AUDIO_DEFAULT_DRIVER AUDIO_WIIU
#elif defined(PSP) || defined(VITA)
#define AUDIO_DEFAULT_DRIVER AUDIO_PSP
#elif defined(_3DS)
#define AUDIO_DEFAULT_DRIVER AUDIO_CTR
#elif defined(HAVE_PULSE)
#define AUDIO_DEFAULT_DRIVER AUDIO_PULSE
#elif defined(HAVE_ALSA) && defined(HAVE_VIDEOCORE)
#define AUDIO_DEFAULT_DRIVER AUDIO_ALSATHREAD
#elif defined(HAVE_ALSA)
#define AUDIO_DEFAULT_DRIVER AUDIO_ALSA
#elif defined(HAVE_OSS)
#define AUDIO_DEFAULT_DRIVER AUDIO_OSS
#elif defined(HAVE_JACK)
#define AUDIO_DEFAULT_DRIVER AUDIO_JACK
#elif defined(HAVE_COREAUDIO)
#define AUDIO_DEFAULT_DRIVER AUDIO_COREAUDIO
#elif defined(HAVE_XAUDIO)
#define AUDIO_DEFAULT_DRIVER AUDIO_XAUDIO
#elif defined(HAVE_DSOUND)
#define AUDIO_DEFAULT_DRIVER AUDIO_DSOUND
#elif defined(HAVE_AL)
#define AUDIO_DEFAULT_DRIVER AUDIO_AL
#elif defined(HAVE_SL)
#define AUDIO_DEFAULT_DRIVER AUDIO_SL
#elif defined(EMSCRIPTEN)
#define AUDIO_DEFAULT_DRIVER AUDIO_RWEBAUDIO
#elif defined(HAVE_SDL)
#define AUDIO_DEFAULT_DRIVER AUDIO_SDL
#elif defined(HAVE_SDL2)
#define AUDIO_DEFAULT_DRIVER AUDIO_SDL2
#elif defined(HAVE_RSOUND)
#define AUDIO_DEFAULT_DRIVER AUDIO_RSOUND
#elif defined(HAVE_ROAR)
#define AUDIO_DEFAULT_DRIVER AUDIO_ROAR
#elif defined(HAVE_DYLIB) && !defined(ANDROID)
#define AUDIO_DEFAULT_DRIVER AUDIO_EXT
#else
#define AUDIO_DEFAULT_DRIVER AUDIO_NULL
#endif
#if defined(PSP) || defined(EMSCRIPTEN)
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_CC
#else
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_SINC
#endif
#if defined(HAVE_FFMPEG)
#define RECORD_DEFAULT_DRIVER RECORD_FFMPEG
#else
#define RECORD_DEFAULT_DRIVER RECORD_NULL
#endif
#if defined(XENON)
#define INPUT_DEFAULT_DRIVER INPUT_XENON360
#elif defined(_XBOX360) || defined(_XBOX) || defined(HAVE_XINPUT2) || defined(HAVE_XINPUT_XBOX1)
#define INPUT_DEFAULT_DRIVER INPUT_XINPUT
#elif defined(ANDROID)
#define INPUT_DEFAULT_DRIVER INPUT_ANDROID
#elif defined(EMSCRIPTEN) && defined(HAVE_SDL2)
#define INPUT_DEFAULT_DRIVER INPUT_SDL2
#elif defined(EMSCRIPTEN)
#define INPUT_DEFAULT_DRIVER INPUT_RWEBINPUT
#elif defined(_WIN32)
#define INPUT_DEFAULT_DRIVER INPUT_DINPUT
#elif defined(__CELLOS_LV2__)
#define INPUT_DEFAULT_DRIVER INPUT_PS3
#elif defined(PSP) || defined(VITA)
#define INPUT_DEFAULT_DRIVER INPUT_PSP
#elif defined(_3DS)
#define INPUT_DEFAULT_DRIVER INPUT_CTR
#elif defined(GEKKO)
#define INPUT_DEFAULT_DRIVER INPUT_WII
#elif defined(WIIU)
#define INPUT_DEFAULT_DRIVER INPUT_WIIU
#elif defined(HAVE_UDEV)
#define INPUT_DEFAULT_DRIVER INPUT_UDEV
#elif defined(__linux__) && !defined(ANDROID)
#define INPUT_DEFAULT_DRIVER INPUT_LINUXRAW
#elif defined(HAVE_X11)
#define INPUT_DEFAULT_DRIVER INPUT_X
#elif defined(HAVE_WAYLAND)
#define INPUT_DEFAULT_DRIVER INPUT_WAYLAND
#elif defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
#define INPUT_DEFAULT_DRIVER INPUT_COCOA
#elif defined(__QNX__)
#define INPUT_DEFAULT_DRIVER INPUT_QNX
#elif defined(HAVE_SDL)
#define INPUT_DEFAULT_DRIVER INPUT_SDL
#elif defined(HAVE_SDL2)
#define INPUT_DEFAULT_DRIVER INPUT_SDL2
#elif defined(DJGPP)
#define INPUT_DEFAULT_DRIVER INPUT_DOS
#else
#define INPUT_DEFAULT_DRIVER INPUT_NULL
#endif
#if defined(__CELLOS_LV2__)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_PS3
#elif defined(HAVE_XINPUT)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_XINPUT
#elif defined(GEKKO)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_GX
#elif defined(WIIU)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_WIIU
#elif defined(_XBOX)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_XDK
#elif defined(PSP) || defined(VITA)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_PSP
#elif defined(_3DS)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_CTR
#elif defined(HAVE_DINPUT)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_DINPUT
#elif defined(HAVE_UDEV)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_UDEV
#elif defined(__linux) && !defined(ANDROID)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_LINUXRAW
#elif defined(ANDROID)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_ANDROID
#elif defined(HAVE_SDL) || defined(HAVE_SDL2)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_SDL
#elif defined(DJGPP)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_DOS
#elif defined(HAVE_HID)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_HID
#elif defined(__QNX__)
#define JOYPAD_DEFAULT_DRIVER JOYPAD_QNX
#else
#define JOYPAD_DEFAULT_DRIVER JOYPAD_NULL
#endif
#if defined(HAVE_V4L2)
#define CAMERA_DEFAULT_DRIVER CAMERA_V4L2
#elif defined(EMSCRIPTEN)
#define CAMERA_DEFAULT_DRIVER CAMERA_RWEBCAM
#elif defined(ANDROID)
#define CAMERA_DEFAULT_DRIVER CAMERA_ANDROID
#elif defined(HAVE_AVFOUNDATION) && (defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH))
#define CAMERA_DEFAULT_DRIVER CAMERA_AVFOUNDATION
#else
#define CAMERA_DEFAULT_DRIVER CAMERA_NULL
#endif
#if defined(HAVE_LAKKA)
#define WIFI_DEFAULT_DRIVER WIFI_CONNMANCTL
#else
#define WIFI_DEFAULT_DRIVER WIFI_NULL
#endif
#if defined(ANDROID)
#define LOCATION_DEFAULT_DRIVER LOCATION_ANDROID
#elif defined(HAVE_CORELOCATION) && (defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH))
#define LOCATION_DEFAULT_DRIVER LOCATION_CORELOCATION
#else
#define LOCATION_DEFAULT_DRIVER LOCATION_NULL
#endif
#if defined(__CELLOS_LV2__)
#define OSK_DEFAULT_DRIVER OSK_PS3
#else
#define OSK_DEFAULT_DRIVER OSK_NULL
#endif
#if defined(HAVE_XUI)
#define MENU_DEFAULT_DRIVER MENU_XUI
#elif defined(HAVE_MATERIALUI) && defined(RARCH_MOBILE)
#define MENU_DEFAULT_DRIVER MENU_MATERIALUI
#elif defined(HAVE_XMB)
#define MENU_DEFAULT_DRIVER MENU_XMB
#elif defined(HAVE_RGUI)
#define MENU_DEFAULT_DRIVER MENU_RGUI
#else
#define MENU_DEFAULT_DRIVER MENU_NULL
#endif
#if defined(XENON) || defined(_XBOX360) || defined(__CELLOS_LV2__)
#define DEFAULT_ASPECT_RATIO 1.7778f
#elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID)
@@ -420,8 +48,6 @@ static const bool pointer_enable = true;
static const bool pointer_enable = false;
#endif
/* Certain platforms might have assets stored in the bundle that
* we need to extract to a user-writable directory on first boot.
*
@@ -432,8 +58,13 @@ static bool bundle_assets_extract_enable = true;
static bool bundle_assets_extract_enable = false;
#endif
#ifdef HAVE_MATERIALUI
static bool materialui_icons_enable = true;
#endif
static const bool def_history_list_enable = true;
static const bool def_playlist_entry_remove = true;
static const bool def_playlist_entry_rename = true;
static const unsigned int def_user_language = 0;
@@ -484,6 +115,11 @@ static const unsigned window_y = 0;
static const unsigned fullscreen_x = 0;
static const unsigned fullscreen_y = 0;
/* Amount of transparency to use for the main window.
* 1 is the most transparent while 100 is opaque.
*/
static const unsigned window_opacity = 100;
#if defined(RARCH_CONSOLE) || defined(__APPLE__)
static const bool load_dummy_on_core_shutdown = false;
#else
@@ -594,16 +230,45 @@ static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
/* Save configuration file on exit. */
static bool config_save_on_exit = true;
static bool show_hidden_files = true;
static bool show_hidden_files = false;
static const bool overlay_hide_in_menu = true;
static const bool display_keyboard_overlay = false;
#ifdef HAVE_MENU
#include "menu/menu_display.h"
#include "menu/menu_driver.h"
static bool default_block_config_read = true;
static bool default_block_config_read = true;
static bool quick_menu_show_take_screenshot = true;
static bool quick_menu_show_save_load_state = true;
static bool quick_menu_show_undo_save_load_state = true;
static bool quick_menu_show_add_to_favorites = true;
static bool quick_menu_show_options = true;
static bool quick_menu_show_controls = true;
static bool quick_menu_show_cheats = true;
static bool quick_menu_show_shaders = true;
static bool quick_menu_show_save_core_overrides = true;
static bool quick_menu_show_save_game_overrides = true;
static bool quick_menu_show_information = true;
static bool kiosk_mode_enable = false;
static bool menu_show_online_updater = true;
static bool menu_show_load_core = true;
static bool menu_show_load_content = true;
static bool menu_show_information = true;
static bool menu_show_configurations = true;
static bool menu_show_help = true;
static bool menu_show_quit_retroarch = true;
static bool menu_show_reboot = true;
#if defined(HAVE_LAKKA) || defined(VITA)
static bool menu_show_core_updater = false;
#else
static bool menu_show_core_updater = true;
#endif
#ifdef HAVE_XMB
static unsigned xmb_scale_factor = 100;
@@ -616,32 +281,38 @@ static bool xmb_shadows_enable = false;
static bool xmb_shadows_enable = true;
#endif
static bool xmb_show_settings = true;
static bool xmb_show_favorites = true;
#ifdef HAVE_IMAGEVIEWER
static bool xmb_show_images = true;
#endif
#ifdef HAVE_FFMPEG
static bool xmb_show_music = true;
#ifdef HAVE_FFMPEG
static bool xmb_show_video = true;
#endif
#ifdef HAVE_NETWORKING
static bool xmb_show_netplay = true;
#endif
static bool xmb_show_history = true;
#ifdef HAVE_LIBRETRODB
static bool xmb_show_add = true;
#endif
#endif
static bool automatically_add_content_to_playlist = false;
static float menu_framebuffer_opacity = 0.900;
static float menu_wallpaper_opacity = 0.300;
static float menu_footer_opacity = 1.000;
static float menu_header_opacity = 1.000;
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) || defined(HAVE_VULKAN)
#if defined(HAVE_OPENGLES2) || (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
static unsigned menu_shader_pipeline = 1;
#else
static unsigned menu_shader_pipeline = 2;
#endif
#endif
static bool show_advanced_settings = false;
static const uint32_t menu_entry_normal_color = 0xffffffff;
@@ -652,7 +323,7 @@ static const uint32_t menu_title_color = 0xff64ff64;
static bool default_block_config_read = false;
#endif
static bool default_game_specific_options = false;
static bool default_game_specific_options = true;
static bool default_auto_overrides_enable = true;
static bool default_auto_remaps_enable = true;
static bool default_auto_shaders_enable = true;
@@ -660,6 +331,11 @@ static bool default_auto_shaders_enable = true;
static bool default_sort_savefiles_enable = false;
static bool default_sort_savestates_enable = false;
static bool default_savestates_in_content_dir = false;
static bool default_savefiles_in_content_dir = false;
static bool default_systemfiles_in_content_dir = false;
static bool default_screenshots_in_content_dir = false;
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L3_R3;
#elif defined(VITA)
@@ -673,6 +349,8 @@ static unsigned input_backtouch_enable = false;
static unsigned input_backtouch_toggle = false;
#endif
static bool show_physical_inputs = true;
static bool all_users_control_menu = false;
#if defined(ANDROID) || defined(_WIN32)
@@ -704,6 +382,12 @@ static const float message_pos_offset_y = 0.05;
* RGB hex value. */
static const uint32_t message_color = 0xffff00;
static const bool message_bgcolor_enable = false;
static const uint32_t message_bgcolor_red = 0;
static const uint32_t message_bgcolor_green = 0;
static const uint32_t message_bgcolor_blue = 0;
static const float message_bgcolor_opacity = 1.0f;
/* Record post-filtered (CPU filter) video,
* rather than raw game output. */
static const bool post_filter_record = false;
@@ -788,11 +472,24 @@ static const float max_timing_skew = 0.05;
/* Default audio volume in dB. (0.0 dB == unity gain). */
static const float audio_volume = 0.0;
/* Default audio volume of the audio mixer in dB. (0.0 dB == unity gain). */
static const float audio_mixer_volume = 0.0;
#ifdef HAVE_WASAPI
/* WASAPI defaults */
static const bool wasapi_exclusive_mode = true;
static const bool wasapi_float_format = false;
static const int wasapi_sh_buffer_length = -16; /* auto */
#endif
/* MISC */
/* Enables displaying the current frames per second. */
static const bool fps_show = false;
/* Show frame count on FPS display */
static const bool framecount_show = true;
/* Enables use of rewind. This will incur some memory footprint
* depending on the save state buffer. */
static const bool rewind_enable = false;
@@ -815,6 +512,18 @@ static const bool pause_nonactive = true;
* It is measured in seconds. A value of 0 disables autosave. */
static const unsigned autosave_interval = 0;
/* Publicly announce netplay */
static const bool netplay_public_announce = true;
/* Start netplay in spectator mode */
static const bool netplay_start_as_spectator = false;
/* Allow connections in slave mode */
static const bool netplay_allow_slaves = true;
/* Require connections only in slave mode */
static const bool netplay_require_slaves = false;
/* Netplay without savestates/rewind */
static const bool netplay_stateless_mode = false;
@@ -826,7 +535,9 @@ static const bool netplay_nat_traversal = false;
static const unsigned netplay_delay_frames = 16;
static const int netplay_check_frames = 30;
static const int netplay_check_frames = 600;
static const bool netplay_use_mitm_server = false;
/* On save state load, block SRAM from being overwritten.
* This could potentially lead to buggy games. */
@@ -880,7 +591,7 @@ static const unsigned menu_dpi_override_value = 200;
#endif
/* Log level for libretro cores (GET_LOG_INTERFACE). */
static const unsigned libretro_log_level = 0;
static const unsigned libretro_log_level = 1;
#ifndef RARCH_DEFAULT_PORT
#define RARCH_DEFAULT_PORT 55435
@@ -925,6 +636,8 @@ static const bool ui_companion_enable = false;
#if defined(ANDROID)
#if defined(ANDROID_ARM)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
#elif defined(ANDROID_AARCH64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/arm64-v8a/";
#elif defined(ANDROID_X86)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86/";
#else
@@ -943,19 +656,41 @@ static char buildbot_server_url[] = "http://bot.libretro.com/nightly/apple/osx/x
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
#endif
#elif defined(_WIN32) && !defined(_XBOX)
#if _MSC_VER == 1600
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86_64/latest/";
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2010/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86/latest/";
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2010/x86/latest/";
#endif
#elif _MSC_VER == 1400
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/";
#elif _MSC_VER == 1310
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/";
#else
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows/x86/latest/";
#endif
#endif
#elif defined(__linux__)
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86/latest/";
#elif defined(__arm__) && __ARM_ARCH == 7 && defined(__ARM_PCS_VFP)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/armhf/latest/";
#else
static char buildbot_server_url[] = "";
#endif
#elif defined(WIIU)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/";
#elif defined(__CELLOS_LV2__) && defined(DEX_BUILD)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/dex-ps3/";
#elif defined(__CELLOS_LV2__) && defined(CEX_BUILD)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/cex-ps3/";
#elif defined(__CELLOS_LV2__) && defined(ODE_BUILD)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/ode-ps3/";
#else
static char buildbot_server_url[] = "";
#endif
+184 -145
View File
@@ -22,163 +22,202 @@
/* User 1 */
static const struct retro_keybind retro_keybinds_1[] = {
/* | RetroPad button | enum | keyboard key | js btn | js axis | */
/* | RetroPad button | enum | keyboard key | m-btn | js btn | js axis | */
#ifdef __QNX__
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_k, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_i, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_v, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_b, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_e, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_s, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_w, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_d, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_l, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_o, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_f, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_j, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_r, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_u, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_g, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_h, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_k, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_i, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_v, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_b, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_e, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_s, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_w, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_d, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_l, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_o, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_f, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_j, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_r, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_u, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_g, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_h, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_SPACE, NO_BTN, NO_BTN, 0, AXIS_NONE },
#else
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_z, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_a, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_RETURN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UP, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_x, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_s, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_q, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_w, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_z, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_a, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_RETURN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UP, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_x, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_s, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_q, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_w, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_F4, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_F2, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_ESCAPE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_r, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_o, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_p, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_k, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_h, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_m, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_n, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_u, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_F8, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_F9, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_F12, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_i, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_e, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_SCROLLOCK, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_F1, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_F4, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_F2, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_ESCAPE, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_r, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_o, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_p, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_k, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_h, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_m, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_n, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_u, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_F8, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_F9, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_F12, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_i, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_e, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_SCROLLOCK, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_F1, NO_BTN, NO_BTN, 0, AXIS_NONE },
#endif
};
/* Users 2 to MAX_USERS */
static const struct retro_keybind retro_keybinds_rest[] = {
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
};
#endif
+12 -6
View File
@@ -134,6 +134,12 @@ static const bool _alsa_supp = true;
static const bool _alsa_supp = false;
#endif
#ifdef HAVE_TINYALSA
static const bool _tinyalsa_supp = true;
#else
static const bool _tinyalsa_supp = false;
#endif
#ifdef HAVE_COREAUDIO
static const bool _coreaudio_supp = true;
#else
@@ -194,6 +200,12 @@ static const bool _dsound_supp = true;
static const bool _dsound_supp = false;
#endif
#ifdef HAVE_WASAPI
static const bool _wasapi_supp = true;
#else
static const bool _wasapi_supp = false;
#endif
#ifdef HAVE_XAUDIO
static const bool _xaudio_supp = true;
#else
@@ -248,12 +260,6 @@ static const bool _sdl_image_supp = true;
static const bool _sdl_image_supp = false;
#endif
#ifdef HAVE_FBO
static const bool _fbo_supp = true;
#else
static const bool _fbo_supp = false;
#endif
#ifdef HAVE_DYNAMIC
static const bool _dynamic_supp = true;
#else
+1596 -864
View File
File diff suppressed because it is too large. Load diff
+386 -403
View File
@@ -23,14 +23,35 @@
#include <boolean.h>
#include <retro_common_api.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <retro_miscellaneous.h>
#include "gfx/video_driver.h"
#include "input/input_defines.h"
#define configuration_set_float(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar; \
}
#define configuration_set_bool(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar; \
}
#define configuration_set_uint(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar; \
}
#define configuration_set_int(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar; \
}
enum override_type
{
OVERRIDE_NONE = 0,
@@ -42,440 +63,404 @@ RETRO_BEGIN_DECLS
typedef struct settings
{
video_viewport_t video_viewport_custom;
char playlist_names[PATH_MAX_LENGTH];
char playlist_cores[PATH_MAX_LENGTH];
bool bundle_finished;
struct
{
char driver[32];
char context_driver[32];
float scale;
unsigned window_x;
unsigned window_y;
bool fullscreen;
bool windowed_fullscreen;
unsigned monitor_index;
unsigned fullscreen_x;
unsigned fullscreen_y;
bool vsync;
bool hard_sync;
bool black_frame_insertion;
unsigned max_swapchain_images;
unsigned swap_interval;
unsigned hard_sync_frames;
unsigned frame_delay;
#ifdef GEKKO
unsigned viwidth;
bool vfilter;
#endif
bool smooth;
bool force_aspect;
bool crop_overscan;
float aspect_ratio;
bool aspect_ratio_auto;
bool scale_integer;
unsigned aspect_ratio_idx;
unsigned rotation;
bool placeholder;
bool shader_enable;
/* Video */
bool video_fullscreen;
bool video_windowed_fullscreen;
bool video_vsync;
bool video_hard_sync;
bool video_black_frame_insertion;
bool video_vfilter;
bool video_smooth;
bool video_force_aspect;
bool video_crop_overscan;
bool video_aspect_ratio_auto;
bool video_scale_integer;
bool video_shader_enable;
bool video_threaded;
bool video_font_enable;
bool video_disable_composition;
bool video_post_filter_record;
bool video_gpu_record;
bool video_gpu_screenshot;
bool video_allow_rotate;
bool video_shared_context;
bool video_force_srgb_disable;
bool video_fps_show;
bool video_framecount_show;
bool video_msg_bgcolor_enable;
float refresh_rate;
bool threaded;
/* Audio */
bool audio_enable;
bool audio_sync;
bool audio_rate_control;
bool audio_wasapi_exclusive_mode;
bool audio_wasapi_float_format;
float font_size;
bool font_enable;
float msg_pos_x;
float msg_pos_y;
float msg_color_r;
float msg_color_g;
float msg_color_b;
bool disable_composition;
bool post_filter_record;
bool gpu_record;
bool gpu_screenshot;
bool allow_rotate;
bool shared_context;
bool force_srgb_disable;
} video;
struct
{
char driver[32];
} record;
struct
{
bool menubar_enable;
bool suspend_screensaver_enable;
bool companion_start_on_boot;
bool companion_enable;
} ui;
#ifdef HAVE_MENU
struct
{
char driver[32];
bool pause_libretro;
bool timedate_enable;
bool battery_level_enable;
bool core_enable;
bool dynamic_wallpaper_enable;
unsigned thumbnails;
bool throttle;
struct
{
float opacity;
} wallpaper;
struct
{
float opacity;
} footer;
struct
{
float opacity;
} header;
struct
{
bool enable;
} mouse;
struct
{
bool enable;
} pointer;
struct
{
struct
{
bool enable;
} wraparound;
struct
{
struct
{
bool supported_extensions_enable;
} filter;
} browser;
} navigation;
struct
{
bool override_enable;
unsigned override_value;
} dpi;
bool show_advanced_settings;
unsigned entry_normal_color;
unsigned entry_hover_color;
unsigned title_color;
bool throttle_framerate;
bool linear_filter;
struct
{
unsigned shader_pipeline;
char font[PATH_MAX_LENGTH];
unsigned scale_factor;
unsigned alpha_factor;
unsigned theme;
unsigned menu_color_theme;
bool shadows_enable;
bool show_settings;
bool show_images;
bool show_music;
bool show_video;
bool show_history;
bool show_add;
} xmb;
struct
{
unsigned menu_color_theme;
} materialui;
bool unified_controls;
} menu;
#endif
#ifdef HAVE_THREADS
bool threaded_data_runloop_enable;
#endif
struct
{
char driver[32];
char device[255];
bool allow;
unsigned width;
unsigned height;
} camera;
struct
{
char driver[32];
bool allow;
} wifi;
struct
{
char driver[32];
bool allow;
int update_interval_ms;
int update_interval_distance;
} location;
struct
{
char driver[32];
char resampler[32];
char device[255];
bool enable;
bool mute_enable;
unsigned out_rate;
unsigned block_frames;
unsigned latency;
bool sync;
bool rate_control;
float rate_control_delta;
float max_timing_skew;
float volume; /* dB scale. */
} audio;
struct
{
char driver[32];
char joypad_driver[32];
char keyboard_layout[64];
char device_names[MAX_USERS][64];
unsigned remap_ids[MAX_USERS][RARCH_BIND_LIST_END];
struct retro_keybind binds[MAX_USERS][RARCH_BIND_LIST_END];
struct retro_keybind autoconf_binds[MAX_USERS][RARCH_BIND_LIST_END];
unsigned max_users;
/* Set by autoconfiguration in joypad_autoconfig_dir.
* Does not override main binds. */
bool autoconfigured[MAX_USERS];
int vid[MAX_USERS];
int pid[MAX_USERS];
unsigned libretro_device[MAX_USERS];
unsigned analog_dpad_mode[MAX_USERS];
bool remap_binds_enable;
float axis_threshold;
unsigned joypad_map[MAX_USERS];
unsigned device[MAX_USERS];
unsigned device_name_index[MAX_USERS];
bool autodetect_enable;
unsigned turbo_period;
unsigned turbo_duty_cycle;
bool overlay_enable;
bool overlay_enable_autopreferred;
bool overlay_hide_in_menu;
float overlay_opacity;
float overlay_scale;
unsigned bind_timeout;
/* Input */
bool input_remap_binds_enable;
bool input_autodetect_enable;
bool input_overlay_enable;
bool input_overlay_enable_autopreferred;
bool input_overlay_hide_in_menu;
bool input_overlay_show_physical_inputs;
bool input_descriptor_label_show;
bool input_descriptor_hide_unbound;
bool input_all_users_control_menu;
bool input_menu_swap_ok_cancel_buttons;
bool input_backtouch_enable;
bool input_backtouch_toggle;
bool input_small_keyboard_enable;
bool input_keyboard_gamepad_enable;
unsigned menu_toggle_gamepad_combo;
bool all_users_control_menu;
/* Menu */
bool filter_by_current_core;
bool menu_show_start_screen;
bool menu_pause_libretro;
bool menu_timedate_enable;
bool menu_battery_level_enable;
bool menu_core_enable;
bool menu_dynamic_wallpaper_enable;
bool menu_throttle;
bool menu_mouse_enable;
bool menu_pointer_enable;
bool menu_navigation_wraparound_enable;
bool menu_navigation_browser_filter_supported_extensions_enable;
bool menu_dpi_override_enable;
bool menu_show_advanced_settings;
bool menu_throttle_framerate;
bool menu_linear_filter;
bool menu_horizontal_animation;
bool menu_show_online_updater;
bool menu_show_core_updater;
bool menu_show_load_core;
bool menu_show_load_content;
bool menu_show_information;
bool menu_show_configurations;
bool menu_show_help;
bool menu_show_quit_retroarch;
bool menu_show_reboot;
bool menu_materialui_icons_enable;
bool menu_xmb_shadows_enable;
bool menu_xmb_show_settings;
bool menu_xmb_show_favorites;
bool menu_xmb_show_images;
bool menu_xmb_show_music;
bool menu_xmb_show_video;
bool menu_xmb_show_netplay;
bool menu_xmb_show_history;
bool menu_xmb_show_add;
bool menu_unified_controls;
bool quick_menu_show_take_screenshot;
bool quick_menu_show_save_load_state;
bool quick_menu_show_undo_save_load_state;
bool quick_menu_show_add_to_favorites;
bool quick_menu_show_options;
bool quick_menu_show_controls;
bool quick_menu_show_cheats;
bool quick_menu_show_shaders;
bool quick_menu_show_save_core_overrides;
bool quick_menu_show_save_game_overrides;
bool quick_menu_show_information;
bool kiosk_mode_enable;
bool menu_swap_ok_cancel_buttons;
#if defined(VITA)
bool backtouch_enable;
bool backtouch_toggle;
#endif
#if TARGET_OS_IPHONE
bool small_keyboard_enable;
#endif
bool keyboard_gamepad_enable;
unsigned keyboard_gamepad_mapping_type;
unsigned poll_type_behavior;
} input;
/* Netplay */
bool netplay_public_announce;
bool netplay_start_as_spectator;
bool netplay_allow_slaves;
bool netplay_require_slaves;
bool netplay_stateless_mode;
bool netplay_swap_input;
bool netplay_nat_traversal;
bool netplay_use_mitm_server;
/* Network */
bool network_buildbot_auto_extract_archive;
/* UI */
bool ui_menubar_enable;
bool ui_suspend_screensaver_enable;
bool ui_companion_start_on_boot;
bool ui_companion_enable;
/* Cheevos */
bool cheevos_enable;
bool cheevos_test_unofficial;
bool cheevos_hardcore_mode_enable;
bool cheevos_leaderboards_enable;
bool cheevos_badges_enable;
bool cheevos_verbose_enable;
/* Camera */
bool camera_allow;
/* WiFi */
bool wifi_allow;
/* Location */
bool location_allow;
/* Multimedia */
bool multimedia_builtin_mediaplayer_enable;
bool multimedia_builtin_imageviewer_enable;
/* Bundle */
bool bundle_finished;
bool bundle_assets_extract_enable;
/* Misc. */
bool threaded_data_runloop_enable;
bool set_supports_no_game_enable;
bool auto_screenshot_filename;
bool history_list_enable;
bool playlist_entry_remove;
bool playlist_entry_rename;
bool rewind_enable;
bool pause_nonactive;
bool block_sram_overwrite;
bool savestate_auto_index;
bool savestate_auto_save;
bool savestate_auto_load;
bool savestate_thumbnail_enable;
bool network_cmd_enable;
bool stdin_cmd_enable;
bool keymapper_enable;
bool network_remote_enable;
bool network_remote_enable_user[MAX_USERS];
bool load_dummy_on_core_shutdown;
bool check_firmware_before_loading;
bool game_specific_options;
bool auto_overrides_enable;
bool auto_remaps_enable;
bool auto_shaders_enable;
bool sort_savefiles_enable;
bool sort_savestates_enable;
bool config_save_on_exit;
bool show_hidden_files;
bool savefiles_in_content_dir;
bool savestates_in_content_dir;
bool screenshots_in_content_dir;
bool systemfiles_in_content_dir;
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
bool automatically_add_content_to_playlist;
} bools;
struct
{
unsigned mode;
} archive;
float placeholder;
float video_scale;
float video_aspect_ratio;
float video_refresh_rate;
float video_font_size;
float video_msg_pos_x;
float video_msg_pos_y;
float video_msg_color_r;
float video_msg_color_g;
float video_msg_color_b;
float video_msg_bgcolor_opacity;
float menu_wallpaper_opacity;
float menu_framebuffer_opacity;
float menu_footer_opacity;
float menu_header_opacity;
float audio_max_timing_skew;
float audio_volume; /* dB scale. */
float audio_mixer_volume; /* dB scale. */
float input_overlay_opacity;
float input_overlay_scale;
float slowmotion_ratio;
float fastforward_ratio;
} floats;
struct
{
char buildbot_url[255];
char buildbot_assets_url[255];
bool buildbot_auto_extract_archive;
} network;
bool set_supports_no_game_enable;
int placeholder;
int netplay_check_frames;
int location_update_interval_ms;
int location_update_interval_distance;
int state_slot;
int audio_wasapi_sh_buffer_length;
} ints;
struct
{
bool builtin_mediaplayer_enable;
bool builtin_imageviewer_enable;
} multimedia;
unsigned placeholder;
unsigned audio_out_rate;
unsigned audio_block_frames;
unsigned audio_latency;
#ifdef HAVE_CHEEVOS
struct
{
bool enable;
bool test_unofficial;
bool hardcore_mode_enable;
char username[32];
char password[32];
} cheevos;
#endif
char browse_url[4096];
int state_slot;
unsigned input_turbo_period;
unsigned input_turbo_duty_cycle;
bool bundle_assets_extract_enable;
unsigned bundle_assets_extract_version_current;
unsigned bundle_assets_extract_last_version;
unsigned input_bind_timeout;
unsigned input_menu_toggle_gamepad_combo;
unsigned input_keyboard_gamepad_mapping_type;
unsigned input_poll_type_behavior;
unsigned netplay_port;
unsigned netplay_input_latency_frames_min;
unsigned netplay_input_latency_frames_range;
unsigned bundle_assets_extract_version_current;
unsigned bundle_assets_extract_last_version;
unsigned content_history_size;
unsigned libretro_log_level;
unsigned rewind_granularity;
unsigned autosave_interval;
unsigned network_cmd_port;
unsigned network_remote_base_port;
unsigned keymapper_port;
unsigned video_window_x;
unsigned video_window_y;
unsigned video_window_opacity;
unsigned video_monitor_index;
unsigned video_fullscreen_x;
unsigned video_fullscreen_y;
unsigned video_max_swapchain_images;
unsigned video_swap_interval;
unsigned video_hard_sync_frames;
unsigned video_frame_delay;
unsigned video_viwidth;
unsigned video_aspect_ratio_idx;
unsigned video_rotation;
unsigned video_msg_bgcolor_red;
unsigned video_msg_bgcolor_green;
unsigned video_msg_bgcolor_blue;
unsigned menu_thumbnails;
unsigned menu_dpi_override_value;
unsigned menu_entry_normal_color;
unsigned menu_entry_hover_color;
unsigned menu_title_color;
unsigned menu_xmb_shader_pipeline;
unsigned menu_xmb_scale_factor;
unsigned menu_xmb_alpha_factor;
unsigned menu_xmb_theme;
unsigned menu_xmb_color_theme;
unsigned menu_materialui_color_theme;
unsigned camera_width;
unsigned camera_height;
unsigned input_overlay_show_physical_inputs_port;
unsigned input_joypad_map[MAX_USERS];
unsigned input_device[MAX_USERS];
unsigned input_mouse_index[MAX_USERS];
/* Set by autoconfiguration in joypad_autoconfig_dir.
* Does not override main binds. */
unsigned input_libretro_device[MAX_USERS];
unsigned input_analog_dpad_mode[MAX_USERS];
unsigned input_keymapper_ids[RARCH_CUSTOM_BIND_LIST_END];
unsigned input_remap_ids[MAX_USERS][RARCH_CUSTOM_BIND_LIST_END];
} uints;
struct
{
char cheat_database[PATH_MAX_LENGTH];
char content_database[PATH_MAX_LENGTH];
char overlay[PATH_MAX_LENGTH];
char menu_wallpaper[PATH_MAX_LENGTH];
char audio_dsp_plugin[PATH_MAX_LENGTH];
char softfilter_plugin[PATH_MAX_LENGTH];
char core_options[PATH_MAX_LENGTH];
char content_history[PATH_MAX_LENGTH];
char content_music_history[PATH_MAX_LENGTH];
char content_image_history[PATH_MAX_LENGTH];
char content_video_history[PATH_MAX_LENGTH];
char libretro_info[PATH_MAX_LENGTH];
char cheat_settings[PATH_MAX_LENGTH];
char placeholder;
char video_driver[32];
char record_driver[32];
char camera_driver[32];
char wifi_driver[32];
char location_driver[32];
char menu_driver[32];
char cheevos_username[32];
char cheevos_password[32];
char video_context_driver[32];
char audio_driver[32];
char audio_resampler[32];
char input_driver[32];
char input_joypad_driver[32];
char input_keyboard_layout[64];
char audio_device[255];
char camera_device[255];
char playlist_names[PATH_MAX_LENGTH];
char playlist_cores[PATH_MAX_LENGTH];
char bundle_assets_src[PATH_MAX_LENGTH];
char bundle_assets_dst[PATH_MAX_LENGTH];
char bundle_assets_dst_subdir[PATH_MAX_LENGTH];
char shader[PATH_MAX_LENGTH];
char font[PATH_MAX_LENGTH];
} path;
} arrays;
struct
{
char audio_filter[PATH_MAX_LENGTH];
char autoconfig[PATH_MAX_LENGTH];
char video_filter[PATH_MAX_LENGTH];
char video_shader[PATH_MAX_LENGTH];
char content_history[PATH_MAX_LENGTH];
char libretro[PATH_MAX_LENGTH];
char cursor[PATH_MAX_LENGTH];
char input_remapping[PATH_MAX_LENGTH];
char overlay[PATH_MAX_LENGTH];
char resampler[PATH_MAX_LENGTH];
char screenshot[PATH_MAX_LENGTH];
char system[PATH_MAX_LENGTH];
char cache[PATH_MAX_LENGTH];
char playlist[PATH_MAX_LENGTH];
char core_assets[PATH_MAX_LENGTH];
char assets[PATH_MAX_LENGTH];
char dynamic_wallpapers[PATH_MAX_LENGTH];
char thumbnails[PATH_MAX_LENGTH];
char menu_config[PATH_MAX_LENGTH];
char menu_content[PATH_MAX_LENGTH];
} directory;
char placeholder;
#ifdef HAVE_NETWORKING
struct
{
char server[255];
unsigned port;
bool stateless_mode;
int check_frames;
unsigned input_latency_frames_min;
unsigned input_latency_frames_range;
bool swap_input;
bool nat_traversal;
char password[128];
char spectate_password[128];
} netplay;
#endif
char username[32];
char netplay_password[128];
char netplay_spectate_password[128];
char netplay_server[255];
char network_buildbot_url[255];
char network_buildbot_assets_url[255];
char browse_url[4096];
unsigned content_history_size;
char path_menu_xmb_font[PATH_MAX_LENGTH];
char menu_xmb_show_settings_password[PATH_MAX_LENGTH];
char kiosk_mode_password[PATH_MAX_LENGTH];
char path_cheat_database[PATH_MAX_LENGTH];
char path_content_database[PATH_MAX_LENGTH];
char path_overlay[PATH_MAX_LENGTH];
char path_menu_wallpaper[PATH_MAX_LENGTH];
char path_audio_dsp_plugin[PATH_MAX_LENGTH];
char path_softfilter_plugin[PATH_MAX_LENGTH];
char path_core_options[PATH_MAX_LENGTH];
char path_content_history[PATH_MAX_LENGTH];
char path_content_favorites[PATH_MAX_LENGTH];
char path_content_music_history[PATH_MAX_LENGTH];
char path_content_image_history[PATH_MAX_LENGTH];
char path_content_video_history[PATH_MAX_LENGTH];
char path_libretro_info[PATH_MAX_LENGTH];
char path_cheat_settings[PATH_MAX_LENGTH];
char path_shader[PATH_MAX_LENGTH];
char path_font[PATH_MAX_LENGTH];
unsigned libretro_log_level;
bool auto_screenshot_filename;
char directory_audio_filter[PATH_MAX_LENGTH];
char directory_autoconfig[PATH_MAX_LENGTH];
char directory_video_filter[PATH_MAX_LENGTH];
char directory_video_shader[PATH_MAX_LENGTH];
char directory_content_history[PATH_MAX_LENGTH];
char directory_content_favorites[PATH_MAX_LENGTH];
char directory_libretro[PATH_MAX_LENGTH];
char directory_cursor[PATH_MAX_LENGTH];
char directory_input_remapping[PATH_MAX_LENGTH];
char directory_overlay[PATH_MAX_LENGTH];
char directory_resampler[PATH_MAX_LENGTH];
char directory_screenshot[PATH_MAX_LENGTH];
char directory_system[PATH_MAX_LENGTH];
char directory_cache[PATH_MAX_LENGTH];
char directory_playlist[PATH_MAX_LENGTH];
char directory_core_assets[PATH_MAX_LENGTH];
char directory_assets[PATH_MAX_LENGTH];
char directory_dynamic_wallpapers[PATH_MAX_LENGTH];
char directory_thumbnails[PATH_MAX_LENGTH];
char directory_menu_config[PATH_MAX_LENGTH];
char directory_menu_content[PATH_MAX_LENGTH];
} paths;
bool modified;
video_viewport_t video_viewport_custom;
bool history_list_enable;
bool playlist_entry_remove;
bool rewind_enable;
size_t rewind_buffer_size;
unsigned rewind_granularity;
float slowmotion_ratio;
float fastforward_ratio;
bool pause_nonactive;
unsigned autosave_interval;
bool block_sram_overwrite;
bool savestate_auto_index;
bool savestate_auto_save;
bool savestate_auto_load;
bool savestate_thumbnail_enable;
bool network_cmd_enable;
unsigned network_cmd_port;
bool stdin_cmd_enable;
bool network_remote_enable;
bool network_remote_enable_user[MAX_USERS];
unsigned network_remote_base_port;
#if defined(HAVE_MENU)
bool menu_show_start_screen;
#endif
bool fps_show;
bool load_dummy_on_core_shutdown;
bool check_firmware_before_loading;
bool game_specific_options;
bool auto_overrides_enable;
bool auto_remaps_enable;
bool auto_shaders_enable;
bool sort_savefiles_enable;
bool sort_savestates_enable;
char username[32];
#ifdef HAVE_LANGEXTRA
unsigned int user_language;
#endif
bool config_save_on_exit;
bool show_hidden_files;
#ifdef HAVE_LAKKA
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
#endif
} settings_t;
/**
@@ -550,7 +535,6 @@ const char *config_get_default_input(void);
**/
const char *config_get_default_joypad(void);
#ifdef HAVE_MENU
/**
* config_get_default_menu:
*
@@ -559,7 +543,6 @@ const char *config_get_default_joypad(void);
* Returns: Default menu driver.
**/
const char *config_get_default_menu(void);
#endif
const char *config_get_default_record(void);
+3 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2016 - Brad Parker
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2017 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
@@ -66,7 +66,7 @@ void content_set_does_not_need_content(void);
void content_unset_does_not_need_content(void);
bool content_get_crc(uint32_t **content_crc_ptr);
uint32_t content_get_crc(void);
void content_deinit(void);
+8 -17
View File
@@ -30,14 +30,14 @@ RETRO_BEGIN_DECLS
enum
{
/* Polling is performed before
/* Polling is performed before
* call to retro_run. */
POLL_TYPE_EARLY = 0,
/* Polling is performed when requested. */
POLL_TYPE_NORMAL,
/* Polling is performed on first call to
/* Polling is performed on first call to
* retro_input_state per frame. */
POLL_TYPE_LATE
};
@@ -60,11 +60,12 @@ typedef struct rarch_system_info
unsigned rotation;
unsigned performance_level;
bool load_no_content;
const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
char valid_extensions[255];
struct retro_disk_control_callback disk_control_cb;
struct retro_disk_control_callback disk_control_cb;
struct retro_location_callback location_cb;
struct
@@ -78,7 +79,7 @@ typedef struct rarch_system_info
struct retro_controller_info *data;
unsigned size;
} ports;
rarch_memory_map_t mmaps;
} rarch_system_info_t;
@@ -141,14 +142,6 @@ typedef struct retro_ctx_environ_info
retro_environment_t env;
} retro_ctx_environ_info_t;
typedef struct retro_ctx_frame_info
{
const void *data;
unsigned width;
unsigned height;
size_t pitch;
} retro_ctx_frame_info_t;
typedef struct retro_callbacks
{
retro_video_refresh_t frame_cb;
@@ -162,7 +155,7 @@ bool core_load(unsigned poll_type_behavior);
bool core_unload(void);
bool core_set_default_callbacks(void *data);
bool core_set_default_callbacks(struct retro_callbacks *cbs);
bool core_set_rewind_callbacks(void);
@@ -185,10 +178,6 @@ bool core_unload_game(void);
bool core_reset(void);
void core_frame(retro_ctx_frame_info_t *info);
bool core_poll(void);
bool core_set_environment(retro_ctx_environ_info_t *info);
bool core_serialize_size(retro_ctx_size_info_t *info);
@@ -249,6 +238,8 @@ bool core_is_inited(void);
bool core_is_game_loaded(void);
extern struct retro_callbacks retro_ctx;
RETRO_END_DECLS
#endif
+93 -114
View File
@@ -1,8 +1,8 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
* Copyright (C) 2016 - Brad Parker
* Copyright (C) 2016-2017 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
@@ -44,39 +44,44 @@
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
static unsigned core_poll_type = POLL_TYPE_EARLY;
static bool core_inited = false;
static bool core_symbols_inited = false;
static bool core_game_loaded = false;
static bool core_input_polled = false;
static bool core_has_set_input_descriptors = false;
static uint64_t core_serialization_quirks_v = 0;
struct retro_callbacks retro_ctx;
struct retro_core_t current_core;
static struct retro_callbacks retro_ctx;
static struct retro_core_t core;
static void retro_run_null(void)
{
}
static void retro_frame_null(const void *data, unsigned width,
unsigned height, size_t pitch)
{
}
static void retro_input_poll_null(void)
{
}
static void core_input_state_poll_maybe(void)
{
if (core_poll_type == POLL_TYPE_NORMAL)
if (current_core.poll_type == POLL_TYPE_NORMAL)
input_poll();
}
static int16_t core_input_state_poll(unsigned port,
unsigned device, unsigned idx, unsigned id)
{
if (core_poll_type == POLL_TYPE_LATE)
if (current_core.poll_type == POLL_TYPE_LATE)
{
if (!core_input_polled)
if (!current_core.input_polled)
input_poll();
core_input_polled = true;
current_core.input_polled = true;
}
return input_state(port, device, idx, id);
}
void core_set_input_state(retro_ctx_input_state_info_t *info)
{
core.retro_set_input_state(info->cb);
current_core.retro_set_input_state(info->cb);
}
/**
@@ -86,18 +91,13 @@ void core_set_input_state(retro_ctx_input_state_info_t *info)
* Initializes libretro callbacks, and binds the libretro callbacks
* to default callback functions.
**/
static bool core_init_libretro_cbs(void *data)
static bool core_init_libretro_cbs(struct retro_callbacks *cbs)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
if (!cbs)
return false;
core.retro_set_video_refresh(video_driver_frame);
core.retro_set_audio_sample(audio_driver_sample);
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
core.retro_set_input_state(core_input_state_poll);
core.retro_set_input_poll(core_input_state_poll_maybe);
current_core.retro_set_video_refresh(video_driver_frame);
current_core.retro_set_audio_sample(audio_driver_sample);
current_core.retro_set_audio_sample_batch(audio_driver_sample_batch);
current_core.retro_set_input_state(core_input_state_poll);
current_core.retro_set_input_poll(core_input_state_poll_maybe);
core_set_default_callbacks(cbs);
@@ -117,13 +117,8 @@ static bool core_init_libretro_cbs(void *data)
*
* Binds the libretro callbacks to default callback functions.
**/
bool core_set_default_callbacks(void *data)
bool core_set_default_callbacks(struct retro_callbacks *cbs)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
if (!cbs)
return false;
cbs->frame_cb = video_driver_frame;
cbs->sample_cb = audio_driver_sample;
cbs->sample_batch_cb = audio_driver_sample_batch;
@@ -141,13 +136,13 @@ bool core_deinit(void *data)
if (!cbs)
return false;
cbs->frame_cb = NULL;
cbs->frame_cb = retro_frame_null;
cbs->sample_cb = NULL;
cbs->sample_batch_cb = NULL;
cbs->state_cb = NULL;
cbs->poll_cb = NULL;
cbs->poll_cb = retro_input_poll_null;
core_inited = false;
current_core.inited = false;
return true;
}
@@ -167,13 +162,13 @@ bool core_set_rewind_callbacks(void)
{
if (state_manager_frame_is_reversed())
{
core.retro_set_audio_sample(audio_driver_sample_rewind);
core.retro_set_audio_sample_batch(audio_driver_sample_batch_rewind);
current_core.retro_set_audio_sample(audio_driver_sample_rewind);
current_core.retro_set_audio_sample_batch(audio_driver_sample_batch_rewind);
}
else
{
core.retro_set_audio_sample(audio_driver_sample);
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
current_core.retro_set_audio_sample(audio_driver_sample);
current_core.retro_set_audio_sample_batch(audio_driver_sample_batch);
}
return true;
}
@@ -188,13 +183,13 @@ bool core_set_rewind_callbacks(void)
bool core_set_netplay_callbacks(void)
{
/* Force normal poll type for netplay. */
core_poll_type = POLL_TYPE_NORMAL;
current_core.poll_type = POLL_TYPE_NORMAL;
/* And use netplay's interceding callbacks */
core.retro_set_video_refresh(video_frame_net);
core.retro_set_audio_sample(audio_sample_net);
core.retro_set_audio_sample_batch(audio_sample_batch_net);
core.retro_set_input_state(input_state_net);
current_core.retro_set_video_refresh(video_frame_net);
current_core.retro_set_audio_sample(audio_sample_net);
current_core.retro_set_audio_sample_batch(audio_sample_batch_net);
current_core.retro_set_input_state(input_state_net);
return true;
}
@@ -211,10 +206,10 @@ bool core_unset_netplay_callbacks(void)
if (!core_set_default_callbacks(&cbs))
return false;
core.retro_set_video_refresh(cbs.frame_cb);
core.retro_set_audio_sample(cbs.sample_cb);
core.retro_set_audio_sample_batch(cbs.sample_batch_cb);
core.retro_set_input_state(cbs.state_cb);
current_core.retro_set_video_refresh(cbs.frame_cb);
current_core.retro_set_audio_sample(cbs.sample_cb);
current_core.retro_set_audio_sample_batch(cbs.sample_batch_cb);
current_core.retro_set_input_state(cbs.state_cb);
return true;
}
@@ -222,13 +217,13 @@ bool core_unset_netplay_callbacks(void)
bool core_set_cheat(retro_ctx_cheat_info_t *info)
{
core.retro_cheat_set(info->index, info->enabled, info->code);
current_core.retro_cheat_set(info->index, info->enabled, info->code);
return true;
}
bool core_reset_cheat(void)
{
core.retro_cheat_reset();
current_core.retro_cheat_reset();
return true;
}
@@ -236,29 +231,30 @@ bool core_api_version(retro_ctx_api_info_t *api)
{
if (!api)
return false;
api->version = core.retro_api_version();
api->version = current_core.retro_api_version();
return true;
}
bool core_set_poll_type(unsigned *type)
{
core_poll_type = *type;
current_core.poll_type = *type;
return true;
}
void core_uninit_symbols(void)
{
uninit_libretro_sym(&core);
core_symbols_inited = false;
uninit_libretro_sym(&current_core);
current_core.symbols_inited = false;
}
bool core_init_symbols(enum rarch_core_type *type)
{
if (!type)
if (!type || !init_libretro_sym(*type, &current_core))
return false;
if (!init_libretro_sym(*type, &core))
return false;
core_symbols_inited = true;
if (!current_core.retro_run)
current_core.retro_run = retro_run_null;
current_core.symbols_inited = true;
return true;
}
@@ -266,7 +262,7 @@ bool core_set_controller_port_device(retro_ctx_controller_info_t *pad)
{
if (!pad)
return false;
core.retro_set_controller_port_device(pad->port, pad->device);
current_core.retro_set_controller_port_device(pad->port, pad->device);
return true;
}
@@ -274,8 +270,8 @@ bool core_get_memory(retro_ctx_memory_info_t *info)
{
if (!info)
return false;
info->size = core.retro_get_memory_size(info->id);
info->data = core.retro_get_memory_data(info->id);
info->size = current_core.retro_get_memory_size(info->id);
info->data = current_core.retro_get_memory_data(info->id);
return true;
}
@@ -287,31 +283,29 @@ bool core_load_game(retro_ctx_load_content_info_t *load_info)
content_get_status(&contentless, &is_inited);
if (load_info && load_info->special)
core_game_loaded = core.retro_load_game_special(
current_core.game_loaded = current_core.retro_load_game_special(
load_info->special->id, load_info->info, load_info->content->size);
else if (load_info && !string_is_empty(load_info->content->elems[0].data))
core_game_loaded = core.retro_load_game(load_info->info);
current_core.game_loaded = current_core.retro_load_game(load_info->info);
else if (contentless)
core_game_loaded = core.retro_load_game(NULL);
current_core.game_loaded = current_core.retro_load_game(NULL);
else
core_game_loaded = false;
current_core.game_loaded = false;
return core_game_loaded;
return current_core.game_loaded;
}
bool core_get_system_info(struct retro_system_info *system)
{
if (!system)
return false;
core.retro_get_system_info(system);
current_core.retro_get_system_info(system);
return true;
}
bool core_unserialize(retro_ctx_serialize_info_t *info)
{
if (!info)
return false;
if (!core.retro_unserialize(info->data_const, info->size))
if (!info || !current_core.retro_unserialize(info->data_const, info->size))
return false;
#if HAVE_NETWORKING
@@ -323,9 +317,7 @@ bool core_unserialize(retro_ctx_serialize_info_t *info)
bool core_serialize(retro_ctx_serialize_info_t *info)
{
if (!info)
return false;
if (!core.retro_serialize(info->data, info->size))
if (!info || !current_core.retro_serialize(info->data, info->size))
return false;
return true;
}
@@ -334,40 +326,25 @@ bool core_serialize_size(retro_ctx_size_info_t *info)
{
if (!info)
return false;
info->size = core.retro_serialize_size();
info->size = current_core.retro_serialize_size();
return true;
}
uint64_t core_serialization_quirks(void)
{
return core_serialization_quirks_v;
return current_core.serialization_quirks_v;
}
void core_set_serialization_quirks(uint64_t quirks)
{
core_serialization_quirks_v = quirks;
}
void core_frame(retro_ctx_frame_info_t *info)
{
if (retro_ctx.frame_cb)
retro_ctx.frame_cb(
info->data, info->width, info->height, info->pitch);
}
bool core_poll(void)
{
if (!retro_ctx.poll_cb)
return false;
retro_ctx.poll_cb();
return true;
current_core.serialization_quirks_v = quirks;
}
bool core_set_environment(retro_ctx_environ_info_t *info)
{
if (!info)
return false;
core.retro_set_environment(info->env);
current_core.retro_set_environment(info->env);
return true;
}
@@ -375,26 +352,26 @@ bool core_get_system_av_info(struct retro_system_av_info *av_info)
{
if (!av_info)
return false;
core.retro_get_system_av_info(av_info);
current_core.retro_get_system_av_info(av_info);
return true;
}
bool core_reset(void)
{
core.retro_reset();
current_core.retro_reset();
return true;
}
bool core_init(void)
{
core.retro_init();
core_inited = true;
current_core.retro_init();
current_core.inited = true;
return true;
}
bool core_unload(void)
{
core.retro_deinit();
current_core.retro_deinit();
return true;
}
@@ -403,8 +380,10 @@ bool core_unload_game(void)
{
video_driver_free_hw_context();
audio_driver_stop();
core.retro_unload_game();
core_game_loaded = false;
current_core.retro_unload_game();
current_core.game_loaded = false;
return true;
}
@@ -421,21 +400,21 @@ bool core_run(void)
}
#endif
switch (core_poll_type)
switch (current_core.poll_type)
{
case POLL_TYPE_EARLY:
input_poll();
break;
case POLL_TYPE_LATE:
core_input_polled = false;
current_core.input_polled = false;
break;
default:
break;
}
if (core.retro_run)
core.retro_run();
if (core_poll_type == POLL_TYPE_LATE && !core_input_polled)
current_core.retro_run();
if (current_core.poll_type == POLL_TYPE_LATE && !current_core.input_polled)
input_poll();
#ifdef HAVE_NETWORKING
@@ -447,7 +426,7 @@ bool core_run(void)
bool core_load(unsigned poll_type_behavior)
{
core_poll_type = poll_type_behavior;
current_core.poll_type = poll_type_behavior;
if (!core_verify_api_version())
return false;
@@ -461,7 +440,7 @@ bool core_load(unsigned poll_type_behavior)
bool core_verify_api_version(void)
{
unsigned api_version = core.retro_api_version();
unsigned api_version = current_core.retro_api_version();
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_VERSION_OF_LIBRETRO_API),
api_version);
@@ -481,36 +460,36 @@ bool core_get_region(retro_ctx_region_info_t *info)
{
if (!info)
return false;
info->region = core.retro_get_region();
info->region = current_core.retro_get_region();
return true;
}
bool core_has_set_input_descriptor(void)
{
return core_has_set_input_descriptors;
return current_core.has_set_input_descriptors;
}
void core_set_input_descriptors(void)
{
core_has_set_input_descriptors = true;
current_core.has_set_input_descriptors = true;
}
void core_unset_input_descriptors(void)
{
core_has_set_input_descriptors = false;
current_core.has_set_input_descriptors = false;
}
bool core_is_inited(void)
{
return core_inited;
return current_core.inited;
}
bool core_is_symbols_inited(void)
{
return core_symbols_inited;
return current_core.symbols_inited;
}
bool core_is_game_loaded(void)
{
return core_game_loaded;
return current_core.game_loaded;
}
+138 -108
View File
@@ -1,8 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2013-2015 - Jason Fetters
* Copyright (C) 2016 - Brad Parker
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2017 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
@@ -21,14 +20,13 @@
#include <file/file_path.h>
#include <lists/dir_list.h>
#include <file/archive_file.h>
#include <retro_stat.h>
#include <streams/file_stream.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "runloop.h"
#include "retroarch.h"
#include "verbosity.h"
#include "config.def.h"
@@ -49,9 +47,6 @@ static void core_info_list_resolve_all_extensions(
size_t all_ext_len = 0;
char *all_ext = NULL;
if (!core_info_list)
return;
for (i = 0; i < core_info_list->count; i++)
{
if (core_info_list->list[i].supported_extensions)
@@ -59,6 +54,8 @@ static void core_info_list_resolve_all_extensions(
(strlen(core_info_list->list[i].supported_extensions) + 2);
}
all_ext_len += strlen("7z|") + strlen("zip|");
if (all_ext_len)
all_ext = (char*)calloc(1, all_ext_len);
@@ -76,6 +73,12 @@ static void core_info_list_resolve_all_extensions(
core_info_list->list[i].supported_extensions, all_ext_len);
strlcat(core_info_list->all_ext, "|", all_ext_len);
}
#ifdef HAVE_7ZIP
strlcat(core_info_list->all_ext, "7z|", all_ext_len);
#endif
#ifdef HAVE_ZLIB
strlcat(core_info_list->all_ext, "zip|", all_ext_len);
#endif
}
static void core_info_list_resolve_all_firmware(
@@ -184,19 +187,21 @@ static bool core_info_list_iterate(
char *s, size_t len,
struct string_list *contents, size_t i)
{
char info_path_base[PATH_MAX_LENGTH];
size_t info_path_base_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path_base = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA))
char *substr = NULL;
char *substr = NULL;
#endif
settings_t *settings = config_get_ptr();
settings_t *settings = config_get_ptr();
if (!contents || !contents->elems[i].data)
return false;
goto error;
info_path_base[0] = '\0';
fill_pathname_base_noext(info_path_base, contents->elems[i].data,
sizeof(info_path_base));
fill_pathname_base_noext(info_path_base,
contents->elems[i].data,
info_path_base_size);
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA) && !defined(HW_WUP))
substr = strrchr(info_path_base, '_');
@@ -206,14 +211,20 @@ static bool core_info_list_iterate(
strlcat(info_path_base,
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
sizeof(info_path_base));
info_path_base_size);
fill_pathname_join(s,
(!string_is_empty(settings->path.libretro_info)) ?
settings->path.libretro_info : settings->directory.libretro,
(!string_is_empty(settings->paths.path_libretro_info)) ?
settings->paths.path_libretro_info :
settings->paths.directory_libretro,
info_path_base, len);
free(info_path_base);
return true;
error:
free(info_path_base);
return false;
}
static core_info_list_t *core_info_list_new(const char *path)
@@ -240,13 +251,14 @@ static core_info_list_t *core_info_list_new(const char *path)
for (i = 0; i < contents->size; i++)
{
char info_path[PATH_MAX_LENGTH];
size_t info_path_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
info_path[0] = '\0';
info_path[0] = '\0';
if (
core_info_list_iterate(info_path, sizeof(info_path),
contents, i)
if (
core_info_list_iterate(info_path, info_path_size,
contents, i)
&& path_is_valid(info_path))
{
char *tmp = NULL;
@@ -254,30 +266,36 @@ static core_info_list_t *core_info_list_new(const char *path)
unsigned count = 0;
config_file_t *conf = config_file_new(info_path);
free(info_path);
if (!conf)
continue;
if (config_get_string(conf, "display_name", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "display_name", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].display_name = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "corename", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "corename", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].core_name = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "systemname", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "systemname", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].systemname = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "manufacturer", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "manufacturer", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].system_manufacturer = strdup(tmp);
free(tmp);
@@ -288,7 +306,8 @@ static core_info_list_t *core_info_list_new(const char *path)
core_info[i].firmware_count = count;
if (config_get_string(conf, "supported_extensions", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "supported_extensions", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].supported_extensions = strdup(tmp);
core_info[i].supported_extensions_list =
@@ -298,7 +317,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "authors", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "authors", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].authors = strdup(tmp);
core_info[i].authors_list =
@@ -308,7 +328,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "permissions", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "permissions", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].permissions = strdup(tmp);
core_info[i].permissions_list =
@@ -318,7 +339,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "license", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "license", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].licenses = strdup(tmp);
core_info[i].licenses_list =
@@ -328,7 +350,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "categories", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "categories", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].categories = strdup(tmp);
core_info[i].categories_list =
@@ -338,7 +361,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "database", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "database", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].databases = strdup(tmp);
core_info[i].databases_list =
@@ -348,7 +372,8 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "notes", &tmp) && !string_is_empty(tmp))
if (config_get_string(conf, "notes", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].notes = strdup(tmp);
core_info[i].note_list = string_split(core_info[i].notes, "|");
@@ -365,8 +390,14 @@ static core_info_list_t *core_info_list_new(const char *path)
&tmp_bool))
core_info[i].supports_no_game = tmp_bool;
if (config_get_bool(conf, "database_match_archive_member",
&tmp_bool))
core_info[i].database_match_archive_member = tmp_bool;
core_info[i].config_data = conf;
}
else
free(info_path);
if (!string_is_empty(contents->elems[i].data))
core_info[i].path = strdup(contents->elems[i].data);
@@ -376,10 +407,11 @@ static core_info_list_t *core_info_list_new(const char *path)
strdup(path_basename(core_info[i].path));
}
core_info_list_resolve_all_extensions(core_info_list);
if (core_info_list)
{
core_info_list_resolve_all_extensions(core_info_list);
core_info_list_resolve_all_firmware(core_info_list);
}
dir_list_free(contents);
return core_info_list;
@@ -488,35 +520,41 @@ static bool core_info_list_update_missing_firmware_internal(
const char *systemdir)
{
size_t i;
char path[PATH_MAX_LENGTH];
core_info_t *info = NULL;
core_info_t *info = NULL;
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
if (!core_info_list || !core)
return false;
goto error;
path[0] = '\0';
info = core_info_find_internal(core_info_list, core);
if (!info)
return false;
goto error;
runloop_ctl(RUNLOOP_CTL_UNSET_MISSING_BIOS, NULL);
rarch_ctl(RARCH_CTL_UNSET_MISSING_BIOS, NULL);
for (i = 0; i < info->firmware_count; i++)
{
if (string_is_empty(info->firmware[i].path))
continue;
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
info->firmware[i].path, path_size);
info->firmware[i].missing = !filestream_exists(path);
if (info->firmware[i].missing && !info->firmware[i].optional)
{
runloop_ctl(RUNLOOP_CTL_SET_MISSING_BIOS, NULL);
rarch_ctl(RARCH_CTL_SET_MISSING_BIOS, NULL);
RARCH_WARN("Firmware missing: %s\n", info->firmware[i].path);
}
}
free(path);
return true;
error:
free(path);
return false;
}
#if 0
@@ -559,7 +597,7 @@ static void core_info_list_get_missing_firmware(
{
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
info->firmware[i].missing = !filestream_exists(path);
*num_firmware += info->firmware[i].missing;
}
@@ -603,7 +641,7 @@ bool core_info_init_list(void)
settings_t *settings = config_get_ptr();
if (settings)
core_info_curr_list = core_info_list_new(settings->directory.libretro);
core_info_curr_list = core_info_list_new(settings->paths.directory_libretro);
if (!core_info_curr_list)
return false;
@@ -719,7 +757,7 @@ void core_info_get_name(const char *path, char *s, size_t len)
size_t i;
settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(
settings->directory.libretro,
settings->paths.directory_libretro,
DIR_LIST_CORES, NULL);
if (!contents)
@@ -727,24 +765,34 @@ void core_info_get_name(const char *path, char *s, size_t len)
for (i = 0; i < contents->size; i++)
{
char info_path[PATH_MAX_LENGTH];
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
config_file_t *conf = NULL;
char *new_core_name = NULL;
info_path[0] = '\0';
if (!string_is_equal(contents->elems[i].data, path))
{
free(info_path);
continue;
}
if (!core_info_list_iterate(info_path,
sizeof(info_path), contents, i)
path_size, contents, i)
&& path_is_valid(info_path))
{
free(info_path);
continue;
}
conf = config_file_new(info_path);
if (!conf)
{
free(info_path);
continue;
}
if (config_get_string(conf, "corename",
&new_core_name))
@@ -754,6 +802,7 @@ void core_info_get_name(const char *path, char *s, size_t len)
}
config_file_free(conf);
free(info_path);
break;
}
@@ -779,103 +828,84 @@ size_t core_info_list_num_info_files(core_info_list_t *core_info_list)
return num;
}
bool core_info_unsupported_content_path(const char *path)
bool core_info_database_match_archive_member(const char *database_path)
{
size_t i;
const char *archive_path = NULL;
const char *delim = path_get_archive_delim(path);
char *database = NULL;
const char *new_path = path_basename(database_path);
if (delim)
archive_path = delim - 1;
if (!core_info_curr_list)
if (string_is_empty(new_path))
return false;
/* if the path contains a compressed file and the core supports archives,
* we don't want to look at this file */
if (archive_path)
database = strdup(new_path);
if (string_is_empty(database))
goto error;
path_remove_extension(database);
if (core_info_curr_list)
{
size_t i;
for (i = 0; i < core_info_curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
if ( !string_list_find_elem(info->supported_extensions_list, "zip")
&& !string_list_find_elem(info->supported_extensions_list, "7z"))
continue;
if (!info->database_match_archive_member)
continue;
return false;
if (!string_list_find_elem(info->databases_list, database))
continue;
free(database);
return true;
}
}
for (i = 0; i < core_info_curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
if (string_list_find_elem(info->supported_extensions_list, path_get_extension(path)))
return false;
}
return true;
error:
if (database)
free(database);
return false;
}
bool core_info_database_supports_content_path(const char *database_path, const char *path)
{
size_t i;
char *database = NULL;
const char *delim = NULL;
const char *archive_path = NULL;
const char *new_path = NULL;
const char *new_path = path_basename(database_path);
if (!core_info_curr_list)
if (string_is_empty(new_path))
return false;
new_path = path_basename(database_path);
database = strdup(new_path);
if (!string_is_empty(new_path))
database = strdup(new_path);
if (string_is_empty(database))
goto error;
path_remove_extension(database);
delim = path_get_archive_delim(path);
if (delim)
archive_path = delim - 1;
/* if the path contains a compressed file and the core supports archives,
* we don't want to look at this file */
if (archive_path)
if (core_info_curr_list)
{
size_t i;
for (i = 0; i < core_info_curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
if (!string_list_find_elem(info->supported_extensions_list,
path_get_extension(path)))
continue;
if (!string_list_find_elem(info->databases_list, database))
continue;
if ( !string_list_find_elem(info->supported_extensions_list, "zip")
&& !string_list_find_elem(info->supported_extensions_list, "7z"))
continue;
free(database);
return false;
return true;
}
}
for (i = 0; i < core_info_curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
if (!string_list_find_elem(info->supported_extensions_list, path_get_extension(path)))
continue;
if (!string_list_find_elem(info->databases_list, database))
continue;
error:
if (database)
free(database);
return true;
}
free(database);
return false;
}
+8 -7
View File
@@ -1,9 +1,8 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2013-2015 - Jason Fetters
* Copyright (C) 2016 - Brad Parker
*
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2017 - Brad Parker
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -38,6 +37,9 @@ typedef struct
typedef struct
{
bool supports_no_game;
bool database_match_archive_member;
size_t firmware_count;
char *path;
void *config_data;
char *display_name;
@@ -58,10 +60,7 @@ typedef struct
struct string_list *authors_list;
struct string_list *permissions_list;
struct string_list *licenses_list;
core_info_firmware_t *firmware;
size_t firmware_count;
bool supports_no_game;
void *userdata;
} core_info_t;
@@ -122,6 +121,8 @@ bool core_info_load(core_info_ctx_find_t *info);
bool core_info_database_supports_content_path(const char *database_path, const char *path);
bool core_info_database_match_archive_member(const char *database_path);
bool core_info_unsupported_content_path(const char *path);
RETRO_END_DECLS
+3 -3
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* Copyright (C) 2011-2017 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -16,7 +16,7 @@
#ifndef __CORE_TYPE_H
#define __CORE_TYPE_H
enum rarch_core_type
enum rarch_core_type
{
CORE_TYPE_PLAIN = 0,
CORE_TYPE_DUMMY,
+11 -11
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -23,18 +23,22 @@
#include "internal_cores.h"
static uint16_t *frame_buf;
static uint16_t *dummy_frame_buf;
void libretro_dummy_retro_init(void)
{
frame_buf = (uint16_t*)calloc(320 * 240, sizeof(uint16_t));
unsigned i;
dummy_frame_buf = (uint16_t*)calloc(320 * 240, sizeof(uint16_t));
for (i = 0; i < 320 * 240; i++)
dummy_frame_buf[i] = 4 << 5;
}
void libretro_dummy_retro_deinit(void)
{
if (frame_buf)
free(frame_buf);
frame_buf = NULL;
if (dummy_frame_buf)
free(dummy_frame_buf);
dummy_frame_buf = NULL;
}
unsigned libretro_dummy_retro_api_version(void)
@@ -121,12 +125,8 @@ void libretro_dummy_retro_reset(void)
void libretro_dummy_retro_run(void)
{
unsigned i;
dummy_input_poll_cb();
for (i = 0; i < 320 * 240; i++)
frame_buf[i] = 4 << 5;
dummy_video_cb(frame_buf, 320, 240, 640);
dummy_video_cb(dummy_frame_buf, 320, 240, 640);
}
/* This should never be called, it's only used as a placeholder. */
+1 -1
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+3 -3
View File
@@ -161,8 +161,7 @@ GL_SOURCE += $(LIBRETRO_COMM_DIR)/glsym/rglgen.c
ifeq ($(HAVE_GL_FFT), 1)
DEFINES += -DHAVE_GL_FFT
INCFLAGS += -I$(CORE_DIR)/fft
FFT_SOURCE += $(CORE_DIR)/fft/fft.cpp
FFT_SOURCE += $(CORE_DIR)/ffmpeg_fft.c
endif
endif
@@ -177,6 +176,7 @@ SOURCES_C := $(GL_SOURCE) \
$(LIBAVFORMAT_SOURCE) \
$(LIBSWSCALE_SOURCE) \
$(LIBAVCODEC_SOURCE) \
$(FFT_SOURCE) \
$(LIBSWRESAMPLE_SOURCE)
SOURCES_CXX := $(FFT_SOURCE)
SOURCES_CXX :=
+47 -47
View File
@@ -1,4 +1,3 @@
/* Copyright (C) 2016 - Brad Parker */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -36,7 +35,7 @@ extern "C" {
#endif
#ifdef HAVE_GL_FFT
#include "fft/fft.h"
#include "ffmpeg_fft.h"
#endif
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
@@ -45,6 +44,7 @@ extern "C" {
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
#include <string/stdstring.h>
#include <libretro.h>
#ifdef RARCH_INTERNAL
@@ -115,7 +115,7 @@ static struct attachment *attachments;
static size_t attachments_size;
#ifdef HAVE_GL_FFT
static glfft_t *fft;
static fft_t *fft;
unsigned fft_width;
unsigned fft_height;
unsigned fft_multisample;
@@ -214,7 +214,7 @@ void CORE_PREFIX(retro_init)(void)
av_register_all();
#if 0
/* FIXME: Occasionally crashes inside libavdevice
/* FIXME: Occasionally crashes inside libavdevice
* for some odd reason on reentrancy. Likely a libavdevice bug. */
avdevice_register_all();
#endif
@@ -272,10 +272,10 @@ void CORE_PREFIX(retro_set_environment)(retro_environment_t cb)
{
static const struct retro_variable vars[] = {
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
{ "ffmpeg_temporal_interp", "Temporal Interpolation; enabled|disabled" },
{ "ffmpeg_temporal_interp", "Temporal Interpolation; disabled|enabled" },
#ifdef HAVE_GL_FFT
{ "ffmpeg_fft_resolution", "GLFFT Resolution; 1280x720|1920x1080|640x360|320x180" },
{ "ffmpeg_fft_multisample", "GLFFT Multisample; 1x|2x|4x" },
{ "ffmpeg_fft_resolution", "FFT Resolution; 1280x720|1920x1080|2560x1440|3840x2160|640x360|320x180" },
{ "ffmpeg_fft_multisample", "FFT Multisample; 1x|2x|4x" },
#endif
#endif
{ "ffmpeg_color_space", "Colorspace; auto|BT.709|BT.601|FCC|SMPTE240M" },
@@ -339,9 +339,9 @@ static void check_variables(void)
if (CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
if (!strcmp(var.value, "enabled"))
if (memcmp(var.value, "enabled", 7) == 0)
temporal_interpolation = true;
else if (!strcmp(var.value, "disabled"))
else if (memcmp(var.value, "disabled", 8) == 0)
temporal_interpolation = false;
}
@@ -373,13 +373,13 @@ static void check_variables(void)
if (CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &color_var) && color_var.value)
{
slock_lock(decode_thread_lock);
if (!strcmp(color_var.value, "BT.709"))
if (string_is_equal(color_var.value, "BT.709"))
colorspace = AVCOL_SPC_BT709;
else if (!strcmp(color_var.value, "BT.601"))
else if (string_is_equal(color_var.value, "BT.601"))
colorspace = AVCOL_SPC_BT470BG;
else if (!strcmp(color_var.value, "FCC"))
else if (memcmp(color_var.value, "FCC", 3) == 0)
colorspace = AVCOL_SPC_FCC;
else if (!strcmp(color_var.value, "SMPTE240M"))
else if (string_is_equal(color_var.value, "SMPTE240M"))
colorspace = AVCOL_SPC_SMPTE240M;
else
colorspace = AVCOL_SPC_UNSPECIFIED;
@@ -462,7 +462,7 @@ void CORE_PREFIX(retro_run)(void)
}
if (fft && (old_fft_multisample != fft_multisample))
glfft_init_multisample(fft, fft_width, fft_height, fft_multisample);
fft_init_multisample(fft, fft_width, fft_height, fft_multisample);
#endif
CORE_PREFIX(input_poll_cb)();
@@ -548,7 +548,7 @@ void CORE_PREFIX(retro_run)(void)
frame_cnt++;
/* Have to decode audio before video
/* Have to decode audio before video
* incase there are PTS fuckups due
* to seeking. */
if (audio_streams_num > 0)
@@ -679,20 +679,20 @@ void CORE_PREFIX(retro_run)(void)
if (!temporal_interpolation)
mix_factor = 1.0f;
glBindFramebuffer(GL_FRAMEBUFFER, hw_render.get_current_framebuffer());
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
glViewport(0, 0, media.width, media.height);
glUseProgram(prog);
glUniform1f(mix_loc, mix_factor);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, frames[1].tex);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, frames[0].tex);
glBindBuffer(GL_ARRAY_BUFFER, vbo);
glVertexAttribPointer(vertex_loc, 2, GL_FLOAT, GL_FALSE,
4 * sizeof(GLfloat), (const GLvoid*)(0 * sizeof(GLfloat)));
@@ -701,17 +701,17 @@ void CORE_PREFIX(retro_run)(void)
glEnableVertexAttribArray(vertex_loc);
glEnableVertexAttribArray(tex_loc);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glDisableVertexAttribArray(vertex_loc);
glDisableVertexAttribArray(tex_loc);
glUseProgram(0);
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, 0);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, 0);
CORE_PREFIX(video_cb)(RETRO_HW_FRAME_BUFFER_VALID,
media.width, media.height, media.width * sizeof(uint32_t));
}
@@ -731,17 +731,17 @@ void CORE_PREFIX(retro_run)(void)
while (frames)
{
unsigned to_read = frames;
/* FFT size we use (1 << 11). Really shouldn't happen,
* unless we use a crazy high sample rate. */
if (to_read > (1 << 11))
if (to_read > (1 << 11))
to_read = 1 << 11;
glfft_step_fft(fft, buffer, to_read);
fft_step_fft(fft, buffer, to_read);
buffer += to_read * 2;
frames -= to_read;
}
glfft_render(fft, hw_render.get_current_framebuffer(), fft_width, fft_height);
fft_render(fft, hw_render.get_current_framebuffer(), fft_width, fft_height);
CORE_PREFIX(video_cb)(RETRO_HW_FRAME_BUFFER_VALID,
fft_width, fft_height, fft_width * sizeof(uint32_t));
}
@@ -861,7 +861,7 @@ static bool open_codecs(void)
break;
case AVMEDIA_TYPE_VIDEO:
if ( !vctx
if ( !vctx
&& !codec_is_image(fctx->streams[i]->codec->codec_id))
{
if (!open_codec(&vctx, i))
@@ -872,7 +872,7 @@ static bool open_codecs(void)
case AVMEDIA_TYPE_SUBTITLE:
#ifdef HAVE_SSA
if ( subtitle_streams_num < MAX_STREAMS
if ( subtitle_streams_num < MAX_STREAMS
&& codec_id_is_ass(fctx->streams[i]->codec->codec_id))
{
int size;
@@ -923,7 +923,7 @@ static bool init_media_info(void)
{
media.width = vctx->width;
media.height = vctx->height;
media.aspect = (float)vctx->width *
media.aspect = (float)vctx->width *
av_q2d(vctx->sample_aspect_ratio) / vctx->height;
}
@@ -1149,7 +1149,7 @@ static void render_ass_img(AVFrame *conv_frame, ASS_Image *img)
dst_g = (g * src_alpha + dst_g * dst_alpha) >> 8;
dst_b = (b * src_alpha + dst_b * dst_alpha) >> 8;
dst[x] = (0xffu << 24) | (dst_r << 16) |
dst[x] = (0xffu << 24) | (dst_r << 16) |
(dst_g << 8) | (dst_b << 0);
}
}
@@ -1171,7 +1171,7 @@ static void decode_thread(void *data)
struct SwsContext *sws = NULL;
(void)data;
if (video_stream >= 0)
sws = sws_getCachedContext(NULL,
media.width, media.height, vctx->pix_fmt,
@@ -1295,7 +1295,7 @@ static void decode_thread(void *data)
int stride;
unsigned y;
const uint8_t *src = NULL;
fifo_write(video_decode_fifo, &pts, sizeof(pts));
src = conv_frame->data[0];
stride = conv_frame->linesize[0];
@@ -1369,7 +1369,7 @@ static void context_destroy(void)
#ifdef HAVE_GL_FFT
if (fft)
{
glfft_free(fft);
fft_free(fft);
fft = NULL;
}
#endif
@@ -1377,8 +1377,8 @@ static void context_destroy(void)
#include "gl_shaders/ffmpeg.glsl.vert.h"
/* OpenGL ES note about main() - Get format as GL_RGBA/GL_UNSIGNED_BYTE.
* Assume little endian, so we get ARGB -> BGRA byte order, and
/* OpenGL ES note about main() - Get format as GL_RGBA/GL_UNSIGNED_BYTE.
* Assume little endian, so we get ARGB -> BGRA byte order, and
* we have to swizzle to .BGR. */
#ifdef HAVE_OPENGLES
#include "gl_shaders/ffmpeg_es.glsl.frag.h"
@@ -1400,9 +1400,9 @@ static void context_reset(void)
#ifdef HAVE_GL_FFT
if (audio_streams_num > 0 && video_stream < 0)
{
fft = glfft_new(11, hw_render.get_proc_address);
fft = fft_new(11, hw_render.get_proc_address);
if (fft)
glfft_init_multisample(fft, fft_width, fft_height, fft_multisample);
fft_init_multisample(fft, fft_width, fft_height, fft_multisample);
}
/* Already inits symbols. */
@@ -1445,7 +1445,7 @@ static void context_reset(void)
#if !defined(HAVE_OPENGLES)
glGenBuffers(1, &frames[i].pbo);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, frames[i].pbo);
glBufferData(GL_PIXEL_UNPACK_BUFFER, media.width
glBufferData(GL_PIXEL_UNPACK_BUFFER, media.width
* media.height * sizeof(uint32_t), NULL, GL_STREAM_DRAW);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
#endif
@@ -1555,7 +1555,7 @@ void CORE_PREFIX(retro_unload_game)(void)
bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
{
bool is_glfft = false;
bool is_fft = false;
enum retro_pixel_format fmt = RETRO_PIXEL_FORMAT_XRGB8888;
struct retro_input_descriptor desc[] = {
{ 0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_LEFT, "Seek -10 seconds" },
@@ -1606,21 +1606,21 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
}
#ifdef HAVE_GL_FFT
is_glfft = video_stream < 0 && audio_streams_num > 0;
is_fft = video_stream < 0 && audio_streams_num > 0;
#endif
if (video_stream >= 0 || is_glfft)
if (video_stream >= 0 || is_fft)
{
video_decode_fifo = fifo_new(media.width
video_decode_fifo = fifo_new(media.width
* media.height * sizeof(uint32_t) * 32);
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
use_gl = true;
hw_render.context_reset = context_reset;
hw_render.context_destroy = context_destroy;
hw_render.bottom_left_origin = is_glfft;
hw_render.depth = is_glfft;
hw_render.stencil = is_glfft;
hw_render.context_reset = context_reset;
hw_render.context_destroy = context_destroy;
hw_render.bottom_left_origin = is_fft;
hw_render.depth = is_fft;
hw_render.stencil = is_fft;
#if defined(HAVE_OPENGLES)
hw_render.context_type = RETRO_HW_CONTEXT_OPENGLES2;
#else
Loaded 100 of 2228 files, more files were not shown because too many files have changed in this diff. Show more