Compare commits

...
5742 Commits
Author SHA1 Message Date
twinaphex d8855caae9 Update to version 1.4.1 2017-02-02 22:20:33 +01:00
twinaphex 532d1b34bb Add HAVE_VIDEOPROCESSOR switch 2017-02-02 22:05:05 +01:00
twinaphex 93bd541492 Add to skeleton cfg 2017-02-02 21:56:24 +01:00
twinaphex 10aaa163db Add sublabels 2017-02-02 21:54:01 +01:00
twinaphex cb9bdfc46e Put this behind an ifdef 2017-02-02 21:48:08 +01:00
twinaphex 54ba0bd3c2 Don't include 'Net Retropad core' for now 2017-02-02 21:47:28 +01:00
twinaphex 4ee1889637 Add sublabel 2017-02-02 21:45:12 +01:00
twinaphex 1986a80b66 Add Quick Menu sublabel 2017-02-02 21:41:34 +01:00
twinaphex 4ad2cca8e5 Add sublabels 2017-02-02 21:37:34 +01:00
twinaphex 61236a6d34 Add sublabels 2017-02-02 21:30:34 +01:00
twinaphex 518bcd3d45 Add sublabels 2017-02-02 21:23:26 +01:00
Brad Parker fd18a66bab update JP translation 2017-02-02 14:39:51 -05:00
Brad Parker 2250bbed1c update JP translation 2017-02-02 14:27:36 -05:00
Brad Parker 3ddf7874be update JP translation 2017-02-02 14:27:36 -05:00
twinaphex 57fc477fed Add sublabels 2017-02-02 20:26:24 +01:00
twinaphex c1df5a0a7c Add sublabel 2017-02-02 20:19:40 +01:00
twinaphex 7f67bdfd1f Add sublabels 2017-02-02 20:16:41 +01:00
Andrés 39e7b9ffde Add a few comments 2017-02-02 14:11:20 -05:00
twinaphex 627be0fd83 Add sublabels 2017-02-02 20:01:07 +01:00
twinaphex 42a5f69c6b Add sublabels 2017-02-02 19:39:10 +01:00
twinaphex 5ffc746f0f Add sublabels 2017-02-02 19:18:47 +01:00
twinaphex 276be558db Add sublabels 2017-02-02 19:11:40 +01:00
twinaphex 3615b6cdb9 Add sublabels 2017-02-02 18:57:51 +01:00
twinaphex f558d69c78 Edit messages 2017-02-02 18:49:02 +01:00
twinaphex 7b88d1d5a7 Rename to 'application' 2017-02-02 18:42:48 +01:00
twinaphex e9ffbc1d03 Update 2017-02-02 18:41:08 +01:00
twinaphex 728c4cb12b Add sublabels 2017-02-02 18:40:24 +01:00
Brad Parker d6abc3961a update JP translation, some spelling corrections 2017-02-02 12:17:41 -05:00
Twinaphex 6abcaff2b8 Merge pull request #4548 from CoalaJoe/master
Add german translations to some of the OSD messages
2017-02-02 09:48:17 +01:00
Twinaphex 089ed2f215 Merge pull request #4547 from GregorR/netplay-input-latency-2
Netplay input latency
2017-02-02 09:47:44 +01:00
twinaphex 77690781ea Add sublabels 2017-02-02 09:43:07 +01:00
twinaphex 20d517e4db Add sublabel 2017-02-02 09:29:02 +01:00
CoalaJoe af713fb6c9 Added some translations for the OSD messages 2017-02-02 09:27:25 +01:00
twinaphex ab498d3cf8 Add sublabels 2017-02-02 09:25:29 +01:00
twinaphex f69394d22d Adding sublabels 2017-02-02 09:13:46 +01:00
twinaphex a9731db5fd Add sublabels 2017-02-02 09:01:58 +01:00
twinaphex 61aa0ea067 Add sublabels 2017-02-02 08:54:08 +01:00
twinaphex 353ea52e76 Add sublabels 2017-02-02 08:40:06 +01:00
twinaphex d2f87730cf Add sublabel 2017-02-02 08:32:23 +01:00
twinaphex c50b133319 Add sublabels 2017-02-02 07:29:48 +01:00
twinaphex 6a07780fa0 Add sublabels 2017-02-02 07:18:24 +01:00
twinaphex 87606ef88a Add sublabels 2017-02-02 06:50:26 +01:00
twinaphex 4ba9c7e7c7 Add sublabels 2017-02-02 06:48:07 +01:00
twinaphex 5b9c212d70 Add sublabel 2017-02-02 06:41:15 +01:00
twinaphex 756d48702d Add sublabels 2017-02-02 06:38:21 +01:00
twinaphex f9a11184d2 Rename 'Threaded Data Runloop' to 'Threaded Tasks' 2017-02-02 06:33:38 +01:00
twinaphex 7ee5d3a9a8 Add sublabels 2017-02-02 06:29:22 +01:00
twinaphex 77e698e0cc Updates 2017-02-02 06:18:11 +01:00
twinaphex 1d14cb1d13 Add sublabels 2017-02-02 06:15:04 +01:00
twinaphex a8629599ac Add sublabels 2017-02-02 05:56:45 +01:00
twinaphex faa518a32d Add sublabels 2017-02-02 05:41:34 +01:00
twinaphex 731f743e2f Add sublabels 2017-02-02 05:34:14 +01:00
twinaphex 2539de0111 Add sublabels 2017-02-02 05:28:23 +01:00
twinaphex 9e114d5dee Add sublabels 2017-02-02 05:20:29 +01:00
twinaphex 88731122a1 Add sublabel 2017-02-02 05:07:49 +01:00
twinaphex 6c260a7268 Add sublabels 2017-02-02 05:02:33 +01:00
Gregor Richards 1148b8230c Fixes to stateless+input latency. 2017-02-01 22:54:03 -05:00
Gregor Richards 2ea3936d16 Renaming input_ptr/input_frame_count back to self_. 2017-02-01 22:54:03 -05:00
Gregor Richards 4ff8982355 Input latency configurability. 2017-02-01 22:54:03 -05:00
Gregor Richards 55157e934d input_latency_frames is now configurable and has a range 2017-02-01 22:54:03 -05:00
Gregor Richards 5f5a8dc6d7 CRC searching should really start from run_ptr, not input_ptr 2017-02-01 22:54:03 -05:00
Gregor Richards 561eb42c84 Don't enable input latency if we're not connected 2017-02-01 22:54:03 -05:00
Gregor Richards c4cb94db19 New approach to input latency 2017-02-01 22:54:03 -05:00
twinaphex 2b3343a687 Remove CORE_SPECIFIC_CONFIG 2017-02-02 04:51:42 +01:00
twinaphex 235f6b81df Add sublabels 2017-02-02 04:43:07 +01:00
twinaphex 6779fc14fe Add VIDEO_GPU_RECORD sublabel 2017-02-02 04:19:49 +01:00
twinaphex 8148c71556 Add sublabels 2017-02-02 04:17:17 +01:00
twinaphex 96314bb0ba Add sublabels 2017-02-02 04:12:43 +01:00
twinaphex 07cd36e27c Create Filebrowser settings 2017-02-02 04:00:55 +01:00
twinaphex 896be7e1d9 Build fix and another sublabel 2017-02-02 03:09:30 +01:00
twinaphex 5d75a61bd6 Add sublabel 2017-02-02 02:05:54 +01:00
twinaphex f18b919142 Add sublabels 2017-02-02 01:57:55 +01:00
twinaphex 3f497e8422 Add sublabels 2017-02-02 01:43:26 +01:00
twinaphex aa3f5006f6 Add more sublabels 2017-02-02 01:30:11 +01:00
twinaphex c829f852b9 Add sublabel 2017-02-02 01:17:25 +01:00
twinaphex 70392edfeb Add sublabels 2017-02-02 01:03:14 +01:00
twinaphex eba97ed761 Add sublabel 2017-02-02 00:51:53 +01:00
twinaphex 04586d3d66 Add some sublabels 2017-02-02 00:47:52 +01:00
twinaphex 34d0fa15db Move Threaded Data Runloop 2017-02-02 00:10:24 +01:00
twinaphex 179924f3f3 Move 'Advanced Settings' to 'User Interface' 2017-02-02 00:08:02 +01:00
twinaphex 15f783f1d2 Hide 'Undo Load/Save State' 2017-02-02 00:05:41 +01:00
twinaphex c2754eed5a Add XMB_ICON_THEME_LAST 2017-02-02 00:01:15 +01:00
twinaphex aeaba5ab8e Default to non-advanced mode by default 2017-02-01 23:01:41 +01:00
twinaphex ba279ed7ac Add left/right callbacks for rooms 2017-02-01 22:38:29 +01:00
Twinaphex be580e0051 Merge pull request #4542 from Tatsuya79/patch-1
Fix Missing Theme "Custom"
2017-02-01 20:29:33 +01:00
Tatsuya79 e126ac1fb8 Fix Missing Theme "Custom" 2017-02-01 17:42:18 +01:00
Twinaphex 3dd70df9c2 Merge pull request #4541 from retro-wertz/patch-1
fix Dinothawr on xaudio/dsound
2017-02-01 17:23:58 +01:00
retro-wertz 9c3f017bf0 fix Dinothawr on xaudio/dsound
https://github.com/libretro/RetroArch/issues/4540
2017-02-01 21:36:10 +08:00
Twinaphex bd828867ef Merge pull request #4535 from orbea/load_content
Move / to the bottom in Load Content
2017-02-01 09:28:50 +01:00
Brad Parker 118308fbff fix threaded menu parameters 2017-02-01 01:08:06 -05:00
Brad Parker 3dfe93b13f DOS: swap red/blue in rgui menu frame 2017-01-31 18:10:27 -05:00
Brad Parker 44040a066a make another netplay string translatable 2017-01-31 13:41:02 -05:00
twinaphex f35e521fd8 Prevent i variable being uninitialied 2017-01-31 18:47:33 +01:00
Brad Parker 1a7263196e fix OSK backspace 2017-01-31 12:45:57 -05:00
Brad Parker ceba2173a2 update JP translation 2017-01-31 12:38:24 -05:00
Brad Parker 4c06f039af forgot to add utf8 pages header 2017-01-31 12:33:54 -05:00
Brad Parker d8fb3d937c UTF8 fixes for MSVC, don't include any files with a UTF8 BOM if HAVE_LANGEXTRA isn't defined 2017-01-31 12:20:16 -05:00
Twinaphex c19fdbd7fb Merge pull request #4534 from Tatsuya79/patch-1
Rename dot-art for japanese translation
2017-01-31 15:43:15 +01:00
orbea c2b20fd71f Move / to the bottom in Load Content 2017-01-31 02:33:57 -08:00
Tatsuya79 884c78baa5 Rename dot-art for japanese translation
That's the word for pixel-art in Japanese.
2017-01-31 11:02:12 +01:00
twinaphex 61d67613fb Buildfixes for ARM NEON 2017-01-31 07:58:58 +01:00
twinaphex ed3d75738c Simplify audio conversion code 2017-01-31 07:33:58 +01:00
CoalaJoe 9cba220ebc Translate savestate to Spielstand 2017-01-31 07:27:36 +01:00
twinaphex 75133941a9 Fix relative includes 2017-01-31 05:33:42 +01:00
twinaphex 1a5978d7a2 Move patch.c to tasks/task_patch.c 2017-01-31 05:33:13 +01:00
twinaphex ccdd90bdd1 Add runloop_defines.h 2017-01-31 05:14:49 +01:00
twinaphex 269198c1f7 Remove another header include 2017-01-31 05:11:38 +01:00
twinaphex f4df551e8e Remove this header include 2017-01-31 05:10:38 +01:00
twinaphex ae4f5104a4 Include patch.c inside task_content.c 2017-01-31 04:53:16 +01:00
twinaphex 68211e2721 Try to prevent compiler error 2017-01-31 04:04:45 +01:00
twinaphex 2b0002e00b Update 2017-01-31 04:01:57 +01:00
twinaphex f31ae11d29 Silence warnings 2017-01-31 04:00:16 +01:00
twinaphex e802c07d71 Silence warning 2017-01-31 03:57:29 +01:00
twinaphex fda9b01ab3 Buildfixes 2017-01-31 03:54:50 +01:00
twinaphex 0bb10b891b Put ifdef around this 2017-01-31 03:48:45 +01:00
twinaphex ccf1f35f39 Fix rule for MSVC 2017-01-31 03:40:31 +01:00
twinaphex 78b31955aa Put this around BOM 2017-01-31 03:37:53 +01:00
twinaphex 60d909a031 Don't use HAVE_LANGEXTRA for OSX PPC 2017-01-31 03:31:16 +01:00
Twinaphex ef51bf58d6 Merge pull request #4532 from RobLoach/dot-art
Add new Dot-Art theme
2017-01-31 03:30:20 +01:00
Twinaphex c9e14b7c5c Merge pull request #4533 from aliaspider/master
build fix for console targets.
2017-01-31 03:29:43 +01:00
twinaphex 04d751c285 (OSX PPC) Add HAVE_LANGEXTRA for Debug 2017-01-31 03:27:46 +01:00
aliaspider ffbd1e838a (3DS) build fix. 2017-01-31 03:27:26 +01:00
aliaspider 69368fbf34 (griffin) build fix. 2017-01-31 03:27:00 +01:00
Rob Loach 0963431c6a Add Dot-Art theme 2017-01-30 21:13:44 -05:00
Twinaphex 76408fc2e8 Merge pull request #4531 from aliaspider/master
add get_crc_table() to deps/zlib/crc32.c
2017-01-31 02:08:33 +01:00
aliaspider 7416ba8b23 add get_crc_table() to deps/zlib/crc32.c 2017-01-31 01:51:33 +01:00
Brad Parker 2661d5556b DOS: fix image scaling and colors for 16-bit core video 2017-01-30 13:51:41 -05:00
twinaphex 22dfa1ca7c Fix C89_BUILD 2017-01-30 19:32:02 +01:00
twinaphex 216e45f9ea Get rid of printfs 2017-01-30 19:12:47 +01:00
twinaphex 6732446ca4 Avoid warnings 2017-01-30 19:12:28 +01:00
twinaphex 7a02876999 (sinc_resampler.c) More cleanups 2017-01-30 19:10:52 +01:00
twinaphex 26ebdb1056 More cleanups 2017-01-30 18:48:29 +01:00
twinaphex 73acd4aa0f (sinc_resampler.c) Do away with function pointer 2017-01-30 18:45:37 +01:00
twinaphex cdb45a38d3 Refactor code - do away with sinc_resampler_common 2017-01-30 18:43:09 +01:00
twinaphex 21508003c9 Create sinc_resampler_common 2017-01-30 18:15:41 +01:00
Twinaphex 2606218aa1 Silence implicit declaration warning 2017-01-30 17:35:00 +01:00
neville fc2654cd0f (iohidmanager_hid.c) Silence a whole bunch of warnings 2017-01-29 20:20:43 +01:00
twinaphex 1b3225089e iohidmanager.c - Attempt to silence some warnings 2017-01-29 20:11:32 +01:00
twinaphex 82b41265e2 Add HAVE_LANGEXTRA ifdef 2017-01-29 20:05:57 +01:00
twinaphex c2c2521b12 Add HAVE_LANGEXTRA to menu_osk.c 2017-01-29 20:01:26 +01:00
twinaphex a9c8c81032 (OSX PPC) Don't have HAVE_LANGEXTRA 2017-01-29 19:58:04 +01:00
twinaphex 6cde73d86f (CoreAudio) Add backwards compatibility 2017-01-29 19:55:14 +01:00
Brad Parker 343ac9fea7 DOS: scale 16-bit core video to fit screen 2017-01-29 00:48:22 -05:00
twinaphex e2b3c72b9d Add ifdef around this 2017-01-29 05:06:14 +01:00
Twinaphex 2596de53ec Merge pull request #4523 from fr500/master
add support for no content cores
2017-01-29 04:51:50 +01:00
radius ca926f0a50 fix saving for contentless cores 2017-01-28 22:48:51 -05:00
Twinaphex 38329fbb26 Merge pull request #4524 from GregorR/netplay-direct-host-set-is-client
We're in client mode if either server OR direct_host is set
2017-01-29 04:46:42 +01:00
Gregor Richards 3d24e844a4 We're in client mode if either server OR direct_host is set 2017-01-28 22:39:17 -05:00
radius 34550ba3b5 fix 1d4be4cb1b 2017-01-28 22:13:12 -05:00
radius cfb882f4fc add support for no content cores 2017-01-28 22:12:34 -05:00
twinaphex 5326bcf814 Backport lakka patch retroarch-08-osk-perf.patch 2017-01-29 03:57:45 +01:00
twinaphex 207ebe5e59 Merge lakka patch for DRM 2017-01-29 03:55:32 +01:00
Alcaro 22cf87adc9 Shut up false positive 2017-01-28 18:07:00 +01:00
Alcaro 1ad8a72635 Make sure this shows up in --verbose logs 2017-01-28 18:03:02 +01:00
Twinaphex 97a838da49 Merge pull request #4520 from fr500/master
update menu to avoid some repetition on menu entries
2017-01-28 17:59:19 +01:00
Twinaphex c80ae437b7 Merge pull request #4521 from CoalaJoe/master
Added some translations for netplay
2017-01-28 17:59:00 +01:00
radius 1d4be4cb1b update menu 2017-01-28 11:16:44 -05:00
CoalaJoe 5f042295ea Added some translations for netplay 2017-01-28 16:47:24 +01:00
twinaphex 74b2fde05a (ALSA) Use non-near version of set_channels - we don't yet support
anything other than stereo
2017-01-28 16:00:57 +01:00
twinaphex 4a5688ffe7 (ALSA) Use near versions of set_rate and set_channels - ALSA
can now set a different sampling rate if the suggested rate is
not available - should make PS4 gamepad audio work
2017-01-28 15:59:36 +01:00
Twinaphex e3d7018386 Merge pull request #4519 from JuanVCS/master
Add rooms to main netplay menu on all drivers
2017-01-28 05:18:33 +01:00
Juan fa85a83b07 Add rooms to main netplay menu on all drivers 2017-01-27 22:06:43 -03:00
twinaphex 26f33e3254 Add rwav.c to Griffin 2017-01-28 00:28:51 +01:00
twinaphex 544c7a3c92 Solve warnings 2017-01-28 00:28:11 +01:00
twinaphex e42caf6039 Update 2017-01-28 00:16:51 +01:00
twinaphex 66ea6181c5 Move Italian language code to header file 2017-01-28 00:10:06 +01:00
Brad Parker 0e90ab36a0 fix rwav sample memcpy 2017-01-27 18:02:16 -05:00
Brad Parker 18f78613ae Merge branch 'wav_loader' 2017-01-27 11:13:28 -05:00
Brad Parker 9c9fc5b765 16-bit samples don't need conversion from 8-bit 2017-01-27 11:12:45 -05:00
Brad Parker d7aaab7a33 fixes 2017-01-26 21:20:59 -05:00
Brad Parker 9cf4562f26 fix memory allocation 2017-01-26 18:46:50 -05:00
aliaspider d40541c340 (WiiU) provide salamander's basename in
frontend_driver_get_salamander_basename.
2017-01-26 15:07:11 +01:00
twinaphex ac75cd2820 Another buildfix 2017-01-26 14:16:03 +01:00
twinaphex fa5f678444 Merge branch 'susemm-master' 2017-01-26 14:14:24 +01:00
twinaphex 5c88e4dfb1 Merge branch 'master' of git://github.com/susemm/RetroArch into susemm-master 2017-01-26 14:13:57 +01:00
Your Name 01b01c5deb keep chs stracture same as us, move menu items to 2017-01-26 14:22:09 +08:00
Brad Parker 6a79a81e4d allocate enough memory for resampler, always put two channels into buffers 2017-01-26 00:59:53 -05:00
twinaphex 8d863bde3d (ALSA) Call snd_pcm_hw_params_set_rate_resample 2017-01-26 04:42:56 +01:00
twinaphex d5db559d38 (PS3) Buildfix 2017-01-26 04:26:19 +01:00
Twinaphex 29b59d8681 Merge pull request #4512 from GregorR/netplay-deinit-disable-2
Only disable netplay in deinit_netplay if it was actually on
2017-01-26 04:18:21 +01:00
Gregor Richards 12e8deedb4 Only disable netplay in deinit_netplay if it was actually on 2017-01-25 22:08:05 -05:00
twinaphex d0f3973ea5 Cleanups 2017-01-26 03:54:38 +01:00
twinaphex d9ee401305 (XMB) Cut down on function calls 2017-01-26 03:46:05 +01:00
Twinaphex 598f85bef3 Merge pull request #4511 from GregorR/netplay-deinit-disable
Set netplay_enabled to false during deinit_netplay
2017-01-26 03:27:28 +01:00
Gregor Richards 263470a66c Set netplay_enabled to false during deinit_netplay
This simply prevents the odd behavior of netplay automatically
restarting, or trying to restart, when you load a new game.
2017-01-25 21:23:55 -05:00
twinaphex bdaf00032e Add comments 2017-01-26 02:49:42 +01:00
twinaphex eacac11abd Add more documentation to audio_driver.h 2017-01-26 02:36:48 +01:00
twinaphex f763dc0a1e Add msvc-2015 solution courtesy of spec-chum 2017-01-26 01:56:51 +01:00
twinaphex 020ef3cfa1 (XAudio2) Buildfix 2017-01-26 01:23:44 +01:00
Twinaphex 45661d8348 Merge pull request #4509 from aliaspider/master
(WiiU) fix a crash when using libfat with dkp r29.
2017-01-25 23:56:00 +01:00
Twinaphex 3eb2eb95f2 Merge pull request #4510 from fr500/master
Netplay frontend fix
2017-01-25 23:55:48 +01:00
fr500 29a1d504d7 allow different server ports again 2017-01-25 17:48:43 -05:00
fr500 af14da93d5 fix whitespace 2017-01-25 17:43:56 -05:00
fr500 c097c2062e fix when port is 0 2017-01-25 17:43:17 -05:00
aliaspider 292d4dd3da (WiiU) fix a crash when using libfat with dkp r29. 2017-01-25 23:32:06 +01:00
Brad Parker f8ad1c6622 use aligned memory buffers 2017-01-25 17:30:15 -05:00
twinaphex 9f294ec99f (xmb) Move global variable 2017-01-25 22:50:39 +01:00
Twinaphex 859eff1f0f Merge pull request #4508 from aliaspider/master
(WiiU) add core loading.
2017-01-25 20:34:37 +01:00
aliaspider 1ebd8ab278 (WiiU) update dist script. 2017-01-25 20:20:56 +01:00
aliaspider 8f88d8fb4d (WiiU) implement the missing requirement for core loading: exec,
exitspawn, set_fork and salamander.
2017-01-25 19:52:31 +01:00
twinaphex 31fab19797 Cleanups 2017-01-25 18:43:04 +01:00
twinaphex 0d3703bc13 (Vita) Buildfix 2017-01-25 18:39:55 +01:00
twinaphex 0a7538f1b8 Create menu_display_get_fb_size 2017-01-25 18:32:16 +01:00
twinaphex 374fd57270 Remove the few performance counters that depend on runloop_ctl 2017-01-25 18:15:58 +01:00
twinaphex 44ef975e7a (audio_driver.c) Small refactorings 2017-01-25 18:01:01 +01:00
twinaphex 77cdc9d550 Another refinement 2017-01-25 17:52:58 +01:00
twinaphex da891b97b2 Fix logically dead code warning 2017-01-25 17:52:38 +01:00
twinaphex e74853750b (audio driver) Pass is_perfcnt_enable boolean variable to audio
driver write function
2017-01-25 17:30:50 +01:00
Brad Parker 3c67b2e547 translate netplay room strings 2017-01-25 11:30:34 -05:00
Twinaphex 7bdab3973d Merge pull request #4506 from libretro/msr_temp
More video driver/performance counter refactoring work
2017-01-25 17:14:15 +01:00
twinaphex cdfc89b975 use perfcounter plus functions for video_thread_wrapper too 2017-01-25 17:13:29 +01:00
twinaphex a9164b7124 Try to use performance counter plus functions in most cases 2017-01-25 17:12:43 +01:00
twinaphex 77d5a3941b Start calling performance_counter_{stop/start}_plus in case we
have is_perfcnt_enable already
2017-01-25 17:02:13 +01:00
twinaphex 727c2448b5 Refactor perfcnt macros 2017-01-25 16:59:23 +01:00
twinaphex 41349621cf Add extra param to runloop_get_status 2017-01-25 16:57:22 +01:00
twinaphex 6661c0fb94 Rewrite performance counter stop/start/init into macros 2017-01-25 16:53:06 +01:00
twinaphex 5ddcadcb2f video_monitor_get_fps only used from frame function, so get rid
of separate function
2017-01-25 16:33:44 +01:00
twinaphex 84cb05d4de Fix typo 2017-01-25 16:13:39 +01:00
twinaphex c21fd538a9 Minor cleanups 2017-01-25 16:08:50 +01:00
Twinaphex d1ef94c136 Merge pull request #4504 from susemm/patch-1
Update msg_hash_chs.c
2017-01-25 15:53:37 +01:00
twinaphex 018cb7ebe6 Add another parameter to content_get_status 2017-01-25 15:51:57 +01:00
twinaphex 361bd471de Create content_get_status 2017-01-25 15:44:21 +01:00
Wang Vincent 65ae74e1e5 Update msg_hash_chs.c
Translate to Chinese at 20170125
2017-01-25 22:34:07 +08:00
twinaphex 41a647945b Create video_driver_get_record_status 2017-01-25 15:30:51 +01:00
twinaphex 4b01726f48 (video driver) Minor cleanups 2017-01-25 15:22:12 +01:00
twinaphex 19813a8958 Style nit 2017-01-25 15:00:44 +01:00
twinaphex affb259409 Pass video_driver_is_threaded return value to font driver init/free
functions
2017-01-25 14:47:24 +01:00
Brad Parker 4fae51edcb initial resampling wav loader 2017-01-25 01:28:48 -05:00
twinaphex 631ee03df4 Expand video_driver_get_status 2017-01-25 04:42:19 +01:00
twinaphex a151c24117 Create video_driver_get_status 2017-01-25 04:39:21 +01:00
twinaphex be617c530b Expand input_keys_pressed 2017-01-25 04:31:55 +01:00
twinaphex be81a73666 Grab input_driver_is_nonblock_state only once 2017-01-25 04:26:40 +01:00
twinaphex c0bcbb2145 (alsathread.c) Cleanup 2017-01-25 03:37:14 +01:00
twinaphex 0de69c149a Cleanup 2017-01-25 03:34:37 +01:00
twinaphex c3eb4327bf Remove algorithms/mismatch 2017-01-25 02:57:43 +01:00
twinaphex e626008f91 state_manager_check_rewind - cleanup 2017-01-25 02:53:58 +01:00
twinaphex 7594f6d4d7 Use strlcpy instead of snprintf somewhere 2017-01-25 02:44:36 +01:00
twinaphex 121fb3b737 core_info.c - use strlcpy 2017-01-25 02:39:52 +01:00
twinaphex 721e9ec083 (task_content.c) Try to use strlcpy instead of snprintf for
certain messages
2017-01-25 02:05:42 +01:00
twinaphex 5577b21f95 (netplay_find_content.c) Try to use strlcpy where possible 2017-01-25 02:00:44 +01:00
Twinaphex 071c4c1f3f Merge pull request #4500 from fr500/master
Refactor the task
2017-01-25 01:56:32 +01:00
radius 9ae228f76e look for the proper extension too 2017-01-24 18:45:26 -05:00
radius b90a23af55 rename variables 2017-01-24 18:39:17 -05:00
radius 080a9632f9 refactor this code to be able to check for proper extension support before loading 2017-01-24 18:35:57 -05:00
Alcaro 6ff36461b4 Fix #4493 in a less incompatible way 2017-01-25 00:34:58 +01:00
twinaphex 4b476cfe5f config_replace - add bool argument 2017-01-24 18:08:26 +01:00
twinaphex e3842d4169 Make audio_mix.c C89-compatible 2017-01-24 16:59:03 +01:00
twinaphex 6e59a2cce1 Copy buf inside entry first 2017-01-24 16:56:22 +01:00
twinaphex 0006849ed5 use path_remove_extension from libretro-common file_path.c instead 2017-01-24 16:50:40 +01:00
twinaphex fa6dc9ec52 (ffmpeg) Better error handling 2017-01-24 16:28:07 +01:00
twinaphex e8f550b528 Use string_is_empty inside core_impl.c 2017-01-24 16:08:25 +01:00
twinaphex 50a7e634c9 Get rid of this log message 2017-01-24 15:15:41 +01:00
twinaphex efff2be528 Another cleanup 2017-01-24 15:04:32 +01:00
twinaphex 3d7183577e Clean this up further 2017-01-24 15:03:23 +01:00
twinaphex afb0881f05 Incompatible shader backend conditional was reached even if we had
no shader set
2017-01-24 15:01:48 +01:00
Twinaphex a9ceed79fa Silence unused variable warning 2017-01-24 14:15:36 +01:00
twinaphex 3a4963b474 (vita2d_gfx.c) Cleanups 2017-01-24 14:08:28 +01:00
twinaphex 19d2649c61 Update psp1_gfx.c 2017-01-24 14:04:12 +01:00
twinaphex 93812f58ba We don't need the settings variable here 2017-01-24 14:02:09 +01:00
Twinaphex 5005c1aa27 Merge pull request #4496 from vanfanel/master
DISPMANX: Add missing include and remove redundant one.
2017-01-24 14:01:26 +01:00
vanfanel ae3cdaccb9 DISPMANX: Add missing include and remove redundant one. 2017-01-24 13:58:55 +01:00
Twinaphex 8b02d2bd36 Merge pull request #4494 from fr500/master
better filename matching
2017-01-24 12:10:03 +01:00
aliaspider 0ba9faa8bd (CTR) build fix. 2017-01-24 10:43:35 +01:00
Brad Parker 2c97e330de remove unused code 2017-01-24 01:04:00 -05:00
Brad Parker 57949227df DOS: initial input/joypad driver 2017-01-24 00:55:58 -05:00
radius 8f766574d3 strstr produces lot of false matches, path_remote_extension didn't seem to work so I included my own version 2017-01-23 21:21:26 -05:00
twinaphex 793c894abb (task_screenshot.c) Cleanups 2017-01-24 01:58:48 +01:00
radius d1e554ac2e log the port too 2017-01-23 19:58:25 -05:00
Twinaphex 7aaf193810 Merge pull request #4492 from aliaspider/master
(Wii) another fix devkitpro r29.
2017-01-24 01:26:06 +01:00
aliaspider 3a6e49311f (Wii) use C version of guMtxConcat (ps_guMtxConcat broken in devkitpro
r29).
2017-01-24 01:23:18 +01:00
twinaphex 062433491f (task_netplay_find_content.c) Try to prevent new resource leaks 2017-01-24 00:48:40 +01:00
twinaphex 669599cfd7 Add audio_mix to libretro-common 2017-01-24 00:29:40 +01:00
Twinaphex bce47862ad Merge pull request #4490 from aliaspider/master
(Wii) buildfix for HAVE_NETWORKING=1.
2017-01-23 23:32:33 +01:00
aliaspider 9348369824 (Wii) buildfix for HAVE_NETWORKING=1. 2017-01-23 23:27:08 +01:00
twinaphex d28c138d09 (task_content.c) Cleanups 2017-01-23 21:03:41 +01:00
Brad Parker 7c41903ecb GDI: fix color rendering of RGUI menu 2017-01-23 14:50:31 -05:00
Twinaphex 187c1dc5a7 Merge pull request #4486 from aliaspider/master
(ngc/Wii/WiiU) buildfix for devkitpro r29.
2017-01-23 20:00:56 +01:00
twinaphex 1437d21457 Only call task_push_image_load if image exists 2017-01-23 18:30:17 +01:00
aliaspider 1db0d0ffbb Merge branch 'master' of https://github.com/aliaspider/RetroArch 2017-01-23 16:20:49 +01:00
twinaphex 5be98cc87c Header include buildfix 2017-01-23 16:17:57 +01:00
aliaspider 021b510452 (WiiU) refactors/cleanups. 2017-01-23 16:14:05 +01:00
aliaspider 272f7c0a85 (WiiU) cleanups. 2017-01-23 16:01:53 +01:00
aliaspider ae0e519639 (Wii) buildfix for devkitPPC r29. 2017-01-23 16:01:53 +01:00
aliaspider 1601febabc (WiiU) buildfix for devkitPPC r29.
- add wut headers and elf2rpl to source tree.
2017-01-23 16:01:53 +01:00
aliaspider e96ad48cd1 (WiiU) refactors/cleanups. 2017-01-23 15:59:44 +01:00
twinaphex fb84259742 Refactor some functions 2017-01-23 15:24:33 +01:00
Twinaphex 400d4f1684 Merge pull request #4485 from vanfanel/master
DISPMANX: now waiting for free pages after issuing flip, instead of b…
2017-01-23 15:20:19 +01:00
twinaphex bacef54766 Cleanups - use runloop_get_status 2017-01-23 15:19:46 +01:00
The Last Cabra 0e542037d8 Merge branch 'master' into master 2017-01-23 15:16:19 +01:00
twinaphex c19a0bdc5d Simplify take_screenshot function 2017-01-23 15:13:31 +01:00
twinaphex 0489bc6196 Cleanups 2017-01-23 15:05:11 +01:00
twinaphex 82d894c205 Cleanups 2017-01-23 15:02:29 +01:00
twinaphex 76008230b5 Header cleanup 2017-01-23 15:00:42 +01:00
twinaphex 1749941881 Refactor patch.c 2017-01-23 14:56:09 +01:00
twinaphex 8e53dffdef core_impl.c - some cleanups 2017-01-23 14:50:00 +01:00
twinaphex ab8680c339 Get rid of runloop_ctl call in state_manager.c 2017-01-23 14:44:32 +01:00
twinaphex 68dc34d5a4 Move comment 2017-01-23 14:40:48 +01:00
twinaphex 34d3b88759 Cleanups 2017-01-23 14:19:32 +01:00
twinaphex 4aac4aa2e6 Revert "Use task_set_title"
This reverts commit c867784898.
2017-01-23 14:15:26 +01:00
twinaphex ee46e427ae Revert "Use task_set_title"
This reverts commit 83b1bbe247.
2017-01-23 14:15:14 +01:00
twinaphex 379ce5eb05 Revert "Guard crash on OSX"
This reverts commit 1afda04966.
2017-01-23 14:14:46 +01:00
twinaphex 3e87196a43 Revert "Implicit declaration buildfix"
This reverts commit 77fa8c39ef.
2017-01-23 14:14:40 +01:00
twinaphex 77fa8c39ef Implicit declaration buildfix 2017-01-23 14:11:22 +01:00
Twinaphex 1afda04966 Guard crash on OSX 2017-01-23 14:10:51 +01:00
twinaphex b7ebcd6948 Simplify video_monitor_get_fps 2017-01-23 14:04:00 +01:00
twinaphex 9b1c0abf5e Create runloop_msg_queue_pull 2017-01-23 13:56:05 +01:00
twinaphex 83b1bbe247 Use task_set_title 2017-01-23 13:29:34 +01:00
twinaphex c867784898 Use task_set_title 2017-01-23 13:19:35 +01:00
Andrés c5eafd58e8 Merge pull request #4484 from fr500/master
fix CRC matching
2017-01-23 01:02:28 -05:00
radius 9f3e2f6ba3 fix msg 2017-01-23 01:00:32 -05:00
radius 732c389f26 fix CRC matching 2017-01-22 23:49:37 -05:00
Andrés 419fd4b11d Merge pull request #4483 from fr500/master
fix CRC matching
2017-01-22 23:47:02 -05:00
radius f6b09c25e3 fix CRC matching 2017-01-22 23:41:59 -05:00
Andrés ce8137908b Merge pull request #4482 from fr500/master
netplay quick connect fixes
2017-01-22 23:29:56 -05:00
radius 8581067d65 merge 2017-01-22 22:49:55 -05:00
radius c421baef0c netplay quick connect fixes 2017-01-22 22:49:01 -05:00
radius 86e332038b netplay quick connect fixes 2017-01-22 22:45:48 -05:00
Brad Parker 7b533c6720 cleanup 2017-01-22 21:56:14 -05:00
twinaphex b36f823d73 Remove unused RUNLOOP_CTL_IS_SLOWMOTION 2017-01-23 02:49:00 +01:00
twinaphex 0761381e2a Fix overlay issue 2017-01-23 02:45:36 +01:00
twinaphex 81b529696f Cleanups 2017-01-23 02:33:46 +01:00
twinaphex daf0e90f82 input_driver.c - cleanup 2017-01-23 02:28:25 +01:00
twinaphex 3a711f6d4f Make conditional for polling the same as input_state 2017-01-23 01:46:33 +01:00
twinaphex 18662afe56 input_poll - cleanup 2017-01-23 01:44:13 +01:00
twinaphex f9239cc9c8 Update C++ comments to C comments 2017-01-23 01:38:35 +01:00
twinaphex e0a560f60a Turn C++ comments into C comments 2017-01-23 01:37:19 +01:00
twinaphex 2aaa3a3a3a Turn to C comments 2017-01-23 01:35:11 +01:00
twinaphex fd9531268e (wiiu_audio.c) Buildfix 2017-01-23 01:33:41 +01:00
twinaphex d0d55ffaa1 Add HAVE_NETWORKING ifdefs 2017-01-23 01:30:50 +01:00
twinaphex a42f66d629 Streamline input_state - hopefully turbo buttons still work 2017-01-23 01:18:08 +01:00
Twinaphex c78fd7592a Merge pull request #4481 from fr500/master
add name matching
2017-01-23 01:03:16 +01:00
twinaphex 6247d6ea1d Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
radius 2be1355b57 this should work as soon as the server component is updated 2017-01-22 18:57:50 -05:00
twinaphex 4ea31e99aa Remove some header includes 2017-01-23 00:39:20 +01:00
radius 3306f5274a add name matching 2017-01-22 18:39:07 -05:00
twinaphex 0d5b3b9273 Create menu_driver_is_alive 2017-01-23 00:37:52 +01:00
Twinaphex 9152d7e9c4 Merge pull request #4480 from fr500/master
fixes
2017-01-23 00:26:49 +01:00
radius 45514e60a7 console build fix 2017-01-22 17:57:49 -05:00
radius 97c629ebc3 this could be freed before loading so let's prevent that 2017-01-22 17:43:05 -05:00
twinaphex a104c73738 Go back to this 2017-01-22 23:19:35 +01:00
twinaphex d3707fe3b0 See if this works 2017-01-22 22:28:24 +01:00
twinaphex 7d624fdedb Push some build fixes when compiling with --disable-opengl --disable-shaderpipeline 2017-01-22 22:18:00 +01:00
Twinaphex fa4f538d69 Merge pull request #4479 from fr500/master
remove these, no longer needed
2017-01-22 22:03:53 +01:00
radius 50f3a3318d cleanup this 2017-01-22 16:02:24 -05:00
twinaphex 8ad2b5000f Prevent memcpy if data->data is NULL 2017-01-22 21:47:52 +01:00
twinaphex 8698525f86 Only show the frame when libretro_running is true 2017-01-22 21:42:42 +01:00
radius 692bedf7d3 just reload the game when connecting to a netplay lobby 2017-01-22 15:42:38 -05:00
Twinaphex 1410668d34 Cleanups 2017-01-22 21:33:59 +01:00
radius b594ab3d11 remove these, no longer needed 2017-01-22 15:31:27 -05:00
twinaphex b462e0aaf0 Fix non-HAVE_NETWORKING targets 2017-01-22 21:27:36 +01:00
twinaphex 2f7f8b01c9 Cleanups 2017-01-22 21:25:35 +01:00
twinaphex 178d959cad Fix C89_BUILD 2017-01-22 21:24:57 +01:00
twinaphex 36b2c48cb5 Fix CXX_BUILD 2017-01-22 21:19:39 +01:00
Twinaphex 3ff158b907 Merge pull request #4436 from fr500/lobby
Basic lobby system (don't merge, just for tracking)
2017-01-22 21:08:43 +01:00
twinaphex 7c722fca9a (nbio_stdio.c) Try to prevent 'argument cannot be negative' coverity warning 2017-01-22 20:30:47 +01:00
twinaphex 67f850c3dc Prevent another NULL pointer dereference 2017-01-22 20:06:11 +01:00
twinaphex 4feab7a268 (trans_stream_zlib.c) Add some early returns in case it's a NULL pointer 2017-01-22 20:04:58 +01:00
radius c8081bc3df it loads now 2017-01-22 13:52:35 -05:00
Brad Parker 5c77937dad caca: don't leave X coord uninitialized with unknown font alignment 2017-01-22 13:51:10 -05:00
Brad Parker b9eb1c0222 add NoAccel configs in msvc2005 that disable GL and D3D 2017-01-22 13:48:49 -05:00
Brad Parker a2d37adc53 Windows 95 does not have GetFileAttributesEx 2017-01-22 13:48:49 -05:00
Brad Parker d96ea42be7 add back UTF8 BOM to fix msvc builds 2017-01-22 13:48:49 -05:00
radius fc68abebdd find the core from core_info 2017-01-22 13:39:27 -05:00
radius a0e6a24f38 use deferred netplay init 2017-01-22 13:07:30 -05:00
aliaspider 8db8e8d663 (WiiU) cleanups. 2017-01-22 18:57:25 +01:00
Jean-André Santoni 680d281cb9 Unhardcode CRC 2017-01-22 18:53:33 +01:00
aliaspider 0e8c9b8aca (Wii) buildfix for devkitPPC r29. 2017-01-22 18:43:16 +01:00
Jean-André Santoni 469aed2e0f Improve the task, with hostname and corename 2017-01-22 18:39:19 +01:00
radius 5e7d9affe3 free netplay_room_list before allocating again 2017-01-22 12:33:14 -05:00
radius 33cc168eb9 allow connecting to lobby port instead of the port in settings 2017-01-22 12:29:29 -05:00
twinaphex 1ea3bea0ee Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
twinaphex f770ea8560 (movie.c) Try to be more safe in init_playback 2017-01-22 18:22:45 +01:00
twinaphex 2f504b4057 (gfx/drivers) Get rid of remaining runloop.h / runloop_ctl
references inside gfx/drivers
2017-01-22 18:17:48 +01:00
twinaphex 90bc170829 Get rid of runloop_ctl calls inside audio drivers 2017-01-22 18:05:07 +01:00
Andrés a782ecbe1b Merge pull request #4 from bparker06/title
fixes
2017-01-22 11:36:42 -05:00
Brad Parker 45d4a8865c free task state when finished 2017-01-22 11:33:20 -05:00
Brad Parker 8c216bd233 task title must point to memory that can be freed 2017-01-22 11:31:54 -05:00
twinaphex d4b7edff4a Cut down on menu_driver_ctl usage from within video drivers 2017-01-22 17:30:32 +01:00
twinaphex 73e621ad32 Do only one call to RARCH_MENU_CTL_IS_ALIVE 2017-01-22 17:25:32 +01:00
twinaphex e33f38d5b2 Get rid of more MENU_CTL actions 2017-01-22 17:22:05 +01:00
twinaphex 985c6a4ed2 Create menu_driver_render 2017-01-22 17:19:10 +01:00
twinaphex 12c5cc51c5 Create bsv_movie_get_input 2017-01-22 17:03:42 +01:00
twinaphex b04056db11 Create bsv_movie_set_frame_start/bsv_movie_set_frame_end 2017-01-22 16:59:55 +01:00
twinaphex 5bc611c885 Small cleanup 2017-01-22 16:54:33 +01:00
twinaphex a9a3f6b078 Another cleanup 2017-01-22 16:49:08 +01:00
Brad Parker 47ffe94479 DOS: add vga_common header 2017-01-22 10:47:11 -05:00
Brad Parker 9d3c20929a DOS: vga palette looks ok now 2017-01-22 10:47:11 -05:00
Brad Parker 5c83e993ba DOS: use custom VGA color palette, rgui looks nice but still is not green 2017-01-22 10:47:11 -05:00
Brad Parker 89fc14d165 DOS: horizontal scale test 2017-01-22 10:47:11 -05:00
Brad Parker c4bfa6b0d2 DOS: initial VGA int13 graphics driver 2017-01-22 10:47:11 -05:00
Twinaphex 706a92da97 Merge pull request #4477 from GregorR/netplay-stateless-password
Fixing an incompatibility between stateless mode and the password prompt
2017-01-22 16:45:15 +01:00
twinaphex c283d2cf26 Small micro-opts to input_state 2017-01-22 16:44:34 +01:00
Gregor Richards addcbb896a Fixing an incompatibility between stateless mode and the password prompt
Previously, the host would time out waiting for the guest to enter a
password, as the timeout was not conditionalized on whether the guest
was actually playing. This fixes that.
2017-01-22 10:43:09 -05:00
twinaphex 9523afd53c Use runloop_get_status in audio_driver_flush as well 2017-01-22 16:31:10 +01:00
twinaphex a1594615f0 Create runloop_get_status 2017-01-22 16:22:20 +01:00
twinaphex c91a4fa12e Cleanup 2017-01-22 14:23:46 +01:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
Twinaphex 99d8dfb3d3 Merge pull request #4476 from CoalaJoe/master
Probably finish german translations
2017-01-22 13:41:19 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
CoalaJoe 207354059c Merge remote-tracking branch 'upstream/master' 2017-01-22 13:05:44 +01:00
CoalaJoe 3028a3da05 Translate directory settings 2017-01-22 13:04:56 +01:00
CoalaJoe 0a3769500e Translate user settings 2017-01-22 12:58:50 +01:00
CoalaJoe ba92198bbe Translate playlist settings 2017-01-22 12:56:52 +01:00
CoalaJoe b6ec040968 Translate network settings 2017-01-22 12:53:06 +01:00
CoalaJoe 0fad786e87 Translate achievement settings 2017-01-22 12:51:08 +01:00
twinaphex 768ce0854c Make driver_set_nonblock_state a public function 2017-01-22 12:47:17 +01:00
CoalaJoe 74f73aeee5 Fixed typos and added translations for menu settings 2017-01-22 12:43:13 +01:00
twinaphex 57f8c637bf Cut down on runloop_ctl calls inside gfx/drivers 2017-01-22 12:38:20 +01:00
CoalaJoe 4b1bbbd3da Translate OSD settings 2017-01-22 12:13:26 +01:00
CoalaJoe ccfd24eeb4 Translate Fram throttle settings 2017-01-22 12:03:46 +01:00
Twinaphex b22cfcf060 Merge pull request #4475 from CoalaJoe/master
Added german translations for inputsettings
2017-01-22 11:50:00 +01:00
CoalaJoe 0bbf57332c Translated Logging setting 2017-01-22 11:48:02 +01:00
CoalaJoe b73c69f51e Translate savestatesettings 2017-01-22 11:02:55 +01:00
CoalaJoe 71d36eb8ee Fixed typos 2017-01-22 10:59:08 +01:00
CoalaJoe 02e77d68cf Translate configurationsettings to german 2017-01-22 10:54:56 +01:00
CoalaJoe a84d83551e Add Core-Settings translations 2017-01-22 10:48:46 +01:00
CoalaJoe 942122fef3 Merge remote-tracking branch 'upstream/master' 2017-01-22 08:23:34 +01:00
CoalaJoe a3f38a951d Add keybinding translations for german 2017-01-22 08:23:28 +01:00
CoalaJoe 8fdac3a1a6 Translated Hotkeys 2017-01-22 08:02:46 +01:00
Andrés b7ea3f9f4e Merge pull request #3 from Kivutar/lobby
(Netplay) Add a task to find a game from its CRC
2017-01-22 01:52:38 -05:00
CoalaJoe 5068279e10 Add basic translations for input settings 2017-01-22 07:39:48 +01:00
CoalaJoe d5ee28e17e Fixed typo 2017-01-22 07:24:45 +01:00
CoalaJoe d0906b09ac Added inputsettings translation for german 2017-01-22 07:24:21 +01:00
CoalaJoe a75b5073ea Fix typo 2017-01-22 07:10:36 +01:00
Jean-André Santoni 2dee8f77b6 (Netplay) Add a task to find a game from its CRC 2017-01-22 03:17:50 +01:00
twinaphex 23c35c39b5 Add more video_frame_info_t members 2017-01-22 02:04:58 +01:00
twinaphex 6a5ce0fce9 Turn runloop_netplay_pause into macro 2017-01-22 01:58:08 +01:00
twinaphex 913a5ba5ba (runloop.c) Get rid of some runloop_ctl calls 2017-01-22 01:55:19 +01:00
twinaphex 181f6472b1 (MaterialUI) Get rid of early return 2017-01-22 01:46:08 +01:00
Brad Parker 496198ab32 DOS: target 386 and link in FPU emulator, program now starts up correctly 2017-01-21 16:36:38 -05:00
Brad Parker bc8b3ebad5 gdi: fix font alignment 2017-01-21 15:46:46 -05:00
Brad Parker 0290f4713c caca: fix font alignment 2017-01-21 15:39:35 -05:00
Twinaphex a7b26d8913 Merge pull request #4471 from GregorR/netplay-info-disconnection-reason
Make the client send an INFO even if it's wrong
2017-01-21 19:51:10 +01:00
Gregor Richards 8c304dfda7 Make the client send an INFO even if it's wrong
This simply gives the server a reason why the client disconnected,
rather than a generic, unexplained disconnection.
2017-01-21 13:18:31 -05:00
twinaphex b97b40af75 (vg.c) Buildfix 2017-01-21 18:54:13 +01:00
twinaphex dd1fa96321 Fix 2017-01-21 01:46:35 +01:00
twinaphex c8141123d6 (GX) Cleanup warnings 2017-01-21 00:55:21 +01:00
Twinaphex b1117a8d96 Merge pull request #4467 from bparker06/djgpp
DOS/DJGPP buildfix
2017-01-21 00:30:45 +01:00
Brad Parker 1d3e1a6962 DOS/DJGPP buildfix 2017-01-20 18:23:45 -05:00
radius 0de43b954e can now connect when starting a game too 2017-01-20 16:04:10 -05:00
radius 42dc8c7e15 woops fix hardcoded address 2017-01-20 15:14:30 -05:00
radius 0acf34dcdd now we can connect (if the game is already loaded 2017-01-20 15:13:38 -05:00
twinaphex e6c4327a1c (GL) Fix lockup at startup 2017-01-20 21:05:55 +01:00
radius dcca2f8131 only announce if host 2017-01-20 14:33:57 -05:00
Twinaphex b14403f721 Merge pull request #4466 from CoalaJoe/master
Added german translations
2017-01-20 18:10:53 +01:00
CoalaJoe 2c6a509cd9 Added missing audio settings translations for german 2017-01-20 18:08:13 +01:00
CoalaJoe e040e974e9 Add some translations for audio settings 2017-01-20 18:00:05 +01:00
CoalaJoe 4c8062ba8e Add last videosettings translations for german 2017-01-20 17:52:12 +01:00
CoalaJoe 7982aac046 Merged messages 2017-01-20 17:43:02 +01:00
aliaspider 24f8503605 Merge pull request #4465 from xhp-creations/master
(WIIU) fix rotation of menu
2017-01-20 17:30:37 +01:00
xhp-creations 577ee09727 (WIIU) fix rotation of menu
(WIIU) fix rotation of menu
2017-01-20 11:22:30 -05:00
Twinaphex 78943ad6ba Merge pull request #4463 from xhp-creations/master
(WIIU) add rotation support
2017-01-20 16:40:36 +01:00
xhp-creations a8232f1b46 (WIIU) add rotation support
(WIIU) add rotation support
2017-01-20 10:29:53 -05:00
twinaphex 927e4b6be0 Less settings pointer grabbing 2017-01-20 15:38:20 +01:00
twinaphex 0be6264796 Get rid of more settings pointer grabbing 2017-01-20 15:33:47 +01:00
vanfanel 7ae7e2eaee DISPMANX: now waiting for free pages after issuing flip, instead of before, to avoid input lag. 2017-01-20 14:59:14 +01:00
twinaphex 30c7754029 Buildfix 2017-01-20 14:37:02 +01:00
twinaphex 7a309faf6d Don't grab settings pointer inside menu_display_draw_bg 2017-01-20 14:26:49 +01:00
twinaphex 526072ccdf Cut down on menu_display_libretro_running usage 2017-01-20 14:25:00 +01:00
twinaphex 58a47e860a Add use_rgba member to video_frame_info_t 2017-01-20 14:04:50 +01:00
radius b5357493ad log crc properly 2017-01-19 23:53:45 -05:00
radius 8d25b2b0a3 add stub connection handler 2017-01-19 23:44:10 -05:00
radius 8a1fb24fe9 update url 2017-01-19 23:21:22 -05:00
radius 90f352806f merge 2017-01-19 21:55:16 -05:00
radius 930cde21a2 crc is announced now (for cores that don't have needs_fullpath set) 2017-01-19 21:43:46 -05:00
fr500 f979ff58a7 clean this up a bit 2017-01-19 20:39:05 -05:00
fr500 90f0dc9942 add more info 2017-01-19 18:14:33 -05:00
fr500 b8f7d69923 add sublabels 2017-01-19 18:11:02 -05:00
twinaphex 913d2362e8 Prevent null pointer dereference 2017-01-19 23:22:45 +01:00
twinaphex 5b89c85237 Fix performance inefficiency (Coverity) 2017-01-19 23:12:18 +01:00
twinaphex bc5c2c13f8 Remove unused member 2017-01-19 23:09:50 +01:00
fr500 bde244645e switch to the new sqlite backend instead of a plain text file 2017-01-19 17:01:50 -05:00
twinaphex 2f175f1a15 Remove video_driver_get_size call in gfx/drivers_font 2017-01-19 22:03:59 +01:00
twinaphex dd2839686b (XMB) Fix OSK 2017-01-19 21:37:13 +01:00
twinaphex 219a07f709 (hlsl) Fix 2017-01-19 21:21:53 +01:00
twinaphex 28195ee517 (HLSL) Buildfixes 2017-01-19 21:20:05 +01:00
twinaphex 47b6efd226 (XUI) Buildfix 2017-01-19 21:16:22 +01:00
twinaphex 3ab4d81722 (XDK) Fix 2017-01-19 21:10:46 +01:00
twinaphex 9e063318da (XDK360) Fix 2017-01-19 21:09:44 +01:00
twinaphex 861ad8b3ab (XDK360) Another buildfix 2017-01-19 21:05:04 +01:00
twinaphex 0edbf8d5c9 (shader_hlslc.) Another buildfix 2017-01-19 20:56:07 +01:00
twinaphex 057af3c310 (360) Another buildfix 2017-01-19 20:53:27 +01:00
twinaphex 98f0422b20 (HLSL) Fix typo 2017-01-19 20:50:00 +01:00
twinaphex 539728b3f2 (XUI) Style nits 2017-01-19 20:47:34 +01:00
twinaphex b4f88f1420 (XUI) Buildfix 2017-01-19 20:45:01 +01:00
twinaphex 7c652932c8 (360) More buildfixes 2017-01-19 20:36:59 +01:00
twinaphex 0b8037d893 (360) Fix typo 2017-01-19 20:35:23 +01:00
twinaphex 23afaa8799 (Xbox 360) Buildfixes 2017-01-19 20:34:07 +01:00
twinaphex fd8cdc389f (Xbox 360) More buildfixes 2017-01-19 20:31:33 +01:00
twinaphex f4020aa011 (Xbox 360) Buildfixes 2017-01-19 20:28:12 +01:00
CoalaJoe 917b369df8 Changed some texts and added some translations for the videosettings 2017-01-19 20:08:34 +01:00
Brad Parker 8a65650298 Windows buildfix 2017-01-19 13:46:04 -05:00
Brad Parker a54ea9ad88 show titlebar again for remaining drivers 2017-01-19 18:08:39 +00:00
Brad Parker c0e55cba37 window title fix for SDL 2017-01-19 17:51:22 +00:00
twinaphex 849315e844 Prevent some minor computations in video_monitor_get_fps 2017-01-19 18:07:01 +01:00
twinaphex 6c108a8d27 Shows titlebar text again with X11 2017-01-19 17:58:00 +01:00
twinaphex 7cce305c06 Add header for sdl_gfx.c 2017-01-19 17:48:03 +01:00
twinaphex fe84312340 Add some header includes 2017-01-19 17:20:42 +01:00
twinaphex 27ae782a8e (CTR) Add this header 2017-01-19 17:17:20 +01:00
twinaphex 0d33888a24 (dispmanx_gfx.c) Cleanups 2017-01-19 16:50:09 +01:00
twinaphex a42748f90f Get rid of more function invocations of video_driver_get_size 2017-01-19 16:40:20 +01:00
twinaphex 586654846a Buildfix 2017-01-19 16:33:02 +01:00
twinaphex e0ff0541a2 Pass video_info pointer to font drivers 2017-01-19 16:30:40 +01:00
twinaphex eea139ca30 Remove frame_count variable 2017-01-19 16:03:59 +01:00
twinaphex 028d50ca50 C89_BUILD fixes 2017-01-19 16:01:35 +01:00
twinaphex db9f380fe1 Remove diff2.diff 2017-01-19 15:59:51 +01:00
Twinaphex 7961bf6d23 Merge pull request #4455 from libretro/refactor
Video driver changes
2017-01-19 15:59:23 +01:00
twinaphex 4a8cb5687a (ctr_font.c) use #if 0 blocks 2017-01-19 15:55:42 +01:00
radius d2e09622c8 add own labels 2017-01-19 09:31:01 -05:00
radius 702f0cd95d add entries to the list 2017-01-19 09:16:37 -05:00
radius 3dd6c91493 start populating the list 2017-01-19 08:56:56 -05:00
twinaphex 9d1de5c974 Rewrite video_context_driver_set_resize 2017-01-19 14:31:57 +01:00
Twinaphex 5c0ca5f8f2 Merge pull request #4454 from CoalaJoe/master
German translations
2017-01-19 11:22:23 +01:00
twinaphex b93046f867 Cleanup mui_draw_scrollbar 2017-01-19 11:20:02 +01:00
twinaphex 6208d037fc (MaterialUI) Cleanups 2017-01-19 11:16:53 +01:00
CoalaJoe b7f2eccbe9 Fixed typo 2017-01-19 11:09:49 +01:00
CoalaJoe 690963bf2d Added translations for first level of settings 2017-01-19 11:09:10 +01:00
CoalaJoe 1e5fe79bf3 Fixed another typo 2017-01-19 10:44:57 +01:00
CoalaJoe f704a78bfe Fixed common typos 2017-01-19 10:43:08 +01:00
CoalaJoe 3a47c91314 Added translations for some sublables 2017-01-19 10:41:43 +01:00
CoalaJoe 5489bd3a95 Fixed common typos 2017-01-19 10:34:32 +01:00
radius 9237752d91 styling 2017-01-19 02:09:09 -05:00
radius 9e1f267ab2 fix listing 2017-01-19 02:05:33 -05:00
radius 7c833074bb parsing now works 2017-01-19 00:52:53 -05:00
Brad Parker 009c1a45b7 forgot check for SDL1 2017-01-19 00:36:29 -05:00
Brad Parker b44c8c9995 store buffer for window title, only update actual title when it changes 2017-01-19 00:33:52 -05:00
radius 95a2da81e4 start adding ui elements to insert room list into 2017-01-18 22:46:48 -05:00
radius 72cdb390cb reannounce roughly every minute 2017-01-18 21:31:02 -05:00
radius ca2c2a8ce7 separate this 2017-01-18 21:12:01 -05:00
twinaphex 7fbd3fcfb6 Simplify has_windowed 2017-01-19 02:50:56 +01:00
twinaphex 3761b5bdf6 Unroll video_driver_cached_frame_set 2017-01-19 02:34:35 +01:00
twinaphex 19cc817613 This needs to be set this way 2017-01-19 02:25:45 +01:00
twinaphex b96e0bb820 Remove stub update_title functions 2017-01-19 01:58:44 +01:00
twinaphex b6c0e57946 Silence some warnings 2017-01-19 01:39:11 +01:00
twinaphex a9a7f360d0 (nuklear) cleanup 2017-01-19 01:36:40 +01:00
twinaphex 832840f91c Cut down on more video_driver_get_size calls 2017-01-19 01:33:47 +01:00
twinaphex 57f1c0c3b6 FIx threaded video 2017-01-19 01:24:21 +01:00
Twinaphex de4e3cc77c Merge pull request #4453 from chewi/osmesa_ctx
Fix osmesa_ctx missing includes
2017-01-19 00:23:04 +01:00
Twinaphex 78e06ca07f Cleanup variables 2017-01-19 00:11:29 +01:00
Twinaphex 99622cee14 (Cocoa ) Update 2017-01-19 00:10:42 +01:00
twinaphex 24e0542bdb (menu) reduce calls to video_driver_get_size 2017-01-19 00:09:38 +01:00
twinaphex 00adc9a2d3 Rewrite menu_display_unset_viewport 2017-01-19 00:01:55 +01:00
twinaphex afd4494c2f (menu_driver.c) Get rid of video_driver_get_size call 2017-01-18 23:59:22 +01:00
James Le Cuirot 7f77f0cef1 Fix osmesa_ctx missing includes 2017-01-18 22:50:52 +00:00
twinaphex 1a30cfea09 Remove more video_driver_get_size calls 2017-01-18 23:13:19 +01:00
twinaphex 55b8b8c244 Reduce amount of calls to video_driver_get_size 2017-01-18 23:07:05 +01:00
twinaphex c5445d2980 Reduce amount of times video_driver_get_size is called 2017-01-18 23:02:24 +01:00
twinaphex f4adbd04ae (gl.c) Reduce amount of time video_driver_get_size is called inside
gl_frame
2017-01-18 22:55:03 +01:00
twinaphex f3e700aa76 Add width/height members to video_frame_info 2017-01-18 22:30:16 +01:00
twinaphex 885f30b429 Merge branch 'refactor' of https://github.com/libretro/RetroArch into refactor 2017-01-18 22:25:26 +01:00
twinaphex 1981c4b83e Typo fix 2017-01-18 22:25:11 +01:00
Brad Parker c089a925b1 fix race condition when toggling menu with threaded_video on 2017-01-18 16:23:56 -05:00
twinaphex 84f9d8674f Implement rgui_frame 2017-01-18 22:23:19 +01:00
twinaphex d010a852e4 Call menu_driver_frame once per video_frame call 2017-01-18 22:20:47 +01:00
twinaphex 34da27c36b Don't need 'frame_count' variable for check_window 2017-01-18 21:47:12 +01:00
twinaphex dc19649802 Reduce dependence on video_driver_get_frame_count 2017-01-18 21:40:56 +01:00
twinaphex bf511b72e6 Create menu_driver_frame 2017-01-18 21:23:18 +01:00
Alcaro d641b64d5e Kill segfault with -L /not/a/dylib.png 2017-01-18 19:48:39 +01:00
Alcaro 31d93cc4b7 Fix #4449 2017-01-18 19:00:38 +01:00
twinaphex aa47903520 Prevent 'dereference before null check' 2017-01-18 17:53:25 +01:00
twinaphex 6247e9900b Remove another header include 2017-01-18 17:46:08 +01:00
twinaphex 40cd1b70cd Remove runloop.h header includes 2017-01-18 17:43:23 +01:00
twinaphex e620b9b697 (OSX) Fix OSX 2017-01-18 17:42:11 +01:00
twinaphex a6a4808e94 Refactor frame monitor code 2017-01-18 17:41:27 +01:00
Jean-André Santoni b9104f38b8 (GLUI) Align entry values on top to avoid overlaps with sublabels 2017-01-18 17:12:26 +01:00
twinaphex f0820f6433 (DRM) Should fix segfault 2017-01-18 15:23:06 +01:00
twinaphex 6fde55ac9d (record_driver.c) Update 2017-01-18 15:09:47 +01:00
twinaphex bf56463b76 Silence warnings 2017-01-18 14:17:09 +01:00
twinaphex 7ad717cb5c Revert "Update diff2.diff"
This reverts commit 6f95f48ede.
2017-01-18 13:53:29 +01:00
twinaphex 6f95f48ede Update diff2.diff 2017-01-18 13:50:21 +01:00
twinaphex d6bc8effa2 Add diff2.diff 2017-01-18 13:41:56 +01:00
aliaspider 78723f55d7 (WiiU) buildfix for devkitPPC r29.
- add wut headers and elf2rpl to source tree.
2017-01-18 11:38:01 +01:00
Brad Parker 1c36c395d4 vc2005 version fix 2017-01-18 02:08:04 -05:00
Brad Parker 8e52d0af6c Windows 98 buildfix 2017-01-18 02:02:32 -05:00
Brad Parker c78991b6a2 msvc2005 buildfix 2017-01-17 19:41:20 -05:00
twinaphex a3f5590f41 remove dependence on configuration.h inside task_database.c 2017-01-18 01:23:24 +01:00
Brad Parker 039064d0f1 remove HAVE_LANGEXTRA from Xbox build, fixes compilation on vc2003 2017-01-17 19:21:15 -05:00
Brad Parker fa5404fc53 fix race condition when switching fullscreen with threaded_video on 2017-01-17 19:09:25 -05:00
twinaphex e862abfe12 Initialize frame_count to 0 2017-01-18 00:54:36 +01:00
Brad Parker 8cdfa75b48 set ints to 0 instead of NULL 2017-01-17 18:44:29 -05:00
Brad Parker a220815b40 fix race condition in frame count with video_threaded on 2017-01-17 18:42:58 -05:00
twinaphex 4fbd41852a Revert "Don't manipulate buffer if we are fullscreen - no text writing"
This reverts commit 51976d496f.
2017-01-18 00:26:56 +01:00
twinaphex 552144c24d Revert "Make 'Show FPS" work again"
This reverts commit b433ccab09.
2017-01-18 00:25:55 +01:00
twinaphex b433ccab09 Make 'Show FPS" work again 2017-01-18 00:23:57 +01:00
twinaphex 51976d496f Don't manipulate buffer if we are fullscreen - no text writing
to display window then or internal buffer
2017-01-18 00:18:27 +01:00
twinaphex dbed4d4fc6 Add video_info->fullscreen 2017-01-17 23:54:24 +01:00
Francisco José García García 76a2499547 Merge pull request #4445 from xerpi/master
Define improvements, Vita: proper netlogging
2017-01-17 23:16:51 +01:00
Sergi Granell 3dacc03b52 Get HAVE_XMB define out of HAVE_RGUI
Add -DHAVE_STB_FONT to HAVE_STB_FONT
Add -DHAVE_OVERLAY to HAVE_OVERLAY
(VITA) Improve Makefile.vita (proper netlogging)
2017-01-17 23:12:36 +01:00
twinaphex f35f21744d (Vita) Set these menu drivers 2017-01-17 22:08:23 +01:00
Twinaphex 6c8ce6543e Merge pull request #4444 from xerpi/master
(VITA) Use .c shaders
2017-01-17 21:00:08 +01:00
Sergi Granell 610f69757f Add DEPS_DIR to Makefile.griffin 2017-01-17 20:58:51 +01:00
Sergi Granell 4b4aeec445 (VITA) Use .c shaders 2017-01-17 20:58:51 +01:00
twinaphex 05d455a8ce Cleanups 2017-01-17 20:07:41 +01:00
twinaphex aa59b33931 Use input_config_set_device 2017-01-17 19:59:33 +01:00
twinaphex b4cdad1a6f Cleanups 2017-01-17 19:43:19 +01:00
twinaphex 0c814f767c Remove configuration.h header dependencies 2017-01-17 19:39:12 +01:00
twinaphex d0ec96ba7b Add this to Makefile.vita 2017-01-17 19:31:29 +01:00
twinaphex 472df1ad33 Add HAVE_NETLOGGER rule 2017-01-17 19:31:11 +01:00
twinaphex c6e1b47d98 (libretro-common) Style nits 2017-01-17 19:20:15 +01:00
twinaphex 9a87bada55 Style nit 2017-01-17 19:05:33 +01:00
twinaphex e5b7b83b3f (ui) Style nits 2017-01-17 19:04:42 +01:00
twinaphex 0354ced675 Style nits 2017-01-17 19:02:49 +01:00
Twinaphex ebcf42ceb7 Remove unused variables 2017-01-17 18:56:14 +01:00
twinaphex fa0aaf54f7 (PSP) update 2017-01-17 18:55:59 +01:00
twinaphex d9c62e5e60 Fix C89_BUILD 2017-01-17 18:24:34 +01:00
twinaphex 49515f0208 Add Makefile.vita 2017-01-17 18:19:36 +01:00
Twinaphex 5938a9a4bb Merge pull request #4443 from CoalaJoe/master
Updated more german translations
2017-01-17 18:15:35 +01:00
twinaphex 4743230b09 Some header includes shouldn't be system includes 2017-01-17 18:15:11 +01:00
twinaphex 7931436f5b Apply xerpi diff 2017-01-17 18:12:23 +01:00
CoalaJoe f7101083ac Added german translations for load core menu 2017-01-17 18:11:12 +01:00
CoalaJoe 2f68f66b8b Translated core info file updater 2017-01-17 18:08:05 +01:00
CoalaJoe a57e43b63a Renamed content to inhalt 2017-01-17 18:05:03 +01:00
CoalaJoe 63ef32c38c Fixed typo 2017-01-17 18:04:21 +01:00
CoalaJoe 706c9ce257 Fixed typo 2017-01-17 18:03:55 +01:00
CoalaJoe 7ad3bd3119 Updated .gitignore 2017-01-17 18:02:41 +01:00
CoalaJoe a30b34e86b Added missing netplay translations for german 2017-01-17 18:02:15 +01:00
twinaphex 15853842f0 Add more files 2017-01-17 18:01:29 +01:00
CoalaJoe 7026b63f78 Added some network and netplay translations 2017-01-17 17:56:53 +01:00
twinaphex 7beecd37af Add platextra files for Vita 2017-01-17 17:56:49 +01:00
CoalaJoe 7de726c7f3 Fixed typos 2017-01-17 17:49:21 +01:00
CoalaJoe db56332020 Add Netplay translations for german 2017-01-17 17:48:43 +01:00
CoalaJoe a817a58f43 Added translations for informations in german 2017-01-17 17:46:31 +01:00
twinaphex 92489a3f14 Add CFLAGS for vita2d 2017-01-17 17:33:10 +01:00
twinaphex 848be8c549 Add libvita2d rules 2017-01-17 17:31:38 +01:00
twinaphex 805c4c2d12 (android_ctx.c) Initialize these variables 2017-01-17 17:28:19 +01:00
twinaphex 0bd43bc885 update diff.diff 2017-01-17 17:13:42 +01:00
twinaphex 7f7b0e14e8 Update diff.diff 2017-01-17 17:12:53 +01:00
twinaphex e04dc5ab2e Cleanup 2017-01-17 16:59:13 +01:00
twinaphex ec370d54b2 Cleanups 2017-01-17 16:55:34 +01:00
twinaphex da044da3b4 Create menu_animation_push 2017-01-17 16:53:06 +01:00
twinaphex 2273b1d05f (menu_animation.c) Create more separate functions 2017-01-17 16:40:48 +01:00
twinaphex df783daab9 Create menu_animation_get_ideal_delta_time 2017-01-17 16:37:03 +01:00
twinaphex bfb124a60e Create menu_animation_ticker 2017-01-17 16:29:23 +01:00
twinaphex 2849e2aa79 Get rid of some more configuration.h includes 2017-01-17 15:46:36 +01:00
twinaphex 8366278d45 More of where that came from 2017-01-17 15:39:14 +01:00
twinaphex c3f16de4d4 Use HAVE_COMMAND ifdef here 2017-01-17 15:37:40 +01:00
twinaphex a3e13fde32 Put this around HAVE_COMMAND ifdefs 2017-01-17 15:36:06 +01:00
Jean-André Santoni 617ce26efb (GLUI) Adapt mouse and touch code to the variable height menu entries 2017-01-17 15:21:59 +01:00
Jean-André Santoni b0a51d79ee (GLUI) Improve word wrapping with a better estimation of the glyph width 2017-01-17 15:21:59 +01:00
Jean-André Santoni dc4140a00b (GLUI) Word wrapping for sublabels 2017-01-17 15:21:59 +01:00
Jean-André Santoni 08366d318e (MUI) Add mui_node_t to store the height of menu entries 2017-01-17 15:21:59 +01:00
Jean-André Santoni 3d4c6d836f Fix GLUI ON/OFF switch y position 2017-01-17 15:21:59 +01:00
twinaphex fae7be1cec Make sure HAVE_MENU_COMMON is defined for XMB and MaterialUI 2017-01-17 14:53:29 +01:00
twinaphex 4bae3032dd (X context) Fix CXX_BUILD and C89_BUILD 2017-01-17 14:51:24 +01:00
twinaphex 4b8c22e311 Add HAVE_MENU ifdef 2017-01-17 14:40:59 +01:00
twinaphex 68bb87f392 Try to fix Coverity warning 'uninitialized scalar variable' 2017-01-17 14:21:41 +01:00
twinaphex f82e51e5e8 (menu_animation.c) Cleanup 2017-01-17 14:16:49 +01:00
twinaphex 3c0538a1ee (menu_animation.c) Cleanups 2017-01-17 14:15:43 +01:00
twinaphex 08a09f135a (menu_displaylist.c) Cleanup 2017-01-17 14:06:54 +01:00
twinaphex f074c3fa7e Add this 2017-01-17 14:02:50 +01:00
Francisco José García García cae90023f2 Merge pull request #4442 from frangarcj/master
(VITA) Fix salamander
2017-01-17 13:53:28 +01:00
ggf906 702622380c (VITA) Fix salamander 2017-01-17 13:52:29 +01:00
twinaphex 814fb59608 Try to prevent more uninitialized variables 2017-01-17 13:44:23 +01:00
Twinaphex 014ed5e87f Merge pull request #4441 from aliaspider/master
(WiiU) simplify input code + fix crash on content reload.
2017-01-17 13:16:56 +01:00
aliaspider ee7fd79fb2 cores_names_size was used in a conditional branch without being
initialized, fixes a crash on content reload.
2017-01-17 13:03:39 +01:00
aliaspider 14660a8c12 (WiiU) simplify input code, add button labels for autoconfigs. 2017-01-17 12:41:55 +01:00
Francisco José García García ef21a86314 Merge pull request #4440 from frangarcj/master
(VITA) Update to latest vitasdk
2017-01-17 12:10:55 +01:00
ggf906 e9cff022fc (VITA) Update to latest vitasdk 2017-01-17 11:43:12 +01:00
Twinaphex 7fbdb6a9b3 Merge pull request #4438 from CoalaJoe/master
Added more translation for german
2017-01-17 10:55:46 +01:00
twinaphex 724b68d5cb (gdi_gfx.c) Style nits 2017-01-17 10:54:48 +01:00
twinaphex d79fe15e9a Use wcstombs by default instead of relying on preprocessor detection
of Windows version
2017-01-17 10:49:33 +01:00
CoalaJoe d71580b084 Formatted translation file properly 2017-01-17 10:20:04 +01:00
CoalaJoe 928c3edaf4 Merge remote-tracking branch 'upstream/master' 2017-01-17 10:07:27 +01:00
CoalaJoe 2ab25b9c73 Added debuging information in german 2017-01-17 10:05:09 +01:00
CoalaJoe f28be42b2d Added help message for gamebad overlays 2017-01-17 08:23:24 +01:00
CoalaJoe fb3f5c8e60 Added message for virtual gamepad information 2017-01-17 07:58:38 +01:00
CoalaJoe 0eef01205b Changed Content to Inhalt 2017-01-17 06:27:38 +01:00
CoalaJoe 64dc9bedbf Translated browser-directory 2017-01-17 06:17:32 +01:00
radius f2beb49fd8 Announce netplay games to lobby.libretro.com 2017-01-16 22:24:35 -05:00
Brad Parker 76b7235dc5 msvc2005 buildfix 2017-01-16 22:20:59 -05:00
Brad Parker 7dc558344b GDI: do not draw background with rgui 2017-01-16 21:11:47 -05:00
Brad Parker 7b057fd43f GDI: add msimg32 library to msvc2010 project 2017-01-16 20:56:32 -05:00
Brad Parker afb94e2b96 GDI: draw a gradient background for xmb 2017-01-16 20:41:09 -05:00
Brad Parker 5eaf00b39d GDI: fix rendering of 32-bit color cores 2017-01-16 20:41:09 -05:00
Brad Parker e4bdc5ce8b GDI: remove unused code and fix menu toggle in rgui and xmb 2017-01-16 20:41:09 -05:00
Brad Parker 493b7372bd only disable glui/xmb/zarch if GL/ES/Vulkan AND libcaca is not enabled 2017-01-16 20:41:09 -05:00
Brad Parker 240b43e0ba windows buildfix 2017-01-16 20:41:09 -05:00
Brad Parker e0f71928ca add msvc2005 project files for Win2000 2017-01-16 20:41:08 -05:00
Brad Parker e1f4db8081 Win2000 buildfixes 2017-01-16 20:41:08 -05:00
Brad Parker 061c13b84c fix XP runtime error with MinGW 2017-01-16 20:41:08 -05:00
Brad Parker 7acfa39fb9 GDI: MSVC2010 build fix 2017-01-16 20:41:08 -05:00
Brad Parker 7c6bf6aaf7 fix msys2 compilation when opengl, vulkan and d3d9 are disabled 2017-01-16 20:41:08 -05:00
Brad Parker 69ce5bdd65 GDI: allow menu drivers to be built without acceleration 2017-01-16 20:41:08 -05:00
Brad Parker 8d9a43eec6 GDI: pitch seems to be reported wrong? this looks correct now 2017-01-16 20:41:07 -05:00
Brad Parker c09996cd22 GDI: don't need to store the padding 2017-01-16 20:41:07 -05:00
Brad Parker d6300a7946 GDI: video correctly fills the screen now, but resolution is poor. why is it scaled down by half? 2017-01-16 20:41:07 -05:00
Brad Parker 0ee3f39d76 GDI: no more flicker 2017-01-16 20:41:07 -05:00
Brad Parker f51472395a GDI: fix bad color due to reading as RGB555 instead of 565 2017-01-16 20:41:07 -05:00
Brad Parker 6b89064242 GDI: no more alternating black lines, but now video only takes up half the window 2017-01-16 20:41:07 -05:00
Brad Parker acd6826df9 GDI: stretch video output to fill window 2017-01-16 20:41:07 -05:00
Brad Parker 69bac11f02 GDI: fix window not clearing on every frame, requires both FillRect calls and InvalidateRect 2017-01-16 20:41:06 -05:00
Brad Parker 6c62901ae5 GDI: fix window not responding, but menu corruption still happens if set_gdi_pixel_format is called 2017-01-16 20:41:06 -05:00
Brad Parker bdc68e679f GDI: flip image and render text after other graphics 2017-01-16 20:41:06 -05:00
Brad Parker 6fe2a974a5 GDI: does not freeze after a few seconds anymore, but the window still freezes when moving the mouse into it 2017-01-16 20:41:06 -05:00
Brad Parker 8eba18a54f GDI: xmb draws for a few seconds and then freezes 2017-01-16 20:41:06 -05:00
Brad Parker 90ef57948c GDI testing 2017-01-16 20:41:06 -05:00
Brad Parker 177d811475 GDI driver partially visible with RGUI/game now, need to figure out why it isn't totally visible. Also need to stretch the frame, swap red/blue and flip vertically. 2017-01-16 20:41:05 -05:00
Brad Parker dd2778fb32 GDI text testing 2017-01-16 20:41:05 -05:00
Brad Parker 49d7be9813 MSVC GDI buildfix 2017-01-16 20:41:05 -05:00
Brad Parker 6df175bd31 GDI paint test 2017-01-16 20:41:05 -05:00
Brad Parker bc8f9f7f3f add SwapBuffers() for gdi 2017-01-16 20:41:05 -05:00
Brad Parker fb7c3f4c37 set pixel format for GDI driver 2017-01-16 20:41:05 -05:00
Brad Parker 33520fca6f set win32_hdc for gdi 2017-01-16 20:41:05 -05:00
Brad Parker a7a1f093c0 add GDI message loop 2017-01-16 20:41:04 -05:00
Brad Parker 2c6a24653c testing 2017-01-16 20:41:04 -05:00
Brad Parker e6d7116da0 create GDI window 2017-01-16 20:41:04 -05:00
Brad Parker 05c37bd39f initial GDI driver skeleton 2017-01-16 20:41:04 -05:00
Brad Parker c283c1eaf4 disable shader dialog until video_threaded issues are fixed 2017-01-16 19:26:28 -05:00
Jean-André Santoni a9c3837cdb Display image thumbnail in the menu background selector 2017-01-17 01:02:48 +01:00
twinaphex aae2b2a276 (ui_win32.c) Further cleanups 2017-01-17 00:59:29 +01:00
twinaphex 864df4f55d Move local variable 2017-01-16 23:38:46 +01:00
twinaphex 1709b6889f (ui_win32.c) Use stdstring.c 2017-01-16 23:32:28 +01:00
twinaphex 1f3409dba8 (ui_win32.c) Some minor cleanups 2017-01-16 23:27:55 +01:00
Brad Parker 57e5af6461 update JP translation 2017-01-16 16:42:48 -05:00
twinaphex b3642df33f (ui_cocoa.m) Cleanups 2017-01-16 22:34:36 +01:00
twinaphex 0b1a204949 Roll this back 2017-01-16 22:32:39 +01:00
twinaphex 8958e02b54 Don't invoke this at beginning of function 2017-01-16 22:17:44 +01:00
twinaphex cb64f28950 Create drivers_init 2017-01-16 22:04:57 +01:00
twinaphex d519ad7017 (input_config.c) Move variable 2017-01-16 21:36:04 +01:00
twinaphex 1c82287e10 (video_state_tracker.c) Don't need header include 2017-01-16 21:33:25 +01:00
twinaphex f96ee3e6d6 (menu) cleanups; move variables 2017-01-16 21:31:30 +01:00
Brad Parker 99508cfd64 allow --disable-vulkan on Windows 2017-01-16 15:08:05 -05:00
Twinaphex 8aba35ef00 Merge pull request #4432 from aliaspider/master
(WiiU) add support for Bluetooth controllers
2017-01-16 19:08:08 +01:00
aliaspider a9749849e3 (WiiU) disc script: no need to delete icons. 2017-01-16 18:53:35 +01:00
aliaspider 8cb692622a (WiiU) add support for bluetooth controllers (Wiimote, nunchuk, classic
controller, wiiu pro controller).
2017-01-16 18:52:39 +01:00
Brad Parker fc5afa3122 add UTF8 BOM to fix MSVC build 2017-01-16 12:50:08 -05:00
twinaphex 9feb430b58 Don't pass video_info_t as pointer 2017-01-16 18:03:00 +01:00
Twinaphex af39ac76a4 Merge pull request #4431 from jprjr/coreaudio-fix
coreaudio: fix setting audio output device
2017-01-16 17:32:31 +01:00
John Regan da51c2ebf6 coreaudio: fix getting device name 2017-01-16 10:26:17 -06:00
CoalaJoe 04491c2044 Renamed Content to Inhalt 2017-01-16 16:50:34 +01:00
CoalaJoe b6916cf391 Add translation for loading content 2017-01-16 16:46:21 +01:00
CoalaJoe f23a1a1e24 Made help message more dynamic 2017-01-16 16:27:53 +01:00
twinaphex 77cf4f4e06 This should fix index issue 2017-01-16 16:09:40 +01:00
twinaphex 6eac6a6447 joy_idx goes through joypad_map now 2017-01-16 15:20:14 +01:00
CoalaJoe 289511d7a6 Fixed no playlist found translation 2017-01-16 11:31:44 +01:00
CoalaJoe 26d9d7e614 Add help message for libretro core text 2017-01-16 11:28:21 +01:00
CoalaJoe db0231d630 Added Translated helpmessages 2017-01-16 11:13:39 +01:00
Twinaphex 3200d2ec88 Merge pull request #4430 from libretro/msr_temp
(menu_input_bind_dialog) Prevent warning
2017-01-16 09:58:57 +01:00
twinaphex 0968bcc173 (menu_input_bind_dialog) Prevent warning 2017-01-16 09:57:21 +01:00
bparker06 b5403da862 use name instead of joypad_name 2017-01-15 23:04:56 -05:00
twinaphex 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
Alcaro e29fcd566a Merge pull request #4429 from GregorR/netplay-autosave-sram
Use autosave_lock and autosave_unlock during SRAM negotiation
2017-01-16 00:13:05 +01:00
Gregor Richards a0f236a83f Use autosave_lock and autosave_unlock during SRAM negotiation
The SRAM transfer in netplay handshake now uses autosave_lock and
autosave_unlock. Will possibly fix a hang/crash bug on Android with
netplay and autosave conflicting.
2017-01-15 18:10:24 -05:00
twinaphex 4a9ca66389 (WGL) Check if settings struct is non-NULL 2017-01-15 23:58:14 +01:00
twinaphex e3e8796b2b (iohidmanager_hid.c) Stylistic cleanups 2017-01-15 21:13:01 +01:00
Twinaphex 1544a3d6e1 (OSX) Fix warnings 2017-01-15 21:07:15 +01:00
Twinaphex e4fa9f178c Merge pull request #4427 from CoalaJoe/improve-german-translation
Add german translation to help menue
2017-01-15 21:00:54 +01:00
Ashura ff9d6e1ee8 Added some more translations 2017-01-15 20:56:04 +01:00
Ashura 0b029dc830 Ordered some code alphabeticaly 2017-01-15 20:33:16 +01:00
Ashura 15e8930604 Add german translation to help menue 2017-01-15 20:25:04 +01:00
Twinaphex ddc11e2d17 Merge pull request #4426 from jprjr/osx-iohidmanager
OSX Joypad Improvements
2017-01-15 19:49:06 +01:00
John Regan 4f352227ea OSX Joypad Improvements
This commit has two main changes to the OSX HID driver:

1.

Some joysticks have invalid/incorrect 'use' assigned to buttons and
axes. For example, my RetroUSB.com Genesis Retroport reports 8 buttons,
but they're reported as 1, 2, 3, 4, 1, 2, 3, 4, and my RetroLink
Gamecube-clone controller reports 2 axes with id 50.

OSX assigns each of these elements a unique cookie value, so it's still
possible to uniquely identify a button. Whenever a controller is
connected, the driver scans for all buttons and axes. When it identifies
a duplicate 'use' id, it reassigns it a new ID.

Whenever the input callback is called, it grabs the cookie value,
finds the input element with a matching cookie, and uses that element's
id instead of the one reported by the device.

The old joystick configs should not be broken by this - I'm using the
existing 'use' value wherever possible, and only changing it when it's
broken.

The 'faked' ids are done in a deterministic way, a joystick will never
have a button's 'faked' id change between launches of RetroArch.

2.

This enables HAT switch input.
2017-01-15 12:17:47 -06:00
Alcaro d2061b6f08 Merge pull request #4422 from GregorR/netplay-buf-nosignal
netplay_buf should use O_NOSIGNAL to avoid SIGPIPE
2017-01-15 17:01:00 +01:00
Gregor Richards e9e7878b5c netplay_buf should use O_NOSIGNAL to avoid SIGPIPE 2017-01-15 10:59:25 -05:00
Alcaro 1a12381bfc Close #4419 2017-01-15 16:48:08 +01:00
Twinaphex 105fa863ec Merge pull request #4418 from vanfanel/master
DISPMANX: Put guard back in to avoid potential lockups!
2017-01-15 13:55:58 +01:00
vanfanel 5a1e8d55fb DISPMANX: Put guard back in to avoid potential lockups! 2017-01-15 13:47:30 +01:00
Twinaphex 35df333ac4 Merge pull request #4417 from vanfanel/master
DISPMANX: implement pitch alignment for better videocore blitting per…
2017-01-14 23:08:07 +01:00
vanfanel 869a050a18 DISPMANX: implement pitch alignment for better videocore blitting performance 2017-01-14 23:01:05 +01:00
twinaphex 69ebda74c4 FIx shader 2017-01-14 22:48:02 +01:00
Twinaphex 56fcbba4ed Merge pull request #4416 from fr500/master
speed this up a bit
2017-01-14 22:45:06 +01:00
radius 33863714ab speed this up a bit 2017-01-14 15:54:56 -05:00
twinaphex ca5d798075 Add diff.diff 2017-01-14 21:35:00 +01:00
Twinaphex 473f3146e9 Merge pull request #4415 from fr500/master
add more fields
2017-01-14 21:24:06 +01:00
radius eb8f086e35 add more fields 2017-01-14 15:16:59 -05:00
Twinaphex 64473d95fb Merge pull request #4414 from fr500/master
add ISSUE template
2017-01-14 21:13:39 +01:00
radius e47aa13d57 add ISSUE template 2017-01-14 15:07:38 -05:00
twinaphex c875d95f7a Revert "Free font data inside gfx/font_driver.c's free function"
This reverts commit b3f1bbc15e.
2017-01-14 21:02:30 +01:00
Alcaro a73a90b701 Remove a bunch of unneeded parameters 2017-01-14 18:18:01 +01:00
Twinaphex 41881392ad Merge pull request #4408 from vanfanel/master
DISPMANX: Fix refreshrate calculation by updating menu surface asynch…
2017-01-14 17:05:17 +01:00
vanfanel 8640522073 DISPMANX: remove commented line 2017-01-14 15:56:54 +01:00
vanfanel da640aaa28 DISPMANX: Honor swapchain setting properly 2017-01-14 15:54:20 +01:00
vanfanel f0c2826994 DISPMANX: Fix refreshrate calculation by updating menu surface asynchronously 2017-01-14 14:38:18 +01:00
twinaphex b3f1bbc15e Free font data inside gfx/font_driver.c's free function 2017-01-14 14:26:56 +01:00
twinaphex 08e9f64e43 Get rid of early return in video_driver_build_info 2017-01-14 14:00:39 +01:00
twinaphex 326e1e3fac Cleanup video_driver_frame 2017-01-14 13:55:49 +01:00
twinaphex 6e52a25b86 Attempt to fix 'write to pointer after free' issues 2017-01-14 13:51:20 +01:00
twinaphex 4230662572 (X context) Use better swap control method if GLX_OML_sync_control
and GLX_MESA_swap_control are supported
2017-01-14 12:24:56 +01:00
twinaphex d7e0a9005b (rsound.c) Update rsound 2017-01-14 09:38:45 +01:00
twinaphex a8c9cd91d8 (wiiu) Cleanups 2017-01-14 09:35:52 +01:00
Twinaphex a321e4a97b Merge pull request #4407 from webgeek1234/master
Fix android input where source is reported as a stylus
2017-01-14 05:10:17 +01:00
Aaron Kling 8a2585f8dc Handle motion events if source is touchscreen or mouse regardless
of other sources being set.

API level 9 doesn't support stylus, but still needs to be handled.
Current code throws out additional sources that it doesn't
recognize. This instead ignores whether other sources are set.
2017-01-13 18:37:50 -06:00
twinaphex c162f21f9a Prevent another memory leak 2017-01-13 18:35:20 +01:00
twinaphex a859d2dc3f Prevent memory leak 2017-01-13 18:24:24 +01:00
twinaphex a4523e0b2b Initialize variable 2017-01-13 18:17:36 +01:00
twinaphex 23017e0b45 Cleanups 2017-01-13 16:57:57 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex fad63aa036 More header include removals 2017-01-13 16:41:08 +01:00
twinaphex 952f5e8d6e Remove some more configuration.h header includes 2017-01-13 16:39:43 +01:00
twinaphex 8c9e0405fb Create video_driver_build_info 2017-01-13 16:09:32 +01:00
twinaphex 6ed4de0d79 Create input_config_get_device_name 2017-01-13 16:02:10 +01:00
twinaphex 8b0127b122 (input_keyboard.c) Remove dependence on configuration.h header 2017-01-13 15:56:17 +01:00
twinaphex 17ff813310 (input_joypad_driver.c) reduce header dependencies on configuration.h 2017-01-13 15:53:14 +01:00
twinaphex 4ebf4d6938 Create input_config_get_bind_idx 2017-01-13 15:42:30 +01:00
twinaphex 0387e5e470 (input_keyboard.c) Cleanup 2017-01-13 15:26:40 +01:00
twinaphex f9dbd4dc02 Remove config_label_to_key 2017-01-13 15:24:54 +01:00
twinaphex b996df6447 Put back input flushing - fixes input entry 2017-01-13 15:11:00 +01:00
twinaphex cab74cd4a2 Buildfix 2017-01-13 10:00:43 +01:00
Twinaphex 49fdffad59 Merge pull request #4401 from matthewjwolff/master
Fix forgotten parameter of video_monitor_get_fps
2017-01-13 08:57:46 +01:00
Matthew Wolff f6284721d8 Fix forgotten parameter of video_monitor_get_fps 2017-01-12 23:40:58 -06:00
twinaphex ea3dd6a95b Set device name when autoconfig connect task fails for all
other input drivers too
2017-01-13 05:00:13 +01:00
twinaphex 455c3f35c9 Buildfix 2017-01-13 04:42:26 +01:00
twinaphex add7d26c3d Set device name for xinput/dinput even when autoconfig is
disabled
2017-01-13 04:40:44 +01:00
twinaphex 1f90535c39 (menu_event.c) Cleanups/style nits 2017-01-12 11:33:04 +01:00
twinaphex ef974086aa Split up menu OSK code to separate file - menu/widgets/menu_osk.c 2017-01-12 11:31:24 +01:00
twinaphex 24dc890b78 (gfx) Cleanups/style nit 2017-01-12 10:52:04 +01:00
twinaphex 1d59bc3452 (gfx) Style nits 2017-01-12 10:41:11 +01:00
twinaphex 0ee34b0076 (glslang_util.cpp) Cleanups/style nits 2017-01-12 10:32:57 +01:00
twinaphex 52ad8fb125 (gfx/drivers_font) Style nits 2017-01-12 10:26:12 +01:00
twinaphex b2ad5274b3 Cleanups/style nits 2017-01-12 09:01:07 +01:00
twinaphex 640c9aa824 Get rid of ifdef 2017-01-12 08:55:46 +01:00
Twinaphex c5d1fe9ec5 Cleanup 2017-01-12 07:36:52 +01:00
twinaphex 404e60f7ed Initialize all users' binds 2017-01-11 23:37:01 +01:00
twinaphex 73a5e54ca8 Initialize libretro_input_binds inside input_driver_init 2017-01-11 23:32:33 +01:00
twinaphex ca5bdab881 Rename get_state_menu_toggle_button_combo 2017-01-11 20:29:31 +01:00
twinaphex c1932ff8ff Cleanups 2017-01-11 13:18:24 +01:00
twinaphex 5875562dce Minor cleanup 2017-01-11 13:14:44 +01:00
twinaphex 640d7e69f3 Make menu toggle binds work again - still latching issues
but same as before so no regression
2017-01-11 11:48:26 +01:00
twinaphex 03ba5b21df (menu_input_bind_dialog.c) Hackier but dispenses with the 1-second
delay which was annoying
2017-01-11 10:37:37 +01:00
twinaphex 365564b0ed When we bind a single key, introduce a 1-second delay to
get around input latching issue that can occur when pressing
OK/Cancel buttons for binding - which would immediately
leave the screen or enter the input binding again (workaround
for now until we fix these latching issues in the menu)
2017-01-11 10:21:34 +01:00
twinaphex b45c96cc18 (WiiU) Buildfix 2017-01-11 08:24:55 +01:00
twinaphex 819f7c1e41 Get rid of input_keys_pressed_end macro 2017-01-11 07:31:37 +01:00
twinaphex c79da6842e Found a better and clenaer way to flush input 2017-01-11 07:31:09 +01:00
twinaphex b20c9d870b Add block_frames member to audio driver init function;
be more prudent with strdup
2017-01-11 07:25:42 +01:00
twinaphex 7d0056d422 Minimize dependence on settings struct from within context drivers 2017-01-11 06:44:41 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex d0df067e84 Ignore 'unified controls' when OSK keyboard is onscreen even
when unified controls are enabled
2017-01-11 06:05:21 +01:00
twinaphex 899601e7bb Do an early return inside menu_shader_manager_init if already initialized 2017-01-11 03:36:35 +01:00
twinaphex 9daf16ee55 Fix crash at startup when enable_hotkey is mapped 2017-01-11 03:23:47 +01:00
Jean-André Santoni f3f20f440f Comment the download subdir support for now. We don't use it and it causes a glitch in XMB 2017-01-11 03:05:40 +01:00
twinaphex 4f4af01349 Fix keyboard issues with OSK 2017-01-11 02:17:03 +01:00
Jean-André Santoni 4bc04f7b28 Hide sublabels on super small screens like the one of Gamegirl 320x240 2017-01-11 01:24:50 +01:00
twinaphex 997fa98887 Style nit 2017-01-11 00:00:24 +01:00
Jean-André Santoni d08fa66ff1 Also display image thumbnails in the file browser 2017-01-10 23:26:07 +01:00
twinaphex 716a409816 (database_info.c) Only do strdup if val_string is not empty 2017-01-10 23:15:26 +01:00
twinaphex b95a817471 (GLSM) Update 2017-01-10 22:53:22 +01:00
twinaphex 5b15119f06 (PSP) Buildfix 2017-01-10 22:48:39 +01:00
twinaphex cd105e7432 (CTR) Buildfix 2017-01-10 22:45:53 +01:00
twinaphex 6b5bf1ccc3 (wiiu_input.c) Fix build 2017-01-10 22:44:44 +01:00
twinaphex a07f591859 (file_list.c) Cleanups 2017-01-10 22:24:46 +01:00
twinaphex 34d5f609f7 (x11_common.c) Cleanups 2017-01-10 21:54:48 +01:00
twinaphex a153d600e4 (font_renderer) Cleanups 2017-01-10 21:50:59 +01:00
twinaphex 20b5543420 (gl_raster_font.c) Cleanups 2017-01-10 21:43:45 +01:00
twinaphex d20bdabc20 Cleanup gl_raster_font_render_msg 2017-01-10 21:37:45 +01:00
twinaphex 6e696d8560 Rename g_osd_font to video_font_driver 2017-01-10 21:26:48 +01:00
twinaphex c1c35c5120 More platform build fixes 2017-01-10 21:15:52 +01:00
twinaphex f233745483 (SDL gfx) Buildfix 2017-01-10 21:01:13 +01:00
twinaphex 59a07d73b5 (PS3) Buildfix 2017-01-10 20:19:58 +01:00
twinaphex f1ef1a6a59 (GX) Buildfix 2017-01-10 20:18:49 +01:00
twinaphex 2ed1e38021 dinput.c - silence warning 2017-01-10 20:11:51 +01:00
twinaphex 5978cf89de Cleanups 2017-01-10 20:05:53 +01:00
twinaphex 1eb17b6315 Remove settings header includes 2017-01-10 20:03:55 +01:00
twinaphex f3de77e93c (dinput.c) remove dependency on settings struct 2017-01-10 20:00:07 +01:00
twinaphex db725155c1 (D3D) Another buildfix 2017-01-10 19:55:31 +01:00
twinaphex bc50f99e40 (WGL) Add header include 2017-01-10 19:51:06 +01:00
twinaphex da244c177b Fix signed/unsigned mismatch warning 2017-01-10 19:49:00 +01:00
twinaphex a835149f69 (WGL) Buildfix 2017-01-10 19:48:19 +01:00
twinaphex 76ae7ac4a0 Cleanup some of the video drivers - add some members to
video_info_t to reduce the need for accessing the settings
struct
2017-01-10 18:16:22 +01:00
twinaphex 0b03e95d95 We no longer need the settings struct inside gl_init 2017-01-10 18:08:05 +01:00
twinaphex 8bd12368ef Pass joypad_driver name to input_driver_init function and make
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex db6fba51c3 Cleanup dinput.c 2017-01-10 17:42:57 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex da4d2a9f42 Remove conditionals for device JOYPAD from input_state callback functions 2017-01-10 17:05:04 +01:00
twinaphex b44b025eab Do conditional checking (if bind is valid) outside of input_state
callback function
2017-01-10 17:00:01 +01:00
twinaphex 08a2acdc95 Update input_keys_pressed_checks 2017-01-10 16:51:35 +01:00
twinaphex baf351e1ee CLeanup input_menu_keys_pressed_internal 2017-01-10 16:34:55 +01:00
twinaphex 98a346db2d Cleanup input_menu_keys_pressed_internal 2017-01-10 16:29:16 +01:00
twinaphex f26fbbef83 (input_driver.c) Move settings variable 2017-01-10 16:17:34 +01:00
twinaphex 0e487e0acd Create input_keys_pressed_end 2017-01-10 16:15:20 +01:00
twinaphex 22b86226f8 Fix warnings 2017-01-10 16:14:49 +01:00
twinaphex 91e572d7ef Create input_keys_pressed_checks macro 2017-01-10 16:08:31 +01:00
twinaphex 466d5fd531 (input_driver.c) Cleanups 2017-01-10 16:03:25 +01:00
twinaphex b94c4eec2b (input_driver.c) Cleanups 2017-01-10 16:00:20 +01:00
twinaphex a233ce4c87 Set list_info.fullpath to NULL for menu_entries_prepend 2017-01-10 15:49:39 +01:00
twinaphex b9945f05f1 Pass joypad_info to input_joypad_analog 2017-01-10 03:53:57 +01:00
twinaphex 6376f2af68 Add rarch_joypad_info_t 2017-01-10 03:44:53 +01:00
twinaphex 4c611e42c6 (msg_hash_vn.c) Buildfix 2017-01-09 23:12:26 +01:00
Twinaphex 205c70e708 Merge pull request #4391 from cudencuden/master
More Vietnamese translation progress
2017-01-09 23:11:21 +01:00
twinaphex 1b13c9b9fc Fix xmb_draw_text regression 2017-01-09 23:11:05 +01:00
cudencuden fb4f8cac3f More Vietnamese translation progress 2017-01-09 16:06:45 -06:00
twinaphex 6b29b44330 Silence warning without ifdef 2017-01-09 22:57:22 +01:00
twinaphex aea9784a44 Silence warning 2017-01-09 22:55:27 +01:00
twinaphex 73f7396625 Buildfix 2017-01-09 22:53:11 +01:00
twinaphex c97ae2312e Small style nit 2017-01-09 22:48:13 +01:00
Twinaphex 79bfcb19ce Merge pull request #4389 from ShiftyAxel/qnx-bb10
Updated BB10/QNX Support
2017-01-09 22:29:55 +01:00
Josh Palmer a620e1f89a Add cores folder to QNX .gitignore 2017-01-09 20:26:09 +00:00
Josh Palmer 42bf55fb21 Fixup preprocessor defines for momentics project, increment bar descriptor build ID 2017-01-09 20:26:09 +00:00
Josh Palmer 453d823d2a Fix jsonsax compilation on QNX, 'index' appears to be a reserved symbol 2017-01-09 20:26:09 +00:00
Josh Palmer b85e2a8897 Fix references to bbctx-qnx post-rebase 2017-01-09 20:26:09 +00:00
Josh Palmer 5ed17c1ffd Reorganize QNX directory structure, rename bbqnx_ctx.c to qnx_ctx.c for consistency
Added OpenGL ES3 support to qnx_ctx.c
Finalize momentics project setup
2017-01-09 20:26:09 +00:00
Josh Palmer 437734e407 Rewrite QNX input & joypad drivers for proper BB10.3.1 support 2017-01-09 20:26:09 +00:00
Josh Palmer e1d3493a9d Handle more cases for EGL error reporting 2017-01-09 20:26:09 +00:00
Josh Palmer ef205447df QNX-specific default directory and file permission handling 2017-01-09 20:26:09 +00:00
Josh Palmer 50cb8d2b95 Add QNX-specific settings to config.def.h, refactor default keybinds into a separate file for cleaner per-platform setup 2017-01-09 20:26:09 +00:00
Josh Palmer 99988bbac5 Don't try to load wallpaper from an empty path in materialui.c 2017-01-09 20:26:09 +00:00
Josh Palmer 0ea81fc874 Fix menu_cbs_deferred_push.c compilation when HAVE_LIBRETRODB is not defined 2017-01-09 20:24:51 +00:00
Josh Palmer 39ba27848f Add QNX-specific codepath for fill_pathname_application_path 2017-01-09 20:24:51 +00:00
Josh Palmer 8672b88eff First round of momentics project fixups 2017-01-09 20:24:51 +00:00
twinaphex 42c26ec539 (menu_shader.c) Cleanups 2017-01-09 20:42:15 +01:00
twinaphex 9826b45242 Fix two Coverity errors 2017-01-09 19:49:58 +01:00
Alcaro 3d600c9f11 Fix some misleading indentation 2017-01-09 19:26:34 +01:00
twinaphex 7cdfcb44eb Remove obsolete line 2017-01-09 19:18:18 +01:00
twinaphex 29370cb07c (Zarch) Buildfix 2017-01-09 18:55:13 +01:00
twinaphex 99421b42d5 Update Makefile 2017-01-09 17:47:25 +01:00
twinaphex fbb7dbd36b Add pipeline.active to menu_display_draw_ctx_t 2017-01-09 17:22:28 +01:00
twinaphex 04c23189e9 (menu_display.c) Cleanups 2017-01-09 17:10:57 +01:00
twinaphex 1e60376e7c Simplify menu_display_draw_bg - take out XMB-specific code out of
menu_display.c
2017-01-09 16:55:46 +01:00
twinaphex 4d77dacbe5 Implement rgui_environ - framebuffer will update itself when mouse
is active
2017-01-09 16:49:57 +01:00
twinaphex 02dfda3ad3 Create menu_animation_update 2017-01-09 16:39:09 +01:00
twinaphex 52a0592a4d (XMB) Style nits 2017-01-09 16:26:50 +01:00
twinaphex 05bff46236 (MaterialUI) Fix performance regression - we were not checking
if the menu background actually exists prior to initiating the task
2017-01-09 16:21:07 +01:00
Twinaphex 476c047f85 (OSX) Buildfix 2017-01-09 16:16:59 +01:00
twinaphex 179831174d (xmb.c) Cleanups - don't grab settings pointer everywhere 2017-01-09 16:00:53 +01:00
twinaphex c086a18ceb video_driver_frame_filter no longer needs to grab pointer to
settings
2017-01-09 15:46:40 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex 35fefb1c09 Do away with yet more pointer grabbing of settings 2017-01-09 15:14:16 +01:00
twinaphex 6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex 3d92ce140e Pass video_frame_info_t to update_window_title 2017-01-09 14:42:07 +01:00
twinaphex be2f921ee2 Don't use settings pointer inside video_frame function 2017-01-09 14:25:59 +01:00
twinaphex f3e7fc09d4 Fix pulse.c 2017-01-09 13:10:15 +01:00
twinaphex 83e8aec3d4 Refactor audio driver code - add new_rate variable 2017-01-09 13:09:14 +01:00
twinaphex 8fa011d836 Get rid of some header includes 2017-01-09 12:50:54 +01:00
twinaphex b89ec1369f Rename rarch_resampler_* to retro_resampler_* 2017-01-09 12:45:51 +01:00
twinaphex 03adb6fd3a Rename rarch_dsp_* to retro_dsp_* 2017-01-09 12:41:59 +01:00
twinaphex 14a800f1f5 Update Makefiles - audio_filters have been moved to libretro-common 2017-01-09 12:37:01 +01:00
twinaphex 92f9ad0714 Move audio DSP filters to libretro-common 2017-01-09 12:30:11 +01:00
twinaphex d3b818a16a Move dsp_filter to libretro-common 2017-01-09 12:22:29 +01:00
twinaphex 2c6ff22862 Move libretro_dspfilter.h to libretro-common 2017-01-09 12:17:57 +01:00
twinaphex 6f2dc9196b Cleanups 2017-01-09 12:14:46 +01:00
twinaphex 830cadc01d Start making audio_dsp_filter.c no longer dependent on Rarch
headers
2017-01-09 11:58:38 +01:00
twinaphex f246cc7b40 (task_autodetect.c) Style nits 2017-01-09 11:45:04 +01:00
Twinaphex 77ddedd87d Merge pull request #4386 from fr500/master
this code makes the pipeline work
2017-01-09 09:54:17 +01:00
radius e2c3784734 this code makes the pipeline work 2017-01-08 23:18:54 -05:00
Twinaphex 3b61a9f836 Merge pull request #4385 from fr500/master
cleanup more xmb code
2017-01-09 04:47:27 +01:00
radius b55fcb22ea cleanup more xmb code 2017-01-08 22:44:57 -05:00
twinaphex b4b79b56ae CLeanup 2017-01-09 03:59:59 +01:00
twinaphex 2d399fd370 (Griffin) Buildfix 2017-01-09 03:57:47 +01:00
twinaphex 25decd033a Cleanup menu_shader.c 2017-01-09 03:53:55 +01:00
twinaphex 78608f4c46 Create menu_shader_manager_get_parameters 2017-01-09 03:28:26 +01:00
twinaphex 338980ef29 (menu shader manager) Cleanups 2017-01-09 03:18:37 +01:00
twinaphex 1fd9be102f (menu shader manager) Cleanups 2017-01-09 03:14:53 +01:00
twinaphex a5ad63b577 More cleanups 2017-01-09 03:08:08 +01:00
twinaphex 5e3c2f3f63 Create menu_shader_manager_get_pass 2017-01-09 03:06:24 +01:00
twinaphex 9b0950440a Create menu_shader_manager_get_amount_passes 2017-01-09 03:01:59 +01:00
twinaphex dfec7a44ca Cleanups 2017-01-09 02:49:39 +01:00
twinaphex 80bc91477a Remove header include 2017-01-09 02:19:16 +01:00
twinaphex 485385be80 Cleanups 2017-01-09 02:13:16 +01:00
twinaphex ba2968aa8a Cleanups 2017-01-09 02:12:08 +01:00
twinaphex 422a9a4455 (audio_dsp_filter.c) Cleanups 2017-01-09 02:10:22 +01:00
twinaphex bdc9bf68c6 Cleanups 2017-01-09 02:06:32 +01:00
twinaphex 9a263b98ff (core_impl.c) Remove some header includes 2017-01-09 02:04:47 +01:00
twinaphex d297899234 Cleanups; header includes 2017-01-09 02:00:27 +01:00
twinaphex a90cf337c7 C buildfix 2017-01-09 01:56:36 +01:00
twinaphex dd1c376ea9 C89_BUILD fixes 2017-01-09 01:55:38 +01:00
twinaphex c87ef25133 CXX_BUILD fix 2017-01-09 01:54:15 +01:00
twinaphex 42686f2f81 (input_overlay.c) remove bunch of header includes 2017-01-09 01:51:30 +01:00
Twinaphex 6b2601eb91 Merge pull request #4384 from fr500/master
small optimization by @aliaspider
2017-01-09 00:39:10 +01:00
radius 86e8c409fe small optimization by @aliaspider 2017-01-08 18:36:06 -05:00
twinaphex 68d484bf60 Set supports_rgba before calling image_texture_load 2017-01-08 21:49:23 +01:00
twinaphex ccca4c303d Set supports_rgba for overlay images 2017-01-08 21:45:43 +01:00
twinaphex 9b6b055047 avoid some implicit memsets 2017-01-08 19:35:24 +01:00
twinaphex 9e309032d4 (platform_linux.c) Cleanup 2017-01-08 18:12:43 +01:00
twinaphex 52f9084665 (platform_linux.c) Cleanups 2017-01-08 17:57:13 +01:00
twinaphex 106ab9b42b Rename 'Estimated Monitor Framerate' 2017-01-08 07:42:50 +01:00
twinaphex 9080ba00a8 Rename 'monitor' to 'screen', 'Aspect Ratio Index' to 'Aspect Ratio' 2017-01-08 07:40:19 +01:00
Twinaphex 1619cdcddb Merge pull request #4381 from fr500/master
improve readability a bit
2017-01-08 04:55:01 +01:00
radius f87f7d026d improve readability a bit 2017-01-07 22:47:55 -05:00
twinaphex 61a8638d4c Fixes ribbon row offset issues 2017-01-08 04:16:13 +01:00
twinaphex c8bc6c7120 (XMB) Add Bokeh menu pipeline 2017-01-08 03:56:47 +01:00
twinaphex 77663d1a96 Fix 'move left/right' actions when at history tab on 'No Items' entry 2017-01-08 03:30:20 +01:00
twinaphex c415dc80e8 Fix 'move left' action when on any tab with 'no items' entry 2017-01-08 03:13:34 +01:00
twinaphex 061da28c3f (menu_entries.c) Don't need menu_label 2017-01-08 02:44:40 +01:00
twinaphex 830c01476f Set fullpath for menu_entries_prepend 2017-01-08 02:33:06 +01:00
twinaphex c6988fbda7 Rename 'Show Tab' messages 2017-01-08 02:23:27 +01:00
twinaphex c57ab8f37a Add pipeline_bokeh to shader_glsl.c 2017-01-08 02:16:47 +01:00
twinaphex addd87b762 Update xui.cpp 2017-01-08 02:14:44 +01:00
twinaphex 09a83525a9 Add pipeline_bokeh.glsl.frag.h 2017-01-08 02:13:36 +01:00
twinaphex f6ebcebfea playlist.c - cleanup 2017-01-07 18:52:57 +01:00
twinaphex 9d9a5e71ab (XMB) Set fullpath dir for each node entry 2017-01-07 18:32:55 +01:00
Brad Parker 51504286be revert flush flug for positive OSD progress 2017-01-07 12:23:18 -05:00
twinaphex d1d97e9d9d Set shader pipeline to wallpaper mode when setting a menu wallpaper 2017-01-07 18:13:52 +01:00
twinaphex 689eb71795 Rename FILEBROWSER_SELECT_IMAGE to FILEBROWSER_SELECT_FILE 2017-01-07 18:10:17 +01:00
twinaphex f18bc0e814 Allow left/right scroll on 'Browse Archive/Load archive' 2017-01-07 17:51:17 +01:00
twinaphex 7ea15e217f Allow scrolling left/right on 'No items' item 2017-01-07 17:44:27 +01:00
twinaphex 4e037cbe68 (XMB) 'Menu wallpaper' - Show images in aesthetically pleasing way 2017-01-07 17:10:29 +01:00
twinaphex 01bd63cab9 'Core Updater' and 'Content Downloader' returns normally now 2017-01-07 10:24:05 +01:00
twinaphex a3c334e6c1 'Menu Wallpaper' settings now properly returns 2017-01-07 09:57:38 +01:00
twinaphex 61168a442f (Filebrowser) Fix 'Menu Wallpaper' setting 2017-01-07 09:53:39 +01:00
twinaphex f1acb16401 Add filebrowser_get_type and filebrowser_clear_type 2017-01-07 09:40:07 +01:00
Twinaphex faa8ddf413 Remove unused variables 2017-01-07 08:11:23 +01:00
Twinaphex e57c64130a Merge pull request #4378 from libretro/revert-4377-master
Revert "allow serial scanner to match PBP"
2017-01-07 07:18:04 +01:00
Twinaphex 2834370e09 Revert "allow serial scanner to match PBP" 2017-01-07 05:52:12 +01:00
Twinaphex a88b5bceb6 Merge pull request #4377 from fr500/master
allow serial scanner to match PBP
2017-01-07 05:04:56 +01:00
twinaphex 9cf923fbeb BUmp up version for Android 2017-01-07 04:46:05 +01:00
twinaphex bc31a7d1be Bump up to version 1.4.0 2017-01-07 04:45:30 +01:00
radius 1866706c75 allow serial scanner to match PBP 2017-01-06 22:05:55 -05:00
Brad Parker 9d7fe2c3f0 early return is mutex is null 2017-01-05 21:20:37 -05:00
twinaphex 35a9a74982 Rename 'Supported Cores' to 'SUggested Cores' 2017-01-06 02:07:42 +01:00
Twinaphex dad2be5d70 Merge pull request #4373 from vanfanel/master
DISPMANX: Fix hang when null frame is passed (TyrQuake core)
2017-01-05 23:55:39 +01:00
vanfanel 7ba3ff9c12 DISPMANX: Fix hang when null frame is passed (TyrQuake core) 2017-01-05 23:47:33 +01:00
twinaphex bbcdc18801 Remove unused variables 2017-01-05 22:18:09 +01:00
Twinaphex 3cffd19f2a Merge pull request #4370 from loganmc10/threaded
Fix XMB when using threaded video and shared context
2017-01-05 22:05:23 +01:00
Logan McNaughton 017d9cea9d This fixes the XMB menu for me
When using threaded video and shared context

Threaded video gets disabled for GL contexts, so you can't rely on the settings value
2017-01-05 12:53:55 -08:00
twinaphex 7d08244204 Prevent crash when togglign between thraded and non-threaded
video
2017-01-05 08:56:16 +01:00
twinaphex c028f56016 Turn video_driver_is_threaded into a static function 2017-01-05 08:52:30 +01:00
twinaphex 5203495e09 Cleanup 2017-01-05 08:44:33 +01:00
twinaphex d49502d6e9 Use an ifdef for this callback function 2017-01-05 08:18:17 +01:00
twinaphex da03e81454 (runloop.c) Cleanups 2017-01-05 08:16:58 +01:00
twinaphex b2608d8cf6 Reduce ifdefs 2017-01-05 08:14:56 +01:00
twinaphex 6078deb510 (PS3) Fix warnings 2017-01-05 07:48:11 +01:00
twinaphex 1d43224f7e (xmb.c) header cleanup 2017-01-05 07:42:35 +01:00
twinaphex 7c2b4d701f (menu_event.c) remove header includes 2017-01-05 07:37:47 +01:00
twinaphex 701b8a1b08 Cleanups 2017-01-05 07:35:47 +01:00
twinaphex f1cb2fb932 (menu_input.c) Cleanups 2017-01-05 07:32:58 +01:00
twinaphex f6e519d79a (menu_navigation.c) Cleanup 2017-01-05 07:29:18 +01:00
twinaphex 2f986d01f2 (menu_navigation.c) Cleanups 2017-01-05 07:26:55 +01:00
twinaphex e82abdf216 Buildfix 2017-01-05 05:09:16 +01:00
twinaphex cf900b02fb (menu_cbs.c) Turn off logging 2017-01-05 05:02:35 +01:00
twinaphex e75633064a Add 'Y button' callback function for input binds 2017-01-05 04:52:04 +01:00
twinaphex 7ec6dc0bde (x_ctx.c) Cleanup 2017-01-04 09:44:08 +01:00
twinaphex dd264f83d3 Silence more memcheck issues 2017-01-04 09:34:12 +01:00
twinaphex 1fa08e327b Silence some warnings about uninitialised values 2017-01-04 09:15:11 +01:00
Twinaphex 073b137036 Merge pull request #4360 from fr500/master
allow downscaling too
2017-01-04 09:01:25 +01:00
radius c395e13261 allow downscaling too 2017-01-03 22:50:30 -05:00
Brad Parker 2b25704d63 fix battery charging status on linux 2017-01-03 15:40:01 -05:00
twinaphex b3c477902c conditional is not necessary 2017-01-03 19:30:11 +01:00
Twinaphex 1081ecc87f Merge pull request #4358 from hizzlekizzle/master
Create Mono.dsp
2017-01-03 19:27:57 +01:00
hizzlekizzle e4ed89d736 Create Mono.dsp 2017-01-03 12:16:05 -06:00
twinaphex 1d6f88b0ec Try to prevent 'write to pointer after free' issues 2017-01-03 19:07:56 +01:00
twinaphex b13d069578 - Silence Coverity warning in platform_linux.c
- Don't do settings lookup when calling runloop_msg_queue_push
2017-01-03 18:47:34 +01:00
twinaphex faf939856b Rewrite task_queue.c - get rid of messy internal Rarch code 2017-01-03 18:27:09 +01:00
Brad Parker ef0b15f3f4 fix more memory leaks 2017-01-03 12:00:52 -05:00
twinaphex 7dfd5625ab Set flush to false for task queue messages 2017-01-03 17:57:52 +01:00
twinaphex 89dcc9bf5f Task queue - shows all the task queue messages now 2017-01-03 08:42:33 +01:00
twinaphex 314fd776e3 (task_screenshot.c) Cleanups 2017-01-03 06:57:55 +01:00
twinaphex 5bb741ffda (input) Cleanups/nits 2017-01-03 04:55:37 +01:00
twinaphex 135394d193 Add is_paused member variable to screenshot task state 2017-01-03 04:42:10 +01:00
twinaphex 80519955ca (task_screenshot.c) Nits 2017-01-03 04:40:11 +01:00
twinaphex f6c861cf1a Cleanup 2017-01-03 04:37:52 +01:00
twinaphex 20d313204a Add history_list_enable to screenshot task state 2017-01-03 04:35:13 +01:00
twinaphex 5de111212a (task_screenshot.c) Cleanups 2017-01-03 04:30:02 +01:00
Brad Parker ede267805d fix memory leak in linux battery check 2017-01-02 22:16:00 -05:00
twinaphex be21e30230 task_autodetect.c - cleanup 2017-01-03 03:52:26 +01:00
Twinaphex 503ccfbc42 Merge pull request #4356 from GregorR/netplay-alive-server-spectating
Fix to the netplay_is_alive function when server isn't playing
2017-01-03 02:42:26 +01:00
Gregor Richards 20c0de352c Fix to the netplay_is_alive function when server isn't playing
Fixes a bug by which very strange things would happen if the server went
to spectator mode with exactly one connected client.
2017-01-02 20:03:00 -05:00
Twinaphex 6bd212a6ce Merge pull request #4355 from GregorR/netplay-load-savestate-server-not-playing
LOAD_SAVESTATE can't use player frame timing from a server that's not playing
2017-01-03 01:18:34 +01:00
Gregor Richards ee55e2d783 LOAD_SAVESTATE can't use player frame timing from a server that's not playing 2017-01-02 18:56:08 -05:00
twinaphex 095c97d053 Don't try to save autoconfig profile if device name is empty 2017-01-02 08:11:28 +01:00
twinaphex 03818dc780 Always set VID/PID/name for connect tasks 2017-01-02 07:47:38 +01:00
twinaphex 824ba64daa Set autoconfig directory for autodetect task 2017-01-02 05:33:29 +01:00
twinaphex 4e3c2b3e66 (PSP/Vita) Buildfix 2017-01-02 02:39:15 +01:00
Alcaro fcb17d91d9 warning: comparison between signed and unsigned integer expressions 2017-01-02 02:23:30 +01:00
Alcaro 9cf987c328 warning: comparison between signed and unsigned integer expressions 2017-01-02 02:18:54 +01:00
Alcaro 7b8a5b4f5b error: invalid conversion from ‘int’ to ‘xkb_keymap_compile_flags’ 2017-01-02 02:17:32 +01:00
Alcaro f62ad35238 Shut up some warnings 2017-01-02 02:16:29 +01:00
Alcaro f95759c39b No need for those casts 2017-01-02 02:11:30 +01:00
Brad Parker 1ae9c7d6d4 move net_http_parse to extern C for MSVC 2017-01-01 20:04:10 -05:00
twinaphex dae80e4e26 (MSVC) Buildfixes 2017-01-02 01:41:00 +01:00
twinaphex 3b4c50b19e filebrowser_clear_type - get rid of it 2017-01-01 06:19:07 +01:00
twinaphex b243fec095 Simplif gfx_ctx_drm_queue_flip 2017-01-01 06:06:44 +01:00
twinaphex f94d07b0fc Cleanup msg_queue_new 2017-01-01 05:58:12 +01:00
twinaphex fa606ee479 Cleanup command_event_save_current_config 2017-01-01 05:36:18 +01:00
twinaphex 92ca53db01 No more usage of settings_t inside input_overlay.c 2017-01-01 04:57:57 +01:00
twinaphex 36a6abede7 (input_overlay.c) Cleanup 2017-01-01 04:31:22 +01:00
twinaphex 46080f2194 (input_overlay.c) Cleanup 2017-01-01 04:28:25 +01:00
twinaphex d84b75e1de (input_overlay.c) Cleanups 2017-01-01 04:26:21 +01:00
twinaphex 8d8fab60f9 input_overlay.c - cleanups 2017-01-01 04:21:29 +01:00
twinaphex 0ec6ef75df Move early return check to input_driver.c 2017-01-01 04:17:58 +01:00
twinaphex 6d4659a902 (overlay) Reduce dependence on grabbing settings pointer everywhere 2017-01-01 04:12:24 +01:00
twinaphex 6001fc65c1 Properly go back to top level settings when selecting a video
filter or audio filter
2017-01-01 01:44:12 +01:00
twinaphex b10b70281b (Overlay) Selecting an overlay goes back correctly to the preceding
settings list
2017-01-01 01:34:28 +01:00
twinaphex bed1db78aa (Directory settings) We go back one level to Directory Settings 2017-01-01 01:31:10 +01:00
Twinaphex bcbb06c898 Merge pull request #4343 from Ryunam/master
Only show 'Information' if the .lpl playlist points to an existing database
2016-12-31 15:58:06 +01:00
twinaphex 5d9934d4da Remove buf variable 2016-12-31 07:59:28 +01:00
twinaphex d3470637ad Add max_users param to autoconfig_params_t 2016-12-31 07:54:38 +01:00
twinaphex 103042de96 Rewrite task_autodetect.c 2016-12-31 07:43:34 +01:00
twinaphex 6faabfeebf Don't use settings struct from thrading functions 2016-12-31 07:03:29 +01:00
Twinaphex ff4b260853 Merge pull request #4342 from loganmc10/patch-10
Attempt to fix some issues with BGRA textures
2016-12-31 05:15:23 +01:00
Logan McNaughton 35792721e5 Attempt to fix some issues with BGRA textures 2016-12-30 21:14:30 -07:00
Ryunam c55ed91c46 Only show the 'Information' option for a Playlist entry if the 6th line of the .lpl playlist points to an existing file 2016-12-31 01:11:29 +01:00
Twinaphex ee6cbd0bbf Merge pull request #4340 from loganmc10/patch-9
Use this code for GLES2 and GLES3
2016-12-30 22:08:52 +01:00
Logan McNaughton 34ad1555f1 Use this code for GLES2 and GLES3 2016-12-30 13:56:54 -07:00
Twinaphex 62b79a28b4 Merge pull request #4339 from loganmc10/patch-7
Found a combination that doesn't work
2016-12-30 18:45:58 +01:00
Logan McNaughton 8953bce122 Found a combination that doesn't work 2016-12-30 10:42:26 -07:00
Twinaphex f570808692 Merge pull request #4338 from loganmc10/patch-6
One more sized format
2016-12-30 18:31:13 +01:00
Logan McNaughton f94e944723 Update gl_common.c 2016-12-30 10:30:21 -07:00
Logan McNaughton c0bdc67458 One more sized format 2016-12-30 10:29:26 -07:00
Twinaphex 18cfe90d0a Merge pull request #4337 from loganmc10/patch-5
This wasn't working on Android
2016-12-30 18:23:27 +01:00
Logan McNaughton 90a1c76abb This wasn't working on Android 2016-12-30 10:22:12 -07:00
Twinaphex 2174ba5e27 Merge pull request #4321 from loganmc10/glupen
Use RGBA for internal format
2016-12-30 16:18:40 +01:00
Brad Parker daa5553777 fix another race condition 2016-12-29 23:39:51 -05:00
twinaphex 5d6bdbc2cd (task_image.c) Cleanup 2016-12-30 05:36:06 +01:00
twinaphex 598032f15e Cleanup 2016-12-30 05:33:42 +01:00
twinaphex 876a68717e We don't need enum_idx for task_push_image_load 2016-12-30 05:33:04 +01:00
Brad Parker 94309b3acd fix ThreadSanitizer data race warning 2016-12-29 23:16:00 -05:00
twinaphex 583511c045 nbio handle should be initialized on the thread, not the
main thread
2016-12-30 04:58:58 +01:00
Twinaphex f962723943 Silence warning - unused variable 2016-12-30 03:32:35 +01:00
Twinaphex 97e758286c Merge pull request #4334 from libretro/revert-4315-patch-2
Revert "(Android) Ask for external sdcard permission"
2016-12-30 01:32:29 +01:00
Twinaphex fb7ed87d2e Revert "(Android) Ask for external sdcard permission" 2016-12-30 01:32:11 +01:00
twinaphex dde441e1d2 Remove prototypes 2016-12-29 23:51:48 +01:00
twinaphex 9657bbd998 Get rid of set_rgba/unset_rgba inside image_texture.c 2016-12-29 23:22:40 +01:00
twinaphex 05a899a411 Add nbio_status_flags 2016-12-29 23:14:48 +01:00
twinaphex 6a166faa0c Revert "Remove supports_rgba varaible from image_texture.c"
This reverts commit bd0c97fdc4.
2016-12-29 22:53:10 +01:00
twinaphex bd0c97fdc4 Remove supports_rgba varaible from image_texture.c 2016-12-29 22:39:52 +01:00
Twinaphex 61d322f82c Merge pull request #4332 from hizzlekizzle/master
Revert "(Android) reload cores path every lauch"
2016-12-29 21:34:11 +01:00
hunterk 7e8163c34e Revert "(Android) reload cores path every lauch"
This reverts commit 1841455462. This commit was breaking Android builds on the buildbot.
2016-12-29 10:29:59 -06:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 67f1cca625 Don't try to use settings_t pointer from task callback functions 2016-12-29 06:09:58 +01:00
twinaphex 3a581ba8b0 (task_autodetect.c) Solve some threading errors 2016-12-29 05:49:24 +01:00
twinaphex 31aa1d6d19 Fix saved state message 2016-12-28 00:44:29 +01:00
Twinaphex b238f32cb7 Merge pull request #4326 from GregorR/netplay-address-prompt
Server prompt when connecting to netplay host
2016-12-28 00:40:53 +01:00
twinaphex 28dedee477 Attempt to prevent crashes in task_image 2016-12-28 00:40:46 +01:00
twinaphex 6708da5ec1 task->progress is where the data race issues come from - commenting
out for now
2016-12-28 00:20:34 +01:00
twinaphex 2f0c66da34 Use non-C++ comments 2016-12-28 00:14:16 +01:00
twinaphex 89bb4f610d task_http.c - comment this out until we have fixed the threading
errors
2016-12-28 00:11:56 +01:00
twinaphex 141046b45b Add note about race issue 2016-12-27 23:56:32 +01:00
twinaphex ea39d3914e Prevent some heap-use-after-free issues 2016-12-27 23:48:10 +01:00
twinaphex 91f3a4bf11 Remove this - not threadsafe 2016-12-27 23:21:00 +01:00
Gregor Richards 2a7929f123 Server prompt when connecting to netplay host 2016-12-27 16:41:27 -05:00
Twinaphex a08a7c1380 Merge pull request #4325 from GregorR/netplay-connect-fail-crash
Fixing a bug that caused retroarch to crash if netplay failed to connect
2016-12-27 21:26:25 +01:00
Gregor Richards 9ecd0ba8c7 Fixing a bug that caused retroarch to crash if netplay failed to connect 2016-12-27 15:07:44 -05:00
twinaphex 3ec564f97c Revert "(task_save.c) Cleanups"
This reverts commit d6aae88737.
2016-12-27 20:11:22 +01:00
twinaphex c6269e3ade (task_save.c) Further cleanups 2016-12-27 15:16:42 +01:00
twinaphex 2a5e74ecb0 Cleanup autosave_free/autosave_deinit 2016-12-27 15:14:27 +01:00
twinaphex f067ecce50 (video_driver.c) Cleanups 2016-12-27 14:48:04 +01:00
twinaphex 176fa2dcaf (audio_driver.c) Cleanups 2016-12-27 14:34:34 +01:00
Twinaphex 83d83af6f9 Merge pull request #4323 from Ryunam/master
Add option to allow or prevent removal of playlist entries
2016-12-27 14:02:39 +01:00
Ryunam ebded84b67 Add option to allow or prevent removal of playlist entries 2016-12-27 13:20:41 +01:00
twinaphex e5f9c4d713 command_event_save_config - check if config_path is empty 2016-12-27 03:19:07 +01:00
twinaphex a42d5c9ec8 Cleanup autosave_unlock 2016-12-27 03:15:58 +01:00
twinaphex 2a60b54e02 Revert FFT core option changes - FFT was no longer working 2016-12-27 02:56:56 +01:00
twinaphex b0ebd33094 (task_save.c) Cleanups 2016-12-27 02:14:35 +01:00
twinaphex 1cfc6f571a (RARCH_CONSOLE) Another buildfix 2016-12-27 02:01:22 +01:00
Twinaphex 13536a864b (task_content.c) Prevent warnings 2016-12-27 01:32:58 +01:00
twinaphex 925d60c0cc Implement part 2 of Browse URL 2016-12-27 00:02:09 +01:00
Logan McNaughton f45a75fa98 Use RGBA for internal format 2016-12-26 13:00:38 -07:00
twinaphex d6aae88737 (task_save.c) Cleanups 2016-12-26 18:25:42 +01:00
twinaphex 43459e2269 N/A 2016-12-26 06:44:04 +01:00
twinaphex bfd0aa18e4 Add first part of 'Browse URL' 2016-12-26 06:39:12 +01:00
Twinaphex 7512e39746 Merge pull request #4320 from hizzlekizzle/master
less invasive revert for blue/red swap
2016-12-26 04:24:16 +01:00
Twinaphex 24f29c138d Merge pull request #4318 from fr500/master
Allow builtin autoconfs with the XBONE controller
2016-12-26 04:23:13 +01:00
twinaphex 51ec0e0704 (configuration.c) Cut down on reallocation/allocation 2016-12-26 04:14:09 +01:00
hunterk 5ec5b199f6 less invasive revert for blue/red swap 2016-12-25 20:22:28 -06:00
twinaphex 8a258d2511 (configuration.c) Cleanups 2016-12-26 03:16:27 +01:00
radius af02b3ac85 Allow builtin autoconfs with the XBONE controller 2016-12-25 21:03:04 -05:00
twinaphex e24f58361c Cleanup config_save_file 2016-12-26 03:01:29 +01:00
twinaphex 7863b3a21f (ffmpeg_core.c) Fix build 2016-12-26 02:53:21 +01:00
twinaphex 66f189dff6 (wiiusb_hid.c) Prevent crashes 2016-12-26 00:38:54 +01:00
Twinaphex a0a3bff54b Merge pull request #4316 from Aaahh/patch-3
(Android) reload cores path every lauch
2016-12-25 21:40:28 +01:00
Aaahh Ahh 1841455462 (Android) reload cores path every lauch
Reload the path instead of saving and reusing every launch
2016-12-25 15:39:06 -05:00
Twinaphex c21ec704fb Merge pull request #4315 from Aaahh/patch-2
(Android) Ask for external sdcard permission
2016-12-25 21:28:48 +01:00
Aaahh Ahh ac80cffdce (Android) Ask for external sdcard permission
Permission has to be explicitly asked for or it won't be granted on api 23 or higher.
2016-12-25 15:06:54 -05:00
Alcaro 5624b3482e Merge pull request #4314 from markwkidd/patch-1
add "d3d" to list of retroarch.cfg video options
2016-12-25 21:03:04 +01:00
markwkidd 4897cc1740 add "d3d" to list of retroarch.cfg video options
After referring to some forum posts suggesting using "d3d9" for the video mode on an older Windows installation (incorrect) I finally figured out that the Direct3D mode is called "d3d." Hopefully including it in these instructions will save someone else the same time and research.
2016-12-25 15:01:49 -05:00
twinaphex 1d070aae93 Silence warnings; set default autoconfig dir 2016-12-25 19:28:44 +01:00
Twinaphex fbcd7739d9 Merge pull request #4312 from Aaahh/patch-1
(ffmpeg core) Add GLFFT toggle
2016-12-25 16:35:07 +01:00
Aaahh Ahh c51f6ad041 (ffmpeg core) Add GLFFT toggle
Adds a toggle for GLFFT
2016-12-25 01:47:09 -05:00
Brad Parker f94e346e2a update JP translation 2016-12-25 00:38:18 -05:00
twinaphex b4760ef065 Wii port works again 2016-12-25 04:13:30 +01:00
twinaphex a2515339e9 This nonsense can go now 2016-12-25 02:11:42 +01:00
twinaphex 397c1d24a8 Be more careful with allocations 2016-12-25 02:05:34 +01:00
twinaphex 4ddbde8a09 (movie.c) Be more careful with allocations 2016-12-25 01:57:15 +01:00
twinaphex bb4888ae22 Be more careful with allocations 2016-12-25 01:52:40 +01:00
twinaphex 2156bb43a1 Be more careful with allocation and assignment 2016-12-25 01:46:32 +01:00
twinaphex 17609e1d42 Only grab setting pointer for command events where we need it 2016-12-25 01:28:16 +01:00
twinaphex e50ecc1b5f command_event - cleanup 2016-12-25 01:24:17 +01:00
twinaphex d76a5ac3f7 Remove default switch case for command_event 2016-12-25 01:22:47 +01:00
twinaphex d66c23f3f3 Only read system info for disk core options 2016-12-25 01:19:38 +01:00
twinaphex f2c022cd54 command.c - use string_is_empty 2016-12-25 01:14:30 +01:00
twinaphex c3c963799b Create command_event_resize_windowed_scale 2016-12-25 01:11:18 +01:00
twinaphex bfd0f0bc3d Move menu shader code to menu_shader.c 2016-12-24 23:36:07 +01:00
twinaphex 5758da85b0 Create menu_shader functions 2016-12-24 23:32:02 +01:00
twinaphex 42ffa50758 (menu_shader.c) Cleanup 2016-12-24 23:06:38 +01:00
Twinaphex ad0707d289 Merge pull request #4309 from GregorR/netplay-reverse-catchup
Reverse catch-up, i.e., server-demanded stalling
2016-12-24 21:55:12 +01:00
Gregor Richards cd281d5757 Reverse catch-up, i.e., server-demanded stalling
Previously, if two clients were connected to the same server and one of
them was ahead of the server, the only way to rectify that situation was
for the client to get so far ahead that it stalled, as the server could
only catch up with an ahead client if all clients were ahead. That's
unrealistic. This gives the server the alternate option of demanding
that a client stall. This keeps things nicely in line even with >2
players.
2016-12-24 15:25:03 -05:00
twinaphex 958a028b0a (task_database.c) Remove unused message queue 2016-12-24 20:36:37 +01:00
twinaphex a94c20713d Update copyright 2016-12-24 20:24:06 +01:00
twinaphex 9db910c049 Cleanup 2016-12-24 20:22:23 +01:00
Twinaphex f8d9eede45 Merge pull request #4308 from Ryunam/master
Add toggle to show / hide Import Content tab on XMB
2016-12-24 20:09:28 +01:00
Ryunam c80d1e8242 Add toggle to show / hide Import Content tab on XMB 2016-12-24 18:45:15 +01:00
twinaphex f0a04fd98c Rename 'Load Archive/Open Archive') 2016-12-24 03:41:51 +01:00
twinaphex cc282e4bf6 Prevent crash when we select 'Open Archive' and we have no
installed cores and no core info files
2016-12-24 03:33:31 +01:00
twinaphex c27038d9bd (Wii) Fix build 2016-12-24 03:21:29 +01:00
twinaphex 70a1a5f38e Buildfixes 2016-12-24 01:48:36 +01:00
twinaphex a5e4ea2f33 C89_BUILD fix 2016-12-24 01:47:01 +01:00
twinaphex 64dc7daeca (MSVC) MSVC build fixes 2016-12-24 01:45:37 +01:00
twinaphex 3639011ed4 (XMB) Cleanup 2016-12-24 01:44:30 +01:00
twinaphex 6d965a7399 Hide Mouse/Touch support for non-advanced mode 2016-12-24 01:08:42 +01:00
twinaphex 46d3f7983d When fullscreen toggling, when we go from windowed to fullscreen,
hide the system cursor, otherwise show it
2016-12-24 01:03:20 +01:00
Jean-André Santoni fe0e458ba9 Move shutdown at the bottom of the main menu 2016-12-23 22:12:50 +01:00
twinaphex 0382f3ccd3 (XMB/MaterialUI) Hide mouse cursor after roughly 3 seconds
of inactivity
2016-12-23 22:12:30 +01:00
twinaphex 74e224abf0 (menu_input_bind_dialog.c) Use timer code 2016-12-23 19:17:38 +01:00
twinaphex ab2ee3c690 Simplify menu_dialog.c 2016-12-23 16:32:21 +01:00
twinaphex f6ec61b15c Create rarch_timer functions and have menu_dialog.c use them 2016-12-23 15:36:47 +01:00
twinaphex 2f352ed1b7 (Menu) We need to enable this code from now on regardless of the OSK
keyboard being enabled or not
2016-12-23 15:23:38 +01:00
Twinaphex 39f984b0dd Merge pull request #4306 from notnotme/fix/vita-materualui-sublabel
VITA/materialui - make sublabel text readable
2016-12-23 12:40:20 +01:00
Romain Graillot 401e82c316 VITA/materialui - make sublabel text readable 2016-12-23 12:14:46 +01:00
Brad Parker 25353c31e3 add new hash strings, update JP translation 2016-12-23 01:20:41 -05:00
twinaphex e67cb7650c (menu_displaylist.c) Create core_name variable 2016-12-23 04:26:29 +01:00
twinaphex 33f65dae57 (menu_displaylist.c) Cleanups 2016-12-23 04:13:40 +01:00
Twinaphex 220412886b (menu_displaylist.c) Prevent edge case crash - no core has been installed
yet, we load a zipped rom, and we select 'Load Archive' - crash
2016-12-23 04:11:15 +01:00
twinaphex 87e5c5a1bd input_menu_keys_pressed - remove some more boilerplate code 2016-12-23 02:28:13 +01:00
twinaphex af5aaa9db8 Cleanup boilerplate code in input_menu_keys_pressed 2016-12-23 02:22:47 +01:00
twinaphex adb26fac24 Cleanup general_write_handler 2016-12-23 02:01:09 +01:00
twinaphex dd8cae38ad Simplify RUNLOOP_CTL_MESSAGE_QUEUE_PULL 2016-12-23 00:00:40 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex b07fd17258 Revert "Initialize message queue first"
This reverts commit b0c97e901f.
2016-12-22 23:34:21 +01:00
twinaphex b56f59d29d Cleanup 2016-12-22 21:56:54 +01:00
twinaphex 0eb7ca2c13 Clear filebrowser types before entering 'Scan Directory' 2016-12-22 21:13:14 +01:00
twinaphex 5fbc7aa488 Create action_ok_push_scan_file - reset file browser type
before entering 'Scan File'
2016-12-22 20:49:25 +01:00
twinaphex ea42e6c97b Reset filebrowser types after leaving 'Load From Collection' 2016-12-22 20:40:35 +01:00
twinaphex b0a809dd6e Turn this off by default 2016-12-22 19:26:02 +01:00
twinaphex 0d8f7b64f5 Remove some RUNLOOP_CTL actions 2016-12-22 19:21:42 +01:00
Brad Parker 42307a322a missing ../ 2016-12-22 11:25:49 -05:00
twinaphex b0c97e901f Initialize message queue first 2016-12-22 14:31:19 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Jean-André Santoni 9f09dd0f06 Fix connmanctl build 2016-12-22 11:48:56 +01:00
twinaphex b022639a52 (menu_display_gl.c) Only call the second uniform for snow shaders 2016-12-22 03:05:05 +01:00
twinaphex 02f1de920a If we load a ROM from the commandline, it will still get pushed
to the history list
2016-12-22 02:42:22 +01:00
twinaphex 449ccb3038 (menu_driver.c) Header include cleanup 2016-12-22 00:58:19 +01:00
twinaphex 6cad8e3b74 core_info should be correctly initialized now from the commandline;
and not just when launched from menu
2016-12-22 00:50:47 +01:00
twinaphex 711c4116e0 Be more careful with strdup 2016-12-22 00:43:46 +01:00
twinaphex a91e00026b (task_content.c) Only do strdup when variable is non-empty 2016-12-22 00:42:56 +01:00
twinaphex d39acc3f8e Prevent crash when loading a core like 2048 from the commandline 2016-12-22 00:41:36 +01:00
twinaphex 2576d9ec82 Don't hide User Interface settings for RARCH_CONSOLE 2016-12-21 22:34:57 +01:00
twinaphex 32e1f96fa1 (PS3) Fix gamepad 2016-12-21 22:27:37 +01:00
twinaphex 0ab28d8bea ifndef this out for PS3 - PS3 works now again but no joypad
input
2016-12-21 22:03:25 +01:00
Twinaphex be54012c55 Merge pull request #4297 from loganmc10/patch-4
Reorder items in "Load Core" screen
2016-12-21 21:16:51 +01:00
Logan McNaughton 87d5853691 Reorder items in "Load Core" screen
Fixes https://github.com/libretro/RetroArch/issues/4287
2016-12-21 12:32:43 -07:00
Twinaphex 1363b0ef46 Merge pull request #4296 from GregorR/netplay-compiler-warnings
Silence two compiler warnings
2016-12-21 16:16:22 +01:00
Gregor Richards 3df38fa40e Silence two compiler warnings 2016-12-21 10:13:31 -05:00
twinaphex 5d6067159c gl_common.c - config.h include 2016-12-21 16:09:29 +01:00
twinaphex 19810233fa Comment this out for PSGL 2016-12-21 16:06:42 +01:00
Twinaphex a01ec58e10 Merge pull request #4295 from GregorR/netplay-password-from-config
Make netplay no longer cache passwords
2016-12-21 16:03:00 +01:00
Gregor Richards f0bb0a77f8 Make netplay no longer cache passwords
Netplay now always loads passwords from the configuration, so that
passwords can be changed mid-session.
2016-12-21 09:51:50 -05:00
twinaphex 9dd7d7804e Turn size_format into gl_size_format, and add a FIXME note 2016-12-21 15:47:38 +01:00
Brad Parker 0551e2dea8 move win32 check to frontend driver 2016-12-21 09:34:57 -05:00
twinaphex 54a569a085 (task_content.c) Cleanup 2016-12-21 15:31:55 +01:00
twinaphex 9dab728067 Cleanup load_content_from_compressed_archive 2016-12-21 15:30:14 +01:00
twinaphex cb28584883 content_file_init_extract - cleanups 2016-12-21 15:27:08 +01:00
twinaphex a5c52dcc07 (task_content.c) Minor cleanups 2016-12-21 15:23:31 +01:00
twinaphex 52c2e1a501 (task_content.c) Cleanups 2016-12-21 15:21:11 +01:00
twinaphex 80d8a90bce (RTGA) Cleanups 2016-12-21 14:33:42 +01:00
twinaphex a4ca4a7eb4 (rbmp.c) Cleanups 2016-12-21 14:13:40 +01:00
twinaphex 3050240a35 (rbmp.c) Cleanups 2016-12-21 14:08:40 +01:00
twinaphex 90dca2d537 (rbmp.c) Simplify 2016-12-21 14:00:58 +01:00
twinaphex 1344e91286 Revert "Locking bug"
This reverts commit b40c1311b6.
2016-12-21 12:23:19 +01:00
Brad Parker 0008e9a046 win32 check was in wrong place 2016-12-20 23:34:46 -05:00
Brad Parker c222b0812b update JP translation 2016-12-20 23:20:11 -05:00
Andrés Suárez af36c741cc Merge pull request #4292 from GregorR/netplay-variable-size-quirk
Accept the variable size quirk
2016-12-20 22:21:00 -05:00
Gregor Richards c780e7db43 Accept the variable size quirk
Since the quirks protocol was that a core could report variable
savestate size, but the host then tells it "no", we should actually
accept the variable size quirk in netplay, since RetroArch refuses to
allow cores to actually produce variable-size states.
2016-12-20 22:17:15 -05:00
twinaphex 5f0efed08b (task_content.c) Attempt to fix some coverity bugs 2016-12-21 02:02:47 +01:00
Twinaphex bbed836e8f Merge pull request #4290 from GregorR/cov-112612
Locking bug
2016-12-21 01:48:34 +01:00
twinaphex e328c4ebfa (archive_file.c) Cleanup 2016-12-21 01:47:32 +01:00
twinaphex 7e43d9c469 Attempt to fix Coverity ID 158346 2016-12-21 01:45:19 +01:00
Gregor Richards b40c1311b6 Locking bug 2016-12-20 19:42:53 -05:00
twinaphex ec3a4e219b Silence Coverity warning 2016-12-21 01:41:16 +01:00
twinaphex 882a65685d (menu_cbs_ok.c) Should fix memory leak 2016-12-21 01:36:06 +01:00
twinaphex 58716e5f3c Silence some Coverity warnings 2016-12-21 01:34:28 +01:00
Twinaphex abf09d22b4 Merge pull request #4289 from GregorR/netplay-cov-158860
Fix some minor checked-return bugs
2016-12-21 01:30:51 +01:00
Gregor Richards 7bb26eb5c5 Fix some minor checked-return bugs
Should resolve Coverity reports 158862, 158861, 158860.

158863 is spurious but I have no idea how to convince Coverity of that.
2016-12-20 19:16:31 -05:00
twinaphex b114aa9616 (task_content.c) Put public functions last; reorganization 2016-12-21 00:32:01 +01:00
twinaphex 06e010b318 Remove forced message on content load; in preparation for task-ification 2016-12-21 00:30:23 +01:00
Twinaphex d23beed9bb Merge pull request #4288 from Themaister/master
Vulkan: Fix menu shader parameters for slangp.
2016-12-21 00:20:06 +01:00
twinaphex a2c0073678 content_file_init_subsystem - cleanup 2016-12-21 00:19:22 +01:00
twinaphex 12255c9f5c Use error_string in order to print (log) messages 2016-12-21 00:16:25 +01:00
twinaphex c13639147e (task_load_content) Cleanups 2016-12-21 00:06:34 +01:00
twinaphex 7914dda336 Cleanup 2016-12-21 00:02:09 +01:00
twinaphex 4f3a715514 Use content_ctx inside task_push_content_load_default function 2016-12-21 00:00:59 +01:00
twinaphex 710fc20314 Cleanup task_push_content_update_firmware_status 2016-12-20 23:45:37 +01:00
twinaphex 8cf2cbe86d Get rid of another sys_info variable 2016-12-20 23:39:31 +01:00
twinaphex bb0c03afff Cleanup content_file_init_subsystem 2016-12-20 23:36:39 +01:00
twinaphex b9602ef57e (task_content.c) Reduce dependency on settings_t struct 2016-12-20 23:25:35 +01:00
twinaphex 8c8aaf5bb8 Grab system info once in content_init instead of grabbing it
all the time
2016-12-20 23:12:56 +01:00
twinaphex ffdcce9511 (task_content.c) Rename local variable to sys_info 2016-12-20 22:55:58 +01:00
twinaphex e28ace8b0c (task_content.c) Use string_is_empty 2016-12-20 22:51:29 +01:00
twinaphex bdc05e9c10 (task_content.c) Rename function 2016-12-20 22:49:26 +01:00
twinaphex af2393b821 Remove content_push_to_history_playlist 2016-12-20 22:48:10 +01:00
twinaphex 3f1064d001 Cleanup 2016-12-20 22:35:59 +01:00
twinaphex 336d825525 (task_content.c) Allocate error_string and only print runloop
message at exit of function
2016-12-20 22:32:54 +01:00
twinaphex eec1f8a5cf Cleanup 2016-12-20 22:05:40 +01:00
twinaphex 59ca04dad2 (task_content.c) Cleanups 2016-12-20 22:03:04 +01:00
twinaphex 76ada44fb0 (task_powerstate.c) Cleanup 2016-12-20 21:46:12 +01:00
twinaphex e23fe909dd Add task_powerstate.c to Griffin 2016-12-20 21:44:13 +01:00
twinaphex fac2557885 (database_info.c) Don't use non-enum function 2016-12-20 21:40:41 +01:00
twinaphex 7c8c7e5805 Add specialized callbacks for deferred push - using database_info_build_query_enum 2016-12-20 21:27:02 +01:00
twinaphex 6d285be90c Create database_info_build_query_enum 2016-12-20 21:19:25 +01:00
twinaphex c8dc0fef0c Cleanups - turn some functions into static functions and move
to task_database.c
2016-12-20 21:08:31 +01:00
Brad Parker 88f915dadd Merge commit '9ae607553558a37047b4ce50b5aca91908ad9c4e' as 'deps/SPIRV-Cross' 2016-12-20 13:17:07 -05:00
Brad Parker 9ae6075535 Squashed 'deps/SPIRV-Cross/' content from commit 9ccd1ae
git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: 9ccd1aea4201ff5d79c09808567348d0d3ab0452
2016-12-20 13:17:07 -05:00
Brad Parker f3a213039a Merge commit 'c00e4286009f512418b2b6cf7261cab2bbf050b4' as 'deps/glslang/glslang' 2016-12-20 13:16:23 -05:00
Brad Parker c00e428600 Squashed 'deps/glslang/glslang/' content from commit be84621
git-subtree-dir: deps/glslang/glslang
git-subtree-split: be8462149a3c150fc89db84e57ef06de3ab90d47
2016-12-20 13:16:23 -05:00
twinaphex 0a6d2948c5 Remove these subrepos again 2016-12-20 18:58:13 +01:00
twinaphex b743db89d9 Try this again 2016-12-20 18:55:54 +01:00
twinaphex 3e26066ea4 Remove this subrepo AGAIN 2016-12-20 18:55:04 +01:00
twinaphex a90b19126d Turn this into relative header include 2016-12-20 18:50:20 +01:00
twinaphex e99d47852f Get rid of the submodules 2016-12-20 18:43:53 +01:00
twinaphex 88b45350cc Get rid of the submodules 2016-12-20 18:43:27 +01:00
Twinaphex c8b9964cf1 Merge pull request #4286 from loganmc10/patch-3
Missed one of the texture formats
2016-12-20 18:11:11 +01:00
Logan McNaughton 21779c87b8 Missed one of the texture formats 2016-12-20 10:10:23 -07:00
Twinaphex fb277b68af Merge pull request #4285 from loganmc10/textures
Fix up some texture format code
2016-12-20 18:02:06 +01:00
Logan McNaughton 3392f3996b Fix up some texture format code 2016-12-20 08:57:13 -08:00
Hans-Kristian Arntzen 4e9fe4bd54 Vulkan: Fix menu shader parameters for slangp.
video_shader_resolve_parameters did not take #includes into account
while the Vulkan implementation did. Added a helper function which
parses a shader file and figures out the shader parameters in the same
way.
2016-12-20 15:58:37 +01:00
Brad Parker 3449324ab4 move battery level to the right of the clock 2016-12-20 09:44:29 -05:00
Brad Parker d20f45c9d4 make battery level check into a task 2016-12-20 09:18:07 -05:00
Brad Parker 1f450834ed unknown battery level on windows should not be displayed 2016-12-20 01:25:32 -05:00
Brad Parker 1942d29a33 battery placement 2016-12-19 19:06:19 -05:00
Jean-André Santoni 9e50b6fc44 Improve the battery placement again 2016-12-20 01:03:06 +01:00
Jean-André Santoni 24a34229a6 Improve the battery placement again 2016-12-20 00:55:21 +01:00
Jean-André Santoni ce27d38d0e Fix battery placement 2016-12-20 00:47:18 +01:00
Brad Parker f0fc61be32 fix for non-incrementing difference in timer 2016-12-19 18:42:23 -05:00
Twinaphex c81d54bd46 (libretro-common) Cleanups 2016-12-20 00:39:45 +01:00
Jean-André Santoni 9a0c7f4a07 Merge pull request #4281 from bparker06/battery
Add option to show battery level on menu next to the clock
2016-12-20 00:35:45 +01:00
Brad Parker 48eccc3258 remove unused msg_hash 2016-12-19 18:15:27 -05:00
Brad Parker 94a6e759cf merge battery branch into master 2016-12-19 18:08:41 -05:00
Brad Parker 5945b8d888 always show battery level, not just when it actually updates 2016-12-19 18:03:31 -05:00
Twinaphex 12390e9237 Merge pull request #4280 from GregorR/netplay-empty-block-warnings
Adding blocks in the empty-RECV case to (hopefully) suppress warnings
2016-12-19 23:58:07 +01:00
Gregor Richards 8f35de9da0 Adding blocks in the empty-RECV case to (hopefully) suppress warnings 2016-12-19 17:31:24 -05:00
Twinaphex 1d36c5effa Silence warnings - remove unused variables 2016-12-19 23:19:59 +01:00
Twinaphex 25fcfb47c7 Use C-style string 2016-12-19 23:17:36 +01:00
Twinaphex 76c4a4f7a0 Merge pull request #4279 from sethk/macos_cleanup
macOS cleanup
2016-12-19 23:15:10 +01:00
Twinaphex 8f191d2fe7 Merge pull request #4277 from GregorR/netplay-uint-warnings
Be consistent about the type of check_frames
2016-12-19 22:45:52 +01:00
Brad Parker 51b9886586 add timer to check battery level every 30 seconds 2016-12-19 15:49:11 -05:00
Brad Parker 1e5c675702 adjust scaling/positioning for new battery icons 2016-12-19 15:31:10 -05:00
Gregor Richards 30beee6004 Be consistent about the type of check_frames. Fixes warnings. 2016-12-19 14:54:13 -05:00
twinaphex 971a999aa7 Get rid of more implicit memsets 2016-12-19 14:29:27 -05:00
twinaphex f74b7d5f05 Get rid of some implicit memsets for state tracker 2016-12-19 14:29:27 -05:00
twinaphex 16b26139ff Get rid of some implicit memsets 2016-12-19 14:29:27 -05:00
twinaphex d2b3762db8 (input_config.c) Get rid of implicit memset 2016-12-19 14:29:27 -05:00
twinaphex 8caa21ef98 (menu_display_gl.c) Get rid of implicit memset 2016-12-19 14:29:27 -05:00
twinaphex b536f3f5f7 Get rid of implicit memsets 2016-12-19 14:29:27 -05:00
twinaphex d99fac1d88 Get rid of some implicit memsets 2016-12-19 14:29:27 -05:00
twinaphex 8250e3d521 Get rid of some implicit memsets 2016-12-19 14:29:27 -05:00
Alcaro 19afa89c7f Shut up false positive warning 2016-12-19 14:29:27 -05:00
Brad Parker 7aac7f986a add option to show battery level next to the datetime in the menu 2016-12-19 14:28:21 -05:00
twinaphex 5ca7344436 Get rid of more implicit memsets 2016-12-19 19:17:23 +01:00
twinaphex 31b87594aa Get rid of some implicit memsets for state tracker 2016-12-19 19:08:37 +01:00
twinaphex 3c7c667cf5 Get rid of some implicit memsets 2016-12-19 19:04:52 +01:00
twinaphex 8dcf05036c (input_config.c) Get rid of implicit memset 2016-12-19 18:55:02 +01:00
twinaphex 4c33f948e0 (menu_display_gl.c) Get rid of implicit memset 2016-12-19 18:49:56 +01:00
twinaphex 3cdb62b361 Get rid of implicit memsets 2016-12-19 18:40:00 +01:00
twinaphex 8453893778 Get rid of some implicit memsets 2016-12-19 18:30:17 +01:00
twinaphex 3561949a87 Get rid of some implicit memsets 2016-12-19 18:18:40 +01:00
Alcaro fc1c83d8c0 Shut up false positive warning 2016-12-19 16:38:55 +01:00
Twinaphex 032d29efa4 Merge pull request #4274 from GregorR/netplay-nouveau-nouveau
>2-player Netplay
2016-12-19 16:28:37 +01:00
Twinaphex 8b62a4029e Merge pull request #4275 from Themaister/master
Fix unmute after starting muted.
2016-12-19 16:28:22 +01:00
Hans-Kristian Arntzen d661620962 Fix unmute after starting muted.
audio_driver_start() would for some reason fail if audio driver was
already started. The fix is to mute the audio driver on init. Makes
kinda sense anyways.
2016-12-19 14:40:28 +01:00
twinaphex 4c9f2e41ff Get rid of some implicit memsets 2016-12-19 14:04:37 +01:00
Gregor Richards 11a3063fc6 Forgot the other half of that last bugfix 2016-12-18 20:08:21 -05:00
Gregor Richards 8f8e6dfc5f Unset the netplay callbacks when we deinit netplay
This is a bugfix to master that hadn't migrated to my branch.
2016-12-18 19:54:01 -05:00
Gregor Richards dcd4b3046b Making negative check_frames be "check only" mode 2016-12-18 19:28:44 -05:00
Gregor Richards 677ffa9ebd Support different forms of compression from different clients. 2016-12-18 19:28:44 -05:00
Gregor Richards 84c33634a6 Communicate paused-ness during initial connection SYNC. 2016-12-18 19:28:44 -05:00
Gregor Richards 60b81e3a51 Nominal support for server sending blank INFO 2016-12-18 19:28:44 -05:00
Gregor Richards e79f30604f Better stall timing
We now stall not until we've reached parity (which makes no sense since
we expect latency), but only until we're not likely to stall again.
2016-12-18 19:28:44 -05:00
Gregor Richards 8195a5bcee Try to catch up if we're falling behind our peer, not anyone
In the previous catch-up system, we would only try to catch up if we
were falling behind the farthest-behind peer. However, as they would
also only try to catch up to us, everyone basically agreed to the
worst-case latency. It makes more sense to try to be in parity with your
direct peer than with indirect connections.
2016-12-18 19:28:44 -05:00
Gregor Richards b535412914 Adding nick-changing
This is just to disambiguate multiple connections with the same nick
(usually Anonymous), which will now become e.g. Anonymous (2).
2016-12-18 19:28:44 -05:00
Gregor Richards 43fdccd89c Making some messages grammatically similar to others 2016-12-18 19:28:44 -05:00
Gregor Richards abce07db17 Correcting stateless mode in menu. 2016-12-18 19:28:44 -05:00
Gregor Richards 7c2f12fbd9 Removign some leftover debug code 2016-12-18 19:28:44 -05:00
Gregor Richards 04266cf4f7 Run synchronization even when stalled
Previously, we could be stalled by one player but still reading data
from another, which would wedge the client because we would never act
upon the newly-read data. Now we act upon data even if we're stalled.
Fixes bugs in initial connection with high latency.
2016-12-18 19:28:44 -05:00
Gregor Richards d6d96704fd Don't panic about delta frames not being ready if we're not even fully
connected yet.
2016-12-18 19:28:43 -05:00
Gregor Richards 8b21014d07 Improvements to handshake protocol
Making the netplay handshake protocol send the core and content as an
explicit command, so that the other side can (notionally) choose to load
it. That isn't implemented, of course.
2016-12-18 19:28:43 -05:00
Gregor Richards 1fa60b396f Improvements to the communication of netplay pausing. 2016-12-18 19:28:43 -05:00
Gregor Richards db2c8de44c Slightly changing how catch-up works to avoid spamming the console 2016-12-18 19:28:43 -05:00
Gregor Richards 1141825605 Documenting (somewhat) the new sync system. 2016-12-18 19:28:43 -05:00
Gregor Richards a20e79bbb5 Server needs double the buffer frames since two connected clients could
be ahead and behind by the max frames
2016-12-18 19:28:43 -05:00
Gregor Richards f7f6590156 Goodbye delay_frames! stateless_mode is the new delay_frames=0 2016-12-18 19:28:43 -05:00
Gregor Richards 45d732a014 New sync system
The idea:
   * Use a fixed number of delay_frames (eventually to be fixed at 120,
     currently still uses the config variable, 0 will still be an option)
   * Determine how long it takes to simulate a frame.
   * Stall only if resimulating the intervening frames would be
     sufficiently annoying (currently fixed at three frames worth of
     time)

Because clients always try to catch up, the actual frame delay works out
automatically to be minimally zero and maximally the latency. If one
client is underpowered but the other is fine, the powerful one will
automatically take up the slack. Seems like the most reasonable system.
2016-12-18 19:28:43 -05:00
Gregor Richards 6890456ac0 Updated error messages and fixed some stall-related disconnected-client
bugs.
2016-12-18 19:28:43 -05:00
Gregor Richards 6658826759 CRC validity checking. Ignore CRCs if they don't work. 2016-12-18 19:28:43 -05:00
Gregor Richards a6cd8c3aa1 Error reporting when a password is refused, plus a bugfix so that
socket_receive_all_nonblocking actually reports disconnects.
2016-12-18 19:28:43 -05:00
Gregor Richards df2600fbf4 Added error reporting when a player is not allowed to play. 2016-12-18 19:28:43 -05:00
Gregor Richards bade067d9a Support for catching up if the netplay peer is ahead of us. 2016-12-18 19:28:43 -05:00
Gregor Richards 4e01481b39 Only allow clients to load state if there's no further synchronization 2016-12-18 19:28:43 -05:00
Gregor Richards 70d04ec6a5 Apparently the frontend gets really pissy if it can't check the flip state 2016-12-18 19:28:43 -05:00
Gregor Richards da7efcb939 Cleaning up netplay headers. 2016-12-18 19:28:43 -05:00
Gregor Richards 9c6ac2b934 Only the server can flip users. 2016-12-18 19:28:43 -05:00
Gregor Richards a2d377f089 Adding spectate password to the menu 2016-12-18 19:28:43 -05:00
Gregor Richards 03415c261d Added netplay spectator password separate from play password 2016-12-18 19:28:43 -05:00
Gregor Richards 694b7a9723 Don't allow more players to join than are actually being polled 2016-12-18 19:28:43 -05:00
Gregor Richards 7ad4e3f115 Per-connection stalling 2016-12-18 19:28:43 -05:00
Gregor Richards 1b22191869 Deduplicating some code. 2016-12-18 19:28:43 -05:00
Gregor Richards 24a39078be Adding netplay password to menu. 2016-12-18 19:28:43 -05:00
Gregor Richards f619789e48 Refactoring: netplay_common.c -> netplay_handshake.c/netplay_delta.c
Refactoring netplay_common into its two actual components, the handshake
and delta-frame related functions.
2016-12-18 19:28:43 -05:00
Gregor Richards 4e905bf524 Refactoring: netplay_sync.c
Renamed netplay_net.c to netplay_sync.c, as all that remains in that
file is synchronization-related functions.
2016-12-18 19:28:43 -05:00
Gregor Richards 257c5d3188 Refactoring netplay_init.c/netplay_net.c
Split the remainder of netplay.c into netplay_init.c and netplay_net.c
(which will soon be netplay_sync.c)
2016-12-18 19:28:43 -05:00
Gregor Richards 7e2465ef1f Refactoring: Moving I/O functionality into netplay_io.c 2016-12-18 19:28:43 -05:00
Gregor Richards 8c59c7dd77 Starting to refactor: Separating frontend stuff into netplay_frontend.c 2016-12-18 19:28:43 -05:00
Gregor Richards ab989d7f41 More careful disconnection. 2016-12-18 19:28:43 -05:00
Gregor Richards c8bba9a981 Simplistic builtin randomizer. 2016-12-18 19:28:43 -05:00
Gregor Richards 28e331b5fd Remove some magic numbers 2016-12-18 19:28:43 -05:00
Gregor Richards 6e6f2bfdbe Use a proper password hash across the line. 2016-12-18 19:28:42 -05:00
Gregor Richards 763a657f82 Terrible first cut at password (sent in plain text D-8) 2016-12-18 19:28:42 -05:00
Gregor Richards 5a0328dc09 Transfer pad configuration over netplay. 2016-12-18 19:28:42 -05:00
Gregor Richards 888e45c88b Updates to allow the server to toggle game/watch 2016-12-18 19:28:42 -05:00
Gregor Richards 3631ff74ff Very, very partial support for the server spectating 2016-12-18 19:28:42 -05:00
Gregor Richards 3d7f1f6575 Updating Netplay README to be more true 2016-12-18 19:28:42 -05:00
Gregor Richards f6f9905ae3 Made remote pausing connection-specific 2016-12-18 19:28:42 -05:00
Gregor Richards 6556af1100 force_send_savestate is global again
We cannot send a savestate to only one player, as sending a savestate is
a synchronization event invalidating all prior input.
2016-12-18 19:28:42 -05:00
Gregor Richards 3d34c0222f Added simple (cheesy) announcements on join/leave 2016-12-18 19:28:42 -05:00
Gregor Richards 727743aa7b Fixing a couple FIXMEs/TODOs 2016-12-18 19:28:42 -05:00
Gregor Richards 2130fd81a5 Fixed simulation for >2 players 2016-12-18 19:28:42 -05:00
Gregor Richards 262d77546b Adding game/watch key
Adding a key to toggle between playing and spectating. This key takes
the place of the previous flip key, although player flipping does
continue to work (and must be rebound if you still want it)
2016-12-18 19:28:42 -05:00
Gregor Richards 90c15fc7a6 Still need to flush input data. 2016-12-18 19:28:42 -05:00
Gregor Richards e7ce01ad3b More renaming
Now that remote_input_state isn't always remote, it should just be
called real_input_state (and is).
2016-12-18 19:28:42 -05:00
Gregor Richards f6630ad85a More fixups for >2 player mode. Mostly was just sending packets that
shouldn't have been sent.
2016-12-18 19:28:42 -05:00
Gregor Richards 479955a085 More 3-player support. The initial connection is wonky with
delay_frames>0
2016-12-18 19:28:42 -05:00
Gregor Richards d373684bd5 Off-by-one 2016-12-18 19:28:42 -05:00
Gregor Richards b51cf8be2b Real, actual (almost) >2-player support. 2016-12-18 19:28:42 -05:00
Gregor Richards 2cc8c5c467 Removing silly foo_ names used to help migration. 2016-12-18 19:28:42 -05:00
Gregor Richards 53c46530aa Very first tidbits of true multiplayer support (minus actual multiple
players so far)
2016-12-18 19:28:42 -05:00
Gregor Richards b5cd187077 Since there's now only one mode, removing netplay_callbacks entirely. 2016-12-18 19:28:42 -05:00
Gregor Richards 9b2270f5d4 Say goodbye to spectator mode (for now) 2016-12-18 19:28:42 -05:00
Gregor Richards 4768970d52 Moving force_send_savestate from netplay to connection. 2016-12-18 19:28:42 -05:00
Gregor Richards ea722b49c8 Move other_addr from netplay to connection. 2016-12-18 19:28:42 -05:00
Gregor Richards d1d29143b2 Move nickname field to connections. Spectate mode officially broken. 2016-12-18 19:28:42 -05:00
Gregor Richards 189cc6e5d6 Moving socket buffers to per-connection (currently breaks
delay_frames=0)
2016-12-18 19:28:42 -05:00
Gregor Richards b334f04bd5 Removing RARCH_ from Netplay stall reasons. 2016-12-18 19:28:42 -05:00
Gregor Richards 1e1abf6951 First step of multiple connections. Still only one connection actually
works.
2016-12-18 19:28:42 -05:00
Gregor Richards 3908e25895 Separating local mode from remote mode. 2016-12-18 19:28:42 -05:00
Gregor Richards 775584cdac Adding more README info. 2016-12-18 19:28:42 -05:00
Gregor Richards 170b590bdb Client now starts one frame after finishing connection, for easier sync. 2016-12-18 19:28:42 -05:00
Gregor Richards 80be19a7da Renames for readability, merging frame and sram into sync packet. 2016-12-18 19:28:42 -05:00
Gregor Richards f89e54fcb7 Now that we don't have to start at frame 0, use the server frame count 2016-12-18 19:28:42 -05:00
Gregor Richards b3092f6fde Moving things that shouldn't have been public into netplay_private.h 2016-12-18 19:28:41 -05:00
Gregor Richards 9054b51f0e Finally, bringing back the first frame (in nonblocking mode) 2016-12-18 19:28:41 -05:00
Gregor Richards ce7686104d Removing dead code 2016-12-18 19:28:41 -05:00
Gregor Richards 71e5cb756a Support for delay_frames=0 in nonblocking mode. 2016-12-18 19:28:41 -05:00
Gregor Richards 1c8f056239 Nonblocking initial connection. Haven't tested with delay_frames=0 yet 2016-12-18 19:28:41 -05:00
Gregor Richards 3f8f9761f6 Fixes particularly affecting delay_frames=0 mode 2016-12-18 19:28:41 -05:00
Gregor Richards 91e7db3eca This semicolon broke everything! 2016-12-18 19:28:40 -05:00
Gregor Richards ba76528b8f A more sophisticated status variable for later making the initial
connection nonblocking.
2016-12-18 19:28:39 -05:00
Gregor Richards 0f5eec9987 Use zbuffer_size instead of state_size for the packet buffer 2016-12-18 19:28:39 -05:00
Gregor Richards 1214541410 Added packet buffer resizing to cope with initialization quirks. 2016-12-18 19:28:38 -05:00
Gregor Richards 36a93e5697 Fix a few bits broken by merging. 2016-12-18 19:28:38 -05:00
Gregor Richards 900e5a79ec Use nonblocking sockets for Netplay to avoid some stalls. 2016-12-18 19:28:38 -05:00
twinaphex 89820220b7 (libretro-common) Cleanup/style nits for archive_file_{7z/zlib} 2016-12-19 00:12:24 +01:00
Twinaphex e639f12e35 Merge pull request #4273 from fr500/master
differentiate xbox one controllers
2016-12-19 00:01:45 +01:00
radius ab56b5f33c differentiate xbox one controllers 2016-12-18 13:44:15 -05:00
twinaphex 7dce431239 Move VIDEO_SMOOTH to Video Filter setting 2016-12-18 17:32:55 +01:00
twinaphex 75696a1e12 Rename 'HW Bilinear Filtering' to 'Bilinear Filtering' 2016-12-18 17:31:00 +01:00
twinaphex af98a61901 Update string 2016-12-18 17:28:29 +01:00
twinaphex 327c81ed3a (XMB) Create icons for CFILE 2016-12-18 17:26:02 +01:00
twinaphex 5adaf9e2aa (menu_cbs_ok.c) Add some comments 2016-12-18 16:01:00 +01:00
twinaphex 2fa5b09e7a (RJPEG) Cleanups 2016-12-18 15:57:47 +01:00
twinaphex d6ece7f1b8 (RJPEG) Cleanups 2016-12-18 15:51:08 +01:00
twinaphex a44afda5c5 (RJPEG) Cleanups 2016-12-18 15:30:29 +01:00
twinaphex 099f3a8d52 (RJPEG) Style nits 2016-12-18 15:28:02 +01:00
twinaphex e9d9f1d90f (RBMP) Cleanups 2016-12-18 14:51:57 +01:00
twinaphex 35de6df7f9 (RJPEG) Cleanups 2016-12-18 12:15:36 +01:00
twinaphex 222650df35 (rjpeg.c) Cleanups 2016-12-18 12:12:09 +01:00
Twinaphex d604441cea Merge pull request #4266 from GregorR/netplay-better-simulation
Better netplay input simulation
2016-12-18 07:13:52 +01:00
Twinaphex 152e4f7377 Merge pull request #4265 from GregorR/netplay-full-deinit
When we disconnect netplay, fully deinit it
2016-12-18 07:13:43 +01:00
Twinaphex 05b4bfcb66 Merge pull request #4262 from Themaister/master
Wayland: Implement basic keyboard/mouse
2016-12-18 07:13:33 +01:00
Gregor Richards 1245d1b5dd Better netplay input simulation
In resimulation mode, we only copy the buttons. The reason for this
is nonobvious:

If we resimulated nothing, then the /duration/ with which any input
was pressed would be approximately correct, since the original
simulation came in as the input came in, but the /number of times/
the input was pressed would be wrong, as there would be an
advancing wavefront of real data overtaking the simulated data
(which is really just real data offset by some frames).

That's acceptable for arrows in most situations, since the amount
you move is tied to the duration, but unacceptable for buttons,
which will seem to jerkily be pressed numerous times with those
wavefronts.
2016-12-18 00:46:02 -05:00
Seth Kingsley d79cdffe37 Don't set config path until open_default_config_file()
This allows overriding of the config with --config
2016-12-17 21:06:07 -08:00
Gregor Richards 17e08c7a28 When we disconnect netplay, fully deinit it
In particular, we need to disentangle the interceding netplay callbacks.
In previous versions, if you disconnected netplay but were using a core
that made netplay stall for connections (i.e., one that has no
savestates), netplay would continue to stall because it still
interceded, even though it was supposed to be off. This fixes that.
2016-12-17 23:08:59 -05:00
Seth Kingsley b690fb2abc Use native getopt_long() on macOS 2016-12-17 16:56:40 -08:00
Seth Kingsley b1c6317ba5 Return non-zero from rarch_main() on failure
All platforms that test this check for != 0
2016-12-17 16:54:31 -08:00
Seth Kingsley 079cdfa96c Move OTHER_CFLAGS up to the project and inherit
This is to make adding -DHAVE_... flags easier.
2016-12-17 16:49:38 -08:00
Hans-Kristian Arntzen eecb60549f No need to ugly hack in qb/conf.libs.sh. 2016-12-17 21:49:00 +01:00
Hans-Kristian Arntzen c48bb6284e Wayland: Cursor toggling. 2016-12-17 21:34:51 +01:00
Hans-Kristian Arntzen 313ac63c33 Make use of xkb_state_update_mask.
Fixes mod keys in Wayland it seems.
2016-12-17 20:42:48 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28:08 +01:00
twinaphex 1c0d8f3927 Add compat_strcasestr to Xbox Salamander solutions 2016-12-17 19:37:30 +01:00
twinaphex 2f5d2d4b9f Add compat_strcasestr to Salamander builds 2016-12-17 19:35:51 +01:00
Twinaphex b3791cec89 Merge pull request #4261 from FIX94/master
wiiu changes; move net function back into its net define block
2016-12-17 19:25:02 +01:00
FIX94 c0b023a1cf (WiiU) added basic libiosuhax support 2016-12-17 18:42:04 +01:00
FIX94 d364e5083a move net function back into its net define block 2016-12-17 18:39:18 +01:00
twinaphex 6935ce902e (archive_file.c) Cleanups/style nits 2016-12-17 17:19:32 +01:00
twinaphex 1ddd0ab1d3 (Statically linked RA) Make 'Open Archive' work when there are
no core info files
2016-12-17 17:12:53 +01:00
twinaphex b541cd95ef (Statically linked RA) If a game from the history list belongs
to the same core as what is currently statically linked,
directly launch the game with the current executable/core
2016-12-17 16:39:28 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
twinaphex aafae944cb Don't memset autoconfig_params_t 2016-12-17 14:26:13 +01:00
twinaphex d4796caabd (libetro-common) Turn path_contains_compressed_file into a macro 2016-12-17 14:01:25 +01:00
twinaphex 96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833.
2016-12-17 12:55:38 +01:00
twinaphex db6b486d76 Revert "Update menu_cbs_get_value.c"
This reverts commit cfc6edceab.
2016-12-17 12:55:23 +01:00
twinaphex 07b4211482 Cleanup menu_displaylist_parse_associations 2016-12-17 12:45:47 +01:00
twinaphex 7312daf0d7 (msg_hash_de.h) Buildfix 2016-12-17 12:28:07 +01:00
twinaphex cfc6edceab Update menu_cbs_get_value.c 2016-12-17 12:24:18 +01:00
Twinaphex df077e02a0 Merge pull request #4257 from CoalaJoe/master
Added more german translations and improved existing ones
2016-12-17 12:23:45 +01:00
Twinaphex accf137020 Merge pull request #4260 from Themaister/master
Vulkan: Fix VSync toggling on Windows.
2016-12-17 12:23:15 +01:00
CoalaJoe d668cf7c21 Merged upstream and german language files
Signed-off-by: CoalaJoe <[email protected]>
2016-12-17 12:22:14 +01:00
twinaphex 4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
Hans-Kristian Arntzen 4c99809cde Vulkan: Fix VSync toggling on Windows.
Retarded bug, but haven't actually had access to a Windows machine until
now.
2016-12-17 12:06:43 +01:00
twinaphex 39b41a1f51 file_archive_get_file_list - take out HAVE_COMPRESSION code 2016-12-17 11:59:19 +01:00
twinaphex 5364b0b837 Move compression-related code outside of libretro-common file_path.c
and move it into RetroArch's file_path_special.c file instead
2016-12-17 11:54:46 +01:00
twinaphex bd67208d74 Remove some unnecessary ifdefs for file_path.c 2016-12-17 11:16:43 +01:00
twinaphex 4409c89d43 (dir_list.c) Cleanups/style nits 2016-12-17 11:15:04 +01:00
twinaphex a5222c4ce0 Sort savefiles/savestates - hide this for non-advanced users 2016-12-17 11:05:08 +01:00
twinaphex c01f0ad84a Update subrepos 2016-12-17 10:59:59 +01:00
twinaphex 10f98e9807 Remove menu_displaylist_reset_filebrowser 2016-12-17 10:59:25 +01:00
Brad Parker e254956966 Merge branch 'res_localize' 2016-12-16 23:12:21 -05:00
Brad Parker 416c6fc4e8 add ellipses to indicate a popup window 2016-12-16 22:33:58 -05:00
Brad Parker 58f5302f6f do not zero entire string 2016-12-16 22:31:07 -05:00
Brad Parker 4d2c767fcc do not zero entire string 2016-12-16 22:30:39 -05:00
Brad Parker d7741785f9 no need to zero the entire string 2016-12-16 21:17:24 -05:00
Brad Parker aede680cd7 no need to zero the entire string 2016-12-16 21:17:04 -05:00
Brad Parker 5be688331d add JP translation resource file for windows menu bar 2016-12-16 21:12:26 -05:00
Brad Parker 1d2600f5f3 fix memory corruption with windows file dialogs for load core/content 2016-12-16 21:11:08 -05:00
Brad Parker c1d9f6c30c revert "add JP translation resource file for windows menu bar" that was added by accident 2016-12-16 19:16:50 -05:00
twinaphex c739ca016c Add net_http_parse 2016-12-17 00:46:23 +01:00
Brad Parker 996dbc937a add UTF8 BOM and pragma in some files to fix MSVC build errors 2016-12-16 17:19:04 -05:00
Brad Parker f4adb19758 add JP translation resource file for windows menu bar 2016-12-16 17:01:50 -05:00
Brad Parker 71e8e3434a make "User %d Remote Enable" translatable, update JP translation 2016-12-16 14:57:50 -05:00
CoalaJoe 50aa239278 Added more german translations and improved existing ones
Signed-off-by: CoalaJoe <[email protected]>
2016-12-16 17:07:09 +01:00
Twinaphex f05863f715 Merge pull request #4255 from GregorR/netplay-frontend-pause-redux
Netplay pause fix redux.
2016-12-16 16:28:05 +01:00
Gregor Richards 1153652ebb Netplay pause fix redux.
We must actually poll input when netplay is paused, or it
just looks stalled. This fixes that. Again.
2016-12-16 10:13:44 -05:00
twinaphex 2153f3f011 Check if autodetect is enabled at beginning of connect task 2016-12-16 15:18:04 +01:00
twinaphex 404e3122bf (Travis CI) Use freeglut3-dev 2016-12-16 14:39:11 +01:00
twinaphex 209305f944 Connect task now sets PID/VID too 2016-12-16 14:02:11 +01:00
twinaphex c3a9ade051 (menu_filebrowser.c) Cleanup 2016-12-16 13:56:53 +01:00
twinaphex adcc89012c Cleanups 2016-12-16 13:55:33 +01:00
twinaphex c9482e07d6 Change filebrowser_parse 2016-12-16 13:44:09 +01:00
twinaphex 1b0389713d (GX) Buildfix 2016-12-16 13:42:41 +01:00
Twinaphex db1f3c058a (iohidmanager_hid.c) No longer need to include configuration.h now 2016-12-16 12:36:01 +01:00
twinaphex d9def056e7 The 'connect' task now sets the device name upon completion 2016-12-16 12:33:56 +01:00
twinaphex 62f5b2d3c3 The disconnect task now clears the device name 2016-12-16 12:20:31 +01:00
Twinaphex 5c522c643c Merge pull request #4254 from danzel/fix-joypad-connection
Fix joypad_connection handling of unknown controllers
2016-12-16 12:15:40 +01:00
twinaphex 454d3eba08 (menu_filebrowser.c) Cleanups 2016-12-16 12:15:00 +01:00
twinaphex e0166a5d68 Add workaround for statically linked RA when RARCH_PATH_CORE is
empty
2016-12-16 11:56:34 +01:00
twinaphex d82a65089f Checking for retro_init symbol inside libretro.a causes more issues than
it solves - .a file can be either a C++ or C-oriented core, hence we'd
need two consecutive checks, but both just do exit 0 on error
2016-12-16 11:28:57 +01:00
twinaphex 78c251f66b Fixes statically linked ROM loading 2016-12-16 11:20:56 +01:00
twinaphex e1f9f0bf8e DISPLAYLIST_CORES_SUPPORTED gets its own code separate from
DISPLAYLIST_CORES_COLLECTION_SUPPORTED
2016-12-16 11:10:53 +01:00
twinaphex cbf26cfa2f Fix statically linked RA again 2016-12-16 10:09:09 +01:00
twinaphex 75334902a2 Cleanups 2016-12-16 09:32:28 +01:00
twinaphex 02e1c141a1 Cleanups 2016-12-16 09:29:43 +01:00
twinaphex 0adeaeaf1e Cleanups 2016-12-16 09:26:45 +01:00
twinaphex 13b807a526 Cleanups - turn new_type into a static variable 2016-12-16 09:24:58 +01:00
twinaphex 879049da70 (menu_filebrowser.c) Remove unneeded header includes 2016-12-16 09:18:39 +01:00
twinaphex e4e938eb66 Cut down on HAVE_NETWORKING ifdefs 2016-12-16 09:16:46 +01:00
twinaphex f186583728 Move filebrowser-dependent code to menu_filebrowser.c 2016-12-16 09:07:03 +01:00
twinaphex 17a66067b0 Add menu_filebrowser.c 2016-12-16 08:59:17 +01:00
Dave Leaver cd5a5c5fd7 iohidmanager_hid: Remove name from adapters when they are disconnected 2016-12-16 20:17:24 +13:00
Dave Leaver f7c6574b37 Correctly handle adding controllers if we fail to match them to the known pad_map. 2016-12-16 20:16:55 +13:00
Twinaphex c50520ccd9 Merge pull request #4250 from GregorR/netplay-load-savestate-null
Fix a possible NULL dereference in load_savestate
2016-12-16 08:11:56 +01:00
Brad Parker d8ae18aa2b update JP translation 2016-12-15 17:21:41 -05:00
Gregor Richards 8c08a5399d Fix a possible NULL dereference in load_savestate
In the unlikely situation that serial_info wasn't provided and the delta
frame wasn't ready (possibly an impossible situation) it previously
would have segfaulted. This fixes that.
2016-12-15 16:19:54 -05:00
twinaphex ee7787dd52 (task_decompress.c) Don't log this 2016-12-15 21:21:39 +01:00
Twinaphex b48d896c1e Merge pull request #4249 from joolswills/mali_fbdev_ctx_warning
added stdlib.h - fixes warning with free / system
2016-12-15 20:01:18 +01:00
Jools Wills 4153785130 added stdlib.h - fixes warning with free / system 2016-12-15 18:59:20 +00:00
twinaphex a5d4032d01 (X11) Cleanups 2016-12-15 12:37:14 +01:00
twinaphex 7c6930b220 (menu_event.c) Cleanups 2016-12-15 12:21:28 +01:00
twinaphex e4208750c8 (menu_content.c) Cleanups 2016-12-15 12:18:26 +01:00
twinaphex 9a4fe8c56a (dynamic.c) Style nits 2016-12-15 12:11:21 +01:00
twinaphex a82492a681 Cleanup config_unload_override 2016-12-15 12:07:02 +01:00
twinaphex cf6d6c584e Get rid of playlist_entry_get_label 2016-12-15 12:02:01 +01:00
twinaphex af6128d976 Put around parentheses 2016-12-15 11:59:33 +01:00
twinaphex c6727bd788 Change Audio Sync string 2016-12-15 11:45:28 +01:00
twinaphex 01afcaa050 Add icon for 'Parent Directory' 2016-12-15 11:31:06 +01:00
twinaphex aee432a528 (materialui.c) Cleanup 2016-12-15 11:24:05 +01:00
twinaphex 2eca6aa04d (XMB) Don't use hardcoded 'OFF' 2016-12-15 11:23:08 +01:00
twinaphex 45e841c5c5 Don't include config_file.h inside input_config.h 2016-12-15 11:17:48 +01:00
twinaphex 2da5db592e (Filebrowser) Hide 'Filter Unknown extensions' if there are no files in the current
working directory
2016-12-15 08:39:12 +01:00
twinaphex 97c9eab9ba (menu_displaylist.c) Indenting breaks syntax formatting for vim 2016-12-15 08:36:28 +01:00
Twinaphex b4c33a05f6 Remove warning about unused variable 2016-12-15 08:31:27 +01:00
Andrés Suárez 0b1a265675 Merge pull request #4244 from GregorR/nat-traversal-menu-label
Adding the NAT traversal label so the menu actually works
2016-12-14 20:22:28 -05:00
Gregor Richards b156e486d6 Adding the NAT traversal label so the menu actually works 2016-12-14 19:59:05 -05:00
Alcaro fd9e721f97 Merge pull request #4183 from markwkidd/patch-3
accept playlists with Unix and Windows style line endings
2016-12-14 21:48:20 +01:00
markwkidd 35437057b9 correct comment for accuracy 2016-12-14 15:32:47 -05:00
twinaphex 9893052df7 (vita) Buildfix 2016-12-14 21:24:17 +01:00
twinaphex 492e363fde Create xmb->thumbnail_orig_width/height 2016-12-14 20:49:50 +01:00
twinaphex d6836a6a6f (iOS) Update solutions 2016-12-14 19:44:12 +01:00
twinaphex c418abc0be (iOS) Update solutions 2016-12-14 19:43:02 +01:00
twinaphex 6807ef007b (gl_common.c) Cleanups 2016-12-14 19:29:14 +01:00
Twinaphex 30fae188fa Merge pull request #4243 from loganmc10/tex2
Fix internal formats used with texture creation
2016-12-14 19:23:39 +01:00
Logan McNaughton fc4c7529a1 Fix internal formats used with texture creation 2016-12-14 09:54:55 -08:00
twinaphex 5908b540de Expose 'Rewind Granularity' to non-advanced users 2016-12-14 18:02:23 +01:00
twinaphex 1948a77bb5 Add TODO/FIXME 2016-12-14 17:56:55 +01:00
twinaphex 4d4710d881 Update MaterialUI 'Load Content' selection 2016-12-14 17:53:22 +01:00
twinaphex f9b019c83a Rename loadTexture to gl_load_texture_image 2016-12-14 16:59:16 +01:00
Twinaphex c12fd9c125 Merge pull request #4242 from loganmc10/texstore
Simplify glTexImage2D/glTexStorage2D calls
2016-12-14 16:50:06 +01:00
twinaphex 43f9f8e8ef (XMB) Cleanups 2016-12-14 16:47:10 +01:00
twinaphex 15780e7a87 Cleanups 2016-12-14 16:33:54 +01:00
Logan McNaughton 8cd2566128 Simplify glTexImage2D/glTexStorage2D calls
Also add support for glTexStorage2DEXT (GLES2)
2016-12-14 07:29:37 -08:00
twinaphex a73c5327b1 Remove unused variable 2016-12-14 16:28:56 +01:00
twinaphex 92465e3acd Turn setting_get_type into a macro 2016-12-14 16:19:32 +01:00
twinaphex d58a3a868c (core_info.c) Small cleanups 2016-12-14 16:10:48 +01:00
twinaphex 05aae1fdb4 core_info.c - cleanups 2016-12-14 13:47:22 +01:00
twinaphex f303dd9e70 (core_info.c) Better error handling for config file functions 2016-12-14 13:15:23 +01:00
twinaphex 43d06591c4 Silence some Coverity errors 2016-12-14 12:55:12 +01:00
twinaphex db23f4f3ab Silence warnings - using wrong enum type 2016-12-14 12:31:08 +01:00
Twinaphex dd553e067f Merge pull request #4241 from libretro/load_content
Load content refactors
2016-12-14 12:02:00 +01:00
twinaphex f4d7b2eaaa (core_info.c) Cleanups 2016-12-14 11:47:04 +01:00
Twinaphex 899d271db6 Merge pull request #4240 from joolswills/neon_fix
fix building with neon enabled - fixes #4239
2016-12-14 09:11:53 +01:00
Jools Wills ef86ec68fa fix building with neon enabled - fixes #4239 2016-12-14 04:25:53 +00:00
twinaphex bcccc27205 (core_info.c) CLeanups 2016-12-14 01:23:08 +01:00
twinaphex c501ee6057 (core_info.c) Cleanups 2016-12-14 01:16:10 +01:00
twinaphex fb5c58d65f Simplify core_info_get_name 2016-12-14 01:08:32 +01:00
twinaphex c8b1aacefe Optimize core_info_get_name 2016-12-14 01:07:48 +01:00
twinaphex 502d3ffa3a (core_info.c) Make code more robust 2016-12-14 00:55:05 +01:00
twinaphex 1f726eff84 Show driver setting labels again 2016-12-13 16:13:38 +01:00
twinaphex d57083197e (Load Content -> Collection) Already loaded core will appear in
supported cores list as 'top core'/'current core'.
2016-12-13 06:32:46 +01:00
twinaphex 12cb854d4a Revert "(menu_displaylist.c) Cleanups"
This reverts commit 6c11374fb9.
2016-12-13 05:52:56 +01:00
twinaphex 6c11374fb9 (menu_displaylist.c) Cleanups 2016-12-13 05:36:03 +01:00
twinaphex 5daaa8cc38 (menu_displaylist.c) Cleanups 2016-12-13 05:30:43 +01:00
twinaphex d8740c51a6 (menu_displaylist.c) Cleanup 2016-12-13 05:27:46 +01:00
twinaphex c8273cd14a (XMB) Use database icon for drives inside Load Content 2016-12-13 03:55:28 +01:00
twinaphex 18e15a822d Make sure that filebrowser_type gets properly 'reset' before
entering 'Load Content'
2016-12-13 03:44:18 +01:00
twinaphex 296b52744d Update remaining platform drivers 2016-12-13 01:45:01 +01:00
twinaphex ba08a88643 (platform) Updates 2016-12-13 01:43:18 +01:00
twinaphex 32e230e98c (win32) Update parse_drive_list 2016-12-13 01:37:37 +01:00
twinaphex 177658c44f Merge branch 'load_content' of https://github.com/libretro/RetroArch into load_content 2016-12-13 01:35:21 +01:00
Twinaphex ecf60f0ef3 (OSX) Buildfixes 2016-12-13 01:34:55 +01:00
twinaphex c2e679bce4 Fix deferred callback for Favorites 2016-12-13 01:34:55 +01:00
twinaphex d7a082e005 Rename 'Select File' to 'Favorites' 2016-12-13 01:34:54 +01:00
twinaphex fc73e82e43 Start making parseable drives work in Load Content 2016-12-13 01:34:53 +01:00
twinaphex 5723c79dac (XMB) Use folder icons for 'Downloads dir' / 'Select File' 2016-12-13 01:34:52 +01:00
twinaphex 33b143bd5a Call current_core callback function for current core 2016-12-13 01:34:51 +01:00
twinaphex d061826089 Show the current core at the top 2016-12-13 01:34:50 +01:00
twinaphex 028fb27175 List the current core now 2016-12-13 01:34:49 +01:00
twinaphex 9909669d01 Combine Load Content and Load Content (Detect Core) 2016-12-13 01:34:49 +01:00
Twinaphex 7feea5d2e8 (OSX) Buildfixes 2016-12-13 01:32:41 +01:00
twinaphex fcd49b0341 Fix deferred callback for Favorites 2016-12-13 01:26:54 +01:00
Twinaphex 93b29aab5a Merge pull request #4234 from leiradel/master
Added support for loading 8 and 16 bps, mono/stereo, uncompressed PCM wave files
2016-12-13 01:11:03 +01:00
twinaphex 6354d7ee5f Rename 'Select File' to 'Favorites' 2016-12-13 01:06:28 +01:00
Andre Leiradella 2c90258353 Include retro_common_api.h 2016-12-12 23:53:44 +00:00
twinaphex 4eaf011f24 Start making parseable drives work in Load Content 2016-12-13 00:50:39 +01:00
Andre Leiradella 6fd6329b41 Fixed copyright notice 2016-12-12 23:28:17 +00:00
Andre Leiradella d6625434a7 Fixed copyright notice and removed reference to stb_image 2016-12-12 23:26:08 +00:00
Andre Leiradella b65e16d39d Added support for loading 8 and 16 bps, mono/stereo, uncompressed PCM wave files 2016-12-12 23:23:36 +00:00
twinaphex 5addb2be5c (XMB) Use folder icons for 'Downloads dir' / 'Select File' 2016-12-12 21:47:12 +01:00
twinaphex d8a92f5bf7 Call current_core callback function for current core 2016-12-12 21:24:06 +01:00
twinaphex 3b63a8a41e Show the current core at the top 2016-12-12 19:22:46 +01:00
twinaphex 508657c410 List the current core now 2016-12-12 18:53:55 +01:00
twinaphex b21b237cdb Reset RARCH_PATH_CORE when we select 'Unload Core' 2016-12-12 17:32:49 +01:00
twinaphex 0cce0a7789 Reset RARCH_PATH_CORE when we select 'Unload Core' 2016-12-12 17:27:47 +01:00
twinaphex 80ac9f511c Combine Load Content and Load Content (Detect Core) 2016-12-12 17:20:52 +01:00
twinaphex 5a2dfe9ded Revert "Combine Load Content and Load Content (Detect Core)"
This reverts commit 92ae2ab860.
2016-12-12 17:19:19 +01:00
twinaphex 92ae2ab860 Combine Load Content and Load Content (Detect Core) 2016-12-12 16:20:43 +01:00
twinaphex 504f6c8081 Add sublabel for OSD font enable 2016-12-12 15:17:06 +01:00
twinaphex a3074714c5 (menu_display_vulkan.c) Update 2016-12-12 15:02:43 +01:00
twinaphex e08c1dce6e (XMB) Put thumbnail behind OSK overlay 2016-12-12 14:18:25 +01:00
twinaphex f80d838aa0 Revert "make state screenshots non-gpu"
This reverts commit e0989d0b9e.
2016-12-12 14:14:45 +01:00
twinaphex 0c9a831bf3 (libretro-common) Cleanup 2016-12-12 14:09:58 +01:00
twinaphex f7199e28de Cleanup 2016-12-12 14:02:43 +01:00
twinaphex 94ac92659c Update 'Show Images Tab' string 2016-12-12 14:01:07 +01:00
twinaphex 7123d75de2 (Settings -> Achievements) Add Username / Password 2016-12-12 13:45:03 +01:00
twinaphex 659ed11678 Fix Griffin 2016-12-12 13:35:17 +01:00
twinaphex 4599acf7aa Move code to dynamic.c 2016-12-12 13:30:50 +01:00
twinaphex 52a41e77c4 (Android) Buildfix 2016-12-12 13:26:45 +01:00
twinaphex 6a45541f24 (Vulkan) Rename pipeline files 2016-12-12 13:17:20 +01:00
Twinaphex d94ed629bd Merge pull request #4228 from lasers/add-ui
Switch XMB Tabs (Music,Video)
2016-12-12 13:05:15 +01:00
twinaphex 08a60c94d0 Move audio resampler drivers (Sinc/nearest) to libretro-common; maister gave permission to relicense to MIT 2016-12-12 13:02:29 +01:00
twinaphex 7af2e2e6b8 Add HAVE_CC_RESAMPLER to more Makefiles 2016-12-12 12:48:04 +01:00
twinaphex 9375efe24e Add HAVE_CC_RESAMPLER defines 2016-12-12 12:44:29 +01:00
twinaphex 8042c2ac62 Move config_file_userdata.c to libretro-common 2016-12-12 12:36:46 +01:00
twinaphex f9b44bbcf6 Cleanups 2016-12-12 12:29:37 +01:00
lasers 754b9c1dda Rename Search:->Search (XMB Style) 2016-12-12 04:14:27 -06:00
lasers 257107a69d Rename Images->Image (XMB Style) 2016-12-12 04:04:13 -06:00
lasers 8366b26d36 Switch XMB Tabs (Music,Video) 2016-12-12 03:54:53 -06:00
twinaphex a94b15ac86 (Vulkan) Add pipeline snow simple shader 2016-12-12 05:21:38 +01:00
Twinaphex 52466e1fa2 Merge pull request #4227 from rz5/master
(XMB VK snow) Attempt to fix the Vulkan snow menu shader
2016-12-12 05:15:51 +01:00
Arzed Five 18392a5e40 (XMB VK snow) Attempt to fix the Vulkan snow menu shader 2016-12-12 03:46:26 +00:00
twinaphex 5fa01c94d3 (XMB) Put thumbnail on foreground 2016-12-12 03:57:56 +01:00
twinaphex 3e25dfb220 (XMB) Add log 2016-12-12 03:34:21 +01:00
twinaphex b9984387f5 (XMB) Add another log 2016-12-12 03:28:55 +01:00
twinaphex dd33715074 (XMB) Cleanups 2016-12-12 03:24:31 +01:00
twinaphex a4dde93a2f Add XMB_DEBUG 2016-12-12 03:20:00 +01:00
twinaphex 90c463b779 (XMB) Add logging 2016-12-12 03:18:48 +01:00
twinaphex 278cd25c76 Hide 'Updater Settings' for non-advanced mode 2016-12-12 01:51:13 +01:00
twinaphex be89a28b2c (menu_setting.c) Hide some settings for default mode 2016-12-12 01:46:44 +01:00
twinaphex 48e60d075c playlist_free_entry - use string_is_empty 2016-12-11 23:00:26 +01:00
twinaphex bcfbf46e5a Comment out underrun log messages for PulseAudio 2016-12-11 22:39:26 +01:00
twinaphex 5eac050fe5 Hide advanced settings 2016-12-11 22:18:58 +01:00
Twinaphex 27d363a4b5 Merge pull request #4226 from diegoviola/master
Fix typos
2016-12-11 22:15:30 +01:00
twinaphex c0caae124e Prevent warning 2016-12-11 22:11:03 +01:00
Diego Viola 4fed31fa26 Fix typos 2016-12-11 18:30:01 -02:00
Twinaphex 783f1b8423 Merge pull request #4224 from diegoviola/master
README.md: Minor Markdown fixes
2016-12-11 21:19:35 +01:00
Twinaphex 575883ff8b Merge pull request #4225 from fr500/qt
QT Wrapper build fixes
2016-12-11 21:19:28 +01:00
Andrés Suárez f9c3869b43 Merge branch 'master' into qt 2016-12-11 15:08:19 -05:00
Diego Viola dde7a6157a README.md: Minor Markdown fixes 2016-12-11 17:55:36 -02:00
twinaphex d82349a65f Update 'Wallpaper' strings 2016-12-11 20:54:07 +01:00
Twinaphex efa14c0f60 Merge pull request #4212 from diegoviola/master
README.md: Replace HTML with Markdown syntax
2016-12-11 20:38:48 +01:00
Brad Parker 7c176c3d14 replace simple snow with fancy snow code with different parameters 2016-12-11 13:00:12 -05:00
Twinaphex acbf2546d9 Merge pull request #4223 from libretro/revert-4219-master
Revert "changed input binding order"
2016-12-11 19:00:07 +01:00
Twinaphex 4964791cde Revert "changed input binding order" 2016-12-11 19:00:03 +01:00
Twinaphex c4dd258e93 Merge pull request #4219 from CidVonHighwind/master
changed input binding order
2016-12-11 18:59:03 +01:00
bparker06 9b24f6f9d1 Merge pull request #4220 from aliaspider/master
replace the glsl snow shader with a more lightweight version.
2016-12-11 12:55:54 -05:00
Twinaphex 0490cc2003 Merge pull request #4222 from fr500/master
make state screenshots non-gpu
2016-12-11 18:53:42 +01:00
radius e0989d0b9e make state screenshots non-gpu 2016-12-11 12:30:20 -05:00
aliaspider 5cf8391c5a replace the glsl snow shader with a more lightweight version.
(gpu usage is approximately 25% compared to the original.)
2016-12-11 15:52:32 +01:00
Patrick Scheurenbrand d40a0e2f3a changed input binding order 2016-12-11 13:03:02 +01:00
Twinaphex d8acba1fa8 Merge pull request #4216 from barbudreadmon/patch-2
Fix for issue #4165
2016-12-11 11:02:08 +01:00
twinaphex 14c5bdc0a1 Put some settings behind SD_FLAG_ADVANCED 2016-12-11 10:59:15 +01:00
barbudreadmon ad273d6299 Fix for issue #4165
vulkan video driver don't rotate the same way as gl video driver without this.
2016-12-11 10:53:02 +01:00
twinaphex a5a594f619 Don't push screenshot to image history if we are just saving
a state
2016-12-11 10:34:12 +01:00
twinaphex 15c63c3de9 (input_driver.c) Cleanups 2016-12-11 09:13:24 +01:00
twinaphex d2bd6677bd (udev_joypad.c) Cleanup 2016-12-11 08:48:25 +01:00
twinaphex e9f853ba93 Move (joykey == NO_BTN ) to input_joypad_driver 2016-12-11 08:44:55 +01:00
twinaphex 37559c6f5f Cleanups 2016-12-11 08:31:55 +01:00
twinaphex 423578d972 (Joypad drivers) Simplify hat code 2016-12-11 07:28:33 +01:00
twinaphex 1d9c9f8021 Update subrepos 2016-12-11 06:49:48 +01:00
twinaphex 7dcea505fb Update SPIRV-Cross subrepo 2016-12-11 06:40:33 +01:00
twinaphex a47dd21751 Don't print game focus OSD message if input is -1 2016-12-11 06:39:30 +01:00
Diego Viola 86c76999da README.md: Replace HTML with Markdown syntax 2016-12-10 19:46:49 -02:00
twinaphex 26fe408bb4 (Emscripten) Add button 2016-12-10 22:01:40 +01:00
Twinaphex 49a8f36271 Merge pull request #4210 from diegoviola/master
README.md: minor stylistic changes
2016-12-10 21:34:51 +01:00
Diego Viola 8bf8652fb8 README.md: minor stylistic changes 2016-12-10 18:33:15 -02:00
Twinaphex 2407e9cb10 Merge pull request #4206 from lasers/add-sublabel
Add sublabel for Achievements (enable,test_unofficial)
2016-12-10 21:25:14 +01:00
Twinaphex 2ee7f08aa7 Merge pull request #4208 from CoalaJoe/master
Updated and added more german translations
2016-12-10 21:24:17 +01:00
CoalaJoe d6043867ec Updated and added more german translations
Signed-off-by: CoalaJoe <[email protected]>
2016-12-10 21:19:33 +01:00
Twinaphex 65dcf03e30 Merge pull request #4207 from GregorR/natt-ipv6-without-ipv6
NAT traversal also needs to avoid IPv6 with SOCKET_LEGACY
2016-12-10 20:01:32 +01:00
Gregor Richards 65224dc2a5 NAT traversal also needs to avoid IPv6 with SOCKET_LEGACY 2016-12-10 13:58:51 -05:00
lasers f2e30ec5e9 Add sublabel for Achievements (enable,test_unofficial) 2016-12-10 12:56:13 -06:00
Twinaphex c949ec4421 Merge pull request #4203 from GregorR/netplay-ipv6-without-ipv6
HAVE_SOCKET_LEGACY -> no IPv6
2016-12-10 19:52:04 +01:00
Twinaphex 0b4e8bff22 Merge pull request #4205 from diegoviola/master
README.md: Add missing whitespace
2016-12-10 19:49:58 +01:00
Diego Viola 56cfa65c74 README.md: Add missing whitespace 2016-12-10 16:47:29 -02:00
markwkidd c6bc316e04 Update playlist.c 2016-12-10 11:03:28 -05:00
Gregor Richards 9a4b28735b HAVE_SOCKET_LEGACY -> no IPv6
I had previously assumed that if AF_INET6 is defined, IPv6 support was
present. Some psychopathic console SDKs which shall not be named
actually define AF_INET6 but none of the IPv6 structures. As there is
therefore no way to determine whether IPv6 support is present at
preprocessor time, I'm ust assuming that HAVE_SOCKET_LEGACY implies no
IPv6. This means in effect that no consoles get IPv6 support.
2016-12-10 05:27:25 -05:00
twinaphex 4bf806ef00 (Netplay) Some build fixes for PS3 and others 2016-12-10 09:41:24 +01:00
twinaphex a210e4f6fe (PS3) Some build fixes 2016-12-10 09:39:07 +01:00
twinaphex 31b69b4011 C89_BUILD fixes 2016-12-10 09:06:11 +01:00
twinaphex 026e705506 core.h - remove retro_miscellaneous.h include 2016-12-10 09:04:40 +01:00
twinaphex 9b329ddb56 runloop.h header include cleanup - don't include retro_miscellaneous.h 2016-12-10 08:10:02 +01:00
twinaphex 1b29d41661 (render_chain_gl_legacy.c) Cleanups 2016-12-10 07:30:14 +01:00
twinaphex be459a6281 Cleanups 2016-12-10 07:28:08 +01:00
twinaphex aa5730dbc9 (render_chain_gl_legacy.c) Cleanups 2016-12-10 07:26:50 +01:00
twinaphex 584e93be4f Cleanup runloop.h header 2016-12-10 07:21:34 +01:00
Brad Parker 4cd88c585c add missing msg_hash 2016-12-09 23:38:30 -05:00
Brad Parker d558862e21 make "Got connection from" translatable. Update JP translation. 2016-12-09 23:38:00 -05:00
Twinaphex b2d1e0973d Merge pull request #4199 from lasers/fix-the-system
Fix msg_hash_ja.h (Systematic)
2016-12-10 01:48:22 +01:00
Brad Parker 1f39426195 only use fancy ribbon on GLES if GL_OES_standard_derivatives extension is detected 2016-12-09 19:32:55 -05:00
lasers 3414115b82 Fix msg_hash_ja.h (Systematic) 2016-12-09 12:52:18 -06:00
Twinaphex b460fc558c Merge pull request #4197 from loganmc10/patch-1
Add HAVE_OPENGLES3 to griffin.c
2016-12-09 18:12:52 +01:00
Logan McNaughton 746e4667c2 Add HAVE_OPENGLES3 to griffin.c 2016-12-09 10:07:37 -07:00
Twinaphex d39f226a57 Merge pull request #4194 from loganmc10/gles3
Use glTexStorage2D for FBO textures
2016-12-09 17:56:43 +01:00
Twinaphex 59956ee021 Merge pull request #4195 from lasers/add-systematic
Add Systematic Theme
2016-12-09 06:52:31 +01:00
lasers 16eebb3f58 Add Systematic Theme 2016-12-08 23:39:39 -06:00
Logan McNaughton 1d69baca82 Use glTexStorage2D for FBO textures 2016-12-08 21:14:10 -07:00
Twinaphex baff9b6742 Merge pull request #4193 from lasers/sublabel-config
Align information for Settings->Configuration
2016-12-09 04:16:06 +01:00
Twinaphex 74aa251f8b Merge pull request #4189 from lasers/sublabel-config
Add sublabel for Configuration+(s)
2016-12-09 03:59:02 +01:00
lasers b7dd1a7dbb Align information for Settings->Configuration 2016-12-08 20:20:11 -06:00
Twinaphex a1f0b5464b Merge pull request #4192 from loganmc10/patch-4
Don't define HAVE_OPENGLES2 for Android if GLES=3
2016-12-08 23:45:11 +01:00
lasers d2fb24d4df Add information for Settings->Configuration 2016-12-08 16:25:27 -06:00
Logan McNaughton 0b0bdadeee Don't define HAVE_OPENGLES2 for Android if GLES=3 2016-12-08 15:22:00 -07:00
lasers 10e2c5ae4a Add information for Netplay->ScanLocalNetwork 2016-12-08 15:59:21 -06:00
lasers 1d38dbaa34 Clean up Keyboard Overlay Preset 2016-12-08 15:18:40 -06:00
lasers ce4cd8fe25 Rename Configuration sublabel 2016-12-08 13:18:11 -06:00
lasers 1283539dd2 Rename Configurations sublabel 2016-12-08 13:10:25 -06:00
lasers 8a6e414fc6 Rename User sublabel 2016-12-08 13:09:50 -06:00
Twinaphex b3f62fe49b Merge pull request #4191 from hizzlekizzle/master
Add ChipTuneEnhance.dsp
2016-12-08 18:57:29 +01:00
hizzlekizzle bf0d21521c Create ChipTuneEnhance.dsp 2016-12-08 11:36:17 -06:00
lasers 1e571399fe Clean up Configuration on Exit 2016-12-08 09:48:19 -06:00
lasers aa2b20f14d Add sublabel for Configuration+(s) 2016-12-08 09:44:02 -06:00
twinaphex b0fcdf9db4 Wrong usage of enum 2016-12-08 03:02:30 +01:00
markwkidd edf58d9e29 Update playlist.c 2016-12-07 16:08:09 -05:00
markwkidd e65b4d8c1c Update playlist.c 2016-12-07 16:07:45 -05:00
markwkidd 72d31c6fbe Update playlist.c 2016-12-07 15:52:14 -05:00
markwkidd f710129f32 cleaner to use strpbrk 2016-12-07 15:51:09 -05:00
markwkidd a49912c863 accept playlists with Unix and Windows style line endings 2016-12-07 15:35:49 -05:00
Twinaphex 91dd0756dd Merge pull request #4182 from lasers/patch-2
replace hardcoded "lpl" with FILE_PATH_LPL_EXTENSION_NO_DOT
2016-12-07 21:10:21 +01:00
Twinaphex 00fb27cfdc Merge pull request #4181 from markwkidd/patch-1
replace hardcoded "lpl" with FILE_PATH_LPL_EXTENSION_NO_DOT
2016-12-07 21:07:26 +01:00
lasers d1ff9ea065 replace hardcoded "lpl" with FILE_PATH_LPL_EXTENSION_NO_DOT 2016-12-07 14:07:22 -06:00
markwkidd 39a92f889a replace hardcoded "lpl" w/FILE_PATH_LPL_EXTENSION_NO_DOT 2016-12-07 14:47:43 -05:00
Twinaphex a1b67c60be Merge pull request #4180 from loganmc10/patch-3
Fix GL_CAPS_ARGB8
2016-12-07 20:37:25 +01:00
Logan McNaughton 07a9a75a00 Fix GL_CAPS_ARGB8
ARM_argb8 should be ARM_rgba8, and GLES3 always supports this feature
2016-12-07 12:34:02 -07:00
Twinaphex 9656c5e7a1 Merge pull request #4177 from loganmc10/patch-2
Use RGBA8 for FBO texture internal format on GLES3
2016-12-07 19:55:57 +01:00
Logan McNaughton b275b2e113 Use RGBA8 for FBO texture internal format on GLES3
GLES3 supports GL_RGBA8 as an internal format for textures.

Using the sized format (RGBA8 instead of RGBA) allows more flexibility. In my case I am trying to use glCopyImageSubData and it only works on textures with sized internal formats.
2016-12-07 11:22:24 -07:00
Twinaphex 3600e29bbb Merge pull request #4174 from lasers/update-cfg
Update skeleton cfg (download directory)
2016-12-07 16:38:28 +01:00
lasers 5074139acf Update skeleton cfg (download directory) 2016-12-07 06:13:40 -06:00
twinaphex 6200c3a1e0 Clean up mutex functions 2016-12-07 08:51:38 +01:00
twinaphex e95cd1cbd1 (audio_driver.c) Cleanups, remove unused functions 2016-12-07 08:46:21 +01:00
twinaphex 4971fc53b5 Delete unused runloop_msg_queue_pull 2016-12-07 08:27:06 +01:00
twinaphex e32d93d886 Remove functions 2016-12-07 08:14:04 +01:00
twinaphex 04a3c3f15e Remove unused function input_driver_unset_flushing_input 2016-12-07 08:11:59 +01:00
twinaphex dc7549434f Add headers 2016-12-07 08:10:02 +01:00
twinaphex a12d0d082d Move input_translate_coord_viewport to video_driver.c 2016-12-07 08:07:11 +01:00
hizzlekizzle 2d0caf522b Change number of combo choices from 3 to 4
This was causing the start+select combo to not actually be selectable.
2016-11-27 10:10:32 -06:00
twinaphex 42a3ec2cf7 Do conditional check before calling function 2016-11-27 15:43:00 +01:00
twinaphex 5b2c4db656 (libretro-common) Fix header 2016-11-27 15:35:04 +01:00
twinaphex 44131ff639 (input_overlay.c) Prevent crashes 2016-11-27 15:34:19 +01:00
twinaphex 4e8bb52038 (input_overlay.c) Remove more hacks 2016-11-27 15:21:53 +01:00
twinaphex 267fdbe21e (input_overlay.c) remove more hacks 2016-11-27 15:17:44 +01:00
twinaphex 7f339a8f84 More hacks from input_overlay.c removed 2016-11-27 15:12:48 +01:00
twinaphex bbb2ffea9c Remove nasty input overlay hack for input_overlay_set_scale_factor 2016-11-27 15:10:09 +01:00
twinaphex e9846aae68 (Android) Remove unused variables 2016-11-27 15:02:14 +01:00
twinaphex 4029709658 Fix warning 2016-11-27 14:50:42 +01:00
twinaphex c393a1a99f Remove unused variables 2016-11-27 14:43:35 +01:00
twinaphex d26a213971 CXX_BUILD fixes 2016-11-27 13:30:35 +01:00
radius 269c32ae38 Revert "dehardcode core path on android"
This reverts commit 19def60d5e.
2016-11-26 21:53:58 -05:00
twinaphex 1ab6cc5b47 Remove dead OSK code 2016-11-27 02:52:13 +01:00
twinaphex 80798ab924 Remove hacky 'OSK Keyboard' overlay 2016-11-27 02:46:09 +01:00
Twinaphex b7127472db Merge pull request #4077 from leiradel/master
Fix infinite loop with some NES ROMs
2016-11-27 02:10:52 +01:00
Andre Leiradella 1b7f1f30d9 Fix infinite loop with some NES ROMs 2016-11-27 01:01:23 +00:00
Twinaphex a09ad05a76 Merge pull request #4064 from GregorR/netplay-compression
Netplay compression
2016-11-26 23:43:05 +01:00
Gregor Richards 7bc77f8614 Adding new C files to griffin.c (Mac OS X fix) 2016-11-26 16:11:42 -05:00
Gregor Richards 225cbb387b Updating netplay to use trans_stream for compression 2016-11-26 16:06:52 -05:00
radius b1531618f1 add git version to android build 2016-11-26 16:02:12 -05:00
Gregor Richards 096eb072e1 Replacing archive_file_zlib backend with trans_stream 2016-11-26 15:48:58 -05:00
Alcaro 0bc7d40948 Avoid unneeded warnings 2016-11-26 21:31:49 +01:00
Alcaro f08f37bafc Avoid printing unneeded bytes 2016-11-26 21:21:15 +01:00
Alcaro 77b1421500 Avoid copying unneeded bytes 2016-11-26 20:27:17 +01:00
Twinaphex 8b29fb4293 Merge pull request #4068 from leiradel/master
Adjust cheevos addresses for SNES when using the MMAP interface; alwa…
2016-11-26 18:31:18 +01:00
Andre Leiradella 18e2369d38 Use strlcpy instead of strncpy 2016-11-26 17:27:14 +00:00
Andrés Suárez 6df6e2a2a2 Merge pull request #4072 from fr500/master
de-hardcode core path on android
2016-11-26 11:56:39 -05:00
radius 19def60d5e dehardcode core path on android 2016-11-26 11:56:10 -05:00
twinaphex 82b1cbf04a Not sure why this is in include/hash 2016-11-26 17:14:40 +01:00
twinaphex 9b402cd4a3 Add compat/strl.h 2016-11-26 17:13:34 +01:00
twinaphex cf76d9e121 (civetweb) Use strlcpy/strlcat 2016-11-26 17:13:14 +01:00
twinaphex cd0bf8f31a Prefer to use strlcpy instead of strcpy 2016-11-26 17:11:30 +01:00
Gregor Richards ac50e17f50 Moving zlib stream interface
Moving the zlib streaming interface out of archive_file and into
trans_stream, including updating the png support to use the new
trans_stream interface. archive_file_zlib itself still needs updating.
2016-11-26 10:47:24 -05:00
Gregor Richards f27476b4ef Adding a transcoding stream interface for in-memory compression. 2016-11-26 09:19:46 -05:00
twinaphex 490b3f5ed2 Add updates to libretro-common 2016-11-26 11:12:46 +01:00
twinaphex a1bd1ecaa7 Do reinit when toggling video smooth setting 2016-11-26 11:05:57 +01:00
Twinaphex c3ba7ee330 Merge pull request #4070 from lioncash/vulkan
vulkan: Move vk_t pointer dereferences after the null check
2016-11-26 08:50:57 +01:00
Lioncash d34202aea6 vulkan: Move vk_t pointer dereferences after the null check 2016-11-25 23:21:31 -05:00
twinaphex 6352b4a82e Dehardcode string 2016-11-26 01:43:37 +01:00
twinaphex c14b6f6a82 Add more entries and cleanup code in menu_cbs_title.c 2016-11-26 01:39:24 +01:00
twinaphex 6d8573f785 Add missing labels 2016-11-26 00:47:14 +01:00
twinaphex d01a779a02 Add MSG_LAST 2016-11-26 00:37:33 +01:00
twinaphex e7c264d4ed Add new labels 2016-11-26 00:35:59 +01:00
twinaphex a2d37c51cd Add / update labels 2016-11-26 00:31:38 +01:00
radius d33ff1f14f android build fix 2016-11-25 18:20:23 -05:00
Andre Leiradella 80fd37e5b7 Clearer math in the SNES address adjustment. 2016-11-25 22:46:23 +00:00
Alcaro a240fa3d64 Merge pull request #4069 from lioncash/leak
core_info: Fix a leak in core_info_database_supports_content_path
2016-11-25 23:42:52 +01:00
Lioncash 149522f23c core_info: Fix a leak in core_info_database_supports_content_path 2016-11-25 17:38:54 -05:00
Andre Leiradella ad99a73dac Adjust cheevos addresses for SNES when using the MMAP interface; always show the retro_get_memory values on the log; use strncpy instead of strlcpy 2016-11-25 22:36:24 +00:00
twinaphex c58c06fc79 Add stub msg_hash_eo.h 2016-11-25 23:11:53 +01:00
twinaphex 891b64757f (Dutch) Translate some strings 2016-11-25 23:10:09 +01:00
twinaphex 75ee9feef9 Add menu labels 2016-11-25 23:06:36 +01:00
twinaphex e1d4ccd7fd Update intl headers 2016-11-25 23:04:00 +01:00
twinaphex bc5b1b9d60 Cleanups 2016-11-25 22:43:42 +01:00
twinaphex df6a7993b3 OFF/ON labels can be translated now too 2016-11-25 22:28:12 +01:00
twinaphex 8e6f864233 Add on/off labels 2016-11-25 22:00:18 +01:00
twinaphex 3b751676e1 Add msg_hash_nl.h 2016-11-25 21:43:51 +01:00
Twinaphex a9555005fa Merge pull request #4067 from fr500/master
Android cleanups
2016-11-25 20:16:55 +01:00
twinaphex 083f1c2d48 Update strings 2016-11-25 20:10:09 +01:00
radius e43a9a0add android frontend driver cleanup 2016-11-25 14:05:17 -05:00
radius 415f84e13f having it as preferExternal accomplishes literally nothing!
Basically it saves the apk file (that is used ONCE) in the external SD but all the data files are created in the same location in the internal partition
Having it as preferExternal causes installation issues on some devices (have to remove the SD card to install the app..., then insert again)
2016-11-25 13:48:41 -05:00
twinaphex 4c40de5f72 (menu_cbs_title.c) Dehardcode string 2016-11-25 18:48:50 +01:00
twinaphex 11e7103fbd Cleanups of labels 2016-11-25 18:45:47 +01:00
twinaphex 883d4abea0 Create macro for menu_cbs_title.c 2016-11-25 18:38:41 +01:00
twinaphex 88b1c3ed4c Initialize char variables 2016-11-25 18:26:11 +01:00
Alcaro b0cae5eafb Merge pull request #4066 from lioncash/endif
opendingux: Properly close #ifdef macro
2016-11-25 18:25:25 +01:00
Twinaphex 33a9132c8d Merge pull request #4065 from lioncash/leak
drm_gfx: Fix a memory leak in the initialization fail case
2016-11-25 18:23:38 +01:00
Lioncash 5a5a54ef91 opendingux: Properly close #ifdef macro 2016-11-25 12:23:35 -05:00
Lioncash 918710cb2e drm_gfx: Fix typo in log message 2016-11-25 12:19:09 -05:00
Lioncash bc28d46bbb drm_gfx: Fix memory leak in fail case 2016-11-25 12:17:53 -05:00
Gregor Richards da0b958aeb Check HAVE_ZLIB and only do zlib compression if it's supported by both
sides.
2016-11-25 11:03:12 -05:00
Gregor Richards db437047f8 Don't use z_const, which is apparently not always defined. 2016-11-25 10:40:25 -05:00
Gregor Richards 679ea058a4 Properly clean up zlib. 2016-11-25 10:40:24 -05:00
Gregor Richards 3ff22c9ed6 Fixes for C++ support. 2016-11-25 10:40:24 -05:00
Gregor Richards 9f03020af8 Change the netplay protocol version since compression isn't backwards
compatible.
2016-11-25 10:40:24 -05:00
Gregor Richards 53c6223dc6 Use zlib compression for savestates sent over netplay. 2016-11-25 10:40:24 -05:00
Jean-André Santoni 9652be89cd Merge pull request #4047 from igungor/lakka-fix-is_online
Fix WiFi online detection
2016-11-25 14:35:23 +01:00
Twinaphex de79dfdb6d Merge pull request #4059 from leiradel/master
Fix crash when Retro Achievements return a zero-length response when …
2016-11-25 14:26:59 +01:00
Twinaphex 3bd4739cee Merge pull request #4061 from fr500/master
Fixed window size for desktop users
2016-11-25 02:06:33 +01:00
aliaspider 82ced82b54 Merge pull request #4062 from FIX94/master
(WiiU) changed linker script to now properly generate a small rpx elf…
2016-11-24 09:55:58 +01:00
FIX94 53042b58b0 (WiiU) changed linker script to now properly generate a small rpx elf file instead of a 243mb one every time 2016-11-24 09:09:23 +01:00
Brad Parker 9564c14874 fix log label 2016-11-24 01:04:49 -05:00
Brad Parker 5030880afd update JP translation 2016-11-24 01:02:25 -05:00
aliaspider 7a72cef9de (WiiU) choose normal quality for the sinc resampler. 2016-11-24 04:45:22 +01:00
aliaspider 675b588d3b (WiiU) makefile: add dependency tracking. 2016-11-24 03:26:34 +01:00
radius 8a16ec393c remove WIN32 ifdefs 2016-11-23 20:37:29 -05:00
radius 7cabb0c457 fix sublabel for window scale 2016-11-23 20:33:16 -05:00
radius 17fb6b2753 remove WIN32 ifdefs 2016-11-23 20:23:56 -05:00
radius 8cb5ed0d95 (win) add fixed window size mode 2016-11-23 19:43:50 -05:00
aliaspider f43c7254ee (WiiU) add a helper macro for DisassemblePPCRange. 2016-11-24 00:34:03 +01:00
Twinaphex 19f44ecadc Merge pull request #4060 from FIX94/master
(WiiU) added additional imports
2016-11-23 23:55:05 +01:00
FIX94 19ab43ae90 (WiiU) added additional imports 2016-11-23 23:53:22 +01:00
Andre Leiradella 298484b62b Use strlcpy instead of strncpy 2016-11-23 22:10:55 +00:00
Andre Leiradella 5751ea5727 Better parameter searching; remove parameter value instead of overriding it with X 2016-11-23 22:02:02 +00:00
Andre Leiradella 4c2b5b38a0 Fix crash when Retro Achievements return a zero-length response when asked for the game's achievements; don't log the user's password and token when CHEEVOS_LOG_URLS is defined (but do when CHEEVOS_LOG_PASSWORD is too) 2016-11-23 20:18:50 +00:00
twinaphex f9e54f1116 Add msg_hash_fr.h 2016-11-23 20:09:50 +01:00
twinaphex da6c863780 Remove english strings from msg_hash_nl.c 2016-11-23 19:10:32 +01:00
twinaphex 744681d3b8 Cleanups 2016-11-23 18:15:54 +01:00
twinaphex d1384ca402 Add Russian strings to msg_hash_ru.h 2016-11-23 18:12:54 +01:00
twinaphex a0804c225f Move Japanese strings to msg_hash_ja.h 2016-11-23 17:51:45 +01:00
twinaphex e4482eed9f Cleanups 2016-11-23 16:11:32 +01:00
twinaphex efba5dddf5 Cleanups 2016-11-23 15:58:52 +01:00
twinaphex 699a750ebc Cleanups 2016-11-23 15:53:06 +01:00
twinaphex 8231839cac (menu_cbs_title.c) Cleanups 2016-11-23 15:20:34 +01:00
twinaphex bbf981c7ab Cleanups 2016-11-23 15:18:51 +01:00
twinaphex e506a7cba9 Cleanups 2016-11-23 15:10:05 +01:00
twinaphex cd43579d44 CLeanups 2016-11-23 15:01:52 +01:00
twinaphex 1a15f39931 Cleanups 2016-11-23 14:59:03 +01:00
twinaphex 42aea2081d (menu_cbs_title.c) Cleanups 2016-11-23 14:54:54 +01:00
twinaphex 7211edbf9b Remove unused enums 2016-11-23 14:48:08 +01:00
twinaphex aeb925c2bb Cleanups 2016-11-23 14:42:59 +01:00
twinaphex 63ba244912 Change strings 2016-11-23 14:32:38 +01:00
twinaphex 4d538dea5c Add Onscreen Notifications list 2016-11-23 14:28:15 +01:00
twinaphex faef72a073 Move 'Rewind Settings' inside 'Frame Throttle' settings 2016-11-23 13:29:40 +01:00
twinaphex 6893e8f97e (MSVC) Buildfix 2016-11-23 10:27:46 +01:00
aliaspider 2b4e4d56cd (WiiU) no need to specify library name for IMPORT_END() anymore. 2016-11-23 08:47:02 +01:00
aliaspider 0a6e6d1abe Merge pull request #4057 from vgmoose/master
(WiiU) update dist script with fixed newlines in meta.xml
2016-11-23 07:32:49 +01:00
vgmoose 7fc5a394d3 (WiiU) update dist script with fixed newlines in meta.xml 2016-11-23 01:25:53 -05:00
aliaspider cf1a27130f Merge pull request #4056 from FIX94/master
(WiiU) more small audio driver value adjustments
2016-11-23 07:24:01 +01:00
FIX94 16fdc70a03 (WiiU) more small audio driver value adjustments 2016-11-23 07:22:34 +01:00
aliaspider 929c92244a Merge pull request #4055 from vgmoose/master
(WiiU) update dist script
2016-11-23 06:37:35 +01:00
vgmoose 25ecaf0b53 (WiiU) update dist script
add fields to generated meta.xml
2016-11-23 00:33:19 -05:00
aliaspider 15c535d06f (WiiU) ignore elf2rpl errors. 2016-11-23 05:27:52 +01:00
Andrés Suárez c42d168a76 Merge pull request #4054 from aliaspider/master
(WiiU) rpx related fixes. add rpx building to dist scripts.
2016-11-22 22:27:41 -05:00
aliaspider 0926334614 (WiiU) update dist script. 2016-11-23 04:22:50 +01:00
aliaspider ea248559e0 (WiiU) rpx update:
- c++ static constructors/destructors fix for rpx builds.
- building both rpx and hbl elf formats doesn't require a clean step
inbetween anymore, both can be now built in a single make call.
2016-11-23 03:21:01 +01:00
Andrés Suárez 37e6372e04 Merge pull request #4052 from leiradel/master
Fix huge count in cheevos_fill_md5 which makes RetroArch freeze
2016-11-22 19:01:00 -05:00
radius 66a766fca1 swap should affect OSK too 2016-11-22 18:55:52 -05:00
aliaspider eedbea4527 (WiiU) build RPX imports from imports.h. 2016-11-23 00:06:35 +01:00
aliaspider 3acdf3d1cb (WiiU) import only the needed symbols. 2016-11-22 22:48:44 +01:00
aliaspider e2f7145112 (WiiU) video driver: set the correct monitor refresh rate on init.
- add a performance counter.
2016-11-22 22:47:06 +01:00
Andre Leiradella 38e201ba2d Fix huge count in cheevos_fill_md5 which makes RetroArch freeze 2016-11-22 21:27:19 +00:00
aliaspider 4bfa6f958c Merge pull request #4051 from FIX94/master
(WiiU) more audio driver work, this should hopefully fix any remaining audio crackling
2016-11-22 20:24:49 +01:00
FIX94 ccd3e524a2 (WiiU) more audio driver work, this should hopefully fix any remaining audio crackling 2016-11-22 20:18:21 +01:00
H. İbrahim Güngör d884e97576 wifi: fix parsing of connmanctl output
Also follow the coding style.
2016-11-22 16:04:53 +03:00
twinaphex d3b8b3d252 Cleanups 2016-11-22 13:59:06 +01:00
twinaphex c2f2695666 Cleanups 2016-11-22 13:29:27 +01:00
twinaphex b2ce67421b (Vietnamese) Labels don't need to be translated 2016-11-22 11:22:56 +01:00
twinaphex ba49c762b7 (Chinese) Labels don't need translating 2016-11-22 11:20:15 +01:00
twinaphex 182c548f63 (Japan) Labels don't need translating 2016-11-22 11:18:09 +01:00
twinaphex c2bc2c3488 Cleanups 2016-11-22 11:14:37 +01:00
Jean-André Santoni 9268a9651d Merge pull request #4038 from igungor/lakka-connman-fix
Fix parsing of connmanctl output
2016-11-22 10:59:08 +01:00
twinaphex cabbd6ed1b Cleanups 2016-11-22 10:45:43 +01:00
twinaphex 9769df405c Create MENU_LABEL macro 2016-11-22 09:25:57 +01:00
twinaphex 1875f28b24 Cleanups 2016-11-22 09:14:55 +01:00
twinaphex 989b7e50fd Add sublabels 2016-11-22 09:05:57 +01:00
twinaphex 7873c5967a Add sublabels 2016-11-22 08:48:37 +01:00
twinaphex fd6f448709 Cleanups 2016-11-22 08:33:36 +01:00
H. İbrahim Güngör 2641c1214c lakka: consider the identifiers in connmanctl services output 2016-11-22 10:26:02 +03:00
Twinaphex 0a49a157f0 Merge pull request #4037 from lasers/sort-sublabels
Organize Label, Value, Sublabel
2016-11-22 08:03:38 +01:00
Twinaphex 84381c658c Merge pull request #4045 from FIX94/master
(WiiU) increased audio buffer size to allow PAL games to be played back properly
2016-11-22 08:02:22 +01:00
FIX94 7baff176dc small wiiu correction 2016-11-22 07:34:11 +01:00
FIX94 8c8c92589d (WiiU) increased audio buffer size to allow PAL games to be played back properly 2016-11-22 07:07:21 +01:00
aliaspider 7f141fa830 Merge pull request #4044 from FIX94/master
better check the same thing twice!
2016-11-22 04:32:04 +01:00
FIX94 a0669f19b5 better check the same thing twice! 2016-11-22 04:30:08 +01:00
aliaspider 5d4bbde134 Merge pull request #4043 from FIX94/master
small correction
2016-11-22 03:21:13 +01:00
FIX94 1c990c691c small correction 2016-11-22 03:18:36 +01:00
Andrés Suárez 73a58f1b50 Merge pull request #4042 from fr500/master
allow cleaning up idbfs
2016-11-21 20:59:37 -05:00
radius 50539d58df allow cleaning up idbfs 2016-11-21 20:58:45 -05:00
aliaspider 98bd87b39e Merge pull request #4041 from FIX94/master
(WiiU) use some more direct callback for audio updates and added safety into it
2016-11-22 02:41:54 +01:00
FIX94 b3eb8ec3be (WiiU) use some more direct callback for audio updates and added safety into it 2016-11-22 02:39:12 +01:00
aliaspider 797ef01b85 Merge pull request #4040 from FIX94/master
(WiiU) more audio driver cleanup
2016-11-22 00:38:53 +01:00
FIX94 0c314d0159 (WiiU) more audio driver cleanup 2016-11-22 00:37:22 +01:00
aliaspider 0dbd48ec5a (WiiU) audio driver: cleanups, update copyright notice. 2016-11-21 23:37:06 +01:00
aliaspider a79215499e Merge pull request #4039 from FIX94/master
(WiiU) continuation of the audio driver changes from yesterday
2016-11-21 22:49:36 +01:00
FIX94 b29cdef8ec (WiiU) continuation of the audio driver changes from yesterday 2016-11-21 22:47:29 +01:00
H. İbrahim Güngör 9ec8781a2a wifi: fix parsing of connmanctl output
`connmanctl services` output is something like this:

```
Δ connmanctl services
    NetMASTER Uydunet-N4832 wifi_742f68cd1f13_4e65744d415354455220557964756e65742d4e34383332_managed_psk
    DIRECT-Dn-Android_d703 wifi_742f68cd1f13_4449524543542d446e2d416e64726f69645f64373033_managed_psk
    PS4-8E777390BB63     wifi_742f68cd1f13_5053342d384537373733393042423633_managed_psk
```

So, instead of assuming the SSID length, just split the lines by space
character, and treat the last item as the unique id.

Updates libretro/Lakka#538
2016-11-21 23:39:09 +03:00
Brad Parker 2997b7b0cc update JP translation, make "RetroPad w/ Analog" translatable. 2016-11-21 15:08:00 -05:00
lasers f7fdae9c13 Organize Label, Value, Sublabel 2016-11-21 13:32:15 -06:00
Twinaphex 9dca196cf8 Merge pull request #4036 from lasers/add-sublabel
Add sublabel for Onscreen, Driver, Help
2016-11-21 19:48:33 +01:00
lasers bfd3430ad8 Add sublabel for Tour (Help) 2016-11-21 12:23:26 -06:00
lasers 166e5fc16d Add sublabel for User 2016-11-21 11:02:34 -06:00
lasers 88046e4bbe Add sublabel for Onscreen 2016-11-21 10:21:18 -06:00
Jean-André Santoni 0da9b6c9c4 Merge pull request #4035 from lasers/add-sublabel
Add sublabel for User Interface, Privacy, Directory, Frame Throttle
2016-11-21 17:06:29 +01:00
lasers 8c8fd610bc Fix sublabel for Drivers. (Warm) 2016-11-21 10:05:56 -06:00
lasers c51bb8c431 Add sublabel for Frame Throttle 2016-11-21 09:59:17 -06:00
lasers c283fee1f8 Add sublabel for Directory 2016-11-21 09:46:38 -06:00
Twinaphex 664200090e Merge pull request #4014 from lasers/patch-cudencuden
Update translation (Vietnamese)
2016-11-21 16:28:40 +01:00
lasers fa489f1f76 Add sublabel for Privacy 2016-11-21 09:25:58 -06:00
twinaphex e0330a5a6e Add Audio Sync sublabel 2016-11-21 16:18:58 +01:00
twinaphex cfec45690d Rename 'Input Device Autoconfig' to 'Input Autoconfig' 2016-11-21 16:15:35 +01:00
twinaphex 6af8b1a33d Update two more strings 2016-11-21 16:14:38 +01:00
twinaphex bbcf9f4cbd Remove 'Dir' from Directory Settings - descriptions need to be kept
small for phones
2016-11-21 16:13:40 +01:00
lasers d722cec9cd Add sublabel for User Interface 2016-11-21 09:09:29 -06:00
Twinaphex 28e2ecc46d Merge pull request #4034 from lasers/add-sublabel
Add sublabel for Network
2016-11-21 15:57:41 +01:00
lasers f92afb508b Add sublabel for Logging 2016-11-21 08:53:29 -06:00
lasers 953bf8cf5b Add sublabel for Network 2016-11-21 08:44:59 -06:00
Twinaphex 83efafceea Merge pull request #4032 from lasers/add-sublabel
Add sublabel for Playlists
2016-11-21 15:41:02 +01:00
twinaphex 079de87c61 Cleanups 2016-11-21 15:37:51 +01:00
lasers df7b229834 Add sublabel for Playlists 2016-11-21 08:34:33 -06:00
Jean-André Santoni 022eb39716 Merge pull request #4030 from lasers/add-sublabel
Add sublabel for Content Saving
2016-11-21 15:26:39 +01:00
lasers 0966f0ff15 Add sublabel for Content Saving 2016-11-21 08:14:22 -06:00
twinaphex 66595cd7c5 Cleanup 2016-11-21 15:04:09 +01:00
twinaphex 21e9bde569 Silence warning 2016-11-21 15:00:57 +01:00
twinaphex d556173d2f Cleanup 2016-11-21 14:14:17 +01:00
twinaphex cb36bc8d71 CLeanups 2016-11-21 14:09:21 +01:00
twinaphex f8efe1056e (menu_cbs_sublabel.c) Cut down on code duplication 2016-11-21 14:07:56 +01:00
twinaphex 62e7103646 Add sublabel 2016-11-21 13:51:09 +01:00
twinaphex b93c759d3c (gfx/video_driver.c) Simplifications 2016-11-21 13:31:04 +01:00
twinaphex 6c3a5fe634 Buildfix 2016-11-21 13:23:36 +01:00
twinaphex 05d6735720 Simplify video_driver.c code - turn some functions into macros 2016-11-21 13:17:28 +01:00
twinaphex f85632b8e8 Improve string 2016-11-21 13:08:41 +01:00
twinaphex d45faccc31 Remove this 2016-11-21 13:07:23 +01:00
twinaphex 95254aa79b Remove 'back as menu toggle' setting 2016-11-21 13:05:23 +01:00
twinaphex 36fb6e100e Add more sublabels 2016-11-21 10:28:17 +01:00
twinaphex 7243561585 Add sublabel for 'Max Users' 2016-11-21 10:03:19 +01:00
twinaphex d0d0c67d90 Add sublabels for Privacy Settings 2016-11-21 09:59:34 +01:00
twinaphex 00a4465743 Fix description of 'Allow All Users to Control the Menu' 2016-11-21 09:51:51 +01:00
twinaphex b840ac05b5 Fix sublabel 2016-11-21 09:49:33 +01:00
twinaphex 588542dad9 Add sublabel for DRC 2016-11-21 09:20:29 +01:00
twinaphex e696385480 Rename 'Audio Control Rate Delta' 2016-11-21 09:13:16 +01:00
twinaphex a50a47b89f (task_screenshot.c) Cleanup 2016-11-21 09:06:31 +01:00
twinaphex 2260fdd7f9 Move 'Allow Rotation' to 'Core Settings' 2016-11-21 09:01:56 +01:00
twinaphex ef11d95be9 Add sublabels 2016-11-21 07:40:54 +01:00
Twinaphex ae06e712eb Merge pull request #4025 from libretro/revert-4012-improvs-one-at-a-time
Revert "Improvs one at a time - Configurations"
2016-11-21 07:27:05 +01:00
Twinaphex eb7bf1387a Revert "Improvs one at a time - Configurations" 2016-11-21 07:26:58 +01:00
Twinaphex bc3d4ff015 Merge pull request #4012 from lasers/improvs-one-at-a-time
Improvs one at a time - Configurations
2016-11-21 07:08:16 +01:00
Twinaphex 90accecfa9 Merge pull request #4023 from fr500/master
override saving & config load improvements
2016-11-21 05:55:02 +01:00
Twinaphex 27635eed9a Merge pull request #4024 from FIX94/master
wiiu audio and graphics driver changes
2016-11-21 05:54:47 +01:00
FIX94 aa6121975c forgot to remove small code piece 2016-11-21 05:44:47 +01:00
FIX94 8a62d5ea96 (WiiU) massive changes in the audio driver, this should hopefully work better
(WiiU) making sure the menu is properly drawn before swapping buffers, fixes visible menu drawing lines
2016-11-21 03:18:48 +01:00
radius 0d5af3be36 clear incompatible shaders at config_load 2016-11-20 13:58:12 -05:00
radius 2835a2292c include SLANGP extension 2016-11-20 13:31:11 -05:00
radius 281aa1df72 this is redundant now, remap files should only be used for.. remaps 2016-11-20 12:50:54 -05:00
twinaphex 0794cd1bb7 Merge branch 'master' of https://github.com/libretro/RetroArch 2016-11-20 17:51:29 +01:00
twinaphex 5fc1b0c88e Remove obsolete font_driver_has_render_msg 2016-11-20 17:51:16 +01:00
Brad Parker 898353ec06 update JP translation 2016-11-20 11:49:54 -05:00
radius 7ec31f188d allow saving input related stuff to overrides 2016-11-20 11:47:50 -05:00
twinaphex 1b00796f64 Turn video_shader_driver_set_parameter to macro 2016-11-20 17:28:51 +01:00
twinaphex 856d6b37be Turn video_shader_driver_set_coords into macro 2016-11-20 16:48:54 +01:00
twinaphex ef610312e7 Turn video_shader_driver_set_mvp into macro 2016-11-20 16:45:06 +01:00
twinaphex dd0a8d1778 Turn video_shader_driver_set_parameters into macro 2016-11-20 16:40:08 +01:00
twinaphex 2deb306967 Turn video_shader_driver_use into macro 2016-11-20 16:31:45 +01:00
twinaphex c9206d3cb3 video_shader_driver.c - simplifications 2016-11-20 16:21:33 +01:00
twinaphex 69b57bad34 Fix comment 2016-11-20 15:23:43 +01:00
twinaphex 011f1012fb Cleanup 2016-11-20 15:21:02 +01:00
twinaphex 2dcf79bb4e Cleanups 2016-11-20 15:14:00 +01:00
twinaphex 1dcef5e429 Turn some video context driver functions into macros 2016-11-20 15:06:28 +01:00
twinaphex 06c86f0852 (video_context_driver.c) Simplifications 2016-11-20 14:52:50 +01:00
twinaphex 205e7cf272 Fix C89_BUILD 2016-11-20 14:48:00 +01:00
twinaphex d7ec915e1a Cleanups 2016-11-20 14:46:11 +01:00
twinaphex e9daa5e99c Cleanups 2016-11-20 14:42:20 +01:00
twinaphex f9786d6c6a Remove unnecessary config.def.h includes 2016-11-20 13:43:56 +01:00
twinaphex d41b57881a (Android) Set menu_swap_ok_cancel_buttons to 'on' 2016-11-20 13:40:31 +01:00
twinaphex 1df7b924bf Merge branch 'master' of https://github.com/libretro/RetroArch 2016-11-20 13:37:16 +01:00
twinaphex 0a42940332 (Menu keyboard) Implement pageup/pagedown 2016-11-20 13:36:57 +01:00
lasers 67f1dc3859 Clean the Configuration mess some more 2016-11-20 02:08:08 -06:00
aliaspider cf7d9f5074 Merge pull request #4022 from FIX94/master
(WiiU) increased volume (again)
2016-11-20 04:36:15 +01:00
FIX94 f098b54347 (WiiU) increased volume (again) 2016-11-20 04:35:00 +01:00
radius fd84613db5 get this working again 2016-11-19 21:19:56 -05:00
radius 26d0a6f2d0 simplify building 2016-11-19 20:18:44 -05:00
Twinaphex 594cff5a15 Merge pull request #4021 from fr500/swap
Swap menu and cancel buttons for menu input
2016-11-20 00:06:21 +01:00
radius 53ab0cdb55 add menu setting and fix for keyboard 2016-11-19 13:48:24 -05:00
radius a99a9c0810 add setting to swap menu_ok and menu_cancel 2016-11-19 13:09:07 -05:00
radius f343bc45fb remove these settings that we never properly implemented 2016-11-19 12:57:12 -05:00
aliaspider 9b69d69d30 (3DS) fix fallback path when CTRULIB wasn't defined. 2016-11-19 18:56:22 +01:00
twinaphex d1ad845c3a Add Turbo/Deadzone list strings 2016-11-19 15:52:12 +01:00
twinaphex 13b00fcfde Rename 'Input Axis Threshold' to 'Analog Stick Deadzone' 2016-11-19 15:46:39 +01:00
twinaphex eb0c27ee9b Move Menu Settings to User Interface 2016-11-19 12:07:46 +01:00
twinaphex fb70452f0c (Core List) Add 'Download Core...' option permanently 2016-11-19 10:01:47 +01:00
twinaphex 97eb8bb747 Silence warning 2016-11-19 04:06:04 +01:00
twinaphex f33d7f2712 Unused variable 2016-11-19 04:04:55 +01:00
twinaphex e27940e646 Fixes Android 2.4 compatibility 2016-11-19 03:54:21 +01:00
Jean-André Santoni d4296b016f Make shader names consistent, step 5 2016-11-19 00:30:56 +01:00
Jean-André Santoni 9c83658368 Make shader names consistent, step 4 2016-11-19 00:29:13 +01:00
Jean-André Santoni d1bf61076d Make shader names consistent, step 3 2016-11-19 00:27:54 +01:00
Jean-André Santoni 35d8ec12c5 Make shader names consistent, step 2 2016-11-19 00:23:07 +01:00
Jean-André Santoni 3b2b7580db Make shader names consistent, step 1 2016-11-19 00:20:52 +01:00
Jean-André Santoni 4e74375356 Replace the modern snow glsl vertex shader 2016-11-19 00:08:59 +01:00
twinaphex 66795c35cc Fix for GLES2 target 2016-11-18 23:29:48 +01:00
Jean-André Santoni 5439751bc2 Rename Lakka Services 2016-11-18 21:32:46 +01:00
Jean-André Santoni 5be99842b5 Merge pull request #3996 from markwkidd/crossplatform-thumbnail-filenames
improve cross-platform support for thumbnail filenames
2016-11-18 21:30:23 +01:00
lasers 6265d1e90a Clean the Configuration mess 2016-11-18 13:45:10 -06:00
Alcaro 53c7bfc501 This one uses one float per vertex, whether snow is enabled or not 2016-11-18 17:10:52 +01:00
twinaphex 2be4ca1755 Simplify vertex snow shaders 2016-11-18 09:54:19 +01:00
twinaphex 1e10abd7f2 Hide two never used settings in Input Settings 2016-11-18 07:53:21 +01:00
twinaphex c882ab8d51 Rename 'Retro Achievements' 2016-11-18 07:06:14 +01:00
Brad Parker 750165a251 prevent use-after-free error 2016-11-17 21:17:24 -05:00
twinaphex df7ffe1822 Don't use legacy vertex shader for snow for OpenGLES 2016-11-17 21:25:02 +01:00
twinaphex 547cb83652 Add third menu shader program 2016-11-17 21:14:19 +01:00
twinaphex 20c1ef83d6 First stab at getting snow shader to work 2016-11-17 21:08:50 +01:00
twinaphex a2c69ec254 Added snow shader hooks - doesn't work yet though - shader driver
system is very limited in terms of how we can set custom menu
shaders - will require a rethink
2016-11-17 20:54:29 +01:00
twinaphex 23aa03fcdd Start adding snow shaders 2016-11-17 20:21:20 +01:00
aliaspider 7d70fb3f4a (WIN32) don't reopen the stdout/stderr streams or close the console when
attaching an existing one.
2016-11-17 20:16:50 +01:00
lasers 7f538485b4 Update translation (Vietnamese) 2016-11-17 08:46:41 -06:00
lasers 204454c967 Add sublabel for Configurations 2016-11-17 05:45:20 -06:00
lasers 5ff6538373 Change labels under Configurations 2016-11-17 05:22:48 -06:00
lasers 4121adafd5 Merge settings for Configurations 2016-11-17 04:36:09 -06:00
Twinaphex a1858d8f6b Merge pull request #4011 from lasers/improvs-one-at-a-time
Improvs one at a time - Driver
2016-11-17 10:37:29 +01:00
lasers 14e29d51bf Add sublabel for Driver 2016-11-17 03:11:10 -06:00
Twinaphex d65403d70e Merge pull request #4010 from lasers/improvs-one-at-a-time
Improvs one at a time - Retro Achievements
2016-11-17 09:01:15 +01:00
lasers 8960893caf Add sublabel for Retro Achievements 2016-11-17 01:35:37 -06:00
Twinaphex a142f85d3c Merge pull request #4005 from lasers/improvs-one-at-a-time
Improvs one at a time - Recording
2016-11-17 07:36:08 +01:00
radius 9a163164f3 Merge branch 'master' into qt 2016-11-17 00:12:23 -05:00
lasers 2a12535a84 Fix labels under Recording (more) 2016-11-16 14:44:22 -06:00
lasers 4378b35d44 Fix labels under Recording 2016-11-16 14:35:46 -06:00
aliaspider 3cb5ab32f5 (WiiU) add missing file. 2016-11-16 20:12:45 +01:00
Twinaphex 7ac906ea80 Merge pull request #4006 from aliaspider/master
(WiiU) 32bpp support + some fixes.
2016-11-16 19:09:16 +01:00
aliaspider ec8fd655b0 (WiiU) add support for 32bpp mode. 2016-11-16 19:03:01 +01:00
aliaspider 3cc1ddbdd1 (WiiU) simplify memory.c 2016-11-16 18:25:23 +01:00
aliaspider 418787e6ca (WiiU) can't use start files with rpx buidls yet (this also means, no C+
+ static constructors support).
2016-11-16 17:44:54 +01:00
aliaspider 4089f9ec63 (WiiU) use the already defined __init and __fini symbols. 2016-11-16 17:43:04 +01:00
Alcaro a973bd8dfa Clarify this function 2016-11-16 14:36:48 +01:00
lasers c05aba32a9 Add sublabel for Recording 2016-11-16 03:15:43 -06:00
lasers 92fc74b0ff Change labels under Recording 2016-11-16 03:08:45 -06:00
Twinaphex 25d3c71e1a Merge pull request #4004 from lasers/improvs-one-at-a-time
Improvs one at a time - Information
2016-11-16 08:48:43 +01:00
lasers ae78e47418 Add sublabel for Information (list) 2016-11-16 01:35:57 -06:00
twinaphex 758c1565fc Merge Updater Settings into Network Settings 2016-11-16 07:43:07 +01:00
twinaphex 72eb212dec Remove this option - should be no longer relevant 2016-11-16 07:35:58 +01:00
twinaphex 6485fe1367 Add sublabel for video shared context 2016-11-16 07:35:38 +01:00
twinaphex a912d7176f lakka_get_project() function - cleanup 2016-11-16 07:17:04 +01:00
twinaphex d745891b14 Prevent unused function warning 2016-11-16 07:11:00 +01:00
twinaphex 6a9ae533cf Core Information - hide 2016-11-16 07:03:59 +01:00
Twinaphex bde2de740d Merge pull request #4002 from lasers/improvs-one-at-a-time
Improvs one at a time - Core
2016-11-16 06:49:33 +01:00
lasers 655c9c3cbd Sort labels not too much 2016-11-15 22:43:42 -06:00
lasers 0651f84773 Add sublabel for Core 2016-11-15 22:29:18 -06:00
lasers 7581806be1 Change labels under Core 2016-11-15 22:05:11 -06:00
Twinaphex 50fda4d77b Merge pull request #4000 from lasers/improvs-one-at-a-time
Improvs one at a time - Achievements
2016-11-16 01:47:01 +01:00
lasers 14d6fbdbd5 Change labels under Achievements 2016-11-15 17:50:16 -06:00
lasers 857c8f22b2 Add sublabel for Achievements Hardcore Mode 2016-11-15 17:26:29 -06:00
Twinaphex 1862032460 Merge pull request #3999 from aliaspider/master
(WiiU) add support for C++ static constructors/destructors.
2016-11-15 23:52:14 +01:00
markwkidd e0deb20e30 Update xmb.c 2016-11-15 16:54:35 -05:00
markwkidd 0d8c2aa119 improve description of thumb filename scrub, add parenthesis 2016-11-15 16:48:29 -05:00
markwkidd 1ad1598be2 Update xmb.c 2016-11-15 15:58:18 -05:00
markwkidd 9d0e5c012e change thumbnail filename scrub to use strpbrk() 2016-11-15 15:57:51 -05:00
markwkidd 08514679d5 Update xmb.c 2016-11-15 15:47:18 -05:00
markwkidd 167a71635d Update xmb.c 2016-11-15 14:04:59 -05:00
markwkidd 096b316183 additional fixes per the PR discussion 2016-11-15 14:01:28 -05:00
aliaspider 286a1887a9 (WiiU) change linker script, add calls to _init() and _fini().
fixes cores relying on C++ static constructors/destructors. (only for
elf builds)
2016-11-15 19:37:30 +01:00
markwkidd d0f23fdddb Update xmb.c 2016-11-15 09:05:33 -05:00
markwkidd 06221da8a1 fix escape characters, remove dupe line, add comment 2016-11-15 09:03:55 -05:00
Jean-André Santoni 10d925e189 Make LAKKA_PROJECT unneeded 2016-11-15 10:18:28 +01:00
radius ff3841ed7c get this building again 2016-11-14 21:03:46 -05:00
Francisco José García García 1470f8da5b Merge pull request #3998 from frangarcj/master
(MACH) Fix compilation
2016-11-14 23:09:32 +00:00
Francisco José García García d99d8d1a56 (MACH) Fix compilation 2016-11-15 00:05:37 +01:00
Twinaphex 454702274b Merge pull request #3997 from leiradel/master
Added verbose output for the "retro_get_memory" interface.
2016-11-14 21:31:29 +01:00
Andre Leiradella 979b388152 Added verbose output for the "retro_get_memory" interface. 2016-11-14 20:06:32 +00:00
Twinaphex b7dd66137b Merge pull request #3995 from frangarcj/master
(VITA) Add support for -mthumb
2016-11-14 20:57:47 +01:00
markwkidd a9ead799e6 improve cross-platform support for thumbnail filenames
The intention of this PR is to allow RetroArch playlists to display the 'prohibited' characters & \ / ? : < > : * | on the screen, while searching for matching thumbnail files that replace these problematic characters with an underscore. This step of the process is bolded in the flowchart below as #2 under 'Playlist display.'

I don't normally work in C -- this change is a hack job. It did look like string_replace_substring could handle being daisy-chained so I thought I'd see if this could spark a productive conversation.

Playlist generation:
    1) Use hash values to match ROM files to known-good databases such as No-Intro. (exists)
    2) Create playlist using 'display names' from the known-good databases (exists)

Playlist display:
    1) Read display name from the playlist file (exists)
    **2) Transform characters that are not cross-platform friendly into underscores to determine thumb filename (this PR)**
    3) Look for a thumbnail file that matches this filename (exists)
    4) Display the thumbnail image (exists)
2016-11-14 13:24:05 -05:00
Francisco José García García c68325a713 (VITA) Add support for -mthumb 2016-11-14 19:13:07 +01:00
Alcaro 35b2980de9 Those should be ignored 2016-11-14 17:26:11 +01:00
Alcaro a3e9addd80 Clean this one up a little 2016-11-14 17:23:38 +01:00
Twinaphex ff8da4682a Merge pull request #3994 from leiradel/master
C89 build fix
2016-11-14 16:15:44 +01:00
aliaspider e23ead0b17 (WiiU) video driver: check data pointer validity before using it. member
functions seem to be called before driver init.
2016-11-14 15:09:53 +01:00
Andre Leiradella d15255a837 C89 build fix 2016-11-14 08:02:57 +00:00
twinaphex 574a01d390 One C89_BUILD fix 2016-11-14 05:24:10 +01:00
Twinaphex ed77f98f5e Merge pull request #3993 from dankcushions/aspectratio
Do not allow custom resolutions to be below the game resolution when …
2016-11-14 03:57:28 +01:00
Twinaphex 8ec45750d4 Merge pull request #3992 from leiradel/master
Fixed math to translate a physical address to the memory descriptor index + offset
2016-11-14 03:57:13 +01:00
Andre Leiradella 170c98b593 Changed how bit values are calculated; seems to fix achievement 24594, Hungriest Runner (Win all three races in the Gourmet Race Grand Prix.), for Kirby Super Star. 2016-11-13 23:20:11 +00:00
dankcushions facb2703f6 Do not allow custom resolutions to be below the game resolution when integer scale is on. 2016-11-13 22:38:48 +00:00
Andre Leiradella 2b345b8d48 Fixed math to translate a physical address to the memory descriptor index + offset 2016-11-13 20:58:09 +00:00
Twinaphex d978a0aa90 Merge pull request #3991 from aliaspider/master
(WiiU) implement viewport/filtering options.
2016-11-13 19:23:32 +01:00
twinaphex c46ed2f754 Use compat_strcasestr 2016-11-13 19:09:24 +01:00
aliaspider 975c442b1a (WiiU) implement viewport/filtering options. 2016-11-13 18:43:22 +01:00
Twinaphex b97c10b38c Merge pull request #3990 from aliaspider/master
(WiiU) audio + savestates fixes.
2016-11-13 17:46:08 +01:00
aliaspider f51f17ce22 (WiiU) flush all tasks each loop. fixes savestates. 2016-11-13 16:46:24 +01:00
aliaspider 7dab3ea378 (WiiU) audio quality/latency tweaks. 2016-11-13 16:42:43 +01:00
Twinaphex 2e358ba8e8 Merge pull request #3981 from lasers/fix-black-boxes-conspiracy
Update black boxes conspiracy
2016-11-13 02:22:27 +01:00
Twinaphex d4eba0ab96 Merge pull request #3985 from aliaspider/master
(WiiU) update.
2016-11-13 02:22:18 +01:00
Twinaphex 4e901457a2 Merge pull request #3987 from heuripedes/shader-things
(shader_glsl.c) Don't allocate/clear more than needed in gl_glsl_set_coords()
2016-11-13 02:20:28 +01:00
Higor Eurípedes 8977968b6d (shader_glsl.c) Don't allocate/clear more than needed in gl_glsl_set_coords() 2016-11-12 08:23:06 -03:00
aliaspider fc82e91465 (WiiU) increase audio volume. 2016-11-12 08:36:00 +01:00
aliaspider dddff81d3a (WiiU) fix clicking artifatcs: endOffset was actually the last played
sample and not the looping/end offset.
2016-11-12 07:53:50 +01:00
twinaphex 8551cc4f9b Remove if 0 for memcpy 2016-11-11 22:54:13 +01:00
Jean-André Santoni 72161acbd3 Smoother ribbon 2016-11-11 20:04:55 +01:00
Jean-André Santoni 02be74b9c4 Revert "New ribbon noise. Will have to be ported to GLSL modern, Vulkan and Cg"
This reverts commit 1fa5b66a23.
2016-11-11 19:59:27 +01:00
twinaphex 849cc591bc Revert "Use GL_STREAM_DRAW"
This reverts commit df4107b541.
2016-11-11 18:34:06 +01:00
neville df4107b541 Use GL_STREAM_DRAW 2016-11-11 00:52:43 +01:00
twinaphex 21b309f52d Update diff.diff 2016-11-11 00:18:35 +01:00
neville 12804431db (GLSL) Avoid memsets - good for about a +1fps speedup with simplified
ribbon on PowerPC Mac
2016-11-10 18:35:47 +01:00
twinaphex 25c46aa7b2 Revert "Update diff.diff"
This reverts commit 47feb65eda.
2016-11-10 18:26:29 +01:00
twinaphex 47feb65eda Update diff.diff 2016-11-10 18:25:22 +01:00
twinaphex 06b5f48782 Add diff.diff 2016-11-10 18:06:57 +01:00
aliaspider 9ecd8b18e0 (WiiU) set swap interval to 1 when vsync is active. 2016-11-10 15:11:33 +01:00
aliaspider 158fd3404e (WiiU) enable blending. 2016-11-10 14:24:44 +01:00
aliaspider 6f7f6a363b (WiiU) only wait for vsync when not missed. 2016-11-10 14:24:20 +01:00
aliaspider e268630b84 (WiiU) skip bad vpad reads. 2016-11-10 13:03:40 +01:00
lasers e99b25a4b3 Update black boxes conspiracy 2016-11-10 01:47:43 -06:00
Alcaro 7d7e83ce73 Clarify error 2016-11-10 08:34:08 +01:00
aliaspider 225edffce1 (WiiU) fix wiiload script. 2016-11-10 08:32:45 +01:00
twinaphex 3f29eed928 According to enygmata's findings we can comment this out 2016-11-10 02:09:25 +01:00
Twinaphex 4b03bb926f Merge pull request #3972 from lasers/fix-black-boxes-conspiracy
Fix black boxes conspiracy
2016-11-09 21:07:57 +01:00
aliaspider deb9ea4453 (WiiU) netlog scripts. 2016-11-09 14:28:39 +01:00
aliaspider dbd8a87ebb (WiiU) can compile as rpx. (doesn't exit properly) 2016-11-09 14:26:38 +01:00
Brad Parker f58b11b523 update JP translation 2016-11-09 08:02:29 -05:00
Jean-André Santoni 1fa5b66a23 New ribbon noise. Will have to be ported to GLSL modern, Vulkan and Cg 2016-11-09 11:59:43 +01:00
lasers fc9b6905fe Fix black boxes conspiracy 2016-11-08 17:30:26 -06:00
twinaphex 18da1fc088 More logging 2016-11-09 00:20:44 +01:00
twinaphex 5e9a6772cf (fft.cpp) Add debug logging 2016-11-08 23:52:17 +01:00
twinaphex 5865a8c299 (fft.cpp) Add logging 2016-11-08 20:28:59 +01:00
Jean-André Santoni 1d8b6ceafd Use BGRA8888 on VideoCore 2016-11-08 20:22:38 +01:00
twinaphex 02e4dbfa0f Fix matrix_4x4_projection 2016-11-08 20:09:43 +01:00
twinaphex 136d9f43d3 C89 buildfix 2016-11-08 19:45:40 +01:00
twinaphex 1c31e37749 C89_BUILD fixes 2016-11-08 19:42:58 +01:00
twinaphex f6b273e1be (Desktop GL) GL_CAPS_BGRA8888 - return true by default 2016-11-08 19:11:54 +01:00
twinaphex 83d91ae85a (libretro-common) Update copyrights 2016-11-08 17:55:35 +01:00
Alcaro 150fe15eaf Not needed 2016-11-08 17:42:36 +01:00
twinaphex a7585f9988 Move video_frame.h to libretro-common 2016-11-08 15:35:24 +01:00
twinaphex a0e1413ecc Remove video_frame.c 2016-11-08 15:30:28 +01:00
twinaphex 279a90a01b Remove dependencies from gfx/video_frame.c 2016-11-08 15:26:15 +01:00
twinaphex 46f3e1878e Add more translatable strings 2016-11-08 15:17:02 +01:00
Brad Parker 05d409b6ca update JP translation 2016-11-08 09:01:15 -05:00
Brad Parker e378a4636b make save/load state messages fully translatable, rename jp.c to ja.c to match proper language code 2016-11-08 08:37:51 -05:00
aliaspider 79192c0ead (WiiU) video: set swap interval to 0 when nonblocking.
add an fps log.
2016-11-08 10:51:07 +01:00
aliaspider 8b07cf5fd6 (WIIU) calling FSFlushFile each write doesn't seem to be necessary
anymore.
2016-11-08 09:51:05 +01:00
aliaspider 2abc9c7ef9 (WIIU) Home button can now trigger the main menu too. 2016-11-08 09:31:46 +01:00
aliaspider b8330e2a73 (WIIU) configure logger ip in makefile. 2016-11-08 09:25:20 +01:00
twinaphex 65cd75e346 Translate string 2016-11-08 01:21:21 +01:00
twinaphex d4b4cd92bb Translate string 2016-11-08 01:17:10 +01:00
Twinaphex 30400ef328 Merge pull request #3962 from diegoviola/master
Fix Netplay fullscreen issue
2016-11-07 23:32:29 +01:00
Twinaphex 30fb97815a Merge pull request #3964 from dankcushions/aspectratio
Display scale factor alongside Custom Viewport Height and Width
2016-11-07 23:32:06 +01:00
Brad Parker c9727f735b update JP translation, add 2 new translatable strings 2016-11-07 17:28:26 -05:00
dankcushions 5e3d5d182a Display scale factor alongside Custom Viewport Height and Width. Eg "640 (2x)". Anything that is not a factor will display as before. Eg "641" 2016-11-07 20:11:18 +00:00
twinaphex a41dd0e4f1 Add stub _times_r 2016-11-07 21:05:07 +01:00
Twinaphex 53b0182d53 Merge pull request #3963 from aliaspider/master
(WIIU) add a packaging script.
2016-11-07 20:18:31 +01:00
aliaspider 83d79fadab (WiiU) dist-script: add usage instructions. 2016-11-07 19:39:26 +01:00
Diego Viola cf0c60bb98 Fix Netplay fullscreen issue
Fixes #3936
2016-11-07 16:01:18 -02:00
Jean-André Santoni 2b6d453dfa French typo 2016-11-07 18:07:07 +01:00
aliaspider 573c7f6561 (WIIU) add a packaging script. 2016-11-07 17:33:34 +01:00
Jean-André Santoni 9677b5a129 Fix iOS touch 2016-11-07 16:18:30 +01:00
aliaspider d5a4998b47 Merge pull request #3960 from FIX94/master
more wiiu fixes
2016-11-07 02:47:18 +01:00
FIX94 4a285fd4e1 (WiiU) fixed random pixels being displayed on game start/close and exit
(WiiU) fixed touchscreen sending invalid data which broke the menu toggle
2016-11-07 02:42:12 +01:00
aliaspider 81ae6039c1 Merge pull request #3959 from FIX94/master
(WiiU) disabled log init and properly init the audio buffer with 0 on audio init
2016-11-07 00:58:51 +01:00
FIX94 88e674cf3d (WiiU) disabled log init and properly init the audio buffer with 0 on audio init 2016-11-07 00:53:52 +01:00
Alcaro fb2dddd73e use linebreaks instead 2016-11-07 00:36:58 +01:00
Alcaro a72c5dbdf2 use frontslashes instead 2016-11-07 00:32:42 +01:00
radius 896aaf530b use backslashes instead 2016-11-06 17:53:22 -05:00
Twinaphex 60f48324e6 Merge pull request #3957 from aliaspider/master
(WIIU) set AX as the default audio driver.
2016-11-06 23:52:27 +01:00
aliaspider 4ce8f84bac (WIIU) set AX as the default audio driver. 2016-11-06 23:42:05 +01:00
aliaspider 8bb13e12a5 Merge pull request #3956 from FIX94/master
-(WiiU) added in option to disable vsync
2016-11-06 23:37:27 +01:00
FIX94 11db939b9b -(WiiU) added in option to disable vsync 2016-11-06 23:29:54 +01:00
Twinaphex 53da2f8142 Merge pull request #3955 from aliaspider/master
(WiiU) fix audio.
2016-11-06 22:22:52 +01:00
aliaspider 0de5019fab (WiiU) clear textures on init. 2016-11-06 22:13:07 +01:00
aliaspider eef74793f8 (WiiU) fix audio mix settings. 2016-11-06 22:12:26 +01:00
radius 2ff53a1b4d fix retroarch locking up when brought back to focus with pause in the background on 2016-11-06 14:31:02 -05:00
Twinaphex 38b3e4042d Merge pull request #3953 from aliaspider/master
(WiiU) working sound.
2016-11-06 19:18:11 +01:00
aliaspider 86763e1e26 (WiiU) implement a sound driver. 2016-11-06 19:03:41 +01:00
aliaspider 5a17f0ba3c add missing copyright notice. 2016-11-06 19:03:08 +01:00
aliaspider e5a07a406a (WIIU) cleanup debug code from the video driver. 2016-11-06 18:59:50 +01:00
aliaspider a0383e6b6a (WIIU) keep the dynlib handles. 2016-11-06 18:59:39 +01:00
twinaphex aaefa8d59e (wayland_ctx.c) Prevent implicit memsets 2016-11-06 18:47:50 +01:00
twinaphex 695ff2a299 (sdl_gl_ctx.c) Prevent some implicit memsets 2016-11-06 18:44:55 +01:00
twinaphex 027a194346 (xegl_ctx.c) Style nit 2016-11-06 18:41:59 +01:00
twinaphex 8e941ee77a (android_ctx.c) Prevent implicit memsets 2016-11-06 18:39:38 +01:00
twinaphex 219880a72b Prevent implicit memsets for WGL context update_window_title
function
2016-11-06 18:36:58 +01:00
twinaphex 64154f6060 win32_common.cpp - turn function static 2016-11-06 18:35:00 +01:00
twinaphex 14f56e15c9 Fix Nuklear 2016-11-06 17:36:04 +01:00
twinaphex 9ce285a077 (Nuklear) Another buildfix 2016-11-06 17:29:12 +01:00
twinaphex f1129d982f (Nuklear) Silence some build errors 2016-11-06 17:27:19 +01:00
twinaphex 63798b0cf6 Change 'Notifications' to 'Notification' 2016-11-06 17:02:29 +01:00
twinaphex bf2c8a09b5 Make Onscreen Overlay settings screen a submenu of Onscreen Display 2016-11-06 17:01:38 +01:00
Alcaro 85cbb53a44 Merge pull request #3952 from Themaister/master
Vulkan: Workaround warning from validation layers.
2016-11-06 16:55:44 +01:00
Hans-Kristian Arntzen 0d718a9365 Vulkan: Workaround warning from validation layers. 2016-11-06 16:07:44 +01:00
twinaphex f5e237e4d9 Rename OSD Message to 'Onscreen Notifications' 2016-11-06 15:50:25 +01:00
twinaphex cfa01f623d input_remapping_state - remove function and inline inside input_driver.c
input_state function
2016-11-06 15:42:26 +01:00
twinaphex 7e5d2321c5 Create video_driver_reinit 2016-11-06 14:18:29 +01:00
twinaphex feacc56fff Prevent crash by checking if msg is NULL before doing strlcpy call 2016-11-06 14:10:25 +01:00
twinaphex 9a87dabca1 One less leaf function inside video_driver_frame 2016-11-06 14:06:47 +01:00
twinaphex fbcefd02b9 (video_driver.c) Copy message if runloop_ctl returns true 2016-11-06 14:05:00 +01:00
twinaphex 49893c10f5 Prevent early returns for video_frame_pixel_scale 2016-11-06 13:57:27 +01:00
twinaphex 483cd0077c Move code 2016-11-06 13:42:34 +01:00
twinaphex 777f2df35c Remove video_driver_unset_active 2016-11-06 13:38:31 +01:00
twinaphex 8acb4cac78 video_driver_frame_filter - make early returns unnecessary 2016-11-06 13:34:48 +01:00
twinaphex bc9dabf916 Add pkg/wiiu files 2016-11-06 13:26:33 +01:00
twinaphex 89984e6579 Implement info callback for cheevos 2016-11-06 13:05:28 +01:00
twinaphex a57cb22da8 Disable OK button for cheevos 2016-11-06 13:02:19 +01:00
twinaphex 18537d9cb4 Reorder some msg_enums for consistency 2016-11-06 12:44:02 +01:00
twinaphex d9e30c2722 Rename MENU_ENUM_LABEL_VALUE_ENABLE to MENU_ENUM_LABEL_VALUE_CHEEVOS_ENABLE 2016-11-06 12:41:26 +01:00
Alcaro 506c14dcc4 No need for inconsistency, let's just not have this at all. 2016-11-06 12:09:08 +01:00
Alcaro d64aa98bee Clarify this one, all known fronts already do this 2016-11-06 12:02:37 +01:00
Alcaro dd9a810451 This warning doesn't need to be here 2016-11-06 12:02:37 +01:00
twinaphex 56337666de Implement sublabels for cheevos 2016-11-06 12:00:47 +01:00
aliaspider 31edafde03 (WIIU) add timers, fix retro_sleep. 2016-11-06 11:55:56 +01:00
twinaphex 0a046eaaf7 Turn menu_dialog_current_id into static variable again 2016-11-06 11:55:07 +01:00
twinaphex 05f1657048 (win32_common.cpp) Cleanup 2016-11-06 11:52:03 +01:00
twinaphex 89ed02cd01 (stb_unicode.c) Style nits 2016-11-06 11:44:21 +01:00
twinaphex f7378be00f Fix C89_BUILD warnings 2016-11-06 11:42:35 +01:00
twinaphex 54557d3a9b (cheevos.c) Style nits 2016-11-06 11:39:46 +01:00
twinaphex 9d1159e95e Rename two strings 2016-11-06 11:37:55 +01:00
twinaphex 82d3629dac Try to push them always 2016-11-06 01:08:56 +01:00
twinaphex 0c41a8873d Move 'Start Videoprocessor Core' / 'Start Remote RetroPad Core' to
'Load Core'
2016-11-06 00:04:37 +01:00
twinaphex cca2aa7ee9 (MSVC) Add HAVE_UPDATE_ASSETS 2016-11-05 23:32:29 +01:00
radius 4265abb2d0 enable secondary list for unofficial 2016-11-05 17:03:35 -05:00
radius 486254f06d separate hardcore achievements 2016-11-05 16:55:57 -05:00
twinaphex f190909aae Fix cheevos messages 2016-11-05 21:55:32 +01:00
twinaphex ad5d78b63e Define this too 2016-11-05 20:50:13 +01:00
twinaphex 37ff8cb66f Prevent stb_truetype from being included twice for Griffin 2016-11-05 20:45:23 +01:00
twinaphex a092f4d383 Add this to Griffin 2016-11-05 20:41:54 +01:00
Twinaphex 6b2d6c0d21 Merge pull request #3943 from leiradel/master
Fixed achievements in hardcore mode.
2016-11-05 19:58:58 +01:00
twinaphex 0dbf7b21b6 Enable STB unicode font for Android and Win32 too 2016-11-05 19:33:07 +01:00
twinaphex 33e099d2a3 (WiiU) Buildfix 2016-11-05 19:05:13 +01:00
twinaphex 89230a0ac9 Add stb_unicode.c to Griffin 2016-11-05 18:59:56 +01:00
Twinaphex 675266705e Merge pull request #3942 from frangarcj/master
(VITA) Add uft8 support
2016-11-05 16:29:09 +01:00
Francisco José García García 14c9eb47c4 (VITA) Add uft8 support 2016-11-05 16:21:21 +01:00
Twinaphex 7e40568fbe Merge pull request #3941 from aliaspider/master
(WIIU) add missing file.
2016-11-05 15:52:23 +01:00
aliaspider 2aa555fb95 (WIIU) forgot to add this file too. 2016-11-05 15:09:37 +01:00
Twinaphex 92b3a24943 Merge pull request #3940 from aliaspider/master
(WIIU) GX2
2016-11-05 15:07:31 +01:00
aliaspider d3b3c18a6f (WIIU) GX2 rendering. 2016-11-05 15:05:46 +01:00
aliaspider 0433cae3c9 (WIIU) misc. 2016-11-05 15:01:43 +01:00
twinaphex dad26e0956 Header cleanup 2016-11-05 14:10:30 +01:00
twinaphex 4bade2aa2e C89_BUILD buildfix 2016-11-05 14:05:05 +01:00
twinaphex 3d5a744f8e (menu_event.c) Cleanups 2016-11-05 14:04:05 +01:00
twinaphex 82af0a853c Add another log message 2016-11-05 14:02:42 +01:00
Twinaphex 4473408711 Merge pull request #3939 from duskgao/patch-1
more chs translation 3
2016-11-05 13:52:17 +01:00
duskgao 86c3cb5bc0 more chs translation 3
rt
2016-11-05 20:45:46 +08:00
twinaphex e5a31920ad Cleanups 2016-11-05 13:45:06 +01:00
twinaphex 088a4dcbc0 Move labels to msg_hash_lbl.h 2016-11-05 13:43:13 +01:00
twinaphex d39ccc238e Move all strings to msg_hash_us.h 2016-11-05 13:40:10 +01:00
twinaphex 687f262511 Update msg_hash_us.h 2016-11-05 13:35:53 +01:00
Andre Leiradella e1d528bea0 Fixed achievements in hardcore mode. 2016-11-05 11:07:28 +00:00
twinaphex d6a436ed19 (audio_driver.c) Get rid of struct 2016-11-05 03:12:31 +01:00
twinaphex 82a9b92cc7 Update msg_hash_us.h 2016-11-05 02:58:07 +01:00
twinaphex 1e67cc97a0 (msg_hash_us.h) Updates 2016-11-05 02:42:22 +01:00
twinaphex 30d9dff10e Get rid of unused enum 2016-11-05 01:47:00 +01:00
twinaphex 50f6485b06 (msg_hash_us.h) Update 2016-11-05 01:45:22 +01:00
twinaphex 0f2bd3e653 remove MENU_ENUM_LABEL_VALUE_BACK 2016-11-05 01:41:44 +01:00
twinaphex e6d71444dc Update msg_hash_us.h 2016-11-05 01:32:58 +01:00
twinaphex 8e5ebd7083 (msg hashes) Update 2016-11-04 23:43:14 +01:00
twinaphex dfc188a7ed Put cheevos_reset_game around HAVE_CHEEVOS ifdef 2016-11-04 22:24:34 +01:00
twinaphex 1a04875a6c (scaler_int) Cleanups 2016-11-04 22:12:32 +01:00
twinaphex 372c51f5b9 Remove #if 0 2016-11-04 21:59:47 +01:00
Twinaphex 1eddb67770 Merge pull request #3935 from leiradel/master
Fix achievements being awarded upon game reset.
2016-11-04 21:29:44 +01:00
twinaphex 9a9f76d71c (FFT) Add potential non-GLM code 2016-11-04 21:25:12 +01:00
twinaphex 848db5b1c5 Complete matrix_4x4_lookat 2016-11-04 21:07:30 +01:00
Andre Leiradella 14cebec15d Fix achievements being awarded upon game reset. 2016-11-04 19:56:31 +00:00
twinaphex c8e8070c02 Update matrix_4x4_translate 2016-11-04 20:36:47 +01:00
twinaphex 5398fa5f39 (libretro-common) Nit 2016-11-04 20:34:31 +01:00
twinaphex f4e27befb4 matrix_4x4_lookat - remove memset 2016-11-04 20:32:26 +01:00
twinaphex 7fc1d76c4c (MSVC) Update paths 2016-11-04 18:55:16 +01:00
twinaphex 9fa0fc255c (MSVC) Update paths 2016-11-04 18:52:01 +01:00
twinaphex 3d9f43bcdc (MSVC) Update paths 2016-11-04 18:46:37 +01:00
Twinaphex 103a22b3db (CoreText) Preliminary font work/updating 2016-11-04 16:45:09 +01:00
twinaphex 01961cbf5e Turn matrix_4x4_identity into inline function 2016-11-04 15:58:32 +01:00
twinaphex cd2599456a Matrix code 4x4 - prevent memsets 2016-11-04 15:50:28 +01:00
twinaphex 1a1b221ddd Create Configurations list 2016-11-04 15:03:09 +01:00
twinaphex c35d723b40 Fix C89_BUILD 2016-11-04 14:29:02 +01:00
twinaphex a70b0942d5 Use only one string for english 2016-11-04 14:19:11 +01:00
twinaphex ea46c4a532 Turn video_driver_lock functions static 2016-11-04 14:16:55 +01:00
twinaphex e18e4b629c Move more messages to msg_hash_us.h 2016-11-04 13:34:31 +01:00
twinaphex aa31f5e073 Start refactoring internationalization code 2016-11-04 13:22:11 +01:00
twinaphex 45a225b1b1 (msg_hash_us) Move enums 2016-11-04 13:13:45 +01:00
Twinaphex 57b7d0a870 Merge pull request #3933 from duskgao/patch-2
more chs translation 2
2016-11-04 13:07:51 +01:00
duskgao d8ef9861cf more chs translation 2
RT
2016-11-04 19:55:32 +08:00
Twinaphex 8ecf3ccd4e Merge pull request #3930 from diegoviola/master
Fix typo
2016-11-04 09:02:39 +01:00
Diego Viola 7ee528e1f2 Fix typo 2016-11-03 21:10:12 -02:00
twinaphex 5db3f4528d (input_keyboard.c) Cleanups 2016-11-03 23:10:42 +01:00
twinaphex 5214c29295 gfx/video_driver.c - get rid of struct 2016-11-03 23:03:50 +01:00
twinaphex a3aeb9c927 (audio/test) Remove 2016-11-03 22:54:11 +01:00
Twinaphex f4ab4c2975 Merge pull request #3929 from leiradel/master
Fix some achievements for NES.
2016-11-03 21:19:57 +01:00
Andre Leiradella e92aa45815 Fix some achievements for NES. 2016-11-03 20:16:00 +00:00
Jean-André Santoni 80d23769a9 Sublabels for GLUI 2016-11-03 20:25:00 +01:00
twinaphex 32a583e4d2 Show 'User Device Index' again 2016-11-03 20:06:39 +01:00
twinaphex 57981b2714 Hide 'Add Content' list in MaterialUI, and move it to 'Playlists' tab 2016-11-03 19:05:04 +01:00
Twinaphex 4efedd2478 Merge pull request #3923 from lasers/sort-msg-hash
Sort all msg_hash_{LANG}.c
2016-11-03 18:24:50 +01:00
Twinaphex 2e7eb72884 Get rid of unused variable 2016-11-03 16:36:42 +01:00
twinaphex 85dd30ca3e (Android) Issues with ABI target version 9 - just do
ugly preprocessor hacks instead
2016-11-03 16:35:04 +01:00
Jean-André Santoni 4722bb45c8 Move the font_param stuff to menu_display.c 2016-11-03 15:56:40 +01:00
twinaphex 19ee1a4751 Move macros of matrix functions to C files 2016-11-03 14:52:22 +01:00
twinaphex cb23aec500 Try to prevent GLES 2 compile-time issues where GLuint64/GLint64
is already provided by a system header
2016-11-03 14:25:10 +01:00
twinaphex cf3371503b Get rid of some CXX11 flags 2016-11-03 14:18:53 +01:00
Twinaphex 5fa42a77af Merge pull request #3926 from heuripedes/master
(x_ctx.c) Add workaround for i915 bug
2016-11-03 13:32:26 +01:00
twinaphex d4809d310a Fix for previous bugged Xorg GL drivers 2016-11-03 13:25:44 +01:00
twinaphex 99f8f49e8a (GLM) Cut down on GLM_FUNC_QUALIFIER 2016-11-03 13:20:25 +01:00
Higor Eurípedes fbc4738e79 (x_ctx.c) Add workaround for i915 bug
On certain Intel systems using DRI2, xorg fails to destroy the old
window when toggling between windowed fullscreen and windowed mode.

A fix at the driver level is being worked on by the i915 developers:
https://bugs.freedesktop.org/show_bug.cgi?id=93844

Thanks to https://github.com/diegoviola for investigating the issue.

This fixes #3752
2016-11-03 09:15:00 -03:00
twinaphex 0f369ff3a9 (GLM) Get rid of GLM_STATIC_ASSERT entirely 2016-11-03 12:51:26 +01:00
twinaphex cb8231a962 Disable 'enable keyboard overlay' by default now 2016-11-03 10:56:53 +01:00
twinaphex 5fdb2247dd (GLM) Start getting rid of static asserts 2016-11-03 10:40:50 +01:00
Jean-André Santoni 9fbc835308 Fix minor keyboard traversal bugs with joypad 2016-11-03 09:26:31 +01:00
Jean-André Santoni 745da4d66b Adapt OSK rendering to vertical screens like phones 2016-11-03 09:21:27 +01:00
Jean-André Santoni 5bdd9533e7 Improve OSK look in GLUI 2016-11-03 09:12:37 +01:00
Jean-André Santoni 5a6a2be859 Remove unneeded last_codepoint code from menu_event.c 2016-11-03 09:02:53 +01:00
Jean-André Santoni f72bf26eac Improve OSK look on XMB 2016-11-03 08:55:24 +01:00
Jean-André Santoni 810ff5605d griffin fix 2016-11-02 23:39:28 +01:00
aliaspider 176dd79f33 (WIIU) misc. 2016-11-02 22:06:15 +01:00
Jean-André Santoni 6652a6fcf7 Change GLUI default font to support more languages 2016-11-02 18:18:04 +01:00
Jean-André Santoni 54794d5368 Fix an OSK backspace issue 2016-11-02 16:20:35 +01:00
Jean-André Santoni a7ecf7615d Add special OSK keys to GLUI too 2016-11-02 16:16:05 +01:00
Brad Parker f5cac72735 fix backspacing of unicode chars in OSK 2016-11-02 16:16:04 +01:00
Jean-André Santoni 31073214b6 Add special keys on the OSK 2016-11-02 16:15:23 +01:00
twinaphex 04e3059f7f Remove unused variable 2016-11-02 14:17:22 +01:00
twinaphex 2091c4cc2f (Menu) Left analog stick controls the menu now 2016-11-02 13:44:34 +01:00
lasers 5a7c050a19 Sort all msg_hash_{LANG}.c 2016-11-02 07:06:11 -05:00
Twinaphex 1b9d92554d Merge pull request #3921 from cudencuden/master
more Vietnamese translations work
2016-11-02 06:39:28 +01:00
cudencuden ba4033b128 more Vietnamese translations work 2016-11-01 17:34:48 -05:00
Brad Parker ca5435a37c update JP translation with US changes 2016-11-01 14:19:51 -04:00
Twinaphex 8d8d91e11a Merge pull request #3918 from loganmc10/patch-3
Define some EGL constants
2016-11-01 15:43:52 +01:00
Logan McNaughton 06eca5d530 Define some EGL constants
Missing from the Android headers
2016-11-01 07:09:58 -06:00
Twinaphex 0d9599a0b5 Merge pull request #3917 from leiradel/master
Fix constant overflow warning on C89 build.
2016-11-01 12:23:49 +01:00
Andre Leiradella d342852415 Fix constant overflow warning on C89 build. 2016-11-01 11:14:54 +00:00
twinaphex c3e832f672 (ffmpeg core) don't use value_ptr 2016-11-01 12:08:45 +01:00
twinaphex 8e8ed55a87 Only include glm's packing.h header 2016-11-01 12:00:27 +01:00
twinaphex 9fd40831ef float_minmax.h - include math.h 2016-11-01 11:43:00 +01:00
twinaphex 6c6daeca5b (libretro-common) Add float_minmax.h 2016-11-01 11:27:00 +01:00
twinaphex 99a0f82351 (GLM) Cleanups
(Cheevos) C89_BUILD buildfix
2016-11-01 11:04:56 +01:00
Twinaphex 9da6a9c1b3 Merge pull request #3913 from lasers/translate-english-only-to-all
Translate "Applying cheat changes." to all languages
2016-11-01 11:00:37 +01:00
Twinaphex cda93c4625 bool_entries needs to be reduced by one in size 2016-11-01 10:58:48 +01:00
twinaphex 76cf8dc124 (GLM) Remove __CUDA_ARCH__ 2016-11-01 10:30:04 +01:00
twinaphex 101c885f8b (GLM) Remove more unused files 2016-11-01 10:28:42 +01:00
twinaphex 209a0ddd34 Remove more unused files 2016-11-01 10:24:32 +01:00
twinaphex 765c8ee930 (GLM) Remove CUDACC ifdefs 2016-11-01 10:23:40 +01:00
twinaphex 68bfbd8020 (GLM) Cleanups 2016-11-01 08:51:59 +01:00
Twinaphex 846f9a94af Merge pull request #3915 from loganmc10/patch-2
Add egl debug context option for Android
2016-11-01 08:12:23 +01:00
twinaphex bc90cdef8b (GLM) Remove GLM_FUNC_DECL 2016-11-01 07:40:33 +01:00
twinaphex fd1b57fb1a (GLM) Get rid of some more stuff we won't need in libretro-common 2016-11-01 07:15:37 +01:00
twinaphex d8dab2af5b (GLM) Remove more unused files 2016-11-01 07:04:17 +01:00
twinaphex af9136c341 (GLM) Cleanups 2016-11-01 06:51:07 +01:00
twinaphex 0fd569983c (GLM) Cleanups 2016-11-01 06:47:44 +01:00
lasers db69a808bd Add important /* TODO */ 2016-10-31 22:42:12 -05:00
Andrés Suárez af642521ae Merge pull request #3916 from leiradel/master
Fix cheevos using work RAM mirrors.
2016-10-31 20:07:18 -05:00
Andre Leiradella bccdd8dfbe Fix cheevos using work RAM mirrors. 2016-11-01 01:02:09 +00:00
Andrés Suárez 752d3a1804 Merge pull request #3912 from leiradel/master
Fixes to cheevos issues; added warning about the console IDs enumerat…
2016-10-31 18:59:26 -05:00
Logan McNaughton 200cf15044 Add egl debug context option for Android
According to https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context.txt

"The default value of EGL_CONTEXT_FLAGS_KHR is zero"

So this should keep it at 0 if debug=false, and set it to EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR is debug=true

Fixes https://github.com/libretro/RetroArch/issues/3910
2016-10-31 15:28:45 -06:00
lasers 861c0aaba7 Add important //TODO 2016-10-31 15:54:08 -05:00
Jean-André Santoni 4bf172835d Expose the NeoActive icon theme 2016-10-31 21:42:46 +01:00
lasers e9658e7b09 Translate "Applying cheat changes." to all languages 2016-10-31 15:05:39 -05:00
Andre Leiradella 8e3a524749 Fixes to cheevos issues; added warning about the console IDs enumeration. 2016-10-31 19:07:53 +00:00
twinaphex c4dd7c511e (deps/glm) Get rid of more unused files 2016-10-31 18:54:56 +01:00
twinaphex 17337900f2 (deps/glm) Slim down on unneeded files 2016-10-31 18:50:34 +01:00
twinaphex f707d39c54 Let's just get rid of this problematic check instead 2016-10-31 15:30:20 +01:00
twinaphex de3c1a04db Simplifications 2016-10-31 15:24:03 +01:00
twinaphex 4ff6d8c108 Add more logging 2016-10-31 15:12:34 +01:00
twinaphex 49479937d4 Reintroduce setting_get_type 2016-10-31 15:01:40 +01:00
Jean-André Santoni 659235c572 Merge pull request #3906 from lasers/add-monochrome-jagged
Add Monochrome Jagged
2016-10-31 08:20:33 +01:00
twinaphex 4945075201 Prevent warning 2016-10-31 08:00:57 +01:00
Brad Parker 5d28029be8 remove confirm_on_exit menu option 2016-10-30 23:29:03 -04:00
Brad Parker 0ee9432aa4 fix backspacing of unicode chars in OSK 2016-10-30 23:02:33 -04:00
Twinaphex 3e5b3da144 Merge pull request #3905 from GregorR/netplay-disconnect-disable
Disable netplay when we disconnect from the menu
2016-10-31 03:45:41 +01:00
lasers 8797dfbee1 Add Monochrome Jagged 2016-10-30 17:14:13 -05:00
Jean-André Santoni 60abe24608 Fix a crash on RGUI 2016-10-30 20:41:32 +01:00
Jean-André Santoni c92521ac66 Update the OSK highlight only when the pointer is moved 2016-10-30 19:48:55 +01:00
Gregor Richards c0d2128369 Disable netplay when we disconnect from the menu, so it doesn't reenable
itself.
2016-10-30 14:41:19 -04:00
Jean-André Santoni 19c1b00bdc OSK bugfix when using mouse and joypad at the same time 2016-10-30 18:09:23 +01:00
twinaphex 7d0ebd1b51 Some C89_BUILD fixes 2016-10-30 14:27:24 +01:00
Twinaphex 525859d268 Merge pull request #3901 from 9chu/master
Fixing & adding more translation for Simplified Chinese
2016-10-30 14:21:46 +01:00
chu 5de6305eb1 add more chs translation 2016-10-30 21:01:02 +08:00
twinaphex 6a6c352360 The new OSK overlay built into the menu should be better - take
this out
2016-10-30 12:14:53 +01:00
Jean-André Santoni 41611e3d74 Touch and mouse support for the OSK 2016-10-30 11:48:48 +01:00
Twinaphex ec058911d3 Merge pull request #3895 from duskgao/patch-1
more chs translation
2016-10-30 11:26:58 +01:00
twinaphex 3a4b473809 Fix filter by supported extensions option in filebrowser 2016-10-30 10:40:42 +01:00
twinaphex bb987cf5ac Fix segfault courtesy of AdrianoML - Segfault when booting a core
with a keyboard device
2016-10-30 09:42:59 +01:00
Brad Parker 18cce4cfc9 fix OSK hang in Windows because we are getting a down event for keycode 0... 2016-10-30 01:14:50 -04:00
Brad Parker b14c3970d1 clear trigger_input before calling menu_event(), fixes firing of gamepad keys after binding 2016-10-30 00:12:47 -04:00
Brad Parker 2e654658d8 fix hotkey firing when binding quit key 2016-10-29 23:25:47 -04:00
twinaphex 25eaee066c Buildfix 2016-10-30 03:34:11 +01:00
twinaphex ac1cfa62f3 C89_BUILD error fixes 2016-10-30 03:33:35 +01:00
twinaphex 696abbed83 C89_BUILD fix 2016-10-30 03:30:32 +01:00
twinaphex d7c4b4f009 Should prevent error 2016-10-30 03:27:43 +01:00
Brad Parker 28c0e78292 ignore trigger input while binding a new key 2016-10-29 21:58:43 -04:00
twinaphex 950e67b8a2 Use BIT64_SET 2016-10-30 02:58:26 +01:00
twinaphex 0fee70457b (MSVC) Fix issues 2016-10-30 02:40:05 +01:00
twinaphex 8032bd0336 Fix float right action 2016-10-30 02:10:20 +01:00
Twinaphex bd684065c3 Prevent null pointer dereference crash 2016-10-30 02:18:03 +02:00
Brad Parker 1a73b1d144 OSK cleanup, add katakana support 2016-10-29 19:51:02 -04:00
Jean-André Santoni 281335f86f Improve OSK look 2016-10-30 00:20:37 +02:00
Jean-André Santoni efa2b7fbb1 Merge pull request #3896 from lasers/fix-ugly-task-popup
Fix ugly task popup
2016-10-29 23:55:34 +02:00
Jean-André Santoni 01985c7460 OSK memory fix and hiragana support 2016-10-29 23:54:06 +02:00
Jean-André Santoni b176aa2396 OSK Fix and cleaning 2016-10-29 23:28:53 +02:00
Jean-André Santoni 156081635c Merge pull request #3898 from heuripedes/master
(xmb) Fix memory leak
2016-10-29 23:22:33 +02:00
Jean-André Santoni 97e13c4409 Preliminary changes for the utf8 OSK 2016-10-29 22:43:34 +02:00
Higor Eurípedes 5de85bb3e5 (xmb) Fix memory leak
Fixes #3857
2016-10-29 14:36:16 -03:00
lasers 47e91d835b Fix broken (and ugly) task popup 2016-10-29 09:53:57 -05:00
twinaphex 21c7f562f7 Optimize input code 2016-10-29 15:53:14 +02:00
twinaphex 3d91e4087f input_keys_pressed - get rid of early return 2016-10-29 15:37:28 +02:00
twinaphex 3e886df637 (XMB) Add 'Scan File' to horizontal 'Import Content' tab
(XMB) Hide 'Scan Content' on Main Menu since we already have a tab
dedicated to it, and it unclutters the main menu
2016-10-29 15:04:20 +02:00
twinaphex 7bbc1f64c3 Add back HAVE_NETWORKING ifdef 2016-10-29 14:30:02 +02:00
Twinaphex 528950b433 Merge pull request #3891 from lasers/move-dl-content
Merge "Update/Download" and rename "Add Content"
2016-10-29 14:28:58 +02:00
Twinaphex cbb0d4b372 Merge pull request #3894 from Ezio-PS/master
Update Italian translation
2016-10-29 14:28:12 +02:00
Ezio-PS 899fe849c3 Update Italian translation 2016-10-29 12:42:01 +02:00
Alcaro be83d93a27 Merge non-broken parts of #3892 2016-10-29 11:58:57 +02:00
duskgao b94d5a5cc8 more chs translation
RT
2016-10-29 17:53:05 +08:00
lasers 780928a627 Move "Download Content" under "Online Updater" as "Content Downloader"
Rename "Add Content" to "Scan Content" as it does not always add everything.
Rephrase strings for new "Content Downloader" and "Scan Content"
2016-10-29 04:31:49 -05:00
twinaphex 17678bb2fe Some C89 fixes 2016-10-29 08:58:33 +02:00
twinaphex 9926686c83 Get rid of hardcoded MAX_USERS 2016-10-29 08:44:01 +02:00
twinaphex d4ecce48c7 Fix truncated messagebox messages 2016-10-29 08:38:14 +02:00
twinaphex c756ff9368 Add msg_hash_chs to griffin 2016-10-29 06:50:52 +02:00
Twinaphex 6699b8efd2 Merge pull request #3889 from 9chu/master
Adding translation for Simplified Chinese
2016-10-29 06:49:34 +02:00
Brad Parker fdccdf6012 update jp translation 2016-10-29 00:37:43 -04:00
chu c129d75515 fix code-style issue 2016-10-29 12:17:26 +08:00
chu 158ca0e9e7 modify the Makefile 2016-10-29 12:15:29 +08:00
chu 5aeb66ee50 add support for Simplified Chinese 2016-10-29 12:07:28 +08:00
Brad Parker 3354c07810 fix joypad A button in OSK 2016-10-28 23:47:17 -04:00
twinaphex 763a925a17 Fix Android build 2016-10-29 04:59:56 +02:00
twinaphex ce98a4dd19 Get rid of now unused input_driver_key_pressed 2016-10-29 04:57:28 +02:00
twinaphex 0d5d3b27be No longer use key_pressed 2016-10-29 04:48:51 +02:00
twinaphex f1b2caa138 Rewrite input_keys_pressed 2016-10-29 04:41:45 +02:00
twinaphex 9eecd774d1 input_menu_keys_pressed - second joypad driver should be
working now too
2016-10-29 04:33:57 +02:00
Twinaphex f2076e2c5b Cleanups 2016-10-29 04:11:54 +02:00
twinaphex 93af926f76 Cleanups 2016-10-29 04:09:50 +02:00
Twinaphex d231642856 Merge pull request #3888 from libretro/menu_input
Menu input
2016-10-29 04:05:30 +02:00
Twinaphex 95bd096a77 Merge pull request #3881 from lasers/add-pause-notification
Add persistent pause notification
2016-10-29 04:04:15 +02:00
Twinaphex 92a9f8aec7 Merge pull request #3887 from aliaspider/master
(WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
2016-10-29 04:02:54 +02:00
twinaphex 5d90b774da Fixes remaining input issues courtesy of bparker 2016-10-29 04:00:36 +02:00
aliaspider e055b7cbc1 (WIIU) cleanup. adapt dynamic symbol loading to be able to use headers
from WUT.
2016-10-29 02:56:40 +01:00
radius 6a950526d5 add group for other android atv devices 2016-10-28 20:49:44 -05:00
radius a900bc41a8 fix l3/r3 2016-10-28 20:05:38 -05:00
radius 62903bf668 revert skeleton config 2016-10-28 19:07:02 -05:00
radius cb2e78e46d add android standard gamepad builtin autoconf 2016-10-28 18:15:24 -05:00
Jean-André Santoni efc95d156a Merge pull request #3884 from cudencuden/master
began some Vietnamese translation work
2016-10-28 22:46:46 +02:00
cudencuden 9445da20db began some Vietnamese translation work 2016-10-28 15:33:41 +00:00
cudencuden b70f743bcd began some Vietnamese translation work 2016-10-28 15:24:09 +00:00
lasers af569e0929 Add persistent pause notification 2016-10-28 09:09:52 -05:00
Twinaphex 8242181657 Merge pull request #3880 from libretro/master
Cleanup
2016-10-28 08:24:31 +02:00
twinaphex 01bbca9c95 Cleanup 2016-10-28 08:23:54 +02:00
Twinaphex 535215eefa Merge pull request #3879 from libretro/master
Merge
2016-10-28 07:44:10 +02:00
twinaphex 99c76f7aba Comment this out 2016-10-28 06:59:18 +02:00
twinaphex a8eb73846b Bind more keys for menu 2016-10-28 06:54:30 +02:00
twinaphex 94a67444be Fix grab mouse toggle 2016-10-28 06:41:53 +02:00
Brad Parker 320c49e08e restore menu animation 2016-10-27 23:56:55 -04:00
Brad Parker 28a43d9440 dont need a short, only move first bit 2016-10-27 23:48:49 -04:00
Brad Parker b7a8ff9395 fix menu toggle with F1 2016-10-27 23:43:07 -04:00
Twinaphex 73ec076160 Merge pull request #3878 from aliaspider/master
set config file streams to full buffering. dramatically reduces startup/
2016-10-28 02:57:05 +02:00
aliaspider fd43a460f4 set config file streams to full buffering. dramatically reduces startup/
shutdown latency on some devices with slow I/O access.
2016-10-28 01:49:53 +01:00
Twinaphex 453155ade3 Merge pull request #3877 from aliaspider/master
(WIIU) update.
2016-10-28 01:53:43 +02:00
aliaspider ac915abb5d (WIIU) edit netloader script. 2016-10-28 00:28:44 +01:00
Twinaphex 7c01507a0b Merge pull request #3875 from loganmc10/patch-1
Some firewalls do better with https
2016-10-28 01:28:36 +02:00
aliaspider cf1e9f38ce (WIIU) flush to file after each write, this is a temporary fix as it
seems to hang in FSWriteFile after writing 0x8000 bytes otherwise.
2016-10-28 00:25:47 +01:00
aliaspider efb8628994 (WIIU) switch exception handler. 2016-10-27 23:20:28 +01:00
aliaspider 30d31538b1 (WIIU) add an alternative exception handler (source: https://github.com/
QuarkTheAwesome/URetro)
2016-10-27 23:19:54 +01:00
aliaspider 8bdc40d5f8 (WIIU) exception handler: use net_print directly 2016-10-27 23:03:56 +01:00
aliaspider 2a7f5d8ba3 (WIIU) alternative memory allocation functions (from wut) 2016-10-27 23:03:21 +01:00
aliaspider afdaf9afbd (WIIU) display core frames. 2016-10-27 23:02:40 +01:00
twinaphex a9ff67e915 Add to Griffin 2016-10-27 21:56:01 +02:00
Logan McNaughton db25f26d43 Some firewalls do better with https 2016-10-27 13:53:17 -06:00
Twinaphex 7e5ee4f86c Prevent uninitialied variable 2016-10-27 21:47:15 +02:00
Jean-André Santoni 2b543cdaf0 Forgot to add the vietnamese source file 2016-10-27 21:10:36 +02:00
aliaspider 844c6ed582 (WIIU) misc. 2016-10-27 19:53:56 +01:00
aliaspider 02c38d23c1 (WIIU) enable the exception handler. 2016-10-27 19:53:27 +01:00
Jean-André Santoni c99b4f7252 Preliminary support for the Vietnamese language 2016-10-27 20:49:56 +02:00
aliaspider 0c3dc1e6b2 (WIIU) edit the .ld script to keep the debug symbols. 2016-10-27 19:37:53 +01:00
twinaphex 9a1dd5f3cb Prevent some crashes when going to Frontend Counters 2016-10-27 20:14:56 +02:00
Twinaphex d00d62a228 Merge pull request #3873 from lasers/fix-cheats
Improve cheat menu + wording
2016-10-27 20:07:12 +02:00
aliaspider 962baabe5d (WIIU) add missing files in dynamic_libs, add exception_handler 2016-10-27 18:58:19 +01:00
twinaphex 4fb6808321 libretro-common is MIT and we don't want individual copyright
per authors here; RetroArch is GPL and it's fine there
2016-10-27 19:52:58 +02:00
twinaphex 88e88e92f3 Prevent crash with zipped roms 2016-10-27 19:50:19 +02:00
twinaphex 258bd96383 Prevent two Coverity warnings 2016-10-27 19:34:20 +02:00
twinaphex 8f401b8fe8 Change size of msg variable 2016-10-27 19:32:15 +02:00
aliaspider cb7e880df6 (WIIU) update dynamic_libs (https://github.com/Maschell/dynamic_libs) 2016-10-27 18:17:20 +01:00
Jean-André Santoni 6cc14a4fb9 Add missing copyright mention on some files 2016-10-27 18:17:43 +02:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
aliaspider 094b725ad6 (WIIU) disable mem2/frontend driver 2016-10-27 15:49:21 +01:00
aliaspider 185849d5ff (WIIU) add frontend driver, allocate mem2 2016-10-27 15:33:40 +01:00
lasers 0a637cf5e4 Add notification + log for applying cheat changes. English only. 2016-10-27 04:27:02 -05:00
lasers 0badb9efea Improve cheat menu + wording 2016-10-27 04:24:55 -05:00
twinaphex 902c096eb4 Further changes to bring it in line with menu_input branch 2016-10-27 11:13:31 +02:00
twinaphex 14ad3f9dd6 Merge branch 'master' into menu_input 2016-10-27 10:55:02 +02:00
twinaphex 1b6e7da2ce Merge branch 'menu_input' 2016-10-27 10:54:49 +02:00
twinaphex 6310f53587 Prevent some implicit memsets and reduce the size of some
char variables
2016-10-27 10:45:53 +02:00
twinaphex 70cbecd9f8 Reduce char variable sizes 2016-10-27 10:33:50 +02:00
twinaphex 13cc4787f2 Reduce more char variable sizes 2016-10-27 10:19:04 +02:00
twinaphex 00e68ccd0e Reduce char variables size 2016-10-27 10:16:26 +02:00
twinaphex d9007904e0 Reduce char variable sizes 2016-10-27 09:52:38 +02:00
twinaphex 611784cbd8 (rgui) Reduce char variables 2016-10-27 09:50:46 +02:00
twinaphex 50ba48924d Reduce more PATH_MAX_LENGTH usage 2016-10-27 09:49:21 +02:00
twinaphex f017593501 Reduce size of some char variables and get rid of some implicit memsets 2016-10-27 09:44:20 +02:00
twinaphex c1b59df7ae Reduce size of char variables 2016-10-27 09:32:07 +02:00
twinaphex 60d313bf6a Reduce size of more char variables 2016-10-27 09:21:03 +02:00
twinaphex b1b2579fde Start reducing size of some char variables 2016-10-27 09:17:41 +02:00
twinaphex 8d6be4b700 Reduce size of some messages (was PATH_MAX_LENGTH by default,
which can default to 4096)
2016-10-27 09:13:36 +02:00
twinaphex 53ad28ffde Backport this patch 2016-10-27 07:03:37 +02:00
twinaphex d246d320c7 Get rid of messy 'all_users_control_menu' hack - will be dealt
with better once menu_input branch has been merged
2016-10-27 07:00:13 +02:00
twinaphex 65685c3a9d Update input_menu_keys_pressed 2016-10-27 06:55:08 +02:00
twinaphex 2a0dba3009 Move all_users_control_menu code to input/input_driver.c 2016-10-27 06:53:06 +02:00
twinaphex 660f021dbc Simplify input_menu_keys_pressed 2016-10-27 06:49:18 +02:00
twinaphex 5ac9905540 Simplify code 2016-10-27 06:47:31 +02:00
twinaphex f778bee856 Add input_menu_keys_pressed to master 2016-10-27 06:38:02 +02:00
twinaphex 8f30b3e706 Update menu_keys_pressed 2016-10-27 06:34:53 +02:00
twinaphex 6235a5cd0d Can now toggle fullscreen, use quit key from menu (mouse grab
toggle doesn't work yet)
2016-10-27 06:13:39 +02:00
Twinaphex 2cd82ff2c2 Merge pull request #3870 from libretro/master
Merge
2016-10-27 04:49:46 +02:00
twinaphex 1b9bb7ed3b (menu_setting.c) Cleanups 2016-10-27 04:12:49 +02:00
twinaphex b9909bf5ba Add CONFIG_BIND_ALT 2016-10-27 04:03:24 +02:00
Twinaphex 1bc2ea417c Merge pull request #3869 from aliaspider/master
preliminary port to the wiiu platform
2016-10-27 02:50:01 +02:00
twinaphex 19c75002ec Update 2016-10-27 02:46:40 +02:00
twinaphex 1a22816073 CONFIG_BIND - update 2016-10-27 02:44:00 +02:00
twinaphex 91791dfcaf Improve former code 2016-10-27 02:41:46 +02:00
aliaspider a4d745a471 preliminary port to the wiiu platform 2016-10-27 01:34:10 +01:00
twinaphex eb416ce478 Prevent null representation entries 2016-10-27 02:23:21 +02:00
Twinaphex d1c04ad711 Merge pull request #3868 from libretro/master
Prevent more potential crashes
2016-10-27 01:24:15 +02:00
twinaphex 5fc6519328 Prevent more potential crashes 2016-10-27 01:21:01 +02:00
twinaphex 2bcbe017cd More work 2016-10-27 00:14:01 +02:00
twinaphex a9a2749af9 Add input_menu_keys_pressed 2016-10-27 00:13:29 +02:00
Twinaphex 5a70656746 Merge pull request #3862 from leiradel/master
Revert cheevos.c because of problems with some ROMs.
2016-10-26 23:06:02 +02:00
Twinaphex 26547be5ed Try to prevent another crash 2016-10-26 23:05:14 +02:00
Andre Leiradella 3d2cdbde98 Avoid allocating memory to compute the hash for NES ROMs when the core needs fullpath (fixed). 2016-10-26 20:09:17 +01:00
Andre Leiradella 58b3ef3ba4 Revert cheevos.c because of problems with some ROMs. 2016-10-26 19:49:29 +01:00
twinaphex ef2e0ead84 Remove one ifdef 2016-10-26 20:28:51 +02:00
Jean-André Santoni 07421c3cd4 Fix build on some platform missing int64 types in their headers 2016-10-26 20:13:56 +02:00
Twinaphex aca1f968a9 Merge pull request #3861 from leiradel/master
Avoid allocating memory to compute the hash for NES ROMs when the cor…
2016-10-26 19:34:26 +02:00
Andre Leiradella 18c3204145 Avoid allocating memory to compute the hash for NES ROMs when the core needs fullpath. 2016-10-26 18:26:45 +01:00
twinaphex b1d1875b01 (Dutch) Update translation 2016-10-26 10:46:55 +02:00
Twinaphex 90fbc09f82 Fix remaining crash on OSX 2016-10-26 10:34:24 +02:00
twinaphex 8ce882c829 Should hopefully fix most of the remaining issues 2016-10-26 10:29:26 +02:00
twinaphex d6901685f7 Prevent crash with udev driver 2016-10-26 10:21:56 +02:00
twinaphex 858f96d082 Try to prevent crashes when amount of selected users is less
than what a core can support
2016-10-26 10:19:22 +02:00
twinaphex 1c429b3a57 Update CONFIG_HEX 2016-10-26 10:04:34 +02:00
twinaphex 053208676f Prevent null pointer dereference 2016-10-26 09:55:09 +02:00
twinaphex 45688b2a9d Coverity doesn't understand retro_assert and these checks are
superfluous anyway
2016-10-26 09:53:15 +02:00
twinaphex 01c6748f72 Prevent uninitialized variable Coverity warning 2016-10-26 09:30:00 +02:00
twinaphex a64a93be6a Changing language no longer requires a restart 2016-10-26 09:16:32 +02:00
twinaphex bd479ac0e3 Update CONFIG_STRING_OPTIONS 2016-10-26 09:15:24 +02:00
twinaphex 57cf5c5ff5 Update CONFIG_PATH 2016-10-26 09:14:16 +02:00
twinaphex b4571befab Update CONFIG_INT settings dynamically 2016-10-26 09:12:16 +02:00
twinaphex 3ac66e1118 Update CONFIG_STRING entries dynamically 2016-10-26 09:10:16 +02:00
twinaphex 2d2628dbbf Update ST_UINT settings too dynamically 2016-10-26 09:08:02 +02:00
twinaphex 7a09ffe6bc Values start changing now upon language switch 2016-10-26 09:03:56 +02:00
twinaphex 437df345a9 Add enum value idx 2016-10-26 08:57:55 +02:00
twinaphex ed5b919d7f Get rid of some RARCH_MENU_CTL_ commands 2016-10-26 08:43:59 +02:00
twinaphex 20d7c18c3f Cleanups 2016-10-26 08:33:18 +02:00
twinaphex 71a1e4eca7 Cleanups 2016-10-26 08:30:56 +02:00
twinaphex 67b04b6251 Cleanups 2016-10-26 08:25:23 +02:00
twinaphex 89268d47f1 (menu_setting.c) Cleanups 2016-10-26 08:02:17 +02:00
twinaphex 5ed905ad90 (menu_settings.c) Cleanups 2016-10-26 07:58:21 +02:00
twinaphex f879f57603 (menu_setting.c) Cleanups 2016-10-26 07:40:01 +02:00
twinaphex 0bac0022c8 (menu_setting.c) Cleanups 2016-10-26 07:36:23 +02:00
twinaphex 18331f75ee (menu_setting.c) Simplify code 2016-10-26 07:32:42 +02:00
twinaphex 9fac4ee85b Cleanups 2016-10-26 07:06:18 +02:00
twinaphex 97d80d5e3e Get rid of more implicit memsets 2016-10-26 06:23:05 +02:00
twinaphex 170febb72c (NGC/Wii) Buildfix 2016-10-26 06:04:42 +02:00
twinaphex d2cfc3cb17 Check if name is empty first 2016-10-26 06:01:26 +02:00
twinaphex 85e2aeeaaf Cleanups 2016-10-26 05:46:16 +02:00
twinaphex c530b0afd4 Update CONFIG_HEX 2016-10-26 05:42:24 +02:00
twinaphex 7980e5c405 Add CONFIG_UINT/CONFIG_UINT_ALT 2016-10-26 05:38:25 +02:00
twinaphex cc06d2f1b7 Update CONFIG_INT 2016-10-26 05:32:28 +02:00
twinaphex 307a7a9b1e Update / simplify CONFIG_PATH 2016-10-26 05:30:45 +02:00
twinaphex 69aa1ba09a Simplify CONFIG_DIR 2016-10-26 05:28:16 +02:00
twinaphex c8f11665df Simplify CONFIG_STRING 2016-10-26 05:22:07 +02:00
twinaphex d01d4a8532 Simplify CONFIG_STRING_OPTIONS 2016-10-26 05:18:57 +02:00
twinaphex 6e604e4a3d Simplify CONFIG_ACTION 2016-10-26 05:15:52 +02:00
twinaphex 079bf52ed0 Simplify CONFIG_FLOAT 2016-10-26 05:07:27 +02:00
twinaphex 24e9f8dc09 Simplify CONFIG_BOOL/menu_setting.c 2016-10-26 05:04:24 +02:00
twinaphex 830f64446b Remove another RUNLOOP_CTL_ action 2016-10-26 04:11:12 +02:00
twinaphex d0a1c8609f Remove obsolete CTL actions 2016-10-26 04:08:54 +02:00
twinaphex 917f8fa996 Prevent explicit NULL dereferenced 2016-10-26 03:19:46 +02:00
Twinaphex c2713a6173 Prevent warning 2016-10-26 02:46:15 +02:00
Twinaphex 30d292b60d Merge pull request #3859 from leiradel/master
Fixed NES ROM identification for cores whee needs_fullpath == false
2016-10-26 02:17:14 +02:00
Andre Leiradella d2c838f4d3 Fixed NES ROM identification for cores whee needs_fullpath == false 2016-10-25 23:45:36 +01:00
twinaphex 4ec356d5c1 Remove duplicate function 2016-10-25 23:32:18 +02:00
Alcaro 39ad8ff865 Get rid of a few unnecessary strcpys 2016-10-25 20:42:23 +02:00
Alcaro 41c7d0315f Let's not concatenate things to unknown strings... 2016-10-25 20:27:21 +02:00
twinaphex 9ddad48744 Create gfx/video_defines.h 2016-10-25 20:18:31 +02:00
twinaphex b6ca7ba97a Get rid of hardcoded strings 2016-10-25 19:57:04 +02:00
twinaphex 948b206b60 Get rid of using hardcoded labels 2016-10-25 19:50:03 +02:00
Twinaphex 3be93bf132 Merge pull request #3856 from frangarcj/master
(VITA) Fix line height
2016-10-25 18:54:14 +02:00
Jean-André Santoni 52d07684da Use ON and OFF even in japanese, to display the switch icon 2016-10-25 17:25:30 +02:00
Francisco José García García e685876f15 (VITA) Fix line height 2016-10-25 17:18:09 +02:00
Alcaro 44215e8ed9 whoops, that one doesn't need to be there. 2016-10-25 16:27:19 +02:00
Alcaro fd8507400a dear lord, what happened here? it's like a disaster area 2016-10-25 16:26:58 +02:00
Jean-André Santoni ac18d31ac4 (XMB) Icons for Save Overrides 2016-10-25 13:34:01 +02:00
Jean-André Santoni 6ca877cdda Sublabel for the user language 2016-10-25 11:14:52 +02:00
Jean-André Santoni c8da8f81a5 Sublabels for Lakka services 2016-10-25 11:05:54 +02:00
Jean-André Santoni ce0da459fb Sublabel for WiFi settings 2016-10-25 10:50:37 +02:00
Jean-André Santoni aa7990269e More sublabels 2016-10-25 10:42:27 +02:00
Jean-André Santoni a7efe032af (Lakka) Force saving the settings before a OS shutdown or reboot 2016-10-25 10:28:16 +02:00
Jean-André Santoni 55c480358d Move draw_quad to menu_display 2016-10-25 08:11:37 +02:00
Jean-André Santoni cbbb88ab16 Code cleaning 2016-10-25 07:52:47 +02:00
Jean-André Santoni 23ef14347f (MUI) On-screen keyboard 2016-10-25 07:48:27 +02:00
Brad Parker 39d413be8f update jp translation, move some hardcoded text to enums 2016-10-25 00:03:38 -04:00
twinaphex 973a950d31 Simplify core_frame 2016-10-25 05:01:44 +02:00
twinaphex 3094e47820 Cleanup core_frame 2016-10-25 04:58:00 +02:00
Brad Parker a8408d663e add JP translation for input binds 2016-10-24 19:30:05 -04:00
twinaphex 456c4c4d58 Remove video_driver_cached_frame_render wrapper function 2016-10-25 00:42:26 +02:00
Brad Parker c70ac3986c make input hotkey/user bind strings translatable 2016-10-24 18:22:53 -04:00
aliaspider 77b4c8f420 prevent a NULL dereference. 2016-10-24 22:42:17 +01:00
Brad Parker b889f09db6 update JP translation 2016-10-24 17:34:40 -04:00
twinaphex f49e1fbc84 C89_BUILD fixes 2016-10-24 22:18:12 +02:00
aliaspider ca2b9cb97c freetype: fix invalid write. 2016-10-24 20:25:21 +01:00
Twinaphex 300fc3ab0f Merge pull request #3851 from lakkatv/master
(Menu) Integrate an joypad driven OSK to the menu driver.
2016-10-24 20:41:10 +02:00
Jean-André Santoni df1f4dbc89 (Menu) Integrate an joypad driven OSK to the menu driver. 2016-10-24 20:26:22 +02:00
Brad Parker 486b845eca update JP translation 2016-10-24 13:59:50 -04:00
twinaphex 2201a8da00 Add sublabel 2016-10-24 11:59:03 +02:00
twinaphex c29e7c7456 Add more sublabels 2016-10-24 11:51:51 +02:00
twinaphex 4454fdbfc2 Fix MSVC build 2016-10-24 08:33:35 +02:00
Twinaphex df646ae32d Implement get_line_height function for OSX/iOS font renderer 2016-10-24 08:26:55 +02:00
twinaphex ef67ba52b3 Cleanups 2016-10-24 07:28:32 +02:00
twinaphex 70eaadb8f7 audio_driver_process_resampler - get rid of wrapper function 2016-10-24 07:25:57 +02:00
twinaphex 9d4e954c41 Optimize audio_driver_flush 2016-10-24 07:21:41 +02:00
twinaphex 2663d8e694 (input_keyboard.c) Simplify code 2016-10-24 07:09:50 +02:00
twinaphex f17080091b Simplify input_keyboard_event 2016-10-24 07:06:59 +02:00
twinaphex 5ea2078638 Attempt buildfix 2016-10-24 06:40:09 +02:00
Twinaphex 83b02ce291 Merge pull request #3849 from JuanVCS/master
Change some more english language strings
2016-10-24 06:24:32 +02:00
twinaphex 7a18b053c4 C89_BUILD fixes 2016-10-24 05:57:13 +02:00
twinaphex 12ab2d5e7d (Android) Buildfix 2016-10-24 05:53:16 +02:00
Juan 867e519678 Change some more english language strings 2016-10-24 00:42:26 -03:00
twinaphex 6d5a638f30 Add more get_value callbacks 2016-10-24 05:20:29 +02:00
twinaphex f1826ce9ec Try to optimize menu_setting_get_label somewhat 2016-10-24 05:11:19 +02:00
twinaphex 2eea70c270 Add optimized cbs_value callback for ST_BOOL 2016-10-24 05:08:57 +02:00
twinaphex 7b7b9b1f27 Add sublabel for Menu Settings 2016-10-24 04:27:43 +02:00
twinaphex 7740eb1094 Update griffin.c 2016-10-24 04:06:49 +02:00
twinaphex 213e357918 Move gl_capabilities to libretro-common 2016-10-24 04:06:05 +02:00
twinaphex 09067e67c3 Create gl_symlinks.h 2016-10-24 04:02:03 +02:00
twinaphex e512065d7d Start making gl_capabilities.c more usable by libretro-common 2016-10-24 03:55:14 +02:00
twinaphex 3702fde113 Simplify some input/video functions 2016-10-24 03:05:55 +02:00
twinaphex 294f54ebf0 Cleanup udev_pointer_state 2016-10-24 02:47:29 +02:00
twinaphex 9e14a9ceec Remove more unused menu enums 2016-10-24 02:43:00 +02:00
twinaphex 31180dfcf1 Add more entries 2016-10-23 22:10:54 +02:00
twinaphex d5d49e602c Cleanup input_joypad_analog 2016-10-23 21:59:53 +02:00
twinaphex b0ed69f05c Optimize android_keyboard_port_input_pressed 2016-10-23 20:43:14 +02:00
twinaphex 57457c2d70 Optimize apple_input_is_pressed 2016-10-23 20:42:09 +02:00
twinaphex 647ffca76c Optimize input_joypad_pressed code 2016-10-23 20:37:12 +02:00
twinaphex 2f12d8982c input_joypad_pressed - small opts 2016-10-23 20:08:27 +02:00
twinaphex 1cb2822013 Avoid expensive function menu_setting_get_label being invoked
when at Quick Menu
2016-10-23 19:46:29 +02:00
twinaphex 32a4053d42 Prevent two other entries from invoking expensive function
menu_setting_get_label
2016-10-23 19:42:04 +02:00
twinaphex 1dd30345e4 Prevent invoking of menu_setting_get_label (expensive function)
when browsing Download Content
2016-10-23 19:31:48 +02:00
Twinaphex 79e6a909e5 Merge pull request #3846 from aliaspider/master
freetype font renderer: less memory usage and full unicode support.
2016-10-23 19:24:19 +02:00
aliaspider c4d6a89067 freetype font renderer: less memory usage and full unicode support. 2016-10-23 18:14:07 +01:00
twinaphex de0cd188d1 Remove dead/unused enums 2016-10-23 06:48:35 +02:00
twinaphex f41de35da1 Prevent 'Explicit null dereferenced' warning 2016-10-23 06:21:09 +02:00
twinaphex c6a1bcfcbe Prevent dereference after null check warning 2016-10-23 06:20:13 +02:00
twinaphex 0e79c2c37e Silence another warning 2016-10-23 05:56:55 +02:00
twinaphex 147893caed Prevent NULL pointer dereference 2016-10-23 05:55:13 +02:00
twinaphex 1cbc847133 In case we return false here, we should still unlock the
mutex first
2016-10-23 05:53:47 +02:00
Twinaphex e1ce5209a0 Merge pull request #3844 from JuanVCS/master
Change some english language strings
2016-10-23 05:30:21 +02:00
twinaphex f2097c1c0b Prevent menu_setting_get_label from getting invoked for
'Load Savestate' inside Quick Menu
2016-10-23 04:54:52 +02:00
twinaphex 8cc5b09428 Get rid of slow wrapper function input_driver_state 2016-10-23 04:38:08 +02:00
twinaphex c512ed8122 Prevent recent history entries from invoking menu_setting_get_label 2016-10-23 04:21:17 +02:00
twinaphex 834e9bc8ae Prevent menu_setting_get_label invocation for system info entries 2016-10-23 04:18:18 +02:00
twinaphex 98f2c994ce Cleanup 2016-10-23 04:15:37 +02:00
twinaphex 9f2b428a4e Prevent another menu_setting_get_label call 2016-10-23 04:09:44 +02:00
twinaphex 0a079568df Prevent another menu_setting_get_label codepath 2016-10-23 04:08:07 +02:00
twinaphex 65dbc0fd6e Avoid some more huge menu_setting_get_label overhead by
adding a lightweight callback for database entries
2016-10-23 03:44:09 +02:00
twinaphex 3363e57def Biggest overhead now to be found at menu_setting_get_label -
we need to implement more efficient get_value callbacks
2016-10-23 03:37:51 +02:00
twinaphex 984c0e8141 Get rid of more small menu wrapper functions 2016-10-23 03:25:27 +02:00
twinaphex 594b36488b Get rid of more small and slow menu wrapper functions 2016-10-23 03:13:49 +02:00
Juan 16d46768e0 Change some english language strings 2016-10-22 21:46:06 -03:00
twinaphex cd219f807b Get rid of more expensive superfluous wrapper functions for menu code 2016-10-23 02:41:50 +02:00
twinaphex 2b4d87a983 Remove setting_get_type 2016-10-23 02:28:22 +02:00
twinaphex efe0220df2 Remove msg_hash_uspseudo 2016-10-23 00:52:48 +02:00
twinaphex feef0d19b9 Cleanups 2016-10-23 00:49:36 +02:00
twinaphex 62c80085a6 Cleanup some labels 2016-10-23 00:35:40 +02:00
twinaphex 4bffe5fc33 Change default value for last_input 2016-10-22 21:32:07 +02:00
twinaphex 04efd4ed36 (Android) Buildfix 2016-10-22 19:27:16 +02:00
twinaphex f03e22b003 Revert "Do away with some NULL checks"
This reverts commit 07d86a7feb.
2016-10-22 17:45:14 +02:00
twinaphex 3d7fbd355e (Apple) Buildfixes 2016-10-22 17:41:26 +02:00
twinaphex 07d86a7feb Do away with some NULL checks 2016-10-22 17:31:20 +02:00
twinaphex d24c1a280d input_poll - avoid function call 2016-10-22 17:29:19 +02:00
twinaphex 671f9cc8cc retro_input_t can go now 2016-10-22 17:03:59 +02:00
twinaphex e2b16a1f15 Use straight uint64_t types for input states 2016-10-22 17:03:20 +02:00
twinaphex d08668b331 Rollback 4b807b482 - was unnecessary in hindsight anyway 2016-10-22 16:39:55 +02:00
twinaphex ba6ae50e70 Revert "input_keys_pressed - start splitting up big for loop into"
This reverts commit a564ac0701.
2016-10-22 16:23:16 +02:00
aliaspider 5d36ccc60e gl_raster_font: fix line height when drawing multiple lines. 2016-10-22 11:42:36 +01:00
twinaphex 63f2c7d3c3 (Dutch) More translation work 2016-10-22 07:47:24 +02:00
twinaphex b9ff389019 (Dutch) Some translations 2016-10-22 07:40:50 +02:00
twinaphex a564ac0701 input_keys_pressed - start splitting up big for loop into
optimized smaller parts
2016-10-22 07:05:19 +02:00
twinaphex 4d002ec682 Don't have to grab this 2016-10-22 06:33:15 +02:00
twinaphex 6226abb3f8 (input_driver.c) Small cleanups 2016-10-22 06:05:05 +02:00
twinaphex 8fbec2348e Move turbo button code to input_poll (should verify if
turbo buttons still work up to this point)
2016-10-22 06:00:42 +02:00
Brad Parker 8334567969 update jp translation 2016-10-21 23:55:45 -04:00
Brad Parker 24e08d440c sync JP translation with US 2016-10-21 23:42:00 -04:00
Brad Parker a9cf9b3d25 sync msg_hash_jp with change in us 2016-10-21 23:34:16 -04:00
twinaphex 0d3752e90f More translatable strings 2016-10-22 05:23:59 +02:00
Brad Parker 2d04675986 update jp translation 2016-10-21 23:22:37 -04:00
twinaphex e11b170173 Cleanups/more translation work 2016-10-22 05:13:37 +02:00
twinaphex 1b944c1cce Cleanups 2016-10-22 05:10:13 +02:00
twinaphex 149e7768a0 More translatable strings 2016-10-22 05:05:07 +02:00
twinaphex 9d3228e523 More translatable strings 2016-10-22 04:57:46 +02:00
twinaphex d6db2fe227 Change some strings 2016-10-22 04:52:46 +02:00
twinaphex 3334060b03 Add another translatable string 2016-10-22 04:49:04 +02:00
twinaphex 9de0ebe859 Make some more strings translatable 2016-10-22 04:47:50 +02:00
twinaphex e2de11a698 Cleanup some more strings 2016-10-22 04:23:40 +02:00
twinaphex 7479c238f4 Simplify two strings - do away with 'of' separator 2016-10-22 04:18:50 +02:00
twinaphex b923182e0b Pass settings pointer 2016-10-22 00:59:29 +02:00
twinaphex a96457b90d Further cleanups to runloop_iterate 2016-10-21 23:54:23 +02:00
twinaphex f648a11c0c Cleanups 2016-10-21 23:47:37 +02:00
twinaphex 6874035056 Further improve runloop_check_state 2016-10-21 23:45:56 +02:00
twinaphex 76daa32e13 Put RARCH_MOBILE ifdef around audio_block_frames 2016-10-21 23:33:20 +02:00
twinaphex e9766ce141 Cleanups 2016-10-21 23:30:34 +02:00
twinaphex 4109e17494 Reimplement runloop_check_state 2016-10-21 23:20:29 +02:00
Brad Parker 9afdde2f2c add jp translation for audio menu and a few others 2016-10-21 17:11:40 -04:00
twinaphex 47374bc719 Refactor runloop_check_state 2016-10-21 22:46:25 +02:00
twinaphex 88738b4ef5 Don't need to do analog dpad code for input_keys_pressed 2016-10-21 22:37:49 +02:00
twinaphex ee8176772d Move state tracker nput code to input/input_driver.c 2016-10-21 22:19:35 +02:00
Twinaphex 43f0ea159b Merge pull request #3840 from aliaspider/master
fix some memory corruption issues in freetype.c
2016-10-21 22:06:04 +02:00
twinaphex aa795a9238 input_keys_pressed - small cleanup 2016-10-21 22:04:20 +02:00
aliaspider 1a60b77749 remove unused variable. 2016-10-21 20:57:37 +01:00
aliaspider 150a0138d5 freetype.c: fix some memory corruption issues. 2016-10-21 20:55:36 +01:00
twinaphex 6b30c41595 Simplify input_keys_pressed 2016-10-21 21:12:12 +02:00
twinaphex 7dcb57f22d Prevent some null pointer dereferences 2016-10-21 20:47:11 +02:00
twinaphex b95ec0d28e Make sure this string is null-terminated 2016-10-21 20:14:51 +02:00
twinaphex 35ba7fb2c4 Prevent implicit and superfluous memset 2016-10-21 20:04:56 +02:00
twinaphex 42053a82e1 Prevent some implicit memsets 2016-10-21 19:39:51 +02:00
twinaphex 7b7a0e20cc Avoid memset with menu_event function 2016-10-21 19:36:46 +02:00
twinaphex cb772047ff Prevent some more memsets 2016-10-21 19:32:44 +02:00
twinaphex 0ef96ddbbc Try to avoid memset in font_renderer_update_atlas 2016-10-21 19:25:37 +02:00
Twinaphex 6a404b0c42 Prevent warning with CoreText font driver 2016-10-21 19:15:57 +02:00
twinaphex aca8970e79 CXX_BUILD fixes 2016-10-21 19:14:48 +02:00
twinaphex 56d427df65 C89_BUILD fixes 2016-10-21 19:12:06 +02:00
Twinaphex 7050ecf287 Remove unneeded variables 2016-10-21 19:07:28 +02:00
Twinaphex 84d750bae1 Merge pull request #3839 from aliaspider/master
add unicode support for the freetype font renderer and gl_raster_font.
2016-10-21 19:05:46 +02:00
Brad Parker c2dbd4e6db update jp translation 2016-10-21 13:01:09 -04:00
aliaspider 28c2dcf253 (font driver) update freetype with unicode support (up to U+FFFF) using
a dynamic atlas.
2016-10-21 17:31:53 +01:00
aliaspider 6f81a19f60 (GL) update font driver to support a dynamic atlas. 2016-10-21 17:28:44 +01:00
aliaspider e3bfb617e4 (font driver) add a .dirty flag to struct font_atlas. 2016-10-21 17:25:21 +01:00
twinaphex c7f05f9318 Rename 'at cost of' to 'at the cost of' 2016-10-21 16:08:56 +02:00
twinaphex d0851d28dc Add sublabel 2016-10-21 06:56:11 +02:00
twinaphex 720cd4ff7e Add more sublabels 2016-10-21 06:52:52 +02:00
twinaphex f3ad815dd9 Prevent implicit memsets 2016-10-21 06:15:20 +02:00
twinaphex 546845c577 Prevent implicit memsets 2016-10-21 06:10:58 +02:00
twinaphex c3ab8800f4 Prevent implicit memsets 2016-10-21 05:57:40 +02:00
Brad Parker c7658dcf4a jp translations 2016-10-20 23:26:52 -04:00
Brad Parker d1ffffdafc add settings/driver/video jp translations 2016-10-20 23:26:52 -04:00
twinaphex 5fab3e2246 Update GLSM 2016-10-21 05:07:30 +02:00
Twinaphex 05eca7be82 Merge pull request #3838 from loganmc10/patch-1
Fix for zarch menu
2016-10-21 04:45:40 +02:00
twinaphex e80ad9c0b0 Don't grab settings pointer 2016-10-21 04:42:57 +02:00
Logan McNaughton 1717e8c938 Fix for zarch menu 2016-10-20 20:29:46 -06:00
twinaphex 370b18e95b Cleanup 2016-10-21 04:27:14 +02:00
twinaphex 34f0a4f49f Simplify runloop_check_state 2016-10-21 04:11:07 +02:00
twinaphex c6ae8a527c Cleanups 2016-10-21 04:03:48 +02:00
twinaphex b4e85b9bbd Cleanups 2016-10-21 03:58:16 +02:00
twinaphex 2350ef9234 Get rid of runloop_ctl actions 2016-10-21 03:46:17 +02:00
Brad Parker 2f61d4db8c add missing strings to jp translation file 2016-10-20 21:16:23 -04:00
Brad Parker 27db712914 missing endif 2016-10-20 21:16:23 -04:00
Brad Parker 1dddb54173 initial japanese translation 2016-10-20 21:16:23 -04:00
twinaphex b13a14d923 (runloop.c) Cleanups 2016-10-21 02:56:02 +02:00
twinaphex 1822726452 Cleanups 2016-10-21 02:52:01 +02:00
twinaphex eeb3d5e137 Cleanups 2016-10-21 02:05:43 +02:00
twinaphex 7241f1476c Cleanups 2016-10-21 01:51:50 +02:00
twinaphex 5ed214e5eb Cleanups 2016-10-21 01:50:46 +02:00
twinaphex 5621d258f8 (runloop.c) Cleanups 2016-10-21 01:44:14 +02:00
twinaphex f3fd254bcd Add sublabels 2016-10-21 01:29:54 +02:00
twinaphex 323ea2fa83 Add sublabels 2016-10-21 01:05:47 +02:00
twinaphex 3a6f9c4967 Update string 2016-10-20 21:34:00 +02:00
twinaphex cb60886530 Update string 2016-10-20 21:33:48 +02:00
twinaphex 7cce75f552 Add sublabel settings 2016-10-20 20:52:20 +02:00
twinaphex fbf74565bd Fix string 2016-10-20 19:52:32 +02:00
twinaphex e1d50a91a0 Add more sublabels 2016-10-20 19:50:25 +02:00
twinaphex 68a5f33ebd Add more sublabels 2016-10-20 19:42:42 +02:00
twinaphex 7e0cadfac1 Create MENU_ENUM_SUBLABEL_FPS_SHOW 2016-10-20 19:28:45 +02:00
Jean-André Santoni 6420f9414f (XMB) Basic word wrapping 2016-10-20 19:15:21 +02:00
twinaphex ad465cc5a4 Prevent more implicit memsets 2016-10-20 18:36:01 +02:00
twinaphex a9ce430ed6 Prevent some implicit memsets 2016-10-20 18:33:25 +02:00
twinaphex e4fd727687 More translated strings 2016-10-20 18:23:34 +02:00
twinaphex ce7cb96e99 Add more translatable strings 2016-10-20 18:08:31 +02:00
twinaphex 09fd2fa118 Make two strings translatable 2016-10-20 18:02:23 +02:00
twinaphex c135e5d688 Add dots at the end of strings 2016-10-20 18:00:54 +02:00
twinaphex 1b829e3159 Add another label 2016-10-20 17:45:35 +02:00
Twinaphex 838cae65c3 Merge pull request #3837 from lakkatv/master
(XMB) Fix label centering
2016-10-20 16:32:23 +02:00
Jean-André Santoni d027a558c0 (XMB) Fix label centering 2016-10-20 16:29:14 +02:00
twinaphex 8d28a5f2e9 Add audio settings sublabel 2016-10-20 16:19:14 +02:00
twinaphex 0a295998a2 Hook up sublabels 2016-10-20 16:10:20 +02:00
twinaphex c9c7aea184 Create sublabel callbacks 2016-10-20 15:57:35 +02:00
twinaphex fa8e59c1ff Create menu_entry_get_sublabel 2016-10-20 15:49:00 +02:00
twinaphex 5f552253c4 Add sublabel to menu_entry_t 2016-10-20 15:47:02 +02:00
Twinaphex 1471c9c299 Merge pull request #3835 from lakkatv/master
(XMB) Add a second font
2016-10-20 15:11:43 +02:00
Jean-André Santoni dff751420a (XMB) Add a second font 2016-10-20 09:52:17 +02:00
twinaphex 5a7da6d195 Simplify runloop_check_state 2016-10-20 06:34:39 +02:00
twinaphex 763f7ecb01 Replace some more runloop_ctl calls 2016-10-20 06:17:53 +02:00
twinaphex ea47660282 runloop_iterate - cut down on another runloop_ctl function call 2016-10-20 06:15:53 +02:00
twinaphex 3a4b638824 Simplifications - don't call runloop_ctl so much in runloop_iterate 2016-10-20 06:07:57 +02:00
twinaphex 606a203f29 Simplify runloop_iterate_time_to_exit 2016-10-20 06:02:08 +02:00
twinaphex 7ebac14e47 (D3D) Cleanups 2016-10-20 05:36:02 +02:00
twinaphex 41212b40c5 Remove DONT_HAVE_STATE_TRACKER 2016-10-20 05:11:35 +02:00
twinaphex 648877757f Revert "(D3D) Cleanups"
This reverts commit e50f8b061d.
2016-10-20 05:07:03 +02:00
twinaphex e50f8b061d (D3D) Cleanups 2016-10-20 05:05:37 +02:00
twinaphex 2cb7cc01bf (D3D) Cleanups 2016-10-20 05:00:20 +02:00
twinaphex e71f8baa5f d3d_overlay_render - cleanup 2016-10-20 04:51:48 +02:00
twinaphex a77f669805 Flesh out menu_display_d3d_bind_texture 2016-10-20 04:46:55 +02:00
twinaphex 2b576ebc1c Get rid of _XBOX defines 2016-10-20 04:37:13 +02:00
twinaphex 87fb7738f7 Cleanups 2016-10-20 03:42:57 +02:00
twinaphex e85fca7b75 input_state and input_keys_pressed - prevent some more
function calls
2016-10-20 03:39:32 +02:00
twinaphex ae7ccdfb92 Don't pass param to runloop_iterate_linefeed 2016-10-20 03:32:13 +02:00
Twinaphex 762a0faef3 Merge pull request #3834 from JuanVCS/master
Move 'Save Core/Game Overrides' to Quick Menu
2016-10-20 03:24:50 +02:00
twinaphex 5eb5195169 input_keys_pressed - get rid of unnecessary for loop 2016-10-20 03:10:36 +02:00
twinaphex 4a56ed618a Simplify input_keys_pressed 2016-10-20 02:39:45 +02:00
twinaphex 6746b06e73 input_driver_keys_pressed - merge into input_keys_pressed 2016-10-20 02:24:45 +02:00
twinaphex f08609361e input_keys_pressed - prevent extraneous leaf function calls 2016-10-20 02:22:48 +02:00
twinaphex 546dd0422f Don't call extraneous functions inside input_keys_pressed 2016-10-20 02:20:40 +02:00
twinaphex 4b807b482f Create runloop_poll 2016-10-20 02:17:17 +02:00
Twinaphex 335c9ec958 Merge pull request #3832 from heuripedes/font-things
(zarch) Fix build
2016-10-20 01:34:17 +02:00
Higor Eurípedes ec776a8d75 (zarch) Fix build 2016-10-19 20:13:01 -03:00
twinaphex 275814e291 Replace font_driver_free(NULL) calls with font_driver_free_osd()
inside video drivers
2016-10-20 00:39:33 +02:00
twinaphex 86eed6706e Prevent some null pointer dereferences 2016-10-20 00:30:34 +02:00
twinaphex ddb4f85430 netplay_common.c - Buildfix for MSVC 2016-10-19 18:09:59 +02:00
twinaphex 310de4698c Prevent some potential NULL pointer dereferences 2016-10-19 18:06:21 +02:00
twinaphex 6f06b0ad59 menu_animation.c - get rid of void * parameter 2016-10-19 04:52:38 +02:00
twinaphex 6a4d375e1d menu_dialog_push - prevent implicit memset 2016-10-19 04:16:25 +02:00
twinaphex 290c5ea2f5 Get rid of some implicit memsets 2016-10-19 04:02:00 +02:00
twinaphex 0b3b0a474b Fix CXX_BUILD 2016-10-19 03:59:32 +02:00
twinaphex 0f3081701b Cleanups 2016-10-19 03:55:57 +02:00
twinaphex 546a6aa64a audio_driver_flush - prevent implicit memset 2016-10-19 03:48:34 +02:00
twinaphex fac1527e5c Add HAVE_UPDATE_ASSETS for Apple builds 2016-10-19 02:38:40 +02:00
twinaphex b3e3bf13f7 Take out HAVE_ZARCH for PPC OSX 2016-10-19 02:34:01 +02:00
twinaphex 1dfbb7f3b7 Take out HAVE_ZARCH for OSX 2016-10-19 02:33:36 +02:00
Twinaphex 025a6d3817 Merge pull request #3827 from libretro/staging
Staging
2016-10-19 02:33:00 +02:00
twinaphex 9b68544992 Remove unused variables 2016-10-19 02:29:19 +02:00
Twinaphex 4e3ba81757 Merge pull request #3826 from heuripedes/font-things
Font things
2016-10-19 02:06:55 +02:00
Higor Eurípedes 46fe9fa29e Add multiple font support to material and xmb 2016-10-18 20:36:54 -03:00
Higor Eurípedes 6f2cb9742d (font) Create font_data_t and update font_driver_init_first() 2016-10-18 20:07:00 -03:00
Twinaphex 20716633fa Merge pull request #3824 from hgomez/ARMV8
Armv8
2016-10-18 20:39:00 +02:00
Henri Gomez 4b6f93f6eb ASIMD also in retroarch.c 2016-10-18 17:39:02 +02:00
Henri Gomez a2274d45be fix asimd detection 2016-10-18 17:18:33 +02:00
Henri Gomez eaed1c96be ASIMD detection on ARMv8 2016-10-18 17:10:43 +02:00
Henri Gomez f1b24f501d handle ARMv8 (aarch64) 2016-10-18 16:35:15 +02:00
twinaphex 584d9a5997 Prevent some more implicit memsets 2016-10-18 04:15:24 +02:00
twinaphex d1b90a8b6d Get rid of unused variable 2016-10-18 04:11:31 +02:00
twinaphex 778e742470 Make video_driver_is_threaded a public function 2016-10-18 04:05:51 +02:00
twinaphex 911acb8ead Create video_driver_is_threaded 2016-10-18 04:04:40 +02:00
Twinaphex 5c938320ed Merge pull request #3821 from heuripedes/tls
Add TLS support
2016-10-18 02:26:52 +02:00
Higor Eurípedes 330a8d7594 Make thread local storage optional 2016-10-17 21:24:03 -03:00
Higor Eurípedes dd36cff174 (retroarch.c) Add RARCH_CTL_IS_MAIN_THREAD 2016-10-17 20:50:19 -03:00
Higor Eurípedes 471ff4a999 (libretro-common) Add thread local storage 2016-10-17 20:49:37 -03:00
Twinaphex d66bfc114e Merge pull request #3819 from heuripedes/master
(libretro-common) Fix sthread_isself() documentation
2016-10-18 00:26:05 +02:00
Higor Eurípedes 2109a13ce2 (libretro-common) Fix sthread_isself() documentation 2016-10-17 19:14:31 -03:00
twinaphex bb2de710c5 Attempt fix for Makefile.griffin 2016-10-17 23:53:06 +02:00
Twinaphex affd603251 Merge pull request #3817 from frangarcj/master
(VITA) Try to use NEON
2016-10-17 18:52:51 +02:00
Francisco José García García 81e7a60759 (VITA) Try to use NEON 2016-10-17 18:39:53 +02:00
Twinaphex dd2c3ab1ee Merge pull request #3815 from Brunnis/master
Implement support for video_max_swapchain_images setting
2016-10-17 16:21:53 +02:00
Mikael Brunnhede 2cb9c912f4 Implement support for video_max_swapchain_images setting. 2016-10-17 11:23:34 +02:00
Juan 248205d425 Move 'Save Core/Game Overrides' to Quick Menu 2016-10-17 01:24:57 -03:00
Twinaphex 2db6d4cc57 Merge pull request #3811 from frangarcj/master
(VITA) Temporal fix for clear screen
2016-10-16 17:56:33 +02:00
Francisco José García García 8e631df6c4 (VITA) Temporal fix for clear screen 2016-10-16 17:45:06 +02:00
Twinaphex f1df24e065 Merge pull request #3810 from Ezio-PS/master
(PS3) Set a more appropriated value to fix overscan on GLUI
2016-10-16 15:12:40 +02:00
Ezio-PS 83678c66b9 (PS3) Set a more appropriated value to fix overscan on GLUI 2016-10-16 14:42:40 +02:00
twinaphex df87fc7043 Cleanups - prevent implicit memsets 2016-10-16 02:00:59 +02:00
twinaphex f75a604ae8 Fix C89_BUILD 2016-10-16 01:51:07 +02:00
twinaphex d38d9f46a6 Prevent implicit memsets 2016-10-16 01:49:54 +02:00
twinaphex 546f01eea3 Prevent some more implicit memsets 2016-10-16 01:45:50 +02:00
twinaphex a4a1e96210 Prevent more implicit memsets 2016-10-16 01:40:29 +02:00
twinaphex 2b834ce9d8 (rpng) Prevent implicit memsets 2016-10-16 01:34:16 +02:00
twinaphex 051c103ea1 Prevent implicit memsets 2016-10-16 01:31:06 +02:00
twinaphex ecce60c6ae Prevent more implicit memsets 2016-10-16 01:27:22 +02:00
twinaphex 185d073c3e (configuration.c) Prevent implicit memsets 2016-10-16 01:25:31 +02:00
twinaphex e45531a09f (cheevos.c) Prevent implicit memsets 2016-10-16 01:23:59 +02:00
twinaphex b2dcd44c3a (input_driver.c) Prevent implicit memsets 2016-10-16 01:20:50 +02:00
twinaphex e97fb7d94a menu_event - avoid implicit memset 2016-10-16 01:15:27 +02:00
twinaphex b3f748ba18 Optimize menu_action_handle_setting 2016-10-16 01:09:37 +02:00
twinaphex ee0a9c9d98 menu_input_post_iterate - Prevent implicit memset 2016-10-16 01:04:46 +02:00
twinaphex ab3d3b1e3a menu_dialog.c - prevent implicit memset 2016-10-16 01:03:17 +02:00
twinaphex 3dc0e92cca Prevent more implicit memsets 2016-10-16 00:58:18 +02:00
twinaphex 70a7835b94 menu_entry.c - prevent implicit memsets 2016-10-16 00:53:51 +02:00
Twinaphex 984d527c1b Merge pull request #3806 from notnotme/fix/vita-menu-description
Added description for new entries in vita menu (us-jp)
2016-10-15 23:59:57 +02:00
Romain Graillot 78ef047b48 Added description for new entries in vita menu (us-jp) 2016-10-15 23:34:26 +02:00
Twinaphex 0b2dfc0a34 Merge pull request #3805 from notnotme/fix/glui-vita
Fix white on white font in glui
2016-10-15 22:47:47 +02:00
Romain Graillot 234469a7b1 Fix white on white font in glui 2016-10-15 21:27:47 +02:00
Francisco José García García 74a515e1b2 Merge pull request #3804 from notnotme/fix/vita_toggle_touch
Fix typo to make things cleaner
2016-10-15 15:24:06 +01:00
Romain Graillot 4abb3c22c1 Fix typo to make things cleaner 2016-10-15 16:15:28 +02:00
Twinaphex 455e6984db Merge pull request #3802 from frangarcj/master
Varius download / update content things
2016-10-15 15:38:44 +02:00
Francisco José García García 579897436d Merge pull request #3803 from notnotme/feature/vita_toggle_touch
Feature/vita toggle touch
2016-10-15 12:56:14 +01:00
Romain Graillot 755f1f6a95 Typo 2016-10-15 13:49:00 +02:00
Romain Graillot a64e497189 Renamed new settings to match change & cleaned code 2016-10-15 13:38:42 +02:00
Romain Graillot ade4e7857b Add possibility to switch touch surface on vita build 2016-10-15 13:28:35 +02:00
Francisco José García García 3bc92f6d95 (VITA) Disable options not available on VITA 2016-10-15 12:56:07 +02:00
Francisco José García García 7d24146fc7 Fix download content on not core updateable platforms 2016-10-15 12:55:23 +02:00
Francisco José García García b55176012e (VITA) Add app0 and thumbnails dir 2016-10-15 12:54:31 +02:00
Twinaphex aa049e55da Merge pull request #3798 from heuripedes/master
(qb) Try to find -lz if the zlib package doesnt exist
2016-10-15 01:42:00 +02:00
Higor Eurípedes f20925a329 (qb) Try to find -lz if the zlib package doesnt exist 2016-10-14 19:43:18 -03:00
Twinaphex c489f1a7a7 Merge pull request #3797 from frangarcj/master
(VITA) Add Backtouch enable option
2016-10-14 22:05:02 +02:00
Francisco José García García 1ea5a80d02 (VITA) Add Backtouch enable option 2016-10-14 21:57:18 +02:00
Twinaphex ca42110983 Merge pull request #3795 from fr500/master
This code seems redundant, it conflicts with overrides and there is n…
2016-10-14 21:33:06 +02:00
radius 70a59f99ca This code seems redundant, it conflicts with overrides and there is no real need to have these as settings.
With this removed patching works as expected with bsnes, snes9x with IPS, BPS and UPS and with and without overrides
2016-10-14 10:44:31 -05:00
Twinaphex 8da65e73f6 Update 2016-10-14 17:07:33 +02:00
twinaphex 6a0ed60121 khronos_int64_t/khronos_uint64_t are just int64_t/uint64_t, change
this up - this was preventing iOS 10 build from being compilable
2016-10-14 17:01:11 +02:00
Twinaphex 125bf24aed Merge pull request #3787 from joolswills/config_save
only save config when menu_show_start_screen is enabled if config_save_on_exit is also enabled
2016-10-14 16:27:38 +02:00
Twinaphex 30285734b5 Remove unused variable 2016-10-14 16:19:19 +02:00
twinaphex f10cfda93e Updates 2016-10-14 15:34:02 +02:00
twinaphex 3603cafbba Merged jeapostrophe patch for iOS 10 2016-10-14 15:32:41 +02:00
Twinaphex 1ae0c8e2c4 Merge pull request #3792 from Brunnis/master
Remove missed Vblank log printout, since it may cause prolonged performance degradation
2016-10-14 12:59:22 +02:00
Mikael Brunnhede 80dc3bec09 if 0 missed Vblank log printout code, since it may cause performance degradation. 2016-10-14 12:45:00 +02:00
Twinaphex 915aa7e8f1 Merge pull request #3791 from fr500/master
use existing console if available
2016-10-14 09:16:59 +02:00
Mikael Brunnhede ca5e20bcaf Remove missed Vblank log printout, since it may cause performance degradation. 2016-10-14 08:59:07 +02:00
radius 5cbb3f33f8 use existing console if available 2016-10-14 00:57:15 -05:00
Brad Parker fec6ed0964 remove zip requirement for archives downloaded from network, same for detecting cores for files when loading archive with core 2016-10-13 15:04:26 -04:00
Francisco José García García 8e329a2072 Merge pull request #3781 from frangarcj/master
(VITA) Working scanning content
2016-10-13 17:51:13 +01:00
Francisco José García García 4c19543427 (VITA) Workaround for scanning content 2016-10-13 18:00:40 +02:00
Jools Wills eac4fc981b only save config when menu_show_start_screen is enabled if config_save_on_exit is also enabled 2016-10-13 13:54:18 +01:00
twinaphex a4b90bcede Set msg[127] = 0 2016-10-13 13:33:51 +02:00
Twinaphex 54448f3688 Merge pull request #3786 from aliaspider/master
(3DS) fix gfx corruption when closing content.
2016-10-13 13:18:06 +02:00
aliaspider f9e7d4dc3f (3DS) fix gfx corruption when closing content. 2016-10-13 12:16:07 +01:00
Brad Parker a800ab68ee limit archive path exception only to databases that actually support archives 2016-10-12 16:16:39 -04:00
Brad Parker 88c8c49ef8 skip scanning of compressed files within archives if the core attached to this database supports archive files themselves 2016-10-12 16:14:00 -04:00
twinaphex 2fe10a0a23 Prevent Coverity warning 2016-10-12 13:44:27 +02:00
Jean-André Santoni ef04838b22 Merge pull request #3778 from lakkatv/master
Disable mouse by default on Lakka
2016-10-12 11:04:03 +02:00
Jean-André Santoni 5c11667764 Disable mouse by default on Lakka 2016-10-12 10:09:22 +02:00
Brad Parker de3081bca7 show parent directory option in case user gets stuck in an empty directory 2016-10-11 20:40:03 -04:00
Brad Parker e49c31fe78 fall gracefully back to the menu if a dynamic core could not be loaded 2016-10-11 20:28:36 -04:00
Brad Parker 2f74324ac9 do not repeat A and B buttons in menu 2016-10-11 20:13:50 -04:00
Twinaphex 600434b8bf Merge pull request #3776 from frangarcj/master
(VITA) Allow cores to define heap size
2016-10-11 09:51:52 +02:00
Francisco José García García adfbd233ee (VITA) Allow cores to define heap size 2016-10-11 09:40:55 +02:00
Brad Parker f0d1a733e3 fix 7z extraction endless loop 2016-10-11 02:07:21 -04:00
aliaspider a8aa78456c xmb: fix a crash.
xmb_node_allocate_userdata needs to be called for the list since is
generated with menu_entries_append_enum, which allocates action data for
each items. those would be otherwise misinterpreted as nodes.
2016-10-11 03:49:47 +01:00
Twinaphex 679078ce01 Merge pull request #3772 from aliaspider/master
(3DS) video driver updates.
2016-10-10 23:28:20 +02:00
aliaspider d48445fc1e (3DS) video driver:
- texture handling improvement.
- flush pending tasks while waiting for vsync.
2016-10-10 22:25:25 +01:00
aliaspider c78f697c16 (3DS) wrap texture coordinate swizzeling in a function. 2016-10-10 22:22:08 +01:00
aliaspider 1aafa29562 (3DS) xmb menu tweak. 2016-10-10 22:18:42 +01:00
twinaphex cb8aca97f5 (Emscripten) Add Reicast button 2016-10-10 22:42:44 +02:00
Twinaphex 6865689dad Merge pull request #3770 from t-paul/xdg-screensaver-fix
Fix handling of enable flag for xdg-screensaver.
2016-10-10 19:54:10 +02:00
Twinaphex f28c4115e9 Merge pull request #3771 from frangarcj/frangarcj-overlay-1
(VITA) Wait for rendering before free overlays
2016-10-10 19:53:10 +02:00
Francisco José García García bcfa865569 (VITA) Wait for rendering before free overlays 2016-10-10 19:35:14 +02:00
Torsten Paul d4a90f267d Fix handling of enable flag for xdg-screensaver. 2016-10-10 19:01:41 +02:00
Twinaphex 9627a6715a Merge pull request #3769 from GregorR/netplay-ad-server
Add a netplay advertisement server for LAN netplay detection
2016-10-10 18:35:16 +02:00
Gregor Richards 2e432b005e Casts for C++ compatibility. 2016-10-10 11:56:43 -04:00
Gregor Richards 5c206c89f0 Add a netplay advertisement server for LAN netplay detection. 2016-10-10 11:52:54 -04:00
Twinaphex f63c32d3d0 Merge pull request #3768 from frangarcj/master
Salamander and Retrodb
2016-10-10 11:55:05 +02:00
Francisco José García García 6ecbfbc22b (VITA) Enable database support 2016-10-10 11:43:05 +02:00
Francisco José García García b94bb2a8a9 (VITA) Add Salamander dist 2016-10-10 10:49:09 +02:00
Twinaphex 9561b55114 Merge pull request #3766 from heuripedes/master
(task_http) Don't use 100% CPU in threaded mode
2016-10-09 19:47:04 +02:00
Higor Eurípedes 5f883b7ad1 (task_http) Don't use 100% CPU in threaded mode
This task is network bound and the HTTP functions use non-blocking I/O,
so task_http_iterate_transfer() returns "too fast" and the worker thread
gets no rest.
2016-10-09 14:44:27 -03:00
Twinaphex fef48b9274 Merge pull request #3765 from GregorR/netplay-deinit
Making netplay disable when it deinits
2016-10-09 17:28:30 +02:00
twinaphex e1f7452087 (MSVC) Buildfix 2016-10-09 17:17:29 +02:00
twinaphex 2a139b7d72 Add frontend_driver_attach_console/frontend_driver_detach_console 2016-10-09 17:15:50 +02:00
twinaphex 940fbcd4fa (D3D W32 fonts) Fix fonts 2016-10-09 16:58:51 +02:00
Gregor Richards 2c1cd0d06b Netplay should disable when it deinits, so it doesn't auto-reconnect
when loading a new game.
2016-10-09 09:42:06 -04:00
twinaphex 82472c82ea (task_screenshot) Prevent implicit memsets 2016-10-09 10:43:16 +02:00
twinaphex d82055bc04 (libretro-common) net_compat.c - cleanup 2016-10-09 10:04:02 +02:00
twinaphex 481ebced22 Prevent implicit memsets 2016-10-09 09:56:03 +02:00
twinaphex 78a09be030 (menu_cbs_ok.c) Prevent implicit memsets 2016-10-09 09:23:00 +02:00
twinaphex 190f10d6bc (menu_displaylist.c) Prevent implicit memsets 2016-10-09 09:15:56 +02:00
twinaphex 8578e19903 playlist_read_file - prevent implicit slow memsets 2016-10-09 09:07:53 +02:00
twinaphex d078df7a37 Prevent implicit memsets 2016-10-09 09:05:41 +02:00
twinaphex 80339014a5 (input_config.c) Prevent implicit memsets 2016-10-09 08:58:44 +02:00
twinaphex 119479f705 (input_autodetect) Don't do implicit memsets of char variables 2016-10-09 08:55:17 +02:00
Andrés Suárez f0ce4389fd Merge pull request #3760 from fr500/master
make the console toggleable at runtime instead of compilation time
2016-10-08 15:35:53 -05:00
Andrés Suárez ec86556ce6 Merge pull request #3759 from hizzlekizzle/master
add slang shader menu entry to online updater
2016-10-08 15:35:44 -05:00
radius 9272355696 make the console toggleable at runtime instead of compilation time 2016-10-08 15:33:29 -05:00
hunterk bad0e9607c add slang shader menu entry to online updater 2016-10-08 15:16:01 -05:00
twinaphex 5f5571e241 (libretro-common) don't do implicit memset 2016-10-08 20:04:48 +02:00
twinaphex 9895ae0247 Get rid of more implicit memsets 2016-10-08 19:47:26 +02:00
twinaphex 407ef26788 remove more implicit memsets 2016-10-08 19:44:03 +02:00
twinaphex 989640ebf7 More cleanups; bind_right_compare_label was taking up a lot of CPU
time inside the menu
2016-10-08 19:34:27 +02:00
twinaphex 1cf2799a8a (MaterialUI) Remove some implicit memsets 2016-10-08 19:25:05 +02:00
twinaphex ec243713bd Get rid of some implicit memsets in menu/cbs 2016-10-08 19:16:25 +02:00
twinaphex 6b48c6ee7f (database_info.c) Remove implicit memsets 2016-10-08 18:44:24 +02:00
twinaphex b8f8f159c5 Get rid of unnecesary wrapper function 2016-10-08 18:41:51 +02:00
twinaphex 1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
twinaphex 81a7f7bf68 (menu/cbs) Avoid implicit memsets in performance-crucial areas 2016-10-08 18:23:10 +02:00
twinaphex f923c7ecd7 (RGUI) Avoid implicit memsets for path variables 2016-10-08 18:19:48 +02:00
twinaphex f7544d0fc1 Avoid implicit memsetting of path values in XMB 2016-10-08 18:17:33 +02:00
Twinaphex 1b3dd8e049 Merge pull request #3755 from heuripedes/master
(material) Reduce CPU usage in big lists by 3
2016-10-08 18:12:21 +02:00
Higor Eurípedes 392bcfd98b (material) Reduce CPU usage in big lists by 3
The program spent more time clearing rich_label and entry_value than
fetching it's value from the menu system and rendering it on the screen.
2016-10-08 11:33:44 -03:00
twinaphex 85135d64b6 Set debug logging of menu entries to 0 again 2016-10-08 15:05:46 +02:00
twinaphex b3a7d2a7bb Fix Recording Settings 2016-10-08 15:05:31 +02:00
twinaphex 3b1cf79c63 (X contexts) Cleanups 2016-10-08 14:37:26 +02:00
twinaphex f698e0cfac Add GL_CAPS_GLES3_SUPPORTED 2016-10-08 14:11:12 +02:00
twinaphex 1f99df6740 (GLX) Start adding hooks for MSAA 2016-10-08 14:00:06 +02:00
twinaphex 601aba72ea Start adding GLX_SAMPLE_BUFFERS/GLX_SAMPLES to X context 2016-10-08 10:05:58 +02:00
twinaphex 648a13b3b8 vec2 - same header guard as vec3 - fix 2016-10-08 09:19:27 +02:00
twinaphex d71a688685 (D3D9/Cg) Cleanups 2016-10-08 08:39:44 +02:00
aliaspider 4571ba3454 (3DS) enable database support. 2016-10-08 04:38:34 +01:00
aliaspider 4729c2be76 (3DS) font renderer: prevent calling DrawArray() with count==0. 2016-10-08 04:24:32 +01:00
aliaspider e4992bc6d0 (3DS) salamander build fix. 2016-10-08 02:35:54 +01:00
Andrés Suárez 5a94979b19 Merge pull request #3751 from aliaspider/master
(3DS) implement core loading for .cia builds.
2016-10-07 20:07:01 -05:00
aliaspider 4503e5fd22 add a CMD_EVENT_QUIT request to CMD_EVENT_RESTART_RETROARCH. 2016-10-08 01:51:09 +01:00
aliaspider 77e8cf8bb7 (3DS) implement core loading / salamander 2016-10-08 01:47:15 +01:00
aliaspider 577824f546 (3DS) add argv handling for .cia builds 2016-10-08 01:43:05 +01:00
aliaspider 4edbb48f34 (3DS) missing return value. 2016-10-08 01:17:48 +01:00
Twinaphex 9401e95607 Merge pull request #3750 from frangarcj/master
(VITA) Make salamander load args
2016-10-07 08:25:53 +02:00
twinaphex 37f3942985 (Vita) Hook up L3/R3 in autoconfig 2016-10-07 08:24:48 +02:00
Francisco José García García 20c580bcf8 (VITA) Make salamander load args 2016-10-07 08:24:27 +02:00
twinaphex 57f155dbc0 (Coverity) Fix dereference after null check warning 2016-10-06 05:20:14 +02:00
twinaphex 7d68a20a97 Silence Deference before null check warning (Coverity) 2016-10-06 05:17:22 +02:00
Twinaphex 151046db5a Merge pull request #3747 from GregorR/netplay-platform-quirks
Netplay platform quirks
2016-10-06 04:08:18 +02:00
Gregor Richards 6c15c0de3d Support for architecture-dependence serialization quirks in Netplay
As well as the implementation magic, we now send a platform magic in our
connection header. If the core reports platform dependence and the
platform magic differs relevantly, the connection will be refused.

Since netplay_send_info (client handshake) and netplay_get_info (server
handshake) were practically identical, they've also been merged into a
single netplay_handshake.
2016-10-05 21:12:42 -04:00
Gregor Richards 307ba5951e A bit more care about frame=0 input, which is always 0 2016-10-05 20:45:30 -04:00
Alcaro f92d34e183 Clarify this one. 2016-10-06 01:06:31 +02:00
Alcaro 46ab267f40 Merge pull request #3700 from GregorR/netplay-serialization-quirks
Serialization quirks
2016-10-06 00:59:14 +02:00
Twinaphex 2d7265e0d5 Merge pull request #3740 from GregorR/netplay-bugfixes
Netplay bugfixes
2016-10-05 16:10:18 +02:00
Gregor Richards e65a63e5d5 Add support for debugging core nondeterminism
This adds a debug flag to netplay_net (DEBUG_NONDETERMINISTIC_CORES)
which helps determine if a core has nondeterminism.
2016-10-05 07:58:01 -04:00
Gregor Richards 60153e7035 Ignore check_frames if CRCs are utterly inconsistent
This effectively disables check_frames if frame 1's CRC differs between
host and client. This is necessary because some important cores have
nondeterminism in core_run, thus mandating check_frames, while some
important cores have nondeterminism in core_serialize, thus mandating no
check_frames.
2016-10-05 07:55:30 -04:00
Gregor Richards 49b4143687 Reviving netplay_log_connection, i.e. connection messages on the host 2016-10-05 07:52:14 -04:00
Gregor Richards 8cfb4b573b Removing confusing "or C type" verbage 2016-10-04 23:07:36 -04:00
Gregor Richards 701cc5a18c Splitting endian and other platform savestate quirks. 2016-10-04 23:07:36 -04:00
Gregor Richards a636bac428 Style and clarity nits. 2016-10-04 23:07:36 -04:00
Gregor Richards 51683661e5 Changes to Netplay for the recent changes to quirks. 2016-10-04 23:07:36 -04:00
Gregor Richards 1483aa710f Changing the initialization quirk to communicate by retro_serialize and
the variable size quirk to use a core and front flag.
2016-10-04 23:07:36 -04:00
Gregor Richards 919897c464 Some style/clarity nits. 2016-10-04 23:07:35 -04:00
Gregor Richards fad6e2e87e Make quirks a bidirectional interface, so the frontend can refuse quirks
it doesn't support, in particular variable sized states.
2016-10-04 23:07:35 -04:00
Gregor Richards 90bd741786 Switching serialization quirks to uint64_t for consistency with other
bitfields
2016-10-04 23:07:35 -04:00
Gregor Richards 2c0eb77756 core_[un]serialize waits for initialization quirk. 2016-10-04 23:07:35 -04:00
Gregor Richards 3fa3fe0fcd Fixes for the other few Netplay initialization points 2016-10-04 23:07:35 -04:00
Gregor Richards 0d661ef6a2 Fix some backwards implementation in reporting serialization quirks 2016-10-04 23:07:35 -04:00
Gregor Richards 07a4ad791d Implemented Netplay initialization quirk 2016-10-04 23:07:35 -04:00
Gregor Richards 5676d0b848 Adding Netplay quirk for untransmittable savestates 2016-10-04 23:06:50 -04:00
Gregor Richards 44931586b7 Removing Netplay workarounds which will soon be replaced by quirks 2016-10-04 23:06:50 -04:00
Gregor Richards b974fa5718 Add a libretro environment for serialization quirks
The new environment RETRO_ENVIRONMENT_SET_SERIALIZATION_QUIRKS allows
cores to communicate any quirks their implementation of serialization
may exhibit. This is useful for distinguishing between serialization
implementations that are sufficient for netplay, rewind, regular use,
etc, as each of these have different requirements and it should be
possible to support a "good enough" serialization without breaking
frontend features.
2016-10-04 23:05:50 -04:00
Andrés Suárez cda0324627 Merge pull request #3738 from GregorR/netplay-check-frames
Being more careful with serialization
2016-10-04 21:53:45 -05:00
Andrés Suárez bbf69f5ed7 Merge pull request #3739 from GregorR/netplay-check-frames-default
Set check_frames to 30 by default
2016-10-04 21:53:32 -05:00
Gregor Richards 2218b7baec Setting check_frames to 30 by default. 2016-10-04 22:48:37 -04:00
Gregor Richards 68cee3b409 Being more careful with serialization 2016-10-04 22:24:33 -04:00
Twinaphex db8eb903aa Merge pull request #3737 from frangarcj/master
(VITA) Disable Back Touch if in menu
2016-10-05 02:00:40 +02:00
Twinaphex 183dc914c4 (Cocoa) Add stub scrollWheel callback 2016-10-05 02:00:11 +02:00
Francisco José García García d32bd63d3d (VITA) Disable Back Touch if in menu 2016-10-05 01:34:26 +02:00
Brad Parker 97a5e77181 mute state-related OSD messages when auto-saving 2016-10-04 17:58:16 -04:00
Twinaphex 49d520c5d5 Merge pull request #3736 from aliaspider/master
(3DS) more fixes.
2016-10-04 21:50:15 +02:00
aliaspider d87adcd226 (3DS) fix texture combiner stages in 32bit mode. 2016-10-04 20:38:00 +01:00
aliaspider ad3ca8d04f (3DS) explicitly disable libretro_db and zarch in the non-griffin build 2016-10-04 19:42:25 +01:00
aliaspider e9618dd6a0 (3DS) opendir with an empty string isn't returning NULL as it should. 2016-10-04 19:40:36 +01:00
Twinaphex 284a56dc78 Merge pull request #3735 from GregorR/netplay-in-core
Netplay in core
2016-10-04 19:51:11 +02:00
Gregor Richards 8418196557 Make core_unserialize universally inform Netplay 2016-10-04 13:44:35 -04:00
Gregor Richards 71873e8c97 Moving Netplay pre- and post-frame behavior into core_run
This (mostly) prevents other paths from accidentally side-stepping
Netplay. Netplay itself now sets an in_netplay variable to avoid
self-recursion in its own core_run calls.
2016-10-04 13:40:07 -04:00
Brad Parker 1f27773fe0 C89_BUILD fix 2016-10-04 12:15:46 -04:00
Twinaphex 97856ea391 Merge pull request #3734 from aliaspider/master
(3DS) video driver: add some checks for the validty of incoming data.
2016-10-04 17:00:34 +02:00
aliaspider 23eef2c6ee (3DS) video driver: (cont.) 2016-10-04 15:55:30 +01:00
aliaspider c4daa087d4 (3DS) video driver: add some checks for the validty of incoming data. 2016-10-04 15:49:55 +01:00
Twinaphex 7124875d2d Merge pull request #3733 from orbea/tcc
tcc doesn't support -MMD
2016-10-04 16:34:33 +02:00
Brad Parker e5970e8095 prevent divide by zero 2016-10-04 08:35:08 -04:00
twinaphex 6c454bb468 content_undo_save_state - abitilityability to return false 2016-10-04 11:19:24 +02:00
twinaphex 166e300471 Plug more memor yleaks 2016-10-04 11:16:02 +02:00
twinaphex f06ea9ba70 Fix 17 new memory leaks catched by Coverity 2016-10-04 11:02:01 +02:00
twinaphex d3933f04c6 Simplify "Remove" messageS 2016-10-04 10:54:16 +02:00
twinaphex 39fd6560f6 (input_autodetect.c) Cleanups 2016-10-04 10:40:37 +02:00
twinaphex eeae9a186f Revert "Use string_is_equal"
This reverts commit 49a290c3e6.
2016-10-04 10:29:32 +02:00
twinaphex 49a290c3e6 Use string_is_equal 2016-10-04 10:24:17 +02:00
twinaphex 7d06e6c48f Use string_is_equal instead of strncmp 2016-10-04 10:18:17 +02:00
twinaphex 72caa55e7b Cleanup input_autodetect.c 2016-10-04 10:16:52 +02:00
twinaphex 19863e4174 autosave_lock/autosave_unlock - no longer require HAVE_THREADS ifdefs 2016-10-04 09:56:58 +02:00
twinaphex b3d4fe398b autoconfig should be fixed now for XInput - wrong binds 2016-10-04 08:21:32 +02:00
twinaphex 8b889084f6 Get rid of ret variable 2016-10-04 07:41:58 +02:00
twinaphex f8d64b703e Simplify input_autoconfigure_joypad_from_conf_internal 2016-10-04 07:39:41 +02:00
twinaphex 8cdeb60a89 Rearrange builtin file 2016-10-04 07:35:29 +02:00
twinaphex c2bb410d8d Take out HAVE_BUILTIN_AUTOCONFIG - always include it 2016-10-04 07:33:57 +02:00
Twinaphex b0d63f0775 Remove unused variables 2016-10-04 06:09:59 +02:00
Twinaphex da840722ee Merge pull request #3726 from GregorR/netplay-menu-clarity
Clarifications to Netplay menu and removing obsolete setting
2016-10-04 06:08:22 +02:00
Brad Parker 1c9a54db27 ignore return value of init_content_file_extract, fixes exit/crash when we can't load the content. (non-compressed corrupt content returns true anyway) 2016-10-03 22:23:39 -04:00
Gregor Richards 07138de69c Add todos for changed strings in other languages 2016-10-03 18:11:24 -04:00
Gregor Richards ff8590b151 Moving around netplay disable/enable to make sure mode switches work
properly.
2016-10-03 17:40:14 -04:00
Gregor Richards 3953018547 Clarifications to Netplay menu and removing obsolete setting
This commit:
 * Reorders the Netplay settings menu to put more useful options at the
   top.
 * Renames the swap_input setting from "Swap Netplay Input", which is
   meaningless and confusing, to "Netplay P2 Uses C1", which is oddly
   truncated but at least true.
 * Removes the is_client setting altogether, as that's no longer how
   client vs. server mode is determined (each are separate options when
   enabling Netplay)
2016-10-03 17:28:20 -04:00
Brad Parker fc1f2cdcf4 only scan the content databases that support the file's extension 2016-10-03 16:09:10 -04:00
twinaphex 49e54356f4 Fix relative path 2016-10-03 18:24:28 +02:00
twinaphex 8e0d947dd5 Rename current_core_explicitly_set 2016-10-03 16:42:08 +02:00
twinaphex 1f9559cb7a Get rid of path_get_core_size 2016-10-03 16:17:08 +02:00
Twinaphex 8963db204d Merge pull request #3721 from GregorR/netplay-overrides
Making netplay-related settings overrides behave consistently
2016-10-03 16:11:51 +02:00
Twinaphex faba2bfe0b Merge pull request #3722 from GregorR/netplay-savestate-task
Reimplemented savestate task informing Netplay
2016-10-03 16:11:25 +02:00
twinaphex dccdd521ea Cleanups 2016-10-03 16:07:37 +02:00
twinaphex 9d5684639e paths.c - cleanups 2016-10-03 16:05:07 +02:00
twinaphex 46699fcf80 Cleanup 2016-10-03 16:00:55 +02:00
twinaphex ba93600b29 Remove path_get_default_shader_preset 2016-10-03 15:59:51 +02:00
twinaphex 1626439c3c Get rid of path_get_core_ptr 2016-10-03 15:46:07 +02:00
twinaphex f80043adde Create path_get_ptr 2016-10-03 15:44:20 +02:00
twinaphex f66e447139 Get rid of path_get_content 2016-10-03 15:43:03 +02:00
twinaphex 25f27c3f4c Get rid of path_get_content 2016-10-03 15:39:57 +02:00
Gregor Richards 35666e21ae Reimplemented savestate task informing Netplay 2016-10-03 08:47:47 -04:00
Gregor Richards 4f489fb793 Making netplay-related settings overrides behave consistently 2016-10-03 08:31:21 -04:00
Francisco José García García 1ef2786aed Merge pull request #3719 from d3m3vilurr/vibrator-pstv
(Vita) Improve vibration values
2016-10-03 10:10:05 +01:00
Sunguk Lee 8d09e0d421 (Vita) Improve vibration values
- Can vibrate both motors at same time
- DS3 & DS4 have difference motor speed range
- Clear vibration settings at disconnect controller
2016-10-03 18:03:20 +09:00
twinaphex ba1f0a31e9 Cleanups 2016-10-03 08:24:35 +02:00
twinaphex 94e245315b Create dir_set function 2016-10-03 08:20:33 +02:00
twinaphex a4d48688c6 Create generic functions for dirs.c 2016-10-03 08:15:41 +02:00
twinaphex 849ce80c50 Create dir_get_size 2016-10-03 08:07:52 +02:00
twinaphex 6d821ad6a4 Enable mouse by default now for Linux/OSX/Windows 2016-10-03 06:53:00 +02:00
twinaphex 91b1889873 (X11) Mouse input is no longer registered when we are on the
titlebar of the window or we are no longer inside the window
2016-10-03 06:50:00 +02:00
Twinaphex 7f1c9b33ef Merge pull request #3717 from GregorR/netplay-menu-link
Add a link from the netplay menu to netplay settings
2016-10-03 06:27:35 +02:00
twinaphex 844130efe2 Buildfix for Android/Vita 2016-10-03 06:25:30 +02:00
Gregor Richards 333efdf788 And a couple more debugging lines deleted... 2016-10-02 23:29:50 -04:00
Gregor Richards 25ed0dc5d6 Remove a line used during debugging 2016-10-02 23:29:08 -04:00
Gregor Richards 159a45187a Add a link from the netplay menu to netplay settings 2016-10-02 23:27:12 -04:00
twinaphex 8953255b6b Another buildfix for MSVC 2016-10-03 05:17:37 +02:00
twinaphex 95e2b6ac51 BUildfix warning 2016-10-03 05:17:09 +02:00
twinaphex 5b6f1642f0 (D3D) Buildfix 2016-10-03 05:13:39 +02:00
twinaphex 92e76f8a19 Add HAVE_NETWORKING ifdef 2016-10-03 05:06:01 +02:00
Brad Parker e50414db74 make screenshots into a real task 2016-10-02 22:41:46 -04:00
Twinaphex fb117b9260 Remove unused variables 2016-10-03 04:34:08 +02:00
Twinaphex 2e70d0284e Merge pull request #3716 from GregorR/netplay-no-global-obj
Get rid of global->netplay
2016-10-03 04:24:12 +02:00
twinaphex 5d77cd431c (d3d_common.cpp) Cleanups 2016-10-03 04:19:19 +02:00
Gregor Richards e41ac34561 Get rid of global->netplay
Moved settings values into settings->netplay, and global->netplay.enable
is moved into netplay itself, and is no longer a configuration value
whatsoever, as that conflicts with the behavior of the netplay menu.
2016-10-02 22:13:34 -04:00
Twinaphex f6a1eb65bb Cleanups 2016-10-03 03:30:34 +02:00
Twinaphex 5aa856d7cd remove unused variables 2016-10-03 03:24:09 +02:00
Brad Parker 06f06d512b finish task if state file cannot be loaded 2016-10-02 19:31:07 -04:00
Brad Parker 795fd0cfa3 add blocking task type that only allows one instance in the queue 2016-10-02 19:05:30 -04:00
Brad Parker 88d70d7da6 whitespace 2016-10-02 19:05:30 -04:00
Brad Parker cf3ae942c2 make undo_save_state a task 2016-10-02 19:05:30 -04:00
Brad Parker 18290ae777 comment 2016-10-02 19:05:30 -04:00
Brad Parker eac3ca770a load/save state are now actual tasks 2016-10-02 19:05:30 -04:00
twinaphex e9f463154c (3DS/CTR) Image must be exactly 48x48 2016-10-02 22:40:56 +02:00
Twinaphex 151c4847ed Merge pull request #3714 from 44100hertz/3ds_banners
3ds icons and banners
2016-10-02 20:43:54 +02:00
twinaphex 23ed63f33a move device_aspect variable 2016-10-02 20:37:14 +02:00
Sam Pagenkopf 0e88b3cdab added missing fba alpha render 2016-10-02 13:16:24 -05:00
Sam Pagenkopf 1bdd20672f updated makefile to reflect new banners 2016-10-02 12:55:21 -05:00
Sam Pagenkopf 5d0c1af0de remade 3ds icons and banners 2016-10-02 12:55:03 -05:00
Twinaphex 50a6c53432 Merge pull request #3711 from gizmo98/german-translation
Correct german translation
2016-10-02 19:54:08 +02:00
gizmo98 e9e2ee9b19 Correct german translation 2016-10-02 19:51:30 +02:00
orbea faa53a106b tcc doesn't support -MMD 2016-10-02 08:31:19 -07:00
Francisco José García García ad224f2580 Merge pull request #3708 from frangarcj/master
(VITA) Increase thread stack, fixes overlays
2016-10-02 15:01:01 +01:00
Francisco José García García ba619c1582 (VITA) Increase thread stack, fixes overlays 2016-10-02 15:58:44 +02:00
Francisco José García García ce1164c939 Merge pull request #3707 from frangarcj/master
Various things
2016-10-02 13:05:36 +01:00
Francisco José García García 6dabe48e88 (VITA) Change DEBUG define 2016-10-02 14:04:09 +02:00
Francisco José García García 1a967c42d7 (VITA) Remove warnings 2016-10-02 14:03:15 +02:00
Francisco José García García 59d13c7131 (VITA) Fix actuator 2016-10-02 14:02:37 +02:00
twinaphex 69e7741722 Show Recording Settings again 2016-10-02 07:54:56 +02:00
twinaphex c72a9eaecb Add RARCH_DIR_CURRENT_SAVEFILE/RARCH_DIR_CURRENT_SAVESTATE 2016-10-01 23:32:44 +02:00
twinaphex 9050f75fc8 Create dir_is_empty 2016-10-01 23:30:09 +02:00
twinaphex bdf379d568 Create dir_clear 2016-10-01 23:26:59 +02:00
twinaphex 72fff59efd Add rarch_dir_type 2016-10-01 23:22:40 +02:00
Alcaro a42b847c56 +1 is better than the alternative. 2016-10-01 19:48:28 +02:00
Alcaro 3665e11f83 Remove +1 shenanigans 2016-10-01 19:32:02 +02:00
Alcaro 160444845d Fix #3704 2016-10-01 19:25:53 +02:00
twinaphex 7bd38d93f0 (X11) Cleanup x11_alive 2016-10-01 12:12:58 +02:00
twinaphex 7d4e7da3ac Add more enums for path settings 2016-10-01 11:47:51 +02:00
twinaphex 9257844a8b Disable cheevos as well when --disable-networking is set 2016-10-01 10:23:01 +02:00
twinaphex f100dde751 (Wii) Buildfixes 2016-10-01 09:52:07 +02:00
twinaphex bf035b634b Updates 2016-10-01 09:49:15 +02:00
twinaphex 8321978d4d Implement dir_set_current_savefile/dir_set_current_savestate 2016-10-01 09:36:04 +02:00
twinaphex eb90fe9d83 Move directories to dirs.c 2016-10-01 09:06:55 +02:00
twinaphex 346c1d356a paths.c - cleanups 2016-10-01 09:03:41 +02:00
twinaphex 50bfd81e42 Create dir_get_current_savefile and move it to dirs.c 2016-10-01 08:55:20 +02:00
twinaphex e17d567b8d Remove this 2016-10-01 08:41:52 +02:00
twinaphex d376ea0c9d Merge fixes 2016-10-01 08:24:02 +02:00
twinaphex 8f163e6972 Revert "Move global->name to paths.c"
This reverts commit 6ee7b733aa.
2016-10-01 08:18:23 +02:00
twinaphex 243dc139d2 Revert "Create path server and add to paths.c"
This reverts commit 00a1e3716a.
2016-10-01 08:17:44 +02:00
twinaphex 7d20224ff0 Revert "Move path settings to paths.c"
This reverts commit 3a7e9a7052.
2016-10-01 08:17:13 +02:00
twinaphex 0f26cade79 Revert "Update GX/WIn32 builds"
This reverts commit 28a96fbb05.
2016-10-01 08:17:07 +02:00
twinaphex c28de7d3ff Revert "Create dir_clear"
This reverts commit d7d49c36c7.
2016-10-01 08:16:58 +02:00
twinaphex 8409d81e8e Revert "Create dir_is_empty"
This reverts commit fa469c4dcc.
2016-10-01 08:16:19 +02:00
twinaphex 8458a039ca Revert "Create dir_get"
This reverts commit db3738babb.
2016-10-01 08:16:13 +02:00
twinaphex 2583390d31 Revert "Create dir_set"
This reverts commit d973e528f6.
2016-10-01 08:16:07 +02:00
twinaphex 1f4e50a72b Revert "Create dir_get_ptr"
This reverts commit ab7bc7755e.
2016-10-01 08:15:57 +02:00
twinaphex 43466d0fa6 Revert "(paths.c) Cleanups"
This reverts commit bd77ac145b.
2016-10-01 08:15:51 +02:00
twinaphex a9c7c453e0 Revert "Create path_get_ptr"
This reverts commit 0e3fbb615e.
2016-10-01 08:15:33 +02:00
twinaphex 5a3e5f85a5 Revert "Add record dirs to dirs.c"
This reverts commit fe3281e05d.
2016-10-01 08:15:07 +02:00
twinaphex 4212c42c56 Revert "Remove header include from runloop.h"
This reverts commit 973ec601f0.
2016-10-01 08:14:17 +02:00
twinaphex 53bd29bfad Revert "Cleanups"
This reverts commit 55efca9b23.
2016-10-01 08:14:03 +02:00
twinaphex 4fe8cf3811 Revert "(Win32) Buildfix"
This reverts commit b73d183c44.
2016-10-01 08:13:41 +02:00
twinaphex 766653150c Revert "Fix non-HAVE_DYNAMIC"
This reverts commit b3dd8cd72b.
2016-10-01 08:13:16 +02:00
twinaphex bbe4943795 Add log for RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY 2016-10-01 06:41:46 +02:00
twinaphex 4567fdef52 Take out libretro_device from global struct 2016-10-01 06:22:57 +02:00
twinaphex 2dcc5b8e43 Add LIBRETRO_DEVICE to unset/set/is functions for override settings 2016-10-01 06:14:30 +02:00
twinaphex edc3fa9024 Add to is_set 2016-10-01 06:06:07 +02:00
twinaphex 67432fde57 Add void * param to is_set 2016-10-01 06:05:08 +02:00
twinaphex 107a962171 Add RARCH_OVERRIDE_SETTING_LIBRETRO_DEVICE 2016-10-01 06:02:18 +02:00
twinaphex 3592b35573 Add second param to override_set 2016-10-01 05:51:03 +02:00
twinaphex 28630b6fcf Get rid of ifndef 2016-10-01 05:40:33 +02:00
twinaphex 2e75aac7f7 (audio_driver.c) Cleanup 2016-10-01 05:36:36 +02:00
twinaphex 3c95381050 Create more static variables 2016-10-01 04:56:53 +02:00
twinaphex 77d9789baf (audio_driver.c) Move variables out of struct 2016-10-01 04:48:48 +02:00
twinaphex a777f52423 (video_driver.c) Simplify 2016-10-01 04:28:18 +02:00
twinaphex 35c52b1602 Move frame_cache variables outside of video_driver_state struct 2016-10-01 04:24:57 +02:00
twinaphex ae607a29b7 Take variables out of video_state 2016-10-01 04:21:33 +02:00
Twinaphex f5a38977d8 (OSX) Don't register click if we are on titlebar (we detect this for now
if y of location in windows' position is less than 0
2016-10-01 02:01:01 +02:00
twinaphex 5ff13df40f Move global->record to record_driver.c 2016-10-01 00:47:05 +02:00
Twinaphex 6d47b57af7 Merge pull request #3699 from GregorR/netplay-remove-workarounds
Removing Netplay workarounds in anticipation of quirks API
2016-09-30 22:07:24 +02:00
Twinaphex cd359bb7a8 Merge pull request #3698 from d3m3vilurr/vita-backtouch-to-extra-button
(Vita) Back touch screen use L2/R2/L3/R3
2016-09-30 22:07:11 +02:00
Gregor Richards 01d379066e Removing Netplay workarounds in anticipation of quirks API 2016-09-30 16:00:49 -04:00
Sunguk Lee bd9db4ac55 (Vita) Back touch screen use L2/R2/L3/R3 2016-10-01 04:53:35 +09:00
twinaphex e7513bec62 (Win32) Buildfix 2016-09-30 21:21:32 +02:00
Twinaphex ded68451ce Merge pull request #3697 from d3m3vilurr/vita-extend-input
(Vita) Improve controller features of PSTV
2016-09-30 19:33:04 +02:00
Sunguk Lee 90678dd3de (Vita) Autodetect connection of controllers on PSTV 2016-10-01 02:26:28 +09:00
aliaspider 056224bf50 (3DS) avoid using ctrGuCopyImage during font init for now. (fixes freeze
on cia builds)
2016-09-30 16:16:18 +01:00
Sunguk Lee a2d9ca3e47 (Vita) Support L2/R2 on PSTV 2016-09-30 23:53:13 +09:00
twinaphex d53d1faad5 Use string_is_empty 2016-09-30 09:00:04 +02:00
twinaphex 91170722e6 Try to silence Coverity warning 2016-09-30 08:58:57 +02:00
twinaphex 4d76503efd Move around global variable 2016-09-30 08:56:14 +02:00
twinaphex b3dd8cd72b Fix non-HAVE_DYNAMIC 2016-09-30 08:54:52 +02:00
twinaphex 967a463bc7 configuration.c - cleanup 2016-09-30 08:27:26 +02:00
twinaphex 13cf804a70 Fix signed/unsigned mismatch warnings 2016-09-30 08:23:24 +02:00
twinaphex b73d183c44 (Win32) Buildfix 2016-09-30 08:19:36 +02:00
twinaphex da64bb0f0d (ui_cocoa) Cleanup main loop 2016-09-30 08:17:18 +02:00
twinaphex 9d3d466092 Simplify main loops 2016-09-30 08:15:21 +02:00
twinaphex 55efca9b23 Cleanups 2016-09-30 07:49:15 +02:00
twinaphex 973ec601f0 Remove header include from runloop.h 2016-09-30 07:46:58 +02:00
twinaphex fe3281e05d Add record dirs to dirs.c 2016-09-30 07:45:04 +02:00
twinaphex 0e3fbb615e Create path_get_ptr 2016-09-30 07:33:08 +02:00
twinaphex bd77ac145b (paths.c) Cleanups 2016-09-30 07:27:10 +02:00
twinaphex ab7bc7755e Create dir_get_ptr 2016-09-30 07:21:33 +02:00
twinaphex d973e528f6 Create dir_set 2016-09-30 07:15:30 +02:00
twinaphex db3738babb Create dir_get 2016-09-30 07:11:52 +02:00
twinaphex fa469c4dcc Create dir_is_empty 2016-09-30 07:06:27 +02:00
twinaphex d7d49c36c7 Create dir_clear 2016-09-30 07:02:23 +02:00
twinaphex 28a96fbb05 Update GX/WIn32 builds 2016-09-30 06:39:47 +02:00
twinaphex 3a7e9a7052 Move path settings to paths.c 2016-09-30 06:33:57 +02:00
twinaphex 00a1e3716a Create path server and add to paths.c 2016-09-30 06:22:56 +02:00
twinaphex 6ee7b733aa Move global->name to paths.c 2016-09-30 06:11:11 +02:00
twinaphex 1266c0609a Create path_is_empty 2016-09-30 04:43:16 +02:00
twinaphex 228886062b Create path_clear 2016-09-30 04:31:19 +02:00
twinaphex 1cf45d785f Turn path_set_names into static function 2016-09-30 04:19:57 +02:00
Twinaphex 5d717427c1 Merge pull request #3695 from GregorR/netplay-no-savestates-fix-deux
Somewhat fixing support for savestateless cores
2016-09-30 04:01:47 +02:00
twinaphex 7787475361 Relocate samples/utils 2016-09-30 02:49:10 +02:00
Gregor Richards f710303a40 Somewhat fixing support for savestateless cores
Without early saves we couldn't properly detect savestateless cores. We
still can't, really, but we can at least EVENTUALLY detect this
condition. netplay_net has been fixed to do so.
2016-09-29 20:48:39 -04:00
Twinaphex 721a04b71c Merge pull request #3693 from GregorR/netplay-default-delay-frames
Set delay_frames to 16 by default
2016-09-30 02:29:05 +02:00
Gregor Richards 7ab1f420d9 Set delay_frames to 16 by default. 2016-09-29 20:20:07 -04:00
Twinaphex 9392fca26a Merge pull request #3692 from GregorR/netplay-spectato-fix-deux
Fix spectator mode to work with the late-serialization workaround
2016-09-30 00:08:34 +02:00
Gregor Richards 5b62fbb355 Fix spectator mode to work with the late-serialization workaround 2016-09-29 17:28:01 -04:00
aliaspider 86d3e982ba add missing #ifdef HAVE_NETWORKING around core_set_netplay_callbacks() 2016-09-29 22:10:21 +01:00
Twinaphex 03215a831f Merge pull request #3690 from aliaspider/master
(3DS) add experimental font and menu_display drivers.
2016-09-29 21:33:08 +02:00
twinaphex 2c4da47bfd Move udp-test.c file around 2016-09-29 21:31:03 +02:00
twinaphex a1c2036769 Create samples/file/nbio 2016-09-29 21:28:56 +02:00
twinaphex 17ded1a9ac Move net/test to samples/net/test 2016-09-29 21:27:26 +02:00
aliaspider afd5e85a31 (3DS) add experimental font and menu_display drivers. 2016-09-29 20:14:12 +01:00
twinaphex e98b55fe3f Group some ifdefs together 2016-09-29 21:10:35 +02:00
twinaphex 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex c42deb4cd3 (cheevos.c) Further cleanups 2016-09-29 20:38:52 +02:00
twinaphex 9d439622c0 (cheevos.c) Cleanups 2016-09-29 20:35:26 +02:00
twinaphex 35c2c11a91 (frontend_salamander.c) Cleanup 2016-09-29 20:18:45 +02:00
twinaphex 190c417350 Remove stub function 2016-09-29 20:14:26 +02:00
twinaphex da5d43974a netplay_data is a void pointer no more 2016-09-29 20:11:46 +02:00
Twinaphex 19121dbee3 Merge pull request #3688 from GregorR/netplay-menu
Netplay menu
2016-09-29 19:36:13 +02:00
Brad Parker 54165bf7fb media cannot be a directory 2016-09-29 13:34:39 -04:00
Gregor Richards 5dba982cae All Netplay menu options are now internationalizable. 2016-09-29 13:24:56 -04:00
twinaphex d6b9c4f17a Prevent some Coverity warnings 2016-09-29 19:24:18 +02:00
Gregor Richards eb86bafece Better user feedback in the Netplay menu. 2016-09-29 13:13:50 -04:00
Gregor Richards 567da56048 Adding remaining netplay menu options
A couple fixes are still necessary for the client, in particular to
recover a "lost" hostname, but now it is possible to start server or
client mid-stream, and to disconnect intentionally.
2016-09-29 13:04:38 -04:00
Gregor Richards 03c9dab93a Adding a netplay menu
In this first cut, Netplay can be enabled "mid-stream", but not much
else is supported. Client reconnection and either-side disconnection are
listed in the menu but don't yet do anything.
2016-09-29 13:04:38 -04:00
Brad Parker b83d2529e2 break early if we run past the message length 2016-09-29 12:25:20 -04:00
radius 4dcd08c574 (ems) useless CDN is useless 2016-09-29 08:54:50 -05:00
radius 4e33f25328 (ems) useless CDN is useless 2016-09-29 08:49:31 -05:00
twinaphex 3b8ae65afb (Android) Re-enable Vulkan 2016-09-29 12:22:31 +02:00
twinaphex 5c4e3ad87e location_driver_ctl - return 'true' by default 2016-09-29 12:13:46 +02:00
twinaphex 3281c7a1a6 (runloop.c) Cleanups 2016-09-29 12:11:00 +02:00
twinaphex cae92ed91d (tasks) Cleanups 2016-09-29 12:02:45 +02:00
twinaphex dc915713dd Simplify task_push_overlay_load_default 2016-09-29 11:46:37 +02:00
twinaphex d79c28f13b task_overlay.c - cleanups 2016-09-29 11:35:22 +02:00
twinaphex c8dc941c42 iso_get_serial - cleanup 2016-09-29 11:10:52 +02:00
twinaphex a304b42f73 (task_database.c) Cleanup 2016-09-29 11:07:56 +02:00
twinaphex ebfd787aed database_info.h - Add retro_miscellaneous.h 2016-09-29 11:04:24 +02:00
twinaphex 1842e35b8d Cleanups 2016-09-29 11:03:59 +02:00
twinaphex cfe91125db Create database_info_get_current_element_name 2016-09-29 10:59:50 +02:00
twinaphex b286703a81 Cleanup task_database_handler 2016-09-29 10:55:50 +02:00
twinaphex 7e1639f33b Create database_info_set_type 2016-09-29 10:43:38 +02:00
twinaphex fc3c17547e Use database_info_get_type 2016-09-29 10:41:30 +02:00
twinaphex e32706581f Create database_info_get_type 2016-09-29 10:40:25 +02:00
twinaphex 24f34431ee Header include cleanups 2016-09-29 10:37:31 +02:00
twinaphex 32220c042b (video_driver.c) Style nit 2016-09-29 10:27:49 +02:00
twinaphex 1537ba312d Remove RUNLOOP_MSG_QUEUE_FREE 2016-09-29 10:22:46 +02:00
twinaphex d7a90dd9bb playlist.c - cleanups 2016-09-29 10:16:48 +02:00
twinaphex 30a46a5ab9 Prevent null pointer dereference 2016-09-29 10:07:41 +02:00
twinaphex 23f91bf8d4 Add global conditionals 2016-09-29 10:07:10 +02:00
twinaphex 8185324ddd Add global conditional around this 2016-09-29 10:04:32 +02:00
twinaphex 98b287e453 Remove global references from variable names 2016-09-29 10:02:23 +02:00
Twinaphex bc705b79e1 (OSX) Fix 2016-09-29 09:58:57 +02:00
twinaphex ac416b4494 Try to be more safe here 2016-09-29 09:36:24 +02:00
twinaphex 3d098839ca Update path_get 2016-09-29 08:46:41 +02:00
twinaphex ed2b89db27 Cleanups 2016-09-29 08:34:08 +02:00
twinaphex 329f6ad612 Update path_get 2016-09-29 08:31:41 +02:00
twinaphex 1385f2c4fa Simplify path_init_savefile 2016-09-29 08:25:37 +02:00
twinaphex be81edad84 Create path_get 2016-09-29 08:23:41 +02:00
twinaphex 4e50b7d5be Cleanup 2016-09-29 07:52:44 +02:00
twinaphex d3d817ba48 Cleanups 2016-09-29 07:50:46 +02:00
twinaphex 0b1270458c Update path_set 2016-09-29 07:49:54 +02:00
twinaphex 7e1a61570a Add more functionality to path_set 2016-09-29 07:46:21 +02:00
twinaphex b8a1052b73 Update path_set 2016-09-29 07:40:14 +02:00
twinaphex 199731fc84 Create path_set 2016-09-29 07:36:09 +02:00
twinaphex aac78af832 audio_driver.c - cleanup 2016-09-29 07:18:02 +02:00
twinaphex 570d9c2164 Change global_name_base variable name to name_base variable 2016-09-29 07:12:03 +02:00
Twinaphex 3900d433f8 Cleanups 2016-09-29 05:49:10 +02:00
twinaphex 89505fa011 Get rid of global->patch 2016-09-29 05:46:31 +02:00
twinaphex 538aec6386 Add more RARCH_CTL_ actions 2016-09-29 05:36:21 +02:00
Brad Parker 186d0d6450 fix cheevos memory leak 2016-09-28 23:05:59 -04:00
twinaphex 00ca780bba Revert "Another memory leak fix"
This reverts commit dda1099d99.
2016-09-29 04:41:09 +02:00
twinaphex 27ee26b331 (net retropad core) cleanup 2016-09-29 04:38:56 +02:00
twinaphex 313c091f31 (net retropad core) Cleanup 2016-09-29 04:36:48 +02:00
twinaphex 091aa7d8a6 (net retropad core) Cleanups 2016-09-29 04:35:39 +02:00
twinaphex 0ce63a3f94 (menu_setting.c) Prevent dereference by null 2016-09-29 04:28:31 +02:00
twinaphex ee087498a3 Try to prevent warning 2016-09-29 04:25:55 +02:00
radius c8de418980 disable async for dosbox, compiler fails 2016-09-28 20:15:38 -05:00
Andrés Suárez 46decc8c3b Merge pull request #3685 from fr500/master
Use asyncify for dosbox
2016-09-28 19:53:53 -05:00
radius a09ed703cb be more verbose on this script 2016-09-28 19:43:39 -05:00
radius a23f5b10ff fix ASYNCIFY 2016-09-28 19:32:14 -05:00
radius 3e7517e95b be more verbose 2016-09-28 19:26:15 -05:00
radius d56cca173d (ems) try a different libco implementation for emscripten 2016-09-28 17:57:32 -05:00
Francisco José García García a21b6d8d9b Merge pull request #3684 from frangarcj/master
(VITA) Fix crash in gambatte
2016-09-28 23:21:22 +01:00
Francisco José García García f6a7aa95e7 (VITA) Fix crash in gambatte 2016-09-29 00:20:14 +02:00
Twinaphex 9b17e4f01e Merge pull request #3680 from GregorR/netplay-sram-leniency
Make netplay lenient to differing sram sizes
2016-09-28 23:12:10 +02:00
aliaspider 5db13323f6 (3DS) create gfx/common/ctr_common.h.
remove depthbuffer.
use vramalloc.
2016-09-28 20:59:54 +01:00
Alcaro 0f4fe8b4d4 Merge pull request #3683 from GregorR/netplay-df-0-workaround
Fix delay_frames=0 mode to work with the recent late-loading workaround
2016-09-28 21:48:43 +02:00
Gregor Richards 1470b6672b Fix delay_frames=0 mode to work with the recent late-loading workaround 2016-09-28 15:45:52 -04:00
Twinaphex bcc864d48f Merge pull request #3681 from loganmc10/patch-3
Yet another fix for glUniformMatrix4fv
2016-09-28 19:56:02 +02:00
Twinaphex 68047d3bd9 Merge pull request #3682 from aliaspider/master
(3DS) Screen tearing fix + some updates.
2016-09-28 19:54:36 +02:00
aliaspider dc16477c46 (3DS) fix tearing, the displayed framebuffer was being set to the
currently selected drawbuffer.
2016-09-28 18:34:38 +01:00
aliaspider 8266a423cd (3DS) update for latest ctrulib. 2016-09-28 18:09:17 +01:00
Logan McNaughton d360bf17d5 Yet another fix for glUniformMatrix4fv
This should fix fullscreen toggling/context resets.
2016-09-28 08:18:32 -06:00
aliaspider 4ebe84d89c (3DS) use Makefile.commmon for non griffin builds 2016-09-28 15:01:46 +01:00
Gregor Richards ad4cec0b07 Make netplay lenient to differing sram sizes
Some cores can only determine the true size of sram after fully loading
the content, and so will report different values when the sram size is
queried. As a result, netplay cannot count on sram size as a reliable
verification technique. sram is still sent for the savestateless core
case.
2016-09-28 08:04:38 -04:00
twinaphex efdee89d09 Create samples 2016-09-28 12:44:41 +02:00
twinaphex 4711937c9c (camera_driver.c) Prevent null pointer dereference 2016-09-28 08:18:28 +02:00
twinaphex 8194509b21 Prevent NULL pointer dereferences 2016-09-28 08:15:03 +02:00
twinaphex 093f16dd71 Prevent NULL pointer dereference 2016-09-28 08:08:35 +02:00
twinaphex 90af64769d Get rid of global->sram 2016-09-28 07:27:39 +02:00
twinaphex 0104302e18 Add new RARCH_CTL calls 2016-09-28 07:23:14 +02:00
twinaphex 5bce79369a Get rid of global->sram.use, turn it into static boolean
variable inside rarch_ctl
2016-09-28 07:17:34 +02:00
Twinaphex f0a2159f9a remove unused variable 2016-09-28 06:50:43 +02:00
Twinaphex 1c90925a7b Merge pull request #3676 from GregorR/netplay-core-serialization-workarounds
Workarounds for cores that can't be saved early
2016-09-28 03:39:55 +02:00
Gregor Richards f665881d6d Workarounds for cores that can't be saved early
Netplay now never serializes/unserializes cores before 60 frames have
been emulated. This is a workaround for buggy cores and documented as
such.
2016-09-27 20:49:16 -04:00
Twinaphex b7ab9a1581 Merge pull request #3675 from frangarcj/master
(Vita) Add get framebuffer
2016-09-28 00:53:40 +02:00
Twinaphex c4c46c8eb6 Merge pull request #3672 from lakkatv/wifi
Improve status reporting in the connman wifi driver
2016-09-28 00:46:04 +02:00
Twinaphex f9af18c00b Merge pull request #3674 from loganmc10/patch-2
Fix glUniformMatrix4fv call
2016-09-28 00:30:07 +02:00
Logan McNaughton 01a03abdc5 Fix glUniformMatrix4fv call 2016-09-27 16:03:54 -06:00
Twinaphex 396d4b2a19 Merge pull request #3673 from loganmc10/patch-1
Only call glUniformMatrix4fv if needed
2016-09-27 23:52:03 +02:00
Francisco José García García 8a6625753d (Vita) Add get framebuffer 2016-09-27 23:39:24 +02:00
Alcaro 731f2c8f2b Merge the remainder of this PR, close #3665 2016-09-27 18:12:51 +02:00
Logan McNaughton 0d3e9875b1 Only call glUniformMatrix4fv if needed 2016-09-27 08:56:36 -06:00
Jean-André Santoni 9445046b5f Improve status reporting in the connman wifi driver 2016-09-27 16:45:37 +02:00
Twinaphex ef99754632 Merge pull request #3669 from libretro/revert-3666-glUniformMatrix4fv
Revert "Only call glUniformMatrix4fv if needed"
2016-09-27 03:00:05 +02:00
Twinaphex 7672288fcd Revert "Only call glUniformMatrix4fv if needed" 2016-09-27 02:59:58 +02:00
Twinaphex 7d64fdabf9 Merge pull request #3666 from loganmc10/glUniformMatrix4fv
Only call glUniformMatrix4fv if needed
2016-09-27 02:50:16 +02:00
Twinaphex 5d209d0b10 Merge pull request #3667 from loganmc10/gles3
GLES3 fix
2016-09-27 01:12:09 +02:00
Twinaphex 0dab81fa6c Merge pull request #3668 from frangarcj/master
(Vita) Turn O3 optimizations
2016-09-27 01:12:00 +02:00
Francisco José García García 753d44957a (Vita) Turn O3 optimizations 2016-09-27 01:01:18 +02:00
Logan McNaughton 1ea200b564 GLES3 fix
Fixes #3658
2016-09-26 15:30:42 -06:00
Logan McNaughton fa48e95946 Only call glUniformMatrix4fv if needed 2016-09-26 14:24:27 -06:00
Twinaphex 2c0d8e8280 Merge pull request #3663 from GregorR/netplay-return-of-cloexec
Making all Netplay sockets should be cloexec
2016-09-26 05:29:09 +02:00
Gregor Richards bd354cd275 Making all Netplay sockets should be cloexec
All Netplay sockets should close-on-exec. There is no reason for
xdg-screensaver to keep Netplay sockets alive.
2016-09-25 23:26:32 -04:00
Brad Parker 6826ec7748 have show parent dir (for dirs and files) and filter extension (for files) options visible all the time 2016-09-25 21:47:16 -04:00
Twinaphex 95406cb1c6 Merge pull request #3662 from frangarcj/master
(VITA) Changes for dynarec vm support (uggly hack)
2016-09-26 01:12:40 +02:00
Francisco José García García 55c8fc6a6e (VITA) Changes for dynarec vm support (uggly hack) 2016-09-26 01:06:44 +02:00
twinaphex 0d95e286e3 Add core_poll() back when netplay stalls 2016-09-25 18:46:39 +02:00
Twinaphex 94b0dd36ab remove unused variable 2016-09-25 15:51:46 +02:00
twinaphex a1488ae34f Move subsystem path to paths.c 2016-09-25 15:49:09 +02:00
twinaphex b3ec735e75 Silence some more scan-build warnings 2016-09-25 15:25:20 +02:00
twinaphex d9d388a8fe linuxraw_joypad.c - cleanup 2016-09-25 15:11:48 +02:00
Brad Parker af98ee1c8a Add CRC calculation function that works with archives with or without a path inside (first file is used if no path)
Add all archive's contents to database scan list when scanning files and directories

Allow scanning a single file that is an archive

Remove unnecessary prototypes from archive_file.h

Simplify retrieving of CRCs from archives when scanning
2016-09-25 00:15:05 -04:00
twinaphex bf64635acc Try to silence one more memory leak 2016-09-25 06:14:23 +02:00
twinaphex 4db58bdfc2 Silence C89_BUILD warning 2016-09-25 06:05:02 +02:00
Twinaphex ba678e55e3 Merge pull request #3659 from GregorR/netplay-client-reconnect
Adding backend functionality to reconnect a Netplay client
2016-09-25 05:56:49 +02:00
twinaphex 3f35e10014 Solve some warnings pointed out by scan-build 2016-09-25 05:55:55 +02:00
Gregor Richards c4eb12a583 Adding backend functionality to reconnect a Netplay client. 2016-09-24 23:48:42 -04:00
radius c790f452e7 (ems) update template, don't enable run button till idbfs is synced 2016-09-24 22:32:47 -05:00
twinaphex 3e182461d9 Try to fix 'pointer to local outside scope' warning 2016-09-25 05:32:16 +02:00
twinaphex 8025110f07 Cleanups 2016-09-25 05:18:42 +02:00
twinaphex 432f466e85 Cleanup parse_config_file 2016-09-25 05:09:41 +02:00
twinaphex bef9a8d9d6 Rearrange some code 2016-09-25 05:00:54 +02:00
twinaphex ef548ba25e Rename static variable 2016-09-25 04:56:19 +02:00
twinaphex 8e6d9a6978 move default_shader_preste code to paths.c 2016-09-25 04:55:16 +02:00
Twinaphex 4fc66e4100 Merge pull request #3657 from loganmc10/patch-7
Specify EGL_DEPTH_SIZE for emscripten
2016-09-25 04:04:02 +02:00
Logan McNaughton 4f002f2316 Specify EGL_DEPTH_SIZE for emscripten
Some drivers require it to provide a depth buffer.
2016-09-24 19:53:45 -06:00
Twinaphex d9aaef40cc Merge pull request #3656 from loganmc10/patch-6
These are (pretty much) alphabetical
2016-09-25 02:06:00 +02:00
Twinaphex 77036100d4 Merge pull request #3655 from GregorR/netplay-error-checking
Checks for some netplay syscall errors and NULL deref errors
2016-09-25 00:58:41 +02:00
Logan McNaughton 133a7bdb14 These are (pretty much) alphabetical
Makes it a little easier to find it if you don't know where they are.

Also, maybe consider only listing the cores that actually work with the Web Player? (I'm not sure which ones that is)
2016-09-24 16:52:48 -06:00
Gregor Richards 60449e8928 Checks for some netplay syscall errors and NULL deref errors 2016-09-24 18:48:55 -04:00
radius e48cd885f9 (ems) update webplayer template too 2016-09-24 17:30:03 -05:00
radius 1efdffd191 (ems) use idbfs instead of localstorage 2016-09-24 17:18:32 -05:00
radius 9f3102e601 (ems) fix this 2016-09-24 15:36:27 -05:00
Andrés Suárez 1ed4e6148d Merge pull request #3649 from loganmc10/patch-5
glupen64 no longer depends on asyncify
2016-09-24 13:40:08 -05:00
radius dc276df53e (ems) use imfs in this template for testing purposes 2016-09-24 12:59:10 -05:00
twinaphex 5f5ac1557e Turn command_event_save_current_config into static function 2016-09-24 17:19:38 +02:00
twinaphex 9637e4ee29 Attempt to fix issue #3605 2016-09-24 17:17:43 +02:00
twinaphex 49a9f189e9 Prevent divide by zero 2016-09-24 17:08:46 +02:00
twinaphex 764a4319a0 (shader_glsl.c) Continue with iteration if pass is NULL 2016-09-24 17:04:49 +02:00
twinaphex b5416e4041 Change false to 0 2016-09-24 17:04:21 +02:00
twinaphex 5b5ad03ec3 Attempt to fix Coverity warnings 2016-09-24 17:04:01 +02:00
twinaphex 4cf9b3b6be configuration.c - prevent dereference after null warning from Coverity 2016-09-24 17:00:41 +02:00
twinaphex 09cc6c41b9 Prevent explicit NULL pointer dereference 2016-09-24 16:58:02 +02:00
twinaphex 3aea25479c Cleanups 2016-09-24 16:54:01 +02:00
Twinaphex 22bd770571 Cleanup unused variable 2016-09-24 16:51:45 +02:00
twinaphex a27bc0da4f Create static function command_event_save_config 2016-09-24 16:49:42 +02:00
Twinaphex 6b336a98b1 Merge pull request #3653 from GregorR/netplay-resimulation
When we replay, resimulate input
2016-09-24 14:51:38 +02:00
Gregor Richards fcd57801bd When we replay, resimulate input so that it doesn't judder between
remote states
2016-09-24 08:12:08 -04:00
twinaphex 83be6daa93 Try to prevent input driver from being set with Emscripten EGL context driver if HAVE_SDL2 is defined 2016-09-24 05:57:02 +02:00
Twinaphex 2fa676416a Merge pull request #3651 from GregorR/netplay-delay-0
Small checks to avoid needless blocking in delay_frames=0 mode
2016-09-24 05:52:44 +02:00
radius f58f7a5923 Revert "Make emscripten_egl default context for emscripten"
fixes gamepad support. It seems it only works when we use the SDL2 video context

This reverts commit 1177edf825.
2016-09-23 22:38:37 -05:00
Gregor Richards 6472b0ce82 Small checks to avoid needless blocking in delay_frames=0 mode 2016-09-23 23:27:07 -04:00
Twinaphex 8d45ea4343 Merge pull request #3648 from lakkatv/wifi
Connman: enable wifi before scanning, and restart connman after gener…
2016-09-24 05:02:20 +02:00
Twinaphex 591579e868 Merge pull request #3650 from GregorR/netplay-fixes
Netplay fixes
2016-09-24 04:27:39 +02:00
Gregor Richards fa5b75b635 Bugfixes in how we reset state on a late Netplay connection 2016-09-23 22:21:53 -04:00
Gregor Richards 236839e22f Reset netplay stall state upon disconnection 2016-09-23 22:20:47 -04:00
Logan McNaughton 55645a9f12 glupen64 no longer depends on asyncify 2016-09-23 20:20:35 -06:00
Gregor Richards ae92cfeac2 More care in check_frames code so we don't check CRCs from a previous
connection
2016-09-23 22:18:56 -04:00
Gregor Richards c81b022a7d Fix conflation of delay_frames and check_frames in configuration.c 2016-09-23 22:18:10 -04:00
radius c3d5c98849 (ems) change some makefile flags 2016-09-23 19:48:50 -05:00
Andrés Suárez 635a60cb9e Merge pull request #3643 from loganmc10/patch-4
Finalize support for pthreads in emscripten
2016-09-23 19:26:05 -05:00
Jean-André Santoni eee9e5047b Connman: enable wifi before scanning, and restart connman after generating the settings file 2016-09-24 00:41:30 +02:00
twinaphex 4e14ff8a66 Go through opaque pointer for glDeleteSync - GLsync as a type
might not be available
2016-09-24 00:04:19 +02:00
Twinaphex 75f8a53fcf Merge pull request #3647 from frangarcj/master
(VITA) Fix utf8
2016-09-23 21:56:41 +02:00
Francisco José García García e654c39944 (VITA) Fix utf8 2016-09-23 21:27:06 +02:00
Twinaphex 6fae03fd19 Merge pull request #3645 from Ezio-PS/master
little fix for Spanish translation
2016-09-23 19:55:48 +02:00
Twinaphex 4846bdc8d3 Merge pull request #3646 from lakkatv/wifi
Connman driver: this should allow connecting protected networks
2016-09-23 19:54:15 +02:00
Jean-André Santoni d3878d5a92 Connman driver: this should allow connecting protected networks 2016-09-23 19:50:18 +02:00
Ezio-PS dfed4a72f5 little fix for Spanish translation 2016-09-23 19:42:49 +02:00
Twinaphex 7bc49b2e7a Merge pull request #3644 from Ezio-PS/master
Update Italian translation
2016-09-23 19:33:09 +02:00
Ezio-PS 4c742fb38d Update Italian translation 2016-09-23 19:21:39 +02:00
Logan McNaughton 533add53ad Finalize support for pthreads in emscripten 2016-09-23 10:25:07 -06:00
Andrés Suárez 159d0b55cf Merge pull request #3642 from loganmc10/patch-3
Only set PTHREAD_POOL_SIZE=2 if PTHREAD is on
2016-09-23 10:21:38 -05:00
Logan McNaughton b5cd030eff Only set PTHREAD_POOL_SIZE=2 if PTHREAD is on 2016-09-23 09:16:45 -06:00
twinaphex fff4b8ddcf Prevent some warnings 2016-09-23 16:08:12 +02:00
twinaphex 12fa0bd019 Fix unchecked return value warning 2016-09-23 16:05:14 +02:00
twinaphex 4e3c9987f5 Prevent null pointer dereference / logically dead code / other misc. warnings 2016-09-23 16:03:37 +02:00
Twinaphex baeadb775e Merge pull request #3641 from lakkatv/wifi
WiFi: ask for passphrase
2016-09-23 15:42:49 +02:00
Jean-André Santoni def77b5d34 Wi-Fi menu, pass over the entry index to know which network we're trying to connect 2016-09-23 14:45:07 +02:00
Jean-André Santoni efeebf32ec Fix Wi-Fi label 2016-09-23 14:33:35 +02:00
Jean-André Santoni 4734cb2640 WiFi: ask for passphrase 2016-09-23 13:16:27 +02:00
Andrés Suárez 1e95346f27 Merge pull request #3637 from loganmc10/patch-2
Allow pthread support in emscripten
2016-09-22 22:56:11 -05:00
Logan McNaughton 17b696c0dd Add PTHREAD_POOL_SIZE 2016-09-22 21:51:30 -06:00
radius 8cb8390dbe fix typo 2016-09-22 22:15:02 -05:00
Twinaphex 56a2e57c66 Merge pull request #3640 from GregorR/netplay-reconnection-flip
Reset player flip state when we lose Netplay connection
2016-09-23 04:00:26 +02:00
Gregor Richards 65e308c92d Reset player flip state when we lose Netplay connection
This fixes a bug whereby reconnections would be out of sync due to the
flip state of the server and client being different. The server now
resets its flip state on disconnect.
2016-09-22 21:56:19 -04:00
twinaphex a090deb8c1 Cleanups 2016-09-23 03:50:10 +02:00
Twinaphex f0facb5463 Silence implicit declarations warnings 2016-09-23 03:42:50 +02:00
twinaphex 2d11ea71cc Move runloop_fullpath to paths.c 2016-09-23 03:39:44 +02:00
Twinaphex d7f9358dd0 Merge pull request #3639 from GregorR/check-cloexec
Check if setting CLOEXEC fails on the Netplay server port.
2016-09-23 03:27:25 +02:00
twinaphex 6222badb51 Remove header includes 2016-09-23 03:21:33 +02:00
twinaphex 02dc90d7bd Move code from runloop.c to dirs.c 2016-09-23 03:19:33 +02:00
Gregor Richards 06550ec289 Check if setting CLOEXEC fails on the Netplay server port. 2016-09-22 21:02:26 -04:00
twinaphex e799defcb8 Cleanup 2016-09-23 02:50:29 +02:00
twinaphex 9db91a92c3 Get rid of unused typedef 2016-09-23 02:49:25 +02:00
twinaphex 8fd94e4aab Move variables around 2016-09-23 02:48:10 +02:00
twinaphex 4a1f593689 Get rid of unused typedef 2016-09-23 02:47:05 +02:00
twinaphex 019ea8a294 remove header include 2016-09-23 02:21:39 +02:00
twinaphex 040a1b8ba9 Move additional_path_allocs to load_content 2016-09-23 02:19:20 +02:00
twinaphex fc3cf2ebb6 Simplify function in task_content 2016-09-23 02:14:43 +02:00
twinaphex 5d59871c05 Prevent null pointer dereference 2016-09-23 02:11:51 +02:00
twinaphex a1971c5657 Grab system pointer inside functions instead of passing it around 2016-09-23 02:10:57 +02:00
twinaphex dac5b1aabd Fix warning 'dereference after null' 2016-09-23 02:05:12 +02:00
twinaphex 4137d33e46 Fix explicit null dereference warning 2016-09-23 02:04:25 +02:00
twinaphex f6148edb2d Fix logically dead code warning 2016-09-23 02:01:31 +02:00
twinaphex c9e10c821e Cleanups 2016-09-23 01:38:19 +02:00
Twinaphex 3f1e46982c Merge pull request #3638 from GregorR/netplay-no-serialize-0
Don't serialize frame 0 in netplay, as the core may not yet be ready
2016-09-22 23:55:23 +02:00
Logan McNaughton 01c43f5eef Allow pthread support in emscripten 2016-09-22 15:37:41 -06:00
Gregor Richards 1503b3d42f Don't serialize frame 0 in netplay, as the core may not yet be ready 2016-09-22 17:36:46 -04:00
Andrés Suárez 9179b6b6f2 Merge pull request #3636 from loganmc10/patch-1
Make emscripten_egl default context for emscripten
2016-09-22 16:23:29 -05:00
Logan McNaughton 1177edf825 Make emscripten_egl default context for emscripten 2016-09-22 15:22:08 -06:00
twinaphex d641930baf Fix statement is unreachable warning 2016-09-22 23:10:11 +02:00
Jean-André Santoni 714db40fa0 Allow connecting wifi networks 2016-09-22 22:27:58 +02:00
Jean-André Santoni cd0ec01928 Display which wifi network we're connected to 2016-09-22 22:27:54 +02:00
Jean-André Santoni fcdc6187cb WiFi icons 2016-09-22 22:27:50 +02:00
Jean-André Santoni 339de94095 Display WiFi menu title and perform a scan before calling the services 2016-09-22 22:27:45 +02:00
Brad Parker d493273bcf use first extracted file if one is not specified and !need_fullpath and !block_extract 2016-09-22 16:03:31 -04:00
Twinaphex 34944cac0f remove unused variables 2016-09-22 22:01:35 +02:00
twinaphex 3e066165e5 Prevent 'undefined allocation of 0 bytes' 2016-09-22 21:59:37 +02:00
twinaphex 7fdc38bf30 Prevent null pointer dereference 2016-09-22 21:57:55 +02:00
twinaphex e8deea65a9 Remove unused variable 2016-09-22 21:55:54 +02:00
twinaphex 4f83be2df3 Remove dead variable 2016-09-22 21:55:16 +02:00
twinaphex f6a5e4d8eb Remove unused variable 2016-09-22 21:52:17 +02:00
twinaphex 6d702f3538 Remove unused buf_fps variable 2016-09-22 21:51:22 +02:00
twinaphex 7dcf9dfa75 (libusb) Silence warning 'value stored to 'adaptor' is never read 2016-09-22 21:49:59 +02:00
twinaphex dda1099d99 Another memory leak fix 2016-09-22 21:40:00 +02:00
twinaphex a60812a2ee (patch.c) apply_patch_content - fix memory leak 2016-09-22 21:00:17 +02:00
twinaphex fb63786297 (cheevos.c) Prevent memory leak 2016-09-22 20:59:10 +02:00
twinaphex 0d49ed5877 drm_ctx.c - remove dead assignment 2016-09-22 20:56:42 +02:00
twinaphex 8d9eccfd65 (xvideo.c) Prevent null pointer dereferences for geom variable 2016-09-22 20:54:06 +02:00
twinaphex 70d4da3e32 (libretro-db/query.c) Cleanup 2016-09-22 20:48:49 +02:00
twinaphex 1c1cac328d (libretro-db/query.c) Prevent warning 'use-after-free' 2016-09-22 20:47:26 +02:00
twinaphex 97df8ce2fa (JACK) Try to prevent memory leak 2016-09-22 20:46:22 +02:00
Brad Parker f8d51c2f86 only load compressed content if the path contains the file to extract 2016-09-22 12:52:34 -04:00
twinaphex bef6308b12 Don't define/undefine GL_DEBUG at all 2016-09-22 18:44:55 +02:00
Twinaphex 42f18b1bc8 Merge pull request #3635 from orbea/gl_debug_warning
Silence warning with GL_DEBUG=1
2016-09-22 18:41:33 +02:00
twinaphex bf48051d93 (Menu) Fix keyboard input 2016-09-22 18:29:40 +02:00
orbea 7768a706a1 Silence warning with GL_DEBUG=1 2016-09-22 08:40:44 -07:00
twinaphex 2c29e599e8 Revert this code back to what it was 2016-09-22 16:28:45 +02:00
twinaphex 693a9660f3 Prevent null pointer dereference 2016-09-22 16:10:51 +02:00
twinaphex 4db42db980 content_flush_save_blocks - cleanup 2016-09-22 14:40:07 +02:00
twinaphex dad9a079c7 Rework content_flush_save_blocks/content_allocate_save_blocks 2016-09-22 14:39:13 +02:00
Twinaphex b2240c5783 Merge pull request #3631 from GregorR/netplay-reconnect
Support for Netplay reconnection
2016-09-22 14:27:38 +02:00
Twinaphex 9d221fb518 Merge pull request #3634 from GregorR/netplay-version-chatter
Both sides should send the same header so either can check the other
2016-09-22 14:27:28 +02:00
Gregor Richards 4a83e6dee9 Both sides should send the same header so either can check the other 2016-09-22 07:06:26 -04:00
radius 55b865d375 remove this pad, the pad is named Standard Gamepad 2016-09-21 21:41:36 -05:00
twinaphex f3c3d41734 Getr id of unused function prototype 2016-09-22 04:38:39 +02:00
Gregor Richards 42f8ed4338 Support for Netplay reconnection
In net server mode, when the client disconnects, the server now returns
to listening mode, in anticipation of the client reconnecting.
2016-09-21 22:37:43 -04:00
twinaphex af46e81080 Hide Wifi settings if null wifi driver selected 2016-09-22 04:19:31 +02:00
twinaphex 9b93f1b520 (Wifi) show 'no settings' found when selecting wifi settings
if null driver is selected
2016-09-22 04:18:10 +02:00
twinaphex 7dc297edfc (GLSM) Prevent warning 2016-09-22 04:09:10 +02:00
twinaphex 017bf34d71 Prevent null pointer dereference defect 2016-09-22 03:59:02 +02:00
twinaphex ca4086622a (Griffin) Buildfix 2016-09-22 03:29:04 +02:00
twinaphex 1bad39131a Add wifi files to Griffin 2016-09-22 03:28:06 +02:00
radius 5f9a54af56 Add Glupen 2016-09-21 19:20:44 -05:00
Jean-André Santoni 4440b58cbe Now able to display a list of ssid 2016-09-22 02:03:10 +02:00
Jean-André Santoni d1ae577811 Start building the ssid list 2016-09-22 02:03:05 +02:00
Jean-André Santoni 850c4beac3 Add a WiFi setting group 2016-09-22 02:03:01 +02:00
Jean-André Santoni acf34990fc Expose the wifi driver scan callback 2016-09-22 02:02:57 +02:00
Jean-André Santoni 36fb1ffcdf WiFi driver: add scan callback 2016-09-22 02:02:52 +02:00
Jean-André Santoni 39be71e4ad Correctly save and load WiFi driver from the config file 2016-09-22 02:02:47 +02:00
Jean-André Santoni c45058d3ae Start adding a WiFi driver 2016-09-22 02:02:43 +02:00
Twinaphex 719533cf50 Merge pull request #3630 from GregorR/netplay-connect-late
Support for late connection to Netplay host mode
2016-09-22 01:45:43 +02:00
twinaphex cc11244307 Fix memory leak 2016-09-22 00:58:29 +02:00
Gregor Richards 4b370cf55e Re-add TCP_NODELAY in host mode. 2016-09-21 17:31:19 -04:00
Gregor Richards c2d9e7a538 Support for late connection to Netplay host mode
This changes netplay host mode's behavior in net (normal) mode from
immediately blocking to waiting for a connection while allowing the game
to run, like spectator mode.
2016-09-21 17:26:02 -04:00
Andrés Suárez 32017c3cae Update index.html 2016-09-21 15:37:52 -05:00
Andrés Suárez 9fd7ecb668 Merge pull request #3629 from loganmc10/master
Fix emscripten async and add glupen64
2016-09-21 15:27:28 -05:00
Logan McNaughton f0204a8b5d Fix emscripten async and add glupen64 2016-09-21 14:10:05 -06:00
Alcaro 4ceb53207f Merge pull request #3628 from GregorR/network-send-blocking-fix
Fix socket_send_all_blocking to fail on errors not related to blocking
2016-09-21 20:09:35 +02:00
Gregor Richards b0672e47ae Fix socket_send_all_blocking to fail on errors not related to blocking 2016-09-21 14:01:25 -04:00
twinaphex 8831d19008 Rename GLES_LIBS/GLES_CFLAGS to OPENGLES_LIBS/OPENGLES_CFLAGS 2016-09-21 12:45:31 +02:00
twinaphex 3cbc03b675 (libretro-common/utils) Buildfix 2016-09-21 12:35:38 +02:00
twinaphex 84d8d97ea5 Update libretro-common/utils 2016-09-21 12:33:42 +02:00
twinaphex b548362869 Use encoding_crc32 2016-09-21 12:31:40 +02:00
Twinaphex e00ed7f209 Merge pull request #3625 from GregorR/netplay-remove-bsv
Removing now-unused BSV-related functions from Netplay
2016-09-21 04:36:34 +02:00
Gregor Richards 851cd0fe6e Removing now-unused BSV-related functions from Netplay 2016-09-20 22:32:23 -04:00
twinaphex 99d24d9954 Cleanup 2016-09-21 04:19:59 +02:00
twinaphex 0ec5d9aba7 Simplify task_content.c 2016-09-21 04:09:24 +02:00
twinaphex 7edc0d9ee9 Simplify load_content_into_memory 2016-09-21 04:03:31 +02:00
twinaphex 0672051b37 (Vita) Get rid of matrix helper functions - not needed 2016-09-21 03:44:55 +02:00
Twinaphex 4d49bb44f2 (OSX) Buildfix 2016-09-21 02:30:21 +02:00
twinaphex 55517dbc12 Prevent warning 2016-09-21 02:17:32 +02:00
twinaphex dbf6d9331f (rpng_encode.c) Use encoding_crc32 2016-09-21 02:16:56 +02:00
Brad Parker b7735520f2 fix scanning of archive files 2016-09-20 15:40:29 -04:00
Twinaphex 4c414f0a99 Merge pull request #3624 from libretro/coverity_scan
Coverity scan
2016-09-20 21:13:01 +02:00
twinaphex 8a9c1dd6f7 Merge branch 'master' of https://github.com/libretro/RetroArch into coverity_scan 2016-09-20 21:12:14 +02:00
twinaphex d17de78fb3 Try to solve coverity issue ID 112920 2016-09-20 21:07:41 +02:00
Brad Parker 6ac73c5655 use generic crc32 to scan files with 2016-09-20 13:34:56 -04:00
twinaphex 8095fa9ff8 Try to fix plethora of resource leaks 2016-09-20 16:32:33 +02:00
twinaphex d81f40a9e1 Remove double free 2016-09-20 16:30:08 +02:00
twinaphex 1a55721c78 Fix some high-priority Coverity-catched defects 2016-09-20 16:10:27 +02:00
twinaphex b3f50a3758 Prevent uninitialized scalar variable 2016-09-20 15:56:47 +02:00
Twinaphex a69b958a1f Merge pull request #3623 from frangarcj/master
(VITA) New font renderer with stb by default
2016-09-20 13:22:59 +02:00
frangarcj 608d13c321 (VITA) Add some default fonts 2016-09-20 10:58:14 +02:00
twinaphex 8b67551799 Turn dump_to_file_desprate into static function 2016-09-20 04:08:55 +02:00
twinaphex 0c86536bdc task_image.c - get rid of ifdefs 2016-09-20 04:05:16 +02:00
twinaphex 14b297b144 Simplify file_archive_file_list_new 2016-09-20 03:25:34 +02:00
twinaphex c6ab19e59c read_content_file - Improve this a little bit 2016-09-20 03:21:26 +02:00
Brad Parker 605011ffe2 use generic crc32 2016-09-19 21:18:49 -04:00
Brad Parker 992b87321a more archive paths 2016-09-19 21:06:23 -04:00
twinaphex c7a739b2bd C89_BUILD fix 2016-09-20 03:01:20 +02:00
Brad Parker d49add014c forgot more archive paths 2016-09-19 20:58:52 -04:00
twinaphex 64e24ca514 (ctr) style nits 2016-09-20 02:09:06 +02:00
twinaphex e25472013f Move dir variable 2016-09-20 01:54:59 +02:00
twinaphex 2f17fdd651 Update Android.mk 2016-09-20 01:54:24 +02:00
Brad Parker 137968c001 treat .apk files as .zip, set archive_path any time we need to decompress a file 2016-09-19 18:38:33 -04:00
twinaphex db2d66f00a Update Makefile.common 2016-09-19 19:44:20 +02:00
twinaphex 88dd3c131c Get rid of jni/Android2.mk 2016-09-19 19:31:33 +02:00
Twinaphex 35d607f46e Buildfix 2016-09-19 19:30:45 +02:00
twinaphex cdf0b5e076 Remove unused global->savefiles 2016-09-19 19:27:46 +02:00
twinaphex 1e5d4198de Add HAVE_CONFNIG_H - task_save.c 2016-09-19 19:27:19 +02:00
twinaphex 1d53bbe110 Update libretro-common 2016-09-19 19:25:20 +02:00
twinaphex bfeb0111f8 Fix C89_BUILD errors 2016-09-19 18:29:10 +02:00
twinaphex 871621fdfa Move implementation file_archive_file_data to archive_file.c 2016-09-19 18:26:16 +02:00
Brad Parker fb26f3bbb7 fix divide by zero, use non-opaque type for file_archive functions 2016-09-19 12:06:07 -04:00
twinaphex 73168d343f verbosity.c - prevent warning 2016-09-19 17:06:59 +02:00
Twinaphex 65ce2d145d Merge pull request #3622 from hizzlekizzle/patch-1
add 9:16 AR and fix typo
2016-09-19 15:43:20 +02:00
hizzlekizzle 9fe3bd9b62 add 9:16 AR and fix typo
9:16 is useful for people with widescreen monitors running in portrait mode. I replaced 4:4 with it because 4:4 was redundant with 1:1 anyway, and I fixed the double-close-parentheses typo in the 1:1 PAR's DAR string.
2016-09-19 08:31:08 -05:00
frangarcj bc90dd2927 (VITA) Another UTF8 Fix 2016-09-19 14:17:19 +02:00
frangarcj ab0dad99fc (VITA) Remove old font driver 2016-09-19 14:15:13 +02:00
frangarcj d46a40e3c4 (VITA) USE STB FONT 2016-09-19 14:14:11 +02:00
Twinaphex e72a62a905 Merge pull request #3621 from frangarcj/master
(VITA) Remove Warnings
2016-09-19 13:37:34 +02:00
frangarcj df4a1cc502 (VITA) Remove Warnings 2016-09-19 13:34:07 +02:00
Twinaphex 3642764064 (archive_file.c) fix warning 2016-09-19 13:30:29 +02:00
Brad Parker 0899cd091e fix selecting 7z archive files other than the first one 2016-09-19 02:43:09 -04:00
frangarcj 0da7bdebf8 Merge remote-tracking branch 'refs/remotes/libretro/master' 2016-09-19 08:32:11 +02:00
Twinaphex 1205b12e15 remove unused variables 2016-09-19 04:23:53 +02:00
twinaphex c133b03a63 Move task_save_files to task_save.c 2016-09-19 04:22:02 +02:00
twinaphex 8469235005 global->savefiles only accessed now from task_save.c 2016-09-19 04:18:40 +02:00
twinaphex 2277428f52 Move more global->savefiles usage to task_save.c 2016-09-19 04:09:27 +02:00
twinaphex f91a8eacdb Move event_load_files to task_save.c 2016-09-19 04:05:44 +02:00
twinaphex 5d1da68ceb (patch.c) Cleanup 2016-09-19 04:01:02 +02:00
twinaphex 3d04dade8f Remove some HAVE_ZLIB ifdefs 2016-09-19 03:54:57 +02:00
twinaphex 11ced5d438 relocate HAVE_CONFIG_H ifdef 2016-09-19 03:41:55 +02:00
twinaphex 2ecef082f8 Cleanups 2016-09-19 03:36:55 +02:00
Brad Parker 653f5fe96c remove debug prints 2016-09-18 21:22:13 -04:00
Brad Parker 2a75b88d89 file_archive_extract_first_file can choose any file now 2016-09-18 21:22:13 -04:00
twinaphex 082476f7b2 Move code to paths.c 2016-09-19 03:03:31 +02:00
twinaphex bb6bc9bd6d Merge task_save_ram/task_save_state 2016-09-19 02:57:23 +02:00
twinaphex 13d9e7c761 Deduplicate some code in task_save_ram.c/task_save_state.c 2016-09-19 02:44:00 +02:00
twinaphex cea2ac6766 (menu_list) Use string_is_equal 2016-09-19 02:12:25 +02:00
twinaphex 56d41b8e16 patch.c - remove header include 2016-09-19 02:03:28 +02:00
twinaphex e54329c714 Get rid of more HAVE_ZLIB ifdefs 2016-09-19 01:56:26 +02:00
twinaphex 11e574b4d0 patch.c - don't rely on HAVE_ZLIB anymore 2016-09-19 01:54:34 +02:00
twinaphex 147bac9800 Move variable around 2016-09-19 01:47:30 +02:00
twinaphex de9b1dfb76 paths.c - cleanups 2016-09-19 01:41:00 +02:00
twinaphex 73c09f1d27 Cleanup 2016-09-19 01:12:39 +02:00
twinaphex 1066878b45 Cleanups 2016-09-19 01:00:25 +02:00
twinaphex 4106ff7f19 Reduce HAVE_COMPRESSION ifdefs 2016-09-19 00:56:58 +02:00
twinaphex 118a90b800 Move dir_check_defaults to dirs.c 2016-09-19 00:56:00 +02:00
twinaphex 534dca9ed1 Get rid of HAVE_COMPRESSION ifdef 2016-09-19 00:50:35 +02:00
Brad Parker 162efd86dc uncompressed 7z files do not have a compressed size 2016-09-18 17:37:39 -04:00
twinaphex 88c2ec5819 Prevent this error (caught with SANITIZER=undefined) 2016-09-18 22:39:18 +02:00
Brad Parker 050ab56038 set archive path before extracting 2016-09-18 16:05:58 -04:00
twinaphex 80d577094c Use config_file_exists 2016-09-18 21:57:51 +02:00
twinaphex d25cace9ed Add config_file_exists 2016-09-18 21:55:53 +02:00
twinaphex 6544b0bcd7 Get rid of HAVE_LIBRETRODB ifdefs 2016-09-18 21:50:39 +02:00
Twinaphex 9c92a3401e Merge pull request #3618 from bparker06/mem3
fix more memory corruption
2016-09-18 21:21:06 +02:00
Brad Parker a7ffead8f6 fix more memory corruption 2016-09-18 15:20:27 -04:00
Twinaphex a488a8b093 Merge pull request #3617 from bparker06/mem2
fix another wrong type
2016-09-18 20:41:05 +02:00
Brad Parker dc4760f5a6 fix another wrong type 2016-09-18 14:39:37 -04:00
Twinaphex ccd6a3d3f5 Merge pull request #3616 from bparker06/mem
fix memory corruption due to wrong userdata type
2016-09-18 20:33:37 +02:00
Brad Parker 530f8ae107 fix memory corruption due to wrong userdata type 2016-09-18 14:32:29 -04:00
twinaphex 6a02cf174e udev_input_poll - add early return in case udev is NULL 2016-09-18 20:32:16 +02:00
twinaphex bd1eebc579 Nit 2016-09-18 19:07:48 +02:00
twinaphex 4a39d98bbd Nit 2016-09-18 19:06:22 +02:00
twinaphex f57e52b569 Linking error fixes 2016-09-18 19:05:28 +02:00
Alcaro b7526e9c61 Kill spaghetticode, no reason to re-roll an unrolled loop like that. 2016-09-18 19:05:06 +02:00
twinaphex 975e0f2247 C89_BUILD fix 2016-09-18 19:03:31 +02:00
twinaphex 7da0c4fa46 Avoid these macros 2016-09-18 19:00:39 +02:00
twinaphex 64ea2256e5 Add undef preprocessor statements 2016-09-18 18:58:35 +02:00
twinaphex b432842b37 Uniquely name static variable 2016-09-18 18:57:18 +02:00
twinaphex 26d8d7af88 Take out doubly encoding_crc32 2016-09-18 18:56:48 +02:00
Twinaphex b1d3ecf8b7 Merge pull request #3615 from bparker06/7z4
7z fixes
2016-09-18 18:54:22 +02:00
Brad Parker 25105ed565 upstream merge 2016-09-18 12:52:20 -04:00
twinaphex c158dfb74e Makefile.common - add encoding_crc32.c 2016-09-18 18:50:52 +02:00
twinaphex 20dd2bc677 Add encoding_crc32.c to griffin 2016-09-18 18:50:33 +02:00
Brad Parker 4fadd4a110 fix uninitialized use 2016-09-18 12:49:44 -04:00
twinaphex 64d1ff2439 Always compile in archive_file right now 2016-09-18 18:44:46 +02:00
Brad Parker dbbd49f9f9 merge with master, remove alignment test code 2016-09-18 12:44:00 -04:00
twinaphex 93738fae9f CXX_BUILD fix 2016-09-18 18:34:59 +02:00
Brad Parker f13bce4e50 - use the detected stream backend's crc32 function
- remove zlib/7zip ifdef from archive_file.c, task_content.c and task_database.c
- don't re-compute CRC from one stored in archive
2016-09-18 12:31:24 -04:00
twinaphex c2e2d41452 C89_BUILD fixes 2016-09-18 18:28:33 +02:00
twinaphex 4e32fb0fd7 Update archive_file.c 2016-09-18 18:23:14 +02:00
Alcaro 5d2c0ba04f buh, stupid headers 2016-09-18 18:21:43 +02:00
Alcaro 62ecce7644 Fix weird types and other legacy leftovers 2016-09-18 18:09:16 +02:00
twinaphex 78e0e817dd Change wrong function prototype 2016-09-18 18:06:10 +02:00
twinaphex 91f7efc62d Add encoding_crc32 2016-09-18 17:22:12 +02:00
twinaphex 870182cd88 Turn into static function 2016-09-18 16:55:56 +02:00
Twinaphex 61c3de1f6a Griffin buildfixes 2016-09-18 16:49:09 +02:00
Twinaphex dbad3afc3a Merge pull request #3614 from bparker06/7z3
fix 7z refactor PR base
2016-09-18 16:39:36 +02:00
Brad Parker ffefe0ccac fix broken PR 2016-09-18 10:38:15 -04:00
Brad Parker c4b8ad04f2 Merge remote-tracking branch 'upstream/master' into HEAD 2016-09-18 10:35:53 -04:00
Brad Parker 7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
Twinaphex 76063170df Merge pull request #3613 from libretro/revert-3611-7z_backend
Revert "create 7z archive backend, enables scanning of 7z content"
2016-09-18 12:57:01 +02:00
Twinaphex d9f4636c8b Revert "create 7z archive backend, enables scanning of 7z content" 2016-09-18 12:56:38 +02:00
Twinaphex cc342e1ad0 Merge pull request #3611 from bparker06/7z_backend
create 7z archive backend, enables scanning of 7z content
2016-09-18 12:52:39 +02:00
Brad Parker 73dde435f7 merge with master 2016-09-18 00:42:11 -04:00
Brad Parker cb885f9c20 create 7z archive backend, enables scanning of 7z content 2016-09-18 00:38:59 -04:00
Twinaphex 42cba656a1 Merge pull request #3610 from heuripedes/master
Fixes some possible double frees
2016-09-18 02:28:39 +02:00
Higor Eurípedes 3ec31873e8 (rmsgpack.c) Fix possible double free() in rmsgpack_read()
read_buff() didn't set *pbuff to NULL after on error.
2016-09-17 21:22:49 -03:00
Higor Eurípedes 824ded963b (task_content.c) Remove trailing whitespace 2016-09-17 21:22:49 -03:00
Higor Eurípedes e27a85d335 (task_content.c) Fix possible double free()
content_zip_file_decompressed_handle() didn't set the handler's data
member to NULL after freeing on error. That causes problem when the function fails and
content_zip_file_decompressed() tries to free it afterwards.
2016-09-17 21:20:27 -03:00
Higor Eurípedes c08650f1f9 Remove trailing whitespace 2016-09-17 21:20:27 -03:00
Higor Eurípedes d4305d65d9 (gl) Fix gl_check_error()
gl_check_error() was leaking memory and the error message was never
returned to the calling context.
2016-09-17 21:19:57 -03:00
radius be6bce0eb0 (ems) template fixes 2016-09-17 16:58:34 -05:00
twinaphex 7c40d808df (libretro-common) Update 2016-09-17 23:21:11 +02:00
radius ed326e0479 (ems) template fixes 2016-09-17 15:19:34 -05:00
radius 29e354a3c6 (ems) template cleanups 2016-09-17 15:13:47 -05:00
radius ec01d2400e (ems) template fixes 2016-09-17 15:13:47 -05:00
twinaphex 49f7ce4365 Prevent unused variable warning 2016-09-17 19:43:30 +02:00
Twinaphex f8990cf24d Remove unused variable 2016-09-17 19:42:08 +02:00
twinaphex 5c97d5b46b Move global->name.base to paths.c 2016-09-17 19:41:27 +02:00
radius 64b802b47a (ems) add to the other templates too 2016-09-17 12:37:42 -05:00
radius 356c17678e (ems) add button to clean local storage 2016-09-17 12:37:42 -05:00
Alcaro d6070c64ac Merge pull request #3609 from gouchi/master
Update Scan Coverity key
2016-09-17 19:14:03 +02:00
gouchi 29f480f319 Update Scan Coverity key 2016-09-17 18:59:24 +02:00
radius bca82f7413 use a generic globe instead of a chrome icon 2016-09-17 11:23:59 -05:00
twinaphex d7e9c198e6 Cleanups to netplay 2016-09-17 18:21:29 +02:00
Twinaphex e21662b3e9 Merge pull request #3607 from GregorR/netplay-savestates
Netplay savestate loading frontend changes
2016-09-17 18:15:49 +02:00
Twinaphex da6ad6b3a3 Merge pull request #3608 from gouchi/master
Add Coverity Scan to Travis CI
2016-09-17 18:14:55 +02:00
Alcaro ec2fd5ebd7 Fix warning 2016-09-17 17:55:42 +02:00
gouchi a2a1f34fca Add Coverity Scan to Travis CI 2016-09-17 17:26:13 +02:00
Gregor Richards d53373a5cb Netplay savestate loading frontend changes
Support for the frontend to inform Netplay when a savestate has been
loaded, so Netplay can in turn inform the peer.
2016-09-17 11:24:23 -04:00
twinaphex 70b10e6059 Get rid of HAVE_CONFIG_H ifdef in dirs.c 2016-09-17 16:35:38 +02:00
twinaphex 08862746e7 (paths.h) Add comments 2016-09-17 16:31:14 +02:00
twinaphex 5a48f32d6b Cleanups 2016-09-17 16:28:46 +02:00
twinaphex 9852195c93 Create osk overlay dir functions 2016-09-17 16:21:48 +02:00
twinaphex 272f045c40 Get rid of unused global variable 2016-09-17 16:15:08 +02:00
twinaphex 4a4c613ee1 Start using dir_system functions 2016-09-17 16:14:25 +02:00
twinaphex 63270de821 Create dir_system functions 2016-09-17 16:10:49 +02:00
twinaphex edb3edfef1 Don't use global state anymore for dirs 2016-09-17 15:29:38 +02:00
twinaphex baf2862b85 Use dir_get_savefile_size/dir_get_savestate_size 2016-09-17 15:25:46 +02:00
twinaphex f8a4f44b3b Add dir_get_savestate_size / dir_get_savefile_size 2016-09-17 15:25:04 +02:00
twinaphex 0c48555ba2 Move rarch_content_type to paths.h 2016-09-17 15:16:52 +02:00
twinaphex 12949420b6 (Windows) Buildfix 2016-09-17 15:07:45 +02:00
twinaphex 2f6459fa9c (GX) Buildfix 2016-09-17 15:05:28 +02:00
twinaphex b775ee303c Use dir_is_savefile_empty/dir_is_savestate_empty 2016-09-17 15:01:32 +02:00
twinaphex 8c451ac71f Create dir_is_savefile_empty/dir_is_savestate_empty 2016-09-17 14:59:51 +02:00
twinaphex 413d14ad49 Start using dirs functions 2016-09-17 14:57:53 +02:00
twinaphex 017d05fd36 Create more dirs functions 2016-09-17 14:53:30 +02:00
twinaphex 4d317ba5d7 Update dirs.c 2016-09-17 14:49:35 +02:00
twinaphex 1a554cf1bc Add dirs.c 2016-09-17 14:44:19 +02:00
twinaphex 6bd6245f0a Move path_clear_all call 2016-09-17 14:41:49 +02:00
twinaphex ad6da2d45f Remove stray variable 2016-09-17 14:36:36 +02:00
twinaphex 5a80e31e5d paths.c - cleanups 2016-09-17 14:31:39 +02:00
Twinaphex da9bda04b3 Merge pull request #3606 from frangarcj/patch-2
Update psp_joypad.c
2016-09-17 14:27:36 +02:00
twinaphex 16289a8622 Cleanup 2016-09-17 14:25:29 +02:00
twinaphex d03b6df573 retroarch.c - cleanup 2016-09-17 14:23:44 +02:00
Francisco José García García 16257d58ef Add up to 4 players 2016-09-17 14:22:45 +02:00
Francisco José García García 16de70a9d9 Update psp_joypad.c 2016-09-17 14:19:26 +02:00
twinaphex ef02fb8a96 Refactor append config code 2016-09-17 14:14:58 +02:00
twinaphex 0254d8714d Create config append functions 2016-09-17 14:04:19 +02:00
twinaphex 98d325ad67 Remove unused default_log 2016-09-17 14:00:42 +02:00
twinaphex 3f7643304c Remove unused paths 2016-09-17 13:59:21 +02:00
twinaphex 74d8ce4b95 Remove this unused variable 2016-09-17 13:58:03 +02:00
twinaphex 392fad75b8 Cleanups 2016-09-17 13:57:38 +02:00
twinaphex f5d0325b2f Fix bug in path_clear_all 2016-09-17 13:56:41 +02:00
twinaphex fa5db51b02 Divorce config variable from global struct 2016-09-17 13:50:34 +02:00
twinaphex 471347689d Create path_clear_all 2016-09-17 13:47:26 +02:00
twinaphex f4e1ffeabf Don't access global->path.config directly 2016-09-17 13:42:48 +02:00
twinaphex e338b78792 Use new core options accessors 2016-09-17 13:40:25 +02:00
twinaphex b51aca2fa5 Add core options path accessors 2016-09-17 13:37:37 +02:00
twinaphex 075599e818 Start using path_ functions for accessing and modifying global->path.config 2016-09-17 13:14:14 +02:00
twinaphex 0aa2cf5019 Create path_set_config and path_is_config_empty 2016-09-17 13:04:12 +02:00
twinaphex ec45dbaf0c Move retroarch_path_is_media_type to paths.c 2016-09-17 12:56:19 +02:00
twinaphex b89def5d8f Rename config_get/config_set functions 2016-09-17 12:51:44 +02:00
twinaphex 56d8be90ec Cleanup 2016-09-17 12:37:53 +02:00
twinaphex 5aebdb7484 Mov code to paths.c 2016-09-17 12:35:29 +02:00
twinaphex 1dd28bdf9f Move retroarch_set_pathnames/retroarch_fill_pathnames 2016-09-17 12:25:26 +02:00
twinaphex d8b5e3c1ec Move more code to paths.c 2016-09-17 12:22:51 +02:00
twinaphex 0b0314d4ff Move more functions to paths.c 2016-09-17 12:19:17 +02:00
twinaphex 069dbce5c5 Add more functions to paths.c 2016-09-17 12:16:11 +02:00
twinaphex 005b86eb5d Create paths.c 2016-09-17 12:10:46 +02:00
twinaphex 96d4347c4a Go back to only calling core_poll() if menu is alive or RetroArch
is paused
2016-09-17 12:05:27 +02:00
radius 042eadd39e (ems) we don't need rjpg in emscripten 2016-09-17 03:12:22 -05:00
radius 6f195ddc6d (ems) template cleanup 2016-09-17 02:05:49 -05:00
radius 10222178b0 (ems) we don't need rjpg 2016-09-17 02:01:59 -05:00
radius 0515e9f753 (ems) remove some unused code 2016-09-17 02:01:13 -05:00
twinaphex 1cf7d758b5 Move code to movie.c 2016-09-17 01:54:33 +02:00
twinaphex 7b26c43adc dynamic.c - cleanup 2016-09-17 01:45:24 +02:00
twinaphex dbbdc56df9 Fix libretro-db Makefile 2016-09-17 01:42:52 +02:00
twinaphex 9d7798d52a (configuration.c) Cleanup 2016-09-17 01:40:11 +02:00
twinaphex 7c0ba42c09 driver.c - Cleanups 2016-09-17 00:44:29 +02:00
twinaphex e3c560014c Turn HAVE_GLES into HAVE_OPENGLES 2016-09-17 00:38:35 +02:00
twinaphex 7e87ba4dcb Dont use HAVE_GLES - turn it into HAVE_OPENGLES 2016-09-17 00:33:42 +02:00
twinaphex fb8237f1bb Cleanup command_event_save_current_config 2016-09-17 00:28:47 +02:00
twinaphex 4caee1ca5f Get rid of one ifdef 2016-09-17 00:22:55 +02:00
Twinaphex 32ce489eed Get rid of unused variable 2016-09-16 20:35:38 +02:00
twinaphex d96386cd18 (iOS) Buildfix 2016-09-16 20:34:34 +02:00
twinaphex 955c399386 (ffmpeg_core.c) nits 2016-09-16 19:23:42 +02:00
twinaphex c4c96aa843 Don't show ffmpeg_fft_ core options when HAVE_OPENGL is not defined 2016-09-16 19:20:45 +02:00
twinaphex 5f6f630818 (ffmpeg core) Cleanup 2016-09-16 19:15:46 +02:00
twinaphex eac7bcf38f Create unfinished version of matrix_4x4_lookat 2016-09-16 18:27:00 +02:00
twinaphex ee4c893c07 Update matrix_4x4_projection 2016-09-16 18:03:30 +02:00
twinaphex 6002fd9f2a (shader_vulkan.cpp) Nits 2016-09-16 17:50:57 +02:00
twinaphex 1055938b67 Add vector_4 to Griffin and Makefile.common 2016-09-16 17:46:13 +02:00
twinaphex 028bb38ec5 Add vector_4 2016-09-16 17:45:41 +02:00
twinaphex 99aae8537b Use string_is_equal/stdstring.h 2016-09-16 17:33:18 +02:00
twinaphex f395e851c4 Use stdstring.h 2016-09-16 17:25:47 +02:00
twinaphex 5698bd489c menu_input_pointer_post_iterate - cleanup 2016-09-16 17:14:41 +02:00
radius 69f8cd1acb (ems) add template for people who want their own self-hosted player
(ems) add readme
2016-09-16 10:04:46 -05:00
Twinaphex 7ac0d84dec Merge pull request #3603 from RobLoach/patch-10
Add EditorConfig support
2016-09-16 16:58:41 +02:00
Twinaphex 1144921e53 Merge pull request #3604 from RobLoach/patch-9
Delete .empty
2016-09-16 16:57:42 +02:00
twinaphex ef7541261a Move delay struct variables to menu_event as static variables 2016-09-16 16:54:04 +02:00
Rob Loach 85dbd1d2b2 Add EditorConfig support
[EditorConfig](http://editorconfig.org/) will automatically configure text editors and IDEs to RetroArch's coding standards. Helps keeps things to the 3-space tabbing.
2016-09-16 10:44:33 -04:00
twinaphex 125c4f9529 Add menu_event.c 2016-09-16 16:39:30 +02:00
Rob Loach 2462f368e4 Delete .empty
Don't need this file.
2016-09-16 10:36:02 -04:00
twinaphex b9ba1b2f29 (menu_input.c) Cleanups 2016-09-16 16:26:06 +02:00
twinaphex 2294bcf158 Not sure if this was brought back intentionally; probably not 2016-09-16 14:13:55 +02:00
Twinaphex 6fd5d35600 Merge pull request #3602 from GregorR/netplay-pause-poll
Tell Netplay when the frontend is paused
2016-09-16 13:59:17 +02:00
Gregor Richards f2058620d3 Tell Netplay when the frontend is paused
The runloop now informs Netplay if it's paused. This currently happens
by polling the pause state every frame, which is ugly, but might be the
only feasible technique.
2016-09-16 07:40:24 -04:00
twinaphex a55feae619 CXX_BUILD fixes 2016-09-16 13:38:06 +02:00
Twinaphex e4cf93cff4 Merge pull request #3600 from GregorR/netplay-new-features
New Netplay features
2016-09-16 13:35:12 +02:00
twinaphex cb17c0f493 Style nits 2016-09-16 13:31:18 +02:00
Twinaphex ee0cbd4012 Merge pull request #3592 from nguillaumin/dbus-auto
Fixes #2026: Make DBus dependency 'auto' to enable it by default
2016-09-16 13:28:09 +02:00
Twinaphex ed4e9d5a3c Merge pull request #3601 from hadess/master
X11 screensaver cleanups
2016-09-16 13:27:49 +02:00
Bastien Nocera 5afdd35e54 x11: Only call out to xdg-screensaver when D-Bus failed 2016-09-16 13:03:48 +02:00
Bastien Nocera a061b4a801 x11: Implement xdg-screensaver uninhibition 2016-09-16 13:03:37 +02:00
twinaphex 9726de615b Fix stray icon 2016-09-16 13:03:26 +02:00
Bastien Nocera e563bd5512 x11: Flatten D-Bus (un)inhibit functions
Instead of nesting, try to exit as soon as possible in case of errors.
Also make sure to tell the caller whether the call succeeded and a
fallback should be attempted.
2016-09-16 12:59:16 +02:00
twinaphex 574d51d1e0 Cleanups 2016-09-16 12:49:26 +02:00
twinaphex 7060f09948 remove header include 2016-09-16 12:46:34 +02:00
twinaphex 17e78909d5 Cleanups 2016-09-16 12:43:19 +02:00
Bastien Nocera 297c9a8613 x11: Reset dbus_connection global variable on exit
To ensure that the state of the variable is correct. This won't be
needed if X11 is never reinitialised.
2016-09-16 12:34:15 +02:00
Bastien Nocera 6ab7fab326 x11: Lower the severity of D-Bus not being accessible
As there is a fallback through xdg-screensaver, no need to make this any
more important than a log message.
2016-09-16 12:32:22 +02:00
Bastien Nocera 65fa874c3a x11: Rename function fetching the D-Bus connection
You'd expect a "get" function to return the variable in question. This
doesn't, and simply sets a global variable.
2016-09-16 12:32:15 +02:00
radius 247de41ce1 (ems) itch.io, readd log window 2016-09-15 23:19:23 -05:00
Gregor Richards ad336df709 Reimplemented Netplay spectate mode
Spectate mode is now far more similar to net (normal) mode, and, more
importantly, it works. In addition, spectate mode will not fast-forward
to catch up with the server if it lags too far behind.
2016-09-15 23:06:32 -04:00
Gregor Richards a42be48638 Don't do Netplay CRCing by default
There are too many buggy cores for Netplay to CRC in the default
configuration, so check_frames=0 by default. check_frames is a "last
resort" option anyway, so shouldn't need to be on by default.
2016-09-15 23:06:32 -04:00
Gregor Richards 4076b14568 Make Netplay flipping deterministic
The receiving side of a player-flip request now does a forced rewind to
assure that any already-computed frames are computed with the players on
the right side.
2016-09-15 23:06:32 -04:00
Gregor Richards 827009d2d3 A few corrections/clarifications in the Netplay README 2016-09-15 23:06:32 -04:00
Gregor Richards 2a0202ccf5 Making Netplay check frequency configurable. 2016-09-15 23:06:32 -04:00
Gregor Richards 9a91570db8 Adding new network commands to the Netplay README. 2016-09-15 23:06:32 -04:00
Gregor Richards 7271d1c3fa Support for frame CRCing
Every frame (soon to be configurable), the server does a CRC-32 hash and
sends it to the client. If the client finds that its own hash is
different from the server's, it requests a fresh savestate.

This is a last-ditch effort to sync if all else fails, and it's a
best-effort situation. The size of the buffer should assure that we
always still have the frame around to CRC, but I imagine there are edge
cases where we don't. If you're in an edge case, the CRC is ignored.
2016-09-15 23:06:32 -04:00
Gregor Richards 79eba578ff Remote state load bugfix: Don't skip an input frame 2016-09-15 23:06:32 -04:00
Gregor Richards 5f90f072ba Documentation fixup
Fixing up some of the function documentation, and documenting the packet
formats.
2016-09-15 23:06:32 -04:00
Gregor Richards 27188e102d Support for savestate loading over netplay
Assuming the core supports saving/loading states, and (crucially)
assuming the states are portable across the architectures on both sides
of the connection, Netplay now supports the transmission of savestates.
Right now the frontend doesn't actually send any such requests, as it's
not clear exactly where the code for that should be.

This works in either direction, although I'll admit I have no idea what
happens if they both load at the same time.
2016-09-15 23:06:32 -04:00
Gregor Richards 4d11b1d674 Don't misinterpret "Netplay isn't loaded" as "must pause" :) 2016-09-15 23:06:32 -04:00
Gregor Richards c3186c57ab Don't stall if connection lost with remote paused 2016-09-15 23:06:32 -04:00
Gregor Richards 96186438ec Remote pausing
Support for remote pausing, and with it, support for Netplay pausing the
frontend correctly. With this patch alone this doesn't work, since
there's no clean way for the frontend to tell Netplay that it's paused.
2016-09-15 23:06:32 -04:00
radius 90a13632ac (ems) itch.io, fix core selector 2016-09-15 21:21:17 -05:00
twinaphex f101e1bb8e Update glsm 2016-09-16 03:18:56 +02:00
twinaphex 54b65b689e Potential buildfixes for GLES2 2016-09-16 03:06:44 +02:00
fr500 f0b0c13d78 (ems) disable dropbox integration on itch.io for now 2016-09-15 19:01:05 -05:00
fr500 035259b959 (ems) disable dropbox integration on itch.io for now 2016-09-15 18:56:21 -05:00
fr500 0427ede025 (ems) update urls for itch 2016-09-15 18:56:21 -05:00
fr500 28a334318a (ems) itch.io template refinement 2016-09-15 18:33:12 -05:00
twinaphex 8de734b702 Header include cleanups 2016-09-16 01:27:59 +02:00
twinaphex e19699bac4 Cleanups 2016-09-16 01:25:04 +02:00
twinaphex 8b2b406a85 menu_content.c - add HAVE_CONFIG_H ifdef 2016-09-16 01:23:25 +02:00
twinaphex d6e4ce5118 menu_input.c - cleanup 2016-09-16 01:22:34 +02:00
fr500 f4e35e3cdf (ems) reorganize templates 2016-09-15 18:18:26 -05:00
fr500 20999f9952 (ems) remove deprecated template 2016-09-15 18:18:26 -05:00
fr500 2952952169 (ems) add itch.io template 2016-09-15 18:18:26 -05:00
twinaphex fb133a7487 Update GLSM 2016-09-16 01:14:35 +02:00
Alcaro f6b7fc17f6 Those checks aren't needed. 2016-09-16 00:45:00 +02:00
twinaphex 8e758bf155 Rename menu_input_pointer to menu_event_pointer 2016-09-15 23:49:24 +02:00
twinaphex f4d7e36ed0 (menu_input.c) Cleanups 2016-09-15 23:47:08 +02:00
twinaphex 4a30bfd156 Make these two the default 2016-09-15 22:05:40 +02:00
Twinaphex 89f3bdb8cb Merge pull request #3591 from bparker06/rate
refresh rate should be 59.94
2016-09-15 22:04:37 +02:00
twinaphex a71cd89379 Cleanup unused variable 2016-09-15 21:26:10 +02:00
twinaphex 8c5eb1b406 (iOS) BUildfix 2016-09-15 21:16:56 +02:00
Alcaro 9485263555 Fix implicit strstr 2016-09-15 21:16:25 +02:00
twinaphex de1c5ec8bd Rename menu_input_frame_retropad to menu_event 2016-09-15 21:14:45 +02:00
twinaphex 528d5edad0 Cleanup 2016-09-15 21:10:12 +02:00
twinaphex 121675c8e4 Cleanups 2016-09-15 21:08:54 +02:00
twinaphex 4cbc8e6f27 Cleanup 2016-09-15 21:05:39 +02:00
twinaphex 06cc175311 Cleanups 2016-09-15 21:01:11 +02:00
twinaphex b14ffa4562 menu_cbs.h - add HAVE_CONFIG_H ifdef 2016-09-15 20:58:36 +02:00
twinaphex 7bb5e46d21 menu_cbs.h - Add retro_common_api.h 2016-09-15 20:57:59 +02:00
twinaphex 3ed0aa5eb6 Cleanups 2016-09-15 20:55:20 +02:00
Alcaro 1964491e5f Fix Linux-MinGW build 2016-09-15 20:54:14 +02:00
twinaphex e602f534c7 menu_input_bind_dialog.c - more refactors 2016-09-15 20:52:08 +02:00
twinaphex a9b8114109 Reafctor input_bind_dialog code 2016-09-15 20:45:00 +02:00
twinaphex 4c702c2d36 Cleanups 2016-09-15 20:40:19 +02:00
twinaphex 814eb5b905 (menu_input.c) Header include cleanups 2016-09-15 20:38:07 +02:00
twinaphex a21674881c Add menu_input_bind_dialog 2016-09-15 20:35:39 +02:00
twinaphex 68f695b196 Buildfix 2016-09-15 19:46:23 +02:00
twinaphex 82673b4db4 Warning cleanups 2016-09-15 19:26:04 +02:00
twinaphex 8fd5c5817a Create menu_input_dialog 2016-09-15 19:23:32 +02:00
twinaphex 760d4811e0 Cleanups 2016-09-15 19:16:16 +02:00
twinaphex 5cf5371314 Refactor menu_input_dialog 2016-09-15 19:07:30 +02:00
twinaphex e8e16aca9e Create menu_input_dialog_get_label_buffer functions 2016-09-15 19:01:33 +02:00
twinaphex 982a818b48 Create menu_input_dialog_get_buffer 2016-09-15 18:56:51 +02:00
twinaphex bb5543c2a1 Cleanups 2016-09-15 18:50:33 +02:00
twinaphex c64cc373af Add menu_input_dialog_get_display_kb 2016-09-15 18:46:59 +02:00
twinaphex bd565f79ec Add menu_input_dialog_display_kb/menu_input_dialog_hide_kb 2016-09-15 18:45:57 +02:00
twinaphex 84160c092c Cleanups to input_dialog code 2016-09-15 17:26:30 +02:00
twinaphex 8530671e8f Cleanups 2016-09-15 17:21:18 +02:00
twinaphex d9e631de69 Create menu_input_dialog_start_search 2016-09-15 17:18:24 +02:00
twinaphex b9320514cb Create menu_input_dialog_start 2016-09-15 17:11:01 +02:00
twinaphex ed3f002f1b Rename menu_input_key_line_end to menu_input_dialog_end 2016-09-15 17:07:52 +02:00
twinaphex 84f81acba5 Header include cleanups 2016-09-15 16:36:36 +02:00
twinaphex 3a663ba013 (XMB) Use menu_entry_get_value 2016-09-15 16:30:22 +02:00
twinaphex 78c4bc4a5b (xmb.c) Try to make sure 1st and 2nd arguments for fill_pathname_join
are not one and the same
2016-09-15 16:25:10 +02:00
twinaphex 6c4c0cf5e7 Use menu_entry_get_value 2016-09-15 16:13:17 +02:00
twinaphex f648ea8602 Cleanups 2016-09-15 16:07:20 +02:00
twinaphex 233925bea6 Rename widgets/menu_popup to widgets/menu_dialog 2016-09-15 15:57:25 +02:00
twinaphex 93eff04e54 Move code to widgets/menu_list.c 2016-09-15 15:51:53 +02:00
Twinaphex c7f9cfd785 Merge pull request #3597 from libretro/revert-3590-consolelog
Revert "(Emscripten) Print logs to the browser console"
2016-09-15 13:36:39 +02:00
Twinaphex 430325aee9 Revert "(Emscripten) Print logs to the browser console" 2016-09-15 13:36:21 +02:00
Twinaphex a0f0eebb5e Merge pull request #3596 from libretro/revert-3594-consolelog-fix
Revert "(Emscripten) Bind to the console when logging"
2016-09-15 13:36:08 +02:00
Twinaphex 9fbd4a5265 Revert "(Emscripten) Bind to the console when logging" 2016-09-15 13:34:31 +02:00
Alcaro f4791a9f63 (#2026 #3547 #3588) Configurable is good. Off by default is not good, if it's on your system already then using it does no harm. 2016-09-15 10:32:47 +02:00
Andrés Suárez 08549a342c Merge pull request #3594 from RobLoach/consolelog-fix
(Emscripten) Bind to the console when logging
2016-09-15 00:08:58 -05:00
Rob Loach 993de8b4c4 (Emscripten) Use .bind() on the console object 2016-09-15 00:45:25 -04:00
Rob Loach 8564a5b266 Revert "Revert "(Emscripten) Print logs to the browser console""
This reverts commit a3b4db2d63.
2016-09-15 00:43:40 -04:00
radius a3b4db2d63 Revert "(Emscripten) Print logs to the browser console"
Doesn't work on firefox or edge

This reverts commit ddccaeed8c.
2016-09-14 22:23:48 -05:00
nguillaumin fe4dbcb3f5 Fixes #2026: Make DBus dependency 'auto' to enable it by default
Rationale copied from #2026:

This DBus issue solves a real problem for users, and while I understand
some people may not want the DBus dependency (but in that case, why have
the lib on your system at all?) and agree it should be disablable, I
think it should be enabled by default.
One could argue other people doesn't want `xdg-screensaver` for various
reasons, but that doesn't mean it should be disabled by default.

I don't think we can really say one method is better over the other,
there are arguments for and against both, so I believe doing both by
default is a reasonable compromise.
2016-09-14 19:06:48 -07:00
Brad Parker f5ade35cc6 refresh rate should be 59.94 2016-09-14 20:46:41 -04:00
Andrés Suárez f28037a68b Merge pull request #3590 from RobLoach/consolelog
(Emscripten) Print logs to the browser console
2016-09-14 17:49:12 -05:00
Rob Loach ddccaeed8c (Emscripten) Print logs to the browser console 2016-09-14 18:33:52 -04:00
twinaphex 02e01e0b0a Create menu/widgets/menu_entry 2016-09-15 00:20:43 +02:00
twinaphex a8f407ac33 Header include cleanups 2016-09-15 00:11:49 +02:00
twinaphex 892c0a6f52 Create menu/widgets/menu_list 2016-09-15 00:10:37 +02:00
twinaphex 1a40ace1ac Cleanup 2016-09-14 23:47:18 +02:00
twinaphex 4c2d754b06 (Zarch) Nits 2016-09-14 23:44:49 +02:00
twinaphex 9ee5931c5e Nits 2016-09-14 23:37:20 +02:00
twinaphex 7d5b9f172a Cleanups 2016-09-14 22:46:29 +02:00
Twinaphex ad638fe665 Merge pull request #3588 from orbea/dbus
Disable dbus by default
2016-09-14 19:00:36 +02:00
orbea a5644d61db Disable dbus by default 2016-09-14 09:43:30 -07:00
Twinaphex 9eed1309e7 Merge pull request #3587 from libretro/revert-3586-console
Revert "(Emscripten) Show/Hide the console"
2016-09-14 18:36:05 +02:00
Twinaphex 35f3497033 Revert "(Emscripten) Show/Hide the console" 2016-09-14 18:35:56 +02:00
Andrés Suárez b380977421 Update proto.js 2016-09-14 10:42:15 -05:00
Twinaphex 83eeb15e4a Merge pull request #3584 from GregorR/netplay-nouveau
Netplay Nouveau
2016-09-14 16:40:39 +02:00
Gregor Richards 9bc78d25a0 Minor stylistic fixes for clarity and consistency with the rest of
RetroArch.
2016-09-14 10:06:57 -04:00
Gregor Richards b1a2e096e5 Use consistent quotes in Netplay README. 2016-09-14 10:03:26 -04:00
twinaphex 1b46f3c344 Nits 2016-09-14 15:58:53 +02:00
twinaphex f87dbe7946 Style nits/cleanups 2016-09-14 15:58:03 +02:00
twinaphex ca673b4fc8 C89_BUILD fixes etc. 2016-09-14 15:56:14 +02:00
Twinaphex 09ccef1684 Merge pull request #3547 from nguillaumin/wip-screensaver-dbus
WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
2016-09-14 15:48:43 +02:00
Twinaphex 18c52dac39 (iOS) Buildfix 2016-09-14 15:42:40 +02:00
twinaphex 37ddbc10da Buildfix 2016-09-14 14:11:19 +02:00
twinaphex 1b9a067bcc Move code to apple_compat.h 2016-09-14 14:10:39 +02:00
Twinaphex 88b29c930f Merge pull request #3582 from Ezio-PS/master
Update Italian translation
2016-09-14 10:15:24 +02:00
Ezio-PS cf86aa1f1a Add other translated strings 2016-09-14 09:18:47 +02:00
radius f855e80933 (emscripten) use standard frontend assets dir 2016-09-13 23:41:53 -05:00
Andrés Suárez f9e7308a56 Merge pull request #3586 from RobLoach/console
(Emscripten) Show/Hide the console
2016-09-13 21:50:30 -05:00
Rob Loach 0ae05ef394 Add a toggle console 2016-09-13 22:31:16 -04:00
Gregor Richards 12bf3e4824 Rather than repeating the same sample for every frame while stalled,
just pause the sound while stalled. Both options are annoying, but this
option is less annoying.
2016-09-13 21:45:06 -04:00
Gregor Richards ea0bb6f812 Just in case some systems don't have TCP_NODElAY, put that in an ifdef. 2016-09-13 21:39:10 -04:00
Gregor Richards d4e074dbed Moved the advance of self_ptr to the same place as the advance of
self_frame_count, which is much clearer.
2016-09-13 21:32:57 -04:00
Gregor Richards 99b5ed92ed other should always be <= both real AND self. Before this fix, it was
possible (albeit unlikely) for the remote to get so far ahead of us that
they actually overwrote our own current data :)
2016-09-13 21:32:57 -04:00
Gregor Richards 1267e5e867 A few clarifications regarding the buffer's have_remote and used_real
data. simulation shouldn't touch 'em.
2016-09-13 21:32:57 -04:00
Gregor Richards a0cfdb8a9c naks now cause disconnection. 2016-09-13 21:32:57 -04:00
Gregor Richards b140b16b5d Removed Netplay positive acknowledgement messages: They didn't document
their corresponding sent message, and so couldn't be used for
acknowledgement anyway. Negative acknowledgement is sufficient.
2016-09-13 21:32:57 -04:00
Gregor Richards 6829b80c6b Reimplemented disconnection based on stalls. If we stall for 10 seconds,
disconnect.
2016-09-13 21:32:57 -04:00
Gregor Richards 8aa48cd3f9 Reinstituted "standard" timeout-based disconnection, which only works
for stall_frames==0 due to the fixes to not stall the UI.
2016-09-13 21:32:57 -04:00
Gregor Richards 0ccc39769d Adding my copyright lines to files I've touched. 2016-09-13 21:32:57 -04:00
Gregor Richards ae8e695644 Fixing indentation to align with the rest of RetroArch. 2016-09-13 21:32:57 -04:00
Gregor Richards f9f4e15d33 Removing commented-out code (mostly old UDP stuff) 2016-09-13 21:32:57 -04:00
Gregor Richards c5fe0ec6be Updating the Netplay README to be true of the current implementation. 2016-09-13 21:32:57 -04:00
Gregor Richards 147d739197 Fixed stall_frames=0 mode to only block if frames are actually needed.
Rather than counting on the complexicon of used_real calculations, set
used_real when... real is used. (Problem: If the core doesn't read input
at all, used_real won't be set; todo: test with handhelds.) Minor
resilience fixes.
2016-09-13 21:32:57 -04:00
Gregor Richards c7d0bf90f6 Bugfixes to bring Netplay Nouveau from "kinda working" to "stably
working":

(1) Fixups to the stall logic to make sure it always receives frames
while stalling :)

(2) Disused the used_real field. It was misconfigured and would
frequently claim to be using real data when real data hadn't been
used... this means more replays for now, but used_real will be readded.
(TODO)

(3) Stall duration is now related to sync frames, and thus configurable.

(4) Delta frames were having the good ol' initialization problem, as
frame==0 was indistinguishable from unused. Quickfixed by adding a
"used" field, but maybe there's a better way.

(5) If serialization fails, switch immediately to blocking mode
(stall_frames = 0). Blocking mode barely works, but if serialization
fails, no mode will work!

(6) I'm not sure which bug my replaying-from-previous-frame was trying
to fix, but the correct behavior is to replay from the last frame we had
vital information, not the frame prior. Notionally this should just be
an efficiency thing, but unsigned arithmetic at 0 made this a "just
ignore all input from now on" thing.
2016-09-13 21:32:57 -04:00
Gregor Richards 07e869ccae is_simulated was confusing and poorly named. Using have_remote in its
place, which is simply true if we've received remote data. Could also
just use read_frame_crount instead, but this keeps the info frame-local.
2016-09-13 21:32:57 -04:00
Gregor Richards 4f16a19f5e Rather than stalling by blocking and becoming unresponsive, stall by
replaying the same frame. TODO: Maybe mute the audio?
2016-09-13 21:32:57 -04:00
Gregor Richards 5edfbeafb0 Switched Netplay over to TCP. A lot of the stalling logic had to change
for this, and in particular, it now sometimes stalls in a way that makes
it very difficult to actually input anything (whoops :) ). Simply
setting the sync frames higher avoids that. With supported cores, this
is incredibly risilient, but when it fails, it mostly fails to freezing,
which is less than ideal.

TODO: Stall frames should be configurable. All the UDP code is still
there but commented out, should be gutted. The original fast-forward
code is now commented out, but really both fast-forward and stalling
should be options; the only complication is that it needs to send
simulated self-input for fast-forward.
2016-09-13 21:32:57 -04:00
Gregor Richards 9a80a1bd7e Adding a bit of Netplay documentation. 2016-09-13 21:32:57 -04:00
Gregor Richards 69b7dc0d08 Multitudinous fixes and updates to Netplay. Had to be one commit since
they're mostly related:

(1) Renamed frame_count to self_frame_count to be consistent with all
other names.

(2) Previously, it was possible to overwrite data in the ring buffer
that hadn't yet been used. Now that's not possible, but that just
changes one breakage for another: It's now possible to miss the NEW
data. The final resolution for this will probably be requesting stalls.
This is accomplished simply by storing frame numbers in the ring buffer
and checking them against the 'other' head.

(3) In TCP packets, separated cmd_size from cmd. It was beyond pointless
for these to be combined, and restricted cmd_size to 16 bits, which
will probably fail when/if state loading is supported.

(4) Readahead is now allowed. In the past, if the peer got ahead of us,
we would simply ignore their data. Thus, if they got too far ahead of
us, we'd stop reading their data altogether. Fabulous. Now, we're happy
to read future input.

(5) If the peer gets too far ahead of us (currently an unconfigurable 10
frames), fast forward to catch up. This should prevent desync due to
clock drift or stutter.

(6) Used frame_count in a few places where ptr was used. Doing a
comparison of pointers on a ring buffer is a far more dangerous way to
assure we're done with a task than simply using the count, since the
ring buffer is... well, a ring.

(7) Renamed tmp_{ptr,frame_count} to replay_{ptr,frame_count} for
clarity.

(8) Slightly changed the protocol version hash, just to assure that
other clients wouldn't think they were compatible with this one.

(9) There was an off-by-one error which, under some circumstances, could
allow the replay engine to run a complete round through the ring buffer,
replaying stale data. Fixed.
2016-09-13 21:32:57 -04:00
radius 9022bf75ad (emscripten) make core assets a subdir of content 2016-09-13 19:48:17 -05:00
radius 0b46a6902d (emscripten) add downloads to userdata 2016-09-13 19:40:45 -05:00
radius d6f82b4a16 (emscripten) disable buttons for real, use inmemory file system for content to be able to upload more than 10MB 2016-09-13 19:37:00 -05:00
Jean-André Santoni 6ff07a04b3 Merge pull request #3579 from lakkatv/master
(XMB) Undo icon
2016-09-13 23:22:34 +02:00
Ezio-PS 7763cf1301 Update Italian translation 2016-09-13 23:20:48 +02:00
Jean-André Santoni 7731b14b5c (XMB) Undo icon 2016-09-13 22:58:52 +02:00
twinaphex 10c29cd317 Add default 'no settings' entry if no settings could be added for
network settings
2016-09-13 22:43:20 +02:00
twinaphex 82dd2bc64c Should add default 'no settings' entry if no settings can be
pushed for updater settings list
2016-09-13 22:37:48 +02:00
Twinaphex c06dc92c96 Merge pull request #3573 from lakkatv/master
(Menu) Hide Interface Settings in Lakka
2016-09-13 17:38:46 +02:00
Jean-André Santoni d636f1b4b5 (Menu) Hide Interface Settings in Lakka 2016-09-13 17:18:00 +02:00
twinaphex 6b47bc0bdc Cleanup 2016-09-13 11:46:42 +02:00
twinaphex 9ccae28f6e Cleanups 2016-09-13 11:41:54 +02:00
radius 8fddf7f1ff prevent settings from propagating to main config when creating new overrides 2016-09-13 00:37:23 -05:00
twinaphex 337a0aac5a Cleanup 2016-09-12 20:40:07 +02:00
twinaphex 86c44e76fa Buildfix 2016-09-12 19:58:05 +02:00
twinaphex f14797b67c Fix statically linked targets 2016-09-12 19:57:08 +02:00
Twinaphex b73c7fe4e9 Merge pull request #3572 from frangarcj/patch-1
Wrong ifdef
2016-09-12 19:24:57 +02:00
Francisco José García García 912d26ec26 Wrong ifdef 2016-09-12 19:17:21 +02:00
twinaphex 3247de9afa Cleanup 2016-09-12 18:39:46 +02:00
twinaphex d2dbe63b2b Cleanup 2016-09-12 18:37:32 +02:00
twinaphex d4be224ea6 Header include cleanups 2016-09-12 18:34:57 +02:00
twinaphex b0e372432f Cleanups 2016-09-12 18:18:20 +02:00
twinaphex 51823f7169 Cleanups 2016-09-12 18:16:42 +02:00
twinaphex 79222de018 Move define to scaler_filter.c 2016-09-12 17:32:35 +02:00
twinaphex b4d75fbafd Cleanups 2016-09-12 17:29:01 +02:00
twinaphex 6f23a8ac0d Move httpserver to network/ 2016-09-12 17:21:00 +02:00
twinaphex 93d98069b2 Cleanups 2016-09-12 16:45:26 +02:00
twinaphex e42034ebd8 Cleanups 2016-09-12 16:39:50 +02:00
twinaphex cdc5eb4fac Cleanups 2016-09-12 16:36:27 +02:00
twinaphex f735e96dfb Cleanup 2016-09-12 16:31:40 +02:00
twinaphex ae158453e1 (Emscripten) Add title for menu toggle 2016-09-12 15:17:28 +02:00
twinaphex 49d5210256 Should make Start Core work on statically linked RA now 2016-09-12 08:37:40 +02:00
Twinaphex 488079d39f Merge pull request #3569 from frangarcj/master
Allow "Load Content" when RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME = true on static
2016-09-12 08:24:53 +02:00
Twinaphex 394d2a1e6b Merge pull request #3568 from Skylark13/master
Add fetching git submodules
2016-09-12 07:02:16 +02:00
Jean-Sebastien Guay 0774831b21 Add --recursive in case submodules have third-party dependencies 2016-09-11 19:43:16 -04:00
Francisco José García García b5111d4654 Fix Typo 2016-09-12 01:14:12 +02:00
Francisco José García García b8391e4cc2 Allow "Load Content" when RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME = true 2016-09-12 01:10:35 +02:00
Jean-Sebastien Guay 2ad380e677 Add fetching git submodules (in the case of retroarch, currently only glslang) 2016-09-11 17:31:16 -04:00
twinaphex 77ddea41c8 Move ifdefs around 2016-09-11 21:06:16 +02:00
twinaphex 056cc8ece8 Move menu_popu.c to menu/widgets 2016-09-11 21:03:31 +02:00
twinaphex 6b66377ed6 retroarch.c - set default values 2016-09-11 20:04:41 +02:00
twinaphex 16fea8d26d Create retroarch_main_init_media 2016-09-11 19:57:06 +02:00
twinaphex bece01093d Cleanups - retroarch_main_init 2016-09-11 19:53:34 +02:00
twinaphex ebeb081562 Rewrite core_load_game 2016-09-11 19:46:13 +02:00
twinaphex 577c2e93a1 Silence warning 2016-09-11 19:04:01 +02:00
twinaphex 1fea80c630 Another header cleanup 2016-09-11 18:49:38 +02:00
twinaphex d130007ae5 Header include cleanups 2016-09-11 18:08:58 +02:00
twinaphex b216f76528 Cleanups 2016-09-11 18:05:39 +02:00
twinaphex d3f7bf8527 Move video_state_python to gfx/drivers_tracker 2016-09-11 17:59:10 +02:00
twinaphex 22022f8133 Cleanup 2016-09-11 17:55:46 +02:00
twinaphex e427a2d2fa Move enums to gfx/video_thread_wrapper.c 2016-09-11 17:42:53 +02:00
twinaphex 88c7976104 Rename CMD_NONE to CMD_VIDEO_NONE 2016-09-11 17:40:26 +02:00
twinaphex 29c05599a3 Cleanup enum 2016-09-11 17:37:05 +02:00
twinaphex 3674dd4300 Header include cleanups 2016-09-11 17:28:57 +02:00
twinaphex 4b63af59a2 video_thread_wrapper.h - get rid of some ifdefs 2016-09-11 17:24:22 +02:00
twinaphex 583795ee36 Silence warning for targets that don't have HAVE_NETPLAY (GX/Wii) 2016-09-11 16:47:51 +02:00
twinaphex b680ffbfa6 Fix CXX_BUILD 2016-09-11 16:47:39 +02:00
twinaphex d4797781ea (GX) Buildfix 2016-09-11 16:44:29 +02:00
twinaphex 3cf24afc44 (CTR) Buildfix 2016-09-11 16:43:56 +02:00
twinaphex 6d7602d47f Fix C89_BUILD 2016-09-11 16:43:28 +02:00
twinaphex 7290c7e3c2 (Emscripten) Buildfix 2016-09-11 16:39:13 +02:00
Alcaro 439590d3ca More noise here... 2016-09-11 16:38:36 +02:00
Alcaro 0720d5ad77 Kill warning 2016-09-11 16:38:36 +02:00
twinaphex b93ef046a7 Header include cleanups 2016-09-11 16:31:23 +02:00
twinaphex 51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex 9d9471413d (Emscripten) Buildfix 2016-09-11 15:24:33 +02:00
twinaphex 7e83162c60 Remove general.h 2016-09-11 15:10:58 +02:00
twinaphex 7ddd03c558 Fix dinput/xinput 2016-09-11 15:08:07 +02:00
twinaphex 606e37fcbd Cleanups 2016-09-11 15:07:07 +02:00
twinaphex c97aa5e7ea header include cleanups 2016-09-11 14:59:18 +02:00
twinaphex f44fbe9d18 (Win32) Buildfix 2016-09-11 14:55:29 +02:00
twinaphex 7ac1ed7e10 Cleanups 2016-09-11 14:54:34 +02:00
twinaphex 202e3e796e Get rid of more general.h includes 2016-09-11 14:46:53 +02:00
twinaphex 57cb83ed6f Cleanup 2016-09-11 14:38:27 +02:00
twinaphex 2324c48164 Move civetweb to deps/ 2016-09-11 14:37:29 +02:00
twinaphex 012e069f86 Get rid of general.h includes 2016-09-11 13:21:56 +02:00
twinaphex 6c6d4cd34b (dynamic.c) Get rid of __CELLOS_LV2__ ifdef 2016-09-11 13:03:19 +02:00
radius 2c01ffcdb9 (ems) add menu toggle button 2016-09-11 02:37:56 -05:00
Andrés ec6eb0ccad Merge pull request #3566 from RobLoach/patch-8
(Emscripten) Use a CDN for Material Design
2016-09-11 01:47:17 -05:00
Andrés a714f77646 Merge pull request #3567 from RobLoach/fix-browserfs
(Emscripten) Fix BrowserFS casing
2016-09-11 01:47:10 -05:00
Rob Loach 308c3e2655 (Emscripten) Fix BrowserFS casing 2016-09-11 02:44:20 -04:00
Rob Loach 826da20e8d (Emscripten) Use a CDN for Material Design
https://cdnjs.com/libraries/mdbootstrap
2016-09-11 02:36:25 -04:00
Andrés af5874df9f Merge pull request #3565 from RobLoach/remove-unneeded-js
(Emscripten) Remove unneeded Font Awesome JS file
2016-09-11 01:27:30 -05:00
Rob Loach cb6055d01a emscripten: Remove unneeded Font Awesome JS file 2016-09-11 02:15:27 -04:00
Andrés 071ff99198 Merge pull request #3564 from RobLoach/core-selector
(Emscripten) Display the active core name
2016-09-11 00:51:15 -05:00
Rob Loach f5be649b66 emscripten: display the active core name 2016-09-11 01:39:33 -04:00
Andrés 5ad6de8720 Merge pull request #3559 from RobLoach/nav
(Emscripten) Move Controls to the Navbar
2016-09-10 23:33:11 -05:00
Rob Loach ed44348b44 Merge branch 'master' of github.com:libretro/RetroArch into nav
Conflicts:
	pkg/emscripten/proto.html
2016-09-11 00:32:18 -04:00
Andrés 457ea6c77f Merge pull request #3563 from RobLoach/fa-spin
(Emscripten) Use Font Awesome's fa-spin class
2016-09-10 23:21:58 -05:00
Rob Loach 842f6816ae emscripten: use the fa-spin class 2016-09-11 00:19:18 -04:00
Andrés 0173ecf391 Merge pull request #3561 from RobLoach/browserify-cdn
(Emscripten) Switch to Browserify CDN for BrowserFS
2016-09-10 23:16:03 -05:00
Andrés d39997b6c1 Merge pull request #3560 from RobLoach/patch-7
(Emscripten) Add .gitignore to skip buildbot files
2016-09-10 23:14:47 -05:00
Rob Loach ca947b9563 emscripten: switch to browserify-cdn on wzrd.in 2016-09-11 00:04:41 -04:00
Rob Loach 18a2a0e372 emscripten: Add .gitignore to skip buildbot files 2016-09-10 23:54:32 -04:00
Rob Loach 6ee2689bb6 Move Controls to Navbar 2016-09-10 23:44:15 -04:00
twinaphex aab5fe60e4 (menu_setting.c) Cleanups 2016-09-10 19:06:00 +02:00
Twinaphex 600b46ac7a Merge pull request #3555 from RobLoach/patch-6
emscripten: Fix loading animation on FireFox
2016-09-10 09:21:37 +02:00
Rob Loach b4f575099f emscripten: Fix loading animation on FireFox
Uses the `-moz-` prefix.
2016-09-10 02:21:33 -04:00
Twinaphex c7a3ac673e Merge pull request #3554 from RobLoach/center-align-loading
emscripten: center-align the loading image
2016-09-10 08:14:10 +02:00
Rob Loach b147ccc62a emscripten: center-align the loading image 2016-09-10 02:10:31 -04:00
Andrés 37fe47c209 Merge pull request #3553 from RobLoach/patch-5
emscripten: Add a glowing animation when loading
2016-09-09 23:31:07 -05:00
Rob Loach 8abd55662f emscripten: Add a glowing animation when loading 2016-09-10 00:28:14 -04:00
radius 8b194788e7 fix invader url 2016-09-09 22:34:06 -05:00
radius 9a5dcabf36 use invader instead 2016-09-09 22:03:50 -05:00
radius 2b7f628bd9 remove this file 2016-09-09 22:02:52 -05:00
Andrés d809a3a070 Merge pull request #3552 from RobLoach/preview
emscripten: Add a preview image while loading
2016-09-09 22:01:35 -05:00
Rob Loach 4163513ec7 emscripten: add a preview logo while loading 2016-09-09 22:46:31 -04:00
Andrés 834981d74a Merge pull request #3551 from RobLoach/patch-5
emscripten: fix disabling key strokes
2016-09-09 20:47:27 -05:00
radius c366b20a5c update browserfs 2016-09-09 20:36:46 -05:00
nguillaumin c69c488fdf Address code review comments 2016-09-09 18:08:54 -07:00
Andrés 558f24eeb4 Merge pull request #3550 from frangarcj/master
(VITA) Fix some bugs
2016-09-09 18:45:19 -05:00
Rob Loach 1201da9f36 emscripten: fix disabling key strokes
This fixes the key stroke actions.
2016-09-09 19:34:52 -04:00
Francisco José García García 01d23d5d68 (VITA) Fix some bugs 2016-09-10 01:20:34 +02:00
Twinaphex 1bf6887c59 Merge pull request #3548 from frangarcj/master
(VITA) Use pthreads
2016-09-09 17:56:34 +02:00
frangarcj 307f72a3cd (VITA) Fix pthreads 2016-09-09 17:14:50 +02:00
frangarcj caffd7e3b0 Revert "(VITA) Use SDK sockets"
This reverts commit 5d1d1a1ed8620a5e164c0a0c84afa4fd5bfd774b.
2016-09-09 17:14:50 +02:00
frangarcj 731f3b093d (VITA) Use SDK sockets 2016-09-09 17:14:50 +02:00
frangarcj e11b5cabd2 (VITA) Remove warnings 2016-09-09 17:14:50 +02:00
frangarcj c3bf05de96 (VITA) Let's use SDK pthreads 2016-09-09 17:14:50 +02:00
twinaphex 4197d81dcf Update glsm.c 2016-09-09 16:04:23 +02:00
twinaphex 164d3b034c Get rid of OSX_PPC 2016-09-09 15:56:56 +02:00
radius eb18aae600 (ems) upload content should go here instead 2016-09-09 00:30:07 -05:00
radius 7421059521 (ems) fix nit 2016-09-09 00:27:24 -05:00
radius b883597272 (psp) add comment 2016-09-09 00:26:20 -05:00
radius 5dcfe3bb24 (ems) simplify code 2016-09-09 00:25:27 -05:00
radius ff6861fc77 emscripten and psp frontend driver refinement 2016-09-09 00:12:48 -05:00
radius 9d7bb72c00 (psp) add missing paths as reference for vita 2016-09-09 00:06:13 -05:00
radius d551b00787 emscripten and psp frontend driver cleanups 2016-09-08 23:56:43 -05:00
radius 8b2434a408 (ems) override F1 and other keys, use paths relative to the base url 2016-09-08 23:37:30 -05:00
twinaphex 934bd2d018 (Emscripten) Set pause_nonactive to false by default 2016-09-09 06:06:12 +02:00
twinaphex 1cc55dcae3 (FFT) fft_render - cleanup 2016-09-09 04:05:11 +02:00
twinaphex 0ceffb87f2 matrix_4x4_ortho - cleanup 2016-09-09 04:02:41 +02:00
twinaphex 8649852e18 (fft) Start making this more readable 2016-09-09 03:17:00 +02:00
Nicolas Guillaumin 05df632bd8 WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
One some systems (tested with Gnome 3 on Arch Linux) the current method
of using `xdg-screensaver` to suspend the screensaver does not work.
Instead, using DBus to issue an `Inhibit` request is recommended.

The request returns a cookie that needs to be re-used to un-inhibit the
screensaver later. Additionally if the DBus connection is closed the
current inhibition is discarded. Thus, the DBus connection needs to stay
connected for the duration of the screenshot inhibition.

The code is heavily inspired from the [SDL 2.x
code](http://hg.libsdl.org/SDL/file/default/src/core/linux/SDL_dbus.c#l172).
I didn't call the SDL 2 code though since this it to fix the issue with
the GL driver, and I assume one would want to have screensaver inhibited
even when SDL 2 is not available (but GL is).

I've set "WIP" because:
* I haven't done C in a long time so my code is probably not great
* There's a dependency on DBus which I don't know is acceptable or
not
* I've put my code where I could to check it works, but `x11_common` may
not be the best place
* The code need and "init" and "deinit" kind of method as it needs to
initialise the DBus connection, and on deinit close it properly. I've
used `x11_connect` and `x11_window_destroy` but they don't sound like
the best choices.
* I'm a bit unclear as to what happens when "suspend screensaver" is
ticked on/off in the menu. This doesn't seem to call
`x11_suspend_screensaver` everytime, so I'm not sure if there's a hook
somewhere (as disabling screensaver suspend in the menu should cause a
DBus unhinibit request to be sent).
* Should I just call the SDL 2.x code (meaning that the GL driver would
depend on SDL 2.x at runtime)?

So, first of all are you ok with the approach, and if yes I'd gladly get
feedback about the code, how to architecture it and the best place to
put it.

Thanks!
2016-09-08 15:23:41 -07:00
Alcaro ea9793a17c Merge pull request #3546 from libretro/revert-3539-_debug
Revert "Append _debug to debug builds and add file to .gitignore"
2016-09-08 18:23:34 +02:00
Alcaro c9e4511e37 Revert "Append _debug to debug builds and add file to .gitignore" 2016-09-08 18:23:26 +02:00
twinaphex e10fb993ff (core_impl.c) Cleanups 2016-09-08 16:25:40 +02:00
twinaphex 59363d2631 (PS3/PSP) Cleanups 2016-09-08 16:18:30 +02:00
twinaphex 2a1c93c718 (CTR) Cleanup 2016-09-08 16:16:28 +02:00
twinaphex 7bb93478db (HAVE_MENU) Buildfix 2016-09-08 14:28:59 +02:00
twinaphex 8e4683fa10 Compiles without HAVE_MENU defined again 2016-09-08 14:25:14 +02:00
twinaphex dc0666555f Cleanups 2016-09-08 14:17:38 +02:00
twinaphex 4cf20fd2c3 (dynamic.c) Cleanups 2016-09-08 14:11:32 +02:00
twinaphex cbba2f593f Cleanups 2016-09-08 13:29:50 +02:00
twinaphex bc5c7571b5 (Wii) Cleanup 2016-09-08 13:20:50 +02:00
twinaphex ebf04dab4f (PS3 Salamander) Fix build 2016-09-08 13:17:14 +02:00
twinaphex e045ec237a Cleanup audio/test/snr.c 2016-09-08 12:10:38 +02:00
twinaphex db6171676a Use retro_assert everywhere 2016-09-08 11:59:44 +02:00
twinaphex ea4f85d860 (drivers_resampler) Style indent cleanups 2016-09-08 11:46:59 +02:00
twinaphex 60cdd730b1 (audio/drivers) Cosmetic cleanups 2016-09-08 11:41:58 +02:00
twinaphex 87e33c56f1 Add HAVE_CONFIG_H ifdefs 2016-09-08 11:22:08 +02:00
twinaphex b15ec2f0d2 (Emscripten) Add PicoDrive 2016-09-08 10:44:40 +02:00
Twinaphex 2c9f56932c Merge pull request #3541 from frangarcj/master
(VITA) Fix build
2016-09-08 09:18:01 +02:00
frangarcj cf478647a1 (VITA) Fix build 2016-09-08 09:16:42 +02:00
twinaphex f5b282c422 (Emscripten) Add Desmume 2016-09-08 09:02:40 +02:00
twinaphex f5f2cfda3a Cleanups 2016-09-08 08:16:49 +02:00
twinaphex b43f786f89 Cleanups 2016-09-08 08:15:40 +02:00
twinaphex 34022605aa Cleanups 2016-09-08 08:13:09 +02:00
twinaphex 8a9ae155a2 Cleanups 2016-09-08 08:10:31 +02:00
twinaphex 74c186c184 Cleanups 2016-09-08 08:08:50 +02:00
radius 21f83a89ad (ems) add libretro-logo 2016-09-08 00:52:54 -05:00
radius 2e17af781f (ems) rework storage 2016-09-08 00:49:36 -05:00
twinaphex 2f9dbd2541 (Emscripten) If SDL2 is defined, use it as default input driver 2016-09-08 07:37:27 +02:00
twinaphex 413d786e12 (Emscripten) Add mupen64plus 2016-09-08 07:10:53 +02:00
twinaphex f148194dab (ffmpeg) Add more extensions 2016-09-08 06:32:57 +02:00
twinaphex 7a36ea7d1c Silence warnings 2016-09-08 06:11:02 +02:00
twinaphex 5aaebcfa62 Header include cleanups 2016-09-08 06:07:43 +02:00
twinaphex 0732626797 Add header includes 2016-09-08 06:02:41 +02:00
twinaphex c35d763990 Cleanups 2016-09-08 06:00:54 +02:00
Twinaphex ac2676b25f (glcapabilies.h) Add HAVE_CONFIG_H ifdef 2016-09-08 05:51:20 +02:00
twinaphex 229e0dd640 Cleanups 2016-09-08 05:48:43 +02:00
twinaphex 83194ff235 (menu) Cleanups 2016-09-08 05:43:10 +02:00
twinaphex a8f1d5b115 Add HAVE_CONFIG_H ifdefs 2016-09-08 05:39:08 +02:00
twinaphex ffd253e749 (menu_cbs_deferred_push.c) Add HAVE_CONFIG_H 2016-09-08 05:35:39 +02:00
twinaphex 8d41cbf427 Add HAVE_CONFIG_H - menu_displaylist.c 2016-09-08 04:03:28 +02:00
twinaphex 6a13359f65 (Vita) FBA and other big cores no longer seem to work - so change
this back to 192
2016-09-08 03:59:56 +02:00
radius e97b273c94 (ems) build fix 2016-09-07 20:19:51 -05:00
radius 46a861836b (ems) build fix 2016-09-07 20:16:30 -05:00
radius 7128785e7b (ems) add the missing default paths 2016-09-07 20:09:58 -05:00
Twinaphex 8279d8582a Merge pull request #3540 from frangarcj/master
(VITA) Initial Salamander
2016-09-08 01:30:11 +02:00
Francisco José García García c2cf515189 (VITA) Initial Salamander 2016-09-08 01:26:03 +02:00
twinaphex b2c9db523a Set HAVE_XSHM to NO as long as Travis CI builds fail with it on -
https://travis-ci.org/libretro/RetroArch/jobs/158305004
2016-09-08 01:18:12 +02:00
Twinaphex cce090db9e Merge pull request #3538 from frangarcj/master
Some VITA things
2016-09-08 00:12:43 +02:00
Twinaphex bf68c549cc Merge pull request #3539 from spec-chum/_debug
Append _debug to debug builds and add file to .gitignore
2016-09-08 00:12:25 +02:00
Spec-Chum 61ff11a0fa Append _debug to debug builds and add file to .gitignore 2016-09-07 23:07:17 +01:00
Francisco José García García 04b5dbdb5c (VITA) Silence texture load 2016-09-07 23:53:20 +02:00
Francisco José García García 3be1785ed6 (VITA) Reduce Heap Memory 2016-09-07 23:52:45 +02:00
Andrés f58676c5ad Update proto.js 2016-09-07 16:04:18 -05:00
Andrés 9ea3402c9a Update proto.js 2016-09-07 12:50:01 -05:00
radius 041e9c327a change to busy state while uploading 2016-09-07 10:50:57 -05:00
radius a5a26fea61 use /content for uploads/ 2016-09-07 10:36:53 -05:00
Alcaro 37a907eb51 These aren't needed. 2016-09-07 14:40:10 +02:00
Alcaro 3f105fe71f Perform evil experiments (run this driver in a completely different program) 2016-09-07 14:30:27 +02:00
twinaphex cc6fe3159f Some comments 2016-09-07 14:12:40 +02:00
twinaphex ab325e54a1 gfx/video_driver.h - add comments 2016-09-07 13:55:46 +02:00
twinaphex e880a3b248 vfilter is for Wii/Gekko only 2016-09-07 13:54:01 +02:00
Alcaro e243614db8 Create half-broken XShm driver, to perform evil experiments on 2016-09-07 13:39:00 +02:00
twinaphex 2945605b61 Update ffmpeg 2016-09-07 13:19:28 +02:00
twinaphex 39f3808c96 (Emscripten) Add libretro logo 2016-09-07 12:21:29 +02:00
twinaphex 81cd1bf6d5 (emscripten) Comment out mednafen-saturn 2016-09-07 12:16:16 +02:00
twinaphex e9dfd2b046 (Emscripten) Add EasyRPG 2016-09-07 12:11:52 +02:00
twinaphex 8ef5315409 (Emscripten) Add ffmpeg 2016-09-07 11:56:26 +02:00
twinaphex b4c91b4f6b Add note about Google Chrome 2016-09-07 10:28:11 +02:00
twinaphex ba154518e2 (Emscripten) Add gme 2016-09-07 10:11:55 +02:00
twinaphex 0d85039b4a (emscripten) Update proto.html 2016-09-07 10:01:50 +02:00
radius 0e634a8819 fix combo color 2016-09-07 01:44:34 -05:00
radius 0151d78466 correct favicon 2016-09-07 01:11:33 -05:00
radius 1f68152b10 add icon 2016-09-07 00:56:46 -05:00
radius 802ca36cf8 fix redirect 2016-09-07 00:49:18 -05:00
twinaphex 044341cee3 (Emscripten) Add o2em 2016-09-07 07:43:20 +02:00
radius 867080965b add material bootstrap template 2016-09-07 00:41:13 -05:00
twinaphex 8fa84c9462 (Emscripten) Add fMSX 2016-09-07 07:31:31 +02:00
twinaphex 58a7c27940 (Emscripten) Add blueMSX 2016-09-07 07:23:42 +02:00
twinaphex 9e36724255 (Emscripten) Add 2048 2016-09-07 07:08:47 +02:00
twinaphex c084532d31 (Emscripten) Add 4DO 2016-09-07 07:05:20 +02:00
twinaphex de8af46524 (Emscripten) Add Virtual Jaguar 2016-09-07 07:02:44 +02:00
twinaphex cea6657bca (Emscripten) Add Snes9x 2016-09-07 06:59:02 +02:00
twinaphex 54fc282c3b (Emscripten Add Mednafen PCFX 2016-09-07 06:42:56 +02:00
twinaphex 27a64c40a8 (Emscripten) Add mednafen_lynx 2016-09-07 06:35:06 +02:00
twinaphex 61c52df552 (Emscripten) Add mednafen_wswan 2016-09-07 06:27:55 +02:00
twinaphex 89f38f6369 (Emscripten) Add Mednafen NGP 2016-09-07 06:21:20 +02:00
twinaphex 444061aa8a (Emscripten) Add Mednafen VB 2016-09-07 06:13:48 +02:00
twinaphex 9309733c60 (Emscripten) Add pce_fast 2016-09-07 06:04:22 +02:00
twinaphex a8d43f65f5 (Emscripten) Fix Snes9x names 2016-09-07 05:58:04 +02:00
twinaphex e7b55b75dc (Emscripten) Add snes9x 2002 2016-09-07 05:57:48 +02:00
twinaphex 69ed06b2af (Emscripten) Add Vecx 2016-09-07 05:50:20 +02:00
twinaphex 1046ede7cf (Emscripten) Add MAME 2000 2016-09-07 05:30:44 +02:00
twinaphex 5db9e7f1c0 (Emscripten) Add NXEngine 2016-09-07 05:25:05 +02:00
twinaphex d20ea521cb (Emscripten) Add snes9x2005 2016-09-07 05:18:40 +02:00
twinaphex 3e7d15dcd5 (Emscripten ) Add Stella 2016-09-07 05:14:47 +02:00
twinaphex de59563f7f (Emscripten) Add TGB Dual 2016-09-07 05:12:29 +02:00
twinaphex 92676f6a30 (Emscripten) Add TyrQuake 2016-09-07 05:08:05 +02:00
twinaphex 4c0163a8eb (Emscripten) Add prboom 2016-09-07 05:05:42 +02:00
Twinaphex 07c1dd02b6 Merge pull request #3535 from bparker06/thread_toggle
context must be current, not released, to use GL
2016-09-07 03:49:40 +02:00
Brad Parker 81090720c8 context must be current, not released, to use GL 2016-09-06 21:47:08 -04:00
twinaphex 882cddfafc (Emscripten ) Add Nestopia entry 2016-09-07 03:37:19 +02:00
twinaphex 5102b8fdbc (Emscripten) Add QuickNES 2016-09-07 03:28:43 +02:00
Twinaphex 1fcbd6d1e4 Merge pull request #3534 from mudlord/master
mudlord is a braindead hack. And a braindead clot
2016-09-07 01:49:02 +02:00
mudlord b1833c2d52 account for if people have core id files but not the actual cores. 2016-09-07 09:44:07 +10:00
Alcaro 8bb4425bc2 Merge pull request #3533 from mudlord/master
mudlord is yet a bigger clot and deserves to be shot.
2016-09-07 01:14:42 +02:00
twinaphex 245a65a0d7 Change this 2016-09-07 01:12:35 +02:00
Brad Miller 96c7807012 mudlord is yet a bigger clot and deserves to be shot.
More Nvidia Windows 10 bullshit.
2016-09-07 09:09:16 +10:00
twinaphex 2080301088 matrix_4x4_multiply - add early return to prevent null
pointer dereferences
2016-09-07 00:57:05 +02:00
twinaphex 270593990b (Emscripten) Add fceumm button 2016-09-07 00:33:31 +02:00
twinaphex 85500eb7b2 Add Genesis Plus GX button 2016-09-07 00:24:41 +02:00
twinaphex 15d62256d7 Rearrange HAVE_CONFIG_H ifdef placement 2016-09-07 00:03:07 +02:00
twinaphex 4b2adec67a Add HAVE_CONFIG_H ifdef to menu/menu_driver.c 2016-09-07 00:01:49 +02:00
twinaphex 642e46779b Cleanups 2016-09-06 23:59:43 +02:00
twinaphex 5222407408 Add HAVE_CONFIG_H ifdefs 2016-09-06 23:53:44 +02:00
twinaphex 8320466824 Add HAVE_CONFIG_H ifdefs 2016-09-06 23:52:33 +02:00
twinaphex b175f26b23 Add HAVE_CONFIG_H ifdefs to audio_driver.c/audio_resampler_driver.c 2016-09-06 23:48:27 +02:00
twinaphex ffcf96dd24 Add config.h includes 2016-09-06 23:47:05 +02:00
twinaphex e6a114a95a Create gfx/video_frame.c 2016-09-06 23:41:09 +02:00
twinaphex 50bd1c38be Header cleanup 2016-09-06 23:34:55 +02:00
twinaphex 226460530c Header include cleanup 2016-09-06 23:34:27 +02:00
twinaphex 6871afe51b Header include cleanups 2016-09-06 23:31:45 +02:00
twinaphex b6e554e1cb Remove DONT_HAVE_STRING_LIST 2016-09-06 23:29:07 +02:00
twinaphex 5f3a47a725 Cleanups 2016-09-06 23:28:45 +02:00
twinaphex 671063aec2 Silence warnings 2016-09-06 23:17:16 +02:00
Twinaphex 2ad7e2bb09 Merge pull request #3532 from dankcushions/buildfix
Fix build on Raspberry Pi (3)
2016-09-06 23:15:40 +02:00
dankcushions cdc4bff3fb Fix build on Raspberry Pi (3) 2016-09-06 21:54:53 +01:00
twinaphex 2d7e4ccf62 Header include cleanup 2016-09-06 22:43:23 +02:00
twinaphex 2d4c624d4e (Vita) Add -lpng dependency 2016-09-06 22:25:08 +02:00
twinaphex a545337265 .travis.yml - shouldn't be environment variables but should be passed
as defines to make instead
2016-09-06 22:18:33 +02:00
twinaphex 8c8332b414 Add two new targets - BUILD_C89 and BUILD_CXX 2016-09-06 22:11:43 +02:00
Alcaro 9f3b39cf9e Merge pull request #3531 from mudlord/master
mudlord is a fucking clot and needs to be shot.
2016-09-06 21:57:18 +02:00
mudlord f3a0d8518e mudlord is a fucking clot/hack and needs to be shot.
Should have tested on other drivers than Nvidia Windows.
2016-09-07 05:56:07 +10:00
twinaphex 2cd568cdaa Use xmb_theme 2016-09-06 19:50:13 +02:00
twinaphex 6f47289ba6 Start adding HAVE_CONFIG_H to gfx/drivers_context 2016-09-06 19:39:02 +02:00
Alcaro 23dc89168a are those HAVE flags not set up there or something? 2016-09-06 19:21:33 +02:00
Twinaphex ac98b68f74 Merge pull request #3528 from bparker06/ffmpeg_ext
associate more media extensions with ffmpeg...
2016-09-06 18:55:06 +02:00
Brad Parker a501fd02c1 make sure context is valid for this stream 2016-09-06 12:44:09 -04:00
Brad Parker e64a3c4956 associate more media extensions with ffmpeg 2016-09-06 12:37:08 -04:00
Twinaphex 6bb8d91668 Merge pull request #3526 from frangarcj/master
(VITA) Slimming Vita2D
2016-09-06 18:20:39 +02:00
frangarcj d21938a015 (VITA) Slimming Vita2D 2016-09-06 12:03:18 +02:00
Twinaphex 77876e348b Merge pull request #3522 from frangarcj/master
small libco fix and some silencing
2016-09-06 10:13:01 +02:00
frangarcj 434d70ce13 (VITA) Silence rthreads 2016-09-06 09:27:52 +02:00
frangarcj 5be5ce8416 (VITA) libco: Fix small bug 2016-09-06 09:26:25 +02:00
frangarcj 5ff25ca6ae Merge remote-tracking branch 'refs/remotes/libretro/master' 2016-09-06 09:24:49 +02:00
twinaphex c3ba0ba4e9 Revert "Refactor core_system_info_* functions"
This reverts commit f637805c9e.
2016-09-06 08:38:26 +02:00
Twinaphex 2ecd9f36c4 Merge pull request #3521 from mudlord/master
Optimized vertex shader for ribbon.
2016-09-06 08:08:24 +02:00
Brad Miller 94be5a8651 Update modern_pipeline_xmb_ribbon.glsl.vert.h
nit
2016-09-06 15:58:37 +10:00
mudlord d77759cc1b change 2016-09-06 15:45:57 +10:00
mudlord 73a1cd4631 greatly optimized modern vertex shader for ribbon. 2016-09-06 15:42:16 +10:00
twinaphex fdca622785 Set 128ms audio latency and CC resampler for Emscripten 2016-09-06 07:41:35 +02:00
twinaphex f637805c9e Refactor core_system_info_* functions 2016-09-06 07:08:38 +02:00
radius 18527d2fef (emscripten) use localstorage variables instead of passing the parameters in a URL 2016-09-05 23:35:16 -05:00
twinaphex 82d82110ae Merge system.h with core.h 2016-09-06 06:11:54 +02:00
radius 48ac6330ed fix a couple of nits 2016-09-05 22:49:31 -05:00
Twinaphex 11364e7e69 Merge pull request #3520 from fr500/master
Add coverity badge
2016-09-06 05:45:18 +02:00
Andrés 323c104aa6 Add coverity badge 2016-09-05 22:43:42 -05:00
Andrés f543da73db Add build status badge 2016-09-05 22:34:03 -05:00
Twinaphex 2ea086c0f8 Merge pull request #3518 from nguillaumin/travis-ci
Fixes #1868: Added Tracis CI config file
2016-09-06 05:18:22 +02:00
Nicolas Guillaumin ddfa365c20 Fixes #1868: Added Tracis CI config file
Builds on Linux with gcc and clang, and also on Mac.

Had to configure a more recent version of clang as the default Travis CI
one is a bit outdated and wouldn't work.

Unfortunately I was unable to install Nvidia Cg for Mac as it needs to
run the installer interactively. Still, it builds without Cg support.

It only covers a subset of the architectures, but that's better than
nothing and should catch at least basic errors on pull requests
(requires enabling Travis CI support in the GitHub repository settings).
2016-09-05 20:10:06 -07:00
twinaphex 8467404fd6 Inline CMD_EVENT_LOAD_CORE_DEINIT 2016-09-06 05:05:50 +02:00
twinaphex a09601cbfa Change ifndef HAVE_DYNAMIC to ifdef HAVE_DYNAMIC 2016-09-06 04:55:24 +02:00
twinaphex 6ccf67057b Add 'core_is_inited' and 'core_is_symbols_inited' 2016-09-06 03:52:29 +02:00
twinaphex 3e9df72123 Try to fix ARM build 2016-09-06 03:14:20 +02:00
twinaphex c01e5887f2 Rename this setting to 'Filter unknown extension' 2016-09-06 03:10:53 +02:00
twinaphex 0aef3c2529 Rename 'Select Collection' and 'Select From Downloaded File' 2016-09-06 03:06:22 +02:00
Twinaphex 9fffa94ef3 Merge pull request #3516 from JuanVCS/master
Add safe homebrew flag
2016-09-06 02:57:53 +02:00
JuanVCS 62f0e0fe89 Add safe homebrew flag
Added safe homebrew flag as per https://yifan.lu/2016/08/27/henkaku-update/
2016-09-05 21:50:15 -03:00
JuanVCS a87f858d0b Add safe homebrew flag
Added safe homebrew flag as per https://yifan.lu/2016/08/27/henkaku-update/
2016-09-05 21:48:59 -03:00
twinaphex e2a734183b Cleanu parse_drive_list callback for Linux/Android 2016-09-06 02:18:17 +02:00
twinaphex 93ed23d46f Warning fix 2016-09-06 01:08:05 +02:00
twinaphex e6524f961a header include cleanups 2016-09-06 01:02:25 +02:00
twinaphex 075aea2289 Header include cleanups 2016-09-06 00:56:00 +02:00
twinaphex 4a5be82250 Update 2016-09-06 00:41:43 +02:00
Twinaphex ce10861aac Merge pull request #3515 from frangarcj/master
(VITA) fiber based libco
2016-09-06 00:16:58 +02:00
Francisco José García García 105d5fc20f (VITA) fiber based libco 2016-09-06 00:08:17 +02:00
twinaphex 266a06ffb1 Revert "Expose GPU Hard Sync for GLES 3 too"
This reverts commit a74813c9ea.
2016-09-05 21:43:02 +02:00
twinaphex bd45d7a707 gl_capabilities.c - cleanups 2016-09-05 21:25:38 +02:00
twinaphex 67c2965612 OpenGL ES should not reach this code 2016-09-05 21:22:38 +02:00
twinaphex a74813c9ea Expose GPU Hard Sync for GLES 3 too 2016-09-05 21:16:30 +02:00
twinaphex 280aa831b5 Remove verbosity.h header dependency on gl_capabilities.c 2016-09-05 21:12:44 +02:00
Twinaphex 0c138bb719 Merge pull request #3498 from leiradel/master
Use PRIXPTR to print pointers, removed unneeded field from the /info …
2016-09-05 21:10:23 +02:00
twinaphex 43edd76736 Add headers 2016-09-05 21:09:21 +02:00
twinaphex 8b1ee6a2b1 Update 2016-09-05 20:51:23 +02:00
twinaphex 1b94fd2fce Update libretro-ffmpeg 2016-09-05 20:48:27 +02:00
Twinaphex ed5b82f4c2 (iOS) Buildfix 2016-09-05 18:52:52 +02:00
Twinaphex 1b26de3b87 Merge pull request #3513 from bparker06/unload_fix
fix core unload when closing content
2016-09-05 18:48:17 +02:00
Brad Parker abd5d81b70 fix core unload when closing content 2016-09-05 12:46:28 -04:00
twinaphex 53b0543f47 Silence signed/unsigned mismatch warnings 2016-09-05 18:46:12 +02:00
twinaphex 86d2a36407 (Win32) Buildfixes 2016-09-05 18:43:32 +02:00
twinaphex e5f11d43bf Fix statement is unreachable warning 2016-09-05 18:37:38 +02:00
twinaphex d4122806ab (Android) Buildfix 2016-09-05 18:34:21 +02:00
twinaphex bf4fd2a864 Update headers for ui/drivers 2016-09-05 18:33:22 +02:00
twinaphex acd4dd527b Header include cleanups 2016-09-05 18:31:32 +02:00
twinaphex a73a0e9b75 header include cleanups 2016-09-05 18:15:31 +02:00
twinaphex 79b1651b4c Cleanups 2016-09-05 18:13:50 +02:00
Twinaphex 88e2ab8f97 Merge pull request #3512 from bparker06/confirm_fix
do not return to game after canceling quit confirm if user toggled the menu manually
2016-09-05 17:44:18 +02:00
Brad Parker ef29bc96b0 do not return to game after canceling quit confirm if user toggled the menu manually 2016-09-05 11:35:27 -04:00
twinaphex db5a38cd0c (Wii) Prevent warnings 2016-09-05 17:30:12 +02:00
twinaphex 4571dc33fc header include cleanups 2016-09-05 17:29:19 +02:00
twinaphex 535d460c63 Cleanups 2016-09-05 17:17:28 +02:00
twinaphex b1c946f22b Cleanup 2016-09-05 17:16:37 +02:00
twinaphex 4bc837fe77 Fix confirm on exit codepath so that 'Quit RetroArch' works
again when selecting it
2016-09-05 08:21:51 +02:00
Andrés fab1c0a75c Merge pull request #3510 from RobLoach/patch-4
emscripten: Disable default browser keys
2016-09-05 01:21:14 -05:00
Rob Loach 156541ed89 emscripten: Disable default browser keys
This will attempt to disable the default action of some of the browser hotkeys.
2016-09-05 02:17:15 -04:00
twinaphex 5afb197198 Cleanup 2016-09-05 08:03:25 +02:00
twinaphex e785c8ac55 Silence warning 2016-09-05 08:00:04 +02:00
twinaphex f0702ac72c (PS3) Buildfix 2016-09-05 07:59:26 +02:00
Twinaphex e53380100f Merge pull request #3509 from bparker06/new_confirm
more menu popup refactor, add back working confirm_on_exit
2016-09-05 07:49:38 +02:00
twinaphex f30deb9cd0 Header cleanup 2016-09-05 07:47:11 +02:00
twinaphex e6ef3662ac Header include changes 2016-09-05 07:44:17 +02:00
twinaphex 76732249b6 Cleanups 2016-09-05 07:30:44 +02:00
Twinaphex ef43a573a3 Silence warnings 2016-09-05 07:28:55 +02:00
twinaphex 1edaa20029 header cleanups for gl_capabilities.c 2016-09-05 07:26:32 +02:00
twinaphex 1bed2dc3c4 Buildfix 2016-09-05 07:22:44 +02:00
twinaphex 1a241fa9ce Rewrite this 2016-09-05 07:22:44 +02:00
Andrés 0a06d52f5e Merge pull request #3508 from RobLoach/core-switching
Add Core Switching to Emscripten
2016-09-05 00:16:23 -05:00
Rob Loach d88e528fac emscripten: rename webplayer.html to index.html 2016-09-05 01:14:33 -04:00
Rob Loach b23c7b04fb emscripten: add core switching 2016-09-05 01:07:54 -04:00
twinaphex 7af3b79416 Create gl_capabilities.c/gl_capabilities.h 2016-09-05 07:04:56 +02:00
Brad Parker 276542ea98 more menu popup refactor, add back working confirm_on_exit 2016-09-05 01:04:15 -04:00
twinaphex cdf816b46b (video_processor_v4l2) Update 2016-09-05 04:31:13 +02:00
twinaphex 4d82af8f59 Remove libertro-test-gl-ff - moved to libretro-samples now 2016-09-05 04:19:55 +02:00
twinaphex dd139641b4 Remove libretro-test-gl - moved to libretro-samples 2016-09-05 04:08:56 +02:00
twinaphex ac355066ec (libretro-test-gl-ff) Update 2016-09-05 03:39:36 +02:00
twinaphex c6b4207d3b Update libretro-test-gl-ff 2016-09-05 03:38:58 +02:00
twinaphex e6aaecc2ba Update libretro-test-gl core 2016-09-05 03:38:02 +02:00
twinaphex 0ab04d812d Remove libretro-test - now a part of libretro-samples 2016-09-05 03:33:44 +02:00
twinaphex 00ec309d76 (cores) Remove libretro-test-vulkan and libretro-test-vulkan-async-compute - these are part of libretro-samples now 2016-09-05 03:28:20 +02:00
twinaphex efbe083a5f Update 2016-09-05 02:50:29 +02:00
twinaphex b2e1436408 Header cleanup 2016-09-05 02:49:30 +02:00
twinaphex a9d021cbfd (ffmpeg core) Update 2016-09-05 02:45:10 +02:00
twinaphex a0f84de987 Add Makefile.ffmpeg 2016-09-05 00:49:08 +02:00
twinaphex bc7db98faf (ffmpeg core) Update 2016-09-05 00:36:04 +02:00
twinaphex 11dfab4e79 (ffmpeg core) Update Makefile 2016-09-05 00:34:38 +02:00
twinaphex 877064855b Update ffmpeg 2016-09-05 00:18:41 +02:00
twinaphex 9e61f6ffd0 Cleanups 2016-09-04 23:34:24 +02:00
twinaphex 7c6de82096 Cleanups 2016-09-04 23:27:08 +02:00
twinaphex 575e7b36ab Start using menu_popup_push_pending 2016-09-04 23:23:54 +02:00
twinaphex 580e27d2e4 Add menu_popup_push_pending 2016-09-04 23:20:27 +02:00
twinaphex 8b793b7924 Revert "More cleanups/move more state to menu_popup.c"
This reverts commit a20cd41d4b.
2016-09-04 23:16:06 +02:00
twinaphex 95041d948b Revert "Make menu_popup.c self-contained"
This reverts commit 9e2a148b7e.
2016-09-04 23:15:01 +02:00
twinaphex 9e2a148b7e Make menu_popup.c self-contained 2016-09-04 23:14:04 +02:00
twinaphex a20cd41d4b More cleanups/move more state to menu_popup.c 2016-09-04 23:07:10 +02:00
twinaphex 9c897e262b Create menu_popup.c 2016-09-04 22:58:54 +02:00
twinaphex 36092d8033 Create struct for help_screen 2016-09-04 22:26:33 +02:00
twinaphex 88bf19bff4 Get rid of menu->defer_core - unused 2016-09-04 22:20:36 +02:00
twinaphex 6040e6d772 Indent nit 2016-09-04 22:07:10 +02:00
twinaphex 201e03d202 Start moving menu_shader variables out of menu_state struct 2016-09-04 22:02:29 +02:00
Twinaphex 61ea67baba Merge pull request #3507 from bparker06/back
back button should still be able to dismiss help text
2016-09-04 21:46:26 +02:00
Brad Parker 43bfd5d39f back button should still be able to dismiss help text 2016-09-04 15:45:41 -04:00
twinaphex 871d0b7bcd (imageviewer) Build up extensions depending on which switches are defined 2016-09-04 21:45:12 +02:00
twinaphex 6f386d56cd Fix imageviewer 2016-09-04 21:39:16 +02:00
Twinaphex fde7899acb Merge pull request #3506 from bparker06/revert_confirm
revert confirm_on_exit option for now
2016-09-04 21:34:51 +02:00
twinaphex e9b8255af2 Fix C89_BUILD 2016-09-04 21:34:03 +02:00
Brad Parker 27925da4ae revert confirm_on_exit option for now 2016-09-04 15:31:50 -04:00
radius 004e4caf66 [psp] needs uppercase basedir 2016-09-04 12:25:05 -05:00
Alcaro d610a6baf7 stupid constants not casting themselves properly 2016-09-04 18:14:27 +02:00
Alcaro 5aa0628ebf Kill an overflow or two. Or twelve. 2016-09-04 18:12:03 +02:00
Andrés 302d704063 Merge pull request #3503 from bparker06/stb
fix linking of stb functions for nuklear
2016-09-04 11:00:19 -05:00
Brad Parker 063ee19bc2 fix linking of stb functions for nuklear 2016-09-04 11:35:53 -04:00
Andre Leiradella e7a0c95678 Define __STDC_FORMAT_MACROS before including inttypes.h 2016-09-04 11:29:06 +01:00
Andre Leiradella 58ff1d8dd7 Added "supportsNoGame" to /info; fixed PRIXPTR (again) 2016-09-04 11:20:41 +01:00
Andre Leiradella a67c85bbc0 Fixed PRIXPTR usage 2016-09-04 10:40:02 +01:00
radius 1e550dea56 [psp] fix dir creation again, use ms0:/psp/ as basedir 2016-09-04 03:03:30 -05:00
radius 831cd6d7a1 [psp] fix dir creation 2016-09-04 02:36:41 -05:00
radius 7da20f4d6c [psp] create dirs 2016-09-04 02:19:16 -05:00
radius 10cf48ebb6 [psp] cleanup 2016-09-04 01:55:22 -05:00
radius a6a6d878ee [psp] use bundle dir again 2016-09-04 00:26:05 -05:00
radius 26590bce9f [psp] separate userdata from internal app data 2016-09-04 00:02:49 -05:00
radius d6b507a0f8 [psp] change default path layout 2016-09-03 23:58:55 -05:00
Twinaphex 2d37ddb06d Merge pull request #3500 from bparker06/nuklear_compile
fix nuklear compilation
2016-09-04 06:17:14 +02:00
Brad Parker 2b1facdc33 fix nuklear compilation 2016-09-04 00:15:05 -04:00
twinaphex 4811e1124d (features CPU) add CMOV 2016-09-04 06:07:45 +02:00
radius f0485db137 Gamepad is named like this in emscripten 2016-09-03 22:21:10 -05:00
Twinaphex 2445931169 Merge pull request #3499 from bparker06/all_users
add input option to allow any user to control the menu
2016-09-04 01:12:14 +02:00
Brad Parker a17679a0c5 add input option to allow any user to control the menu 2016-09-03 19:01:29 -04:00
Andre Leiradella b9cce184a2 Use PRIXPTR to print pointers, removed unneeded field from the /info service 2016-09-03 23:29:07 +01:00
twinaphex 6e89e8f209 Style nit 2016-09-03 23:31:26 +02:00
Twinaphex f5a4b402d7 (OSX) Fix some crashes that could occur 2016-09-03 23:27:53 +02:00
twinaphex 459acfe47d Update 2016-09-03 23:02:10 +02:00
twinaphex e5eab961f2 (ffmpeg core) Add HAVE_LIBGSM ifdefs 2016-09-03 22:25:05 +02:00
twinaphex 63d1a30cf2 (ffmpeg core) Update 2016-09-03 22:19:20 +02:00
twinaphex 4dc0ed54d8 (ffmpeg core) Updates 2016-09-03 22:15:13 +02:00
Twinaphex 6c222626b2 Merge pull request #3497 from leiradel/master
renamed "api" to "apiVersion"
2016-09-03 22:08:51 +02:00
twinaphex 249733b06d Update Makefiles / ffmpeg core 2016-09-03 21:59:52 +02:00
Andre Leiradella 48240ebe01 Some more renaming 2016-09-03 19:48:40 +01:00
Andre Leiradella 3e633ca92a renamed "api" to "apiVersion" 2016-09-03 19:14:07 +01:00
Twinaphex a1eff7930c Merge pull request #3496 from leiradel/master
added /info rest service to the embedded http server
2016-09-03 19:19:47 +02:00
Andre Leiradella 073d9aa7d1 added /info rest service to the embedded http server 2016-09-03 17:50:04 +01:00
twinaphex 3d47e1d813 Cleanup shadres in ffmpeg core 2016-09-03 17:36:47 +02:00
twinaphex e2cfb594f8 Try to make ffmpeg core's GL features work for GLES as well 2016-09-03 17:07:24 +02:00
Twinaphex 370109b895 Merge pull request #3495 from bparker06/semicolon
remove extra semicolons
2016-09-03 16:59:30 +02:00
Brad Parker 0eb1777a1f remove extra semicolons 2016-09-03 10:30:21 -04:00
Twinaphex affb159fe2 Buildfix 2016-09-03 08:27:58 +02:00
twinaphex fb1ac7ab38 Cleanups 2016-09-03 08:22:41 +02:00
twinaphex a1583e04d7 config_load - cleanup 2016-09-03 08:15:41 +02:00
twinaphex 9bdca16884 (configuration.c) Cleanups 2016-09-03 08:12:40 +02:00
twinaphex 5613feafb6 Remove unused cheat_settings_path 2016-09-03 08:05:31 +02:00
twinaphex 9191bfa3c0 Header include cleanups 2016-09-03 07:51:11 +02:00
twinaphex 23612cb26f Header include cleanups 2016-09-03 07:48:25 +02:00
twinaphex 50563d255f Header cleanups 2016-09-03 07:45:51 +02:00
twinaphex f93047145d Use SN_TARGET_PSP2 ifdef too 2016-09-03 07:41:56 +02:00
twinaphex 88eea511db Remove if 0 blocks 2016-09-03 07:40:57 +02:00
twinaphex 429165e966 Combine autoconfig builtin files into one 2016-09-03 07:39:26 +02:00
Twinaphex 58aa3a7345 Remove unused variable 2016-09-03 07:12:23 +02:00
twinaphex 077a9a7beb Add more SDL source files to griffin 2016-09-03 07:10:55 +02:00
twinaphex 7ee6b9f466 Add TODO/FIXME note 2016-09-03 07:05:25 +02:00
twinaphex ba52d6728a Add HAVE_BUILTIN_AUTOCONFIG for SDL2/Emscripten 2016-09-03 07:04:23 +02:00
twinaphex 49d52b8ca2 Buildfix 2016-09-03 07:02:37 +02:00
twinaphex 9df9b79869 Add builtin_sdl2 2016-09-03 07:02:17 +02:00
Twinaphex 72df613631 Merge pull request #3489 from kuxii2016/patch-1
Update msg_hash_de.c
2016-09-02 20:05:03 +02:00
kuxii2016 4517f0e285 Update msg_hash_de.c 2016-09-02 11:55:51 +02:00
Twinaphex 96cc29be3f Merge pull request #3487 from bparker06/help_cancel
allow back/cancel button to dismiss help text
2016-09-02 07:06:33 +02:00
Brad Parker 5c0002934a allow back/cancel button to dismiss help text 2016-09-01 23:14:09 -04:00
Twinaphex 7bec0d1a49 Merge pull request #3486 from bparker06/confirm_on_exit
add config option to enable quit confirmation
2016-09-02 03:55:51 +02:00
Brad Parker ee7545857c add config option to enable quit confirmation 2016-09-01 21:47:25 -04:00
twinaphex 1d06344567 (Vita) silence warning - RETRO_RUMBLE_DUMMY not handled in switch 2016-09-01 22:28:31 +02:00
Alcaro 3394162098 Those option lists should be terminated with a NULL-NULL pair. 2016-09-01 21:48:04 +02:00
twinaphex fd7949c9f1 Move structs to configuration.c 2016-09-01 18:53:34 +02:00
twinaphex 8e8ff95139 input_keyboard.c - add stdlib.h 2016-09-01 18:51:22 +02:00
twinaphex 064f74825a CXX_BUILD buildfix 2016-09-01 18:26:01 +02:00
twinaphex 9806dec502 C89_BUILD buildfix 2016-09-01 18:22:29 +02:00
twinaphex 45b623043a More header include cleanups 2016-09-01 18:19:28 +02:00
twinaphex 467451fccc Cleanup more header includes 2016-09-01 18:18:55 +02:00
twinaphex ddb9cff2af More header include cleanups 2016-09-01 18:10:59 +02:00
twinaphex 20f7d82f95 More header include cleanups 2016-09-01 18:07:44 +02:00
twinaphex e106fd4374 Get rid of more general.h includes 2016-09-01 18:01:41 +02:00
twinaphex ce97d783a7 Some more header cleanups 2016-09-01 17:52:22 +02:00
twinaphex b6daaed566 Rename git_version.c to version_git.h, create separate
version.h file
2016-09-01 17:49:28 +02:00
twinaphex 1f471c7799 Put HAVE_CHEEVOS ifdef around this function 2016-09-01 17:37:29 +02:00
twinaphex b7fd9bef60 Add configuration.h 2016-09-01 17:34:24 +02:00
twinaphex fea033268a sceRtcGetCurrentTick's first and only parameter is uint64_t * 2016-09-01 17:20:17 +02:00
twinaphex 29d5fc67a2 Prevent warning 2016-09-01 17:17:00 +02:00
Twinaphex 42c5bf6c03 Merge pull request #3484 from bparker06/password
show asterisks for cheevos password, fixes issue #3154
2016-09-01 17:13:53 +02:00
twinaphex 174852ef35 (PSP) PSP doesn't have SceRtcTick typedef 2016-09-01 17:11:58 +02:00
twinaphex 6efdfdebd4 (PSP) Rumble code should be only for Vita build 2016-09-01 17:09:54 +02:00
twinaphex 3a72479699 Add retro_miscellaneous.h to gfx/video_filter.c 2016-09-01 17:08:13 +02:00
Brad Parker f059aa5fb7 show asterisks for cheevos password, fixes issue #3154 2016-09-01 02:08:57 -04:00
twinaphex aff2812fde Try to get rid of double definition of type 2016-09-01 06:08:06 +02:00
Twinaphex 5f3d384a9c Merge pull request #3483 from bparker06/magic_len
bin/cue magic number is 17 bytes instead of 16
2016-09-01 05:54:56 +02:00
Brad Parker 1a9e0ca6a8 bin/cue magic number is 17 bytes instead of 16 2016-08-31 23:53:28 -04:00
twinaphex 27fb3ec1af Hopefully won't truncate array names again 2016-09-01 05:52:38 +02:00
twinaphex 9037473c7e Header include cleanups 2016-09-01 05:51:08 +02:00
twinaphex c8d5381779 header include cleanups 2016-09-01 05:48:20 +02:00
twinaphex 815c0eb3ee Remove header includes 2016-09-01 05:46:10 +02:00
twinaphex 19f352371d Remove more header includes 2016-09-01 05:40:57 +02:00
twinaphex 562c1e996c Get rid of more header includes 2016-09-01 05:38:26 +02:00
twinaphex 4f577f1932 Get rid of some header includes 2016-09-01 05:36:52 +02:00
twinaphex f38ce959e4 Remove some header includes 2016-09-01 05:30:07 +02:00
twinaphex 4ef56581a9 Bugfix 2016-09-01 05:24:47 +02:00
twinaphex cef2d57629 Cleanups 2016-09-01 04:59:56 +02:00
twinaphex 0959f8173a Cleanups 2016-09-01 04:57:04 +02:00
twinaphex e60ae0b8de Cleanups 2016-09-01 04:40:02 +02:00
twinaphex 90ad365432 Refactor path settings loading 2016-09-01 04:37:22 +02:00
twinaphex 47b0a7ca17 Cleanups 2016-09-01 04:11:53 +02:00
twinaphex 96119ea127 Cleanups 2016-09-01 03:51:54 +02:00
twinaphex e0d64373cc Refactor SETTING_PATH 2016-09-01 03:41:10 +02:00
twinaphex d203fd9d0d Cleanups 2016-09-01 03:05:31 +02:00
twinaphex 204c7544b0 Get rid of unused variable 2016-09-01 03:01:04 +02:00
twinaphex dfcef0f252 Move setting paths over 2016-09-01 03:00:27 +02:00
twinaphex 68823085c9 Move netplay_nickname down 2016-09-01 02:54:05 +02:00
twinaphex 03c28689e5 (configuration.c) Cleanups - rearrange array / path settings 2016-09-01 02:53:04 +02:00
twinaphex 081e47798e Cleanups for array settings 2016-09-01 02:46:09 +02:00
twinaphex 5c81cfb380 Add string setting loading 2016-09-01 02:40:05 +02:00
twinaphex a608f2350a (Freetype) Add another fallback font 2016-09-01 02:09:15 +02:00
twinaphex 47eef317bb (video filters) Update exp_generic_rgb565 2016-09-01 02:03:43 +02:00
Alcaro d1b7cdef57 Kill some signed integer overflow warnings 2016-08-31 23:57:06 +02:00
twinaphex 12cfb3bfce Rewrite gfx_ctx_x_make_current a bit and turn it into a
static function
2016-08-31 15:24:56 +02:00
twinaphex 90a303050f Turn this into enum 2016-08-31 15:21:12 +02:00
twinaphex aa15fb3f91 Update remaining video context drivers 2016-08-31 15:02:07 +02:00
Twinaphex d678273b0b Merge pull request #3478 from bparker06/gl_thread_current
make GLX context current when managing font textures with threaded video
2016-08-31 14:56:46 +02:00
Twinaphex cc0d7193f0 Merge pull request #3479 from vanfanel/master
Correct drm headers path for the plain_drm driver
2016-08-31 14:46:30 +02:00
vanfanel b9ff4c91bd Correct drm headers path for the plain_drm driver 2016-08-31 11:59:29 +02:00
Brad Parker 2afd72252c make GLX context current when creating font textures with threaded video 2016-08-31 01:33:35 -04:00
Twinaphex 2ffcaecc6c Remove unused variable 2016-08-31 04:21:39 +02:00
twinaphex 39b5723e6f Cleanup 2016-08-31 03:49:18 +02:00
twinaphex a4bd80596e Create dynamic_verify_hw_context - if we request a GL hw context and we have
the Vulkan driver running, return false - or vice versa. Can now use ffmpeg
core with Vulkan
2016-08-31 03:42:58 +02:00
twinaphex 5ae110601c Create dynamic_request_hw_context 2016-08-31 03:34:34 +02:00
Twinaphex 9bd079f104 Merge pull request #3477 from leiradel/master
fixed header for md5 funcs and md5.c inclusion in griffin
2016-08-31 02:49:43 +02:00
Andre Leiradella ea84c8a787 better json scheme for the mmap data 2016-08-30 23:41:43 +01:00
Andre Leiradella a5e39f5ca9 removed unused variable 2016-08-30 23:29:03 +01:00
Andre Leiradella 8926a4b077 fixed header for md5 funcs and md5.c inclusion in griffin 2016-08-30 23:27:47 +01:00
Twinaphex 98c1300dbe Merge pull request #3476 from loganmc10/patch-2
EGL_DEPTH_SIZE should be set
2016-08-30 23:34:09 +02:00
Logan McNaughton 78337bae4b EGL_DEPTH_SIZE should be set
Same reasoning as Android.
2016-08-30 15:32:25 -06:00
Twinaphex 17a0aa4463 Merge pull request #3475 from loganmc10/patch-1
EGL_DEPTH_SIZE should be set
2016-08-30 23:30:05 +02:00
Logan McNaughton 1beb9e9ffd EGL_DEPTH_SIZE should be set
EGL_DEPTH_SIZE needs to be set in order to have an FBO with a depth buffer. Some drivers aren't as strict about this but many are.
2016-08-30 15:29:17 -06:00
Alcaro 14cb57ce3b Merge pull request #3474 from bparker06/7z
7z extension is .7z not .zip
2016-08-30 22:32:40 +02:00
Brad Parker ae36b0f73d 7z extension is .7z not .zip 2016-08-30 16:31:53 -04:00
Twinaphex 8da400c55e Merge pull request #3472 from bparker06/config
use correct type for default float setting
2016-08-30 20:44:37 +02:00
Alcaro 55d8b43134 Merge pull request #3473 from bparker06/makefile
LDFLAGS not LDLAGS
2016-08-30 20:43:08 +02:00
Brad Parker 0688eef75b LDFLAGS not LDLAGS 2016-08-30 14:40:52 -04:00
Brad Parker 815b8e26b8 use correct type for default float setting 2016-08-30 14:36:14 -04:00
twinaphex 2c17d6a71e Add back SWRESAMPLE check 2016-08-30 18:31:42 +02:00
twinaphex f4bfbe0a23 (ffmpeg core) Cleanups/style nits 2016-08-30 17:48:43 +02:00
twinaphex f8f4b4f809 (ffmpeg core) Cleanups/style nits 2016-08-30 17:42:29 +02:00
twinaphex e819e84149 (ffmpeg core) Cleanups; use HAVE_SWRESAMPLE ifdef 2016-08-30 17:40:06 +02:00
twinaphex 3b79182fa2 Add HAVE_AVRESAMPLE 2016-08-30 17:31:39 +02:00
twinaphex aa1e43b2fc Change notice to reflect that ffmpeg support now includes
built-in core
2016-08-30 17:25:51 +02:00
twinaphex 90e57f7a0d Check for libavdevice 2016-08-30 17:24:04 +02:00
Twinaphex e94d21388e Merge pull request #3471 from frangarcj/master
Latest sdk and vibration
2016-08-30 14:59:43 +02:00
Francisco José García García e3b5fdd815 (VITA) Add vibration for PSTV 2016-08-30 14:29:19 +02:00
Francisco José García García 7f0624ff32 (VITA) Update to latest sdk 2016-08-30 14:27:12 +02:00
twinaphex d5f14a6caa Fix C89_BUILD warnings 2016-08-30 05:03:46 +02:00
twinaphex f87b7209d8 Remove header include 2016-08-30 05:01:31 +02:00
twinaphex 672a7e1a40 Get rid of unused 'Debug Information' 2016-08-30 04:58:45 +02:00
twinaphex 78175e0e9c Cleanup 2016-08-30 04:55:04 +02:00
twinaphex c14fe766a5 Indent nits 2016-08-30 04:42:02 +02:00
twinaphex efb3f3ec06 open_default_config_file - don't initialize global until the end 2016-08-30 04:40:13 +02:00
twinaphex 49742da0b4 Cleanup 2016-08-30 04:37:49 +02:00
twinaphex dee5ec9e15 Cleanups 2016-08-30 04:20:28 +02:00
twinaphex 9f65d0d4fb Style nits 2016-08-30 04:15:11 +02:00
twinaphex eec0120293 Cleanups 2016-08-30 04:05:27 +02:00
twinaphex 95e5086a8a Cleanups 2016-08-30 04:00:16 +02:00
twinaphex 0467987a1a Add more default settings 2016-08-30 03:30:38 +02:00
twinaphex b578f8236c Cleanups 2016-08-30 03:20:55 +02:00
twinaphex 9909607da5 Add default settings 2016-08-30 03:13:22 +02:00
twinaphex aed2dfe630 (psp_pthread.h) Cleanup 2016-08-29 21:26:06 +02:00
twinaphex ff0d9326f9 (XDK) Dont' use sprintf_s 2016-08-29 21:23:33 +02:00
twinaphex 8ffdc6663b (cheevos) try to avoid sprintf 2016-08-29 21:21:07 +02:00
twinaphex 876ce5ad67 Cleanups 2016-08-29 21:10:25 +02:00
twinaphex 82581c8461 Cleanup 2016-08-29 21:09:18 +02:00
twinaphex a1db337fdd Cleanups 2016-08-29 21:07:22 +02:00
twinaphex 03405439ba Cleanup 2016-08-29 21:03:01 +02:00
twinaphex e31a3b1366 (configuration.c) Cleanup 2016-08-29 21:00:05 +02:00
twinaphex 3ad5b604c9 Default settings for float variables 2016-08-29 20:57:24 +02:00
twinaphex ef46d27607 Add more default settings 2016-08-29 20:42:29 +02:00
twinaphex cf2bdbb15e Remove wraparound.setting_enable 2016-08-29 20:40:39 +02:00
twinaphex 8574891359 Default setting cleanups 2016-08-29 20:32:18 +02:00
twinaphex 9e6a360c1e Cleanups 2016-08-29 20:18:20 +02:00
twinaphex eba3c75347 More default settings 2016-08-29 20:09:56 +02:00
twinaphex 5920e54cca Add more default settings 2016-08-29 20:02:40 +02:00
twinaphex 5a1f94a124 Fill in some more default settings 2016-08-29 19:29:42 +02:00
twinaphex 805ca286f0 Add default settings members - only one setting uses this for now
for bool settings
- Also make sure we deallocate everything we no longer need in
config_load_file
2016-08-29 19:26:08 +02:00
twinaphex 62939cd734 Move code around 2016-08-29 19:10:00 +02:00
twinaphex 5614b9948a (setting_list.c) Remove some unused header includes 2016-08-29 18:48:39 +02:00
twinaphex 096fbcf069 Use string_is_equal 2016-08-29 18:47:43 +02:00
twinaphex ba7d638b99 Use string_is_equal 2016-08-29 18:46:41 +02:00
Twinaphex 32729080ef Merge pull request #3469 from bparker06/utf8_fix2
fix multibyte utf8 strings being cut off/corrupted in xmb/glui
2016-08-29 18:38:34 +02:00
Brad Parker c3b164de88 fix utf8 strings being cut off in xmb/glui when multibyte chars are present, rgui not affected 2016-08-29 12:33:28 -04:00
twinaphex 65cae1fdc0 Update 2016-08-29 17:55:51 +02:00
Twinaphex 0e1ac30843 Merge pull request #3467 from bparker06/utf8_fix
fix rendering of utf8 glyphs
2016-08-29 17:39:42 +02:00
twinaphex ff6b02f967 Don't allocate more than what we need 2016-08-29 17:38:16 +02:00
twinaphex 6db73d0208 Move memory allocation to populate_settings functions 2016-08-29 17:37:03 +02:00
twinaphex 03bb3d847d Cleanups 2016-08-29 17:31:24 +02:00
twinaphex a7b299950a Fix bug 2016-08-29 17:29:19 +02:00
twinaphex 94bb608245 Silence C89 warning 2016-08-29 17:09:45 +02:00
twinaphex 6e6c8132a6 (video processor v4l2) C89 fixes 2016-08-29 17:08:55 +02:00
twinaphex fb3ec37f9c (msg_hash_it.c) work around C89 limitation 2016-08-29 17:06:27 +02:00
twinaphex a09664c758 Refactor populate_settings_int so we are C89-compatible again 2016-08-29 17:04:15 +02:00
Brad Parker 96c96dca3b fix rendering of utf8 glyphs 2016-08-29 11:02:28 -04:00
twinaphex a414f4093f Rewrite populate_settings_bool 2016-08-29 16:57:33 +02:00
twinaphex ae3d9bc0aa Cleanups 2016-08-29 16:29:00 +02:00
twinaphex 09c59b6eba Cleanups 2016-08-29 16:27:33 +02:00
twinaphex 71fa2564e6 Cleanup 2016-08-29 16:26:03 +02:00
twinaphex 67932e0356 Remove this 2016-08-29 16:20:57 +02:00
Twinaphex c05ca979b8 Silence two unused vaiable warnings 2016-08-29 16:02:30 +02:00
twinaphex 62b08a4d55 add back missing boolean settings 2016-08-29 15:59:17 +02:00
twinaphex 65c3ce8522 Cleanup 2016-08-29 15:46:25 +02:00
radius 83123e655f cleanup 2016-08-29 08:44:56 -05:00
twinaphex 6911bdb8c0 Replace strcmp usage and go through wrapper function 2016-08-29 15:41:42 +02:00
twinaphex 61d3567555 Refactor boolean settings 2016-08-29 15:36:55 +02:00
twinaphex e858103e6d Refactor this code 2016-08-29 15:26:42 +02:00
twinaphex 699ba910b2 Turn these into static functions 2016-08-29 15:12:13 +02:00
twinaphex bb3358ac93 Use populate_settings_float inside config_load_file too 2016-08-29 15:10:52 +02:00
twinaphex 4fb0a8bdca Should fix crash at shutdown 2016-08-29 14:54:24 +02:00
twinaphex d693402a85 Should hopefully fix issues 2016-08-29 14:46:12 +02:00
Andrés d63585dcb1 Merge pull request #3465 from bparker06/glyph_fix
fix glyph rendering of long messagebox strings
2016-08-29 01:27:42 -05:00
Brad Parker 13ad3a4fce fix glyph rendering of long messagebox strings 2016-08-29 02:25:42 -04:00
radius c578fb5dc8 add some logging 2016-08-29 00:44:08 -05:00
radius 42b9928964 add SDL2 2016-08-29 00:23:58 -05:00
radius c75ab63c79 make save dirs persistent 2016-08-28 23:49:49 -05:00
radius 456d69d219 fix fullscreen button 2016-08-28 23:45:39 -05:00
radius 990eddf0d4 remove the code that disables them too 2016-08-28 23:43:32 -05:00
radius 15c4bc003a we are using settings now, remove the checkmarks 2016-08-28 23:40:42 -05:00
radius 49c29904cb fix load button 2016-08-28 23:38:21 -05:00
radius 6f1288a9f8 change button order a bit 2016-08-28 23:36:12 -05:00
radius 7dbc3d2498 fix 2016-08-28 23:24:04 -05:00
radius be6ddfa6d0 add default menu content 2016-08-28 23:21:29 -05:00
radius 9cfb6c971f (ems) change a few more settings 2016-08-28 23:11:57 -05:00
radius 5dc5ece52b (ems) change a few default settings 2016-08-28 23:03:49 -05:00
radius 8e362558bb (ems) build fix 2016-08-28 22:56:11 -05:00
radius e9676db61d (ems) build fix 2016-08-28 22:54:00 -05:00
radius a820aeadec try to use XDG for emscripten 2016-08-28 22:50:56 -05:00
twinaphex b97eac8f30 config_save_autoconf_profile - prevent first two parameters of fill_pathname_join being the same 2016-08-29 04:02:58 +02:00
twinaphex 3c9014db78 Rewrite populate_settings_string 2016-08-29 03:58:06 +02:00
twinaphex fa84305016 Rewrite populate_settings_float 2016-08-29 03:44:06 +02:00
twinaphex cf5911f107 Rewrite populate_settings_path so it's C89-compatible again 2016-08-29 03:37:21 +02:00
Twinaphex fbcd2bda10 Merge pull request #3463 from sergiobenrocha2/master
Moved down this Start Video Processor.
2016-08-29 03:33:46 +02:00
sergiobenrocha2 3ff191a3c1 Moved down this Start Video Processor. 2016-08-28 22:28:55 -03:00
twinaphex ddce451ead Add TODO messages 2016-08-29 03:10:18 +02:00
twinaphex 9af900a1d1 Create setting_list.c/setting_list.h 2016-08-29 03:07:33 +02:00
Andrés 655a56754b Merge pull request #3462 from lakkatv/master
(Menu) Forgot some ifdefs
2016-08-28 19:40:01 -05:00
Jean-André Santoni b293f3b980 (Menu) Forgot some ifdefs 2016-08-29 02:39:02 +02:00
Twinaphex f735e96eb8 Merge pull request #3461 from orbea/cleanup
(Makefile) Further cleanup
2016-08-29 02:31:20 +02:00
Twinaphex eed4102976 Merge pull request #3460 from lakkatv/master
(Menu) Get Remove from Playlist to work on history playlists
2016-08-29 02:23:13 +02:00
Jean-André Santoni f06e76301e (Menu) Get Remove from Playlist to work on history playlists 2016-08-29 02:22:05 +02:00
radius ee3af240d7 update emscripten dist-cores for buildbot duty 2016-08-28 19:14:42 -05:00
radius d3fa4535fc move these files over to the package dir 2016-08-28 19:09:55 -05:00
orbea 4a3bacf7ba (Makefile) Further cleanup 2016-08-28 17:08:19 -07:00
Twinaphex e6e6ca311a Merge pull request #3459 from lakkatv/master
(Menu) Remove from Playlist
2016-08-29 01:48:38 +02:00
Jean-André Santoni 25a2b64f1c (Menu) Animate a cancel after a playlist entry is deleted 2016-08-29 01:46:58 +02:00
Twinaphex ac076abdb7 Merge pull request #3458 from lakkatv/master
(Menu) Remove from Playlist
2016-08-29 01:40:18 +02:00
Jean-André Santoni a5fc3b01ba (Menu) Implement playlist_delete_index 2016-08-29 01:38:46 +02:00
Jean-André Santoni f387e627f3 (Menu) Start adding Remove from Playlist action 2016-08-29 01:17:02 +02:00
Jean-André Santoni 9fe67ac09f (Menu) Display a Remove from Entry 2016-08-29 00:54:51 +02:00
twinaphex 3d3d9d6b24 Get rid of some defines 2016-08-28 19:37:17 +02:00
Twinaphex f342248115 (Zarch) Buildfix 2016-08-28 19:11:03 +02:00
twinaphex cd9e10b3d1 (playlist.c) Cleanups 2016-08-28 18:47:34 +02:00
twinaphex 3526a2454b Cleanups 2016-08-28 18:39:10 +02:00
twinaphex d474e9fb5a Move struct to top of cheevos.h file 2016-08-28 18:36:50 +02:00
twinaphex 24075fd52f (osmesa_ctx.c) Cleanups 2016-08-28 18:26:53 +02:00
twinaphex 5f4ee2567c (sdl_gl_ctx.c) Cleanup 2016-08-28 18:20:31 +02:00
Twinaphex e76bc58457 Merge pull request #3455 from Monroe88/patch-2
Add Save Overrides to XMB and GLUI Main Menu
2016-08-28 18:17:42 +02:00
Alcaro 6cb656bcc9 Doublekill warning 2016-08-28 18:06:57 +02:00
Monroe88 3a7b1e241a Add Save Overrides to XMB and GLUI Main Menu 2016-08-28 11:00:51 -05:00
Alcaro c4d4c51a5f Kill warning 2016-08-28 17:59:43 +02:00
Twinaphex d01579dcd2 Merge pull request #3452 from orbea/assets_dir
(Makefile) Clean up assets install
2016-08-28 13:01:22 +02:00
orbea 9084b3550b (Makefile) Clean assets install 2016-08-27 21:44:53 -07:00
radius cb25a9e4b8 should fix other platforms 2016-08-27 23:39:47 -05:00
Andrés 954ca37bf3 Merge pull request #3451 from bparker06/salamander
update dir_list_new invocation for salamander
2016-08-27 23:32:53 -05:00
Brad Parker 4e2596c0bd update dir_list_new invocation for salamander 2016-08-28 00:14:50 -04:00
Twinaphex 6f1547c1df Merge pull request #3450 from fr500/master
windows build fix
2016-08-28 06:04:49 +02:00
radius 7092c0dbf4 windows build fix 2016-08-27 22:59:47 -05:00
Twinaphex 6d185c8653 Merge pull request #3449 from orbea/assets_dir
Install assets better
2016-08-28 05:13:39 +02:00
orbea bfc7267c0e Kill empty lin 2016-08-27 20:04:12 -07:00
radius e1fa182620 mark these as deprecated 2016-08-27 21:56:37 -05:00
orbea ac606f8678 Allow setting assets install directory 2016-08-27 19:44:41 -07:00
orbea 376a78dc0c /usr/share/applications is for desktop files 2016-08-27 19:31:05 -07:00
Twinaphex a8c476ec64 Merge pull request #3444 from orbea/retropad
Move 'Start Remote RetroPad' for both glui and xmb to match rgui
2016-08-28 04:20:29 +02:00
twinaphex 63e1afc1cb - Copies over assets images to /usr/local/share/applications/retroarch/assets
(Linux) -  Upon first boot, it checks if the assets exists inside
/usr/local/share/applications/retroarch/assets or /usr/share/applications/retroarch/assets.
If it does, it will use these as the default location for assets and assets
should show up preconfigured on the fly. If not, it will set ~/.config/retroarch/assets
instead.
2016-08-28 04:11:18 +02:00
Twinaphex 754cc1feed Merge pull request #3448 from bparker06/hidden_files
add configuration option to toggle showing hidden files (default on)
2016-08-28 04:05:28 +02:00
Brad Parker cf4bf344a9 add configuration option to toggle showing hidden files (default on), fixes issue #2769 2016-08-27 21:48:55 -04:00
Twinaphex b3dc1afcbe Merge pull request #3445 from orbea/configure
Align ./configure --help options.
2016-08-28 02:59:59 +02:00
Twinaphex f0fd839760 Merge pull request #3446 from hizzlekizzle/patch-1
make 1:1 PAR option more descriptive
2016-08-28 02:59:18 +02:00
Twinaphex e1941911db Merge pull request #3447 from bparker06/recursive
add missing parameter help text in dir_list
2016-08-28 02:58:53 +02:00
Brad Parker 5ff82f57fd add missing parameter help text in dir_list 2016-08-27 20:48:49 -04:00
hizzlekizzle 20a27822f3 make 1:1 PAR option more descriptive
should help avoid confusion about what it actually does.
2016-08-27 19:25:36 -05:00
orbea cca3e2a433 Label -with-* options as config for ./configure --help 2016-08-27 17:06:50 -07:00
orbea da4afd6e35 Give more space for configure help options 2016-08-27 16:49:09 -07:00
orbea 698579c2b5 Shorten HAVE_VULKAN_KHR_DISPLAY 2016-08-27 16:48:13 -07:00
orbea 5344103685 Move 'Start Remote RetroPad' for both glui and xmb to match rgui 2016-08-27 15:01:35 -07:00
Alcaro 43b6ce416e Merge pull request #3442 from fr500/master
remove these two duplicated lines
2016-08-27 18:19:13 +02:00
radius 90f5a2730a remove these two duplicated lines 2016-08-27 11:15:58 -05:00
Twinaphex 3f288c5ede Merge pull request #3439 from orbea/update_assets
Allow disabling downloading assets in the online updater
2016-08-27 17:29:10 +02:00
Alcaro 095da1d016 Merge pull request #3441 from orbea/bin_dir
(Makefile) Fix typo
2016-08-27 17:26:17 +02:00
orbea ec08680b71 (Makefile) Fix typo 2016-08-27 08:24:30 -07:00
twinaphex b314ce8e83 (PSP audio) Cleanups 2016-08-27 17:05:49 +02:00
twinaphex 8cb522b849 (PS3) silence warning 2016-08-27 16:04:02 +02:00
twinaphex 0f5118d895 feedback_pass - change to 0 2016-08-27 16:02:21 +02:00
Alcaro cad2eee9e0 Fix some PS3 derps 2016-08-27 13:54:02 +02:00
orbea 3a1daaa4c3 Allow disabling downloading assets in the online updater 2016-08-26 23:38:44 -07:00
Twinaphex dcf818b40b Merge pull request #3437 from orbea/bin_dir
Allow setting --with-bin_dir
2016-08-27 02:58:00 +02:00
twinaphex b3be878c7e (GX) Silence warnings 2016-08-27 02:44:58 +02:00
twinaphex 95de19320d Cleanup 2016-08-27 02:43:06 +02:00
twinaphex f851440a6b Some C89 fixes 2016-08-27 02:35:21 +02:00
orbea b3922555e2 Allow setting --with-bin_dir 2016-08-26 17:29:50 -07:00
twinaphex 9629bd126e Turn utf8_walkbyte into static INLINE 2016-08-27 02:24:32 +02:00
Twinaphex efc245b85a Remove unused variables 2016-08-27 02:23:44 +02:00
twinaphex 01dc5507fe Fix warning 2016-08-27 02:21:43 +02:00
Twinaphex 8aeefbb793 Merge pull request #3429 from fr500/overrides
Override saving
2016-08-27 02:18:01 +02:00
Alcaro ba6796b98f Kill some warnings 2016-08-26 18:33:03 +02:00
Alcaro 9ffffcd249 Fix missing header 2016-08-26 18:29:41 +02:00
radius 50e8021673 (ovr) fix potential leaks 2016-08-26 11:26:24 -05:00
Alcaro dd7caa4ad4 Wipe out this flag, not needed anymore. 2016-08-26 17:47:46 +02:00
Twinaphex 049679b901 Merge pull request #3434 from bparker06/hash_filename2
use const delimiter and remove pointer arithmetic
2016-08-26 17:40:01 +02:00
Brad Parker 6eebbfd8ae use const delimiter and remove pointer arithmetic 2016-08-26 11:36:52 -04:00
Twinaphex 89d0798e68 Merge pull request #3423 from bparker06/utf8
Initial UTF-8 support for rgui/xmb/glui. Enables first 256 codepoints.
2016-08-26 17:27:20 +02:00
Twinaphex 7edf762ac6 Merge pull request #3426 from bparker06/hash_filename
correctly handle content paths containing a hash (#), fixes issue #3273
2016-08-26 17:20:43 +02:00
radius c9a6a8f148 revert this makefile change 2016-08-26 09:55:10 -05:00
radius 725e41b20b (ovr) add osd messages 2016-08-26 09:54:15 -05:00
radius 671aa0f59c (ovr) add game overrides too 2016-08-26 09:43:29 -05:00
twinaphex 4947d53f13 (Vita) Add -lSceMotion_stub 2016-08-26 15:12:38 +02:00
radius 1b91202004 (ovr) allow overwriting existing overrides, still have to make dirs for new overrides 2016-08-26 01:06:15 -05:00
radius 7c78f52e6b (ovr) change a few log messages 2016-08-26 00:46:49 -05:00
radius 45ca269573 (ovr) define paths for override files 2016-08-26 00:45:01 -05:00
Twinaphex d6945010cd Merge pull request #3430 from bparker06/false
false is still not 1
2016-08-26 03:50:53 +02:00
Brad Parker 4daecbf04d false is still not 1 2016-08-25 21:46:59 -04:00
Brad Parker 89f9b096e7 style cleanup and fix typos 2016-08-25 21:40:37 -04:00
radius 02d164b9e4 (ovr) reimplement path_settings 2016-08-25 20:10:01 -05:00
radius 89d59c5b36 (ovr) free these buffers 2016-08-25 19:51:47 -05:00
radius 97a5c3a118 (ovr) reimplement string_settings 2016-08-25 19:49:31 -05:00
radius 256670e7d3 (ovr) reimplement float_settings 2016-08-25 19:30:10 -05:00
radius 1bcaf884db (ovr) reimplement int_settings 2016-08-25 19:14:10 -05:00
radius 1a933bf7d3 (ovr) reimplement bool_settings 2016-08-25 19:00:06 -05:00
twinaphex 9ef45957d5 Stub out debug logging 2016-08-26 00:47:58 +02:00
Twinaphex b20723c8dc Merge pull request #3428 from lakkatv/master
(XMB) Prevent label overlap
2016-08-26 00:41:39 +02:00
Jean-André Santoni d13c3b53d9 (XMB) Prevent label overlap 2016-08-26 00:28:57 +02:00
Brad Parker 097f326298 simplify delimiting of compressed archive filenames 2016-08-25 16:18:29 -04:00
radius 3cbb03349f (ovr) implement bool settings 2016-08-25 10:30:30 -05:00
Twinaphex 8516297a01 Merge pull request #3427 from frangarcj/master
(VITA) FIX mame2000
2016-08-25 14:39:05 +02:00
Francisco José García García c852c98e70 (VITA) FIX mame2000 2016-08-25 13:56:24 +02:00
Alcaro 0bd9ccddc1 false is most certainly not 1. 2016-08-25 12:02:42 +02:00
radius c6c054bad1 (ovr) start implementing diff function 2016-08-25 01:34:51 -05:00
radius 1fbeebf8a9 (ovr) add menu items 2016-08-25 00:54:39 -05:00
radius 0f3ea88f86 (ovr) allow loading settings in an alternate variable 2016-08-25 00:33:23 -05:00
twinaphex f6598f8e38 Set default app dir to app0:/assets 2016-08-25 01:10:30 +02:00
Brad Parker 5275c0a45d correctly handle content paths containing a hash (#), fixes issue #3273 2016-08-24 16:54:10 -04:00
twinaphex 501f619805 (Vita) Change default assets dir 2016-08-24 17:10:55 +02:00
twinaphex cf694f9fc2 (Vita) strip source svg files
(Default/Mobile) Use MaterialUI by default if RARCH_MOBILE defined and HAVE_MATERIALUI defined
2016-08-24 17:03:22 +02:00
Brad Parker 2e4fd540ac re-enable UTF-8 by default, inline utf8_walkbyte, fix missing ifdef in utf8_walk 2016-08-24 10:56:00 -04:00
twinaphex 1ad0e7201a Use XMB by default when HAVE_XMB is defined 2016-08-24 15:34:19 +02:00
twinaphex 82fecdbc70 (Vita) silence some warnings 2016-08-24 14:04:22 +02:00
twinaphex bb211b7621 Add assets dirs 2016-08-24 13:45:40 +02:00
twinaphex 3bbf2a74ba Remove double entry 2016-08-24 13:17:30 +02:00
Alcaro ed4a6f373f C sources aren't executable. 2016-08-24 12:47:37 +02:00
twinaphex 465d17a6e2 (libretro-common) Update files 2016-08-24 01:45:59 +02:00
twinaphex 18f999d8de (libretro-common) Header updates 2016-08-24 01:22:29 +02:00
twinaphex 3547fb3351 (libretro-common) Update headers 2016-08-24 01:20:32 +02:00
Brad Parker 30e99927d2 undo previous new files and use existing encoding_utf header 2016-08-23 19:16:18 -04:00
Brad Parker 80d4626908 forgot to add extra utf8 files 2016-08-23 19:02:26 -04:00
Brad Parker d063cb9283 do not make UTF-8 the default, simplify/centralize the common string functions, make sure rgui/materialui use utf8 strlen when available 2016-08-23 19:00:53 -04:00
Brad Parker 35e67e69e5 Initial utf8 support for rgui/xmb. Only supports first 256 codepoints due to current freetype atlas limitation 2016-08-23 14:49:44 -04:00
twinaphex db36b40b20 Rework this code 2016-08-23 20:12:37 +02:00
twinaphex 1b44f44822 Buildfix 2016-08-23 20:11:12 +02:00
Twinaphex ac68336143 Merge pull request #3422 from frangarcj/master
(VITA) Fix screenshots and some debug options
2016-08-23 19:39:46 +02:00
Francisco José García García 5bd2364575 (VITA) Fix screenshots and some debug options 2016-08-23 18:17:46 +02:00
twinaphex 7b95ac7342 (Vita) Add HAVE_MATERIALUI too 2016-08-23 11:01:24 +02:00
Twinaphex f8c70c0c36 Merge pull request #3420 from frangarcj/master
(VITA) Add XMB support
2016-08-23 09:57:47 +02:00
Francisco José García García 4221374072 (VITA) Add XMB support 2016-08-23 02:49:53 +02:00
twinaphex 5f243b4baa (deps/7zip) Cleanups - rebase around MSB_FIRST 2016-08-23 00:23:52 +02:00
twinaphex 035d006d62 Set attrib to EGL_OPENGL_ES3_BIT_KRH if g_es3 is true 2016-08-23 00:09:33 +02:00
Twinaphex cbbb840584 Merge pull request #3419 from loganmc10/patch-1
Allow GLES2 app to use GLES3 core
2016-08-22 23:49:08 +02:00
Logan McNaughton 8b34a009dc Allow GLES2 app to use GLES3 core
The Android app is a GLES2 application (it doesn't have HAVE_OPENGLES3 set when it is compiled). However, it is possible to use the GLES2 Android App to launch GLES3 cores, if the phone supports it. This allows cores to set RETRO_HW_CONTEXT_OPENGLES3 and have the Android app respect that, without having to compile the Android app for GLES3.
2016-08-22 15:48:32 -06:00
Twinaphex 339ea74ede Merge pull request #3418 from vanfanel/master
Fix plain_drm driver compilation
2016-08-22 14:34:52 +02:00
Alcaro 6fe43f5823 Make this one a bit more robust 2016-08-22 14:25:20 +02:00
vanfanel e5965c7870 Fix plain_drm driver compilation 2016-08-22 14:23:17 +02:00
twinaphex 7c19b2fac5 More translatable strings 2016-08-22 13:41:11 +02:00
twinaphex b0a8f72724 More translated strings 2016-08-22 13:11:40 +02:00
twinaphex a43dab71ba More translated strings 2016-08-22 02:38:19 +02:00
twinaphex 36d9b866cc Remove some logs 2016-08-22 02:30:23 +02:00
twinaphex 0ca142faf4 (frontend_salamander.c) Update dir_list_new reference 2016-08-21 14:14:37 +02:00
twinaphex 30f99c6e0e (iOS) Remove HAVE_ZARCH 2016-08-21 13:23:14 +02:00
twinaphex 19787792df Buildfix for Zarch 2016-08-21 13:22:24 +02:00
Twinaphex 5182769db8 Merge pull request #3412 from bparker06/master
recursively scan directories for database content, fixes issue #3139
2016-08-21 13:11:29 +02:00
Twinaphex ae9f55d874 Merge pull request #3413 from fr500/master
reorder XMB tabs
2016-08-21 13:09:22 +02:00
radius a467e13302 reorder XMB tabs 2016-08-21 00:09:29 -05:00
Brad Parker c9815fadce update parameter list in header 2016-08-21 01:06:38 -04:00
Brad Parker cc582db6fb recursively scan directories for database content, fixes issue #3139 2016-08-21 00:59:41 -04:00
Andrés c171dd996e Merge pull request #3411 from bparker06/master
call quit event when key combination for quit is pressed, fixes issue #3335
2016-08-20 21:59:26 -05:00
Brad Parker 0e6059f1eb call quit event when key combination for quit is pressed, fixes autosave in issue #3335 2016-08-20 22:11:06 -04:00
Alcaro 3899984bbb Fix pseudolocalization 2016-08-20 23:38:24 +02:00
Alcaro e41aa1f8fe Update pseudolocalization 2016-08-20 22:49:45 +02:00
twinaphex 838524dc49 Add thumb2 support for libco armeabi 2016-08-20 21:55:40 +02:00
twinaphex cfb48542e3 (PS3) Add /dev/bdvd 2016-08-20 21:49:58 +02:00
twinaphex ad3a4311ee Add msg_hash_jp 2016-08-20 21:37:03 +02:00
Alcaro be4e0aee1f Clean up this thing 2016-08-20 21:23:32 +02:00
twinaphex 7f3e63a18d config_set_string - prevent potential crash 2016-08-20 21:21:09 +02:00
radius 616f517de7 fix savefiles/savestates not overriding 2016-08-20 12:52:47 -05:00
Alcaro e559085540 Merge pull request #3407 from meleu/screenshot_with_gamename
Screenshot with gamename
2016-08-19 22:08:34 +02:00
meleu db204afc9c changes based on the @Alcaro suggestions
Suggestions made here: https://github.com/libretro/RetroArch/pull/3407
2016-08-19 16:31:13 -03:00
twinaphex acf76f6a58 (libretro-common) Simplify compat_ctz 2016-08-19 20:18:04 +02:00
twinaphex a27f042731 Start preparing XMB for Vita 2016-08-19 19:10:31 +02:00
meleu c92efacebe avoid problems if ROM name has percents
As @Alcaro noted here: https://github.com/libretro/RetroArch/pull/3407
2016-08-19 10:13:33 -03:00
meleu 01abbe3d4d screenshot filename "game name-yymmdd-hhmmss.ext"
replaced fill_dated_filename() by fill_str_dated_filename() to add the game name to the screenshot.
2016-08-19 08:53:14 -03:00
meleu e1f4b41bb6 added fill_str_dated_filename() prototype 2016-08-19 08:49:09 -03:00
meleu 4e44ab99a1 added fill_str_dated_filename() function
This function creates a 'dated' filename prefixed by the string `in_str`, and concatenates extension (`ext`) to it.
2016-08-19 08:45:58 -03:00
Twinaphex 4b9ced1cd8 Merge pull request #3405 from frangarcj/master
(VITA) Add threads support
2016-08-19 08:54:24 +02:00
Francisco José García García 6e920f17dc (VITA) Add threads support 2016-08-19 02:59:25 +02:00
Twinaphex bdd26ba5db Merge pull request #3404 from lakkatv/master
(XMB) Allow hiding some tabs
2016-08-18 17:27:43 +02:00
Jean-André Santoni 04fb4f6dde (XMB) Allow hiding some tabs 2016-08-18 16:42:39 +02:00
Jean-André Santoni 4228e3dcc3 Revert "Reworked xmb driver to allow tab hiding"
This reverts commit 069a9cbfe6.
2016-08-18 14:06:54 +02:00
Andrés a2529620ad Merge pull request #3401 from RobLoach/tweaks
[Emscripten] Add design tweaks to the player
2016-08-17 14:44:55 -05:00
Rob Loach b20c843fa8 [Emscripten] Add design tweaks to the player 2016-08-17 15:43:35 -04:00
Andrés a7be733902 Merge pull request #3400 from RobLoach/patch-4
[Emscripten] Add some spacing above Start controls
2016-08-17 14:26:00 -05:00
Rob Loach edb0e974d7 [Emscripten] Add some spacing above Start controls 2016-08-17 15:25:28 -04:00
Andrés 2723fe59a0 Merge pull request #3398 from RobLoach/patch-3
[Emscripten] Clean up the log textarea
2016-08-17 13:54:12 -05:00
Andrés 2f2d5f0265 Merge pull request #3397 from RobLoach/patch-2
[Emscripten] Center-align and darken the player
2016-08-17 13:54:04 -05:00
Rob Loach 53ccbcc27a [Emscripten] Use the Bootstrap control for the log 2016-08-17 14:23:24 -04:00
Rob Loach dd8b19578b [Emscripten] Fix the CSS styling for the log 2016-08-17 14:22:21 -04:00
Rob Loach 60eddd189d [Emscripten] Improve the textarea styling 2016-08-17 14:17:26 -04:00
Rob Loach b7efb36099 [Emscripten] Center-align and darken the player 2016-08-17 14:11:48 -04:00
Andrés 98b2712dfb Merge pull request #3396 from RobLoach/vsync
[Emscripten] Fix disabling the vsync
2016-08-17 13:02:00 -05:00
Twinaphex a8023b4957 Merge pull request #3395 from gitghostcoder/master
Reworked xmb driver to allow tab hiding
2016-08-17 19:53:09 +02:00
Rob Loach 6db5a423fa Update webplayer.js 2016-08-17 13:52:39 -04:00
Rob Loach 7602ce5bc9 [Emscripten] Fix disabling the vsync 2016-08-17 13:50:43 -04:00
Ghost Coder 069a9cbfe6 Reworked xmb driver to allow tab hiding 2016-08-17 11:28:42 -05:00
twinaphex eb83d6dfc0 (configuration.c) Plug memory leaks 2016-08-17 17:48:13 +02:00
Alcaro 51b44bc317 Merge pull request #3393 from libretro/revert-3341-master
Revert "[bugged] Reworked xmb driver to allow tab hiding"
2016-08-17 15:07:28 +02:00
Alcaro 32a56d2738 Revert "[bugged] Reworked xmb driver to allow tab hiding" 2016-08-17 15:07:17 +02:00
Alcaro 4ce3683333 Fix indentation derp 2016-08-17 13:53:41 +02:00
twinaphex ff07d3569b Move menu_update_libretro_info to menu_driver.c 2016-08-17 12:51:26 +02:00
Twinaphex f26044678d Merge pull request #3341 from gitghostcoder/master
[bugged] Reworked xmb driver to allow tab hiding
2016-08-17 09:45:47 +02:00
Andrés c328a37d2a Merge pull request #3391 from RobLoach/emscripten-update
Add Bootstrap Styles
2016-08-17 02:17:19 -05:00
Rob Loach 01665b5387 Add Tether for Bootstrap support 2016-08-17 02:13:51 -04:00
Rob Loach 2826524685 Add Bootstrap styles to emscripten 2016-08-17 02:11:26 -04:00
Andrés e8ca9eb623 Merge pull request #3390 from RobLoach/emscripten
Move emscripten JS/CSS to split files
2016-08-16 23:54:23 -05:00
Rob Loach 361949e89a Add JS/CSS documentation 2016-08-16 23:35:25 -04:00
Rob Loach 6dfb76b669 Move emscripten JS/CSS to split files 2016-08-16 23:32:45 -04:00
Twinaphex 74c711fb51 Merge pull request #3389 from RobLoach/patch-2
Remove browserfs.min.js because it's not used
2016-08-17 05:28:09 +02:00
Rob Loach 6ac4be7a73 Remove browserfs.min.js because it's not used
We are using browserfs.js, but not touching the minified version of it.
2016-08-16 23:10:28 -04:00
twinaphex 602d076aef (libco) Add libco for PSP2/Vita 2016-08-15 04:28:08 +02:00
Twinaphex c51e25f926 Merge pull request #3386 from frangarcj/master
(VITA) Fix setting aspect ratio
2016-08-15 02:53:52 +02:00
Francisco José García García 70f16cddda (VITA) Fix setting aspect ratio 2016-08-15 02:39:34 +02:00
radius 0a382f43bc disable the console again on release builds 2016-08-13 20:13:40 -05:00
Twinaphex 563af1ea68 Merge pull request #3382 from Ezio-PS/master
(PS3) Fix the packaging for the cex build
2016-08-13 20:52:04 +02:00
U-Huygens-PC\Bibibi e06a9583f3 Fix new paths for the cex and dex ps3 build 2016-08-13 14:20:49 +02:00
U-Huygens-PC\Bibibi 9bedbb9af8 Move ICON0.PNG, PARAM.SFO and USRDIR folder from pkg/ps3 to pkg/ps3/SSNE10000 2016-08-13 14:09:56 +02:00
U-Huygens-PC\Bibibi 1d6a6e91d4 Add and update comments 2016-08-13 13:56:18 +02:00
U-Huygens-PC\Bibibi 5120654217 Fix packaging for cex ps3 build 2016-08-13 13:52:35 +02:00
twinaphex 6484d89785 (Vita) Update website icon 2016-08-13 07:58:14 +02:00
twinaphex e51131303f Fix header include 2016-08-12 01:37:12 +02:00
Ghost Coder 46029bef22 Reworked xmb driver to allow tab hiding 2016-08-06 04:08:21 -05:00
twinaphex 083bc4eed3 Cut down on some HAVE_FBO ifdefs 2016-08-06 03:18:19 +02:00
twinaphex 79db520ae8 Silence warning 'unused functions' 2016-08-06 03:05:27 +02:00
Twinaphex f51c48a787 Merge pull request #3339 from heuripedes/master
(osmesa) Cleanup and minor fixes
2016-08-06 02:05:24 +02:00
Higor Eurípedes 529031270b (osmesa) Cleanup and minor fixes 2016-08-05 20:54:35 -03:00
twinaphex 8dc41b5e40 Remove pocketsnes reference 2016-08-05 20:42:57 +02:00
twinaphex ddcaf6a758 (CTR) Update 2016-08-05 19:23:26 +02:00
Alcaro fcd283c082 Fix capitalization 2016-08-05 18:17:30 +02:00
twinaphex 9a3a042024 Change catsfc_plus name 2016-08-05 17:57:48 +02:00
twinaphex 8854f7212a Rename SNES9x cores 2016-08-05 17:51:59 +02:00
Twinaphex 33018b0214 Merge pull request #3334 from frangarcj/master
(VITA) Add default configs dir
2016-08-05 02:25:54 +02:00
Francisco José García García 2f29d0eef1 Merge remote-tracking branch 'libretro/master' 2016-08-05 02:12:50 +02:00
Francisco José García García 9b6afcb6b1 (VITA) Add default configs dir 2016-08-05 02:12:12 +02:00
Twinaphex 65a79db1b0 Merge pull request #3333 from frangarcj/master
(VITA) Fix File Reading
2016-08-05 02:00:43 +02:00
Francisco José García García 3cf448b6e2 (VITA) Fix File Reading 2016-08-05 01:47:05 +02:00
radius 62281f88ac this should go too 2016-08-04 01:10:10 -05:00
radius 93bf615267 remove old incomplete templates 2016-08-04 01:09:43 -05:00
radius 7fcee63d02 syncing the rootfs to dropbox works now 2016-08-04 01:09:43 -05:00
radius 664d37f943 initial emscripten dosbox integration 2016-08-03 20:25:20 -05:00
Twinaphex bff9a885f8 Merge pull request #3330 from frangarcj/master
(VITA) Fix reading files
2016-08-04 02:10:29 +02:00
Francisco José García García 63b637cf6c (VITA) Fix reading files 2016-08-04 02:05:55 +02:00
twinaphex 10ea53a113 (Vita) platform_psp.c - cleanup - change ifndef VITA to
ifdef VITA
2016-08-04 01:26:53 +02:00
twinaphex a9744f8def (Vita) Change heap to 128MB 2016-08-04 01:23:28 +02:00
twinaphex 444d957978 (PSGL) Fix 32bit color 2016-08-03 17:07:38 +02:00
twinaphex eab3c6e25f (PS3) Take out imageviewer for now 2016-08-03 16:47:35 +02:00
twinaphex b8de32587b (GL) Fix PSGL build 2016-08-03 16:47:01 +02:00
twinaphex b64070793a (PS3) Fix two warnings 2016-08-03 16:30:58 +02:00
twinaphex afce6fccc5 (GL) Fix statement is unreachable warnign 2016-08-03 16:28:52 +02:00
radius 0cf79af646 allow loading persistent content in webplayer 2016-08-03 01:20:35 -05:00
radius 6c96adc843 add a different template for localstorage 2016-08-02 23:07:16 -05:00
radius 0625db8d6d update browserfs 2016-08-02 23:04:01 -05:00
radius e12e97fe02 add newline to this message 2016-08-02 23:04:01 -05:00
radius df9f33a7d7 remove some more cruft 2016-08-02 19:52:55 -05:00
radius c3c03d4e3c fix labels 2016-08-02 19:38:46 -05:00
radius ce7ba91411 simplify template 2016-08-02 19:37:15 -05:00
Twinaphex cef5c828e8 Merge pull request #3329 from frangarcj/master
(VITA) Fix icon0.png
2016-08-03 02:23:23 +02:00
Francisco José García García 5718ede5f7 (VITA) Fix icon0.png 2016-08-03 02:22:17 +02:00
twinaphex 052dd57a2f Update image with pngquant 2016-08-03 02:11:58 +02:00
Twinaphex 5d2d513bf9 Merge pull request #3328 from frangarcj/master
(VITA) Show fps
2016-08-03 02:05:17 +02:00
Francisco José García García d514963a95 (VITA) Show fps 2016-08-03 02:02:44 +02:00
Andrés 26546a812b remove bash-ism 2016-08-02 18:45:41 -05:00
twinaphex 85cb1f2a6f (Vita) Add ur0: too 2016-08-03 01:15:06 +02:00
Twinaphex 637c42bd8b Merge pull request #3327 from frangarcj/master
(VITA) Fix Quit Retroarch
2016-08-03 01:10:53 +02:00
Francisco José García García 16309c52f5 (VITA) Fix Quit Retroarch 2016-08-03 00:39:20 +02:00
Twinaphex cedf85e167 Merge pull request #3326 from frangarcj/master
(VITA) Add icon0.png and fix TITLE_ID
2016-08-03 00:24:36 +02:00
twinaphex b7b5ffe28c Above case should handle this already 2016-08-03 00:24:03 +02:00
Francisco José García García 3e2671a567 (VITA) Add icon0.png and fix TITLE_ID 2016-08-03 00:21:55 +02:00
twinaphex 02f0b4a428 GL_CAPS_BGRA8888 - Query for Apple extension GL_APPLE_texture_format_BGRA8888 too 2016-08-03 00:21:48 +02:00
twinaphex a517b39cfb Implement CAPS_PACKED_DEPTH_STENCIL for non-GLES too 2016-08-03 00:19:44 +02:00
twinaphex 36963b91c7 (GL capabilities) Packed depth stencil - if GLES is 3 or higher,
assume yes, also query EXT_packed_depth_stencil
2016-08-03 00:15:47 +02:00
twinaphex 23f4e8bdfa (Android/GLES) Should work with HW render context again 2016-08-03 00:08:50 +02:00
Twinaphex 5fc228fcfc Merge pull request #3324 from dalter/patch-7
Fix Audio Driver (Emscripten)
2016-08-02 20:00:13 +02:00
Twinaphex ba02ddc041 Merge pull request #3323 from dalter/patch-6
Fix Warnings (Emscripten)
2016-08-02 19:53:40 +02:00
dalter 0026a5d08e Fix Audio Driver (Emscripten)
Fix sound crack in Fierfox, fix core frozen when load rom
2016-08-02 20:53:23 +03:00
dalter a6096fe6b9 Fix Warnings (Emscripten) 2016-08-02 20:49:16 +03:00
twinaphex fb2b53e589 (Vita) Add ICON0.PNG 2016-08-02 17:19:49 +02:00
twinaphex 5dc4a730d2 (Xenon 360) Get rid of lifecycle_state 2016-08-02 17:05:58 +02:00
twinaphex 9e2925ea23 Start dehardcoding PSP joypad for only one gamepad - multiple
gamepads could maybe be used on PS TV
2016-08-02 17:04:00 +02:00
twinaphex 173a71d8fc Update menu toggle labels 2016-08-02 16:53:08 +02:00
twinaphex 64d6e0facf (Vita) Implement proper gamepad menu toggle combo for Vita, and remove
old hack
2016-08-02 16:48:54 +02:00
twinaphex d77dd4f0d3 Add enums for gamepad menu toggle combos 2016-08-02 16:45:50 +02:00
twinaphex 54192cb6d6 Hide 'Disable Composition' for RARCH_MOBILE 2016-08-02 16:33:04 +02:00
twinaphex f43f23d0af (RARCH_CONSOLE) Don't show User Interface Settings 2016-08-02 16:30:35 +02:00
twinaphex 41c99d6a83 (Menu) don't show wallpaper/boxart settings when RGUI is
selected
2016-08-02 16:27:43 +02:00
twinaphex 871b1740a8 Rename render_chain_driver.h to render_chain_gl.h 2016-08-02 16:22:57 +02:00
twinaphex 3d667999ab Cleanup 2016-08-02 16:19:27 +02:00
twinaphex a010300d2f Buildfix 2016-08-02 15:46:03 +02:00
twinaphex fda2495021 Get rid of HAVE_ZLIB_DEFLATE - implicitly enable it 2016-08-02 15:34:48 +02:00
twinaphex 328c6f7797 (Vita) Don't use baked in zlib - use system zlib 2016-08-02 15:31:09 +02:00
twinaphex eee39ccf8a (Add Content List) Add default 'no entries' if networking and libretrodb support
are both not available
2016-08-02 15:31:09 +02:00
Andrés 64fd8e75d5 fix dist-cores.sh again 2016-08-02 08:27:09 -05:00
twinaphex cd14455a51 Don't hide ADD_CONTENT_LIST behind HAVE_LIBRETRODB 2016-08-02 15:26:35 +02:00
Andrés 49aed237c9 fix a typo 2016-08-02 08:14:53 -05:00
Andrés 7d91ac9162 try to generate the IDs based on alphabetic order 2016-08-02 08:14:10 -05:00
twinaphex fb641dabd1 (Griffin ) Buildfix 2016-08-02 15:01:34 +02:00
Twinaphex 77d628e4ca Merge pull request #3321 from Themaister/master
Vulkan: Add push constant support to slang.
2016-08-02 14:11:14 +02:00
twinaphex fde63e1518 Don't show audio device for RARCH_CONSOLE 2016-08-02 14:06:47 +02:00
twinaphex 21f7447879 Hide suspend screensaver enable for mobiles/consoles 2016-08-02 13:57:54 +02:00
Hans-Kristian Arntzen fb407796e9 Vulkan: Add push constant support to slang.
Usually, the UBO is very small, so we can fit everything in fast-access
uniforms.
2016-08-02 12:51:30 +02:00
Andrés 8f47e71b97 Update dist-cores.sh 2016-08-01 23:28:23 -05:00
twinaphex 86ea04bfe2 (PSP/Vita) Prevent warning 2016-08-02 03:15:11 +02:00
twinaphex 84588a1527 (GL) Move more code 2016-08-02 03:12:48 +02:00
twinaphex 9b06ec6c4e (GL) Move more FBO functions to render_chain_gl_legacy 2016-08-02 03:10:55 +02:00
twinaphex bd3cd08be8 (GL/FB) Still compiles and links with --disable-fbo 2016-08-02 03:04:27 +02:00
twinaphex d391159f39 Move more HAVE_FBO code to render_chain_gl_legacy 2016-08-02 02:56:44 +02:00
twinaphex 85ec02ba6b (GL) Move more renderchain code over to render_chain_gl_legacy 2016-08-02 02:54:38 +02:00
twinaphex 78806bf33c Move more renderchain code over to render_chain_gl_legacy.c 2016-08-02 02:38:46 +02:00
twinaphex a8e74f0aa2 (GL) Start moving renderchain code over to separate files 2016-08-02 02:27:23 +02:00
Andrés 9bf2a80224 Update dist-cores.sh 2016-08-01 19:21:43 -05:00
Andrés fddf503680 Update dist-cores.sh 2016-08-01 19:19:39 -05:00
twinaphex a07ce85086 (OSMesa) No C++ comments 2016-08-02 02:19:06 +02:00
Andrés d2891828e7 Update dist-cores.sh 2016-08-01 19:16:51 -05:00
Higor Eurípedes 8752313961 (gfx) Add OSMesa context 2016-08-02 02:16:02 +02:00
twinaphex ab8471959e (D3D) 80-char style nits 2016-08-02 01:47:11 +02:00
Twinaphex d7f649a5de Merge pull request #3320 from frangarcj/master
VPK and Sound fix
2016-08-02 01:39:53 +02:00
Francisco José García García 481763188c (VITA) Ugly blocking audio driver fix 2016-08-02 01:38:05 +02:00
Francisco José García García 4c26b82531 (VITA) Fix vpk full path 2016-08-02 01:37:46 +02:00
twinaphex 0ff82bd714 (XDK) Cleanup 2016-08-02 01:33:56 +02:00
twinaphex 4612e7e582 (CTR) Put core info files into separate dir 2016-08-02 01:30:35 +02:00
twinaphex 5da0945066 (GX) Put core info files into separate dir 2016-08-02 01:30:04 +02:00
twinaphex 90a0117578 (PSP/Vita) Put core info directory into separate dir 2016-08-02 01:27:25 +02:00
twinaphex 9b984398f7 (platform psp) Cleanups 2016-08-02 01:26:00 +02:00
Andrés 3a97fcff3b Merge pull request #3319 from frangarcj/master
(VITA) Fix build script
2016-08-01 18:11:45 -05:00
Francisco José García García 262959e2c2 (VITA) Fix build script 2016-08-02 01:09:35 +02:00
Twinaphex 8d29d5eaed Merge pull request #3318 from frangarcj/master
(VITA) Create vpk's
2016-08-02 00:58:42 +02:00
Francisco José García García 3a5fd3ab46 (VITA) Create vpk's 2016-08-02 00:57:00 +02:00
twinaphex a0d3a148e7 Move force SRGB disable check at beginning of capability check 2016-08-02 00:56:21 +02:00
twinaphex 31ca6ca5ea (GL) Rename another function 2016-08-02 00:42:03 +02:00
twinaphex 188dd9bd69 Create gl_renderchain_add_lut 2016-08-02 00:31:04 +02:00
twinaphex ec91878187 (GL) rename to gl_recompute_pass_sizes 2016-08-02 00:25:28 +02:00
twinaphex 9c1155283b (GL) Create gl_renderchain_convert_geometry 2016-08-02 00:23:38 +02:00
Andrés d7e28eda8a Merge pull request #3317 from frangarcj/master
(VITA) Fix vita-make-fself typo
2016-08-01 17:14:10 -05:00
Francisco José García García 043b4589bc (VITA) Fix vita-make-fself typo 2016-08-02 00:11:51 +02:00
twinaphex e8480a72a6 (D3D) Correct one shader 2016-08-01 22:45:07 +02:00
twinaphex c314077f1d (D3D) Cleanups of shaders 2016-08-01 22:43:51 +02:00
twinaphex 3787d9d691 (MSVC) Add imageviewer 2016-08-01 22:26:50 +02:00
twinaphex 432c23eed8 (D3D) Headers fix pt. 5 2016-08-01 22:23:01 +02:00
twinaphex 51eba5a3e7 (D3D) Header fix pt. 4 2016-08-01 22:22:23 +02:00
twinaphex 6e644223a8 (D3D) Header fix pt. 3 2016-08-01 22:21:50 +02:00
twinaphex a2bbbee713 (D3D) Header fix pt. 2 2016-08-01 22:21:11 +02:00
twinaphex fd6a9fd3bd (D3D) Fix include 2016-08-01 22:18:42 +02:00
Twinaphex 1ec84ca44d Merge pull request #3316 from Themaister/master
Vulkan: Add shader parameters
2016-08-01 22:16:33 +02:00
twinaphex 6f605e2df5 CXX_BUILD buildfix 2016-08-01 22:16:00 +02:00
Hans-Kristian Arntzen 00de5aa2f0 Vulkan: Filter out duplicated parameters. 2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen efd3067903 Vulkan: Hook up shader parameters. 2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen 8b14941a94 Refactor out resolve_current_parameters. 2016-08-01 22:10:14 +02:00
Hans-Kristian Arntzen a50c204d5e Vulkan: Begin parsing parameters. 2016-08-01 22:10:14 +02:00
twinaphex 8d186dab88 Relocate D3D drivers 2016-08-01 22:05:57 +02:00
twinaphex 124454430b (GL) Go through gl_query_core_context_in_use 2016-08-01 21:58:18 +02:00
Twinaphex becef95dc2 (GL) Silence unused variable 2016-08-01 21:55:02 +02:00
Twinaphex cc17f5b9c3 Correct this 2016-08-01 21:53:40 +02:00
twinaphex aa2af0b61f Refactor has_set settings 2016-08-01 21:51:23 +02:00
twinaphex ef7ce5beee Create RARCH_OVERRIDE_SETTING_VERBOSITY 2016-08-01 20:54:16 +02:00
twinaphex 01de39bf0b Cleanups 2016-08-01 20:48:02 +02:00
twinaphex ba32586d1a Rewrite has_set.libretro 2016-08-01 20:47:19 +02:00
twinaphex 6fb39e4f7f Iterate and unset override settings in retroarch_parse_input 2016-08-01 20:43:26 +02:00
twinaphex 39aba8e36f Create override setting functions 2016-08-01 20:41:42 +02:00
twinaphex 45d7b7b459 Create retroarch_override_setting_is_set 2016-08-01 20:39:21 +02:00
twinaphex 37913d9343 (Shield) Comment this out - doesn't work for now - figure out why 2016-08-01 20:30:38 +02:00
Twinaphex 0e814c4e6d Merge pull request #3315 from frangarcj/master
(VITA) Rotation workaround
2016-08-01 20:28:01 +02:00
twinaphex 3d75c0abdc Add HAVE_MENU ifdefs 2016-08-01 20:27:14 +02:00
Francisco José García García 95b630636d (VITA) Rotation workaround 2016-08-01 20:26:29 +02:00
twinaphex 3402c0d420 When building without menu support, if we pass no arguments to
retroarch at the commandline, show the help message instead of
outright crashing
2016-08-01 18:35:56 +02:00
twinaphex 60158f5247 Make it possible to compile again with ./configure --disable-rgui 2016-08-01 18:29:26 +02:00
twinaphex 2665212237 (configuration.c) Add HAVE_MENU ifdef 2016-08-01 18:26:06 +02:00
twinaphex 5636569d9e (configuration.c) Fix bug in config_menu_btn_cancel_default 2016-08-01 18:22:03 +02:00
twinaphex 563842945c (gl_common.h) Start catering towards GLES3/GLES3.1/GLES3.2 too 2016-08-01 18:15:14 +02:00
twinaphex e3dc0261c0 (GL) Cleanups 2016-08-01 18:10:34 +02:00
twinaphex 46c8bba59e (GL) Cut down on ifdefs 2016-08-01 18:08:18 +02:00
twinaphex 10ceec4c99 (GL) Cleanups 2016-08-01 17:46:02 +02:00
twinaphex b7458f5523 (GL) Cleanups 2016-08-01 17:40:53 +02:00
twinaphex 34488802d9 Create GL_CAPS_SRGB_FBO_ES3 2016-08-01 17:36:07 +02:00
twinaphex 09ea570dcb Create GL_CAPS_FP_FBO 2016-08-01 17:33:50 +02:00
twinaphex 3d76f6e79f gl_check_capability - cleanups 2016-08-01 17:30:58 +02:00
twinaphex 76c021df09 Create GL_CAPS_SRGB_FBO 2016-08-01 17:28:43 +02:00
twinaphex 9b5703c9f3 Create GL_CAPS_FULL_NPOT_SUPPORT 2016-08-01 17:23:01 +02:00
twinaphex 91bef22613 EGL images should be usable with GLES3 and later too 2016-08-01 16:47:24 +02:00
twinaphex a45239359c (GL) Create GL_CAPS_UNPACK_ROW_LENGTH
(GL) Cut down on HAVE_OPENGLES2 ifdefs and try to use
HAVE_OPENGLES instead
2016-08-01 16:36:57 +02:00
twinaphex 5f183d9895 Make SDL2 optional for Emscripten 2016-08-01 16:29:56 +02:00
twinaphex 6d76a04b0f (GL) Cleanups
(Emscripten) Add HAVE_RPNG/HAVE_RJPEG
2016-08-01 16:25:02 +02:00
twinaphex 78217ca32b (GL) Create GL_CAPS_ES2_COMPAT 2016-08-01 16:19:41 +02:00
twinaphex bbc303c7f2 (GL) Create GL_CAPS_PACKED_DEPTH_STENCIL 2016-08-01 16:11:35 +02:00
twinaphex 375a2f2480 Create GL_CAPS_DEBUG 2016-08-01 16:06:19 +02:00
twinaphex 4b1ab53361 Create gl_check_capability 2016-08-01 16:01:21 +02:00
twinaphex 087e378bf7 Use 0 parameter index 2016-08-01 15:43:34 +02:00
twinaphex 1aac393f73 (GL) Cut down on some forward declarations 2016-08-01 15:40:02 +02:00
twinaphex 94763e1db4 (GL) Remove one unnecessary HAVE_MENU ifdef 2016-08-01 15:31:29 +02:00
Twinaphex 210db93237 Merge pull request #3312 from Themaister/master
Vulkan: Make glslang shaders debuggable.
2016-08-01 14:36:17 +02:00
Hans-Kristian Arntzen efee5d131a Vulkan: Make glslang shaders debuggable.
Properly handle file names, includes, etc to make
error reports somewhat more sane.
2016-08-01 14:27:23 +02:00
twinaphex 9e8f5127e2 (General) Allow for platforms to set menu OK/cancel buttons individually
(Shield/Android) Set default OK/cancel buttons now to Shield A (OK)
and Shield B (Cancel), previous default was Shield A (Cancel),
Shield B (OK)
2016-08-01 14:20:47 +02:00
twinaphex 2bcdaf2c57 Create config_overlay_enable_default 2016-08-01 14:14:21 +02:00
twinaphex b126b9627d (Android) When Android device is a game console, disable overlays by default 2016-08-01 14:09:04 +02:00
twinaphex ef604dbeb5 (platform_linux.c) Cleanup 2016-08-01 14:04:57 +02:00
Twinaphex f65dabe3a4 Merge pull request #3310 from frangarcj/master
(VITA) Fix deps/vita2dlib
2016-08-01 02:25:27 +02:00
Francisco José García García 80e4da408f (VITA) Fix deps/vita2dlib 2016-08-01 02:12:15 +02:00
twinaphex d12d89202e (libvita2d) Add these object files 2016-08-01 01:31:20 +02:00
twinaphex a676ce8ffe (libvita2d) Buildfixes 2016-08-01 01:02:26 +02:00
twinaphex 6093499610 (Vita) Buildfix 2016-08-01 00:54:11 +02:00
twinaphex 6a5fee664f (Vita) Start baking in libvita2d 2016-08-01 00:50:13 +02:00
twinaphex bbafc5f04e (Vita) Add libvita2d 2016-08-01 00:43:38 +02:00
Twinaphex 01d995f17e Merge pull request #3308 from leiradel/httpserver
Added an embedded HTTP server to RetroArch; Mapped the /mmaps URI to …
2016-08-01 00:14:12 +02:00
Andre Leiradella 260625bd83 Use MD5 functions from libretro-common 2016-07-31 23:08:07 +01:00
Andre Leiradella 292335b84c Added an embedded HTTP server to RetroArch; Mapped the /mmaps URI to a JSON-based RESTful API to retrieve memory maps 2016-07-31 22:45:01 +01:00
twinaphex 1468b54b41 CXX_BUILD buildfix 2016-07-31 23:42:55 +02:00
Twinaphex 8eb97d37b2 Merge pull request #3307 from Ezio-PS/master
Fixed Italian translation
2016-07-31 22:56:50 +02:00
Ezio-PS bae8cc4f68 Fixed Italian translation 2016-07-31 22:27:51 +02:00
twinaphex b81f3b31eb (PS3) Take out HAVE_IMAGEVIEWER for now - still multiple bugs 2016-07-31 21:26:57 +02:00
twinaphex 7775471a8f (Salamander) If core_path is 'builtin', just fall back and start
up first libretro core executable we can find
2016-07-31 21:24:40 +02:00
Twinaphex 3def2655a2 Merge pull request #3305 from dalter/patch-4
Add SDL2 option
2016-07-31 21:14:45 +02:00
Twinaphex 2c06de9ae2 Merge pull request #3306 from dalter/patch-5
Add SDL2 option
2016-07-31 21:14:27 +02:00
Twinaphex cef3893e06 Merge pull request #3304 from dalter/patch-3
Add focus to canvas (SDL2 input)
2016-07-31 21:14:11 +02:00
dalter 1b99f06fb8 Add SDL2 option 2016-07-31 21:52:37 +03:00
dalter bf0e36017c Update template.html 2016-07-31 21:48:32 +03:00
Twinaphex a59784fbd1 Merge pull request #3303 from Themaister/master
Fix file encoding for msg_hash_it.
2016-07-31 20:48:21 +02:00
Hans-Kristian Arntzen ba78cec1b3 Fix file encoding for msg_hash_it. 2016-07-31 20:46:56 +02:00
dalter c6870cfb8e Add focus to canvas (SDL2 input)
When the canvas in focus SDL2 input should be work
2016-07-31 21:43:42 +03:00
Twinaphex af09bd1751 Create PS3 ifdef for DPI override value 2016-07-31 20:32:40 +02:00
Twinaphex 543bab65cc Merge pull request #3300 from Ezio-PS/master
(PS3) Workaround to fix overscan on GLUI
2016-07-31 20:32:10 +02:00
Twinaphex ec82db21d2 Merge pull request #3301 from frangarcj/master
(VITA) Fix rotation
2016-07-31 20:31:08 +02:00
Twinaphex 742bf656dc Merge pull request #3302 from Themaister/master
Vulkan: Mipmapping, LUT in shader support, Mipmapped FBOs, bugfixes
2016-07-31 20:18:21 +02:00
Ezio-PS 34e11f0eaf Update msg_hash_it.c 2016-07-31 20:05:11 +02:00
Hans-Kristian Arntzen bdcbc56507 Vulkan: Fix validation errors. 2016-07-31 19:59:36 +02:00
Ezio-PS 6b587ef67f Updated Italian translation 2016-07-31 19:54:03 +02:00
Hans-Kristian Arntzen e61ec38543 Vulkan: Mipmapped FBOs work. 2016-07-31 19:52:15 +02:00
Francisco José García García b4bd9cf830 (VITA) Fix rotation 2016-07-31 19:48:55 +02:00
Ezio-PS e45a496b07 (PS3) Workaround to fix overscan on GLUI 2016-07-31 19:41:03 +02:00
Hans-Kristian Arntzen a48ba6c68b Vulkan: Add mipmapping support to Framebuffer class. 2016-07-31 19:23:42 +02:00
twinaphex 7ecca928e1 Rename some XMB settings 2016-07-31 18:35:58 +02:00
Hans-Kristian Arntzen 9a613ef8bf Vulkan: Actually bind correct part of the UBO. 2016-07-31 18:25:42 +02:00
Hans-Kristian Arntzen c0e752c53c Persistently map filter chain UBO. 2016-07-31 18:19:35 +02:00
twinaphex a6b7052e5d Edit message 2016-07-31 18:12:57 +02:00
twinaphex 8a70a62977 Add message 2016-07-31 18:12:21 +02:00
twinaphex d245bbf12e Add sys/types.h to interface_stream.h 2016-07-31 17:53:14 +02:00
Twinaphex 5df3831e8a Merge pull request #3299 from dalter/patch-2
Add SDL2 compile flags
2016-07-31 17:10:45 +02:00
dalter c7060b2db0 Add SDL2 compile flags 2016-07-31 18:09:56 +03:00
Twinaphex f27359f834 Merge pull request #3298 from dalter/patch-1
Fix imput in RetroArch menu
2016-07-31 17:09:28 +02:00
dalter fffe1d099c Fix imput in RetroArch menu 2016-07-31 17:56:40 +03:00
Hans-Kristian Arntzen 10e864b26b Hook up wrapping modes. 2016-07-31 16:32:55 +02:00
Twinaphex e93f362427 Merge pull request #3296 from lakkatv/master
(GLUI) Message box improvements
2016-07-31 16:22:03 +02:00
Hans-Kristian Arntzen 4ac9ebd579 Vulkan: Allow configuring mip/wrap/filter for LUTs.
LUTs are feature complete with CGP now.
2016-07-31 16:16:47 +02:00
Jean-André Santoni 12fa1c634c (GLUI) Message box improvements 2016-07-31 16:11:47 +02:00
Hans-Kristian Arntzen e846bd4955 Vulkan: Hook up preliminary support for mip/wrapping modes. 2016-07-31 15:42:57 +02:00
twinaphex aec198938d Add Help Messages 2016-07-31 15:39:04 +02:00
twinaphex 3648ed583d (Vita) Add HAVE_IMAGEVIEWER for Vita too 2016-07-31 15:04:56 +02:00
twinaphex ee68bbe8e4 Add more help messages 2016-07-31 15:02:46 +02:00
twinaphex 0536439129 Create static variable for path_libretro and move it outside
of settings struct
2016-07-31 14:40:59 +02:00
twinaphex 7d7a62b92a Show 'Start Video Processor' item again on main menu 2016-07-31 14:34:18 +02:00
twinaphex 10a9effc1d Silence warnings 2016-07-31 14:29:33 +02:00
twinaphex 070223e0b5 (PS3) Add HAVE_IMAGEVIEWER 2016-07-31 14:24:52 +02:00
twinaphex 83452f3a0b (Android) Add HAVE_IMAGEVIEWER 2016-07-31 14:24:17 +02:00
twinaphex 77b688ed42 Add HAVE_FFMPEG/HAVE_IMAGEVIEWER ifdefs 2016-07-31 14:22:56 +02:00
Hans-Kristian Arntzen 0eca956789 Vulkan: Create image views with right amount of mip levels. 2016-07-31 14:01:39 +02:00
Hans-Kristian Arntzen 4e8e79eabd Vulkan: Add mipmapping support. 2016-07-31 13:47:10 +02:00
Twinaphex 6e05ca92cf Merge pull request #3294 from frangarcj/master
Several VITA fixes for Henkaku
2016-07-31 13:31:06 +02:00
Hans-Kristian Arntzen e57997bb82 Make image barriers hit the entire mipchain. 2016-07-31 13:05:07 +02:00
Hans-Kristian Arntzen cbca9513ab Basic LUT work. 2016-07-31 13:01:31 +02:00
Hans-Kristian Arntzen 7813d40c9e Log if Vulkan debug layers are enabled. 2016-07-31 12:54:10 +02:00
Hans-Kristian Arntzen f208bba41e Add USER semantic to match user textures. 2016-07-31 12:39:07 +02:00
Hans-Kristian Arntzen d39a3619d6 Begin implementation of LUTs in Vulkan. 2016-07-31 12:26:14 +02:00
Francisco José García García b0ff58e653 (VITA) New paths for Henkaku 2016-07-31 09:59:53 +02:00
Francisco José García García c597ff8677 (VITA) Fix audio crash 2016-07-31 09:59:17 +02:00
Francisco José García García 80c3bf0ec2 (VITA) FIX gets 2016-07-31 09:58:53 +02:00
Francisco José García García 2dd13faa74 (VITA) Changes for new vitasdk toolchain 2016-07-31 09:57:35 +02:00
Twinaphex c899f4c2ef Merge pull request #3293 from lakkatv/master
(XMB) Display corresponding icons for each history list items
2016-07-31 02:11:26 +02:00
Jean-André Santoni c2af3325ae (XMB) Display corresponding icons for each history list items 2016-07-31 01:47:58 +02:00
Twinaphex a739b7e60c Merge pull request #3289 from fr500/master
Per-core & Per-game shader presets #2
2016-07-31 01:42:34 +02:00
Twinaphex 248882c545 Merge pull request #3290 from leiradel/master
fixed unguarded use of XMB_TEXTURE_IMAGES
2016-07-31 01:42:27 +02:00
twinaphex 8dfa393e05 Add screenshot to image history list too 2016-07-31 01:20:00 +02:00
twinaphex 5a83139e15 Cleanup 2016-07-31 01:11:53 +02:00
twinaphex 9211dea6d5 Image/music history playlists should work now too 2016-07-30 23:56:12 +02:00
twinaphex 5aa61dcb15 Successfully pushes movies/music/image files now to proper history list 2016-07-30 23:50:29 +02:00
twinaphex 286bf213d1 Change name to movieplayer_video 2016-07-30 23:21:30 +02:00
twinaphex 7c7fc07674 Change core name to ffmpeg_video 2016-07-30 23:21:04 +02:00
twinaphex 43a805eb74 Cleanups 2016-07-30 23:18:27 +02:00
Andre Leiradella 2a4de40bab fixed unguarded use of XMB_TEXTURE_IMAGES 2016-07-30 22:17:55 +01:00
twinaphex 3dcc52fd5b Start showing history video playlist 2016-07-30 23:12:17 +02:00
twinaphex 34d654b0f3 Turn menu_displaylist_parse_playlist_history into a generic
function
2016-07-30 23:07:18 +02:00
twinaphex 9e6d771bcf Create menu_displaylist_parse_playlist_history 2016-07-30 23:03:33 +02:00
twinaphex 8417a5e176 Start writing to separate playlists 2016-07-30 22:57:32 +02:00
twinaphex 8b706ad805 Start creating new history files for music/video/image 2016-07-30 22:47:43 +02:00
twinaphex f391c1b65d Add new path settings for music/image/video history paths 2016-07-30 22:32:52 +02:00
radius 785d5519a6 only load shaders compatible with the current backend 2016-07-30 15:28:47 -05:00
radius 0026a91d62 clear the runloop variable 2016-07-30 14:37:07 -05:00
radius d58c802e3b restore the original shader on close 2016-07-30 14:36:01 -05:00
twinaphex 04c9db254e Start preparing playlist code 2016-07-30 21:27:40 +02:00
twinaphex d926961b43 Pass mode argument to task_load_content 2016-07-30 21:19:47 +02:00
radius fcd5507158 remove some dead code 2016-07-30 13:57:53 -05:00
radius fccb4387d2 implement shader overriding 2016-07-30 13:55:50 -05:00
twinaphex f803809bb6 (XMB) Add 'Take Screenshot' to 'Images tab' 2016-07-30 19:47:39 +02:00
twinaphex ee742bdb0a Add this back to Main Menu in case HAVE_FFMPEG is not defined 2016-07-30 19:44:42 +02:00
twinaphex 5beb759865 Move 'Start Video Processor Core' option over to 'Videos' tab 2016-07-30 19:43:33 +02:00
Twinaphex 685c126589 Remove unused variables 2016-07-30 19:31:37 +02:00
Twinaphex 7572924abf Buildfix 2016-07-30 19:30:29 +02:00
twinaphex 1e0a4518de (XMB) Add Music/Movie/Images tabs 2016-07-30 19:29:10 +02:00
twinaphex 821aff99df Start adding extra enums 2016-07-30 19:12:56 +02:00
radius fb6f139e3a Merge branch 'master' of github.com:fr500/RetroArch 2016-07-30 11:17:34 -05:00
radius 0536906e63 add setting for auto shader presets 2016-07-30 11:16:42 -05:00
radius 0b395a5505 add message to save as option too 2016-07-30 11:16:42 -05:00
radius 9fdaa8b98b fix messages 2016-07-30 11:16:42 -05:00
radius a464d3672a Add options to save per-core/game shaders 2016-07-30 11:16:42 -05:00
twinaphex e477555991 Get rid of hacky per-core config - this and config overrides
was mutually exclusive, so time to cut the fat
2016-07-30 16:49:04 +02:00
twinaphex 06814f44d4 Always set core path like this 2016-07-30 16:32:34 +02:00
twinaphex 9780d68d8a (PS3) Separate dir for core info files 2016-07-30 14:59:24 +02:00
twinaphex 4f8d305235 (PS3) Implement frontend_ps3_process_args 2016-07-30 12:49:08 +02:00
twinaphex 70388e66d6 Hide Logging Settings and Core Settings when 'Show Advanced Settings'
is disabled
2016-07-30 12:43:03 +02:00
twinaphex a3c7fb5fbf Take out HAVE_COMPRESSION - gets defined by Griffin 2016-07-30 11:40:05 +02:00
twinaphex a8eefa2057 Add HAVE_COMPRESSION for Griffin Makefile targets 2016-07-30 11:32:26 +02:00
twinaphex 3efdfb8ba7 Add help message for FILE_TYPE_DIRECTORY 2016-07-30 01:36:09 +02:00
twinaphex ac9b3194a5 Create config_get_active_core_path_ptr 2016-07-29 22:52:37 +02:00
Twinaphex 410d97dfb0 Remove unused variable 2016-07-29 01:41:22 +02:00
twinaphex ccfd9a8937 (video processor) Update 2016-07-29 00:27:36 +02:00
twinaphex 2e52141b39 (libretro-video-processor) Updates 2016-07-28 23:37:54 +02:00
twinaphex d368919ff3 Add config.h 2016-07-28 23:15:46 +02:00
twinaphex b4e0f9d1c6 Update video_processor_v4l2 2016-07-28 23:13:43 +02:00
twinaphex c8f8917d0a N/A - Nits 2016-07-28 21:59:18 +02:00
twinaphex 191c2ec1fd Cleanup 2016-07-28 20:42:45 +02:00
twinaphex a625bf51ef Set core type to CORE_TYPE_VIDEO_PROCESSOR 2016-07-28 20:41:51 +02:00
twinaphex c578bc53ee (Video processor) Change core option names 2016-07-28 20:38:04 +02:00
twinaphex 4f617071db Add Start Video Processor menu entry 2016-07-28 20:35:05 +02:00
twinaphex 6742e135c9 Create HAVE_VIDEO_PROCESSOR ifdef 2016-07-28 20:01:38 +02:00
twinaphex be1eacac86 Add to Griffin as well 2016-07-28 19:11:18 +02:00
twinaphex afee38109d Start integrating video processor code 2016-07-28 19:10:18 +02:00
twinaphex 31143e5f5e Add libretro-v4l2 and rename it libretro-video-processor 2016-07-28 18:33:24 +02:00
Andrés c5ee5caf8a fix missing parenthesis 2016-07-28 00:05:57 -05:00
Andrés 6c14477bce Fix remote server in windows 2016-07-27 23:31:52 -05:00
radius feda665f97 add message to save as option too 2016-07-27 18:31:49 -05:00
radius e779a3bd1b fix messages 2016-07-27 18:16:15 -05:00
radius 3f0223e311 Add options to save per-core/game shaders 2016-07-27 18:16:15 -05:00
twinaphex fa0932e20e Add undo load state/save state 2016-07-27 23:36:26 +02:00
twinaphex af3b8e6241 Add help messages 2016-07-27 21:50:36 +02:00
twinaphex 56a7cad203 Add help message 2016-07-27 21:42:30 +02:00
twinaphex 746c6c85c2 More help messages 2016-07-27 21:35:22 +02:00
twinaphex b9aa9a6b1e Fix namespace conflicts 2016-07-27 21:28:33 +02:00
twinaphex cca2724f52 Add help messages 2016-07-27 21:01:39 +02:00
twinaphex 67e4514e9d add help messages 2016-07-27 20:47:54 +02:00
twinaphex 95cfa33629 Add more help messages 2016-07-27 16:49:13 +02:00
twinaphex 02dcbce602 Add more help messages 2016-07-27 16:37:28 +02:00
Twinaphex 8db505536c Merge pull request #3278 from sronsse/fixes_for_team
net retropad core: Fix R3 button display
2016-07-27 15:55:21 +02:00
Sebastien Ronsse bdbebedd12 net retropad core: Fix R3 button display 2016-07-27 23:53:38 +10:00
twinaphex 389f6579d9 Revert "RetroPad core - R3 key didn't work before"
This reverts commit a483f276e4.
2016-07-27 13:23:16 +02:00
twinaphex a483f276e4 RetroPad core - R3 key didn't work before 2016-07-27 12:25:58 +02:00
Twinaphex 3b4ff208d4 Merge pull request #3277 from sronsse/fixes_for_team
Add analog device to Net RetroPad
2016-07-27 12:22:47 +02:00
Sebastien Ronsse 2a2b18b507 input remote: Add analog device parsing 2016-07-27 20:15:49 +10:00
Sebastien Ronsse a778d878ff net retropad core: Add analog device processing 2016-07-27 20:15:49 +10:00
Twinaphex 0d7571a43d Merge pull request #3276 from sronsse/fixes_for_team
Net RetroPad core updates
2016-07-27 11:19:57 +02:00
Sebastien Ronsse 46284b6a93 input remote: Update server-side input processing 2016-07-27 18:39:37 +10:00
Sebastien Ronsse a8ff6150f9 net retropad core: Update data processing to be more generic 2016-07-27 17:42:55 +10:00
Twinaphex fcbfaec281 Merge pull request #3272 from lakkatv/master
(GLUI) Messages
2016-07-26 21:40:56 +02:00
Jean-André Santoni 53689babb3 (GLUI) Display a rectangle behind the info messages 2016-07-26 21:36:41 +02:00
Jean-André Santoni 34c0b6a29c (GLUI) Fix help messages vertical centering 2016-07-26 21:12:34 +02:00
Jean-André Santoni 68fd31a0f7 (GLUI) Align help messages to the left, in a centered box 2016-07-26 21:10:43 +02:00
twinaphex 8cd59822e8 Start adding fallback help messages for file types 2016-07-26 15:12:20 +02:00
twinaphex e9b3b9c30b Use config_get_active_core_path_size 2016-07-26 14:32:18 +02:00
twinaphex 628367d201 Create config_get_active_core_path_size 2016-07-26 14:29:53 +02:00
twinaphex 3da2b1b0b0 Get rid of one HAVE_COMPRESSION ifdef 2016-07-26 14:27:54 +02:00
twinaphex 9d20513050 Add more help messages 2016-07-26 14:20:37 +02:00
twinaphex 001d0a1d62 Fix 'Load Core' again 2016-07-26 12:08:04 +02:00
twinaphex d47d62f737 Don't show Restart RetroArch on PS3 right now 2016-07-26 11:25:04 +02:00
twinaphex 1f4ba75e9b Add Help message for 'Load dummy core on shutdown' 2016-07-26 11:09:25 +02:00
twinaphex 21714726d6 Correct text 2016-07-26 10:59:30 +02:00
twinaphex afa9e17c59 Turn per-core configs off for PS3 right now 2016-07-26 10:51:30 +02:00
twinaphex 6d1f35d579 Cannot edit these entries yet, so just hide them for now 2016-07-26 10:37:35 +02:00
twinaphex 8b364bc611 Add help message for 'Parent directory' 2016-07-26 10:35:53 +02:00
twinaphex df4cea8257 Add help messages for general images 2016-07-26 10:24:20 +02:00
twinaphex 0b497837fb Add more help messages for music/movie files 2016-07-26 10:16:53 +02:00
twinaphex 821d51f2f5 Add help message for directories 2016-07-26 09:58:08 +02:00
twinaphex 1113a6de46 parse_generic - Gpo through variable 2016-07-26 09:54:16 +02:00
twinaphex 246855ff97 Add MENU_ENUM_LABEL_FILE_BROWSER_SELECT_CORE_FROM_COLLECTION 2016-07-26 09:28:06 +02:00
twinaphex f360084790 Add help message for libretro cores 2016-07-26 09:21:07 +02:00
twinaphex 6a4665937b restore this 2016-07-26 09:15:20 +02:00
twinaphex 35471433fd Dehardcode MSG_UNKNOWN usage 2016-07-26 08:36:07 +02:00
twinaphex 9092d92a66 Start adding new enums 2016-07-26 08:14:44 +02:00
Twinaphex 9f4c7c6f82 Merge pull request #3270 from netux79/master
(GX) Fix long lasting bug that prevented PCE CD and SEGA CD games to …
2016-07-26 04:54:53 +02:00
Ernesto Ramirez 5b17cbcb2a (GX) Fix long lasting bug that prevented PCE CD and SEGA CD games to run on Wii. 2016-07-25 20:27:08 -05:00
twinaphex 12ad4e67dd Revert "Add enum_idx for most remaining settings"
This reverts commit e82a129fef.
2016-07-25 19:09:17 +02:00
twinaphex 0387349e40 Revert "Use enums for as many settings entries as possible"
This reverts commit 7baada45b0.
2016-07-25 19:09:10 +02:00
twinaphex d7ec944adc Revert "Help entry should respond now for compressed archives inside"
This reverts commit b12f81c0a0.
2016-07-25 19:09:03 +02:00
twinaphex b12f81c0a0 Help entry should respond now for compressed archives inside
filebrowser
2016-07-25 18:24:23 +02:00
twinaphex 7baada45b0 Use enums for as many settings entries as possible 2016-07-25 18:15:36 +02:00
twinaphex e82a129fef Add enum_idx for most remaining settings 2016-07-25 18:02:03 +02:00
twinaphex cd2d5f75bb Comment out log 2016-07-25 17:23:50 +02:00
twinaphex 31bcb3d6f8 (MaterialUI) Try to default to Shield color theme for Shields 2016-07-25 14:27:51 +02:00
twinaphex 58c425ef19 Revert "Refactor settings"
This reverts commit afcc9657d2.
2016-07-25 12:30:41 +02:00
twinaphex afcc9657d2 Refactor settings 2016-07-25 11:59:38 +02:00
twinaphex 1b057a0c71 Move structs to configuration.h 2016-07-25 11:23:40 +02:00
twinaphex c87cb567d7 Rename value_ptr to ptr 2016-07-25 11:08:23 +02:00
twinaphex ca3a6e44d2 Get rid of hashes 2016-07-25 09:31:03 +02:00
twinaphex 662cc65797 Add more help messages 2016-07-25 09:05:56 +02:00
twinaphex a943a200d6 Add comments 2016-07-25 08:06:04 +02:00
twinaphex cc03d75733 Rearrange settings 2016-07-25 08:01:57 +02:00
radius 6db150e312 windows configure script fix 2016-07-25 00:55:11 -05:00
twinaphex 568021192c Fix cheevos boolean settings not being read 2016-07-25 07:54:31 +02:00
twinaphex 5ee8e25d70 Cleanups 2016-07-25 07:33:41 +02:00
Twinaphex f1c9ed29b3 Cleanup some unused memory writes 2016-07-25 06:49:30 +02:00
twinaphex f1b84b7f99 Start using core path wrapper functions 2016-07-25 06:47:15 +02:00
twinaphex 93e7039f71 Save more settings 2016-07-25 06:38:41 +02:00
twinaphex 1c2d4bc632 Add help messages for hotkeys - not finished yet 2016-07-25 06:18:23 +02:00
twinaphex 5251a83b7e Add help messages 2016-07-25 05:33:50 +02:00
twinaphex 7a2baf553f Add more help messages 2016-07-25 05:09:44 +02:00
twinaphex cacf756748 cheevos_enable should be saved now 2016-07-25 04:52:17 +02:00
twinaphex ea1ace36c4 Add help messages 2016-07-25 04:51:47 +02:00
twinaphex f841c139d8 Indent messages 2016-07-25 02:55:24 +02:00
twinaphex 15d4a89003 Add default message for resampler 2016-07-25 02:20:20 +02:00
twinaphex 4587282781 Prevent collissions 2016-07-24 23:58:06 +02:00
twinaphex 5a48d892ca Show RetroPad core again 2016-07-24 23:55:43 +02:00
twinaphex 5c453c4454 (Net RetroPad) Cleanups 2016-07-24 23:48:39 +02:00
twinaphex d8d54a15d4 Add L2 / R2 2016-07-24 23:48:06 +02:00
Twinaphex 675ee47c85 Merge pull request #3266 from leiradel/remotepad
added a retropad image showing the button status
2016-07-24 23:36:43 +02:00
Andre Leiradella ea6b65a7d6 fixed line ending 2016-07-24 20:45:23 +01:00
Andre Leiradella 31b5e9eb4d added a retropad image showing the button status 2016-07-24 20:39:17 +01:00
twinaphex c016d6a36a Add help messages 2016-07-24 17:37:12 +02:00
twinaphex 2513ce8c00 Add help messages 2016-07-24 17:33:49 +02:00
twinaphex 569c5b778e Remove hashes 2016-07-24 13:45:33 +02:00
twinaphex cbeeda2cb2 Remove hashes 2016-07-24 13:41:35 +02:00
twinaphex 070073f2bb Buildfix 2016-07-24 13:17:10 +02:00
twinaphex f599ade44d Prevent warnings 2016-07-24 13:16:12 +02:00
twinaphex bbfb8a3f31 Remove unused variables 2016-07-24 13:14:07 +02:00
twinaphex bed667c461 Remove hashes 2016-07-24 13:13:11 +02:00
twinaphex bbbd56c40a Remove hashes 2016-07-24 13:11:57 +02:00
twinaphex 9d86ec801b Remove hashes 2016-07-24 13:10:28 +02:00
twinaphex fadc244505 Remove hashes 2016-07-24 13:06:00 +02:00
twinaphex 8a9b5a6dac Remove more hashes 2016-07-24 13:00:39 +02:00
twinaphex 0e2b69595a Remove hashes 2016-07-24 12:58:24 +02:00
twinaphex 1927bcc35a Get rid of more hashes 2016-07-24 12:55:50 +02:00
twinaphex 55929e6665 Get rid of hashes 2016-07-24 12:51:17 +02:00
twinaphex e8dad34210 Get rid of a whole bunch of hashes 2016-07-24 12:50:45 +02:00
twinaphex 13deab48d9 Get rid of menu_hash_get_help hashing versions 2016-07-24 12:47:58 +02:00
twinaphex 5fe397b48e Start moving help messages over to enum 2016-07-24 12:36:02 +02:00
twinaphex 64897a9228 Take out another hash label 2016-07-24 12:14:06 +02:00
twinaphex 427df55913 Get rid of WELCOME_TO_RETROARCH label 2016-07-24 12:00:53 +02:00
twinaphex ea809e0710 Add translated versions of menu_hash_get_help_pt_enum 2016-07-24 11:59:24 +02:00
twinaphex 8464156667 Remove excessive comments 2016-07-24 11:50:09 +02:00
twinaphex f2fb8ec0f0 Create menu_hash_get_help_nl_enum 2016-07-24 11:48:19 +02:00
twinaphex 84291d2d3d Create menu_hash_get_help_enum 2016-07-24 11:43:40 +02:00
twinaphex a532bc2b0e (PS3 Salamander) Silence unused variable warning 2016-07-24 11:33:44 +02:00
twinaphex bd88b9d1d2 (Wii) Fix warnings / unused variables 2016-07-24 11:32:45 +02:00
twinaphex 16908435bb Create config_active_core_path_is_empty 2016-07-24 11:27:44 +02:00
twinaphex 2be127c04a Start wrapping settings->path.libretro 2016-07-24 11:12:26 +02:00
twinaphex 0a959ab047 (configuration.c) Rearrange 2016-07-24 10:49:38 +02:00
twinaphex ab1292ddda Create LUT table for float settings 2016-07-24 10:42:49 +02:00
twinaphex d08901c6ac Move more int settings to LUT table 2016-07-24 10:28:56 +02:00
twinaphex 6f923ab0ef Only show Hard GPU Sync when GL driver is selected 2016-07-24 09:57:37 +02:00
twinaphex ed1d86205d Cleanup 2016-07-24 09:45:11 +02:00
twinaphex efc52c3f74 Add int settings LUT table 2016-07-24 09:43:16 +02:00
twinaphex 1585e01e5c Fix CXX_BUILD warnings 2016-07-24 09:24:09 +02:00
Twinaphex 5673468bb3 Get rid of unused variable 2016-07-24 09:18:51 +02:00
twinaphex 99572a9f92 Cleanups 2016-07-24 09:18:08 +02:00
twinaphex fb2f08ffc5 Move more entries up 2016-07-24 09:12:23 +02:00
twinaphex 832b643983 Move CONFIG_GET_INT_BASE entries up 2016-07-24 09:10:10 +02:00
twinaphex 3e4ffb1db4 Cleanups 2016-07-24 08:54:38 +02:00
twinaphex d8afdef463 Reorganize config_load_file 2016-07-24 08:52:03 +02:00
twinaphex 150d905b57 Start creating LUt tables for config loading too 2016-07-24 07:47:40 +02:00
twinaphex f975938394 Create LUT table for path settings 2016-07-24 07:14:24 +02:00
twinaphex aa32b71c9c Fix earlier regression with float settings LUT and create string
settings LUT
2016-07-24 06:07:24 +02:00
twinaphex 0b4ca23f43 Rearrange config_set_string/config_set_path - create
float setting LUT
2016-07-24 05:57:20 +02:00
twinaphex 61f2777ef6 Create float settings LUT table 2016-07-24 05:50:36 +02:00
twinaphex 7f01ec9b79 Add more int settings 2016-07-24 05:08:04 +02:00
twinaphex 6e9d8d369f Create settings int LUT table 2016-07-24 05:01:11 +02:00
twinaphex 43d483b14e Add more bool settings to settings LUT 2016-07-24 04:37:46 +02:00
twinaphex 5900bbf5a4 Add more boolean settings 2016-07-24 02:18:57 +02:00
twinaphex 7947fa9152 Start adding boolean settings for saving to the array 2016-07-24 02:15:07 +02:00
Twinaphex 580c4a5b28 Merge pull request #3265 from Themaister/master
Vulkan: Implement swap_interval > 1.
2016-07-24 00:41:08 +02:00
Hans-Kristian Arntzen f54b0c0ff0 Vulkan: Implement swap_interval > 1.
We have to fake it by duping since Vulkan has no native support for
this.
2016-07-24 00:34:48 +02:00
Twinaphex bcd73b4a79 Merge pull request #3264 from Themaister/master
Vulkan: Implement BFI.
2016-07-24 00:12:26 +02:00
Hans-Kristian Arntzen 8c1b935969 Vulkan: Implement BFI. 2016-07-24 00:07:32 +02:00
Twinaphex 29314d476f Merge pull request #3263 from Themaister/master
Vulkan: Fix various bugs with slang implementation.
2016-07-23 23:58:54 +02:00
Hans-Kristian Arntzen e35191765c Vulkan: Fix PassOutput.
Oddly enough it worked during testing, but turns out it was never set
:')
2016-07-23 23:39:57 +02:00
Hans-Kristian Arntzen 4b7cadbae7 Vulkan: Fix silly bug with alias handling. 2016-07-23 23:23:22 +02:00
Twinaphex 36f9d3c66b Merge pull request #3262 from Themaister/master
Vulkan: Fix wrong error handling for missing file.
2016-07-23 23:01:27 +02:00
Hans-Kristian Arntzen 2174f7d99b Vulkan: Fix wrong error handling for missing file.
Apparently 0/1 is returned instead of 0/-1.
2016-07-23 21:59:17 +02:00
twinaphex 31a88f70e7 Start refactoring some settings 2016-07-23 14:59:07 +02:00
twinaphex 066832c8a2 Cleanups / start going through config_get_active_core_path 2016-07-23 14:37:20 +02:00
twinaphex a6aa0b8e0c Cleanups 2016-07-23 14:29:57 +02:00
twinaphex ee87ef0ae9 Turn path_core_specific_config into static variable 2016-07-23 14:27:17 +02:00
twinaphex 3fd8d0e1d2 Start using config_get_active_path 2016-07-23 14:22:04 +02:00
twinaphex 0c17c08bee Cleanup 2016-07-23 14:18:42 +02:00
twinaphex 6ffa5ab6b2 Create config_get_active_path 2016-07-23 14:18:17 +02:00
twinaphex 8f720541c9 Use fill_pathname_join_delim 2016-07-23 14:02:23 +02:00
twinaphex 61fe38bf6d Add log message 2016-07-23 13:04:07 +02:00
Twinaphex 60a4bbabc3 Merge pull request #3260 from Ezio-PS/master
Add compression for dex ps3 build
2016-07-23 12:25:32 +02:00
Ezio-PS e6bee8b591 Add compression for dex ps3 build 2016-07-23 12:05:02 +02:00
twinaphex 3a10dff94f task_image.c - go through file_path_str 2016-07-23 11:28:24 +02:00
twinaphex 0506684e9f Cleanup 2016-07-23 11:22:13 +02:00
twinaphex 3f74927225 Build up supported shader passes/presets dynamically 2016-07-23 11:16:07 +02:00
twinaphex 64d8689a57 Build up image extensions dynamically 2016-07-23 11:13:05 +02:00
twinaphex 7bfa254c67 Improve black square bug commit 2016-07-23 09:55:02 +02:00
twinaphex 3945b79161 This should hide the 'black square' bug 2016-07-23 09:48:29 +02:00
twinaphex 7ef4f5a717 Cleanup 2016-07-23 08:53:19 +02:00
twinaphex 1633cd8701 Save libretro_path for non-HAVE_DYNAMIC 2016-07-23 08:06:49 +02:00
twinaphex 282dbf0b38 (PS3) Should get playlist entries working again - now we need to
propagate the core path to the playlist correctly
2016-07-23 07:47:05 +02:00
twinaphex aae99faf12 (Non-HAVE_DYNAMIC) should correctly call retro_unload_game and
core_deinit now when we select 'Close Content'
2016-07-23 07:13:21 +02:00
twinaphex 3669d44de9 Create core_uninit_symbols function 2016-07-23 07:06:32 +02:00
twinaphex d98fad0d98 Simplify free_drm_resources 2016-07-23 06:05:21 +02:00
twinaphex 8abb90ccf1 (ffmpeg_core) Try to avoid data race condition errors in Coverity 2016-07-23 06:01:37 +02:00
twinaphex 7dfca3208c We shouldn't flush 2016-07-23 05:52:24 +02:00
twinaphex d4a3d90fff (xmb.c) use fill_pathname_join_delim 2016-07-23 04:36:22 +02:00
twinaphex 55a9ad68a3 Start using fill_pathname_join_delim 2016-07-23 04:30:35 +02:00
Twinaphex af9b9411d2 Merge pull request #3258 from sronsse/fixes_for_team
task content: Display OSD loading message prior to loading content
2016-07-23 03:17:15 +02:00
twinaphex cb563a9256 (configuration.c) Use string_is_empty 2016-07-23 03:13:24 +02:00
Sebastien Ronsse 2f23781cfd task content: Display OSD loading message prior to loading content 2016-07-23 11:12:06 +10:00
twinaphex 2a883caf17 Buildfix 2016-07-23 02:53:48 +02:00
twinaphex 1ebeeeb725 (PS3) Playlists and history lists should save now again;
(HAVE_DYNAMIC not defined) libretro_path should get read from config file
to prevent instance where settings->path.libretro is empty, which lead to
history not being able to be pushed to
(History/Playlists) If we don't have core info files and core_name
is therefore blank, we should attempt
a fallback path so that it infers the name from the core basename instead
2016-07-23 00:15:37 +02:00
twinaphex c83c34f30a Show 'no history available' when no playlist entries can be shown 2016-07-22 21:30:17 +02:00
twinaphex 6d64cc00ec Playlist horizontal tab - show 'no entries to display' if history list
is disabled
2016-07-22 21:00:40 +02:00
twinaphex 22e35c553b (PS3) Fixes issues where content would sometimes not be able to
be loaded for some sporadic reason
2016-07-22 10:41:56 +02:00
twinaphex 6918a4d48e Add some more logging to playlist.c 2016-07-22 10:15:33 +02:00
twinaphex 832ea8c3d9 C89_BUILD fix 2016-07-21 21:57:07 +02:00
twinaphex 4e68bc0b53 CXX_BUILD fix 2016-07-21 21:54:43 +02:00
twinaphex cf3c8ede98 Don't include Zarch menu unless we explictly enable it 2016-07-21 21:51:50 +02:00
twinaphex 29a364db3a Add enums to some input settings 2016-07-21 21:37:52 +02:00
twinaphex e8543ab7b8 Add some enums 2016-07-21 21:35:50 +02:00
twinaphex 5776a3d8df Add resolution core option for Vulkan test core 2016-07-21 19:41:54 +02:00
twinaphex 7751c83e53 (Vulkan test cores) Use retro_miscellaneous.h 2016-07-21 19:33:21 +02:00
Twinaphex f22d9dfb10 Merge pull request #3252 from sronsse/fixes_for_team
command: Remove core deinitialization on close for non-dynamic targets
2016-07-21 19:00:44 +02:00
Sebastien Ronsse f65eaf1de9 command: Remove core deinitialization on close for non-dynamic targets 2016-07-21 20:16:14 +10:00
twinaphex 1c40598da4 Add HAVE_BUILTINZLIB - can now add baked-in zlib 2016-07-21 09:15:51 +02:00
twinaphex d7214b4a30 Silence warning 2016-07-21 08:52:24 +02:00
twinaphex eec47f71d8 Add HAVE_LIBRETRODB for PS3 2016-07-21 08:51:36 +02:00
twinaphex 5d154dac8e (JNI) Add JNI files for async compute test core 2016-07-21 08:01:50 +02:00
twinaphex 4dddcb2969 (Vulkan) Add JNI files for libretro-test-vulkan 2016-07-21 08:00:29 +02:00
twinaphex ccd41e2a94 More hashes removals 2016-07-21 05:43:19 +02:00
Twinaphex a2d277dcd2 Merge pull request #3250 from sergiobenrocha2/master
Fix some pendantic lintian warnings
2016-07-21 04:46:35 +02:00
sergiobenrocha2 c502fc5d03 Fix some spelling errors. 2016-07-20 23:32:26 -03:00
sergiobenrocha2 7ba35a9929 Fix some spelling errors (pendantic info lintian warnings). 2016-07-20 23:28:29 -03:00
sergiobenrocha2 69738f2b84 Add CPPFLAGS to Makefiles, fix hardening-no-fortify-functions. 2016-07-20 23:27:26 -03:00
twinaphex 6e5738f8b0 Create menu_display_reset_textures_list 2016-07-21 03:00:14 +02:00
Alcaro 5545020695 fPIC goes in compiler, not linker. 2016-07-20 10:28:42 +02:00
twinaphex 264f03d4f2 Cleanup 2016-07-20 02:58:26 +02:00
twinaphex 84af36c8e9 Fix this 2016-07-20 02:57:25 +02:00
twinaphex 08c57063fd Attempt to raise priority of SET_MESSAGE message when placed
on the message queue
2016-07-19 19:05:44 +02:00
twinaphex e93e3626dd (task_content.c) Messages should be flushed before putting on queue 2016-07-19 18:36:50 +02:00
twinaphex f7c57d7ae1 Hotkey messages should have precedence over FPS display 2016-07-19 18:34:17 +02:00
twinaphex e69855880d Autoconfig message should always appear on top of FPS display 2016-07-19 18:32:54 +02:00
twinaphex adace9f27b Make some messages no longer get stuck 2016-07-19 18:25:08 +02:00
twinaphex 7f9168ff18 Cleanups 2016-07-19 06:33:56 +02:00
Twinaphex 7b9cef731d Merge pull request #3243 from sronsse/fixes_for_team
retroarch: Refactor retroarch_main_init core initialization failure handling
2016-07-19 06:31:27 +02:00
Sebastien Ronsse 21a82e3622 retroarch: Refactor retroarch_main_init core initialization failure handling 2016-07-19 14:27:46 +10:00
twinaphex 88c767fee9 When a core returns false in retro_load_game, it should still
let us stay inside the menu
2016-07-19 06:20:19 +02:00
twinaphex 5678d4fd34 Add onscreen message when this happens 2016-07-19 06:16:58 +02:00
twinaphex 397f82c9f5 Get rid of configuration.h dependency in list_special.c 2016-07-18 07:15:58 +02:00
twinaphex 8345ad2aba Cleanups 2016-07-18 07:11:08 +02:00
twinaphex 182ee094c7 Rewrite this to make it a bit more cleaner - using string_list 2016-07-18 07:05:47 +02:00
radius bd3f6d6dfb fix disk next/prev hotkeys 2016-07-17 23:47:44 -05:00
radius c38adcabd3 fix shader next/prev 2016-07-17 23:47:43 -05:00
radius 7a433a60a6 "fix cheevos status" 2016-07-17 09:45:49 -05:00
twinaphex 5d06f654da Rearrange this 2016-07-17 15:59:38 +02:00
twinaphex c560f1c71b Use return value of image_texture_load 2016-07-17 15:58:14 +02:00
Twinaphex cbc06e152d Merge pull request #3227 from alex34567/master
Fix vulkan xmb bug.
2016-07-17 15:56:49 +02:00
Twinaphex 13839e690d Merge pull request #3230 from Brunnis/master
Fix bug in calculation of blocksize for savestates
2016-07-17 15:55:10 +02:00
Mikael Brunnhede 7191465dcb Fix bug in calculation of blocksize for savestates. 2016-07-17 12:15:44 +02:00
Alex Eckhart ea3b79cb4a Fix vulkan xmb bug. 2016-07-16 20:32:00 -06:00
twinaphex b4c1927e27 (MSVC 2003) Buildfixes 2006-05-18 13:31:43 +02:00
twinaphex acc0856a69 (MSVC 2003) Buildfix 2006-05-18 13:17:58 +02:00
twinaphex b087a7441a Fix game focus toggle 2016-12-11 03:52:08 +01:00
twinaphex d9eed42ba3 (msg_hash_it.c) Cleanups 2016-12-11 02:41:06 +01:00
twinaphex 78cf06adcf (intl) Updates 2016-12-11 01:40:25 +01:00
twinaphex 9957099bf0 Add 'unified menu controls' setting 2016-12-11 01:29:53 +01:00
Twinaphex 3188c3c57b Merge pull request #4214 from lasers/add-ui
Add sublabel for Playlists (enable,history_size)
2016-12-10 23:40:54 +01:00
lasers 476ce38e3b Add sublabel for Playlists (enable,history_size) 2016-12-10 16:38:33 -06:00
Twinaphex 57bbecdc40 Merge pull request #4213 from lasers/add-ui
Add sublabel for UserInterface (pause_nonactive,composition)
2016-12-10 23:09:22 +01:00
lasers f93c00630e Add sublabel for UserInterface (pause_nonactive,composition) 2016-12-10 15:52:56 -06:00
twinaphex e2c4c25bf5 Add more MSVC 2003 compatibility ifdefs 2006-05-14 14:33:10 +02:00
twinaphex 6b779dab4f (MSVC 2003) XInput likely not to work 2016-12-07 07:16:58 +01:00
twinaphex 7327e98c8a Add HAVE_XINPUT ifdef 2016-12-07 07:08:27 +01:00
twinaphex bcfb80072c (XDK) Remove this - would have to be reimplemented 2016-12-07 07:02:41 +01:00
twinaphex 700365c433 (XDK) Another buildfix 2006-05-14 14:08:32 +02:00
twinaphex 0b0a5b7890 Add HAVE_D3D9 ifdef 2016-12-07 06:59:46 +01:00
twinaphex de94f77629 (XDK) Buildfixes 2006-05-14 14:02:54 +02:00
twinaphex 2b262c6b32 (render_chain_xdk.cpp) Add d3d.h include 2016-12-07 06:48:04 +01:00
twinaphex ec676e3e62 Add header include 2016-12-07 06:46:15 +01:00
twinaphex ccacfcda60 (render_chain_xdk.cpp) Add header include 2016-12-07 06:34:22 +01:00
twinaphex e0c3626791 Turn this into _XBOX360 ifdef 2016-12-07 06:32:05 +01:00
twinaphex 28fa2a240a (XDK) Buildfixes 2006-05-14 13:36:54 +02:00
twinaphex adb39cc844 Turn last param of d3d_set_texture into void * 2016-12-07 06:26:24 +01:00
twinaphex 53ca2f0a53 Add runloop.h include 2016-12-07 06:22:57 +01:00
twinaphex 43a1d528a6 Buildfix 2016-12-07 06:21:21 +01:00
twinaphex 032c414ac7 (platform_xdk) Add file_path_special.h 2016-12-07 06:20:40 +01:00
twinaphex 2a76acaf29 (platform_xdk.cpp) Add compat/strl.h header include 2016-12-07 06:19:05 +01:00
twinaphex 018a3328f5 (platform_xdk.cpp) Add verbosity.h header include 2016-12-07 06:18:06 +01:00
twinaphex d04309fc05 Buildfix 2016-12-07 06:16:12 +01:00
twinaphex 31a7f64f2c Cleanups 2016-12-07 05:41:08 +01:00
twinaphex f6dcfd21cf (MSVC) MSVC build fixes 2016-12-07 05:39:27 +01:00
twinaphex 3cd682c649 Update SPIRV-Cross 2016-12-07 03:18:17 +01:00
twinaphex e3620278a8 Add HAVE_MENU ifdefs for menu code 2016-12-07 03:16:34 +01:00
twinaphex 80a6013e7b Add default values for check_frames/delay_frames 2016-12-07 03:08:59 +01:00
Brad Parker 32a3026654 enable standard derivatives extension for GLES, adds support for complex XMB ribbon 2016-12-06 21:04:12 -05:00
Brad Parker 12294c96aa check for high precision floats on GLES, then enable if supported 2016-12-06 21:04:12 -05:00
Brad Parker f90ab6e189 default to highp precision for GLES 2016-12-06 21:04:12 -05:00
twinaphex 001738d326 (netplay) Set netplay port value to RARCH_DEFAULT_PORT by default 2016-12-06 22:20:20 +01:00
twinaphex 4b1c24adf9 - Move input flushing hack to input_keys_pressed functions
- Move menu binding state hack to menu_input_keys_pressed
2016-12-06 20:50:29 +01:00
twinaphex 77df0ef3ae Rebase input_key_pressed/input_menu_keys_pressed 2016-12-06 18:12:35 +01:00
twinaphex 44324ec62f (runloop.c) Cleanups 2016-12-06 18:05:59 +01:00
twinaphex 7a7a4f1632 (D3D) Buildfix 2016-12-06 17:44:38 +01:00
twinaphex b3aef50dff Move update_firmware_status to tasks/task_content.c 2016-12-06 08:28:26 +01:00
twinaphex a4e1be2cdb Simplify runloop_iterate 2016-12-06 08:22:52 +01:00
Twinaphex 3a399340e3 Merge pull request #4169 from AdrianoML/kbmquake
Changes to make keyboard and mouse games more playable
2016-12-06 07:21:20 +01:00
Adriano Moura 6694ae3c56 Removed a nasty debug message... 2016-12-06 04:19:20 -02:00
twinaphex cc70847aa7 (JACK) Minor style nits 2016-12-06 07:14:34 +01:00
twinaphex b92711ddce (XMB) Try to silence Coverity warning 2016-12-06 07:12:28 +01:00
Twinaphex a9ba1eaa02 Merge pull request #4168 from AdrianoML/master
Fixes a bug where jack audio device setting would be clamped down to …
2016-12-06 07:05:23 +01:00
twinaphex 0d1fcbbe1e (task_screenshot.c) Prevent memory leak 2016-12-06 06:56:07 +01:00
twinaphex 1b3b0c26d1 take_screenshot - simplifications 2016-12-06 06:54:30 +01:00
twinaphex 86a222e0e6 Create just one screenshot function 2016-12-06 06:52:57 +01:00
twinaphex fad523ea3e Create runloop_check_cheevos 2016-12-06 06:32:47 +01:00
Adriano Moura 6b99eeaf88 Implements a hotkey for toggling mouse grabbing, hiding and hotkey blocking. Usefull for playing tyrquake with kb/m. 2016-12-06 03:32:28 -02:00
Adriano Moura 21eb2fd71f Just an attempt at trying to fix x11 keyboard events. Allows you to play tyrquake with a kb on linux. 2016-12-06 03:32:10 -02:00
Adriano Moura 4434bd221a Fixes an issue where mouse is only sampled half the time.
Very obvious when aiming with a mouse like in tyrquake.
2016-12-06 03:31:21 -02:00
Brad Parker 94915815ae use task message system 2016-12-06 00:24:45 -05:00
Twinaphex 7d69a635d5 Merge pull request #4167 from meleu/patch-3
cheevos.c: avoid excessive login error information
2016-12-06 06:12:45 +01:00
meleu 7d386836db cheevos.c: avoid excessive login error information
A login error can happen for several reasons. So the message "Please make sure your account information is correct." is a bit excessive. I think "Retro Achievements login error." is enough.
2016-12-06 04:38:12 +00:00
Adriano Moura 4ee1e2bba6 Fixes a bug where jack audio device setting would be clamped down to only one channel. Caused by a misuse of strtok. 2016-12-06 02:32:54 -02:00
twinaphex 0a3bc133dd This can be safely removed 2016-12-06 05:17:00 +01:00
Twinaphex 6f05fe0ff5 Merge pull request #4166 from GregorR/setsockopt-win
Suppress a warning due to weird declarations on Windows
2016-12-06 02:54:14 +01:00
Gregor Richards a70e21f328 Suppress a warning due to weird declarations on Windows. 2016-12-05 20:50:05 -05:00
twinaphex d3db3a7ec4 (Vulkan) Add pipeline simple snow 2016-12-06 00:51:48 +01:00
twinaphex 9f470c53ae Add 'Simple Snow' shader to GLSL backend 2016-12-06 00:48:36 +01:00
twinaphex abaa6eda62 Rename VIDEO_SHADER_MENU_SEC to VIDEO_SHADER_MENU_2 2016-12-06 00:34:38 +01:00
twinaphex 2b07cf0d41 update_firmware_status - Try to prevent Coverity warning 2016-12-05 19:03:06 +01:00
twinaphex a5d3efcf9b (runloop.c) Style nits 2016-12-05 08:21:18 +01:00
twinaphex 46749fad65 Make runloop_iterate_time_to_exit function redundant 2016-12-05 08:16:47 +01:00
twinaphex d3834bb795 Simplify runloop_iterate_time_to_exit 2016-12-05 07:11:38 +01:00
twinaphex c98ef48860 (runloop.c) Get rid of 'default' case for switch 2016-12-05 07:08:34 +01:00
Twinaphex 8e9d1d781f Merge pull request #4161 from GregorR/netplay-checks
Bugfixes
2016-12-05 07:07:19 +01:00
twinaphex 81096a27b9 Fix one Coverity issue 2016-12-05 07:06:32 +01:00
twinaphex cc6b602f6a (runloop.c) runloop_iterate - cleanup 2016-12-05 06:55:09 +01:00
twinaphex 78005f22f6 (runloop.c) Cleanups 2016-12-05 06:51:53 +01:00
Gregor Richards e7f20a3673 Bugfixes
Silence some Coverity warnings (including a real memory leak) and be
more careful about checking IPv6 mode (for backwards compatibility with
systems that don't support IPv6 but may run code compiled to expect IPv6)
2016-12-05 00:45:40 -05:00
twinaphex cd2abc445a Create enums per driver class 2016-12-05 06:37:26 +01:00
twinaphex b7ea2306af Remove unused input_driver_unset_hotkey_block 2016-12-05 05:40:51 +01:00
twinaphex ecbfc7fd8a (input_driver.c) Cleanups 2016-12-05 05:34:38 +01:00
twinaphex 2ba311274e Simplify input_translate_coord_viewport 2016-12-05 05:18:36 +01:00
twinaphex 4d23ba91fc (Android) Buildfix 2016-12-05 04:24:45 +01:00
twinaphex fdac55edf4 Attempt to update this - without success so far 2016-12-05 03:35:09 +01:00
twinaphex b467865c82 Cleanup 2016-12-05 02:31:34 +01:00
twinaphex c76e92622d runloop_data - use recording_data directly 2016-12-05 02:29:37 +01:00
twinaphex 94528ed28d (Drivers) Cleanups/style nits 2016-12-05 02:09:32 +01:00
twinaphex 9e2717e927 Revert "Create drivers_data array and no longer use recording_data"
This reverts commit e049b7e1f0.
2016-12-05 02:02:59 +01:00
twinaphex e049b7e1f0 Create drivers_data array and no longer use recording_data 2016-12-05 01:56:06 +01:00
twinaphex f751199860 Create driver mask enums 2016-12-05 01:47:56 +01:00
twinaphex 6e28aa30bb Simplifications 2016-12-04 22:23:27 +01:00
twinaphex a762dbcdfb Simplify input_poll 2016-12-04 22:22:00 +01:00
twinaphex bbbcc97f57 Simplify input_push_analog_dpad 2016-12-04 22:20:47 +01:00
twinaphex 6cdb823bb4 Turn input_push_analog_dpad into macro 2016-12-04 21:37:47 +01:00
twinaphex 85aa88f665 Simplify input_push_analog_dpad 2016-12-04 21:30:50 +01:00
twinaphex 185925cf3a Update input_pop_analog_pads 2016-12-04 21:08:49 +01:00
twinaphex c19a6dd018 Turn input_pop_analog_dpad into macro 2016-12-04 20:23:52 +01:00
twinaphex 59c317dc1d Pass pointers to input_push_analog_dpad 2016-12-04 20:20:35 +01:00
twinaphex 0fdb8881cb Pass pointer variables to input_pop_analog_dpad 2016-12-04 20:17:55 +01:00
twinaphex 1c21c001c6 Cleanups 2016-12-04 19:52:52 +01:00
Twinaphex ea5b0bd6c9 Merge pull request #4154 from fr500/master
review: make preset loading more robust
2016-12-04 19:40:37 +01:00
twinaphex d0cc1afe0a (tasks) Style nits 2016-12-04 19:12:35 +01:00
Twinaphex 7060a83323 Merge pull request #4159 from GregorR/miniupnpc-2.0-only
Remove support for MiniUPNPC < 2.0
2016-12-04 19:09:15 +01:00
twinaphex 47274607f4 (tasks) * Respect 80-char limit - * Fix leaking of ssid_list in task_wifi.c 2016-12-04 19:08:24 +01:00
Gregor Richards c2c2c57095 Remove support for MiniUPNPC < 2.0 2016-12-04 13:04:30 -05:00
radius ddf10e93f0 remove filestream, use path_file_exists instead 2016-12-04 12:38:46 -05:00
Twinaphex b6d1c62933 Merge pull request #4157 from lasers/clean-up-info2
Improve Core Information
2016-12-04 17:23:57 +01:00
lasers 8f52e5b33c Add (s) for Firmware (Core Information) 2016-12-04 09:01:34 -06:00
lasers c1dc702a99 Merge "Name,Status" (Core Information) 2016-12-04 08:47:45 -06:00
radius c2acadb979 instead of writing absolute paths, try to resolve absolute paths when loading, if not fallback to relative paths 2016-12-04 02:09:19 -05:00
radius 5e1ed323bd make shaders paths absolute for now 2016-12-04 01:12:57 -05:00
twinaphex eea1b3790b Try to prevent superfluous calls to recording functions
if not necessary
2016-12-04 06:31:29 +01:00
twinaphex 1386476792 Cleanups 2016-12-04 05:53:44 +01:00
twinaphex 3dc944977c (task_autodetect.c) Fix memory leak 2016-12-04 05:50:50 +01:00
Twinaphex 451874fdc7 Merge pull request #4128 from lasers/clean-up-info2
Improve Core Information
2016-12-04 05:40:12 +01:00
Twinaphex 61872b8cae Merge pull request #4119 from lasers/fix-info-sublabel
Avoid unpredictable sublabel wrap
2016-12-04 05:37:20 +01:00
twinaphex b5177d807e Style nits 2016-12-04 04:43:53 +01:00
twinaphex 915a420279 (menu_content.c) Cleanups 2016-12-04 04:42:01 +01:00
twinaphex 42ce1de663 (menu_cbs_ok.c) Style nits 2016-12-04 04:38:58 +01:00
twinaphex e2b27f6dc7 (tasks) Cleanups 2016-12-04 04:30:43 +01:00
twinaphex 62ab2fcc9c SPIRV-Cross buildfix 2016-12-04 04:19:13 +01:00
twinaphex 4a49d9969e Use libretro glslang 2016-12-04 04:10:03 +01:00
twinaphex 2c7af649cf (Wayland) Cleanups 2016-12-04 03:54:11 +01:00
twinaphex 49c78ea2ff (Drivers context) Cleanups 2016-12-04 03:51:12 +01:00
twinaphex cd8fad87fc (Mali) Cleanups 2016-12-04 03:48:05 +01:00
twinaphex 4b2a906148 (gfx/common) Cleanups 2016-12-04 03:45:46 +01:00
twinaphex 2f171c4b5d (x11_common.c) Cleanups 2016-12-04 03:39:51 +01:00
Twinaphex 76304fd29d Merge pull request #4151 from GregorR/netplay-no-ipproto-tcp-define
Don't need to explicitly demand IPPROTO_TCP
2016-12-03 23:05:24 +01:00
Gregor Richards 2b437ccb8c Don't need to explicitly demand IPPROTO_TCP (and doing so breaks some
SOCKET_LEGACY builds)
2016-12-03 16:33:48 -05:00
Twinaphex 32423b9e4b Merge pull request #4148 from spec-chum/MSVC
Fix silly typo
2016-12-03 19:50:51 +01:00
Spec-Chum f648b1cfbc Fix silly typo 2016-12-03 18:43:12 +00:00
Twinaphex 91550b6ba3 Merge pull request #4147 from spec-chum/MSVC
Fix MSVC compilation
2016-12-03 19:37:42 +01:00
Spec-Chum 7a6a0ee7af Fix MSVC compilation 2016-12-03 18:24:49 +00:00
Twinaphex 564243ae7b Merge pull request #4146 from Themaister/master
Vulkan: Check for more cases in vulkan_load_texture().
2016-12-03 18:57:56 +01:00
Hans-Kristian Arntzen eb7870db5a Vulkan: Check for more cases in vulkan_load_texture().
*Sigh*
2016-12-03 18:54:34 +01:00
Twinaphex 42886713be Merge pull request #4144 from RobLoach/tooltips
[Emscripten] Add Tooltips to the buttons
2016-12-03 17:53:00 +01:00
Twinaphex 2b66b4c385 Merge pull request #4145 from Themaister/master
Vulkan: Load a dummy texture if needed.
2016-12-03 17:52:42 +01:00
Hans-Kristian Arntzen b96f1fa067 Vulkan: Load a dummy texture if needed. 2016-12-03 17:48:48 +01:00
Rob Loach d386f63525 [Emscripten] Add Tooltips to the buttons 2016-12-03 11:44:26 -05:00
Twinaphex 37d129a13d Merge pull request #4142 from Themaister/master
Correctly check errors if preset cannot be found.
2016-12-03 16:11:11 +01:00
Hans-Kristian Arntzen 53c30cacd5 Correctly check errors if preset cannot be found. 2016-12-03 16:05:04 +01:00
Twinaphex de2a7c2769 Merge pull request #4141 from GregorR/netplay-better-error-messages
Better error messages when the Netplay handshake fails
2016-12-03 16:01:56 +01:00
Gregor Richards f725f38061 Use strlcpy 2016-12-03 09:58:16 -05:00
Gregor Richards 98f0d4d45b Better error messages when the Netplay handshake fails 2016-12-03 09:46:20 -05:00
lasers cd1860563b Remove all Core Notes 2016-12-03 01:24:06 -06:00
lasers 5dd3427937 Add (!) Notes 2016-12-03 01:22:37 -06:00
lasers b9031f47c6 Hide "Core Notes" 2016-12-03 01:22:37 -06:00
twinaphex 0c74d19112 (tasks/task_save) Replace some instances of runloop_msg_queue_push 2016-12-03 06:46:53 +01:00
Brad Parker e39031cbd0 revert rest of unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
twinaphex d36e7700f7 (input_driver.c) Style nits 2016-12-03 06:14:57 +01:00
twinaphex 697760d580 Silence some warnings 2016-12-03 06:09:55 +01:00
Twinaphex 37443eb7e1 Merge pull request #4140 from GregorR/ifdef-networking-discovery
Make sure discovery code is properly ifdef'd for networking-less systems
2016-12-03 06:05:36 +01:00
Gregor Richards 634bdee301 Make sure discovery code is properly ifdef'd for networking-less systems 2016-12-03 00:03:29 -05:00
Twinaphex 999f23424a Merge pull request #4139 from GregorR/netplay-sendto-msvc
sendto fix for MSVC
2016-12-03 05:21:22 +01:00
Gregor Richards 3c7fc73735 sendto fix for MSVC 2016-12-02 23:15:53 -05:00
Twinaphex d71df5c06f Merge pull request #4138 from GregorR/netplay-port-unsigned-short
Be explicit about types
2016-12-03 05:11:02 +01:00
Gregor Richards cc664db231 Be explicit about types. 2016-12-02 23:08:34 -05:00
Twinaphex 4b2a45a276 remove unused variables 2016-12-03 05:07:27 +01:00
Brad Parker b69734ce4a more unicode fixes 2016-12-02 23:01:44 -05:00
Brad Parker d20acaa63d more unicode fixes 2016-12-02 23:00:27 -05:00
Twinaphex e351407f67 Merge pull request #4137 from GregorR/netplay-discovery
Netplay LAN discovery
2016-12-03 04:57:49 +01:00
Gregor Richards 8993003259 C++ fixes 2016-12-02 22:56:37 -05:00
Gregor Richards 6c516f1de4 Griffin-fying Netplay LAN scanning 2016-12-02 22:54:14 -05:00
Gregor Richards c9edc87d4a Add NO_NETPLAY_HOSTS_FOUND to labels as well. 2016-12-02 22:52:19 -05:00
Gregor Richards 1f281beea2 Replace "no networks found" message with "no netplay hosts found" 2016-12-02 22:49:56 -05:00
Gregor Richards b4ec66e34a Move local network scanning out of settings and into Netplay 2016-12-02 22:42:29 -05:00
Gregor Richards 0577749fae Netplay LAN scanning is go! (sort of) 2016-12-02 22:40:26 -05:00
Brad Parker fcf09f10ef more unicode fixes 2016-12-02 22:12:00 -05:00
Gregor Richards 077d5440ee Allow Netplay to receive a struct netplay_host to connect to rather than
using the configured setting
2016-12-02 21:16:15 -05:00
Brad Parker cc7bf6b4fa more unicode fixes 2016-12-02 21:11:55 -05:00
Gregor Richards ba0985de37 Actually report the host port as the Netplay port, not the discovery port 2016-12-02 20:38:55 -05:00
Gregor Richards 3446cf09d6 Actually report discovered hosts back to the caller! 2016-12-02 20:28:22 -05:00
Gregor Richards 4c18cec752 Added Netplay discovery code (not yet in menu) 2016-12-02 19:49:42 -05:00
Gregor Richards addff325d0 Netplay discovery LAN scanning task (incomplete) 2016-12-02 18:56:29 -05:00
Jean-André Santoni 041fb36531 Merge pull request #4135 from GregorR/netplay-nat-traversal-setting
Fix NAT traversal menu setting
2016-12-02 22:39:15 +01:00
Gregor Richards d7dbb6cac0 Fix NAT traversal menu setting. 2016-12-02 16:36:46 -05:00
Brad Parker 826afd137c disable unicode until GL context is fixed 2016-12-02 15:34:15 -05:00
Brad Parker 5be05b3f61 Merge branch 'msvc' 2016-12-02 14:36:48 -05:00
Brad Parker 84b65514f2 ok button input should be unsigned 2016-12-02 14:34:29 -05:00
Brad Parker 3b8a81dd31 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:34:29 -05:00
Brad Parker d891f1c90b remove explicit unicode def/undefs 2016-12-02 14:34:29 -05:00
Brad Parker a109df9271 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:15:39 -05:00
Brad Parker 44b95a1602 revert retroarch.cfg 2016-12-02 14:04:11 -05:00
twinaphex 5547b3fa3e Rename some variables in wgl_ctx.cpp and cahnge prefix 'g_' to 'win32_' 2016-12-02 19:58:55 +01:00
Twinaphex 673c0ab626 Merge pull request #4130 from GregorR/netplay-socket-legacy-may-as-well-be-called-no-sockets
More stripping out of NAT traversal for SOCKET_LEGACY
2016-12-02 19:37:46 +01:00
Gregor Richards a082df0027 More stripping out of NAT traversal for SOCKET_LEGACY 2016-12-02 13:18:35 -05:00
Brad Parker 3846ce1837 build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:54:39 -05:00
Brad Parker f64fb911b8 remove explicit unicode def/undefs 2016-12-02 12:46:32 -05:00
Brad Parker 5bd8c096dc revert retroarch.cfg 2016-12-02 12:18:19 -05:00
Brad Parker 0a0cc6494a build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:15:38 -05:00
twinaphex 8e7d440ed5 (Zarch) Silence Zarch warning 2016-12-02 17:44:35 +01:00
twinaphex d3151927bf (Emscripten) Buildfix 2016-12-02 17:41:44 +01:00
twinaphex a9473a71c5 (menu_shader.c) Cleanups 2016-12-02 17:34:40 +01:00
twinaphex 45407f9b52 (shader_glsl.c) Small cleanups 2016-12-02 16:50:08 +01:00
twinaphex 65ba82ca4b (shader_gl_cg.c) Cleanups 2016-12-02 16:45:58 +01:00
twinaphex 4b9571140f Remove two runloop.h includes 2016-12-02 16:07:33 +01:00
twinaphex 5e10dbf348 Move more runloop.h includes 2016-12-02 16:01:06 +01:00
twinaphex a911c24ba3 Remove runloop.h header includes 2016-12-02 06:26:41 +01:00
twinaphex 642310e08a Remove runloop.h header include from many files 2016-12-02 06:19:27 +01:00
twinaphex 021559a877 Get rid of runloop.h dependencies inside input/ dir 2016-12-02 06:07:45 +01:00
twinaphex dd5736b273 Turn check_input_driver_block_hotkey into macro 2016-12-02 05:26:37 +01:00
Twinaphex f77f3ecec4 Merge pull request #4126 from GregorR/netplay-socket-legacy-is-awful-and-i-hate-it
inet_ntoa missing on Vita
2016-12-02 02:49:34 +01:00
Gregor Richards 5739be5594 SOCKET_LEGACY doesn't even necessarily have inet_ntoa, so oh well, no
host for you
2016-12-01 20:40:16 -05:00
twinaphex f9e72b89e2 (platform_xdk.cpp) Buildfixes 2016-12-02 01:54:28 +01:00
twinaphex 4ee5fcae47 Buildfixes 2016-12-02 01:51:26 +01:00
twinaphex c3ea6d1385 Add HAVE_D3D9 ifdef 2016-12-02 01:46:16 +01:00
twinaphex c8ff6d9030 (menu_event.c) Add FIXME and some cleanups 2016-12-02 01:43:43 +01:00
twinaphex ff2892498e Change flicker_filter_index to unsigned int 2016-12-02 01:16:26 +01:00
twinaphex 3b78c848a2 Another Xbox buildfix 2016-12-02 01:06:53 +01:00
twinaphex 0284853681 (xbox OG) Use flicker_filter_index 2016-12-02 01:04:46 +01:00
twinaphex 2eeb8912e8 (xdk1_xfonts.c) Add header include 2016-12-02 01:03:14 +01:00
twinaphex e5072c8e7f Put this behind #ifndef _XBOX ifdef 2016-12-02 00:59:01 +01:00
twinaphex 70557fdee6 (Wii) Buildfix 2016-12-02 00:24:54 +01:00
Jean-André Santoni 344a7f9c07 Indentation 2016-12-02 00:23:08 +01:00
Jean-André Santoni ac32ce8ad4 Code cleaning + remove useless HAVE_LAKKA ifdefs 2016-12-02 00:20:50 +01:00
Jean-André Santoni b8db914af4 Fix savestate thumbnail path when screenshot dir is set 2016-12-01 23:24:16 +01:00
twinaphex 779b680264 (Android) Buildfix 2016-12-01 23:05:36 +01:00
Twinaphex 4c41c7a3d0 Fix for when a device is not able to be autoconfigured - properly finish
the task then
2016-12-01 23:03:09 +01:00
twinaphex 02c0e8013b C89_BUILD fixes 2016-12-01 22:59:00 +01:00
twinaphex 230d7105fd CXX_BUILD fix 2016-12-01 22:57:43 +01:00
Twinaphex 5e75820880 Remove unused variables 2016-12-01 22:54:34 +01:00
Twinaphex 0d79bc754c (OSX) Buildfix 2016-12-01 22:51:46 +01:00
twinaphex 22e1854b8c Get rid of runloop.h header include 2016-12-01 22:49:16 +01:00
Jean-André Santoni 2cc4bef3aa Do the screenshot in the savestate callback 2016-12-01 22:39:13 +01:00
twinaphex 24a689c274 Cleanup 2016-12-01 22:38:19 +01:00
twinaphex 82bea3ba9f Remove FIXME/TODO 2016-12-01 22:37:27 +01:00
twinaphex 3db866e5dc disconnect action is a task now too 2016-12-01 22:36:38 +01:00
twinaphex 5fdb5b4dcf Updates 2016-12-01 22:24:17 +01:00
twinaphex 4a894afc57 Don't make it a blocking task 2016-12-01 22:19:09 +01:00
twinaphex 6a2df4615b task_autodetect.c- style nits 2016-12-01 22:17:36 +01:00
twinaphex 305b2becbd input_autoconfigure_connect - now a task 2016-12-01 22:16:06 +01:00
Brad Parker 23dd41a3cc missing ../ 2016-12-01 15:40:31 -05:00
Jean-André Santoni cbc6bc942e Merge branch 'master' of https://github.com/libretro/RetroArch 2016-12-01 20:45:23 +01:00
twinaphex 25cc9446e8 Simplify input_autoconfigure_connect 2016-12-01 20:41:41 +01:00
Jean-André Santoni db8f47cb58 Set task_screenshot to non blocking 2016-12-01 20:40:54 +01:00
twinaphex f1dd06db20 (task_autodetect.c) Remove header include 2016-12-01 20:39:42 +01:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00
Jean-André Santoni 41f1063da3 Hide the screenshot message 2016-12-01 20:32:13 +01:00
Jean-André Santoni 2fc592bbe6 Savestate thumbnails reimplementation 2016-12-01 20:31:07 +01:00
Jean-André Santoni d00566b018 Add setting for the savestate thumbnails 2016-12-01 20:31:07 +01:00
Jean-André Santoni a0c5a28602 Fix wrong thumbnail index 2016-12-01 20:31:07 +01:00
Jean-André Santoni d142ccca02 Never add the date in the screenshot filename if it is a savestate thumbnail 2016-12-01 20:31:07 +01:00
Jean-André Santoni 367dcef0b1 Savestate thumbnails 2016-12-01 20:31:07 +01:00
Jean-André Santoni 70053afd03 Revert "Add way to hide message for screenshot tasks"
This reverts commit 0aca3d04c0.
2016-12-01 20:30:54 +01:00
twinaphex 0bd94b9b54 Move extern variable prototype to input_autodetect.c 2016-12-01 20:26:35 +01:00
twinaphex 0aca3d04c0 Add way to hide message for screenshot tasks 2016-12-01 20:22:44 +01:00
Twinaphex 711e4ea634 Merge pull request #4125 from lasers/add-skeleton-info
Update skeleton cfg (swap buttons option)
2016-12-01 20:04:21 +01:00
Twinaphex 87bb9e42d4 Merge pull request #4123 from GregorR/netplay-the-hardest-things-in-computer-science-are-cache-invalidation-and-naming-things
delay_frames naming consistency
2016-12-01 20:04:04 +01:00
lasers ba18428e11 Update skeleton cfg (swap buttons option) 2016-12-01 13:02:03 -06:00
Twinaphex 69c89bf167 Merge pull request #4124 from FIX94/master
(WiiU) lower audio latency
2016-12-01 19:55:47 +01:00
FIX94 2481ff3ad3 (WiiU) lower audio latency 2016-12-01 19:46:33 +01:00
Gregor Richards 22798e26c7 delay_frames naming consistency
Unifying all of the various inconsistent names of delay_frames into a
single name: delay_frames.
2016-12-01 13:34:37 -05:00
twinaphex 76d0380e45 Rename input_autoconfigure_joypad to input_autoconfigure_connect 2016-12-01 18:57:44 +01:00
twinaphex e689d55414 Rename autoconfig functions 2016-12-01 18:52:34 +01:00
twinaphex a692b5953f Put parentheses around conditionals 2016-12-01 18:38:11 +01:00
twinaphex a485f1559d Move static bool variable 2016-12-01 18:36:50 +01:00
twinaphex 71ea15fed2 Use string_is_empty 2016-12-01 18:35:30 +01:00
twinaphex 83c6db746e Add libcaca switch 2016-12-01 18:24:07 +01:00
Brad Parker ba54f20626 initial libcaca video driver 2016-12-01 12:13:45 -05:00
Twinaphex b551da1fda Merge pull request #4120 from GregorR/natt-more-1.9-fixes
Yet another pre-2.0 fix for MiniUPNPC
2016-12-01 17:54:50 +01:00
Twinaphex 7051657191 Merge pull request #4121 from lasers/add-skeleton-info
Update skeleton cfg (core options)
2016-12-01 17:54:44 +01:00
twinaphex debf5e0222 Rename g_udev and g_udev_mon 2016-12-01 17:39:36 +01:00
twinaphex c1e343cec8 Cleanup hid_joypad_name 2016-12-01 17:37:27 +01:00
twinaphex a9e627ca57 (udev_input.c) Rename static function 2016-12-01 17:33:41 +01:00
twinaphex 31a95b8972 (android_input.c) Get rid of HAVE_MENU ifdefs 2016-12-01 17:31:26 +01:00
twinaphex 200be98052 (udev_input.c) use udev_common.c 2016-12-01 16:51:43 +01:00
twinaphex ebe1ac6967 (udev_joypad.c) Cleanups 2016-12-01 16:46:32 +01:00
twinaphex 793519eb61 (linuxraw_joypad.c) Cleanups 2016-12-01 16:44:47 +01:00
twinaphex b63b675274 (linuxraw_joypad.c) Cleanups 2016-12-01 16:42:21 +01:00
twinaphex d7f7d5f99a Rewrite epoll_common 2016-12-01 16:40:04 +01:00
lasers da6d4a7599 Update skeleton cfg (core options) 2016-12-01 09:22:59 -06:00
Gregor Richards 8dc9c64297 Yet another pre-2.0 fix for MiniUPNPC (if we have more problems I'll
just drop support for pre-2.0)
2016-12-01 09:39:41 -05:00
lasers 4f7245fa9a Avoid unpredictable sublabel 2016-12-01 08:12:03 -06:00
twinaphex 9afa24ea70 Reuse udev_common.c function 2016-12-01 15:05:17 +01:00
twinaphex 63ae172a23 Add udev_common.c/.h 2016-12-01 15:02:42 +01:00
Twinaphex 8f3039316a Merge pull request #4117 from terry1994/master
Fix building on iOS 9 and below.
2016-12-01 14:26:21 +01:00
terry1994 86c7afdd7c Merge branch 'master' of ssh://github.com/terry1994/RetroArch 2016-12-01 09:53:10 +01:00
terry1994 f54b8cb9a9 Fix building on iOS 9 and 10.
Adjusted iOS 10 project to target minimum iOS version of 10.
Using minimum iOS version to determine availablity of clock_gettime (exists only on iOS 10+). Building with 10/10.1 SDK would cause this method to be called in iOS 9 builds, resulting in a crash on start.
2016-12-01 09:39:53 +01:00
Twinaphex 5e2ced90f5 Merge pull request #4115 from GregorR/ifinfo-alloc
Make net_ifinfo's allocation behavior simpler and clearer
2016-12-01 04:57:35 +01:00
twinaphex a726fc2d8e Further cleanups 2016-12-01 04:12:56 +01:00
twinaphex 468644e213 Simplify udev_hotplug_available and prevent implicit memset 2016-12-01 03:59:02 +01:00
twinaphex eee077fe31 (udev) Simplify udev_joypad_handle_hotplug 2016-12-01 03:50:35 +01:00
twinaphex bd53c33069 Move input_get_auto_bind to input_config.c 2016-12-01 03:43:51 +01:00
twinaphex c351aed001 (input_driver.c) Cleanups 2016-12-01 03:38:25 +01:00
twinaphex 5337e494c6 More small cleanups 2016-12-01 03:01:32 +01:00
twinaphex e6eeb8e559 Simplify check_input_driver_block_hotkey 2016-12-01 03:01:32 +01:00
Andrés Suárez 51650e6414 Merge pull request #4116 from meleu/patch-1
added menu_swap_ok_cancel on retroarch.cfg
2016-11-30 20:58:39 -05:00
meleu 09aa219eb3 added menu_swap_ok_cancel
Removed the deprecated `menu_ok_btn` and `menu_cancel_btn`.
It's somehow related with this issue: https://github.com/libretro/RetroArch/issues/4111
2016-11-30 23:32:19 -02:00
Gregor Richards a0ac7e6a68 Make net_ifinfo's allocation behavior simpler and clearer 2016-11-30 19:57:18 -05:00
Twinaphex dd31ba3c22 Merge pull request #4114 from GregorR/natt-double-free
Don't double-free net_ifinfo structure.
2016-12-01 01:46:34 +01:00
Gregor Richards 4ad1aa7eff Don't double-free net_ifinfo structure. 2016-11-30 19:21:33 -05:00
Twinaphex b3e6a8fe6e Merge pull request #4113 from GregorR/netplay-natt-announce-legacy
Adding NAT traversal announcement for SOCKET_LEGACY
2016-12-01 01:04:43 +01:00
Gregor Richards c7f8cd3c68 Adding NAT traversal announcement for SOCKET_LEGACY 2016-11-30 19:01:32 -05:00
Jean-André Santoni f41e420b44 Unhardcode more strings 2016-12-01 00:49:48 +01:00
Jean-André Santoni 1f1a8eec89 New message 'no networks found' 2016-12-01 00:35:20 +01:00
twinaphex 3f0a418311 Fix Emscripten build 2016-11-30 19:21:21 +01:00
Twinaphex 99c7d6aeea Merge pull request #4110 from GregorR/natt-miniupnpc-2.0
Support for both MiniUPNPC 2.0 and MiniUPNPC < 2.0
2016-11-30 17:44:08 +01:00
Twinaphex d26905389b Cleanup 2016-11-30 17:38:14 +01:00
twinaphex 981cbf93c9 Add task_wifi to Griffin 2016-11-30 17:37:42 +01:00
Gregor Richards ef65f6c57a Support for both MiniUPNPC 2.0 and MiniUPNPC < 2.0
MiniUPNPC 2.0 was a backwards-incompatible change (as .0s tend to be)
but configure detects them the same. This adds support for the changed
functions.
2016-11-30 10:48:11 -05:00
radius 5cf668c302 set the option as false by default for the time being 2016-11-30 10:29:34 -05:00
Twinaphex 12b17a8319 Merge pull request #4109 from libretro/async-wifi
Async wifi
2016-11-30 16:10:32 +01:00
Twinaphex bb499b70be Merge pull request #4104 from GregorR/natt
NAT traversal
2016-11-30 16:09:53 +01:00
Brad Parker 3ac51389bb dinput: catch null pointer 2016-11-30 02:07:29 -05:00
Andrés Suárez 2ea6c6bcfe Merge pull request #4105 from fr500/master
Firmware checking improvements
2016-11-30 00:31:43 -05:00
Andrés Suárez 153b879a6e Merge pull request #4108 from GregorR/netplay-ipv6
Fix Netplay IPv6 support
2016-11-30 00:31:05 -05:00
Gregor Richards b3ababce9a Fix Netplay IPv6 support 2016-11-30 00:25:16 -05:00
aliaspider cffd17efea Merge pull request #4106 from vgmoose/master
(WiiU) put current git hash in meta.xml
2016-11-30 05:55:43 +01:00
vgmoose 87344328fe (WiiU) put current git hash in meta.xml 2016-11-29 23:52:48 -05:00
radius 7f62fee375 fix close content after loading has been blocked 2016-11-29 23:46:07 -05:00
Gregor Richards b1f9ef6073 Since I've allocated net_ifinfo, I'd better free it in all returns 2016-11-29 23:31:35 -05:00
Gregor Richards 8e5e760773 Remove accidentally-left debug printf 2016-11-29 23:30:12 -05:00
Gregor Richards 0b13f7dc4a Tpyo in griffin include of net_natt 2016-11-29 23:26:53 -05:00
radius 2e7821e337 add a toggle to the firmware check so it can be overruled 2016-11-29 23:22:22 -05:00
twinaphex ce2fbbdbe2 (hid_joypad.c) Prevent null pointer dereferences 2016-11-30 05:12:28 +01:00
Gregor Richards 2522f68870 C++ fixes 2016-11-29 23:10:19 -05:00
Gregor Richards 025993231f Use net_ifinfo how it's intended (?) to be used 2016-11-29 23:08:48 -05:00
Gregor Richards c342c103ae Always get numeric host/ports instead of names. 2016-11-29 23:08:26 -05:00
Twinaphex 7197be5a0d (OSX) Prevent crash 2016-11-30 05:07:08 +01:00
twinaphex d3e4c1278a Add whitespace 2016-11-30 05:00:04 +01:00
Gregor Richards 42da0a0184 NAT traversal in Netplay
For the time being, if NAT traversal is successful it simply announces
it as an OSD message. In the future it will be used to inform a
matchmaking server of the public port.

This patch also included minor fixes to the NAT traversal implementation
to make the select it demands actually doable.
2016-11-29 22:59:46 -05:00
twinaphex 7d4b159fe9 Typo fix 2016-11-30 04:35:16 +01:00
Twinaphex 17dc79a002 Buildfixes/silence unused variable warnings 2016-11-30 04:32:59 +01:00
Twinaphex a39503b2e1 Merge pull request #4103 from fr500/master
better firmware prescence checking
2016-11-30 04:29:36 +01:00
radius 4f760352f4 don't show the message for ten seconds 2016-11-29 22:23:15 -05:00
radius 1b3789edde better firmware checking 2016-11-29 22:21:44 -05:00
Gregor Richards 48240c2806 Adding Netplay NAT traversal option (but not implementation yet) 2016-11-29 22:18:37 -05:00
Gregor Richards 50ec1bc9cd Add NAT traversal code to griffin 2016-11-29 21:16:25 -05:00
Gregor Richards 8f61e2b978 Spacing correction (three spaces, not four) 2016-11-29 21:16:04 -05:00
Gregor Richards da406c3abb Adding copyright headers and support for specifying protocol (TCP/UDP) 2016-11-29 21:09:47 -05:00
Gregor Richards 65355994b3 NAT traversal
Adding NAT traveral interface to libretro-common, with (currently) a
backend support MiniUPNPC. Sensible future backends would be libupnp and
a direct implementation of PCP/NAT-PMP.
2016-11-29 21:00:53 -05:00
aliaspider 01bc910607 Merge pull request #4102 from FIX94/master
(WiiU) properly set audio offset before starting playback
2016-11-30 02:41:09 +01:00
FIX94 df956efd43 (WiiU) properly set audio offset before starting playback 2016-11-30 02:37:42 +01:00
Brad Parker 367dea6723 unicode-ify a couple other windows files, start changing function names to W version explicitly 2016-11-29 20:32:24 -05:00
Jean-André Santoni 99ab41be4a Don't use structs in global_t. Also simplifies the async wifi code. 2016-11-30 01:21:21 +01:00
Jean-André Santoni bb7a96e9a8 Async Wi-Fi scan 2016-11-30 00:18:27 +01:00
Brad Parker dc99713a9b create unicode window on Windows 2016-11-29 14:34:37 -05:00
Brad Parker 187e1fc71b use wide fopen() on windows 2016-11-29 14:34:36 -05:00
Brad Parker 8adafa9249 use UTF8/16 conversion functions instead of codepage ones 2016-11-29 14:34:36 -05:00
Brad Parker 495deae31b still not working 2016-11-29 14:34:36 -05:00
Brad Parker cd9d09d1f3 use unicode versions of windows functions 2016-11-29 14:34:35 -05:00
Alcaro 53549646af Merge pull request #4095 from diegoviola/master
Fix typo
2016-11-29 14:26:48 +01:00
Diego Viola 59c99a59e7 Fix typo 2016-11-29 11:23:43 -02:00
radius ff828f884d fix with the correct enum 2016-11-29 00:56:54 -05:00
radius 869800dc04 Only block loading for CONTENT_MODE_LOAD_NOTHING_WITH_CURRENT_CORE_FROM_MENU and only when a system dir is properly configured 2016-11-29 00:49:22 -05:00
radius cfd0b4847e fix label 2016-11-28 20:14:13 -05:00
Brad Parker 7be7568d7d do not try to get an archive list if it is inside another archive 2016-11-28 18:20:01 -05:00
fr500 0a83f7a888 add removable storage shortcut 2016-11-28 17:03:03 -05:00
twinaphex a1a70c63ef Set to Pulseaudio by default 2016-11-28 19:23:04 +01:00
Brad Parker 951f3f3e19 don't allow ok button to work from behind the OSK 2016-11-27 23:29:13 -05:00
Brad Parker 78e75cdc69 whitespace 2016-11-27 22:02:22 -05:00
Brad Parker ee49eeec09 fix endless word_wrap() loop when a label has a newline and no spaces 2016-11-27 22:02:10 -05:00
twinaphex d57d672d15 Remove unused variable 2016-11-28 02:25:38 +01:00
twinaphex b1fc261f9a Buildfix 2016-11-28 02:24:23 +01:00
Twinaphex b4a3975907 Merge pull request #4084 from fr500/master
Prevent loading content when firmware is missing
2016-11-28 02:09:20 +01:00
radius 7b7a107e45 add english string to localization files 2016-11-27 19:56:44 -05:00
radius 8f4d6b8784 only block loading when firmware is required 2016-11-27 19:50:41 -05:00
radius 9505602675 Prevent loading content when firmware is missing 2016-11-27 19:25:38 -05:00
Jean-André Santoni dc15a880f7 Fix screenshots in content_dir 2016-11-28 01:00:14 +01:00
twinaphex f31404e2c6 Add msg_hash_de.h 2016-11-28 00:44:15 +01:00
twinaphex 9bba379ebd (msg_hash_de.c) Refactor strings 2016-11-28 00:42:34 +01:00
Jean-André Santoni 57d3236b99 Delete a debug message 2016-11-27 23:21:07 +01:00
Jean-André Santoni ec24fb6bbd (XMB) Display thumbnails for image history 2016-11-27 23:16:45 +01:00
Brad Parker d6ebd2ad2b add define to clarify osk pointer math 2016-11-27 11:43:52 -05:00
Jean-André Santoni 1aed7607ab Merge pull request #4080 from hizzlekizzle/master
Change number of combo choices from 3 to 4
2016-11-27 17:29:49 +01:00
Brad Parker b9c6fa585c reverse variable names for clarity, add separate latch for OK button to solve looping of menu ok/cancel swap toggle 2016-11-27 11:25:36 -05:00
twinaphex 19fa1ff13f (MSVC 2010) Buildfix 2006-01-17 06:39:19 +01:00
twinaphex 81e76ca5e7 (MSVC 2003) Buildfixes 2006-01-17 06:28:35 +01:00
twinaphex b622e60e45 Add D3D9 headers 2016-08-12 01:17:54 +02:00
twinaphex c9236924a3 (MSVC 2003) Buildfixes 2006-01-17 06:19:45 +01:00
twinaphex 1eaa29eed8 Fix prototype 2016-08-12 01:09:56 +02:00
twinaphex b75aef372b Silence some warnings 2006-01-17 06:14:21 +01:00
twinaphex 4791174ea3 (MSVC 2003) Fixes 2006-01-17 06:11:55 +01:00
twinaphex 8617b9f649 Add zconf headers 2016-08-12 01:02:19 +02:00
twinaphex c90108a3fb chmod +x on pkg.py 2016-08-12 00:09:22 +02:00
twinaphex fed9c1521b Use vsnprintf for MSVC 2003 2006-01-17 04:51:24 +01:00
twinaphex f81fe2782a (MSVC 2003) Add include dir 2006-01-17 04:40:33 +01:00
twinaphex d4eca3aeb7 Move glext.h header to gfx/include/GL/glext.h 2016-08-11 23:34:05 +02:00
twinaphex 9777e9d9ef (MSVC 2003) Add MSVC 2003 compatibility 2006-01-17 04:36:32 +01:00
twinaphex 35939125b0 (MSVC 2003) Start adding MSVC 2003 solution files 2006-01-17 04:25:59 +01:00
Andrés c0af402df2 Copy the files to the proper location 2016-08-11 14:13:55 -05:00
twinaphex ff52008708 Link to Vita nightlies 2016-08-11 20:31:17 +02:00
twinaphex 83fd8575e0 Update bg.png 2016-08-11 20:30:16 +02:00
twinaphex 2ebc0c150d (Vita) Update LiveArea startup icon 2016-08-11 19:11:10 +02:00
twinaphex 0eee4531ef (Vita) Add Live Area assets 2016-08-11 19:09:37 +02:00
Andrés 07126d78d5 Update dist-cores.sh 2016-08-10 23:57:22 -05:00
twinaphex 340519fa61 (libretro-common) Updates 2016-08-11 00:41:11 +02:00
twinaphex 54c5cc70e5 (psp_audio.c) Get rid of most warnings 2016-08-10 23:25:05 +02:00
twinaphex b5a636f22b (Vita) Prevent unused variable 2016-08-10 23:17:47 +02:00
twinaphex 2cf255328d (Vita) Add baked-in zlib
(Emscripten )Add platform driver
2016-08-10 23:04:46 +02:00
Twinaphex f46ccf9bda Merge pull request #3377 from lakkatv/master
(XMB) Fix messages centering
2016-08-10 22:31:49 +02:00
Jean-André Santoni ff7b3ec943 (XMB) Fix messages centering 2016-08-10 22:30:17 +02:00
twinaphex 61a4ff2a07 Cleanup get_ident function 2016-08-10 09:21:13 +02:00
Twinaphex 03c6564d2d Merge pull request #3375 from Ezio-PS/master
Add cursors to the ps3 builds
2016-08-10 07:46:59 +02:00
U-Huygens-PC\Bibibi cbc9233461 Add cursors to the ps3 builds 2016-08-10 07:40:21 +02:00
Twinaphex 9cefcca44c Merge pull request #3374 from Ezio-PS/master
Add log about files moved and copied during the compile
2016-08-10 07:22:54 +02:00
Twinaphex 50afc567b3 Prevent unused variable 2016-08-10 07:20:49 +02:00
twinaphex 032f7f83ae Hide User Interface options if no companion interface is not
available
2016-08-10 07:18:55 +02:00
U-Huygens-PC\Bibibi 763dd0f95b Add log about files moved and copied during the compile 2016-08-10 07:00:16 +02:00
Twinaphex c07d316b45 Merge pull request #3373 from lakkatv/master
Restaure Lakka services
2016-08-10 02:51:05 +02:00
radius 428e8d96d1 try to fix this script again 2016-08-09 19:17:55 -05:00
radius 4520996603 try to fix this script 2016-08-09 19:05:38 -05:00
Jean-André Santoni 764b20234d Restaure Lakka services
Also use HAVE_LAKKA instead of HAVE_SYSTEMD to prevent this menu to appear in the regular RetroArch linux build for users that have systemd. It wouldn't work in all cases.
2016-08-10 01:46:47 +02:00
Twinaphex ffa93f1f40 Merge pull request #3371 from Ezio-PS/master
Add assets, databases, overlays and shaders
2016-08-09 22:29:51 +02:00
U-Huygens-PC\Bibibi 560795584d Add assets, databases, overlays and shaders dir checks 2016-08-09 20:52:59 +02:00
U-Huygens-PC\Bibibi cbb4d6fcee Add assets, databases, overlays and shaders 2016-08-09 20:37:07 +02:00
twinaphex 441cb8fa71 (PS3) Add dist/info dir checks 2016-08-09 20:35:40 +02:00
Twinaphex a9cf17f6c6 Merge pull request #3370 from Ezio-PS/master
Move core info files for every core included
2016-08-09 20:32:04 +02:00
U-Huygens-PC\Bibibi f7e9fc8620 Move core info files for every core included 2016-08-09 20:19:34 +02:00
Twinaphex 1a7cb21b77 Merge pull request #3369 from Ezio-PS/master
(PS3) Fix the compile for ODE build
2016-08-09 20:06:37 +02:00
U-Huygens-PC\Bibibi e64c8e8b76 Rename variables and ODE iso 2016-08-09 20:01:01 +02:00
U-Huygens-PC\Bibibi dc307b9852 Remove unused stuff 2016-08-09 19:47:29 +02:00
U-Huygens-PC\Bibibi c4e5d3740e Add and change paths 2016-08-09 19:41:55 +02:00
Twinaphex f32552e1d4 Merge pull request #3368 from Ezio-PS/master
(PS3) Update the compile for dex build
2016-08-09 19:36:46 +02:00
U-Huygens-PC\Bibibi 323c2d011d Move package.conf from ps3 folder to ps3_dex folder 2016-08-09 19:17:55 +02:00
U-Huygens-PC\Bibibi 9eca006b12 Rename dex pkg and update paths 2016-08-09 19:09:11 +02:00
Twinaphex fdb872f6a5 Merge pull request #3367 from Ezio-PS/master
Set lower key signature for main executable and cores (3.41)
2016-08-09 19:03:12 +02:00
Twinaphex 59611f8d9b Merge pull request #3366 from Ezio-PS/master
(PS3) Fix the compile for cex build
2016-08-09 18:55:52 +02:00
U-Huygens-PC\Bibibi b11ad57f29 Set lower key signature for main executable and cores (3.41) 2016-08-09 18:55:29 +02:00
U-Huygens-PC\Bibibi fe17b90e36 Fix path for python script and rename cex pkg 2016-08-09 17:26:57 +02:00
U-Huygens-PC\Bibibi db2f7269c2 Use scetool to sign eboot and cores 2016-08-09 17:22:45 +02:00
U-Huygens-PC\Bibibi f0dea0d46f Rename and add paths and flags for cex ps3 2016-08-09 17:14:07 +02:00
U-Huygens-PC\Bibibi 0c05f8622e Update RA version to 1.3.6 2016-08-09 17:07:56 +02:00
twinaphex c675bcb7d8 (Rthreads) Update for Vita 2016-08-08 19:42:36 +02:00
Alcaro 43a6a667be We don't need this one. 2016-08-08 19:14:00 +02:00
twinaphex 04e7e51845 Move log message 2016-08-08 18:44:12 +02:00
twinaphex 8da3054968 Change this to HAVE_OPENGLES instead of HAVE_OPENGLES2 2016-08-08 18:40:58 +02:00
twinaphex becf96837e Allow for GL_DEBUG on GLES3/GLES 3.1/GLES 3.2 2016-08-08 18:37:46 +02:00
twinaphex a61bff9330 OpenGLES 2 context should not be accessible for GLES 1.0-ish contexts
like PSGL
2016-08-08 17:23:54 +02:00
twinaphex 30c847cc10 (PSP/Vita) Cleanup 2016-08-08 17:16:02 +02:00
Twinaphex b1791d4c30 Merge pull request #3362 from frangarcj/master
(VITA) Workaround for PSVita Controls vs PSTV
2016-08-08 17:14:40 +02:00
Francisco José García García d0f96ed535 (VITA) Small fix 2016-08-08 17:12:52 +02:00
Francisco José García García 8dde35f221 (VITA) Final Fix for controls 2016-08-08 17:10:52 +02:00
Francisco José García García 351b3fe3f6 (VITA) Workaround for PSVita Controls vs PSTV 2016-08-08 12:56:30 +02:00
Twinaphex 12eac9e6ae Merge pull request #3358 from loganmc10/master
Fix GLES3 compling
2016-08-08 07:09:09 +02:00
Logan McNaughton 2daf102111 Fix GLES3 compling 2016-08-07 22:33:07 -06:00
Twinaphex fbddcd0fce Merge pull request #3355 from frangarcj/master
(VITA) Fix rgb32
2016-08-08 01:53:37 +02:00
Francisco José García García cddef9827d (VITA) Fix rgb32 2016-08-08 01:51:23 +02:00
twinaphex ef6fb9b855 (Vita) Fix 2016-08-08 01:24:54 +02:00
twinaphex 8d47b30a67 Another cleanup 2016-08-08 01:23:48 +02:00
twinaphex 10e35d4d75 Small cleanup 2016-08-08 01:21:20 +02:00
twinaphex ecc625dbf1 (Vita) Implement multiplayer hack 2016-08-08 01:19:16 +02:00
twinaphex e3acb88565 (Vita) Change heap to 192MB 2016-08-07 22:58:42 +02:00
twinaphex 80b82606d4 This is the same now 2016-08-07 20:35:40 +02:00
Twinaphex 7f89cb97a9 Merge pull request #3349 from frangarcj/master
fix vita controls
2016-08-07 20:34:51 +02:00
Francisco José García García 6f40cc54b6 Merge branch 'master' of https://github.com/frangarcj/RetroArch 2016-08-07 20:17:01 +02:00
Francisco José García García ab9b2f5998 (VITA) Add PSTV two players mode 2016-08-07 20:15:43 +02:00
Francisco José García García 0b1cd096ec (VITA) Add PSTV two players mode 2016-08-07 17:50:01 +02:00
twinaphex 24817aeeac (Vita) Autoconfigure gamepads 2016-08-07 17:22:34 +02:00
twinaphex 33a1a70aa8 (Vita) Try this 2016-08-07 17:18:55 +02:00
twinaphex cc1d579036 (Vita) psp_input_state - Don't early return if port is higher than 0 2016-08-07 16:29:58 +02:00
twinaphex 3964dfc2de (PSP/Vita) Refactors 2016-08-07 14:55:47 +02:00
twinaphex 632cc0ef6c (Vita) Start setting up Vita for multiplayer 2016-08-07 14:52:41 +02:00
Twinaphex ddff9e39df Merge pull request #3347 from loganmc10/master
GLES3 compile fixes
2016-08-07 07:11:54 +02:00
Logan McNaughton 47227c829b GLES3 fixes 2016-08-06 21:45:35 -06:00
twinaphex fb9a2eea95 Remove one useless HAVE_OPENGLES2 ifdef, and remove some wrong
defines
2016-08-07 04:35:38 +02:00
twinaphex df1c0bc9b4 Backport changes 2016-08-07 02:49:34 +02:00
Twinaphex 49c85f47c3 Merge pull request #3344 from Themaister/master
Vulkan: Fix validation errors with OriginalHistory.
2016-08-07 01:40:39 +02:00
Hans-Kristian Arntzen 96818a297c Vulkan: Fix validation errors with OriginalHistory.
For some reason, OriginalHistory blit happened inside a render pass.
Also add more TRANSFER_SRC_BIT caps to images as they might have to be
copied to history.
2016-08-07 01:09:15 +02:00
twinaphex 0164ce3725 Move comments 2016-08-06 17:31:01 +02:00
twinaphex ef74742078 Change GL_CAPS_FBO 2016-08-06 17:28:15 +02:00
2806 changed files with 454894 additions and 90307 deletions

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# EditorConfig: http://EditorConfig.org
# Top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# 3 space indentation
[*.{c,h,js,css,html}]
indent_style = space
indent_size = 3
# Tab indentation
[Makefile*]
indent_style = tab
+35
View File
@@ -0,0 +1,35 @@
# First and foremost consider this:
- Only RetroArch bugs should be filed here. Not core bugs or game bugs
- This is not a forum or a help section, this is strictly developer oriented
## Description
[Description of the bug]
### Expected behavior
[What you expected to happen]
### Actual behavior
[What is actually happening]
### Steps to reproduce the bug
1. [First step]
2. [Second step]
3. [and so on...]
### Bisect Results
[Try to bisect and tell us when this started happening]
### Version/Commit
You can find this information under Information/System Information
- RetroArch: [version/commit]
### Environment information
- OS: [The operating system you're running]
- Compiler: [In case you are running local builds]
+20
View File
@@ -11,6 +11,7 @@ config.log
/retroarch
/retroarch.cfg
/retroarch.exe
/retroarch_debug.exe
/config.h
/config.mk
/tools/retroarch-joyconfig
@@ -65,6 +66,9 @@ menu/driverspzarch.c
# Ctags
/tags
# CLion
/cmake-build-debug/
# Android
/pkg/android/phoenix/obj/
/pkg/android/phoenix/assets/
@@ -85,3 +89,19 @@ 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
/pkg/msvc/Release Cg/*.pdb
/pkg/msvc/Release Cg/*.lpl
/pkg/msvc/Release Cg/*.cfg
/pkg/msvc/*.db
/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
-6
View File
@@ -1,6 +0,0 @@
[submodule "deps/glslang/glslang"]
path = deps/glslang/glslang
url = git://github.com/KhronosGroup/glslang.git
[submodule "deps/SPIRV-Cross"]
path = deps/SPIRV-Cross
url = git://github.com/KhronosGroup/SPIRV-Cross
+48
View File
@@ -0,0 +1,48 @@
# Use 'generic' to be able to override CC/CXX for clang
language: generic
matrix:
include:
- compiler: gcc
- compiler: clang
addons:
# Install a more recent clang than the default
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
env: COMPILER_NAME=clang-3.8 CXX=clang++-3.8 CC=clang-3.8
- os: osx
osx_image: xcode7.3
script:
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
script:
- ./configure
- make
env:
global:
- secure: "qc91ReC3OlzSh2gFaSH6TYzC2qIQvgA2AZff6J13eaH8xijAhuMzttZ0rMQJ0DWCIhPeUb0kIzVyaGoe4MwPALzpw1C1AznIWiZJ53HN+hWCOcS/af7YVPk6HPySnwqrS+Wv3AIIvIKFV2mxv21F/JbT/N+pArlRrp904Xj+KPo="
addons:
apt:
packages:
- curl
- 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
coverity_scan:
project:
name: "RetroArch"
description: "RetroArch is the official reference frontend for the libretro API."
notification_email: [email protected]
build_command_prepend: "./configure; make clean"
build_command: "make"
branch_pattern: coverity_scan
+41 -12
View File
@@ -1,4 +1,5 @@
HAVE_FILE_LOGGER=1
HAVE_CC_RESAMPLER=1
NEED_CXX_LINKER=0
MISSING_DECLS =0
@@ -16,11 +17,16 @@ ifeq ($(GLOBAL_CONFIG_DIR),)
GLOBAL_CONFIG_DIR = /etc
endif
OBJ :=
OBJ :=
LIBS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
ifneq ($(findstring DOS,$(OS)),)
CFLAGS += -march=i386
LDFLAGS += -lemu
endif
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -static-libgcc
endif
@@ -31,6 +37,12 @@ ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang"),1)
DEFINES += -Wno-invalid-source-encoding
endif
ifeq ($(shell $(CC) -v 2>&1 | grep -c "tcc"),1)
MD = -MD
else
MD = -MMD
endif
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
ifeq ($(MISSING_DECLS), 1)
@@ -55,9 +67,10 @@ ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0 -g
else
OPTIMIZE_FLAG = -O3 -ffast-math
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
endif
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I.
@@ -108,7 +121,7 @@ RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
ifneq ($(SANITIZER),)
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
endif
ifneq ($(findstring $(GPERFTOOLS),profiler),)
@@ -136,12 +149,12 @@ retroarch: $(RARCH_OBJ)
$(OBJDIR)/%.o: %.c config.h config.mk
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) $(MD) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp config.h config.mk
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.m
@mkdir -p $(dir $@)
@@ -167,27 +180,43 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
install: $(TARGET)
rm -f $(OBJDIR)/git_version.o
mkdir -p $(DESTDIR)$(PREFIX)/bin 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(BIN_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(PREFIX)/share/applications 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(MAN_DIR)/man6 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps 2>/dev/null || /bin/true
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
install -m755 tools/cg2glsl.py $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
install -m755 $(TARGET) $(DESTDIR)$(BIN_DIR)
install -m755 tools/cg2glsl.py $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
install -m644 retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
install -m644 retroarch.desktop $(DESTDIR)$(PREFIX)/share/applications
install -m644 docs/retroarch.6 $(DESTDIR)$(MAN_DIR)/man6
install -m644 docs/retroarch-cg2glsl.6 $(DESTDIR)$(MAN_DIR)/man6
install -m644 media/retroarch.svg $(DESTDIR)$(PREFIX)/share/pixmaps
@if test -d media/assets; then \
echo "Installing media assets..."; \
mkdir -p $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb; \
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
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
rm -f $(DESTDIR)$(BIN_DIR)/retroarch
rm -f $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
rm -f $(DESTDIR)$(PREFIX)/share/applications/retroarch.desktop
rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/retroarch.svg
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch
clean:
rm -rf $(OBJDIR)
+354 -205
View File
File diff suppressed because it is too large. Load diff
+77 -219
View File
@@ -25,232 +25,86 @@ APP_USE_SVCHAX = 0
include ctr/Makefile.cores
OBJS :=
OBJS += gfx/drivers/ctr_shaders/ctr_sprite.o
OBJS += ctr/ctr_system.o
OBJS += ctr/ctr_memory.o
OBJS += ctr/ctr_linear.o
OBJ :=
OBJ += gfx/drivers/ctr_shaders/ctr_sprite.o
OBJ += ctr/ctr_system.o
OBJ += ctr/ctr_memory.o
OBJ += ctr/ctr_linear.o
OBJ += ctr/gpu_old.o
ifeq ($(APP_BIG_TEXT_SECTION), 1)
APP_USE_SVCHAX = 1
LDFLAGS += -Wl,--defsym,__ctr_patch_services=__service_ptr
LDFLAGS += -Wl,--defsym,__ctr_patch_services=__service_ptr
endif
ifeq ($(APP_USE_SVCHAX), 1)
OBJS += ctr/ctr_svchax.o
OBJ += ctr/ctr_svchax.o
endif
DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJS += griffin/griffin.o
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB
else
CFLAGS += -DHAVE_COMPRESSION
OBJS += libretro-common/file/archive_file.o
OBJS += libretro-common/file/archive_file_zlib.o
OBJS += libretro-common/encodings/encoding_utf.o
OBJS += verbosity.o
OBJS += performance.o
OBJS += libretro-common/compat/compat_getopt.o
OBJS += libretro-common/compat/compat_strcasestr.o
OBJS += libretro-common/compat/compat_strl.o
OBJS += libretro-common/compat/compat_fnmatch.o
OBJS += libretro-common/memmap/memalign.o
OBJS += libretro-common/file/config_file.o
OBJS += config_file_userdata.o
OBJS += core_options.o
OBJS += cheats.o
OBJS += libretro-common/hash/rhash.o
OBJS += gfx/video_context_driver.o
OBJS += gfx/drivers_context/gfx_null_ctx.o
OBJS += libretro-common/formats/image_texture.o
OBJS += libretro-common/formats/tga/rtga.o
OBJS += libretro-common/formats/png/rpng.o
OBJS += libretro-common/formats/png/rpng_encode.o
OBJS += libretro-common/formats/bmp/rbmp_encode.o
OBJS += libretro-common/gfx/math/matrix_4x4.o
OBJS += libretro-common/gfx/math/matrix_3x3.o
OBJS += gfx/drivers/ctr_gfx.o
OBJS += gfx/drivers/nullgfx.o
OBJS += gfx/font_driver.o
OBJS += gfx/drivers_font_renderer/bitmapfont.o
OBJS += input/input_autodetect.o
OBJS += input/input_joypad_driver.o
OBJS += input/input_hid_driver.o
OBJS += input/input_config.o
OBJS += input/input_keymaps.o
OBJS += input/input_remapping.o
OBJS += input/input_keyboard.o
OBJS += input/drivers/ctr_input.o
OBJS += input/drivers_joypad/ctr_joypad.o
OBJS += input/autoconf/builtin_ctr.o
OBJS += input/drivers/nullinput.o
OBJS += input/drivers_joypad/null_joypad.o
OBJS += input/drivers_joypad/hid_joypad.o
OBJS += input/drivers_hid/null_hid.o
OBJS += gfx/video_state_tracker.o
OBJS += libretro-common/queues/fifo_queue.o
OBJS += audio/audio_resampler_driver.o
OBJS += audio/drivers_resampler/sinc_resampler.o
OBJS += audio/drivers_resampler/nearest_resampler.o
OBJS += audio/drivers_resampler/null_resampler.o
OBJS += audio/drivers_resampler/cc_resampler.o
OBJS += camera/drivers/nullcamera.o
OBJS += location/drivers/nulllocation.o
OBJS += audio/drivers/ctr_csnd_audio.o
OBJS += audio/drivers/ctr_dsp_audio.o
OBJS += audio/drivers/nullaudio.o
OBJS += gfx/video_driver.o
OBJS += gfx/video_coord_array.o
OBJS += input/input_driver.o
OBJS += audio/audio_driver.o
OBJS += camera/camera_driver.o
OBJS += location/location_driver.o
OBJS += driver.o
OBJS += libretro-common/gfx/scaler/scaler_filter.o
OBJS += libretro-common/gfx/scaler/pixconv.o
OBJS += libretro-common/gfx/scaler/scaler.o
OBJS += libretro-common/gfx/scaler/scaler_int.o
OBJS += gfx/video_filters/2xsai.o
OBJS += gfx/video_filters/super2xsai.o
OBJS += gfx/video_filters/supereagle.o
OBJS += gfx/video_filters/2xbr.o
OBJS += gfx/video_filters/darken.o
OBJS += gfx/video_filters/epx.o
OBJS += gfx/video_filters/scale2x.o
OBJS += gfx/video_filters/blargg_ntsc_snes.o
OBJS += gfx/video_filters/lq2x.o
OBJS += gfx/video_filters/phosphor2x.o
OBJS += audio/audio_filters/echo.o
OBJS += audio/audio_filters/eq.o
OBJS += audio/audio_filters/chorus.o
OBJS += audio/audio_filters/iir.o
OBJS += audio/audio_filters/panning.o
OBJS += audio/audio_filters/phaser.o
OBJS += audio/audio_filters/reverb.o
OBJS += audio/audio_filters/wahwah.o
OBJS += libretro-common/dynamic/dylib.o
OBJS += dynamic.o
OBJS += gfx/video_filter.o
OBJS += audio/audio_dsp_filter.o
OBJS += cores/dynamic_dummy.o
OBJS += content.o
OBJS += libretro-common/file/file_path.o
OBJS += file_path_special.o
OBJS += libretro-common/lists/dir_list.o
OBJS += libretro-common/file/retro_dirent.o
OBJS += libretro-common/streams/file_stream.o
OBJS += libretro-common/file/retro_stat.o
OBJS += list_special.o
OBJS += libretro-common/lists/string_list.o
OBJS += libretro-common/string/stdstring.o
OBJS += libretro-common/file/nbio/nbio_stdio.o
OBJS += libretro-common/lists/file_list.o
OBJS += libretro-common/queues/message_queue.o
OBJS += patch.o
OBJS += configuration.o
OBJS += rewind.o
OBJS += frontend/frontend_driver.o
OBJS += frontend/drivers/platform_ctr.o
OBJS += frontend/drivers/platform_null.o
OBJS += core_info.o
OBJS += ui/ui_companion_driver.o
OBJS += ui/drivers/ui_null.o
OBJS += frontend/frontend.o
OBJS += libretro_version_1.o
OBJS += retroarch.o
OBJS += runloop.o
OBJS += libretro-common/queues/task_queue.o
OBJS += tasks/tasks_internal.o
OBJS += msg_hash.o
OBJS += intl/msg_hash_de.o
OBJS += intl/msg_hash_es.o
OBJS += intl/msg_hash_eo.o
OBJS += intl/msg_hash_fr.o
OBJS += intl/msg_hash_it.o
OBJS += intl/msg_hash_nl.o
OBJS += intl/msg_hash_pt.o
OBJS += intl/msg_hash_pl.o
OBJS += intl/msg_hash_us.o
OBJS += movie.o
OBJS += record/record_driver.o
OBJS += record/drivers/record_null.o
OBJS += tasks/task_content.o
OBJS += tasks/task_file_transfer.o
OBJS += tasks/task_decompress.o
OBJS += screenshot.o
OBJS += playlist.o
OBJS += menu/menu_driver.o
OBJS += menu/menu_hash.o
OBJS += menu/menu_input.o
OBJS += menu/menu_entry.o
OBJS += menu/menu_entries.o
OBJS += menu/menu_setting.o
OBJS += menu/menu_cbs.o
OBJS += menu/menu_content.o
OBJS += menu/cbs/menu_cbs_ok.o
OBJS += menu/cbs/menu_cbs_cancel.o
OBJS += menu/cbs/menu_cbs_select.o
OBJS += menu/cbs/menu_cbs_start.o
OBJS += menu/cbs/menu_cbs_info.o
OBJS += menu/cbs/menu_cbs_refresh.o
OBJS += menu/cbs/menu_cbs_left.o
OBJS += menu/cbs/menu_cbs_right.o
OBJS += menu/cbs/menu_cbs_title.o
OBJS += menu/cbs/menu_cbs_deferred_push.o
OBJS += menu/cbs/menu_cbs_scan.o
OBJS += menu/cbs/menu_cbs_get_value.o
OBJS += menu/cbs/menu_cbs_up.o
OBJS += menu/cbs/menu_cbs_down.o
OBJS += menu/cbs/menu_cbs_contentlist_switch.o
OBJS += menu/menu_shader.o
OBJS += menu/menu_navigation.o
OBJS += menu/menu_display.o
OBJS += menu/menu_displaylist.o
OBJS += menu/menu_animation.o
OBJS += menu/intl/menu_hash_de.o
OBJS += menu/intl/menu_hash_es.o
OBJS += menu/intl/menu_hash_eo.o
OBJS += menu/intl/menu_hash_fr.o
OBJS += menu/intl/menu_hash_it.o
OBJS += menu/intl/menu_hash_nl.o
OBJS += menu/intl/menu_hash_pl.o
OBJS += menu/intl/menu_hash_pt.o
OBJS += menu/intl/menu_hash_us.o
OBJS += menu/drivers/null.o
OBJS += menu/drivers/menu_generic.o
OBJS += menu/drivers_display/menu_display_null.o
OBJS += menu/drivers/rgui.o
OBJS += command_event.o
OBJS += deps/zlib/adler32.o
OBJS += deps/zlib/compress.o
OBJS += deps/zlib/crc32.o
OBJS += deps/zlib/deflate.o
OBJS += deps/zlib/gzclose.o
OBJS += deps/zlib/gzlib.o
OBJS += deps/zlib/gzread.o
OBJS += deps/zlib/gzwrite.o
OBJS += deps/zlib/inffast.o
OBJS += deps/zlib/inflate.o
OBJS += deps/zlib/inftrees.o
OBJS += deps/zlib/trees.o
OBJS += deps/zlib/uncompr.o
OBJS += deps/zlib/zutil.o
OBJS += audio/audio_utils.o
HAVE_CC_RESAMPLER = 1
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_RGUI = 1
HAVE_ZLIB = 1
HAVE_7ZIP = 1
HAVE_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 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 $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
ifeq ($(strip $(CTRULIB)),)
$(error "Please set CTRULIB in your environment. export CTRULIB=<path to>ctrulib")
CTRULIB = $(DEVKITPRO)/libctru
endif
ifeq ($(strip $(AEMSTRO)),)
$(error "Please set AEMSTRO in your environment. export AEMSTRO=<path to>aemstro")
endif
APP_TITLE := $(shell echo "$(APP_TITLE)" | cut -c1-128)
APP_DESCRIPTION := $(shell echo "$(APP_DESCRIPTION)" | cut -c1-256)
APP_AUTHOR := $(shell echo "$(APP_AUTHOR)" | cut -c1-128)
@@ -291,8 +145,7 @@ endif
CFLAGS += -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE -DSINC_LOWEST_QUALITY
CFLAGS += -DHAVE_GRIFFIN=1 -DHAVE_FILTERS_BUILTIN -DHAVE_MENU -DHAVE_RGUI
CFLAGS += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB -DHAVE_BUILTIN_AUTOCONFIG
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
@@ -321,11 +174,11 @@ endif
all: $(TARGET)
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA) $(TARGET).core
$(TARGET).3dsx: $(TARGET).elf
$(TARGET).elf: $(OBJS) libretro_ctr.a
$(TARGET).elf: $(OBJ) libretro_ctr.a
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
PREFIX := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
@@ -348,13 +201,13 @@ else
endif
%.o: %.vsh %.gsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.vsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
@@ -386,7 +239,7 @@ endif
-3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJS) $(LIBDIRS) $(LIBS) -o $@
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
$(NM) -CSn $@ > $(notdir $*.lst)
$(TARGET).bnr: $(APP_BANNER) $(APP_AUDIO)
@@ -401,13 +254,17 @@ $(TARGET).3ds: $(TARGET).elf $(TARGET).bnr $(TARGET).icn $(APP_RSF)
$(TARGET).cia: $(TARGET).elf $(TARGET).bnr $(TARGET).icn $(APP_RSF)
$(MAKEROM) -f cia -o $@ $(MAKEROM_ARGS_COMMON) -DAPP_ENCRYPTED=false
$(TARGET).core: $(TARGET).elf
echo $(APP_UNIQUE_ID) > $(TARGET).core
clean:
rm -f $(OBJS)
rm -f $(OBJ)
rm -f $(TARGET).3dsx
rm -f $(TARGET).elf
rm -f $(TARGET).3ds
rm -f $(TARGET).cia
rm -f $(TARGET).core
rm -f $(TARGET).smdh
rm -f $(TARGET).bnr
rm -f $(TARGET).icn
@@ -416,3 +273,4 @@ clean:
.PHONY: clean
+203
View File
@@ -0,0 +1,203 @@
TARGET := retroarch_3ds_salamander
LIBRETRO =
DEBUG = 0
BUILD_3DSX = 0
BUILD_3DS = 0
BUILD_CIA = 1
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_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
OBJ := ctr/ctr_system.o \
ctr/ctr_memory.o \
ctr/ctr_linear.o \
frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_ctr.o \
frontend/drivers/platform_null.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/file_path.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.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/hash/rhash.o \
file_path_str.o \
verbosity.o
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/ctrulib
endif
APP_TITLE := $(shell echo "$(APP_TITLE)" | cut -c1-128)
APP_DESCRIPTION := $(shell echo "$(APP_DESCRIPTION)" | cut -c1-256)
APP_AUTHOR := $(shell echo "$(APP_AUTHOR)" | cut -c1-128)
APP_PRODUCT_CODE := $(shell echo $(APP_PRODUCT_CODE) | cut -c1-16)
APP_UNIQUE_ID := $(shell echo $(APP_UNIQUE_ID) | cut -c1-7)
MAKEROM_ARGS_COMMON = -rsf $(APP_RSF) -exefslogo -elf $(TARGET).elf -icon $(TARGET).icn -banner $(TARGET).bnr -DAPP_TITLE="$(APP_TITLE)" -DAPP_PRODUCT_CODE="$(APP_PRODUCT_CODE)" -DAPP_UNIQUE_ID=$(APP_UNIQUE_ID) -DAPP_SYSTEM_MODE=$(APP_SYSTEM_MODE) -DAPP_SYSTEM_MODE_EXT=$(APP_SYSTEM_MODE_EXT)
INCDIRS := -I$(CTRULIB)/include
LIBDIRS := -L. -L$(CTRULIB)/lib
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft
CFLAGS += -mword-relocations \
-fomit-frame-pointer -ffast-math \
-Werror=implicit-function-declaration \
$(ARCH)
#CFLAGS += -Wall
CFLAGS += -DARM11 -D_3DS
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif
CFLAGS += -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
#CFLAGS += -DRARCH_INTERNAL
CFLAGS += -DRARCH_CONSOLE -DIS_SALAMANDER
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
ASFLAGS := -g $(ARCH) -O3
LDFLAGS += -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
CFLAGS += -std=gnu99 -ffast-math
LIBS := -lctru -lm
ifeq ($(BUILD_3DSX), 1)
TARGET_3DSX := $(TARGET).3dsx $(TARGET).smdh
endif
ifeq ($(BUILD_3DS), 1)
TARGET_3DS := $(TARGET).3ds
endif
ifeq ($(BUILD_CIA), 1)
TARGET_CIA := $(TARGET).cia
endif
.PHONY: $(BUILD) clean all
all: $(TARGET)
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
$(TARGET).3dsx: $(TARGET).elf
$(TARGET).elf: $(OBJ)
PREFIX := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
AS := $(PREFIX)as
AR := $(PREFIX)ar
OBJCOPY := $(PREFIX)objcopy
STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)
ifneq ($(findstring Linux,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-linux
BANNERTOOL = ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname -a)),)
MAKEROM = ctr/tools/makerom-mac
BANNERTOOL = ctr/tools/bannertool-mac
else
MAKEROM = ctr/tools/makerom.exe
BANNERTOOL = ctr/tools/bannertool.exe
endif
%.o: %.vsh %.gsh
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.vsh
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS)
%.o: %.s
$(CC) -c -o $@ $< $(ASFLAGS)
%.o: %.S
$(CC) -c -o $@ $< $(ASFLAGS)
%.a:
$(AR) -rc $@ $^
%.vsh:
$(TARGET).smdh: $(APP_ICON)
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
else
rm -f $(TARGET).xml
endif
-3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
$(NM) -CSn $@ > $(notdir $*.lst)
$(TARGET).bnr: $(APP_BANNER) $(APP_AUDIO)
$(BANNERTOOL) makebanner -i "$(APP_BANNER)" -a "$(APP_AUDIO)" -o $@
$(TARGET).icn: $(APP_ICON)
$(BANNERTOOL) makesmdh -s "$(APP_TITLE)" -l "$(APP_TITLE)" -p "$(APP_AUTHOR)" -i $(APP_ICON) -o $@
$(TARGET).3ds: $(TARGET).elf $(TARGET).bnr $(TARGET).icn $(APP_RSF)
$(MAKEROM) -f cci -o $@ $(MAKEROM_ARGS_COMMON) -DAPP_ENCRYPTED=true
$(TARGET).cia: $(TARGET).elf $(TARGET).bnr $(TARGET).icn $(APP_RSF)
$(MAKEROM) -f cia -o $@ $(MAKEROM_ARGS_COMMON) -DAPP_ENCRYPTED=false
clean:
rm -f $(OBJ)
rm -f $(TARGET).3dsx
rm -f $(TARGET).elf
rm -f $(TARGET).3ds
rm -f $(TARGET).cia
rm -f $(TARGET).smdh
rm -f $(TARGET).bnr
rm -f $(TARGET).icn
rm -f ctr/ctr_config_*.o
rm -f ctr/3dsx_custom_crt0.o
.PHONY: clean
+39 -19
View File
@@ -1,21 +1,28 @@
TARGET = retroarch.js
TARGET := retroarch.js
EOPT = USE_ZLIB=1 USE_SDL=2 # Emscripten specific options
EOPTS = $(addprefix -s $(EMPTY), $(EOPT)) # Add '-s ' to each option
PTHREAD = 0
OS = Emscripten
OBJ :=
DEFINES := -DRARCH_INTERNAL -DHAVE_OVERLAY -DHAVE_MAIN
DEFINES := -DRARCH_INTERNAL -DHAVE_OVERLAY -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD)
DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_OVERLAY -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN
HAVE_CC_RESAMPLER = 1
HAVE_EGL = 1
HAVE_OPENGL = 1
HAVE_GLES = 1
HAVE_OPENGLES = 1
HAVE_RJPEG = 0
HAVE_RPNG = 1
HAVE_EMSCRIPTEN = 1
HAVE_RGUI = 1
HAVE_SDL = 0
HAVE_SDL2 = 1
HAVE_ZLIB = 1
HAVE_FBO = 1
WANT_ZLIB = 1
MEMORY = 268435456
LTO = 0
MEMORY = 536870912
# XXX: setting this to 1/2 currently crashes Firefox nightly
PRECISE_F32 = 2
@@ -23,12 +30,25 @@ ifneq ($(NATIVE_ZLIB),)
WANT_ZLIB = 0
endif
LIBS :=
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) -s OUTLINING_LIMIT=50000 \
ifeq ($(HAVE_SDL2), 1)
DEFINES += -DHAVE_SDL2
endif
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS:
LIBS := -s USE_SDL=2 -s USE_ZLIB=1
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) \
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_load_state', '_cmd_take_screenshot']" \
--js-library emscripten/library_rwebaudio.js \
--js-library emscripten/library_rwebinput.js \
--js-library emscripten/library_rwebcam.js
ifneq ($(PTHREAD), 0)
LDFLAGS += -s USE_PTHREADS=$(PTHREAD) -s PTHREAD_POOL_SIZE=2
endif
ifeq ($(ASYNC), 1)
LDFLAGS += -s ASYNCIFY=$(ASYNC)
endif
include Makefile.common
@@ -43,14 +63,14 @@ OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += audio/audio_filters/echo.o
OBJ += audio/audio_filters/eq.o
OBJ += audio/audio_filters/chorus.o
OBJ += audio/audio_filters/iir.o
OBJ += audio/audio_filters/panning.o
OBJ += audio/audio_filters/phaser.o
OBJ += audio/audio_filters/reverb.o
OBJ += audio/audio_filters/wahwah.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/
libretro = libretro_emscripten.bc
@@ -72,7 +92,7 @@ else
CFLAGS += -O2
endif
CFLAGS += -DHAVE_RPNG -DHAVE_RJPEG -Wall -Wno-unused-result -Wno-unused-variable -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
CFLAGS += -DHAVE_RPNG -Wall -Wno-unused-result -Wno-unused-variable -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_take_screenshot']"
all: $(TARGET)
@@ -83,11 +103,11 @@ $(TARGET): $(OBJ)
%.o: %.c
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
$(Q)$(CC) $(CFLAGS) $(DEFINES) $(EOPTS) -c -o $@ $<
%.o: %.cpp
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -c -o $@ $<
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) $(EOPTS) -c -o $@ $<
clean:
rm -f *.o
+71 -32
View File
@@ -1,12 +1,15 @@
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
WHOLE_ARCHIVE_LINK = 0
BIG_STACK = 1
ROOT_DIR := .
DEPS_DIR := $(ROOT_DIR)/deps
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_CC_RESAMPLER = 1
WHOLE_ARCHIVE_LINK = 0
BIG_STACK = 1
PC_DEVELOPMENT_IP_ADDRESS = 255.255.255.255
PC_DEVELOPMENT_UDP_PORT = 3490
RARCH_CONSOLE = 0
USBGECKO = 0
RARCH_CONSOLE = 0
USBGECKO = 0
ifneq ($(EMSCRIPTEN),)
platform = emscripten
@@ -122,7 +125,7 @@ ifeq ($(HAVE_LOGGER), 1)
endif
endif
CFLAGS += -DGEKKO
CFLAGS += -DGEKKO -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
@@ -131,8 +134,8 @@ endif
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_OVERLAY := 1
HAVE_BUILTIN_AUTOCONFIG := 1
HAVE_ZLIB := 1
WANT_ZLIB := 1
HAVE_7ZIP := 1
RARCH_CONSOLE = 1
@@ -208,31 +211,51 @@ else ifeq ($(platform), vita)
EXT_TARGET := $(TARGET_NAME)_$(platform).velf
EXT_INTER_TARGET := $(TARGET_NAME)_$(platform).elf
MACHDEP := -DVITA
PLATCFLAGS := -O3 -mfloat-abi=hard -ffast-math -fsingle-precision-constant
LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lUVLoader_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
WANT_ZLIB := 1
INCLUDE += -Ideps/libvita2d/include
INCLUDE += -Ideps/zlib
PLATCFLAGS := -marm -mfloat-abi=hard -fsingle-precision-constant \
-mword-relocations -fno-unwind-tables -fno-asynchronous-unwind-tables -ftree-vectorize -fno-optimize-sibling-calls
LIBS += -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
-lSceSysmodule_stub -lSceCtrl_stub -lSceTouch_stub -lSceAudio_stub -lSceFiber_stub\
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
-lSceMotion_stub -lSceAppMgr_stub -lpng -lm -lc
PLATOBJS += libretro-common/conversion/s16_to_float_neon.o \
audio/drivers_resampler/sinc_resampler_neon.o \
audio/drivers_resampler/cc_resampler_neon.o
PLATOBJS += $(DEPS_DIR)/libvita2d/shader/clear_v_gxp.o \
$(DEPS_DIR)/libvita2d/shader/clear_f_gxp.o \
$(DEPS_DIR)/libvita2d/shader/color_v_gxp.o \
$(DEPS_DIR)/libvita2d/shader/color_f_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_v_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_f_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_tint_f_gxp.o
PLATOBJS += \
libretro-common/audio/conversion/s16_to_float_neon.o \
libretro-common/audio/conversion/float_to_s16_neon.o \
memory/neon/memcpy-neon.o \
libretro-common/audio/resampler/drivers/sinc_resampler_neon.o \
audio/drivers_resampler/cc_resampler_neon.o
LIBDIRS += -L.
LDFLAGS += -Wl,-q
HAVE_FILTERS_BUILTIN := 1
HAVE_BUILTIN_AUTOCONFIG := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_VITA2D := 1
HAVE_NETWORKING := 1
HAVE_NETPLAY := 1
HAVE_OVERLAY := 1
HAVE_MATERIALUI := 1
HAVE_XMB := 1
HAVE_STB_FONT :=1
RARCH_CONSOLE = 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
endif
@@ -288,7 +311,11 @@ CFLAGS += -DHAVE_RARCH_EXEC
endif
ifeq ($(HAVE_ZLIB), 1)
CFLAGS += -DHAVE_ZLIB -DWANT_ZLIB
CFLAGS += -DHAVE_ZLIB
endif
ifeq ($(WANT_ZLIB), 1)
CFLAGS += -DWANT_ZLIB
endif
ifeq ($(HAVE_RPNG), 1)
@@ -303,6 +330,10 @@ ifeq ($(HAVE_RTGA), 1)
CFLAGS += -DHAVE_RTGA
endif
ifeq ($(HAVE_IMAGEVIEWER), 1)
CFLAGS += -DHAVE_IMAGEVIEWER
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP
endif
@@ -311,18 +342,10 @@ ifeq ($(HAVE_OVERLAY), 1)
CFLAGS += -DHAVE_OVERLAY
endif
ifeq ($(HAVE_BUILTIN_AUTOCONFIG), 1)
CFLAGS += -DHAVE_BUILTIN_AUTOCONFIG
endif
ifeq ($(HAVE_NETWORKING), 1)
CFLAGS += -DHAVE_NETWORKING
endif
ifeq ($(HAVE_NETPLAY), 1)
CFLAGS += -DHAVE_NETPLAY
endif
ifeq ($(RARCH_CONSOLE), 1)
CFLAGS += -DRARCH_CONSOLE
endif
@@ -333,6 +356,18 @@ endif
CFLAGS += -std=gnu99 -DSINC_LOWER_QUALITY -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
ifeq ($(HAVE_MATERIALUI), 1)
CFLAGS += -DHAVE_MATERIALUI
endif
ifeq ($(HAVE_XMB), 1)
CFLAGS += -DHAVE_XMB
endif
ifeq ($(HAVE_STB_FONT), 1)
CFLAGS += -DHAVE_STB_FONT
endif
ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
@@ -346,10 +381,9 @@ CFLAGS += -DHAVE_THREADS
ifeq ($(platform), psp1)
LIBS += -lpthread-psp
endif
ifeq ($(platform), vita)
LIBS += -lpthread
endif
ifeq ($(HAVE_VITA2D), 1)
LIBS := -lvita2d $(LIBS)
endif
ifeq ($(HAVE_RSOUND), 1)
@@ -364,6 +398,8 @@ ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g -DDEBUG
else ifeq ($(platform), psp1)
CFLAGS += -O2
else ifeq ($(platform), vita)
CFLAGS += -O3
else
CFLAGS += -O3
endif
@@ -374,8 +410,11 @@ all: $(EXT_TARGET)
$(ELF2DOL) $< $@
%.velf: %.elf
ifneq ($(DEBUG), 1)
arm-vita-eabi-strip -g $<
vita-elf-create $< $@ $(VITASDK)/share/db.json $(VITASDK)/share/extra.json
endif
vita-elf-create $< $@
vita-make-fself -s $@ eboot.bin
%.elf32: %.elf
ifeq ($(platform), xenon360)
@@ -388,7 +427,7 @@ ifeq ($(platform),psp1)
endif
$(EXT_INTER_TARGET): $(OBJ)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
+4 -2
View File
@@ -68,7 +68,7 @@ ifeq ($(HAVE_RLAUNCH), 1)
DEFINES += -DHAVE_RLAUNCH
endif
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
@@ -106,7 +106,9 @@ 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_NETPLAY=1 -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 -DHAVE_BUILTIN_AUTOCONFIG
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_IMAGEVIEWER
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
+1 -1
View File
@@ -104,7 +104,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_NETPLAY=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_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)
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
+1
View File
@@ -31,6 +31,7 @@ PPU_SRCS = frontend/frontend_salamander.c \
libretro-common/hash/rhash.c \
libretro-common/string/stdstring.c \
libretro-common/compat/compat_strl.c \
libretro-common/compat/compat_strcasestr.c \
libretro-common/streams/file_stream.c \
libretro-common/file/config_file.c \
file_path_str.c \
+1 -1
View File
@@ -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_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts
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
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
+1 -1
View File
@@ -23,7 +23,7 @@ INCDIR = deps/zlib deps/7zip libretro-common/include
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
ASFLAGS = $(CFLAGS)
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DSINC_LOWEST_QUALITY -DHAVE_BUILTIN_AUTOCONFIG -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DSINC_LOWEST_QUALITY -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
LIBDIR =
LDFLAGS =
+1
View File
@@ -41,6 +41,7 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.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 \
+198
View File
@@ -0,0 +1,198 @@
TARGET := retroarch_vita
DEBUG ?= 0
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
VITA_TITLE_ID := RETROARCH
VITA_TITLE_NAME := RetroArch
PC_DEVELOPMENT_IP_ADDRESS =
PC_DEVELOPMENT_UDP_PORT =
OBJ :=
DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1
DEFINES += -DHAVE_NEON -DHAVE_MENU -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB -DHAVE_CC_RESAMPLER
ifeq ($(DEBUG), 1)
DEFINES += -DHAVE_NETLOGGER
endif
else
HAVE_NEON := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_VITA2D := 1
HAVE_NETWORKING := 1
HAVE_SOCKET_LEGACY := 1
HAVE_MENU := 1
HAVE_MENU_COMMON := 1
HAVE_OVERLAY := 1
HAVE_MATERIALUI := 1
HAVE_XMB := 1
HAVE_RGUI := 1
HAVE_STB_FONT := 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
HAVE_CC_RESAMPLER := 1
RARCH_CONSOLE := 1
ifeq ($(DEBUG), 1)
HAVE_NETLOGGER = 1
endif
include Makefile.common
BLACKLIST :=
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += input/drivers/psp_input.o
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
ifeq ($(strip $(VITASDK)),)
$(error "Please set VITASDK in your environment. export VITASDK=<path to>vitasdk")
endif
export PATH := $(PATH):$(VITASDK)/bin
PREFIX := arm-vita-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
AS := $(PREFIX)as
AR := $(PREFIX)ar
OBJCOPY := $(PREFIX)objcopy
STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)
INCDIRS := -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
LIBDIRS := -L.
ARCHFLAGS := -march=armv7-a -mfpu=neon -mfloat-abi=hard -DVITA
CFLAGS += $(ARCHFLAGS) -mword-relocations -fno-optimize-sibling-calls
ifeq ($(DEBUG), 1)
CFLAGS += -O2 -g
else
CFLAGS += -O3
endif
ASFLAGS := $(CFLAGS)
LDFLAGS := -Wl,-q
CFLAGS += -Wall -ffast-math
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
ifneq ($(PC_DEVELOPMENT_IP_ADDRESS),)
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS='"$(PC_DEVELOPMENT_IP_ADDRESS)"'
endif
ifneq ($(PC_DEVELOPMENT_UDP_PORT),)
CFLAGS += -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
VITA_LIBS := -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub \
-lSceSysmodule_stub -lSceCtrl_stub -lSceTouch_stub -lSceAudio_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
-lSceFiber_stub -lSceMotion_stub -lSceAppMgr_stub -lpthread -lpng -lz
LIBS := $(WHOLE_START) -lretro_vita $(WHOLE_END) $(VITA_LIBS) -lm -lc
TARGETS := $(TARGET).vpk
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
POSTCOMPILE = mv -f $*.Tdepend $*.depend
all: $(TARGETS)
%.o: %.cpp
%.o: %.cpp %.depend
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.c
%.o: %.c %.depend
$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.S
%.o: %.S %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.s
%.o: %.s %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.depend: ;
$(TARGET).elf: $(OBJ) libretro_vita.a
$(LD) $(OBJ) $(LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
%.velf: %.elf
vita-elf-create $< $@
%.self: %.velf
vita-make-fself -c -s $< $@
%.vpk: %.self
vita-mksfoex -s TITLE_ID=$(VITA_TITLE_ID) "$(VITA_TITLE_NAME)" param.sfo
vita-pack-vpk -s param.sfo -b $< $@
clean:
rm -f $(OBJ) $(TARGET).elf $(TARGET).velf $(TARGET).self param.sfo $(TARGET).vpk
rm -f $(OBJ:.o=.depend)
# Useful for developers
vpksend: $(TARGET).vpk
curl -T $< ftp://$(PSVITAIP):1337/ux0:/
send: $(TARGET).self
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
.PHONY: clean all send vpksend
.PRECIOUS: %.depend
-include $(OBJ:.o=.depend)
+83
View File
@@ -0,0 +1,83 @@
HAVE_FILE_LOGGER = 0
DEBUG = 0
TARGET = retroarchvita_salamander
TITLE_ID = RETROVITA
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O2
endif
PREFIX = arm-vita-eabi
CC = $(PREFIX)-gcc
INCDIR = libretro-common/include
CFLAGS = -Wl,-q $(OPTIMIZE_LV) -I$(INCDIR) -std=gnu99 -mfloat-abi=hard -ffast-math -fsingle-precision-constant -mword-relocations
ASFLAGS = $(CFLAGS)
RARCH_DEFINES = -DVITA -DIS_SALAMANDER -DRARCH_CONSOLE
LIBDIR =
LDFLAGS =
LIBS = -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lSceFiber_stub\
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
-lSceMotion_stub -lSceAppMgr_stub -lfreetype -lpng -lm -lc
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
CFLAGS += $(RARCH_DEFINES)
OBJS = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_psp.o \
frontend/drivers/platform_null.o \
libretro-common/file/file_path.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.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/hash/rhash.o \
file_path_str.o \
verbosity.o
all: $(TARGET).vpk
%.vpk: eboot.bin
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "$(TARGET)" param.sfo
vita-pack-vpk -s param.sfo -b eboot.bin $@
eboot.bin: $(TARGET).velf
vita-make-fself $< $@
%.velf: %.elf
vita-elf-create $< $@
$(TARGET).elf: $(OBJS)
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
%.o: %.png
$(PREFIX)-ld -r -b binary -o $@ $^
clean:
@rm -rf $(TARGET).vpk $(TARGET).velf $(TARGET).elf $(OBJS) \
eboot.bin param.sfo
vpksend: $(TARGET).vpk
curl -T $(TARGET).vpk ftp://$(PSVITAIP):1337/ux0:/
@echo "Sent."
PSVITAIP = 192.168.1.15
send: eboot.bin
curl -T eboot.bin ftp://$(PSVITAIP):1337/ux0:/app/$(TITLE_ID)/
@echo "Sent."
+1
View File
@@ -53,6 +53,7 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_stat.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
file_path_str.o \
verbosity.o \
+218
View File
@@ -0,0 +1,218 @@
TARGET := retroarch_wiiu
BUILD_HBL_ELF = 1
BUILD_RPX = 1
DEBUG = 0
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
PC_DEVELOPMENT_IP_ADDRESS =
PC_DEVELOPMENT_TCP_PORT =
OBJ :=
OBJ += wiiu/system/memory.o
OBJ += wiiu/system/exception_handler.o
OBJ += wiiu/fs/sd_fat_devoptab.o
OBJ += wiiu/fs/fs_utils.o
OBJ += wiiu/tex_shader.o
OBJ += wiiu/hbl.o
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
else
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_RGUI = 1
HAVE_ZLIB = 1
HAVE_7ZIP = 1
HAVE_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 0
HAVE_XMB = 0
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.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 += 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
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
endif
export PATH := $(PATH):$(DEVKITPPC)/bin
PREFIX := powerpc-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
AS := $(PREFIX)as
AR := $(PREFIX)ar
OBJCOPY := $(PREFIX)objcopy
STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)
ELF2RPL := wiiu/wut/elf2rpl/elf2rpl
ifneq ($(findstring Linux,$(shell uname -a)),)
else ifneq ($(findstring Darwin,$(shell uname -a)),)
else
ELF2RPL := $(ELF2RPL).exe
endif
INCDIRS := -I. -Ideps/zlib -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
LDFLAGS :=
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif
LDFLAGS := $(CFLAGS)
ASFLAGS := $(CFLAGS) -mregnames
CFLAGS += -ffast-math -Werror=implicit-function-declaration
#CFLAGS += -fomit-frame-pointer -mword-relocations
#CFLAGS += -Wall
#todo: remove -DWIIU and use the built-in macros instead (HW_WUP or __wiiu__).
CFLAGS += -DWIIU -DMSB_FIRST
CFLAGS += -DHAVE_MAIN
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
ifneq ($(PC_DEVELOPMENT_IP_ADDRESS),)
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS='"$(PC_DEVELOPMENT_IP_ADDRESS)"'
endif
ifneq ($(PC_DEVELOPMENT_TCP_PORT),)
CFLAGS += -DPC_DEVELOPMENT_TCP_PORT=$(PC_DEVELOPMENT_TCP_PORT)
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
LDFLAGS += -Wl,--gc-sections
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm -lfat -liosuhax
RPX_OBJ = wiiu/system/stubs_rpl.o
HBL_ELF_OBJ = wiiu/system/dynamic.o wiiu/system/stubs_elf.o
RPX_LDFLAGS := -pie -fPIE
RPX_LDFLAGS += -z common-page-size=64 -z max-page-size=64
RPX_LDFLAGS += -T wiiu/link_rpl.ld
RPX_LDFLAGS += -nostartfiles
HBL_ELF_LDFLAGS := -T wiiu/link_elf.ld
TARGETS :=
ifeq ($(BUILD_RPX), 1)
TARGETS += $(TARGET).rpx
endif
ifeq ($(BUILD_HBL_ELF), 1)
TARGETS += $(TARGET).elf
endif
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
POSTCOMPILE = mv -f $*.Tdepend $*.depend
all: $(TARGETS)
%.o: %.cpp
%.o: %.cpp %.depend
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.c
%.o: %.c %.depend
$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.S
%.o: %.S %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.s
%.o: %.s %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.a:
$(AR) -rc $@ $^
%.depend: ;
$(ELF2RPL):
$(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 $@
$(TARGET).rpx.elf: $(OBJ) $(RPX_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(LD) $(OBJ) $(RPX_OBJ) $(LDFLAGS) $(RPX_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx: $(TARGET).rpx.elf $(ELF2RPL)
-$(ELF2RPL) $(TARGET).rpx.elf $@
clean:
rm -f $(OBJ) $(RPX_OBJ) $(HBL_ELF_OBJ) $(TARGET).elf $(TARGET).rpx.elf $(TARGET).rpx
rm -f $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
.PHONY: clean all
.PRECIOUS: %.depend
-include $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
+176
View File
@@ -0,0 +1,176 @@
TARGET := retroarch_wiiu_salamander
BUILD_HBL_ELF = 1
BUILD_RPX = 1
DEBUG = 0
PC_DEVELOPMENT_IP_ADDRESS =
PC_DEVELOPMENT_TCP_PORT =
OBJ :=
OBJ += wiiu/system/memory.o
OBJ += wiiu/system/exception_handler.o
OBJ += wiiu/fs/sd_fat_devoptab.o
OBJ += wiiu/fs/fs_utils.o
OBJ += wiiu/hbl.o
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/compat/compat_strcasestr.o
OBJ += libretro-common/file/file_path.o
OBJ += libretro-common/string/stdstring.o
OBJ += libretro-common/lists/string_list.o
OBJ += libretro-common/lists/dir_list.o
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/hash/rhash.o
OBJ += file_path_str.o
OBJ += verbosity.o
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPRO")
endif
export PATH := $(PATH):$(DEVKITPPC)/bin
PREFIX := powerpc-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
AS := $(PREFIX)as
AR := $(PREFIX)ar
OBJCOPY := $(PREFIX)objcopy
STRIP := $(PREFIX)strip
NM := $(PREFIX)nm
LD := $(CXX)
ELF2RPL := wiiu/wut/elf2rpl/elf2rpl
ifneq ($(findstring Linux,$(shell uname -a)),)
else ifneq ($(findstring Darwin,$(shell uname -a)),)
else
ELF2RPL := $(ELF2RPL).exe
endif
INCDIRS := -I. -Ideps/zlib -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
LDFLAGS :=
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3
endif
LDFLAGS := $(CFLAGS)
ASFLAGS := $(CFLAGS) -mregnames
CFLAGS += -ffast-math -Werror=implicit-function-declaration
#CFLAGS += -fomit-frame-pointer -mword-relocations
#CFLAGS += -Wall
#todo: remove -DWIIU and use the built-in macros instead (HW_WUP or __wiiu__).
CFLAGS += -DWIIU -DMSB_FIRST
CFLAGS += -DHAVE_MAIN
CFLAGS += -DRARCH_CONSOLE -DIS_SALAMANDER
ifneq ($(PC_DEVELOPMENT_IP_ADDRESS),)
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS='"$(PC_DEVELOPMENT_IP_ADDRESS)"'
endif
ifneq ($(PC_DEVELOPMENT_TCP_PORT),)
CFLAGS += -DPC_DEVELOPMENT_TCP_PORT=$(PC_DEVELOPMENT_TCP_PORT)
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
LDFLAGS += -Wl,--gc-sections
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm -lfat -liosuhax
RPX_OBJ = wiiu/system/stubs_rpl.o
HBL_ELF_OBJ = wiiu/system/dynamic.o wiiu/system/stubs_elf.o
RPX_LDFLAGS := -pie -fPIE
RPX_LDFLAGS += -z common-page-size=64 -z max-page-size=64
RPX_LDFLAGS += -T wiiu/link_rpl.ld
RPX_LDFLAGS += -nostartfiles
HBL_ELF_LDFLAGS := -T wiiu/link_elf.ld
TARGETS :=
ifeq ($(BUILD_RPX), 1)
TARGETS += $(TARGET).rpx
endif
ifeq ($(BUILD_HBL_ELF), 1)
TARGETS += $(TARGET).elf
endif
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
POSTCOMPILE = mv -f $*.Tdepend $*.depend
all: $(TARGETS)
%.o: %.cpp
%.o: %.cpp %.depend
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.c
%.o: %.c %.depend
$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.S
%.o: %.S %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.o: %.s
%.o: %.s %.depend
$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(POSTCOMPILE)
%.a:
$(AR) -rc $@ $^
%.depend: ;
$(ELF2RPL):
$(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 $@
$(TARGET).rpx.elf: $(OBJ) $(RPX_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(LD) $(OBJ) $(RPX_OBJ) $(LDFLAGS) $(RPX_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx: $(TARGET).rpx.elf $(ELF2RPL)
-$(ELF2RPL) $(TARGET).rpx.elf $@
clean:
rm -f $(OBJ) $(RPX_OBJ) $(HBL_ELF_OBJ) $(TARGET).elf $(TARGET).rpx.elf $(TARGET).rpx
rm -f $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
.PHONY: clean all
.PRECIOUS: %.depend
-include $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
+1 -2
View File
@@ -7,7 +7,6 @@ HAVE_OPENGL = 1
HAVE_FBO = 1
HAVE_DYLIB = 1
HAVE_D3D9 = 1
HAVE_NETPLAY = 1
HAVE_NETWORKING = 1
HAVE_STDIN_CMD = 1
HAVE_COMMAND = 1
@@ -15,7 +14,6 @@ HAVE_THREADS = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 1
HAVE_7ZIP = 1
HAVE_ZLIB_DEFLATE = 1
HAVE_PYTHON = 0
DYNAMIC = 1
@@ -34,6 +32,7 @@ HAVE_CG := 1
HAVE_LIBXML2 := 0
HAVE_ZLIB := 1
WANT_ZLIB := 1
HAVE_CC_RESAMPLER := 1
ifeq ($(HAVE_CG), 1)
CG_LIBS := -lcg -lcgGL
+1 -1
View File
@@ -18,7 +18,7 @@ So we will use
First we will clone and build the kernel:
git clone https://github.com/mireq/linux-sunxi.git -b sunxi-3.4 --depth 1
Now we edit drivers/video/sunxi/disp/dev_fb.c, and uncoment the line 1074:
Now we edit drivers/video/sunxi/disp/dev_fb.c, and uncomment the line 1074:
// Fb_wait_for_vsync(info);
It is assumed you have a cross-compiler installed, so we configure and build the kernel and modules:
+30 -24
View File
@@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.org/libretro/RetroArch.svg?branch=master)](https://travis-ci.org/libretro/RetroArch)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/8936/badge.svg)](https://scan.coverity.com/projects/retroarch)
# RetroArch
RetroArch is the reference frontend for the libretro API.
@@ -18,11 +21,11 @@ interface to include support for emulators and/or game engines. libretro is comp
## Binaries
Latest Windows binaries are currently hosted on the buildbot -(http://buildbot.libretro.com/).
Latest Windows binaries are currently hosted on the [buildbot](http://buildbot.libretro.com/).
## Support
To reach developers, either make an issue here on Github, make a thread on the [forum](http://www.libretro.com/forums/),
To reach developers, either make an issue here on GitHub, make a thread on the [forum](http://www.libretro.com/forums/),
or visit our IRC channel: #retroarch @ irc.freenode.org.
## Documentation
@@ -51,7 +54,7 @@ RetroArch also emphasizes on being easy to integrate into various launcher front
RetroArch has been ported to the following platforms outside PC:
- PlayStation3
- PlayStation 3
- Xbox 360 (Libxenon/XeXDK)
- Xbox 1
- Wii, Gamecube (Libogc)
@@ -113,10 +116,11 @@ A sample configuration file is installed to /etc/retroarch.cfg. This is the syst
RetroArch will on startup create a config file in $XDG\_CONFIG\_HOME/retroarch/retroarch.cfg if doesn't exist.
Users only need to configure a certain option if the desired value deviates from the value defined in config.def.h.
To configure joypads, use the built-in menu or the <tt>retroarch-joyconfig</tt> command-line tool.
To configure joypads, use the built-in menu or the `retroarch-joyconfig` command-line tool.
## Compiling and installing
<b>Linux</b><br/>
**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
@@ -127,7 +131,8 @@ sudo apt-get install -y make git-core curl g++ pkg-config libglu1-mesa-dev freeg
make
```
<b>Mac</b><br/>
**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:
@@ -145,62 +150,63 @@ xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch
open ./pkg/apple/build/Release/RetroArch.app/
```
<b>PC</b><br/>
**PC**
Instructions for compiling on PC can be found in the [wiki](https://github.com/Themaister/RetroArch/wiki).
<b>PlayStation3</b><br/>
**PlayStation 3**
RetroArch PS3 needs to be compiled in the following order:
1) Compile RetroArch Salamander
<tt>make -f Makefile.ps3.salamander</tt>
make -f Makefile.ps3.salamander
2) Finally, compile RetroArch packed together with the GUI:
<tt>make -f Makefile.ps3</tt>
make -f Makefile.ps3
<b>PlayStation3 - Creating a PKG installable file</b><br />
**PlayStation 3 - Creating a PKG installable file**
You can add `pkg` as a parameter in order to make a PKG file - for example:
<tt>make -f Makefile.ps3 pkg</tt>
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:
<tt>make -f Makefile.ps3 pkg-signed</tt>
make -f Makefile.ps3 pkg-signed
If you're using Kmeaw 3.55 firmware, the package needs to be signed:
<tt>make -f Makefile.ps3 pkg-signed-cfw</tt>
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 <em><b>`libretro_ps3.a`</b></em>.
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`***.
<b> Xbox 360 (XeXDK)</b><br />
**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:
<tt>pkg/msvc-360/RetroArch-360.sln</tt>
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 <em><b>`libretro_xdk360.lib`</b></em>.
called ***`libretro_xdk360.lib`***.
<b> Xbox 360 (Libxenon)</b><br />
**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.
<tt>make -f Makefile.xenon</tt>
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 <em><b>`libretro_xenon360.a`</b></em>.
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`***.
<b> Wii</b><br >
**Wii**
You will need to have the libogc libraries and a working Devkit PPC toolchain installed in order to compile RetroArch Wii.
<tt>make -f Makefile.griffin platform=wii</tt>
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 <em><b>`libretro_wii.a`</b></em>.
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`***.
+324 -303
View File
File diff suppressed because it is too large. Load diff
+44 -20
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -24,9 +24,6 @@
#include <boolean.h>
#include <retro_common_api.h>
#include "audio_dsp_filter.h"
#include "audio_resampler_driver.h"
RETRO_BEGIN_DECLS
#define AUDIO_CHUNK_SIZE_BLOCKING 512
@@ -42,7 +39,8 @@ typedef struct audio_driver
*
* Returns: audio driver handle on success, otherwise NULL.
**/
void *(*init)(const char *device, unsigned rate, unsigned latency);
void *(*init)(const char *device, unsigned rate,
unsigned latency, unsigned block_frames, unsigned *new_rate);
/*
* @data : Pointer to audio data handle.
@@ -50,26 +48,57 @@ typedef struct audio_driver
* @size : Size of audio buffer.
*
* Write samples to audio driver.
**/
ssize_t (*write)(void *data, const void *buf, size_t size);
*
* Write data in buffer to audio driver.
* A frame here is defined as one combined sample of left and right
* channels. (I.e. 44.1kHz, 16-bit stereo has 88.2k samples/s, and
* 44.1k frames/s.)
*
* Samples are interleaved in format LRLRLRLRLR ...
* If the driver returns true in use_float(), a floating point
* format will be used, with range [-1.0, 1.0].
* If not, signed 16-bit samples in native byte ordering will be used.
*
* This function returns the number of frames successfully written.
* If an error occurs, -1 should be returned.
* Note that non-blocking behavior that cannot write at this time
* should return 0 as returning -1 will terminate the 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);
/* Stops driver. */
/* Temporarily pauses the audio driver. */
bool (*stop)(void *data);
/* Starts driver. */
bool (*start)(void *data);
/* Resumes audio driver from the paused state. */
bool (*start)(void *data, bool is_shutdown);
/* 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
* implement nonblocking writes, this can be disregarded, but should
* log a message to stderr.
* */
void (*set_nonblock_state)(void *data, bool toggle);
/* Frees driver data. */
/* Stops and frees driver data. */
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
* resampler unit uses floating point. The sample range is
* [-1.0, 1.0].
* */
bool (*use_float)(void *data);
/* Human-readable identifier. */
@@ -97,16 +126,10 @@ void audio_driver_set_active(void);
void audio_driver_unset_active(void);
bool audio_driver_is_active(void);
void audio_driver_destroy(void);
void audio_driver_deinit_resampler(void);
bool audio_driver_init_resampler(void);
void audio_driver_process_resampler(struct resampler_data *data);
bool audio_driver_free_devices_list(void);
bool audio_driver_new_devices_list(void);
@@ -179,7 +202,7 @@ bool audio_driver_find_driver(void);
bool audio_driver_toggle_mute(void);
bool audio_driver_start(void);
bool audio_driver_start(bool is_shutdown);
bool audio_driver_stop(void);
@@ -211,6 +234,7 @@ extern audio_driver_t audio_coreaudio;
extern audio_driver_t audio_xenon360;
extern audio_driver_t audio_ps3;
extern audio_driver_t audio_gx;
extern audio_driver_t audio_ax;
extern audio_driver_t audio_psp;
extern audio_driver_t audio_ctr_csnd;
extern audio_driver_t audio_ctr_dsp;
-96
View File
@@ -1,96 +0,0 @@
/* 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.
*
* 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 "dspfilter.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
struct panning_data
{
float left[2];
float right[2];
};
static void panning_free(void *data)
{
free(data);
}
static void panning_process(void *data, struct dspfilter_output *output,
const struct dspfilter_input *input)
{
unsigned i;
float *out;
struct panning_data *pan = (struct panning_data*)data;
output->samples = input->samples;
output->frames = input->frames;
out = output->samples;
for (i = 0; i < input->frames; i++, out += 2)
{
float left = out[0];
float right = out[1];
out[0] = left * pan->left[0] + right * pan->left[1];
out[1] = left * pan->right[0] + right * pan->right[1];
}
}
static void *panning_init(const struct dspfilter_info *info,
const struct dspfilter_config *config, void *userdata)
{
static const float default_left[] = { 1.0f, 0.0f };
static const float default_right[] = { 0.0f, 1.0f };
float *left = NULL, *right = NULL;
unsigned num_left = 0, num_right = 0;
struct panning_data *pan = (struct panning_data*)calloc(1, sizeof(*pan));
if (!pan)
return NULL;
config->get_float_array(userdata, "left_mix", &left, &num_left, default_left, 2);
config->get_float_array(userdata, "right_mix", &right, &num_right, default_right, 2);
memcpy(pan->left, (num_left == 2) ? left : default_left, sizeof(pan->left));
memcpy(pan->right, (num_right == 2) ? right : default_right, sizeof(pan->right));
config->free(left);
config->free(right);
return pan;
}
static const struct dspfilter_implementation panning = {
panning_init,
panning_process,
panning_free,
DSPFILTER_API_VERSION,
"Panning",
"panning",
};
#ifdef HAVE_FILTERS_BUILTIN
#define dspfilter_get_implementation panning_dspfilter_get_implementation
#endif
const struct dspfilter_implementation *dspfilter_get_implementation(dspfilter_simd_mask_t mask)
{
(void)mask;
return &panning;
}
#undef dspfilter_get_implementation
+18 -9
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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,7 +21,6 @@
#include <rthreads/rthreads.h>
#include "audio_thread_wrapper.h"
#include "../performance_counters.h"
#include "../verbosity.h"
typedef struct audio_thread
@@ -36,14 +35,17 @@ typedef struct audio_thread
bool stopped;
bool stopped_ack;
bool is_paused;
bool is_shutdown;
bool use_float;
int inited;
/* Initialization options. */
const char *device;
unsigned *new_rate;
unsigned out_rate;
unsigned latency;
unsigned block_frames;
} audio_thread_t;
static void audio_thread_loop(void *data)
@@ -54,7 +56,8 @@ 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;
if (thr->inited > 0 && thr->driver->use_float)
@@ -98,7 +101,7 @@ static void audio_thread_loop(void *data)
scond_wait(thr->cond, thr->lock);
}
thr->driver->start(thr->driver_data);
thr->driver->start(thr->driver_data, thr->is_shutdown);
}
slock_unlock(thr->lock);
@@ -195,7 +198,7 @@ static bool audio_thread_stop(void *data)
return true;
}
static bool audio_thread_start(void *data)
static bool audio_thread_start(void *data, bool is_shutdown)
{
audio_thread_t *thr = (audio_thread_t*)data;
@@ -204,7 +207,8 @@ static bool audio_thread_start(void *data)
audio_driver_enable_callback();
thr->is_paused = false;
thr->is_paused = false;
thr->is_shutdown = is_shutdown;
audio_thread_unblock(thr);
return true;
@@ -224,7 +228,8 @@ 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)
static ssize_t audio_thread_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
ssize_t ret;
audio_thread_t *thr = (audio_thread_t*)data;
@@ -232,7 +237,8 @@ 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);
ret = thr->driver->write(thr->driver_data, buf, size,
is_perfcnt_enable);
if (ret < 0)
{
@@ -277,7 +283,8 @@ static const audio_driver_t audio_thread = {
**/
bool audio_init_thread(const audio_driver_t **out_driver,
void **out_data, const char *device, unsigned audio_out_rate,
unsigned latency, const audio_driver_t *drv)
unsigned *new_rate, unsigned latency,
unsigned block_frames, const audio_driver_t *drv)
{
audio_thread_t *thr = (audio_thread_t*)calloc(1, sizeof(*thr));
if (!thr)
@@ -286,7 +293,9 @@ bool audio_init_thread(const audio_driver_t **out_driver,
thr->driver = (const audio_driver_t*)drv;
thr->device = device;
thr->out_rate = audio_out_rate;
thr->new_rate = new_rate;
thr->latency = latency;
thr->block_frames = block_frames;
if (!(thr->cond = scond_new()))
goto error;
+4 -2
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -27,6 +27,7 @@
* @out_data : output audio data
* @device : audio device (optional)
* @out_rate : output audio rate
* @new_rate : new output audio rate
* @latency : audio latency
* @driver : audio driver
*
@@ -37,7 +38,8 @@
* Returns: true (1) if successful, otherwise false (0).
**/
bool audio_init_thread(const audio_driver_t **out_driver, void **out_data,
const char *device, unsigned out_rate, unsigned latency,
const char *device, unsigned out_rate, unsigned *new_rate, unsigned latency,
unsigned block_frames,
const audio_driver_t *driver);
#endif
+23 -15
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -16,11 +17,11 @@
#include <stdlib.h>
#include <lists/string_list.h>
#include <string/stdstring.h>
#include <alsa/asoundlib.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct alsa
@@ -53,19 +54,20 @@ static bool find_float_format(snd_pcm_t *pcm, void *data)
return false;
}
static void *alsa_init(const char *device, unsigned rate, unsigned latency)
static void *alsa_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
snd_pcm_format_t format;
snd_pcm_uframes_t buffer_size;
snd_pcm_hw_params_t *params = NULL;
snd_pcm_hw_params_t *params = NULL;
snd_pcm_sw_params_t *sw_params = NULL;
unsigned latency_usec = latency * 1000;
unsigned channels = 2;
unsigned periods = 4;
const char *alsa_dev = "default";
alsa_t *alsa = (alsa_t*)calloc(1, sizeof(alsa_t));
unsigned latency_usec = latency * 1000;
unsigned channels = 2;
unsigned periods = 4;
unsigned orig_rate = rate;
const char *alsa_dev = "default";
alsa_t *alsa = (alsa_t*)calloc(1, sizeof(alsa_t));
if (!alsa)
return NULL;
@@ -96,9 +98,14 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency)
if (snd_pcm_hw_params_set_channels(alsa->pcm, params, channels) < 0)
goto error;
if (snd_pcm_hw_params_set_rate(alsa->pcm, params, rate, 0) < 0)
/* Don't allow rate resampling when probing for the default rate (but ignore if this call fails) */
snd_pcm_hw_params_set_rate_resample(alsa->pcm, params, 0 );
if (snd_pcm_hw_params_set_rate_near(alsa->pcm, params, &rate, 0) < 0)
goto error;
if (rate != orig_rate)
*new_rate = rate;
if (snd_pcm_hw_params_set_buffer_time_near(
alsa->pcm, params, &latency_usec, NULL) < 0)
goto error;
@@ -166,7 +173,8 @@ error:
return NULL;
}
static ssize_t alsa_write(void *data, const void *buf_, size_t size_)
static ssize_t alsa_write(void *data, const void *buf_, size_t size_,
bool is_perfcnt_enable)
{
alsa_t *alsa = (alsa_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
@@ -224,7 +232,7 @@ static ssize_t alsa_write(void *data, const void *buf_, size_t size_)
return written;
else if (frames < 0)
{
RARCH_ERR("[ALSA]: Unknown error occured (%s).\n",
RARCH_ERR("[ALSA]: Unknown error occurred (%s).\n",
snd_strerror(frames));
return -1;
}
@@ -270,7 +278,7 @@ static void alsa_set_nonblock_state(void *data, bool state)
alsa->nonblock = state;
}
static bool alsa_start(void *data)
static bool alsa_start(void *data, bool is_shutdown)
{
alsa_t *alsa = (alsa_t*)data;
@@ -356,7 +364,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || !strcmp(io,"Output"))
if (!io || string_is_equal(io,"Output"))
string_list_append(s, name, attr);
if (name)
+13 -13
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -19,7 +19,6 @@
#include <sys/asoundlib.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#define MAX_FRAG_SIZE 3072
#define DEFAULT_RATE 48000
@@ -46,14 +45,14 @@ typedef struct alsa
typedef long snd_pcm_sframes_t;
static void *alsa_qsa_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency, unsigned block_frames,
unsigned *new_rate)
{
int err, card, dev, i;
snd_pcm_channel_params_t params = {0};
snd_pcm_channel_info_t pi;
snd_pcm_channel_setup_t setup = {0};
settings_t *settings = config_get_ptr();
alsa_t *alsa = (alsa_t*)calloc(1, sizeof(alsa_t));
snd_pcm_channel_params_t params = {0};
snd_pcm_channel_setup_t setup = {0};
alsa_t *alsa = (alsa_t*)calloc(1, sizeof(alsa_t));
if (!alsa)
return NULL;
@@ -122,8 +121,8 @@ static void *alsa_qsa_init(const char *device,
goto error;
}
if (settings->audio.block_frames)
alsa->buf_size = settings->audio.block_frames * 4;
if (block_frames)
alsa->buf_size = block_frames * 4;
else
alsa->buf_size = next_pow2(32 * latency);
@@ -164,9 +163,9 @@ error:
static int check_pcm_status(void *data, int channel_type)
{
alsa_t *alsa = (alsa_t*)data;
snd_pcm_channel_status_t status;
int ret = EOK;
alsa_t *alsa = (alsa_t*)data;
int ret = EOK;
memset(&status, 0, sizeof (status));
status.channel = channel_type;
@@ -220,7 +219,8 @@ static int check_pcm_status(void *data, int channel_type)
}
static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size)
static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
alsa_t *alsa = (alsa_t*)data;
snd_pcm_sframes_t written = 0;
@@ -291,7 +291,7 @@ static bool alsa_qsa_alive(void *data)
return false;
}
static bool alsa_qsa_start(void *data)
static bool alsa_qsa_start(void *data, bool is_shutdown)
{
alsa_t *alsa = (alsa_t*)data;
+22 -22
View File
@@ -22,14 +22,13 @@
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
#include <string/stdstring.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#define TRY_ALSA(x) if (x < 0) { \
goto error; \
}
#define TRY_ALSA(x) if (x < 0) \
goto error;
typedef struct alsa_thread
{
@@ -53,8 +52,8 @@ typedef struct alsa_thread
static void alsa_worker_thread(void *data)
{
alsa_thread_t *alsa = (alsa_thread_t*)data;
uint8_t *buf = (uint8_t *)calloc(1, alsa->period_size);
uint8_t *buf = (uint8_t *)calloc(1, alsa->period_size);
if (!buf)
{
RARCH_ERR("failed to allocate audio buffer");
@@ -92,7 +91,7 @@ static void alsa_worker_thread(void *data)
}
else if (frames < 0)
{
RARCH_ERR("[ALSA]: Unknown error occured (%s).\n",
RARCH_ERR("[ALSA]: Unknown error occurred (%s).\n",
snd_strerror(frames));
break;
}
@@ -155,21 +154,20 @@ static void alsa_thread_free(void *data)
}
static void *alsa_thread_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
alsa_thread_t *alsa = (alsa_thread_t*)calloc(1, sizeof(alsa_thread_t));
snd_pcm_hw_params_t *params = NULL;
snd_pcm_sw_params_t *sw_params = NULL;
const char *alsa_dev = device ? device : "default";
unsigned latency_usec = latency * 1000 / 2;
unsigned channels = 2;
unsigned periods = 4;
snd_pcm_uframes_t buffer_size;
snd_pcm_format_t format;
snd_pcm_hw_params_t *params = NULL;
snd_pcm_sw_params_t *sw_params = NULL;
const char *alsa_dev = device ? device : "default";
unsigned latency_usec = latency * 1000 / 2;
unsigned channels = 2;
unsigned periods = 4;
alsa_thread_t *alsa = (alsa_thread_t*)
calloc(1, sizeof(alsa_thread_t));
if (!alsa)
return NULL;
@@ -245,7 +243,8 @@ error:
return NULL;
}
static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
static ssize_t alsa_thread_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
alsa_thread_t *alsa = (alsa_thread_t*)data;
@@ -286,7 +285,8 @@ static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
else
{
size_t write_amt = MIN(size - written, avail);
fifo_write(alsa->buffer, (const char*)buf + written, write_amt);
fifo_write(alsa->buffer,
(const char*)buf + written, write_amt);
slock_unlock(alsa->fifo_lock);
written += write_amt;
}
@@ -318,7 +318,7 @@ static void alsa_thread_set_nonblock_state(void *data, bool state)
alsa->nonblock = state;
}
static bool alsa_thread_start(void *data)
static bool alsa_thread_start(void *data, bool is_shutdown)
{
alsa_thread_t *alsa = (alsa_thread_t*)data;
@@ -371,7 +371,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || !strcmp(io,"Output"))
if (!io || string_is_equal(io,"Output"))
string_list_append(s, name, attr);
if (name)
+38 -40
View File
@@ -33,23 +33,14 @@
#include <string/stdstring.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#if defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__)
#ifndef OSX_PPC
#define OSX_PPC
#endif
#endif
typedef struct coreaudio
{
slock_t *lock;
scond_t *cond;
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
ComponentInstance dev;
#else
AudioComponentInstance dev;
@@ -74,7 +65,7 @@ static void coreaudio_free(void *data)
if (dev->dev_alive)
{
AudioOutputUnitStop(dev->dev);
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
CloseComponent(dev->dev);
#else
AudioComponentInstanceDispose(dev->dev);
@@ -95,8 +86,8 @@ static OSStatus audio_write_cb(void *userdata,
const AudioTimeStamp *time_stamp, UInt32 bus_number,
UInt32 number_frames, AudioBufferList *io_data)
{
void *outbuf;
unsigned write_avail;
void *outbuf = NULL;
coreaudio_t *dev = (coreaudio_t*)userdata;
(void)time_stamp;
@@ -143,35 +134,41 @@ static void coreaudio_interrupt_listener(void *data, UInt32 interrupt_state)
static void choose_output_device(coreaudio_t *dev, const char* device)
{
unsigned i;
AudioDeviceID *devices;
AudioObjectPropertyAddress propaddr =
{
kAudioHardwarePropertyDevices,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster
};
UInt32 deviceCount;
AudioObjectPropertyAddress propaddr;
AudioDeviceID *devices = NULL;
UInt32 size = 0;
UInt32 size = 0, deviceCount;
propaddr.mSelector = kAudioHardwarePropertyDevices;
#if MAC_OS_X_VERSION_10_12
propaddr.mScope = kAudioObjectPropertyScopeOutput;
#else
propaddr.mScope = kAudioObjectPropertyScopeGlobal;
#endif
propaddr.mElement = kAudioObjectPropertyElementMaster;
if (AudioObjectGetPropertyDataSize(kAudioObjectSystemObject,
&propaddr, 0, 0, &size) != noErr)
return;
deviceCount = size / sizeof(AudioDeviceID);
devices = (AudioDeviceID*)malloc(size);
devices = (AudioDeviceID*)malloc(size);
if (!devices || AudioObjectGetPropertyData(kAudioObjectSystemObject,
&propaddr, 0, 0, &size, devices) != noErr)
goto done;
propaddr.mScope = kAudioDevicePropertyScopeOutput;
#if MAC_OS_X_VERSION_10_12
#else
propaddr.mScope = kAudioDevicePropertyScopeOutput;
#endif
propaddr.mSelector = kAudioDevicePropertyDeviceName;
size = 1024;
for (i = 0; i < deviceCount; i ++)
{
char device_name[1024];
device_name[0] = 0;
size = 1024;
if (AudioObjectGetPropertyData(devices[i],
&propaddr, 0, 0, &size, device_name) == noErr
@@ -189,12 +186,14 @@ done:
#endif
static void *coreaudio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
size_t fifo_size;
UInt32 i_size;
AudioStreamBasicDescription real_desc;
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
Component comp;
#else
AudioComponent comp;
@@ -206,21 +205,19 @@ static void *coreaudio_init(const char *device,
AudioStreamBasicDescription stream_desc = {0};
bool component_unavailable = false;
static bool session_initialized = false;
coreaudio_t *dev = NULL;
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
ComponentDescription desc = {0};
#else
AudioComponentDescription desc = {0};
#endif
settings_t *settings = config_get_ptr();
coreaudio_t *dev = (coreaudio_t*)
calloc(1, sizeof(*dev));
if (!dev)
return NULL;
(void)session_initialized;
(void)device;
dev = (coreaudio_t*)calloc(1, sizeof(*dev));
if (!dev)
return NULL;
dev->lock = slock_new();
dev->cond = scond_new();
@@ -242,7 +239,7 @@ static void *coreaudio_init(const char *device,
#endif
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
comp = FindNextComponent(NULL, &desc);
#else
comp = AudioComponentFindNext(NULL, &desc);
@@ -250,7 +247,7 @@ static void *coreaudio_init(const char *device,
if (comp == NULL)
goto error;
#ifdef OSX_PPC
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
component_unavailable = (OpenAComponent(comp, &dev->dev) != noErr);
#else
component_unavailable = (AudioComponentInstanceNew(comp, &dev->dev) != noErr);
@@ -299,7 +296,7 @@ static void *coreaudio_init(const char *device,
RARCH_LOG("[CoreAudio]: Using output sample rate of %.1f Hz\n",
(float)real_desc.mSampleRate);
settings->audio.out_rate = real_desc.mSampleRate;
*new_rate = real_desc.mSampleRate;
/* Set channel layout (fails on iOS). */
#ifndef TARGET_OS_IPHONE
@@ -320,7 +317,7 @@ static void *coreaudio_init(const char *device,
if (AudioUnitInitialize(dev->dev) != noErr)
goto error;
fifo_size = (latency * settings->audio.out_rate) / 1000;
fifo_size = (latency * (*new_rate)) / 1000;
fifo_size *= 2 * sizeof(float);
dev->buffer_size = fifo_size;
@@ -342,11 +339,12 @@ error:
return NULL;
}
static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
static ssize_t coreaudio_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
coreaudio_t *dev = (coreaudio_t*)data;
coreaudio_t *dev = (coreaudio_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
size_t written = 0;
size_t written = 0;
while (!g_interrupted && size > 0)
{
@@ -407,7 +405,7 @@ static bool coreaudio_stop(void *data)
return dev->is_paused ? true : false;
}
static bool coreaudio_start(void *data)
static bool coreaudio_start(void *data, bool is_shutdown)
{
coreaudio_t *dev = (coreaudio_t*)data;
if (!dev)
+41 -33
View File
@@ -1,5 +1,5 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2016 - Ali Bouhlel
* Copyright (C) 2014-2017 - Ali Bouhlel
*
* 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-
@@ -15,11 +15,12 @@
#include <3ds.h>
#include <string.h>
#include <malloc.h>
#include <retro_miscellaneous.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../performance_counters.h"
#include "../../runloop.h"
typedef struct
{
@@ -48,37 +49,40 @@ typedef struct
static void ctr_csnd_audio_update_playpos(ctr_csnd_audio_t* ctr)
{
uint32_t samples_played;
uint64_t current_tick;
uint64_t current_tick = svcGetSystemTick();
uint32_t samples_played = (current_tick - ctr->cpu_ticks_last)
/ CTR_CSND_CPU_TICKS_PER_SAMPLE;
current_tick = svcGetSystemTick();
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;
ctr->cpu_ticks_last += samples_played * CTR_CSND_CPU_TICKS_PER_SAMPLE;
}
Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan, void* data0, void* data1, u32 size)
Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan,
void* data0, void* data1, u32 size)
{
if (!(csndChannels & BIT(chn)))
return 1;
u32 paddr0 = 0, paddr1 = 0;
u32 paddr0 = 0;
u32 paddr1 = 0;
int encoding = (flags >> 12) & 3;
int loopMode = (flags >> 10) & 3;
if (!loopMode) flags |= SOUND_ONE_SHOT;
if (!(csndChannels & BIT(chn)))
return 1;
if (!loopMode)
flags |= SOUND_ONE_SHOT;
if (encoding != CSND_ENCODING_PSG)
{
if (data0) paddr0 = osConvertVirtToPhys(data0);
if (data1) paddr1 = osConvertVirtToPhys(data1);
if (data0)
paddr0 = osConvertVirtToPhys(data0);
if (data1)
paddr1 = osConvertVirtToPhys(data1);
if (data0 && encoding == CSND_ENCODING_ADPCM)
{
int adpcmSample = ((s16*)data0)[-2];
int adpcmIndex = ((u8*)data0)[-2];
int adpcmIndex = ((u8*)data0)[-2];
CSND_SetAdpcmState(chn, 0, adpcmSample, adpcmIndex);
}
}
@@ -91,7 +95,8 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan, void* data
if (loopMode == CSND_LOOPMODE_NORMAL && paddr1 > paddr0)
{
// Now that the first block is playing, configure the size of the subsequent blocks
/* Now that the first block is playing,
* configure the size of the subsequent blocks */
size -= paddr1 - paddr0;
CSND_SetBlock(chn, 1, paddr1, size);
}
@@ -99,10 +104,11 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan, void* data
return 0;
}
static void *ctr_csnd_audio_init(const char *device, unsigned rate, unsigned latency)
static void *ctr_csnd_audio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
ctr_csnd_audio_t *ctr = (ctr_csnd_audio_t*)calloc(1, sizeof(ctr_csnd_audio_t));
settings_t *settings = config_get_ptr();
if (!ctr)
return NULL;
@@ -111,7 +117,7 @@ static void *ctr_csnd_audio_init(const char *device, unsigned rate, unsigned lat
(void)rate;
(void)latency;
settings->audio.out_rate = CTR_CSND_AUDIO_RATE;
*new_rate = CTR_CSND_AUDIO_RATE;
ctr->l = linearAlloc(CTR_CSND_AUDIO_SIZE);
ctr->r = linearAlloc(CTR_CSND_AUDIO_SIZE);
@@ -144,7 +150,9 @@ static void ctr_csnd_audio_free(void *data)
{
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
// csndExit();
#if 0
csndExit();
#endif
CSND_SetPlayState(0x8, 0);
CSND_SetPlayState(0x9, 0);
csndExecCmds(false);
@@ -155,22 +163,23 @@ 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)
static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
int i;
uint32_t samples_played = 0;
uint64_t current_tick = 0;
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;
const uint16_t *src = buf;
ctr_csnd_audio_t *ctr = (ctr_csnd_audio_t*)data;
(void)data;
(void)buf;
(void)samples_played;
(void)current_tick;
performance_counter_init(&ctraudio_f, "ctraudio_f");
performance_counter_start(&ctraudio_f);
performance_counter_init(ctraudio_f, "ctraudio_f");
performance_counter_start_plus(is_perfcnt_enable, ctraudio_f);
ctr_csnd_audio_update_playpos(ctr);
@@ -202,7 +211,7 @@ 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(&ctraudio_f);
performance_counter_stop_plus(is_perfcnt_enable, ctraudio_f);
return size;
}
@@ -237,14 +246,13 @@ static bool ctr_csnd_audio_alive(void *data)
return ctr->playing;
}
static bool ctr_csnd_audio_start(void *data)
static bool ctr_csnd_audio_start(void *data, bool is_shutdown)
{
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
/* Prevents restarting audio when the menu
* is toggled off on shutdown */
if (runloop_ctl(RUNLOOP_CTL_IS_SHUTDOWN, NULL))
if (is_shutdown)
return true;
#if 0
+18 -18
View File
@@ -1,5 +1,5 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2016 - Ali Bouhlel
* Copyright (C) 2014-2017 - Ali Bouhlel
*
* 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-
@@ -15,11 +15,10 @@
#include <3ds.h>
#include <string.h>
#include <malloc.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../performance_counters.h"
#include "../../runloop.h"
#include "../../ctr/ctr_debug.h"
typedef struct
@@ -37,10 +36,11 @@ typedef struct
#define CTR_DSP_AUDIO_SIZE (CTR_DSP_AUDIO_COUNT * sizeof(int16_t) * 2)
#define CTR_DSP_AUDIO_SIZE_MASK (CTR_DSP_AUDIO_SIZE - 1u)
static void *ctr_dsp_audio_init(const char *device, unsigned rate, unsigned latency)
static void *ctr_dsp_audio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
ctr_dsp_audio_t *ctr;
settings_t *settings = config_get_ptr();
ctr_dsp_audio_t *ctr = NULL;
(void)device;
(void)rate;
@@ -54,12 +54,12 @@ static void *ctr_dsp_audio_init(const char *device, unsigned rate, unsigned late
if (!ctr)
return NULL;
settings->audio.out_rate = 32730;
*new_rate = 32730;
ctr->channel = 0;
ndspSetOutputMode(NDSP_OUTPUT_STEREO);
ndspSetClippingMode(NDSP_CLIP_SOFT); //??
ndspSetClippingMode(NDSP_CLIP_SOFT); /* ?? */
ndspSetOutputCount(1);
ndspChnReset(ctr->channel);
ndspChnSetFormat(ctr->channel, NDSP_FORMAT_STEREO_PCM16);
@@ -93,12 +93,13 @@ static void ctr_dsp_audio_free(void *data)
ndspExit();
}
static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
static struct retro_perf_counter ctraudio_dsp_f = {0};
ctr_dsp_audio_t* ctr = (ctr_dsp_audio_t*)data;
u32 pos;
uint32_t sample_pos = ndspChnGetSamplePos(ctr->channel);
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);
if((((sample_pos - ctr->pos) & CTR_DSP_AUDIO_COUNT_MASK) < (CTR_DSP_AUDIO_COUNT >> 2)) ||
(((ctr->pos - sample_pos ) & CTR_DSP_AUDIO_COUNT_MASK) < (CTR_DSP_AUDIO_COUNT >> 4)) ||
@@ -116,8 +117,8 @@ 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(&ctraudio_dsp_f);
performance_counter_init(ctraudio_dsp_f, "ctraudio_dsp_f");
performance_counter_start_plus(is_perfcnt_enable, ctraudio_dsp_f);
pos = ctr->pos << 2;
@@ -140,7 +141,7 @@ 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(&ctraudio_dsp_f);
performance_counter_stop_plus(is_perfcnt_enable, ctraudio_dsp_f);
return size;
}
@@ -161,14 +162,13 @@ static bool ctr_dsp_audio_alive(void *data)
return ctr->playing;
}
static bool ctr_dsp_audio_start(void *data)
static bool ctr_dsp_audio_start(void *data, bool is_shutdown)
{
ctr_dsp_audio_t* ctr = (ctr_dsp_audio_t*)data;
/* Prevents restarting audio when the menu
* is toggled off on shutdown */
if (runloop_ctl(RUNLOOP_CTL_IS_SHUTDOWN, NULL))
if (is_shutdown)
return true;
ndspSetMasterVol(1.0);
+18 -13
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -35,7 +35,6 @@
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#ifdef _XBOX
@@ -68,7 +67,8 @@ typedef struct dsound
volatile bool thread_alive;
} dsound_t;
static INLINE unsigned write_avail(unsigned read_ptr, unsigned write_ptr, unsigned buffer_size)
static INLINE unsigned write_avail(unsigned read_ptr,
unsigned write_ptr, unsigned buffer_size)
{
return (read_ptr + buffer_size - write_ptr) % buffer_size;
}
@@ -91,8 +91,8 @@ struct audio_lock
static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
struct audio_lock *region)
{
const char *err;
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
const char *err = NULL;
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region->chunk1, &region->size1, &region->chunk2, &region->size2, 0);
if (res == DSERR_BUFFERLOST)
@@ -132,7 +132,8 @@ static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
static INLINE void release_region(dsound_t *ds, const struct audio_lock *region)
{
IDirectSoundBuffer_Unlock(ds->dsb, region->chunk1, region->size1, region->chunk2, region->size2);
IDirectSoundBuffer_Unlock(ds->dsb, region->chunk1,
region->size1, region->chunk2, region->size2);
}
static void dsound_thread(void *data)
@@ -236,8 +237,9 @@ static bool dsound_start_thread(dsound_t *ds)
static void dsound_clear_buffer(dsound_t *ds)
{
void *ptr;
DWORD size;
void *ptr = NULL;
IDirectSoundBuffer_SetCurrentPosition(ds->dsb, 0);
if (IDirectSoundBuffer_Lock(ds->dsb, 0, 0, &ptr, &size,
@@ -300,7 +302,9 @@ static BOOL CALLBACK enumerate_cb(LPGUID guid, LPCSTR desc, LPCSTR module, LPVOI
return TRUE;
}
static void *dsound_init(const char *device, unsigned rate, unsigned latency)
static void *dsound_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
WAVEFORMATEX wfx = {0};
DSBUFFERDESC bufdesc = {0};
@@ -377,7 +381,7 @@ static void *dsound_init(const char *device, unsigned rate, unsigned latency)
return ds;
error:
RARCH_ERR("[DirectSound] Error occured in init.\n");
RARCH_ERR("[DirectSound] Error occurred in init.\n");
dsound_free(ds);
return NULL;
}
@@ -392,7 +396,7 @@ static bool dsound_stop(void *data)
return (ds->is_paused) ? true : false;
}
static bool dsound_start(void *data)
static bool dsound_start(void *data, bool is_shutdown)
{
dsound_t *ds = (dsound_t*)data;
@@ -422,10 +426,11 @@ 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)
static ssize_t dsound_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
size_t written = 0;
dsound_t *ds = (dsound_t*)data;
size_t written = 0;
dsound_t *ds = (dsound_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
if (!ds->thread_alive)
+13 -12
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -28,7 +28,6 @@
#include <retro_inline.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../defines/gx_defines.h"
typedef struct
@@ -45,8 +44,8 @@ typedef struct
bool is_paused;
} gx_audio_t;
static volatile gx_audio_t *gx_audio_data;
static volatile bool stop_audio;
static volatile gx_audio_t *gx_audio_data = NULL;
static volatile bool stop_audio = false;
static void dma_callback(void)
{
@@ -69,9 +68,10 @@ static void dma_callback(void)
}
static void *gx_audio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
settings_t *settings = config_get_ptr();
gx_audio_t *wa = (gx_audio_t*)memalign(32, sizeof(*wa));
if (!wa)
return NULL;
@@ -86,12 +86,12 @@ static void *gx_audio_init(const char *device,
if (rate < 33000)
{
AISetDSPSampleRate(AI_SAMPLERATE_32KHZ);
settings->audio.out_rate = 32000;
*new_rate = 32000;
}
else
{
AISetDSPSampleRate(AI_SAMPLERATE_48KHZ);
settings->audio.out_rate = 48000;
*new_rate = 48000;
}
OSInitThreadQueue(&wa->cond);
@@ -116,11 +116,12 @@ 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)
static ssize_t gx_audio_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
size_t frames = size >> 2;
size_t frames = size >> 2;
const uint32_t *buf = buf_;
gx_audio_t *wa = data;
gx_audio_t *wa = data;
while (frames)
{
@@ -173,7 +174,7 @@ static void gx_audio_set_nonblock_state(void *data, bool state)
wa->nonblock = state;
}
static bool gx_audio_start(void *data)
static bool gx_audio_start(void *data, bool is_shutdown)
{
gx_audio_t *wa = (gx_audio_t*)data;
+33 -25
View File
@@ -24,6 +24,7 @@
#include <jack/ringbuffer.h>
#include <boolean.h>
#include <retro_assert.h>
#include <rthreads/rthreads.h>
#include "../audio_driver.h"
@@ -51,7 +52,7 @@ typedef struct jack
static int process_cb(jack_nframes_t nframes, void *data)
{
int i;
jack_nframes_t f, avail[2], min_avail;
jack_nframes_t avail[2], min_avail;
jack_t *jd = (jack_t*)data;
if (nframes <= 0)
@@ -62,8 +63,8 @@ static int process_cb(jack_nframes_t nframes, void *data)
return 0;
}
avail[0] = jack_ringbuffer_read_space(jd->buffer[0]);
avail[1] = jack_ringbuffer_read_space(jd->buffer[1]);
avail[0] = jack_ringbuffer_read_space(jd->buffer[0]);
avail[1] = jack_ringbuffer_read_space(jd->buffer[1]);
min_avail = ((avail[0] < avail[1]) ? avail[0] : avail[1]) / sizeof(jack_default_audio_sample_t);
if (min_avail > nframes)
@@ -71,8 +72,10 @@ static int process_cb(jack_nframes_t nframes, void *data)
for (i = 0; i < 2; i++)
{
jack_nframes_t f;
jack_default_audio_sample_t *out = (jack_default_audio_sample_t*)jack_port_get_buffer(jd->ports[i], nframes);
assert(out);
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++)
@@ -100,10 +103,11 @@ static void shutdown_cb(void *data)
static int parse_ports(char **dest_ports, const char **jports)
{
int i;
char *save = NULL;
int parsed = 0;
settings_t *settings = config_get_ptr();
const char *con = strtok_r(settings->audio.device, ",", &save);
char *save = NULL;
int parsed = 0;
settings_t *settings = config_get_ptr();
char *audio_device_cpy = strdup(settings->audio.device);
const char *con = strtok_r(audio_device_cpy, ",", &save);
if (con)
dest_ports[parsed++] = strdup(con);
@@ -114,15 +118,16 @@ static int parse_ports(char **dest_ports, const char **jports)
for (i = parsed; i < 2; i++)
dest_ports[i] = strdup(jports[i]);
free(audio_device_cpy);
return 2;
}
static size_t find_buffersize(jack_t *jd, int latency)
static size_t find_buffersize(jack_t *jd, int latency, unsigned out_rate)
{
jack_latency_range_t range;
int i, buffer_frames, min_buffer_frames, jack_latency = 0;
settings_t *settings = config_get_ptr();
int frames = latency * settings->audio.out_rate / 1000;
int i, buffer_frames, min_buffer_frames;
int jack_latency = 0;
int frames = latency * out_rate / 1000;
for (i = 0; i < 2; i++)
{
@@ -144,15 +149,16 @@ static size_t find_buffersize(jack_t *jd, int latency)
return buffer_frames * sizeof(jack_default_audio_sample_t);
}
static void *ja_init(const char *device, unsigned rate, unsigned latency)
static void *ja_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
int i;
const char **jports = NULL;
char *dest_ports[2];
size_t bufsize = 0;
int parsed = 0;
settings_t *settings = config_get_ptr();
jack_t *jd = (jack_t*)calloc(1, sizeof(jack_t));
const char **jports = NULL;
size_t bufsize = 0;
int parsed = 0;
jack_t *jd = (jack_t*)calloc(1, sizeof(jack_t));
if (!jd)
return NULL;
@@ -166,7 +172,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
if (jd->client == NULL)
goto error;
settings->audio.out_rate = jack_get_sample_rate(jd->client);
*new_rate = jack_get_sample_rate(jd->client);
jack_set_process_callback(jd->client, process_cb, jd);
jack_on_shutdown(jd->client, shutdown_cb, jd);
@@ -186,7 +192,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
goto error;
}
bufsize = find_buffersize(jd, latency);
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)));
@@ -224,6 +230,8 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
return jd;
error:
for (i = 0; i < parsed; i++)
free(dest_ports[i]);
if (jports != NULL)
jack_free(jports);
free(jd);
@@ -233,10 +241,9 @@ error:
static size_t write_buffer(jack_t *jd, const float *buf, size_t size)
{
int i;
size_t j, frames, written = 0;
size_t j, written = 0;
jack_default_audio_sample_t out_deinterleaved_buffer[2][AUDIO_CHUNK_SIZE_NONBLOCKING * AUDIO_MAX_RATIO];
frames = FRAMES(size);
size_t frames = FRAMES(size);
/* Avoid buffer overflow if a DSP plugin generated a huge number of frames. */
if (frames > AUDIO_CHUNK_SIZE_NONBLOCKING * AUDIO_MAX_RATIO)
@@ -285,7 +292,8 @@ 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)
static ssize_t ja_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
jack_t *jd = (jack_t*)data;
@@ -315,7 +323,7 @@ static void ja_set_nonblock_state(void *data, bool state)
jd->nonblock = state;
}
static bool ja_start(void *data)
static bool ja_start(void *data, bool is_shutdown)
{
jack_t *jd = (jack_t*)data;
if (jd)
+8 -3
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -16,13 +17,16 @@
#include "../audio_driver.h"
#include "../../verbosity.h"
static void *null_audio_init(const char *device, unsigned rate, unsigned latency)
static void *null_audio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
RARCH_ERR("Using the null audio driver. RetroArch will be silent.");
(void)device;
(void)rate;
(void)latency;
(void)new_rate;
return (void*)-1;
}
@@ -31,7 +35,8 @@ static void null_audio_free(void *data)
(void)data;
}
static ssize_t null_audio_write(void *data, const void *buf, size_t size)
static ssize_t null_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
(void)data;
(void)buf;
@@ -51,7 +56,7 @@ static bool null_audio_alive(void *data)
return true;
}
static bool null_audio_start(void *data)
static bool null_audio_start(void *data, bool is_shutdown)
{
(void)data;
return true;
+12 -6
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -13,6 +14,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <string.h>
#include <time.h>
@@ -28,8 +30,9 @@
#include <windows.h>
#endif
#include <retro_miscellaneous.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#define BUFSIZE 1024
@@ -78,7 +81,9 @@ static void al_free(void *data)
free(al);
}
static void *al_init(const char *device, unsigned rate, unsigned latency)
static void *al_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
al_t *al;
@@ -168,11 +173,12 @@ 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)
static ssize_t al_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
al_t *al = (al_t*)data;
al_t *al = (al_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
size_t written = 0;
size_t written = 0;
while (size)
{
@@ -230,7 +236,7 @@ static void al_set_nonblock_state(void *data, bool state)
al->nonblock = state;
}
static bool al_start(void *data)
static bool al_start(void *data, bool is_shutdown)
{
al_t *al = (al_t*)data;
if (al)
+48 -49
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -22,7 +22,6 @@
#include <rthreads/rthreads.h>
#include "../audio_driver.h"
#include "../../configuration.h"
/* Helper macros, COM-style. */
#define SLObjectItf_Realize(a, ...) ((*(a))->Realize(a, __VA_ARGS__))
@@ -98,27 +97,22 @@ static void sl_free(void *data)
free(sl);
}
static void *sl_init(const char *device, unsigned rate, unsigned latency)
static void *sl_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
unsigned i;
SLInterfaceID id;
SLboolean req;
SLresult res;
sl_t *sl;
SLDataFormat_PCM fmt_pcm = {0};
SLDataSource audio_src = {0};
SLDataSink audio_sink = {0};
SLDataFormat_PCM fmt_pcm = {0};
SLDataSource audio_src = {0};
SLDataSink audio_sink = {0};
SLDataLocator_AndroidSimpleBufferQueue loc_bufq = {0};
SLDataLocator_OutputMix loc_outmix = {0};
settings_t *settings = config_get_ptr();
SLresult res = 0;
SLInterfaceID id = SL_IID_ANDROIDSIMPLEBUFFERQUEUE;
SLboolean req = SL_BOOLEAN_TRUE;
sl_t *sl = (sl_t*)calloc(1, sizeof(sl_t));
(void)device;
id = SL_IID_ANDROIDSIMPLEBUFFERQUEUE;
req = SL_BOOLEAN_TRUE;
res = 0;
sl = (sl_t*)calloc(1, sizeof(sl_t));
if (!sl)
goto error;
@@ -131,15 +125,15 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
GOTO_IF_FAIL(SLEngineItf_CreateOutputMix(sl->engine, &sl->output_mix, 0, NULL, NULL));
GOTO_IF_FAIL(SLObjectItf_Realize(sl->output_mix, SL_BOOLEAN_FALSE));
if (settings->audio.block_frames)
sl->buf_size = settings->audio.block_frames * 4;
if (block_frames)
sl->buf_size = block_frames * 4;
else
sl->buf_size = next_pow2(32 * latency);
sl->buf_size = next_pow2(32 * latency);
sl->buf_count = (latency * 4 * rate + 500) / 1000;
sl->buf_count = (sl->buf_count + sl->buf_size / 2) / sl->buf_size;
sl->buf_count = (latency * 4 * rate + 500) / 1000;
sl->buf_count = (sl->buf_count + sl->buf_size / 2) / sl->buf_size;
sl->buffer = (uint8_t**)calloc(sizeof(uint8_t*), sl->buf_count);
sl->buffer = (uint8_t**)calloc(sizeof(uint8_t*), sl->buf_count);
if (!sl->buffer)
goto error;
@@ -153,24 +147,24 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
RARCH_LOG("[SLES]: 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;
fmt_pcm.numChannels = 2;
fmt_pcm.samplesPerSec = rate * 1000; // Samplerate is in milli-Hz.
fmt_pcm.bitsPerSample = 16;
fmt_pcm.containerSize = 16;
fmt_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
fmt_pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; /* Android only. */
fmt_pcm.formatType = SL_DATAFORMAT_PCM;
fmt_pcm.numChannels = 2;
fmt_pcm.samplesPerSec = rate * 1000; // Samplerate is in milli-Hz.
fmt_pcm.bitsPerSample = 16;
fmt_pcm.containerSize = 16;
fmt_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
fmt_pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; /* Android only. */
audio_src.pLocator = &loc_bufq;
audio_src.pFormat = &fmt_pcm;
audio_src.pLocator = &loc_bufq;
audio_src.pFormat = &fmt_pcm;
loc_bufq.locatorType = SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE;
loc_bufq.numBuffers = sl->buf_count;
loc_bufq.locatorType = SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE;
loc_bufq.numBuffers = sl->buf_count;
loc_outmix.locatorType = SL_DATALOCATOR_OUTPUTMIX;
loc_outmix.outputMix = sl->output_mix;
audio_sink.pLocator = &loc_outmix;
audio_sink.pLocator = &loc_outmix;
GOTO_IF_FAIL(SLEngineItf_CreateAudioPlayer(sl->engine, &sl->buffer_queue_object,
&audio_src, &audio_sink,
@@ -180,14 +174,15 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
GOTO_IF_FAIL(SLObjectItf_GetInterface(sl->buffer_queue_object, SL_IID_ANDROIDSIMPLEBUFFERQUEUE,
&sl->buffer_queue));
sl->cond = scond_new();
sl->lock = slock_new();
sl->cond = scond_new();
sl->lock = slock_new();
(*sl->buffer_queue)->RegisterCallback(sl->buffer_queue, opensl_callback, sl);
/* Enqueue a bit to get stuff rolling. */
sl->buffered_blocks = sl->buf_count;
sl->buffer_index = 0;
sl->buffered_blocks = sl->buf_count;
sl->buffer_index = 0;
for (i = 0; i < sl->buf_count; i++)
(*sl->buffer_queue)->Enqueue(sl->buffer_queue, sl->buffer[i], sl->buf_size);
@@ -204,8 +199,10 @@ error:
static bool sl_stop(void *data)
{
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED) == SL_RESULT_SUCCESS) ? true : false;
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
== SL_RESULT_SUCCESS) ? true : false;
return sl->is_paused ? true : false;
}
@@ -224,18 +221,20 @@ static void sl_set_nonblock_state(void *data, bool state)
sl->nonblock = state;
}
static bool sl_start(void *data)
static bool sl_start(void *data, bool is_shutdown)
{
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_PLAYING) == SL_RESULT_SUCCESS) ? false : true;
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_PLAYING)
== SL_RESULT_SUCCESS) ? false : true;
return sl->is_paused ? false : true;
}
static ssize_t sl_write(void *data, const void *buf_, size_t size)
static ssize_t sl_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
sl_t *sl = (sl_t*)data;
size_t written = 0;
sl_t *sl = (sl_t*)data;
size_t written = 0;
const uint8_t *buf = (const uint8_t*)buf_;
while (size)
@@ -268,10 +267,10 @@ static ssize_t sl_write(void *data, const void *buf_, size_t size)
if (sl->buffer_ptr >= sl->buf_size)
{
SLresult res = (*sl->buffer_queue)->Enqueue(sl->buffer_queue, sl->buffer[sl->buffer_index], sl->buf_size);
SLresult res = (*sl->buffer_queue)->Enqueue(sl->buffer_queue, sl->buffer[sl->buffer_index], sl->buf_size);
sl->buffer_index = (sl->buffer_index + 1) % sl->buf_count;
__sync_fetch_and_add(&sl->buffered_blocks, 1);
sl->buffer_ptr = 0;
sl->buffer_ptr = 0;
if (res != SL_RESULT_SUCCESS)
{
+23 -30
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -12,6 +13,7 @@
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <fcntl.h>
@@ -32,7 +34,6 @@
#endif
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#ifdef HAVE_OSS_BSD
@@ -41,17 +42,17 @@
#define DEFAULT_OSS_DEV "/dev/dsp"
#endif
static bool oss_is_paused;
static bool oss_is_paused = false;
static void *oss_init(const char *device, unsigned rate, unsigned latency)
static void *oss_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_out_rate)
{
int frags, frag, channels, format, new_rate;
int *fd = (int*)calloc(1, sizeof(int));
settings_t *settings = config_get_ptr();
int *fd = (int*)calloc(1, sizeof(int));
const char *oss_device = device ? device : DEFAULT_OSS_DEV;
if (fd == NULL)
if (!fd)
return NULL;
if ((*fd = open(oss_device, O_WRONLY)) < 0)
@@ -62,50 +63,42 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency)
}
frags = (latency * rate * 4) / (1000 * (1 << 10));
frag = (frags << 16) | 10;
frag = (frags << 16) | 10;
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
RARCH_WARN("Cannot set fragment sizes. Latency might not be as expected ...\n");
channels = 2;
format = is_little_endian() ? AFMT_S16_LE : AFMT_S16_BE;
format = is_little_endian() ? AFMT_S16_LE : AFMT_S16_BE;
if (ioctl(*fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
{
close(*fd);
free(fd);
perror("ioctl");
return NULL;
}
goto error;
if (ioctl(*fd, SNDCTL_DSP_SETFMT, &format) < 0)
{
close(*fd);
free(fd);
perror("ioctl");
return NULL;
}
goto error;
new_rate = rate;
if (ioctl(*fd, SNDCTL_DSP_SPEED, &new_rate) < 0)
{
close(*fd);
free(fd);
perror("ioctl");
return NULL;
}
goto error;
if (new_rate != (int)rate)
{
RARCH_WARN("Requested sample rate not supported. Adjusting output rate to %d Hz.\n", new_rate);
settings->audio.out_rate = new_rate;
*new_out_rate = new_rate;
}
return fd;
error:
close(*fd);
free(fd);
perror("ioctl");
return NULL;
}
static ssize_t oss_write(void *data, const void *buf, size_t size)
static ssize_t oss_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
ssize_t ret;
int *fd = (int*)data;
@@ -133,7 +126,7 @@ static bool oss_stop(void *data)
return true;
}
static bool oss_start(void *data)
static bool oss_start(void *data, bool is_shutdown)
{
(void)data;
oss_is_paused = false;
+13 -13
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -20,7 +20,6 @@
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../defines/ps3_defines.h"
@@ -52,7 +51,7 @@ static void event_loop(uint64_t data)
sys_event_queue_t id;
sys_ipc_key_t key;
sys_event_t event;
ps3_audio_t *aud = data;
ps3_audio_t *aud = (ps3_audio_t*)(uintptr_t)data;
cellAudioCreateNotifyEventQueue(&id, &key);
cellAudioSetNotifyEventQueue(key);
@@ -78,23 +77,23 @@ static void event_loop(uint64_t data)
}
static void *ps3_audio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
CellAudioPortParam params;
ps3_audio_t *data = NULL;
ps3_audio_t *data = calloc(1, sizeof(*data));
if (!data)
return NULL;
(void)latency;
(void)device;
(void)rate;
data = calloc(1, sizeof(*data));
if (!data)
return NULL;
cellAudioInit();
params.numChannels = AUDIO_CHANNELS;
params.numBlocks = AUDIO_BLOCKS;
params.numBlocks = AUDIO_BLOCKS;
#if 0
#ifdef HAVE_HEADSET
if(global->console.sound.mode == SOUND_MODE_HEADSET)
@@ -147,7 +146,8 @@ static void *ps3_audio_init(const char *device,
return data;
}
static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
static ssize_t ps3_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
ps3_audio_t *aud = data;
@@ -178,7 +178,7 @@ static bool ps3_audio_stop(void *data)
return true;
}
static bool ps3_audio_start(void *data)
static bool ps3_audio_start(void *data, bool is_shutdown)
{
ps3_audio_t *aud = data;
if (!aud->started)
@@ -210,7 +210,7 @@ static void ps3_audio_free(void *data)
ps3_audio_t *aud = data;
aud->quit_thread = true;
ps3_audio_start(aud);
ps3_audio_start(aud, false);
sys_ppu_thread_join(aud->thread, &val);
ps3_audio_stop(aud);
+121 -48
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) 2014-2016 - Ali Bouhlel
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2014-2017 - Ali Bouhlel
*
* 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-
@@ -17,6 +17,8 @@
#include <stdint.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#ifdef VITA
#include <psp2/kernel/processmgr.h>
@@ -29,19 +31,26 @@
#endif
#include "../audio_driver.h"
#include "../../configuration.h"
typedef struct psp_audio
{
bool nonblocking;
uint32_t* buffer;
uint32_t* zeroBuffer;
SceUID thread;
int rate;
volatile bool running;
volatile uint16_t readPos;
volatile uint16_t writePos;
volatile uint16_t read_pos;
volatile uint16_t write_pos;
#ifdef VITA
char lock[32] __attribute__ ((aligned (8)));
char cond_lock[32] __attribute__ ((aligned (8)));
char cond[32] __attribute__ ((aligned (8)));
#endif
} psp_audio_t;
#define AUDIO_OUT_COUNT 512u
@@ -58,48 +67,61 @@ typedef struct psp_audio
static int audioMainLoop(SceSize args, void* argp)
{
psp_audio_t* psp = *((psp_audio_t**)argp);
#ifdef VITA
int port = sceAudioOutOpenPort(SCE_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
psp->rate, SCE_AUDIO_OUT_MODE_STEREO);
int port = sceAudioOutOpenPort(
SCE_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
psp->rate, SCE_AUDIO_OUT_MODE_STEREO);
#else
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
#endif
while (psp->running)
{
/* Get a non-volatile copy. */
uint16_t readPos = psp->readPos;
bool cond = ((uint16_t)(psp->writePos - readPos) & AUDIO_BUFFER_SIZE_MASK)
< (AUDIO_OUT_COUNT * 2);
bool cond = false;
uint16_t read_pos = psp->read_pos;
uint16_t read_pos_2 = psp->read_pos;
#ifdef VITA
sceAudioOutOutput(port,
cond ? psp->zeroBuffer : (psp->buffer + readPos));
#else
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
: (psp->buffer + readPos));
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&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)
{
readPos += AUDIO_OUT_COUNT;
readPos &= AUDIO_BUFFER_SIZE_MASK;
psp->readPos = readPos;
read_pos += AUDIO_OUT_COUNT;
read_pos &= AUDIO_BUFFER_SIZE_MASK;
psp->read_pos = read_pos;
}
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
sceKernelSignalLwCond((struct SceKernelLwCondWork*)&psp->cond);
sceAudioOutOutput(port,
cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos_2));
#endif
}
#ifdef VITA
sceAudioOutReleasePort(port);
#else
sceAudioSRCChRelease();
#endif
sceKernelExitThread(0);
#endif
return 0;
}
static void *psp_audio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
psp_audio_t *psp = (psp_audio_t*)calloc(1, sizeof(psp_audio_t));
@@ -109,27 +131,31 @@ static void *psp_audio_init(const char *device,
(void)device;
(void)latency;
/* Cache aligned, not necessary but helpful. */
psp->buffer = (uint32_t*)
memalign(64, AUDIO_BUFFER_SIZE * sizeof(uint32_t));
memset(psp->buffer, 0, AUDIO_BUFFER_SIZE * sizeof(uint32_t));
psp->zeroBuffer = (uint32_t*)
memalign(64, AUDIO_OUT_COUNT * sizeof(uint32_t));
memset(psp->zeroBuffer, 0, AUDIO_OUT_COUNT * sizeof(uint32_t));
psp->readPos = 0;
psp->writePos = 0;
psp->read_pos = 0;
psp->write_pos = 0;
psp->rate = rate;
#if defined(VITA)
sceKernelCreateLwMutex((struct SceKernelLwMutexWork*)&psp->lock, "audio_get_lock", 0, 0, 0);
sceKernelCreateLwMutex((struct SceKernelLwMutexWork*)&psp->cond_lock, "audio_get_cond_lock", 0, 0, 0);
sceKernelCreateLwCond((struct SceKernelLwCondWork*)&psp->cond, "audio_get_cond", 0, (struct SceKernelLwMutexWork*)&psp->cond_lock, 0);
psp->thread = sceKernelCreateThread
("audioMainLoop", audioMainLoop, 0x10000100, 0x10000, 0, 0, NULL);
#else
psp->thread = sceKernelCreateThread
("audioMainLoop", audioMainLoop, 0x08, 0x10000, 0, NULL);
#endif
psp->nonblocking = false;
psp->nonblocking = false;
psp->running = true;
sceKernelStartThread(psp->thread, sizeof(psp_audio_t*), &psp);
@@ -146,23 +172,60 @@ static void psp_audio_free(void *data)
psp->running = false;
#if defined(VITA)
sceKernelWaitThreadEnd(psp->thread, NULL, &timeout);
sceKernelDeleteLwMutex((struct SceKernelLwMutexWork*)&psp->lock);
sceKernelDeleteLwMutex((struct SceKernelLwMutexWork*)&psp->cond_lock);
sceKernelDeleteLwCond((struct SceKernelLwCondWork*)&psp->cond);
#else
sceKernelWaitThreadEnd(psp->thread, &timeout);
#endif
sceKernelDeleteThread(psp->thread);
free(psp->buffer);
sceKernelDeleteThread(psp->thread);
free(psp->zeroBuffer);
free(psp);
}
static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
static ssize_t psp_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
uint16_t sampleCount;
psp_audio_t* psp = (psp_audio_t*)data;
uint16_t writePos = psp->writePos;
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)
{
if (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
return 0;
}
while (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size){
sceKernelWaitLwCond((struct SceKernelLwCondWork*)&psp->cond, 0);
}
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
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;
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
return size;
#else
sampleCount= size / sizeof(uint32_t);
#if 0
if (psp->nonblocking)
@@ -171,22 +234,23 @@ static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
}
#endif
if((writePos + sampleCount) > AUDIO_BUFFER_SIZE)
if((write_pos + sampleCount) > AUDIO_BUFFER_SIZE)
{
memcpy(psp->buffer + writePos, buf,
(AUDIO_BUFFER_SIZE - writePos) * sizeof(uint32_t));
memcpy(psp->buffer + write_pos, buf,
(AUDIO_BUFFER_SIZE - write_pos) * sizeof(uint32_t));
memcpy(psp->buffer, (uint32_t*) buf +
(AUDIO_BUFFER_SIZE - writePos),
(writePos + sampleCount - AUDIO_BUFFER_SIZE) * sizeof(uint32_t));
(AUDIO_BUFFER_SIZE - write_pos),
(write_pos + sampleCount - AUDIO_BUFFER_SIZE) * sizeof(uint32_t));
}
else
memcpy(psp->buffer + writePos, buf, size);
memcpy(psp->buffer + write_pos, buf, size);
writePos += sampleCount;
writePos &= AUDIO_BUFFER_SIZE_MASK;
psp->writePos = writePos;
write_pos += sampleCount;
write_pos &= AUDIO_BUFFER_SIZE_MASK;
psp->write_pos = write_pos;
return sampleCount;
#endif
}
static bool psp_audio_alive(void *data)
@@ -219,11 +283,10 @@ static bool psp_audio_stop(void *data)
#else
sceKernelWaitThreadEnd(psp->thread, &timeout);
#endif
return true;
}
static bool psp_audio_start(void *data)
static bool psp_audio_start(void *data, bool is_shutdown)
{
SceKernelThreadInfo info;
psp_audio_t* psp = (psp_audio_t*)data;
@@ -259,16 +322,26 @@ static bool psp_audio_use_float(void *data)
static size_t psp_write_avail(void *data)
{
/* TODO */
psp_audio_t* psp = (psp_audio_t*)data;
#ifdef VITA
size_t val;
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
val = AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK);
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
return val;
#else
/* TODO */
return AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->writePos - psp->readPos) & AUDIO_BUFFER_SIZE_MASK);
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK);
#endif
}
static size_t psp_buffer_size(void *data)
{
/* TODO */
return AUDIO_BUFFER_SIZE;
return AUDIO_BUFFER_SIZE /** sizeof(uint32_t)*/;
}
@@ -289,5 +362,5 @@ audio_driver_t audio_psp = {
NULL,
NULL,
psp_write_avail,
psp_buffer_size,
psp_buffer_size
};
+27 -19
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -22,7 +23,6 @@
#include <retro_endianness.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct
@@ -125,6 +125,7 @@ static void stream_latency_update_cb(pa_stream *s, void *data)
static void underrun_update_cb(pa_stream *s, void *data)
{
#if 0
pa_t *pa = (pa_t*)data;
(void)s;
@@ -132,6 +133,7 @@ static void underrun_update_cb(pa_stream *s, void *data)
RARCH_LOG("[PulseAudio]: Underrun (Buffer: %u, Writable size: %u).\n",
(unsigned)pa->buffer_size,
(unsigned)pa_stream_writable_size(pa->stream));
#endif
}
static void buffer_attr_cb(pa_stream *s, void *data)
@@ -141,19 +143,23 @@ static void buffer_attr_cb(pa_stream *s, void *data)
if (server_attr)
pa->buffer_size = server_attr->tlength;
#if 0
RARCH_LOG("[PulseAudio]: Got new buffer size %u.\n", (unsigned)pa->buffer_size);
#endif
}
static void *pulse_init(const char *device, unsigned rate, unsigned latency)
static void *pulse_init(const char *device, unsigned rate,
unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
pa_sample_spec spec;
pa_t *pa;
pa_buffer_attr buffer_attr = {0};
pa_sample_spec spec;
pa_buffer_attr buffer_attr = {0};
const pa_buffer_attr *server_attr = NULL;
pa_t *pa = (pa_t*)calloc(1, sizeof(*pa));
memset(&spec, 0, sizeof(spec));
pa = (pa_t*)calloc(1, sizeof(*pa));
if (!pa)
goto error;
@@ -179,11 +185,11 @@ static void *pulse_init(const char *device, unsigned rate, unsigned latency)
if (pa_context_get_state(pa->context) != PA_CONTEXT_READY)
goto unlock_error;
spec.format = is_little_endian() ? PA_SAMPLE_FLOAT32LE : PA_SAMPLE_FLOAT32BE;
spec.format = is_little_endian() ? PA_SAMPLE_FLOAT32LE : PA_SAMPLE_FLOAT32BE;
spec.channels = 2;
spec.rate = rate;
spec.rate = rate;
pa->stream = pa_stream_new(pa->context, "audio", &spec, NULL);
pa->stream = pa_stream_new(pa->context, "audio", &spec, NULL);
if (!pa->stream)
goto unlock_error;
@@ -194,12 +200,13 @@ static void *pulse_init(const char *device, unsigned rate, unsigned latency)
pa_stream_set_buffer_attr_callback(pa->stream, buffer_attr_cb, pa);
buffer_attr.maxlength = -1;
buffer_attr.tlength = pa_usec_to_bytes(latency * PA_USEC_PER_MSEC, &spec);
buffer_attr.prebuf = -1;
buffer_attr.minreq = -1;
buffer_attr.fragsize = -1;
buffer_attr.tlength = pa_usec_to_bytes(latency * PA_USEC_PER_MSEC, &spec);
buffer_attr.prebuf = -1;
buffer_attr.minreq = -1;
buffer_attr.fragsize = -1;
if (pa_stream_connect_playback(pa->stream, NULL, &buffer_attr, PA_STREAM_ADJUST_LATENCY, NULL, NULL) < 0)
if (pa_stream_connect_playback(pa->stream, NULL,
&buffer_attr, PA_STREAM_ADJUST_LATENCY, NULL, NULL) < 0)
goto error;
pa_threaded_mainloop_wait(pa->mainloop);
@@ -229,11 +236,12 @@ error:
return NULL;
}
static ssize_t pulse_write(void *data, const void *buf_, size_t size)
static ssize_t pulse_write(void *data, const void *buf_, size_t size,
bool is_perfcnt_enable)
{
pa_t *pa = (pa_t*)data;
pa_t *pa = (pa_t*)data;
const uint8_t *buf = (const uint8_t*)buf_;
size_t written = 0;
size_t written = 0;
pa_threaded_mainloop_lock(pa->mainloop);
while (size)
@@ -284,7 +292,7 @@ static bool pulse_alive(void *data)
return !pa->is_paused;
}
static bool pulse_start(void *data)
static bool pulse_start(void *data, bool is_shutdown)
{
bool ret;
pa_t *pa = (pa_t*)data;
+11 -8
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -23,7 +24,6 @@
#include <boolean.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct
@@ -33,11 +33,12 @@ typedef struct
bool is_paused;
} roar_t;
static void *ra_init(const char *device, unsigned rate, unsigned latency)
static void *ra_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames, unsigned *new_rate)
{
int err;
roar_vs_t *vss;
roar_t *roar = (roar_t*)calloc(1, sizeof(roar_t));
roar_vs_t *vss = NULL;
roar_t *roar = (roar_t*)calloc(1, sizeof(roar_t));
if (!roar)
return NULL;
@@ -57,11 +58,12 @@ 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)
static ssize_t ra_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
int err;
size_t written = 0;
roar_t *roar = (roar_t*)data;
roar_t *roar = (roar_t*)data;
if (size == 0)
return 0;
@@ -71,7 +73,8 @@ static ssize_t ra_write(void *data, const void *buf, size_t size)
ssize_t rc;
size_t write_amt = size - written;
if ((rc = roar_vs_write(roar->vss, (const char*)buf + written, write_amt, &err)) < (ssize_t)write_amt)
if ((rc = roar_vs_write(roar->vss,
(const char*)buf + written, write_amt, &err)) < (ssize_t)write_amt)
{
if (roar->nonblocking)
return rc;
@@ -108,7 +111,7 @@ static void ra_set_nonblock_state(void *data, bool state)
roar->nonblocking = state;
}
static bool ra_start(void *data)
static bool ra_start(void *data, bool is_shutdown)
{
roar_t *roar = (roar_t*)data;
if (roar)
+21 -17
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -55,28 +56,26 @@ static void err_cb(void *userdata)
scond_signal(rsd->cond);
}
static void *rs_init(const char *device, unsigned rate, unsigned latency)
static void *rs_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
int channels, format;
rsd_t *rsd = (rsd_t*)calloc(1, sizeof(rsd_t));
rsound_t *rd = NULL;
rsd_t *rsd = (rsd_t*)calloc(1, sizeof(rsd_t));
if (!rsd)
return NULL;
rsound_t *rd;
if (rsd_init(&rd) < 0)
{
free(rsd);
return NULL;
}
goto error;
rsd->cond_lock = slock_new();
rsd->cond = scond_new();
rsd->cond = scond_new();
rsd->buffer = fifo_new(1024 * 4);
rsd->buffer = fifo_new(1024 * 4);
channels = 2;
format = RSD_S16_NE;
channels = 2;
format = RSD_S16_NE;
rsd_set_param(rd, RSD_CHANNELS, &channels);
rsd_set_param(rd, RSD_SAMPLERATE, &rate);
@@ -92,15 +91,19 @@ static void *rs_init(const char *device, unsigned rate, unsigned latency)
if (rsd_start(rd) < 0)
{
free(rsd);
rsd_free(rd);
return NULL;
goto error;
}
rsd->rd = rd;
return rsd;
error:
rsd_free(rd);
return NULL;
}
static ssize_t rs_write(void *data, const void *buf, size_t size)
static ssize_t rs_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
rsd_t *rsd = (rsd_t*)data;
@@ -175,7 +178,7 @@ static bool rs_alive(void *data)
return false;
}
static bool rs_start(void *data)
static bool rs_start(void *data, bool is_shutdown)
{
rsd_t *rsd = (rsd_t*)data;
if (rsd_start(rsd->rd) < 0)
@@ -201,12 +204,13 @@ static void rs_free(void *data)
static size_t rs_write_avail(void *data)
{
size_t val;
rsd_t *rsd = (rsd_t*)data;
if (rsd->has_error)
return 0;
rsd_callback_lock(rsd->rd);
size_t val = fifo_write_avail(rsd->buffer);
val = fifo_write_avail(rsd->buffer);
rsd_callback_unlock(rsd->rd);
return val;
}
+14 -12
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -18,7 +19,6 @@
#include <boolean.h>
#include "../audio_driver.h"
#include "../../configuration.h"
/* forward declarations */
unsigned RWebAudioSampleRate(void);
@@ -37,20 +37,22 @@ static void rwebaudio_free(void *data)
RWebAudioFree();
}
static void *rwebaudio_init(const char *device, unsigned rate, unsigned latency)
static void *rwebaudio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
settings_t *settings = config_get_ptr();
void *data = RWebAudioInit(latency);
(void)device;
(void)rate;
if (data)
settings->audio.out_rate = RWebAudioSampleRate();
*new_rate = RWebAudioSampleRate();
return data;
}
static ssize_t rwebaudio_write(void *data, const void *buf, size_t size)
static ssize_t rwebaudio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
(void)data;
return RWebAudioWrite(buf, size);
@@ -75,19 +77,13 @@ static bool rwebaudio_alive(void *data)
return !rwebaudio_is_paused;
}
static bool rwebaudio_start(void *data)
static bool rwebaudio_start(void *data, bool is_shutdown)
{
(void)data;
rwebaudio_is_paused = false;
return RWebAudioStart();
}
static bool rwebaudio_use_float(void *data)
{
(void)data;
return true;
}
static size_t rwebaudio_write_avail(void *data)
{
(void)data;
@@ -100,6 +96,12 @@ static size_t rwebaudio_buffer_size(void *data)
return RWebAudioBufferSize();
}
static bool rwebaudio_use_float(void *data)
{
(void)data;
return true;
}
audio_driver_t audio_rwebaudio = {
rwebaudio_init,
rwebaudio_write,
+20 -18
View File
@@ -1,5 +1,6 @@
/* 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-
@@ -27,7 +28,6 @@
#include <retro_inline.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct sdl_audio
@@ -44,8 +44,8 @@ typedef struct sdl_audio
static void sdl_audio_cb(void *data, Uint8 *stream, int len)
{
sdl_audio_t *sdl = (sdl_audio_t*)data;
size_t avail = fifo_read_avail(sdl->buffer);
sdl_audio_t *sdl = (sdl_audio_t*)data;
size_t avail = fifo_read_avail(sdl->buffer);
size_t write_size = len > (int)avail ? avail : len;
fifo_read(sdl->buffer, stream, write_size);
@@ -67,14 +67,15 @@ static INLINE int find_num_frames(int rate, int latency)
}
static void *sdl_audio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
int frames;
size_t bufsize;
void *tmp;
SDL_AudioSpec out;
SDL_AudioSpec spec = {0};
settings_t *settings = config_get_ptr();
SDL_AudioSpec spec = {0};
void *tmp = NULL;
sdl_audio_t *sdl = NULL;
(void)device;
@@ -97,10 +98,10 @@ static void *sdl_audio_init(const char *device,
* SDL double buffers audio and we do as well. */
frames = find_num_frames(rate, latency / 4);
spec.freq = rate;
spec.format = AUDIO_S16SYS;
spec.freq = rate;
spec.format = AUDIO_S16SYS;
spec.channels = 2;
spec.samples = frames; /* This is in audio frames, not samples ... :( */
spec.samples = frames; /* This is in audio frames, not samples ... :( */
spec.callback = sdl_audio_cb;
spec.userdata = sdl;
@@ -111,19 +112,19 @@ static void *sdl_audio_init(const char *device,
return 0;
}
settings->audio.out_rate = out.freq;
*new_rate = out.freq;
#ifdef HAVE_THREADS
sdl->lock = slock_new();
sdl->cond = scond_new();
sdl->lock = slock_new();
sdl->cond = scond_new();
#endif
RARCH_LOG("SDL audio: Requested %u ms latency, got %d ms\n",
latency, (int)(out.samples * 4 * 1000 / settings->audio.out_rate));
latency, (int)(out.samples * 4 * 1000 / (*new_rate)));
/* Create a buffer twice as big as needed and prefill the buffer. */
bufsize = out.samples * 4 * sizeof(int16_t);
tmp = calloc(1, bufsize);
bufsize = out.samples * 4 * sizeof(int16_t);
tmp = calloc(1, bufsize);
sdl->buffer = fifo_new(bufsize);
if (tmp)
@@ -136,7 +137,8 @@ static void *sdl_audio_init(const char *device,
return sdl;
}
static ssize_t sdl_audio_write(void *data, const void *buf, size_t size)
static ssize_t sdl_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
ssize_t ret = 0;
sdl_audio_t *sdl = (sdl_audio_t*)data;
@@ -202,7 +204,7 @@ static bool sdl_audio_alive(void *data)
return !sdl->is_paused;
}
static bool sdl_audio_start(void *data)
static bool sdl_audio_start(void *data, bool is_shutdown)
{
sdl_audio_t *sdl = (sdl_audio_t*)data;
sdl->is_paused = false;
+347
View File
@@ -0,0 +1,347 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2017 - Ali Bouhlel
* Copyright (C) 2016-2017 - FIX94
*
* 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 <string.h>
#include <malloc.h>
#include <stdint.h>
#include <wiiu/os.h>
#include <wiiu/ax.h>
#include "wiiu/wiiu_dbg.h"
#include "wiiu/system/memory.h"
#include "audio/audio_driver.h"
#include "performance_counters.h"
typedef struct
{
AXMVoice* mvoice;
uint16_t* buffer_l;
uint16_t* buffer_r;
bool nonblocking;
uint32_t pos;
uint32_t written;
OSSpinLock spinlock;
} ax_audio_t;
/* 3072 samples main buffer, 64ms total */
#define AX_AUDIO_COUNT 3072
#define AX_AUDIO_SIZE (AX_AUDIO_COUNT << 1u)
#define AX_AUDIO_SAMPLE_COUNT 144 /* 3ms */
#define AX_AUDIO_SAMPLE_MIN (AX_AUDIO_SAMPLE_COUNT * 3) /* 9ms */
#define AX_AUDIO_SAMPLE_LOAD (AX_AUDIO_SAMPLE_COUNT * 10)/* 30ms */
#define AX_AUDIO_MAX_FREE (AX_AUDIO_COUNT - (AX_AUDIO_SAMPLE_COUNT * 2))
#define AX_AUDIO_RATE 48000
#if 0
#define ax_audio_ticks_to_samples(ticks) (((ticks) * 64) / 82875)
#define ax_audio_samples_to_ticks(samples) (((samples) * 82875) / 64)
#endif
static volatile ax_audio_t *wiiu_cb_ax = NULL;
void wiiu_ax_callback(void)
{
/*possibly called before unregister */
if(wiiu_cb_ax == NULL)
return;
ax_audio_t *ax = (ax_audio_t*)wiiu_cb_ax;
if(AXIsMultiVoiceRunning(ax->mvoice))
{
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
{
/* Buffer underrun, stop playback to let it fill up */
if(ax->written < AX_AUDIO_SAMPLE_MIN)
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
ax->written -= AX_AUDIO_SAMPLE_COUNT;
OSUninterruptibleSpinLock_Release(&ax->spinlock);
}
}
}
extern void AXRegisterFrameCallback(void *cb);
static void* ax_audio_init(const char* device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
AXVoiceOffsets offsets[2];
u16 setup_buf[0x30] = {0};
setup_buf[0x25] = 2; /* we request 2 channels */
AXInitParams init = {AX_INIT_RENDERER_48KHZ, 0, 0};
AXVoiceVeData ve = {0xF000, 0};
ax_audio_t* ax = (ax_audio_t*)calloc(1, sizeof(ax_audio_t));
if (!ax)
return NULL;
AXInitWithParams(&init);
AXAcquireMultiVoice(31, NULL, 0, setup_buf, &ax->mvoice);
if (!ax->mvoice || ax->mvoice->channels != 2)
{
free(ax);
return NULL;
}
ax->buffer_l = MEM1_alloc(AX_AUDIO_SIZE, 0x100);
ax->buffer_r = MEM1_alloc(AX_AUDIO_SIZE, 0x100);
memset(ax->buffer_l,0,AX_AUDIO_SIZE);
memset(ax->buffer_r,0,AX_AUDIO_SIZE);
DCFlushRange(ax->buffer_l,AX_AUDIO_SIZE);
DCFlushRange(ax->buffer_r,AX_AUDIO_SIZE);
/* shared by both voices */
offsets[0].currentOffset = 0;
offsets[0].loopOffset = 0;
offsets[0].endOffset = AX_AUDIO_COUNT - 1;
offsets[0].loopingEnabled = AX_VOICE_LOOP_ENABLED;
offsets[0].dataType = AX_VOICE_FORMAT_LPCM16;
memcpy(&offsets[1], &offsets[0], sizeof(AXVoiceOffsets));
/* different buffers per voice */
offsets[0].data = ax->buffer_l;
offsets[1].data = ax->buffer_r;
AXSetMultiVoiceOffsets(ax->mvoice, offsets);
AXSetMultiVoiceSrcType(ax->mvoice, AX_VOICE_SRC_TYPE_NONE);
AXSetMultiVoiceSrcRatio(ax->mvoice, 1.0f);
AXSetMultiVoiceVe(ax->mvoice, &ve);
AXSetMultiVoiceDeviceMix(ax->mvoice, AX_DEVICE_TYPE_DRC, 0, 0, 0x8000, 0);
AXSetMultiVoiceDeviceMix(ax->mvoice, AX_DEVICE_TYPE_TV, 0, 0, 0x8000, 0);
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
ax->pos = 0;
ax->written = 0;
*new_rate = AX_AUDIO_RATE;
OSInitSpinLock(&ax->spinlock);
wiiu_cb_ax = ax;
AXRegisterFrameCallback(wiiu_ax_callback);
return ax;
}
static void ax_audio_free(void* data)
{
ax_audio_t* ax = (ax_audio_t*)data;
wiiu_cb_ax = NULL;
AXRegisterFrameCallback(NULL);
AXFreeMultiVoice(ax->mvoice);
AXQuit();
MEM1_free(ax->buffer_l);
MEM1_free(ax->buffer_r);
free(ax);
}
static bool ax_audio_stop(void* data)
{
ax_audio_t* ax = (ax_audio_t*)data;
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
return true;
}
static int ax_audio_limit(int in)
{
if(in < 0)
in += AX_AUDIO_COUNT;
else if(in >= AX_AUDIO_COUNT)
in -= AX_AUDIO_COUNT;
return in;
}
static bool ax_audio_start(void* data, bool is_shutdown)
{
ax_audio_t* ax = (ax_audio_t*)data;
/* Prevents restarting audio when the menu
* is toggled off on shutdown */
if (is_shutdown)
return true;
/* Set back to playing on enough buffered data */
if(ax->written > AX_AUDIO_SAMPLE_LOAD)
{
AXSetMultiVoiceCurrentOffset(ax->mvoice, ax_audio_limit(ax->pos - ax->written));
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_PLAYING);
}
return true;
}
static ssize_t ax_audio_write(void* data, const void* buf, size_t size,
bool is_perfcnt_enable)
{
int i;
static struct retro_perf_counter ax_audio_write_perf = {0};
size_t countAvail = 0;
ax_audio_t* ax = (ax_audio_t*)data;
const uint16_t* src = buf;
int 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;
countAvail = ((ax->written > AX_AUDIO_MAX_FREE) ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
if (ax->nonblocking)
{
/* Not enough available for 3ms of data */
if(countAvail < AX_AUDIO_SAMPLE_COUNT)
count = 0;
}
else if(countAvail < count)
{
/* Sync, wait for free memory */
while(AXIsMultiVoiceRunning(ax->mvoice) && (countAvail < count))
{
OSYieldThread(); /* Gives threads with same priority time to run */
countAvail = (ax->written > AX_AUDIO_MAX_FREE ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
}
}
/* Over available space, do as much as possible */
if(count > countAvail)
count = countAvail;
/* make sure we have input size */
if(count > 0)
{
/* write in new data */
size_t startPos = ax->pos;
int flushP2needed = 0;
int flushP2 = 0;
for (i = 0; i < (count << 1); i += 2)
{
ax->buffer_l[ax->pos] = src[i];
ax->buffer_r[ax->pos] = src[i + 1];
ax->pos = ax_audio_limit(ax->pos + 1);
/* wrapped around, make sure to store cache */
if(ax->pos == 0)
{
flushP2needed = 1;
flushP2 = ((count << 1) - i);
DCStoreRangeNoSync(ax->buffer_l+startPos, (AX_AUDIO_COUNT-startPos) << 1);
DCStoreRangeNoSync(ax->buffer_r+startPos, (AX_AUDIO_COUNT-startPos) << 1);
}
}
/* standard cache store case */
if(!flushP2needed)
{
DCStoreRangeNoSync(ax->buffer_l+startPos, count << 1);
DCStoreRange(ax->buffer_r+startPos, count << 1);
}
/* store the rest after wrap */
else if(flushP2 > 0)
{
DCStoreRangeNoSync(ax->buffer_l, flushP2);
DCStoreRange(ax->buffer_r, flushP2);
}
/* add in new audio data */
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
{
ax->written += count;
OSUninterruptibleSpinLock_Release(&ax->spinlock);
}
}
/* Possibly buffer underrun
*
* checks if it can be started
*/
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);
}
static bool ax_audio_alive(void* data)
{
ax_audio_t* ax = (ax_audio_t*)data;
return AXIsMultiVoiceRunning(ax->mvoice);
}
static void ax_audio_set_nonblock_state(void* data, bool state)
{
ax_audio_t* ax = (ax_audio_t*)data;
if (ax)
ax->nonblocking = state;
}
static bool ax_audio_use_float(void* data)
{
(void)data;
return false;
}
static size_t ax_audio_write_avail(void* data)
{
ax_audio_t* ax = (ax_audio_t*)data;
size_t ret = AX_AUDIO_COUNT - ax->written;
return (ret < AX_AUDIO_SAMPLE_COUNT ? 0 : ret);
}
static size_t ax_audio_buffer_size(void* data)
{
(void)data;
return AX_AUDIO_COUNT;
}
audio_driver_t audio_ax =
{
ax_audio_init,
ax_audio_write,
ax_audio_stop,
ax_audio_start,
ax_audio_alive,
ax_audio_set_nonblock_state,
ax_audio_free,
ax_audio_use_float,
"AX",
NULL,
NULL,
/* ax_audio_write_avail, */
/* ax_audio_buffer_size */
};
+26 -8
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -14,6 +14,12 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(_XBOX) && (_MSC_VER == 1310)
#ifndef _WIN32_DCOM
#define _WIN32_DCOM
#endif
#endif
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
@@ -23,10 +29,14 @@
#include <compat/msvc.h>
#include <retro_miscellaneous.h>
#if defined(_MSC_VER) && (_WIN32_WINNT <= _WIN32_WINNT_WIN2K)
/* needed for CoInitializeEx */
#define _WIN32_DCOM
#endif
#include "xaudio.h"
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct xaudio2 xaudio2_t;
@@ -137,6 +147,10 @@ static void xaudio2_free(xaudio2_t *handle)
delete handle;
}
#ifndef COINIT_MULTITHREADED
#define COINIT_MULTITHREADED 0x00
#endif
static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
size_t size, unsigned device)
{
@@ -187,7 +201,8 @@ static size_t xaudio2_write_avail(xaudio2_t *handle)
return handle->bufsize * (MAX_BUFFERS - handle->buffers - 1);
}
static size_t xaudio2_write(xaudio2_t *handle, const void *buf, size_t bytes_)
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;
@@ -225,11 +240,13 @@ static size_t xaudio2_write(xaudio2_t *handle, const void *buf, size_t bytes_)
return bytes_;
}
static void *xa_init(const char *device, unsigned rate, unsigned latency)
static void *xa_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
size_t bufsize;
unsigned device_index = 0;
xa_t *xa = (xa_t*)calloc(1, sizeof(*xa));
xa_t *xa = (xa_t*)calloc(1, sizeof(*xa));
if (!xa)
return NULL;
@@ -257,7 +274,8 @@ 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)
static ssize_t xa_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
size_t ret;
xa_t *xa = (xa_t*)data;
@@ -272,7 +290,7 @@ static ssize_t xa_write(void *data, const void *buf, size_t size)
size = avail;
}
ret = xaudio2_write(xa->xa, buf, size);
ret = xaudio2_write(xa->xa, buf, size, is_perfcnt_enable);
if (ret == 0 && size > 0)
return -1;
return ret;
@@ -300,7 +318,7 @@ static void xa_set_nonblock_state(void *data, bool state)
xa->nonblock = state;
}
static bool xa_start(void *data)
static bool xa_start(void *data, bool is_shutdown)
{
xa_t *xa = (xa_t*)data;
xa->is_paused = false;
+1 -1
View File
@@ -1,6 +1,6 @@
/* 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) 2010-2014 - OV2
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
+9 -7
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -22,7 +22,6 @@
#include <retro_inline.h>
#include "../audio_driver.h"
#include "../../configuration.h"
#define SOUND_FREQUENCY 48000
#define MAX_BUFFER 2048
@@ -35,10 +34,11 @@ typedef struct
} xenon_audio_t;
static void *xenon360_audio_init(const char *device,
unsigned rate, unsigned latency)
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
static bool inited = false;
settings_t *settings = config_get_ptr();
if (!inited)
{
@@ -46,7 +46,8 @@ static void *xenon360_audio_init(const char *device,
inited = true;
}
settings->audio.out_rate = SOUND_FREQUENCY;
*new_rate = SOUND_FREQUENCY;
return calloc(1, sizeof(xenon_audio_t));
}
@@ -56,7 +57,8 @@ 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)
static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size,
bool is_perfcnt_enable)
{
size_t written = 0, i;
const uint32_t *in_buf = buf;
@@ -111,7 +113,7 @@ static void xenon360_audio_set_nonblock_state(void *data, bool state)
xa->nonblock = state;
}
static bool xenon360_audio_start(void *data)
static bool xenon360_audio_start(void *data, bool is_shutdown)
{
xenon_audio_t *xa = data;
xa->is_paused = false;
+14 -13
View File
@@ -1,5 +1,5 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2016 - Ali Bouhlel ( [email protected] )
* Copyright (C) 2014-2017 - Ali Bouhlel ( [email protected] )
*
* 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-
@@ -25,8 +25,9 @@
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <memalign.h>
#include <math/float_minmax.h>
#include "../audio_resampler_driver.h"
#include <audio/audio_resampler.h>
/* Since SSE and NEON don't provide support for trigonometric functions
* we approximate those with polynoms
@@ -59,10 +60,10 @@ typedef struct rarch_CC_resampler
static void resampler_CC_process(void *re_, struct resampler_data *data)
{
float ratio, fraction;
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
audio_frame_float_t *inp_max = (audio_frame_float_t*)
(inp + data->input_frames);
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
(void)re_;
@@ -196,15 +197,15 @@ static void resampler_CC_downsample(void *re_, struct resampler_data *data)
__m128 vec_in;
__m128 vec_ratio =
_mm_mul_ps(_mm_set_ps1(ratio), _mm_set_ps(3.0, 2.0, 1.0, 0.0));
__m128 vec_w = _mm_sub_ps(_mm_set_ps1(re->distance), vec_ratio);
__m128 vec_w = _mm_sub_ps(_mm_set_ps1(re->distance), vec_ratio);
__m128 vec_w1 = _mm_add_ps(vec_w , _mm_set_ps1(0.5));
__m128 vec_w2 = _mm_sub_ps(vec_w , _mm_set_ps1(0.5));
__m128 vec_w1 = _mm_add_ps(vec_w , _mm_set_ps1(0.5));
__m128 vec_w2 = _mm_sub_ps(vec_w , _mm_set_ps1(0.5));
__m128 vec_b = _mm_set_ps1(b);
__m128 vec_b = _mm_set_ps1(b);
vec_w1 = _mm_mul_ps(vec_w1, vec_b);
vec_w2 = _mm_mul_ps(vec_w2, vec_b);
vec_w1 = _mm_mul_ps(vec_w1, vec_b);
vec_w2 = _mm_mul_ps(vec_w2, vec_b);
(void)vec_ww1;
(void)vec_ww2;
@@ -271,7 +272,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
audio_frame_float_t *inp_max = (audio_frame_float_t*)(inp + data->input_frames);
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
float b = MIN(data->ratio, 1.00); /* cutoff frequency. */
float b = float_min(data->ratio, 1.00); /* cutoff frequency. */
float ratio = 1.0 / data->ratio;
__m128 vec_previous = _mm_loadu_ps((float*)&re->buffer[0]);
__m128 vec_current = _mm_loadu_ps((float*)&re->buffer[2]);
@@ -446,7 +447,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
audio_frame_float_t *inp_max = (audio_frame_float_t*)
(inp + data->input_frames);
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
float b = MIN(data->ratio, 1.00); /* cutoff frequency. */
float b = float_min(data->ratio, 1.00); /* cutoff frequency. */
float ratio = 1.0 / data->ratio;
while (inp != inp_max)
@@ -539,7 +540,7 @@ static void resampler_CC_free(void *re_)
(void)re_;
}
rarch_resampler_t CC_resampler = {
retro_resampler_t CC_resampler = {
resampler_CC_init,
resampler_CC_process,
resampler_CC_free,
+13 -1
View File
@@ -1,5 +1,5 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2015 - Ali Bouhlel ( aliaspider@gmail.com )
* Copyright (C) 2014-2017 - Ali Bouhlel ( aliaspider@gmail.com )
*
* 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-
@@ -24,7 +24,13 @@
#endif
.align 4
.globl resampler_CC_downsample_neon
#ifndef __MACH__
.type resampler_CC_downsample_neon, %function
#endif
.globl _resampler_CC_downsample_neon
#ifndef __MACH__
.type _resampler_CC_downsample_neon, %function
#endif
# size_t resampler_CC_downsample_neon(float *outp, const float *inp,
# rarch_CC_resampler_t* re_, size_t input_frames, float ratio);
@@ -196,7 +202,13 @@ bx lr
.align 4
.globl resampler_CC_upsample_neon
#ifndef __MACH__
.type resampler_CC_upsample_neon, %function
#endif
.globl _resampler_CC_upsample_neon
#ifndef __MACH__
.type _resampler_CC_upsample_neon, %function
#endif
# size_t resampler_CC_upsample_neon(float *outp, const float *inp,
# rarch_CC_resampler_t* re_, size_t input_frames, float ratio);
-48
View File
@@ -1,48 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2016 - Ali Bouhlel ( [email protected] )
*
* 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 <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "../audio_resampler_driver.h"
typedef struct rarch_null_resampler
{
void *empty;
} rarch_null_resampler_t;
static void resampler_null_process(
void *re_, struct resampler_data *data)
{
}
static void resampler_null_free(void *re_)
{
}
static void *resampler_null_init(const struct resampler_config *config,
double bandwidth_mod, resampler_simd_mask_t mask)
{
return (void*)0;
}
rarch_resampler_t null_resampler = {
resampler_null_init,
resampler_null_process,
resampler_null_free,
RESAMPLER_API_VERSION,
"null",
"null"
};
-483
View File
@@ -1,483 +0,0 @@
/* 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.
*
* 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/>.
*/
/* Bog-standard windowed SINC implementation. */
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#ifdef __SSE__
#include <xmmintrin.h>
#endif
#include <retro_inline.h>
#include <filters.h>
#include <memalign.h>
#include "../audio_resampler_driver.h"
/* Rough SNR values for upsampling:
* LOWEST: 40 dB
* LOWER: 55 dB
* NORMAL: 70 dB
* HIGHER: 110 dB
* HIGHEST: 140 dB
*/
/* TODO, make all this more configurable. */
#if defined(SINC_LOWEST_QUALITY)
#define SINC_WINDOW_LANCZOS
#define CUTOFF 0.98
#define PHASE_BITS 12
#define SINC_COEFF_LERP 0
#define SUBPHASE_BITS 10
#define SIDELOBES 2
#define ENABLE_AVX 0
#elif defined(SINC_LOWER_QUALITY)
#define SINC_WINDOW_LANCZOS
#define CUTOFF 0.98
#define PHASE_BITS 12
#define SUBPHASE_BITS 10
#define SINC_COEFF_LERP 0
#define SIDELOBES 4
#define ENABLE_AVX 0
#elif defined(SINC_HIGHER_QUALITY)
#define SINC_WINDOW_KAISER
#define SINC_WINDOW_KAISER_BETA 10.5
#define CUTOFF 0.90
#define PHASE_BITS 10
#define SUBPHASE_BITS 14
#define SINC_COEFF_LERP 1
#define SIDELOBES 32
#define ENABLE_AVX 1
#elif defined(SINC_HIGHEST_QUALITY)
#define SINC_WINDOW_KAISER
#define SINC_WINDOW_KAISER_BETA 14.5
#define CUTOFF 0.962
#define PHASE_BITS 10
#define SUBPHASE_BITS 14
#define SINC_COEFF_LERP 1
#define SIDELOBES 128
#define ENABLE_AVX 1
#else
#define SINC_WINDOW_KAISER
#define SINC_WINDOW_KAISER_BETA 5.5
#define CUTOFF 0.825
#define PHASE_BITS 8
#define SUBPHASE_BITS 16
#define SINC_COEFF_LERP 1
#define SIDELOBES 8
#define ENABLE_AVX 0
#endif
/* For the little amount of taps we're using,
* SSE1 is faster than AVX for some reason.
* AVX code is kept here though as by increasing number
* of sinc taps, the AVX code is clearly faster than SSE1.
*/
#if defined(__AVX__) && ENABLE_AVX
#include <immintrin.h>
#endif
#define PHASES (1 << (PHASE_BITS + SUBPHASE_BITS))
#define TAPS (SIDELOBES * 2)
#define SUBPHASE_MASK ((1 << SUBPHASE_BITS) - 1)
#define SUBPHASE_MOD (1.0f / (1 << SUBPHASE_BITS))
typedef struct rarch_sinc_resampler
{
float *phase_table;
float *buffer_l;
float *buffer_r;
unsigned taps;
unsigned ptr;
uint32_t time;
/* A buffer for phase_table, buffer_l and buffer_r
* are created in a single calloc().
* Ensure that we get as good cache locality as we can hope for. */
float *main_buffer;
} rarch_sinc_resampler_t;
#if defined(SINC_WINDOW_LANCZOS)
#define window_function(idx) (lanzcos_window_function(idx))
#elif defined(SINC_WINDOW_KAISER)
#define window_function(idx) (kaiser_window_function(idx, SINC_WINDOW_KAISER_BETA))
#else
#error "No SINC window function defined."
#endif
static void init_sinc_table(rarch_sinc_resampler_t *resamp, double cutoff,
float *phase_table, int phases, int taps, bool calculate_delta)
{
int i, j;
double window_mod = window_function(0.0); /* Need to normalize w(0) to 1.0. */
int stride = calculate_delta ? 2 : 1;
double sidelobes = taps / 2.0;
for (i = 0; i < phases; i++)
{
for (j = 0; j < taps; j++)
{
double sinc_phase;
float val;
int n = j * phases + i;
double window_phase = (double)n / (phases * taps); /* [0, 1). */
window_phase = 2.0 * window_phase - 1.0; /* [-1, 1) */
sinc_phase = sidelobes * window_phase;
val = cutoff * sinc(M_PI * sinc_phase * cutoff) *
window_function(window_phase) / window_mod;
phase_table[i * stride * taps + j] = val;
}
}
if (calculate_delta)
{
int phase;
int p;
for (p = 0; p < phases - 1; p++)
{
for (j = 0; j < taps; j++)
{
float delta = phase_table[(p + 1) * stride * taps + j] -
phase_table[p * stride * taps + j];
phase_table[(p * stride + 1) * taps + j] = delta;
}
}
phase = phases - 1;
for (j = 0; j < taps; j++)
{
float val, delta;
double sinc_phase;
int n = j * phases + (phase + 1);
double window_phase = (double)n / (phases * taps); /* (0, 1]. */
window_phase = 2.0 * window_phase - 1.0; /* (-1, 1] */
sinc_phase = sidelobes * window_phase;
val = cutoff * sinc(M_PI * sinc_phase * cutoff) *
window_function(window_phase) / window_mod;
delta = (val - phase_table[phase * stride * taps + j]);
phase_table[(phase * stride + 1) * taps + j] = delta;
}
}
}
#if !(defined(__AVX__) && ENABLE_AVX) && !defined(__SSE__)
static INLINE void process_sinc_C(rarch_sinc_resampler_t *resamp,
float *out_buffer)
{
unsigned i;
float sum_l = 0.0f;
float sum_r = 0.0f;
const float *buffer_l = resamp->buffer_l + resamp->ptr;
const float *buffer_r = resamp->buffer_r + resamp->ptr;
unsigned taps = resamp->taps;
unsigned phase = resamp->time >> SUBPHASE_BITS;
#if SINC_COEFF_LERP
const float *phase_table = resamp->phase_table + phase * taps * 2;
const float *delta_table = phase_table + taps;
float delta = (float)
(resamp->time & SUBPHASE_MASK) * SUBPHASE_MOD;
#else
const float *phase_table = resamp->phase_table + phase * taps;
#endif
for (i = 0; i < taps; i++)
{
#if SINC_COEFF_LERP
float sinc_val = phase_table[i] + delta_table[i] * delta;
#else
float sinc_val = phase_table[i];
#endif
sum_l += buffer_l[i] * sinc_val;
sum_r += buffer_r[i] * sinc_val;
}
out_buffer[0] = sum_l;
out_buffer[1] = sum_r;
}
#endif
#if defined(__AVX__) && ENABLE_AVX
#define process_sinc_func process_sinc
static void process_sinc(rarch_sinc_resampler_t *resamp, float *out_buffer)
{
unsigned i;
__m256 sum_l = _mm256_setzero_ps();
__m256 sum_r = _mm256_setzero_ps();
const float *buffer_l = resamp->buffer_l + resamp->ptr;
const float *buffer_r = resamp->buffer_r + resamp->ptr;
unsigned taps = resamp->taps;
unsigned phase = resamp->time >> SUBPHASE_BITS;
#if SINC_COEFF_LERP
const float *phase_table = resamp->phase_table + phase * taps * 2;
const float *delta_table = phase_table + taps;
__m256 delta = _mm256_set1_ps((float)
(resamp->time & SUBPHASE_MASK) * SUBPHASE_MOD);
#else
const float *phase_table = resamp->phase_table + phase * taps;
#endif
for (i = 0; i < taps; i += 8)
{
__m256 buf_l = _mm256_loadu_ps(buffer_l + i);
__m256 buf_r = _mm256_loadu_ps(buffer_r + i);
#if SINC_COEFF_LERP
__m256 deltas = _mm256_load_ps(delta_table + i);
__m256 sinc = _mm256_add_ps(_mm256_load_ps(phase_table + i),
_mm256_mul_ps(deltas, delta));
#else
__m256 sinc = _mm256_load_ps(phase_table + i);
#endif
sum_l = _mm256_add_ps(sum_l, _mm256_mul_ps(buf_l, sinc));
sum_r = _mm256_add_ps(sum_r, _mm256_mul_ps(buf_r, sinc));
}
/* hadd on AVX is weird, and acts on low-lanes
* and high-lanes separately. */
__m256 res_l = _mm256_hadd_ps(sum_l, sum_l);
__m256 res_r = _mm256_hadd_ps(sum_r, sum_r);
res_l = _mm256_hadd_ps(res_l, res_l);
res_r = _mm256_hadd_ps(res_r, res_r);
res_l = _mm256_add_ps(_mm256_permute2f128_ps(res_l, res_l, 1), res_l);
res_r = _mm256_add_ps(_mm256_permute2f128_ps(res_r, res_r, 1), res_r);
/* This is optimized to mov %xmmN, [mem].
* There doesn't seem to be any _mm256_store_ss intrinsic. */
_mm_store_ss(out_buffer + 0, _mm256_extractf128_ps(res_l, 0));
_mm_store_ss(out_buffer + 1, _mm256_extractf128_ps(res_r, 0));
}
#elif defined(__SSE__)
#define process_sinc_func process_sinc
static void process_sinc(rarch_sinc_resampler_t *resamp, float *out_buffer)
{
unsigned i;
__m128 sum;
__m128 sum_l = _mm_setzero_ps();
__m128 sum_r = _mm_setzero_ps();
const float *buffer_l = resamp->buffer_l + resamp->ptr;
const float *buffer_r = resamp->buffer_r + resamp->ptr;
unsigned taps = resamp->taps;
unsigned phase = resamp->time >> SUBPHASE_BITS;
#if SINC_COEFF_LERP
const float *phase_table = resamp->phase_table + phase * taps * 2;
const float *delta_table = phase_table + taps;
__m128 delta = _mm_set1_ps((float)
(resamp->time & SUBPHASE_MASK) * SUBPHASE_MOD);
#else
const float *phase_table = resamp->phase_table + phase * taps;
#endif
for (i = 0; i < taps; i += 4)
{
__m128 buf_l = _mm_loadu_ps(buffer_l + i);
__m128 buf_r = _mm_loadu_ps(buffer_r + i);
#if SINC_COEFF_LERP
__m128 deltas = _mm_load_ps(delta_table + i);
__m128 _sinc = _mm_add_ps(_mm_load_ps(phase_table + i),
_mm_mul_ps(deltas, delta));
#else
__m128 _sinc = _mm_load_ps(phase_table + i);
#endif
sum_l = _mm_add_ps(sum_l, _mm_mul_ps(buf_l, _sinc));
sum_r = _mm_add_ps(sum_r, _mm_mul_ps(buf_r, _sinc));
}
/* Them annoying shuffles.
* sum_l = { l3, l2, l1, l0 }
* sum_r = { r3, r2, r1, r0 }
*/
sum = _mm_add_ps(_mm_shuffle_ps(sum_l, sum_r,
_MM_SHUFFLE(1, 0, 1, 0)),
_mm_shuffle_ps(sum_l, sum_r, _MM_SHUFFLE(3, 2, 3, 2)));
/* sum = { r1, r0, l1, l0 } + { r3, r2, l3, l2 }
* sum = { R1, R0, L1, L0 }
*/
sum = _mm_add_ps(_mm_shuffle_ps(sum, sum, _MM_SHUFFLE(3, 3, 1, 1)), sum);
/* sum = {R1, R1, L1, L1 } + { R1, R0, L1, L0 }
* sum = { X, R, X, L }
*/
/* Store L */
_mm_store_ss(out_buffer + 0, sum);
/* movehl { X, R, X, L } == { X, R, X, R } */
_mm_store_ss(out_buffer + 1, _mm_movehl_ps(sum, sum));
}
#elif defined(__ARM_NEON__) && !defined(VITA)
#if SINC_COEFF_LERP
#error "NEON asm does not support SINC lerp."
#endif
/* Need to make this function pointer as Android doesn't
* have built-in targets for NEON and plain ARMv7a.
*/
static void (*process_sinc_func)(rarch_sinc_resampler_t *resamp,
float *out_buffer);
/* Assumes that taps >= 8, and that taps is a multiple of 8. */
void process_sinc_neon_asm(float *out, const float *left,
const float *right, const float *coeff, unsigned taps);
static void process_sinc_neon(rarch_sinc_resampler_t *resamp,
float *out_buffer)
{
const float *buffer_l = resamp->buffer_l + resamp->ptr;
const float *buffer_r = resamp->buffer_r + resamp->ptr;
unsigned phase = resamp->time >> SUBPHASE_BITS;
unsigned taps = resamp->taps;
const float *phase_table = resamp->phase_table + phase * taps;
process_sinc_neon_asm(out_buffer, buffer_l, buffer_r, phase_table, taps);
}
#else /* Plain ol' C99 */
#define process_sinc_func process_sinc_C
#endif
static void resampler_sinc_process(void *re_, struct resampler_data *data)
{
rarch_sinc_resampler_t *re = (rarch_sinc_resampler_t*)re_;
uint32_t ratio = PHASES / data->ratio;
const float *input = data->data_in;
float *output = data->data_out;
size_t frames = data->input_frames;
size_t out_frames = 0;
while (frames)
{
while (frames && re->time >= PHASES)
{
/* Push in reverse to make filter more obvious. */
if (!re->ptr)
re->ptr = re->taps;
re->ptr--;
re->buffer_l[re->ptr + re->taps] = re->buffer_l[re->ptr] = *input++;
re->buffer_r[re->ptr + re->taps] = re->buffer_r[re->ptr] = *input++;
re->time -= PHASES;
frames--;
}
while (re->time < PHASES)
{
process_sinc_func(re, output);
output += 2;
out_frames++;
re->time += ratio;
}
}
data->output_frames = out_frames;
}
static void resampler_sinc_free(void *re)
{
rarch_sinc_resampler_t *resampler = (rarch_sinc_resampler_t*)re;
if (resampler)
memalign_free(resampler->main_buffer);
free(resampler);
}
static void *resampler_sinc_new(const struct resampler_config *config,
double bandwidth_mod, resampler_simd_mask_t mask)
{
size_t phase_elems, elems;
double cutoff;
rarch_sinc_resampler_t *re = (rarch_sinc_resampler_t*)
calloc(1, sizeof(*re));
if (!re)
return NULL;
(void)config;
re->taps = TAPS;
cutoff = CUTOFF;
/* Downsampling, must lower cutoff, and extend number of
* taps accordingly to keep same stopband attenuation. */
if (bandwidth_mod < 1.0)
{
cutoff *= bandwidth_mod;
re->taps = (unsigned)ceil(re->taps / bandwidth_mod);
}
/* Be SIMD-friendly. */
#if (defined(__AVX__) && ENABLE_AVX) || (defined(__ARM_NEON__)&& !defined(VITA))
re->taps = (re->taps + 7) & ~7;
#else
re->taps = (re->taps + 3) & ~3;
#endif
phase_elems = (1 << PHASE_BITS) * re->taps;
#if SINC_COEFF_LERP
phase_elems *= 2;
#endif
elems = phase_elems + 4 * re->taps;
re->main_buffer = (float*)memalign_alloc(128, sizeof(float) * elems);
if (!re->main_buffer)
goto error;
re->phase_table = re->main_buffer;
re->buffer_l = re->main_buffer + phase_elems;
re->buffer_r = re->buffer_l + 2 * re->taps;
init_sinc_table(re, cutoff, re->phase_table,
1 << PHASE_BITS, re->taps, SINC_COEFF_LERP);
#if defined(__ARM_NEON__) && !defined(VITA)
process_sinc_func = mask & RESAMPLER_SIMD_NEON
? process_sinc_neon : process_sinc_C;
#endif
return re;
error:
resampler_sinc_free(re);
return NULL;
}
rarch_resampler_t sinc_resampler = {
resampler_sinc_new,
resampler_sinc_process,
resampler_sinc_free,
RESAMPLER_API_VERSION,
"sinc",
"sinc"
};
@@ -1,60 +0,0 @@
/* 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.
*
* 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/>.
*/
#if defined(__ARM_NEON__)
#ifndef __MACH__
.arm
#endif
.align 4
.globl process_sinc_neon_asm
.globl _process_sinc_neon_asm
# void process_sinc_neon(float *out, const float *left, const float *right, const float *coeff, unsigned taps)
# Assumes taps is >= 8, and a multiple of 8.
process_sinc_neon_asm:
_process_sinc_neon_asm:
push {r4, lr}
vmov.f32 q0, #0.0
vmov.f32 q8, #0.0
# Taps argument (r4) goes on stack in armeabi.
ldr r4, [sp, #8]
1:
# Left
vld1.f32 {q2-q3}, [r1]!
# Right
vld1.f32 {q10-q11}, [r2]!
# Coeff
vld1.f32 {q12-q13}, [r3, :128]!
# Left / Right
vmla.f32 q0, q2, q12
vmla.f32 q8, q10, q12
vmla.f32 q0, q3, q13
vmla.f32 q8, q11, q13
subs r4, r4, #8
bne 1b
# Add everything together
vadd.f32 d0, d0, d1
vadd.f32 d16, d16, d17
vpadd.f32 d0, d0, d16
vst1.f32 d0, [r0]
pop {r4, pc}
#endif
+28 -25
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -65,13 +65,13 @@
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdarg.h>
#include <time.h>
#include <errno.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
/*
@@ -212,7 +212,7 @@ static INLINE int rsnd_format_to_samplesize ( uint16_t fmt )
int rsd_samplesize( rsound_t *rd )
{
assert(rd != NULL);
retro_assert(rd != NULL);
return rd->samplesize;
}
@@ -1298,7 +1298,7 @@ static int rsnd_reset(rsound_t *rd)
int rsd_stop(rsound_t *rd)
{
assert(rd != NULL);
retro_assert(rd != NULL);
rsnd_stop_thread(rd);
const char buf[] = "RSD 5 STOP";
@@ -1314,7 +1314,7 @@ int rsd_stop(rsound_t *rd)
size_t rsd_write( rsound_t *rsound, const void* buf, size_t size)
{
size_t max_write, written = 0;
assert(rsound != NULL);
retro_assert(rsound != NULL);
if ( !rsound->ready_for_data )
return 0;
@@ -1339,11 +1339,11 @@ size_t rsd_write( rsound_t *rsound, const void* buf, size_t size)
int rsd_start(rsound_t *rsound)
{
assert(rsound != NULL);
assert(rsound->rate > 0);
assert(rsound->channels > 0);
assert(rsound->host != NULL);
assert(rsound->port != NULL);
retro_assert(rsound != NULL);
retro_assert(rsound->rate > 0);
retro_assert(rsound->channels > 0);
retro_assert(rsound->host != NULL);
retro_assert(rsound->port != NULL);
if ( rsnd_create_connection(rsound) < 0 )
return -1;
@@ -1353,7 +1353,7 @@ int rsd_start(rsound_t *rsound)
int rsd_exec(rsound_t *rsound)
{
assert(rsound != NULL);
retro_assert(rsound != NULL);
RSD_DEBUG("[RSound] rsd_exec().\n");
// Makes sure we have a working connection
@@ -1406,8 +1406,8 @@ int rsd_exec(rsound_t *rsound)
/* ioctl()-ish param setting :D */
int rsd_set_param(rsound_t *rd, enum rsd_settings option, void* param)
{
assert(rd != NULL);
assert(param != NULL);
retro_assert(rd != NULL);
retro_assert(param != NULL);
int retval = 0;
switch(option)
@@ -1505,7 +1505,7 @@ void rsd_delay_wait(rsound_t *rd)
size_t rsd_pointer(rsound_t *rsound)
{
assert(rsound != NULL);
retro_assert(rsound != NULL);
int ptr;
ptr = rsnd_get_ptr(rsound);
@@ -1515,7 +1515,7 @@ size_t rsd_pointer(rsound_t *rsound)
size_t rsd_get_avail(rsound_t *rd)
{
assert(rd != NULL);
retro_assert(rd != NULL);
int ptr;
ptr = rsnd_get_ptr(rd);
return rd->buffer_size - ptr;
@@ -1523,7 +1523,7 @@ size_t rsd_get_avail(rsound_t *rd)
size_t rsd_delay(rsound_t *rd)
{
assert(rd != NULL);
retro_assert(rd != NULL);
int ptr = rsnd_get_delay(rd);
if ( ptr < 0 )
ptr = 0;
@@ -1533,28 +1533,29 @@ size_t rsd_delay(rsound_t *rd)
size_t rsd_delay_ms(rsound_t* rd)
{
assert(rd);
assert(rd->rate > 0 && rd->channels > 0);
retro_assert(rd);
retro_assert(rd->rate > 0 && rd->channels > 0);
return (rsd_delay(rd) * 1000) / ( rd->rate * rd->channels * rd->samplesize );
}
int rsd_pause(rsound_t* rsound, int enable)
{
assert(rsound != NULL);
retro_assert(rsound != NULL);
if ( enable )
return rsd_stop(rsound);
else
return rsd_start(rsound);
return rsd_start(rsound);
}
int rsd_init(rsound_t** rsound)
{
assert(rsound != NULL);
*rsound = calloc(1, sizeof(rsound_t));
if ( *rsound == NULL )
return -1;
retro_assert(rsound != NULL);
(*rsound)->conn.socket = -1;
(*rsound)->conn.ctl_socket = -1;
@@ -1616,7 +1617,7 @@ int rsd_simple_start(rsound_t** rsound, const char* host, const char* port, cons
void rsd_set_callback(rsound_t *rsound, rsd_audio_callback_t audio_cb, rsd_error_callback_t err_cb, size_t max_size, void *userdata)
{
assert(rsound != NULL);
retro_assert(rsound != NULL);
rsound->audio_callback = audio_cb;
rsound->error_callback = err_cb;
@@ -1624,7 +1625,9 @@ void rsd_set_callback(rsound_t *rsound, rsd_audio_callback_t audio_cb, rsd_error
rsound->cb_data = userdata;
if (rsound->audio_callback)
assert(rsound->error_callback);
{
retro_assert(rsound->error_callback);
}
}
void rsd_callback_lock(rsound_t *rsound)
@@ -1639,7 +1642,7 @@ void rsd_callback_unlock(rsound_t *rsound)
int rsd_free(rsound_t *rsound)
{
assert(rsound != NULL);
retro_assert(rsound != NULL);
if (rsound->fifo_buffer)
fifo_free(rsound->fifo_buffer);
if (rsound->host)
-108
View File
@@ -1,108 +0,0 @@
TESTS := test-sinc-lowest \
test-snr-sinc-lowest \
test-sinc-lower \
test-snr-sinc-lower \
test-sinc \
test-snr-sinc \
test-sinc-higher \
test-snr-sinc-higher \
test-sinc-highest \
test-snr-sinc-highest \
test-cc \
test-snr-cc
LIBRETRO_COMM_DIR = ../../libretro-common
CFLAGS += -O3 -ffast-math -g -Wall -pedantic -march=native -std=gnu99
CFLAGS += -DRESAMPLER_TEST -DRARCH_DUMMY_LOG -DRARCH_INTERNAL
CFLAGS += -I$(LIBRETRO_COMM_DIR)/include -I../../
LDFLAGS += -lm
SHAREDOBJ += $(LIBRETRO_COMM_DIR)/memmap/memalign.o \
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
../..//config_file_userdata.o \
../audio_resampler_driver.o \
$(LIBRETRO_COMM_DIR)/file/config_file.o \
$(LIBRETRO_COMM_DIR)/streams/file_stream.o \
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
$(LIBRETRO_COMM_DIR)/file/file_path.o \
$(LIBRETRO_COMM_DIR)/file/retro_stat.o \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.o \
$(LIBRETRO_COMM_DIR)/hash/rhash.o \
all: $(TESTS)
main-cc.o: main.c
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
snr-cc.o: snr.c
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
cc-resampler.o: ../drivers_resampler/cc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
sinc-lowest.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWEST_QUALITY
sinc-lower.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWER_QUALITY
sinc.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
nearest_resampler.o: ../drivers_resampler/nearest_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
sinc-higher.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHER_QUALITY
sinc-highest.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHEST_QUALITY
test-sinc-lowest: sinc-lowest.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-lowest: sinc-lowest.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-lower: sinc-lower.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-lower: sinc-lower.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc: sinc.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc: sinc.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-higher: sinc-higher.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-higher: sinc-higher.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-highest: sinc-highest.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-highest: sinc-highest.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-cc: cc-resampler.o ../audio_utils.o main-cc.o resampler-cc.o sinc.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-cc: cc-resampler.o ../audio_utils.o snr-cc.o resampler-cc.o sinc.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
clean:
rm -f $(TESTS)
rm -f *.o
rm -f ../*.o
.PHONY: clean
-6
View File
@@ -1,6 +0,0 @@
function win = kaiser_window(N, beta)
% Create an N-point kaiser window with given beta.
indices = 2 * (0 : N - 1) / (N - 1) - 1;
mod = modified_bessel(beta);
win = modified_bessel(beta * sqrt(1 - indices.^2)) / mod;
-102
View File
@@ -1,102 +0,0 @@
/* 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.
*
* 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/>.
*/
// Resampler that reads raw S16NE/stereo from stdin and outputs to stdout in S16NE/stereo.
// Used for testing and performance benchmarking.
#include "../audio_resampler_driver.h"
#include "../audio_utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#ifndef RESAMPLER_IDENT
#define RESAMPLER_IDENT "sinc"
#endif
int main(int argc, char *argv[])
{
int16_t input_i[1024];
int16_t output_i[1024 * 8];
float input_f[1024];
float output_f[1024 * 8];
double in_rate, out_rate, ratio;
double ratio_max_deviation = 0.0;
const rarch_resampler_t *resampler = NULL;
void *re = NULL;
srand(time(NULL));
if (argc < 3 || argc > 4)
{
fprintf(stderr, "Usage: %s <in-rate> <out-rate> [ratio deviation] (max ratio: 8.0)\n", argv[0]);
return 1;
}
else if (argc == 4)
{
ratio_max_deviation = fabs(strtod(argv[3], NULL));
fprintf(stderr, "Ratio deviation: %.4f.\n", ratio_max_deviation);
}
in_rate = strtod(argv[1], NULL);
out_rate = strtod(argv[2], NULL);
ratio = out_rate / in_rate;
if (ratio >= 7.99)
{
fprintf(stderr, "Ratio is too high.\n");
return 1;
}
if (!rarch_resampler_realloc(&re, &resampler, RESAMPLER_IDENT, out_rate / in_rate))
{
fprintf(stderr, "Failed to allocate resampler ...\n");
return 1;
}
for (;;)
{
size_t output_samples;
struct resampler_data data;
double uniform, rate_mod;
if (fread(input_i, sizeof(int16_t), 1024, stdin) != 1024)
break;
uniform = (2.0 * rand()) / RAND_MAX - 1.0;
rate_mod = 1.0 + ratio_max_deviation * uniform;
convert_s16_to_float(input_f, input_i, 1024, 1.0f);
data.data_in = input_f;
data.data_out = output_f;
data.input_frames = sizeof(input_f) / (2 * sizeof(float));
data.ratio = ratio * rate_mod;
rarch_resampler_process(resampler, re, &data);
output_samples = data.output_frames * 2;
convert_float_to_s16(output_i, output_f, output_samples);
if (fwrite(output_i, sizeof(int16_t), output_samples, stdout) != output_samples)
break;
}
rarch_resampler_freep(&resampler, &re);
}
-21
View File
@@ -1,21 +0,0 @@
function val = modified_bessel(x)
% Mirrors operation as done in RetroArch. Verify accuracy against Matlab's
% implementation.
sum = zeros(size(x));
factorial = ones(size(x));
factorial_mult = zeros(size(x));
x_pow = ones(size(x));
two_div_pow = ones(size(x));
x_sqr = x .* x;
for i = 0 : 17
sum = sum + x_pow .* two_div_pow ./ (factorial .* factorial);
factorial_mult = factorial_mult + 1.0;
x_pow = x_pow .* x_sqr;
two_div_pow = two_div_pow * 0.25;
factorial = factorial .* factorial_mult;
end
val = sum;
-51
View File
@@ -1,51 +0,0 @@
% MATLAB test case for RetroArch SINC upsampler.
close all;
%%
% Test RetroArch's kaiser function.
real_kaiser = kaiser(1024, 10.0)';
rarch_kaiser = kaiser_window(1024, 10.0);
figure('name', 'Bessel function test');
subplot(2, 1, 1), plot(rarch_kaiser), title('RetroArch kaiser');
subplot(2, 1, 2), plot(rarch_kaiser - real_kaiser), title('Error');
%%
% 4-tap and 8-tap are Lanczos windowed, but include here for completeness.
phases = 256;
ratio = 2.0;
bw = min(1.0, ratio);
downsample = round(phases / ratio);
cutoffs = bw * [0.65 0.75 0.825 0.90 0.962];
betas = [2.0 3.0 5.5 10.5 14.5];
sidelobes = round([2 4 8 32 128] / bw);
taps = sidelobes * 2;
freqs = 0.05 : 0.02 : 0.99;
%filters = length(taps);
%for i = 1 : filters
for i = 5
filter_length = taps(i) * phases;
% Generate SINC.
sinc_indices = 2 * ((0 : (filter_length - 1)) / filter_length) - 1;
s = cutoffs(i) * sinc(cutoffs(i) * sinc_indices * sidelobes(i));
win = kaiser(filter_length, betas(i))';
filter = s .* win;
impulse_response_half = upfirdn(1, filter, phases, downsample) / bw;
figure('name', sprintf('Response SINC: %d taps', taps(i)));
freqz(impulse_response_half);
ylim([-200 0]);
signal = zeros(1, 80001);
for freq = freqs
signal = signal + sin(pi * freq * (0 : 80000));
end
resampled = upfirdn(signal, filter, phases, downsample);
figure('name', sprintf('Kaiser SINC: %d taps, w = %.f', taps(i), freq));
freqz(resampled .* kaiser(length(resampled), 40.0)', 1, 16 * 1024);
ylim([-180 100]);
end
-353
View File
@@ -1,353 +0,0 @@
/* 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.
*
* 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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
#include <retro_miscellaneous.h>
#include "../audio_resampler_driver.h"
#include "../audio_utils.h"
#ifndef RESAMPLER_IDENT
#define RESAMPLER_IDENT "sinc"
#endif
static void gen_signal(float *out, double omega, double bias_samples, size_t samples)
{
size_t i;
for (i = 0; i < samples; i += 2)
{
out[i + 0] = cos(((i >> 1) + bias_samples) * omega);
out[i + 1] = out[i + 0];
}
}
struct snr_result
{
double snr;
double gain;
unsigned alias_freq[3];
double alias_power[3];
};
static unsigned bitrange(unsigned len)
{
unsigned ret = 0;
while ((len >>= 1))
ret++;
return ret;
}
static unsigned bitswap(unsigned i, unsigned range)
{
unsigned shifts;
unsigned ret = 0;
for (shifts = 0; shifts < range; shifts++)
ret |= (i & (1 << (range - shifts - 1))) ? (1 << shifts) : 0;
return ret;
}
/* When interleaving the butterfly buffer, addressing puts bits in reverse.
* [0, 1, 2, 3, 4, 5, 6, 7] => [0, 4, 2, 6, 1, 5, 3, 7] */
static void interleave(complex double *butterfly_buf, size_t samples)
{
unsigned i;
unsigned range = bitrange(samples);
for (i = 0; i < samples; i++)
{
unsigned target = bitswap(i, range);
if (target > i)
{
complex double tmp = butterfly_buf[target];
butterfly_buf[target] = butterfly_buf[i];
butterfly_buf[i] = tmp;
}
}
}
static complex double gen_phase(double index)
{
return cexp(M_PI * I * index);
}
static void butterfly(complex double *a, complex double *b, complex double mod)
{
complex double a_;
complex double b_;
mod *= *b;
a_ = *a + mod;
b_ = *a - mod;
*a = a_;
*b = b_;
}
static void butterflies(complex double *butterfly_buf, double phase_dir, size_t step_size, size_t samples)
{
unsigned i, j;
for (i = 0; i < samples; i += 2 * step_size)
for (j = i; j < i + step_size; j++)
butterfly(&butterfly_buf[j], &butterfly_buf[j + step_size], gen_phase((phase_dir * (j - i)) / step_size));
}
static void calculate_fft(const float *data, complex double *butterfly_buf, size_t samples)
{
unsigned i;
/* Enforce POT. */
assert((samples & (samples - 1)) == 0);
for (i = 0; i < samples; i++)
butterfly_buf[i] = data[2 * i];
/* Interleave buffer to work with FFT. */
interleave(butterfly_buf, samples);
/* Fly, lovely butterflies! :D */
for (unsigned step_size = 1; step_size < samples; step_size *= 2)
butterflies(butterfly_buf, -1.0, step_size, samples);
}
static void calculate_fft_adjust(complex double *butterfly_buf, double gain, bool merge_high, size_t samples)
{
unsigned i;
if (merge_high)
{
for (i = 1; i < samples / 2; i++)
butterfly_buf[i] *= 2.0;
}
/* Normalize amplitudes. */
for (i = 0; i < samples; i++)
butterfly_buf[i] *= gain;
}
static void calculate_ifft(complex double *butterfly_buf, size_t samples, bool normalize)
{
unsigned step_size;
/* Enforce POT. */
assert((samples & (samples - 1)) == 0);
interleave(butterfly_buf, samples);
/* Fly, lovely butterflies! In opposite direction! :D */
for (step_size = 1; step_size < samples; step_size *= 2)
butterflies(butterfly_buf, 1.0, step_size, samples);
if (normalize)
calculate_fft_adjust(butterfly_buf, 1.0 / samples, false, samples);
}
static void test_fft(void)
{
unsigned i, j;
float signal[32];
complex double butterfly_buf[16];
complex double buf_tmp[16];
const float cos_freqs[] = {
1.0, 4.0, 6.0,
};
const float sin_freqs[] = {
-2.0, 5.0, 7.0,
};
fprintf(stderr, "Sanity checking FFT ...\n");
for (i = 0; i < 16; i++)
{
signal[2 * i] = 0.0;
for (j = 0; j < sizeof(cos_freqs) / sizeof(cos_freqs[0]); j++)
signal[2 * i] += cos(2.0 * M_PI * i * cos_freqs[j] / 16.0);
for ( j = 0; j < sizeof(sin_freqs) / sizeof(sin_freqs[0]); j++)
signal[2 * i] += sin(2.0 * M_PI * i * sin_freqs[j] / 16.0);
}
calculate_fft(signal, butterfly_buf, 16);
memcpy(buf_tmp, butterfly_buf, sizeof(buf_tmp));
calculate_fft_adjust(buf_tmp, 1.0 / 16, true, 16);
fprintf(stderr, "FFT: { ");
for (i = 0; i < 7; i++)
fprintf(stderr, "(%4.2lf, %4.2lf), ", creal(buf_tmp[i]), cimag(buf_tmp[i]));
fprintf(stderr, "(%4.2lf, %4.2lf) }\n", creal(buf_tmp[7]), cimag(buf_tmp[7]));
calculate_ifft(butterfly_buf, 16, true);
fprintf(stderr, "Original: { ");
for (i = 0; i < 15; i++)
fprintf(stderr, "%5.2f, ", signal[2 * i]);
fprintf(stderr, "%5.2f }\n", signal[2 * 15]);
fprintf(stderr, "FFT => IFFT: { ");
for ( i = 0; i < 15; i++)
fprintf(stderr, "%5.2lf, ", creal(butterfly_buf[i]));
fprintf(stderr, "%5.2lf }\n", creal(butterfly_buf[15]));
}
static void set_alias_power(struct snr_result *res, unsigned freq, double power)
{
unsigned i;
for (i = 0; i < 3; i++)
{
if (power >= res->alias_power[i])
{
memmove(res->alias_freq + i + 1, res->alias_freq + i, (2 - i) * sizeof(res->alias_freq[0]));
memmove(res->alias_power + i + 1, res->alias_power + i, (2 - i) * sizeof(res->alias_power[0]));
res->alias_power[i] = power;
res->alias_freq[i] = freq;
break;
}
}
}
static void calculate_snr(struct snr_result *res,
unsigned in_rate, unsigned max_rate,
const float *resamp, complex double *butterfly_buf,
size_t samples)
{
unsigned i;
double signal;
double noise = 0.0;
samples >>= 1;
calculate_fft(resamp, butterfly_buf, samples);
calculate_fft_adjust(butterfly_buf, 1.0 / samples, true, samples);
memset(res, 0, sizeof(*res));
signal = cabs(butterfly_buf[in_rate] * butterfly_buf[in_rate]);
butterfly_buf[in_rate] = 0.0;
/* Aliased frequencies above half the original sampling rate are not considered. */
for (i = 0; i <= max_rate; i++)
{
double power = cabs(butterfly_buf[i] * butterfly_buf[i]);
set_alias_power(res, i, power);
noise += power;
}
res->snr = 10.0 * log10(signal / noise);
res->gain = 10.0 * log10(signal);
for (i = 0; i < 3; i++)
res->alias_power[i] = 10.0 * log10(res->alias_power[i]);
}
int main(int argc, char *argv[])
{
static const float freq_list[] = {
0.001, 0.002, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009,
0.010, 0.015, 0.020, 0.025, 0.030, 0.035, 0.040, 0.045, 0.050,
0.060, 0.070, 0.080, 0.090,
0.10, 0.15, 0.20, 0.25, 0.30, 0.35,
0.40, 0.41, 0.42, 0.43, 0.44, 0.45,
0.46, 0.47, 0.48, 0.49,
0.495, 0.496, 0.497, 0.498, 0.499,
};
unsigned out_rate, in_rate, samples, i;
double ratio;
float *input, *output;
complex double *butterfly_buf;
const rarch_resampler_t *resampler = NULL;
const unsigned fft_samples = 1024 * 128;
void *re = NULL;
if (argc != 2)
{
fprintf(stderr, "Usage: %s <ratio> (out-rate is fixed for FFT).\n", argv[0]);
return 1;
}
ratio = strtod(argv[1], NULL);
out_rate = fft_samples / 2;
in_rate = round(out_rate / ratio);
ratio = (double)out_rate / in_rate;
samples = in_rate * 4;
input = calloc(sizeof(float), samples);
output = calloc(sizeof(float), (fft_samples + 16) * 2);
butterfly_buf = calloc(sizeof(complex double), fft_samples / 2);
assert(input);
assert(output);
if (!rarch_resampler_realloc(&re, &resampler, RESAMPLER_IDENT, ratio))
{
free(input);
free(output);
free(butterfly_buf);
return 1;
}
test_fft();
for (i = 0; i < sizeof(freq_list) / sizeof(freq_list[0]); i++)
{
struct resampler_data data;
unsigned max_freq;
struct snr_result res = {0};
unsigned freq = freq_list[i] * in_rate;
double omega = 2.0 * M_PI * freq / in_rate;
gen_signal(input, omega, 0, samples);
data.data_in = input;
data.data_out = output;
data.input_frames = in_rate * 2;
data.ratio = ratio;
rarch_resampler_process(resampler, re, &data);
/* We generate 2 seconds worth of audio, however,
* only the last second is considered so phase has stabilized. */
max_freq = min(in_rate, out_rate) / 2;
if (freq > max_freq)
continue;
calculate_snr(&res, freq, max_freq, output + fft_samples - 2048, butterfly_buf, fft_samples);
printf("SNR @ w = %5.3f : %6.2lf dB, Gain: %6.1lf dB\n",
freq_list[i], res.snr, res.gain);
printf("\tAliases: #1 (w = %5.3f, %6.2lf dB), #2 (w = %5.3f, %6.2lf dB), #3 (w = %5.3f, %6.2lf dB)\n",
res.alias_freq[0] / (float)in_rate, res.alias_power[0],
res.alias_freq[1] / (float)in_rate, res.alias_power[1],
res.alias_freq[2] / (float)in_rate, res.alias_power[2]);
}
rarch_resampler_freep(&resampler, &re);
free(input);
free(output);
free(butterfly_buf);
}
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
ffmpeg -i "$1" -f s16le - | ./test-sinc-highest 44100 48000 $3 | ffmpeg -y -ar 48000 -f s16le -ac 2 -i - "$2"
-2
View File
@@ -23,8 +23,6 @@
RETRO_BEGIN_DECLS
typedef struct autosave autosave_t;
/**
* autosave_lock:
*
+100
View File
@@ -0,0 +1,100 @@
#include <errno.h>
#include <reent.h>
#include "../../defines/psp_defines.h"
#include <psp2/kernel/sysmem.h>
#include <psp2/kernel/threadmgr.h>
static int _newlib_heap_memblock;
static unsigned _newlib_heap_size;
static char *_newlib_heap_base, *_newlib_heap_end, *_newlib_heap_cur;
static char _newlib_sbrk_mutex[32] __attribute__ ((aligned (8)));
static int _newlib_vm_memblock;
extern int _newlib_heap_size_user __attribute__((weak));
extern int _newlib_vm_size_user __attribute__((weak));
void * _sbrk_r(struct _reent *reent, ptrdiff_t incr) {
if (sceKernelLockLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, 1, 0) < 0)
goto fail;
if (!_newlib_heap_base || _newlib_heap_cur + incr >= _newlib_heap_end) {
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, 1);
fail:
reent->_errno = ENOMEM;
return (void*)-1;
}
char *prev_heap_end = _newlib_heap_cur;
_newlib_heap_cur += incr;
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, 1);
return (void*) prev_heap_end;
}
void _init_vita_heap(void) {
int _newlib_vm_size = 0;
if (&_newlib_vm_size_user != NULL) {
_newlib_vm_size = _newlib_vm_size_user;
_newlib_vm_memblock = sceKernelAllocMemBlockForVM("code", _newlib_vm_size_user);
if (_newlib_vm_memblock < 0){
//sceClibPrintf("sceKernelAllocMemBlockForVM failed\n");
goto failure;
}
}else{
_newlib_vm_memblock = 0;
}
// Create a mutex to use inside _sbrk_r
if (sceKernelCreateLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, "sbrk mutex", 0, 0, 0) < 0) {
goto failure;
}
if (&_newlib_heap_size_user != NULL) {
_newlib_heap_size = _newlib_heap_size_user;
}else{
_newlib_heap_size = 192 * 1024 * 1024;
}
_newlib_heap_size -= _newlib_vm_size;
_newlib_heap_memblock = sceKernelAllocMemBlock("Newlib heap", 0x0c20d060, _newlib_heap_size, 0);
if (_newlib_heap_memblock < 0) {
goto failure;
}
if (sceKernelGetMemBlockBase(_newlib_heap_memblock, (void**)&_newlib_heap_base) < 0) {
goto failure;
}
_newlib_heap_end = _newlib_heap_base + _newlib_heap_size;
_newlib_heap_cur = _newlib_heap_base;
return;
failure:
_newlib_vm_memblock = 0;
_newlib_heap_memblock = 0;
_newlib_heap_base = 0;
_newlib_heap_cur = 0;
}
int getVMBlock(){
return _newlib_vm_memblock;
}
void _free_vita_heap(void) {
// Destroy the sbrk mutex
sceKernelDeleteLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex);
// Free the heap memblock to avoid memory leakage.
sceKernelFreeMemBlock(_newlib_heap_memblock);
if(_newlib_vm_memblock)
sceKernelFreeMemBlock(_newlib_vm_memblock);
_newlib_vm_memblock = 0;
_newlib_heap_memblock = 0;
_newlib_heap_base = 0;
_newlib_heap_cur = 0;
}
+11 -3
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
@@ -16,9 +16,14 @@
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include "camera_driver.h"
#include "../configuration.h"
#include "../driver.h"
#include "../retroarch.h"
#include "../runloop.h"
#include "../list_special.h"
@@ -189,7 +194,7 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
runloop_msg_queue_push(
"Camera is explicitly disabled.\n", 1, 180, false);
}
return false;
break;
case RARCH_CAMERA_CTL_POLL:
if (!camera_cb.caps)
return false;
@@ -213,6 +218,9 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
camera_driver_ctl(RARCH_CAMERA_CTL_FIND_DRIVER, NULL);
if (!camera_driver)
return false;
camera_data = camera_driver->init(
*settings->camera.device ? settings->camera.device : NULL,
camera_cb.caps,
@@ -234,5 +242,5 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
break;
}
return false;
return true;
}
+1 -1
View File
@@ -1,6 +1,6 @@
/* 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
*
* 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-
+19 -14
View File
@@ -1,6 +1,6 @@
/* 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
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
@@ -33,8 +33,11 @@ typedef struct android_camera
static void *android_camera_init(const char *device, uint64_t caps,
unsigned width, unsigned height)
{
JNIEnv *env;
jclass class;
androidcamera_t *androidcamera = NULL;
JNIEnv *env = NULL;
struct android_app *android_app = (struct android_app*)g_android;
(void)device;
(void)width;
(void)height;
@@ -45,9 +48,7 @@ static void *android_camera_init(const char *device, uint64_t caps,
return NULL;
}
struct android_app *android_app = (struct android_app*)g_android;
androidcamera_t *androidcamera = (androidcamera_t*)
calloc(1, sizeof(androidcamera_t));
androidcamera = (androidcamera_t*)calloc(1, sizeof(androidcamera_t));
if (!androidcamera)
return NULL;
@@ -102,8 +103,9 @@ dealloc:
static void android_camera_free(void *data)
{
struct android_app *android_app = (struct android_app*)g_android;
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
if (!env)
return;
@@ -116,8 +118,9 @@ static void android_camera_free(void *data)
static bool android_camera_start(void *data)
{
struct android_app *android_app = (struct android_app*)g_android;
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
if (!env)
return NULL;
@@ -141,8 +144,9 @@ static bool android_camera_start(void *data)
static void android_camera_stop(void *data)
{
struct android_app *android_app = (struct android_app*)g_android;
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
if (!env)
return;
@@ -157,15 +161,16 @@ static bool android_camera_poll(void *data,
retro_camera_frame_raw_framebuffer_t frame_raw_cb,
retro_camera_frame_opengl_texture_t frame_gl_cb)
{
jboolean newFrame;
struct android_app *android_app = (struct android_app*)g_android;
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
androidcamera_t *androidcamera = (androidcamera_t*)data;
JNIEnv *env = jni_thread_getenv();
if (!env)
return NULL;
(void)frame_raw_cb;
jboolean newFrame;
CALL_BOOLEAN_METHOD(env, newFrame, android_app->activity->clazz,
androidcamera->onCameraPoll);
+2 -1
View File
@@ -1,5 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2015 - Michael Lelli
* 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-
+1
View File
@@ -1,5 +1,6 @@
/* 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-
+29 -49
View File
@@ -1,6 +1,6 @@
/* 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
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
@@ -41,7 +41,6 @@
#include <compat/strl.h>
#include "../camera_driver.h"
#include "../../performance_counters.h"
#include "../../verbosity.h"
struct buffer
@@ -63,19 +62,9 @@ typedef struct video4linux
uint32_t *buffer_output;
bool ready;
char dev_name[PATH_MAX_LENGTH];
char dev_name[255];
} video4linux_t;
static void process_image(video4linux_t *v4l, const uint8_t *buffer_yuv)
{
static struct retro_perf_counter yuv_convert_direct = {0};
performance_counter_init(&yuv_convert_direct, "yuv_convert_direct");
performance_counter_start(&yuv_convert_direct);
scaler_ctx_scale(&v4l->scaler, v4l->buffer_output, buffer_yuv);
performance_counter_stop(&yuv_convert_direct);
}
static int xioctl(int fd, int request, void *args)
{
int r;
@@ -90,14 +79,12 @@ static int xioctl(int fd, int request, void *args)
static bool init_mmap(void *data)
{
struct v4l2_requestbuffers req;
video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_requestbuffers req = {0};
video4linux_t *v4l = (video4linux_t*)data;
memset(&req, 0, sizeof(req));
req.count = 4;
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.memory = V4L2_MEMORY_MMAP;
req.count = 4;
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.memory = V4L2_MEMORY_MMAP;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_REQBUFS, &req) == -1)
{
@@ -124,13 +111,11 @@ static bool init_mmap(void *data)
for (v4l->n_buffers = 0; v4l->n_buffers < req.count; v4l->n_buffers++)
{
struct v4l2_buffer buf;
struct v4l2_buffer buf = {0};
memset(&buf, 0, sizeof(buf));
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
buf.index = v4l->n_buffers;
buf.index = v4l->n_buffers;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYBUF, &buf) == -1)
{
@@ -139,7 +124,7 @@ static bool init_mmap(void *data)
}
v4l->buffers[v4l->n_buffers].length = buf.length;
v4l->buffers[v4l->n_buffers].start = mmap(NULL,
v4l->buffers[v4l->n_buffers].start = mmap(NULL,
buf.length, PROT_READ | PROT_WRITE,
MAP_SHARED,
v4l->fd, buf.m.offset);
@@ -156,11 +141,11 @@ static bool init_mmap(void *data)
static bool init_device(void *data)
{
struct v4l2_capability cap;
struct v4l2_cropcap cropcap;
struct v4l2_crop crop;
struct v4l2_format fmt;
video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_capability cap;
struct v4l2_format fmt = {0};
struct v4l2_cropcap cropcap = {0};
video4linux_t *v4l = (video4linux_t*)data;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYCAP, &cap) < 0)
{
@@ -184,24 +169,21 @@ static bool init_device(void *data)
return false;
}
memset(&cropcap, 0, sizeof(cropcap));
cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_CROPCAP, &cropcap) == 0)
{
crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
crop.c = cropcap.defrect;
crop.c = cropcap.defrect;
/* Ignore errors here. */
xioctl(v4l->fd, VIDIOC_S_CROP, &crop);
}
memset(&fmt, 0, sizeof(fmt));
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = v4l->width;
fmt.fmt.pix.height = v4l->height;
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = v4l->width;
fmt.fmt.pix.height = v4l->height;
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
fmt.fmt.pix.field = V4L2_FIELD_NONE;
fmt.fmt.pix.field = V4L2_FIELD_NONE;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_S_FMT, &fmt) < 0)
{
@@ -255,9 +237,7 @@ static bool v4l_start(void *data)
for (i = 0; i < v4l->n_buffers; i++)
{
struct v4l2_buffer buf;
memset(&buf, 0, sizeof(buf));
struct v4l2_buffer buf = {0};
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
@@ -372,12 +352,10 @@ error:
static bool preprocess_image(void *data)
{
video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_buffer buf;
video4linux_t *v4l = (video4linux_t*)data;
struct v4l2_buffer buf = {0};
memset(&buf, 0, sizeof(buf));
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_DQBUF, &buf) == -1)
@@ -385,16 +363,18 @@ static bool preprocess_image(void *data)
switch (errno)
{
case EAGAIN:
return false;
break;
default:
RARCH_ERR("VIDIOC_DQBUF.\n");
return false;
break;
}
return false;
}
retro_assert(buf.index < v4l->n_buffers);
process_image(v4l, (const uint8_t*)v4l->buffers[buf.index].start);
scaler_ctx_scale(&v4l->scaler, 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");
+1133 -596
View File
File diff suppressed because it is too large. Load diff
+27 -19
View File
@@ -30,25 +30,6 @@ typedef struct cheevos_ctx_desc
size_t len;
} cheevos_ctx_desc_t;
bool cheevos_load(const void *data);
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);
bool cheevos_test(void);
bool cheevos_set_cheats(void);
void cheevos_set_support_cheevos(bool state);
typedef struct
{
unsigned size;
@@ -58,9 +39,36 @@ typedef struct
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 */
+807 -579
View File
File diff suppressed because it is too large. Load diff
+20 -14
View File
@@ -1,6 +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
*
* 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-
@@ -17,14 +18,15 @@
#ifndef COMMAND_H__
#define COMMAND_H__
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct command command_t;
@@ -43,7 +45,6 @@ enum event_command
CMD_EVENT_SET_PER_GAME_RESOLUTION,
CMD_EVENT_SET_FRAME_LIMIT,
/* Loads core. */
CMD_EVENT_LOAD_CORE_DEINIT,
CMD_EVENT_LOAD_CORE,
CMD_EVENT_LOAD_CORE_PERSIST,
CMD_EVENT_UNLOAD_CORE,
@@ -141,6 +142,8 @@ enum event_command
CMD_EVENT_PAUSE,
CMD_EVENT_PAUSE_CHECKS,
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG,
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CORE,
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_GAME,
CMD_EVENT_MENU_SAVE_CONFIG,
CMD_EVENT_MENU_PAUSE_LIBRETRO,
/* Toggles menu on/off. */
@@ -154,11 +157,6 @@ enum event_command
CMD_EVENT_SHADER_DIR_DEINIT,
/* Initializes controllers. */
CMD_EVENT_CONTROLLERS_INIT,
CMD_EVENT_SAVEFILES,
/* Initializes savefiles. */
CMD_EVENT_SAVEFILES_INIT,
/* Deinitializes savefiles. */
CMD_EVENT_SAVEFILES_DEINIT,
/* Initializes cheats. */
CMD_EVENT_CHEATS_INIT,
/* Deinitializes cheats. */
@@ -169,12 +167,18 @@ enum event_command
CMD_EVENT_NETWORK_DEINIT,
/* Initializes network system. */
CMD_EVENT_NETWORK_INIT,
/* Initializes netplay system. */
/* Initializes netplay system with a string or no host specified. */
CMD_EVENT_NETPLAY_INIT,
/* Initializes netplay system with a direct host specified. */
CMD_EVENT_NETPLAY_INIT_DIRECT,
/* Initializes netplay system with a direct host specified after loading content. */
CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED,
/* Deinitializes netplay system. */
CMD_EVENT_NETPLAY_DEINIT,
/* Flip netplay players. */
CMD_EVENT_NETPLAY_FLIP_PLAYERS,
/* Switch between netplay gaming and watching. */
CMD_EVENT_NETPLAY_GAME_WATCH,
/* Initializes BSV movie. */
CMD_EVENT_BSV_MOVIE_INIT,
/* Deinitializes BSV movie. */
@@ -193,7 +197,6 @@ enum event_command
CMD_EVENT_RESIZE_WINDOWED_SCALE,
/* Deinitializes temporary content. */
CMD_EVENT_TEMPORARY_CONTENT_DEINIT,
CMD_EVENT_SUBSYSTEM_FULLPATHS_DEINIT,
CMD_EVENT_LOG_FILE_DEINIT,
/* Toggles disk eject. */
CMD_EVENT_DISK_EJECT_TOGGLE,
@@ -207,16 +210,19 @@ enum event_command
CMD_EVENT_RUMBLE_STOP,
/* Toggles mouse grab. */
CMD_EVENT_GRAB_MOUSE_TOGGLE,
/* Toggles game focus. */
CMD_EVENT_GAME_FOCUS_TOGGLE,
/* Toggles fullscreen mode. */
CMD_EVENT_FULLSCREEN_TOGGLE,
CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG,
CMD_EVENT_VOLUME_UP,
CMD_EVENT_VOLUME_DOWN,
CMD_EVENT_DISABLE_OVERRIDES
CMD_EVENT_DISABLE_OVERRIDES,
CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET
};
#ifdef HAVE_COMMAND
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD)
bool command_network_send(const char *cmd_);
#endif
#endif
+174 -159
View File
@@ -1,6 +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
*
* 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-
@@ -18,16 +19,19 @@
#define __CONFIG_DEF_H
#include <boolean.h>
#include "driver.h"
#include "gfx/video_driver.h"
#include "gfx/video_defines.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
enum
#include "input/input_driver.h"
#include "config.def.keybinds.h"
enum video_driver_enum
{
VIDEO_GL = 0,
VIDEO_GL = 0,
VIDEO_VULKAN,
VIDEO_DRM,
VIDEO_XVIDEO,
@@ -35,6 +39,7 @@ enum
VIDEO_SDL2,
VIDEO_EXT,
VIDEO_WII,
VIDEO_WIIU,
VIDEO_XENON360,
VIDEO_XDK_D3D,
VIDEO_PSP1,
@@ -42,13 +47,19 @@ enum
VIDEO_CTR,
VIDEO_D3D9,
VIDEO_VG,
VIDEO_NULL,
VIDEO_OMAP,
VIDEO_EXYNOS,
VIDEO_SUNXI,
VIDEO_DISPMANX,
VIDEO_CACA,
VIDEO_GDI,
VIDEO_VGA,
VIDEO_NULL
};
AUDIO_RSOUND,
enum audio_driver_enum
{
AUDIO_RSOUND = VIDEO_NULL + 1,
AUDIO_OSS,
AUDIO_ALSA,
AUDIO_ALSATHREAD,
@@ -66,16 +77,24 @@ enum
AUDIO_PS3,
AUDIO_XENON360,
AUDIO_WII,
AUDIO_WIIU,
AUDIO_RWEBAUDIO,
AUDIO_PSP,
AUDIO_CTR,
AUDIO_NULL,
AUDIO_NULL
};
AUDIO_RESAMPLER_CC,
enum audio_resampler_driver_enum
{
AUDIO_RESAMPLER_CC = AUDIO_NULL + 1,
AUDIO_RESAMPLER_SINC,
AUDIO_RESAMPLER_NEAREST,
AUDIO_RESAMPLER_NULL
};
INPUT_ANDROID,
enum input_driver_enum
{
INPUT_ANDROID = AUDIO_RESAMPLER_NULL + 1,
INPUT_SDL,
INPUT_SDL2,
INPUT_X,
@@ -86,17 +105,23 @@ enum
INPUT_CTR,
INPUT_XENON360,
INPUT_WII,
INPUT_WIIU,
INPUT_XINPUT,
INPUT_UDEV,
INPUT_LINUXRAW,
INPUT_COCOA,
INPUT_QNX,
INPUT_RWEBINPUT,
INPUT_NULL,
INPUT_DOS,
INPUT_NULL
};
JOYPAD_PS3,
enum joypad_driver_enum
{
JOYPAD_PS3 = INPUT_NULL + 1,
JOYPAD_XINPUT,
JOYPAD_GX,
JOYPAD_WIIU,
JOYPAD_XDK,
JOYPAD_PSP,
JOYPAD_CTR,
@@ -105,30 +130,53 @@ enum
JOYPAD_LINUXRAW,
JOYPAD_ANDROID,
JOYPAD_SDL,
JOYPAD_DOS,
JOYPAD_HID,
JOYPAD_QNX,
JOYPAD_NULL,
JOYPAD_NULL
};
CAMERA_V4L2,
enum camera_driver_enum
{
CAMERA_V4L2 = JOYPAD_NULL + 1,
CAMERA_RWEBCAM,
CAMERA_ANDROID,
CAMERA_AVFOUNDATION,
CAMERA_NULL,
CAMERA_NULL
};
LOCATION_ANDROID,
enum wifi_driver_enum
{
WIFI_CONNMANCTL = CAMERA_NULL + 1,
WIFI_NULL
};
enum location_driver_enum
{
LOCATION_ANDROID = WIFI_NULL + 1,
LOCATION_CORELOCATION,
LOCATION_NULL,
LOCATION_NULL
};
OSK_PS3,
OSK_NULL,
enum osk_driver_enum
{
OSK_PS3 = LOCATION_NULL + 1,
OSK_NULL
};
MENU_RGUI,
enum menu_driver_enum
{
MENU_RGUI = OSK_NULL + 1,
MENU_XUI,
MENU_MATERIALUI,
MENU_XMB,
MENU_NUKLEAR,
MENU_NULL
};
RECORD_FFMPEG,
enum record_driver_enum
{
RECORD_FFMPEG = MENU_NULL + 1,
RECORD_NULL
};
@@ -144,6 +192,8 @@ enum
#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))
@@ -164,6 +214,10 @@ enum
#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
@@ -176,16 +230,18 @@ enum
#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_PULSE)
#define AUDIO_DEFAULT_DRIVER AUDIO_PULSE
#elif defined(HAVE_OSS)
#define AUDIO_DEFAULT_DRIVER AUDIO_OSS
#elif defined(HAVE_JACK)
@@ -216,7 +272,7 @@ enum
#define AUDIO_DEFAULT_DRIVER AUDIO_NULL
#endif
#ifdef PSP
#if defined(PSP) || defined(EMSCRIPTEN)
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_CC
#else
#define AUDIO_DEFAULT_RESAMPLER_DRIVER AUDIO_RESAMPLER_SINC
@@ -234,6 +290,8 @@ enum
#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)
@@ -246,6 +304,8 @@ enum
#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)
@@ -262,6 +322,8 @@ enum
#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
@@ -272,6 +334,8 @@ enum
#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)
@@ -288,6 +352,8 @@ enum
#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__)
@@ -308,6 +374,12 @@ enum
#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))
@@ -324,17 +396,19 @@ enum
#if defined(HAVE_XUI)
#define MENU_DEFAULT_DRIVER MENU_XUI
#elif defined(IOS) || defined(ANDROID) || defined(__QNX__)
#elif defined(HAVE_MATERIALUI) && defined(RARCH_MOBILE)
#define MENU_DEFAULT_DRIVER MENU_MATERIALUI
#elif defined(__MACH__) && defined(HAVE_XMB) || defined(__CELLOS_LV2__)
#elif defined(HAVE_XMB)
#define MENU_DEFAULT_DRIVER MENU_XMB
#else
#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) || defined(__QNX__)
#elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID)
#define DEFAULT_ASPECT_RATIO 1.3333f
#else
#define DEFAULT_ASPECT_RATIO -1.0f
@@ -359,15 +433,20 @@ static bool bundle_assets_extract_enable = false;
#endif
static const bool def_history_list_enable = true;
static const bool def_playlist_entry_remove = true;
static const unsigned int def_user_language = 0;
#if (defined(_WIN32) && !defined(_XBOX))
#if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS))
static const bool def_mouse_enable = true;
#else
static const bool def_mouse_enable = false;
#endif
#ifdef HAVE_CHEEVOS
static const bool cheevos_enable = false;
#endif
/* VIDEO */
#if defined(_XBOX360)
@@ -394,6 +473,12 @@ static const bool windowed_fullscreen = true;
* specific monitors, 1 being the first monitor. */
static const unsigned monitor_index = 0;
/* Window */
/* Window size. A value of 0 uses window scale
* multiplied by the core framebuffer size. */
static const unsigned window_x = 0;
static const unsigned window_y = 0;
/* Fullscreen resolution. A value of 0 uses the desktop
* resolution. */
static const unsigned fullscreen_x = 0;
@@ -404,7 +489,7 @@ static const bool load_dummy_on_core_shutdown = false;
#else
static const bool load_dummy_on_core_shutdown = true;
#endif
static const bool check_firmware_before_loading = false;
/* Forcibly disable composition.
* Only valid on Windows Vista/7/8 for now. */
static const bool disable_composition = false;
@@ -464,8 +549,10 @@ static const bool video_shared_context = false;
/* Sets GC/Wii screen width. */
static const unsigned video_viwidth = 640;
#ifdef GEKKO
/* Removes 480i flicker, smooths picture a little. */
static const bool video_vfilter = true;
#endif
/* Smooths picture. */
static const bool video_smooth = true;
@@ -507,26 +594,40 @@ static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
/* Save configuration file on exit. */
static bool config_save_on_exit = true;
static const bool default_overlay_enable = false;
static bool show_hidden_files = true;
static const bool overlay_hide_in_menu = true;
static const bool display_keyboard_overlay = false;
#ifdef HAVE_MENU
#include "menu/menu_display.h"
static bool default_block_config_read = true;
#ifdef HAVE_XMB
static unsigned xmb_scale_factor = 100;
static unsigned xmb_alpha_factor = 75;
static unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME;
static unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
#ifdef HAVE_LAKKA
static bool xmb_shadows_enable = false;
#else
static bool xmb_shadows_enable = true;
#endif
static bool xmb_show_settings = true;
#ifdef HAVE_IMAGEVIEWER
static bool xmb_show_images = true;
#endif
#ifdef HAVE_FFMPEG
static bool xmb_show_music = true;
static bool xmb_show_video = true;
#endif
static bool xmb_show_history = true;
#ifdef HAVE_LIBRETRODB
static bool xmb_show_add = true;
#endif
#endif
static float menu_wallpaper_opacity = 0.300;
@@ -534,53 +635,50 @@ static float menu_footer_opacity = 1.000;
static float menu_header_opacity = 1.000;
static unsigned menu_background_gradient = 4;
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) || defined(HAVE_VULKAN)
#if defined(HAVE_OPENGLES2) || defined(OSX_PPC)
#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 = true;
static bool show_advanced_settings = false;
static const uint32_t menu_entry_normal_color = 0xffffffff;
static const uint32_t menu_entry_hover_color = 0xff64ff64;
static const uint32_t menu_title_color = 0xff64ff64;
#else
static bool default_block_config_read = false;
#endif
#ifdef RARCH_CONSOLE
static bool default_core_specific_config = true;
#else
static bool default_core_specific_config = false;
#endif
static bool default_game_specific_options = false;
static bool default_auto_overrides_enable = true;
static bool default_auto_remaps_enable = true;
static bool default_auto_shaders_enable = true;
static bool default_sort_savefiles_enable = false;
static bool default_sort_savestates_enable = false;
static unsigned default_menu_btn_ok = RETRO_DEVICE_ID_JOYPAD_A;
static unsigned default_menu_btn_cancel = RETRO_DEVICE_ID_JOYPAD_B;
static unsigned default_menu_btn_search = RETRO_DEVICE_ID_JOYPAD_X;
static unsigned default_menu_btn_default = RETRO_DEVICE_ID_JOYPAD_START;
static unsigned default_menu_btn_info = RETRO_DEVICE_ID_JOYPAD_SELECT;
static unsigned default_menu_btn_scroll_down = RETRO_DEVICE_ID_JOYPAD_R;
static unsigned default_menu_btn_scroll_up = RETRO_DEVICE_ID_JOYPAD_L;
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360)
static unsigned menu_toggle_gamepad_combo = 2;
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L3_R3;
#elif defined(VITA)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L1_R1_START_SELECT;
#else
static unsigned menu_toggle_gamepad_combo = 0;
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_NONE;
#endif
#ifdef ANDROID
static bool back_as_menu_toggle_enable = true;
#if defined(VITA)
static unsigned input_backtouch_enable = false;
static unsigned input_backtouch_toggle = false;
#endif
static bool all_users_control_menu = false;
#if defined(ANDROID) || defined(_WIN32)
static bool menu_swap_ok_cancel_buttons = true;
#else
static bool menu_swap_ok_cancel_buttons = false;
#endif
/* Crop overscanned frames. */
@@ -634,10 +732,8 @@ static const bool font_enable = true;
* disable VSync, and leave this at its default. */
#ifdef _3DS
static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
#elif defined(RARCH_CONSOLE)
static const float refresh_rate = 60/1.001;
#else
static const float refresh_rate = 59.95;
static const float refresh_rate = 60/1.001;
#endif
/* Allow games to set rotation. If false, rotation requests are
@@ -664,7 +760,7 @@ static const char *audio_device = NULL;
/* Desired audio latency in milliseconds. Might not be honored
* if driver can't provide given latency. */
#ifdef ANDROID
#if defined(ANDROID) || defined(EMSCRIPTEN)
/* For most Android devices, 64ms is way too low. */
static const int out_latency = 128;
#else
@@ -709,16 +805,29 @@ static const unsigned rewind_buffer_size = 20 << 20; /* 20MiB */
static const unsigned rewind_granularity = 1;
/* Pause gameplay when gameplay loses focus. */
#ifdef EMSCRIPTEN
static const bool pause_nonactive = false;
#else
static const bool pause_nonactive = true;
#endif
/* Saves non-volatile SRAM at a regular interval.
* It is measured in seconds. A value of 0 disables autosave. */
static const unsigned autosave_interval = 0;
/* Netplay without savestates/rewind */
static const bool netplay_stateless_mode = false;
/* When being client over netplay, use keybinds for
* user 1 rather than user 2. */
static const bool netplay_client_swap_input = true;
static const bool netplay_nat_traversal = false;
static const unsigned netplay_delay_frames = 16;
static const int netplay_check_frames = 30;
/* On save state load, block SRAM from being overwritten.
* This could potentially lead to buggy games. */
static const bool block_sram_overwrite = false;
@@ -736,6 +845,8 @@ static const bool savestate_auto_index = false;
static const bool savestate_auto_save = false;
static const bool savestate_auto_load = false;
static const bool savestate_thumbnail_enable = false;
/* Slowmotion ratio. */
static const float slowmotion_ratio = 3.0;
@@ -762,6 +873,8 @@ static const bool menu_dpi_override_enable = true;
#ifdef RARCH_MOBILE
static const unsigned menu_dpi_override_value = 72;
#elif defined(__CELLOS_LV2__)
static const unsigned menu_dpi_override_value = 360;
#else
static const unsigned menu_dpi_override_value = 200;
#endif
@@ -817,6 +930,8 @@ static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/androi
#else
static char buildbot_server_url[] = "";
#endif
#elif defined(__QNX__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/blackberry/latest/";
#elif defined(IOS)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/ios/latest/";
#elif defined(OSX)
@@ -830,7 +945,7 @@ static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/
#elif defined(_WIN32) && !defined(_XBOX)
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
#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/";
#endif
#elif defined(__linux__)
@@ -847,104 +962,4 @@ static char buildbot_server_url[] = "";
static char buildbot_assets_server_url[] = "http://buildbot.libretro.com/assets/";
#ifndef IS_SALAMANDER
#include "intl/intl.h"
/* User 1 */
static const struct retro_keybind retro_keybinds_1[] = {
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
{ true, RETRO_DEVICE_ID_JOYPAD_B, RETRO_LBL_JOYPAD_B, RETROK_z, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, RETRO_LBL_JOYPAD_Y, RETROK_a, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, RETRO_LBL_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, RETRO_LBL_JOYPAD_START, RETROK_RETURN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, RETRO_LBL_JOYPAD_UP, RETROK_UP, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, RETRO_LBL_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, RETRO_LBL_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, RETRO_LBL_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, RETRO_LBL_JOYPAD_A, RETROK_x, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, RETRO_LBL_JOYPAD_X, RETROK_s, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, RETRO_LBL_JOYPAD_L, RETROK_q, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, RETRO_LBL_JOYPAD_R, RETROK_w, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, RETRO_LBL_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, RETRO_LBL_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, RETRO_LBL_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, RETRO_LBL_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, RETRO_LBL_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, RETRO_LBL_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, RETRO_LBL_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, RETRO_LBL_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, RETRO_LBL_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, RETRO_LBL_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, RETRO_LBL_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, RETRO_LBL_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, RETRO_LBL_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, RETRO_LBL_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, RETRO_LBL_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, RETRO_LBL_LOAD_STATE_KEY, RETROK_F4, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, RETRO_LBL_SAVE_STATE_KEY, RETROK_F2, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, RETRO_LBL_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, RETRO_LBL_QUIT_KEY, RETROK_ESCAPE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, RETRO_LBL_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, RETRO_LBL_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, RETRO_LBL_REWIND, RETROK_r, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, RETRO_LBL_MOVIE_RECORD_TOGGLE, RETROK_o, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, RETRO_LBL_PAUSE_TOGGLE, RETROK_p, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, RETRO_LBL_FRAMEADVANCE, RETROK_k, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, RETRO_LBL_RESET, RETROK_h, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, RETRO_LBL_SHADER_NEXT, RETROK_m, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, RETRO_LBL_SHADER_PREV, RETROK_n, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, RETRO_LBL_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, RETRO_LBL_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, RETRO_LBL_CHEAT_TOGGLE, RETROK_u, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, RETRO_LBL_SCREENSHOT, RETROK_F8, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, RETRO_LBL_MUTE, RETROK_F9, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, RETRO_LBL_OSK, RETROK_F12, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, RETRO_LBL_NETPLAY_FLIP, RETROK_i, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, RETRO_LBL_SLOWMOTION, RETROK_e, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, RETRO_LBL_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, RETRO_LBL_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, RETRO_LBL_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, RETRO_LBL_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, RETRO_LBL_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, RETRO_LBL_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, RETRO_LBL_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, RETRO_LBL_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, RETRO_LBL_MENU_TOGGLE, RETROK_F1, NO_BTN, 0, AXIS_NONE },
};
/* 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, RETRO_LBL_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, RETRO_LBL_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, RETRO_LBL_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, RETRO_LBL_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, RETRO_LBL_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, RETRO_LBL_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, RETRO_LBL_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, RETRO_LBL_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, RETRO_LBL_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, RETRO_LBL_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, RETRO_LBL_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, RETRO_LBL_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, RETRO_LBL_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, RETRO_LBL_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, RETRO_LBL_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, RETRO_LBL_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, RETRO_LBL_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, RETRO_LBL_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, RETRO_LBL_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, RETRO_LBL_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, RETRO_LBL_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, RETRO_LBL_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, RETRO_LBL_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, RETRO_LBL_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, RETRO_LBL_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
};
#endif
#endif
+186
View File
@@ -0,0 +1,186 @@
/* RetroArch - A frontend for libretro.
* 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.
*
* 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 __CONFIG_DEF_KEYBINDS_H
#define __CONFIG_DEF_KEYBINDS_H
#ifndef IS_SALAMANDER
/* User 1 */
static const struct retro_keybind retro_keybinds_1[] = {
/* | RetroPad button | enum | keyboard key | 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, 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_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 },
#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, 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_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 },
#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 },
{ 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 },
};
#endif
#endif
+1 -1
View File
@@ -272,7 +272,7 @@ static const bool _freetype_supp = true;
static const bool _freetype_supp = false;
#endif
#ifdef HAVE_NETPLAY
#ifdef HAVE_NETWORKING
static const bool _netplay_supp = true;
#else
static const bool _netplay_supp = false;
+1721 -1544
View File
File diff suppressed because it is too large. Load diff
+100 -44
View File
@@ -1,6 +1,8 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2014-2016 - Jean-André Santoni
* 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-
@@ -22,16 +24,21 @@
#include <boolean.h>
#include <retro_common_api.h>
#include "gfx/video_driver.h"
#include "driver.h"
#ifndef MAX_USERS
#define MAX_USERS 16
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
RETRO_BEGIN_DECLS
#include "gfx/video_driver.h"
#include "input/input_defines.h"
/* All config related settings go here. */
enum override_type
{
OVERRIDE_NONE = 0,
OVERRIDE_CORE,
OVERRIDE_GAME
};
RETRO_BEGIN_DECLS
typedef struct settings
{
@@ -47,6 +54,8 @@ typedef struct settings
char driver[32];
char context_driver[32];
float scale;
unsigned window_x;
unsigned window_y;
bool fullscreen;
bool windowed_fullscreen;
unsigned monitor_index;
@@ -116,6 +125,7 @@ typedef struct settings
char driver[32];
bool pause_libretro;
bool timedate_enable;
bool battery_level_enable;
bool core_enable;
bool dynamic_wallpaper_enable;
unsigned thumbnails;
@@ -151,7 +161,6 @@ typedef struct settings
struct
{
bool enable;
bool setting_enable;
} wraparound;
struct
{
@@ -185,12 +194,20 @@ typedef struct settings
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
@@ -201,12 +218,18 @@ typedef struct settings
struct
{
char driver[32];
char device[PATH_MAX_LENGTH];
char device[255];
bool allow;
unsigned width;
unsigned height;
} camera;
struct
{
char driver[32];
bool allow;
} wifi;
struct
{
char driver[32];
@@ -219,7 +242,7 @@ typedef struct settings
{
char driver[32];
char resampler[32];
char device[PATH_MAX_LENGTH];
char device[255];
bool enable;
bool mute_enable;
unsigned out_rate;
@@ -262,7 +285,6 @@ typedef struct settings
unsigned device[MAX_USERS];
unsigned device_name_index[MAX_USERS];
bool autodetect_enable;
bool netplay_client_swap_input;
unsigned turbo_period;
unsigned turbo_duty_cycle;
@@ -278,8 +300,13 @@ typedef struct settings
bool input_descriptor_hide_unbound;
unsigned menu_toggle_gamepad_combo;
bool back_as_menu_toggle_enable;
bool all_users_control_menu;
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
@@ -288,13 +315,6 @@ typedef struct settings
unsigned poll_type_behavior;
} input;
struct
{
bool enable;
float opacity;
float scale;
} osk;
struct
{
unsigned mode;
@@ -302,8 +322,8 @@ typedef struct settings
struct
{
char buildbot_url[PATH_MAX_LENGTH];
char buildbot_assets_url[PATH_MAX_LENGTH];
char buildbot_url[255];
char buildbot_assets_url[255];
bool buildbot_auto_extract_archive;
} network;
@@ -326,6 +346,8 @@ typedef struct settings
} cheevos;
#endif
char browse_url[4096];
int state_slot;
bool bundle_assets_extract_enable;
@@ -336,14 +358,15 @@ typedef struct settings
{
char cheat_database[PATH_MAX_LENGTH];
char content_database[PATH_MAX_LENGTH];
char libretro[PATH_MAX_LENGTH];
char osk_overlay[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 bundle_assets_src[PATH_MAX_LENGTH];
@@ -377,6 +400,22 @@ typedef struct settings
char menu_content[PATH_MAX_LENGTH];
} directory;
#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
unsigned content_history_size;
unsigned libretro_log_level;
@@ -384,6 +423,7 @@ typedef struct settings
bool auto_screenshot_filename;
bool history_list_enable;
bool playlist_entry_remove;
bool rewind_enable;
size_t rewind_buffer_size;
unsigned rewind_granularity;
@@ -398,6 +438,7 @@ typedef struct settings
bool savestate_auto_index;
bool savestate_auto_save;
bool savestate_auto_load;
bool savestate_thumbnail_enable;
bool network_cmd_enable;
unsigned network_cmd_port;
@@ -405,38 +446,31 @@ typedef struct settings
bool network_remote_enable;
bool network_remote_enable_user[MAX_USERS];
unsigned network_remote_base_port;
bool debug_panel_enable;
#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 core_specific_config;
bool game_specific_options;
bool auto_overrides_enable;
bool auto_remaps_enable;
bool auto_shaders_enable;
bool sort_savefiles_enable;
bool sort_savestates_enable;
unsigned menu_ok_btn;
unsigned menu_cancel_btn;
unsigned menu_search_btn;
unsigned menu_default_btn;
unsigned menu_info_btn;
unsigned menu_scroll_down_btn;
unsigned menu_scroll_up_btn;
char username[32];
#ifdef HAVE_LANGEXTRA
unsigned int user_language;
#endif
bool config_save_on_exit;
bool show_hidden_files;
#ifdef HAVE_SYSTEMD
#ifdef HAVE_LAKKA
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
@@ -453,6 +487,15 @@ typedef struct settings
**/
const char *config_get_default_camera(void);
/**
* config_get_default_wifi:
*
* Gets default wifi driver.
*
* Returns: Default wifi driver.
**/
const char *config_get_default_wifi(void);
/**
* config_get_default_location:
*
@@ -462,15 +505,6 @@ const char *config_get_default_camera(void);
**/
const char *config_get_default_location(void);
/**
* config_get_default_osk:
*
* Gets default OSK driver.
*
* Returns: Default OSK driver.
**/
const char *config_get_default_osk(void);
/**
* config_get_default_video:
*
@@ -569,6 +603,16 @@ bool config_unload_override(void);
*/
bool config_load_remap(void);
/**
* config_load_shader_preset:
*
* Tries to append game-specific and core-specific shader presets.
*
* Returns: false if there was an error or no action was performed.
*
*/
bool config_load_shader_preset(void);
/**
* config_save_autoconf_profile:
* @path : Path that shall be written to.
@@ -587,13 +631,25 @@ bool config_save_autoconf_profile(const char *path, unsigned user);
**/
bool config_save_file(const char *path);
/**
* config_save_overrides:
* @path : Path that shall be written to.
*
* Writes a config file override to disk.
*
* Returns: true (1) on success, otherwise returns false (0).
**/
bool config_save_overrides(int override_type);
/* Replaces currently loaded configuration file with
* another one. Will load a dummy core to flush state
* properly. */
bool config_replace(char *path);
bool config_replace(bool config_save_on_exit, char *path);
bool config_init(void);
bool config_overlay_enable_default(void);
void config_free(void);
settings_t *config_get_ptr(void);
+6 -8
View File
@@ -1,7 +1,8 @@
/* RetroArch - A frontend for libretro.
* 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.
@@ -29,8 +30,6 @@
RETRO_BEGIN_DECLS
typedef struct ram_type ram_type_t;
typedef struct content_ctx_info
{
int argc; /* Argument count. */
@@ -46,10 +45,10 @@ bool content_load_ram_file(unsigned slot);
bool content_save_ram_file(unsigned slot);
/* Load a state from disk to memory. */
bool content_load_state(const char* path, bool load_to_backup_buffer);
bool content_load_state(const char* path, bool load_to_backup_buffer, bool autoload);
/* Save a state from memory to disk. */
bool content_save_state(const char *path, bool save_to_disk);
bool content_save_state(const char *path, bool save_to_disk, bool autosave);
/* Copy a save state. */
bool content_rename_state(const char *origin, const char *dest);
@@ -60,7 +59,8 @@ bool content_undo_load_state(void);
/* Restores the last savestate file which was overwritten */
bool content_undo_save_state(void);
bool content_does_not_need_content(void);
void content_get_status(bool *contentless,
bool *is_inited);
void content_set_does_not_need_content(void);
@@ -68,8 +68,6 @@ void content_unset_does_not_need_content(void);
bool content_get_crc(uint32_t **content_crc_ptr);
bool content_is_inited(void);
void content_deinit(void);
/* Initializes and loads a content file for the currently
+69 -2
View File
@@ -20,9 +20,11 @@
#include <boolean.h>
#include <libretro.h>
#include <retro_common_api.h>
#include "core_type.h"
#include "input/input_defines.h"
RETRO_BEGIN_DECLS
@@ -40,6 +42,46 @@ enum
POLL_TYPE_LATE
};
typedef struct rarch_memory_descriptor
{
struct retro_memory_descriptor core;
size_t disconnect_mask;
} rarch_memory_descriptor_t;
typedef struct rarch_memory_map
{
rarch_memory_descriptor_t *descriptors;
unsigned num_descriptors;
} rarch_memory_map_t;
typedef struct rarch_system_info
{
struct retro_system_info info;
unsigned rotation;
unsigned performance_level;
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_location_callback location_cb;
struct
{
struct retro_subsystem_info *data;
unsigned size;
} subsystem;
struct
{
struct retro_controller_info *data;
unsigned size;
} ports;
rarch_memory_map_t mmaps;
} rarch_system_info_t;
typedef struct retro_ctx_input_state_info
{
retro_input_state_t cb;
@@ -57,6 +99,11 @@ typedef struct retro_ctx_api_info
unsigned version;
} retro_ctx_api_info_t;
typedef struct retro_ctx_region_info
{
unsigned region;
} retro_ctx_region_info_t;
typedef struct retro_ctx_controller_info
{
unsigned port;
@@ -111,7 +158,7 @@ typedef struct retro_callbacks
retro_input_poll_t poll_cb;
} retro_callbacks_t;
bool core_load(void);
bool core_load(unsigned poll_type_behavior);
bool core_unload(void);
@@ -119,6 +166,12 @@ bool core_set_default_callbacks(void *data);
bool core_set_rewind_callbacks(void);
#ifdef HAVE_NETWORKING
bool core_set_netplay_callbacks(void);
bool core_unset_netplay_callbacks(void);
#endif
bool core_set_poll_type(unsigned *type);
/* Runs the core for one frame. */
@@ -132,7 +185,7 @@ bool core_unload_game(void);
bool core_reset(void);
bool core_frame(retro_ctx_frame_info_t *info);
void core_frame(retro_ctx_frame_info_t *info);
bool core_poll(void);
@@ -140,6 +193,10 @@ bool core_set_environment(retro_ctx_environ_info_t *info);
bool core_serialize_size(retro_ctx_size_info_t *info);
uint64_t core_serialization_quirks(void);
void core_set_serialization_quirks(uint64_t quirks);
bool core_serialize(retro_ctx_serialize_info_t *info);
bool core_unserialize(retro_ctx_serialize_info_t *info);
@@ -160,6 +217,8 @@ bool core_api_version(retro_ctx_api_info_t *api);
*/
bool core_verify_api_version(void);
bool core_get_region(retro_ctx_region_info_t *info);
bool core_get_memory(retro_ctx_memory_info_t *info);
/* Initialize system A/V information. */
@@ -180,8 +239,16 @@ void core_unset_input_descriptors(void);
bool core_uninit_libretro_callbacks(void);
void core_uninit_symbols(void);
void core_set_input_state(retro_ctx_input_state_info_t *info);
bool core_is_symbols_inited(void);
bool core_is_inited(void);
bool core_is_game_loaded(void);
RETRO_END_DECLS
#endif
+164 -57
View File
@@ -2,6 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
* 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-
@@ -21,29 +22,38 @@
#include <ctype.h>
#include <errno.h>
#include <retro_inline.h>
#include <boolean.h>
#include <lists/string_list.h>
#include <string/stdstring.h>
#include <libretro.h>
#include "dynamic.h"
#include "core.h"
#include "general.h"
#include "msg_hash.h"
#include "managers/state_manager.h"
#include "system.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_NETPLAY
#ifdef HAVE_NETWORKING
#include "network/netplay/netplay.h"
#endif
static struct retro_core_t core;
static unsigned core_poll_type;
static bool core_input_polled;
static bool core_has_set_input_descriptors = false;
static struct retro_callbacks retro_ctx;
#include "core.h"
#include "content.h"
#include "dynamic.h"
#include "msg_hash.h"
#include "managers/state_manager.h"
#include "verbosity.h"
#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;
static struct retro_callbacks retro_ctx;
static struct retro_core_t core;
static void core_input_state_poll_maybe(void)
{
@@ -73,15 +83,12 @@ void core_set_input_state(retro_ctx_input_state_info_t *info)
* core_init_libretro_cbs:
* @data : pointer to retro_callbacks object
*
* Initializes libretro callbacks, and binds the libretro callbacks
* Initializes libretro callbacks, and binds the libretro callbacks
* to default callback functions.
**/
static bool core_init_libretro_cbs(void *data)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
#ifdef HAVE_NETPLAY
global_t *global = global_get_ptr();
#endif
if (!cbs)
return false;
@@ -94,27 +101,11 @@ static bool core_init_libretro_cbs(void *data)
core_set_default_callbacks(cbs);
#ifdef HAVE_NETPLAY
#ifdef HAVE_NETWORKING
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
return true;
/* Force normal poll type for netplay. */
core_poll_type = POLL_TYPE_NORMAL;
if (global->netplay.is_spectate)
{
core.retro_set_input_state(
(global->netplay.is_client ?
input_state_spectate_client : input_state_spectate)
);
}
else
{
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);
}
core_set_netplay_callbacks();
#endif
return true;
@@ -156,6 +147,8 @@ bool core_deinit(void *data)
cbs->state_cb = NULL;
cbs->poll_cb = NULL;
core_inited = false;
return true;
}
@@ -185,6 +178,48 @@ bool core_set_rewind_callbacks(void)
return true;
}
#ifdef HAVE_NETWORKING
/**
* core_set_netplay_callbacks:
*
* Set the I/O callbacks to use netplay's interceding callback system. Should
* only be called while initializing netplay.
**/
bool core_set_netplay_callbacks(void)
{
/* Force normal poll type for netplay. */
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);
return true;
}
/**
* core_unset_netplay_callbacks
*
* Unset the I/O callbacks from having used netplay's interceding callback
* system. Should only be called while uninitializing netplay.
*/
bool core_unset_netplay_callbacks(void)
{
struct retro_callbacks cbs;
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);
return true;
}
#endif
bool core_set_cheat(retro_ctx_cheat_info_t *info)
{
core.retro_cheat_set(info->index, info->enabled, info->code);
@@ -211,11 +246,19 @@ bool core_set_poll_type(unsigned *type)
return true;
}
void core_uninit_symbols(void)
{
uninit_libretro_sym(&core);
core_symbols_inited = false;
}
bool core_init_symbols(enum rarch_core_type *type)
{
if (!type)
return false;
init_libretro_sym(*type, &core);
if (!init_libretro_sym(*type, &core))
return false;
core_symbols_inited = true;
return true;
}
@@ -238,12 +281,22 @@ bool core_get_memory(retro_ctx_memory_info_t *info)
bool core_load_game(retro_ctx_load_content_info_t *load_info)
{
if (!load_info)
return false;
bool contentless = false;
bool is_inited = false;
if (load_info->special)
return core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
return core.retro_load_game(*load_info->content->elems[0].data ? load_info->info : NULL);
content_get_status(&contentless, &is_inited);
if (load_info && load_info->special)
core_game_loaded = 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);
else if (contentless)
core_game_loaded = core.retro_load_game(NULL);
else
core_game_loaded = false;
return core_game_loaded;
}
bool core_get_system_info(struct retro_system_info *system)
@@ -260,6 +313,11 @@ bool core_unserialize(retro_ctx_serialize_info_t *info)
return false;
if (!core.retro_unserialize(info->data_const, info->size))
return false;
#if HAVE_NETWORKING
netplay_driver_ctl(RARCH_NETPLAY_CTL_LOAD_SAVESTATE, info);
#endif
return true;
}
@@ -280,14 +338,21 @@ bool core_serialize_size(retro_ctx_size_info_t *info)
return true;
}
bool core_frame(retro_ctx_frame_info_t *info)
uint64_t core_serialization_quirks(void)
{
if (!info || !retro_ctx.frame_cb)
return false;
return core_serialization_quirks_v;
}
retro_ctx.frame_cb(
info->data, info->width, info->height, info->pitch);
return true;
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)
@@ -323,26 +388,39 @@ bool core_reset(void)
bool core_init(void)
{
core.retro_init();
core_inited = true;
return true;
}
bool core_unload(void)
{
core.retro_deinit();
uninit_libretro_sym(&core);
return true;
}
bool core_unload_game(void)
{
video_driver_deinit_hw_context();
video_driver_free_hw_context();
audio_driver_stop();
core.retro_unload_game();
core_game_loaded = false;
return true;
}
bool core_run(void)
{
#ifdef HAVE_NETWORKING
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_PRE_FRAME, NULL))
{
/* Paused due to netplay. We must poll and display something so that a
* netplay peer pausing doesn't just hang. */
input_poll();
video_driver_cached_frame();
return true;
}
#endif
switch (core_poll_type)
{
case POLL_TYPE_EARLY:
@@ -351,18 +429,25 @@ bool core_run(void)
case POLL_TYPE_LATE:
core_input_polled = false;
break;
default:
break;
}
if (core.retro_run)
core.retro_run();
if (core_poll_type == POLL_TYPE_LATE && !core_input_polled)
input_poll();
#ifdef HAVE_NETWORKING
netplay_driver_ctl(RARCH_NETPLAY_CTL_POST_FRAME, NULL);
#endif
return true;
}
bool core_load(void)
bool core_load(unsigned poll_type_behavior)
{
settings_t *settings = config_get_ptr();
core_poll_type = settings->input.poll_type_behavior;
core_poll_type = poll_type_behavior;
if (!core_verify_api_version())
return false;
@@ -370,7 +455,6 @@ bool core_load(void)
return false;
core_get_system_av_info(video_viewport_get_system_av_info());
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
return true;
}
@@ -378,10 +462,10 @@ bool core_load(void)
bool core_verify_api_version(void)
{
unsigned api_version = core.retro_api_version();
RARCH_LOG("%s: %u\n",
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_VERSION_OF_LIBRETRO_API),
api_version);
RARCH_LOG("%s: %u\n",
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_COMPILED_AGAINST_API),
RETRO_API_VERSION);
@@ -393,6 +477,14 @@ bool core_verify_api_version(void)
return true;
}
bool core_get_region(retro_ctx_region_info_t *info)
{
if (!info)
return false;
info->region = core.retro_get_region();
return true;
}
bool core_has_set_input_descriptor(void)
{
return core_has_set_input_descriptors;
@@ -407,3 +499,18 @@ void core_unset_input_descriptors(void)
{
core_has_set_input_descriptors = false;
}
bool core_is_inited(void)
{
return core_inited;
}
bool core_is_symbols_inited(void)
{
return core_symbols_inited;
}
bool core_is_game_loaded(void)
{
return core_game_loaded;
}
+355 -167
View File
@@ -2,7 +2,8 @@
* 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
*
* 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,23 +16,27 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <compat/strl.h>
#include <string/stdstring.h>
#include <file/file_path.h>
#include <lists/dir_list.h>
#include <file/archive_file.h>
#include <compat/strl.h>
#include <string/stdstring.h>
#include "core_info.h"
#include "configuration.h"
#include "file_path_special.h"
#include "list_special.h"
#include "config.def.h"
#include <retro_stat.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "runloop.h"
#include "verbosity.h"
#include "config.def.h"
#include "core_info.h"
#include "configuration.h"
#include "file_path_special.h"
#include "list_special.h"
static const char *core_info_tmp_path = NULL;
static const struct string_list *core_info_tmp_list = NULL;
static core_info_t *core_info_current = NULL;
@@ -40,7 +45,9 @@ static core_info_list_t *core_info_curr_list = NULL;
static void core_info_list_resolve_all_extensions(
core_info_list_t *core_info_list)
{
size_t i, all_ext_len = 0;
size_t i = 0;
size_t all_ext_len = 0;
char *all_ext = NULL;
if (!core_info_list)
return;
@@ -48,16 +55,18 @@ static void core_info_list_resolve_all_extensions(
for (i = 0; i < core_info_list->count; i++)
{
if (core_info_list->list[i].supported_extensions)
all_ext_len +=
all_ext_len +=
(strlen(core_info_list->list[i].supported_extensions) + 2);
}
if (all_ext_len)
core_info_list->all_ext = (char*)calloc(1, all_ext_len);
all_ext = (char*)calloc(1, all_ext_len);
if (!core_info_list->all_ext)
if (!all_ext)
return;
core_info_list->all_ext = all_ext;
for (i = 0; i < core_info_list->count; i++)
{
if (!core_info_list->list[i].supported_extensions)
@@ -75,40 +84,53 @@ static void core_info_list_resolve_all_firmware(
size_t i;
unsigned c;
if (!core_info_list)
return;
for (i = 0; i < core_info_list->count; i++)
{
unsigned count = 0;
core_info_t *info = (core_info_t*)&core_info_list->list[i];
config_file_t *config = (config_file_t*)info->config_data;
unsigned count = 0;
core_info_firmware_t *firmware = NULL;
core_info_t *info = (core_info_t*)&core_info_list->list[i];
config_file_t *config = (config_file_t*)info->config_data;
if (!config)
if (!config || !config_get_uint(config, "firmware_count", &count))
continue;
if (!config_get_uint(config, "firmware_count", &count))
firmware = (core_info_firmware_t*)calloc(count, sizeof(*firmware));
if (!firmware)
continue;
info->firmware = (core_info_firmware_t*)
calloc(count, sizeof(*info->firmware));
if (!info->firmware)
continue;
info->firmware = firmware;
for (c = 0; c < count; c++)
{
char path_key[64] = {0};
char desc_key[64] = {0};
char opt_key[64] = {0};
char path_key[64];
char desc_key[64];
char opt_key[64];
bool tmp_bool = false;
char *tmp = NULL;
path_key[0] = desc_key[0] = opt_key[0] = '\0';
snprintf(path_key, sizeof(path_key), "firmware%u_path", c);
snprintf(desc_key, sizeof(desc_key), "firmware%u_desc", c);
snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c);
config_get_string(config, path_key, &info->firmware[c].path);
config_get_string(config, desc_key, &info->firmware[c].desc);
config_get_bool(config, opt_key , &info->firmware[c].optional);
if (config_get_string(config, path_key, &tmp) && !string_is_empty(tmp))
{
info->firmware[c].path = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(config, desc_key, &tmp) && !string_is_empty(tmp))
{
info->firmware[c].desc = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (tmp)
free(tmp);
tmp = NULL;
if (config_get_bool(config, opt_key , &tmp_bool))
info->firmware[c].optional = tmp_bool;
}
}
}
@@ -136,8 +158,7 @@ static void core_info_list_free(core_info_list_t *core_info_list)
free(info->categories);
free(info->databases);
free(info->notes);
if (info->supported_extensions_list)
string_list_free(info->supported_extensions_list);
string_list_free(info->supported_extensions_list);
string_list_free(info->authors_list);
string_list_free(info->note_list);
string_list_free(info->permissions_list);
@@ -159,21 +180,26 @@ static void core_info_list_free(core_info_list_t *core_info_list)
free(core_info_list);
}
static config_file_t *core_info_list_iterate(
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] = {0};
char info_path[PATH_MAX_LENGTH] = {0};
char info_path_base[PATH_MAX_LENGTH];
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA))
char *substr = NULL;
#endif
settings_t *settings = config_get_ptr();
if (!contents->elems[i].data)
return NULL;
if (!contents || !contents->elems[i].data)
return false;
info_path_base[0] = '\0';
fill_pathname_base_noext(info_path_base, contents->elems[i].data,
sizeof(info_path_base));
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP))
char *substr = strrchr(info_path_base, '_');
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA) && !defined(HW_WUP))
substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
#endif
@@ -182,21 +208,21 @@ static config_file_t *core_info_list_iterate(
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
sizeof(info_path_base));
fill_pathname_join(info_path,
fill_pathname_join(s,
(!string_is_empty(settings->path.libretro_info)) ?
settings->path.libretro_info : settings->directory.libretro,
info_path_base, sizeof(info_path));
info_path_base, len);
return config_file_new(info_path);
return true;
}
static core_info_list_t *core_info_list_new(void)
static core_info_list_t *core_info_list_new(const char *path)
{
size_t i;
core_info_t *core_info = NULL;
core_info_list_t *core_info_list = NULL;
struct string_list *contents =
dir_list_new_special(NULL, DIR_LIST_CORES, NULL);
struct string_list *contents = dir_list_new_special(
path, DIR_LIST_CORES, NULL);
if (!contents)
return NULL;
@@ -209,69 +235,132 @@ static core_info_list_t *core_info_list_new(void)
if (!core_info)
goto error;
core_info_list->list = core_info;
core_info_list->list = core_info;
core_info_list->count = contents->size;
for (i = 0; i < contents->size; i++)
{
config_file_t *conf = core_info_list_iterate(contents, i);
char info_path[PATH_MAX_LENGTH];
if (conf)
info_path[0] = '\0';
if (
core_info_list_iterate(info_path, sizeof(info_path),
contents, i)
&& path_is_valid(info_path))
{
bool tmp_bool = false;
unsigned count = 0;
char *tmp = NULL;
bool tmp_bool = false;
unsigned count = 0;
config_file_t *conf = config_file_new(info_path);
if (!conf)
continue;
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))
{
core_info[i].core_name = strdup(tmp);
free(tmp);
tmp = NULL;
}
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))
{
core_info[i].system_manufacturer = strdup(tmp);
free(tmp);
tmp = NULL;
}
config_get_string(conf, "display_name",
&core_info[i].display_name);
config_get_string(conf, "corename",
&core_info[i].core_name);
config_get_string(conf, "systemname",
&core_info[i].systemname);
config_get_string(conf, "manufacturer",
&core_info[i].system_manufacturer);
config_get_uint(conf, "firmware_count", &count);
core_info[i].firmware_count = count;
if (config_get_string(conf, "supported_extensions",
&core_info[i].supported_extensions) &&
core_info[i].supported_extensions)
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 =
string_split(core_info[i].supported_extensions, "|");
if (config_get_string(conf, "authors",
&core_info[i].authors) &&
core_info[i].authors)
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "authors", &tmp) && !string_is_empty(tmp))
{
core_info[i].authors = strdup(tmp);
core_info[i].authors_list =
string_split(core_info[i].authors, "|");
if (config_get_string(conf, "permissions",
&core_info[i].permissions) &&
core_info[i].permissions)
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "permissions", &tmp) && !string_is_empty(tmp))
{
core_info[i].permissions = strdup(tmp);
core_info[i].permissions_list =
string_split(core_info[i].permissions, "|");
if (config_get_string(conf, "license",
&core_info[i].licenses) &&
core_info[i].licenses)
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "license", &tmp) && !string_is_empty(tmp))
{
core_info[i].licenses = strdup(tmp);
core_info[i].licenses_list =
string_split(core_info[i].licenses, "|");
if (config_get_string(conf, "categories",
&core_info[i].categories) &&
core_info[i].categories)
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "categories", &tmp) && !string_is_empty(tmp))
{
core_info[i].categories = strdup(tmp);
core_info[i].categories_list =
string_split(core_info[i].categories, "|");
if (config_get_string(conf, "database",
&core_info[i].databases) &&
core_info[i].databases)
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "database", &tmp) && !string_is_empty(tmp))
{
core_info[i].databases = strdup(tmp);
core_info[i].databases_list =
string_split(core_info[i].databases, "|");
if (config_get_string(conf, "notes",
&core_info[i].notes) &&
core_info[i].notes)
free(tmp);
tmp = NULL;
}
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, "|");
free(tmp);
tmp = NULL;
}
if (tmp)
free(tmp);
tmp = NULL;
if (config_get_bool(conf, "supports_no_game",
&tmp_bool))
core_info[i].supports_no_game = tmp_bool;
@@ -279,15 +368,18 @@ static core_info_list_t *core_info_list_new(void)
core_info[i].config_data = conf;
}
core_info[i].path = strdup(contents->elems[i].data);
if (!string_is_empty(contents->elems[i].data))
core_info[i].path = strdup(contents->elems[i].data);
if (!core_info[i].display_name)
core_info[i].display_name =
core_info[i].display_name =
strdup(path_basename(core_info[i].path));
}
core_info_list_resolve_all_extensions(core_info_list);
core_info_list_resolve_all_firmware(core_info_list);
if (core_info_list)
core_info_list_resolve_all_firmware(core_info_list);
dir_list_free(contents);
return core_info_list;
@@ -299,7 +391,7 @@ error:
return NULL;
}
/* Shallow-copies internal state.
/* Shallow-copies internal state.
*
* Data in *info is invalidated when the
* core_info_list is freed. */
@@ -316,7 +408,7 @@ static bool core_info_list_get_info(core_info_list_t *core_info_list,
{
const core_info_t *info = &core_info_list->list[i];
if (string_is_equal(path_basename(info->path),
if (string_is_equal(path_basename(info->path),
path_basename(path)))
{
*out_info = *info;
@@ -344,8 +436,11 @@ static bool core_info_does_support_any_file(const core_info_t *core,
static bool core_info_does_support_file(
const core_info_t *core, const char *path)
{
if (!path || !core || !core->supported_extensions_list)
if (!core || !core->supported_extensions_list)
return false;
if (string_is_empty(path))
return false;
return string_list_find_elem_prefix(
core->supported_extensions_list, ".", path_get_extension(path));
}
@@ -356,10 +451,10 @@ static int core_info_qsort_cmp(const void *a_, const void *b_)
{
const core_info_t *a = (const core_info_t*)a_;
const core_info_t *b = (const core_info_t*)b_;
int support_a =
int support_a =
core_info_does_support_any_file(a, core_info_tmp_list)
|| core_info_does_support_file(a, core_info_tmp_path);
int support_b =
int support_b =
core_info_does_support_any_file(b, core_info_tmp_list)
|| core_info_does_support_file(b, core_info_tmp_path);
@@ -378,7 +473,7 @@ static core_info_t *core_info_find_internal(
{
core_info_t *info = core_info_get(list, i);
if (!info)
if (!info || !info->path)
continue;
if (string_is_equal(info->path, core))
return info;
@@ -393,25 +488,32 @@ static bool core_info_list_update_missing_firmware_internal(
const char *systemdir)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
char path[PATH_MAX_LENGTH];
core_info_t *info = NULL;
if (!core_info_list || !core)
return false;
info = core_info_find_internal(core_info_list, core);
path[0] = '\0';
info = core_info_find_internal(core_info_list, core);
if (!info)
return false;
runloop_ctl(RUNLOOP_CTL_UNSET_MISSING_BIOS, NULL);
for (i = 0; i < info->firmware_count; i++)
{
if (!info->firmware[i].path)
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);
if (info->firmware[i].missing && !info->firmware[i].optional)
{
runloop_ctl(RUNLOOP_CTL_SET_MISSING_BIOS, NULL);
RARCH_WARN("Firmware missing: %s\n", info->firmware[i].path);
}
}
return true;
@@ -437,16 +539,18 @@ static void core_info_list_get_missing_firmware(
const core_info_firmware_t **firmware, size_t *num_firmware)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
char path[PATH_MAX_LENGTH];
core_info_t *info = NULL;
if (!core_info_list || !core)
return;
path[0] = '\0';
*firmware = NULL;
*num_firmware = 0;
info = core_info_find_internal(core_info_list, core);
if (!(info = core_info_find_internal(core_info_list, core)))
if (!info)
return;
*firmware = info->firmware;
@@ -496,7 +600,10 @@ void core_info_deinit_list(void)
bool core_info_init_list(void)
{
core_info_curr_list = core_info_list_new();
settings_t *settings = config_get_ptr();
if (settings)
core_info_curr_list = core_info_list_new(settings->directory.libretro);
if (!core_info_curr_list)
return false;
@@ -515,7 +622,6 @@ bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info)
{
if (!info)
return false;
return core_info_list_update_missing_firmware_internal(
core_info_curr_list,
info->path, info->directory.system);
@@ -566,23 +672,22 @@ core_info_t *core_info_get(core_info_list_t *list, size_t i)
void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
const char *path, const core_info_t **infos, size_t *num_infos)
{
#ifdef HAVE_ZLIB
size_t i;
struct string_list *list = NULL;
#endif
size_t supported = 0, i;
size_t supported = 0;
if (!core_info_list)
return;
core_info_tmp_path = path;
#ifdef HAVE_ZLIB
if (string_is_equal_noncase(path_get_extension(path), "zip"))
#ifdef HAVE_COMPRESSION
if (path_is_compressed_file(path))
list = file_archive_get_file_list(path, NULL);
core_info_tmp_list = list;
#endif
/* Let supported core come first in list so we can return
/* Let supported core come first in list so we can return
* a pointer to them. */
qsort(core_info_list->list, core_info_list->count,
sizeof(core_info_t), core_info_qsort_cmp);
@@ -594,7 +699,7 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
if (core_info_does_support_file(core, path))
continue;
#ifdef HAVE_ZLIB
#ifdef HAVE_COMPRESSION
if (core_info_does_support_any_file(core, list))
continue;
#endif
@@ -602,10 +707,8 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
break;
}
#ifdef HAVE_ZLIB
if (list)
string_list_free(list);
#endif
*infos = core_info_list->list;
*num_infos = supported;
@@ -614,51 +717,49 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
void core_info_get_name(const char *path, char *s, size_t len)
{
size_t i;
core_info_t *core_info = NULL;
core_info_list_t *core_info_list = NULL;
settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(
NULL, DIR_LIST_CORES, NULL);
settings->directory.libretro,
DIR_LIST_CORES, NULL);
if (!contents)
return;
core_info_list = (core_info_list_t*)calloc(1, sizeof(*core_info_list));
if (!core_info_list)
goto error;
core_info = (core_info_t*)calloc(contents->size, sizeof(*core_info));
if (!core_info)
goto error;
core_info_list->list = core_info;
core_info_list->count = contents->size;
for (i = 0; i < contents->size; i++)
{
config_file_t *conf = NULL;
char info_path[PATH_MAX_LENGTH];
config_file_t *conf = NULL;
char *new_core_name = NULL;
info_path[0] = '\0';
if (!string_is_equal(contents->elems[i].data, path))
continue;
conf = core_info_list_iterate(contents, i);
if (conf)
if (!core_info_list_iterate(info_path,
sizeof(info_path), contents, i)
&& path_is_valid(info_path))
continue;
conf = config_file_new(info_path);
if (!conf)
continue;
if (config_get_string(conf, "corename",
&new_core_name))
{
config_get_string(conf, "corename",
&core_info[i].core_name);
core_info[i].config_data = (void*)conf;
strlcpy(s, new_core_name, len);
free(new_core_name);
}
core_info[i].path = strdup(contents->elems[i].data);
strlcpy(s, core_info[i].core_name, len);
config_file_free(conf);
break;
}
error:
if (contents)
dir_list_free(contents);
contents = NULL;
core_info_list_free(core_info_list);
}
size_t core_info_list_num_info_files(core_info_list_t *core_info_list)
@@ -678,6 +779,106 @@ 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)
{
size_t i;
const char *archive_path = NULL;
const char *delim = path_get_archive_delim(path);
if (delim)
archive_path = delim - 1;
if (!core_info_curr_list)
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)
{
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;
return false;
}
}
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;
}
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;
if (!core_info_curr_list)
return false;
new_path = path_basename(database_path);
if (!string_is_empty(new_path))
database = strdup(new_path);
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)
{
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->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;
}
}
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;
free(database);
return true;
}
free(database);
return false;
}
bool core_info_list_get_display_name(core_info_list_t *core_info_list,
const char *path, char *s, size_t len)
{
@@ -689,12 +890,15 @@ bool core_info_list_get_display_name(core_info_list_t *core_info_list,
for (i = 0; i < core_info_list->count; i++)
{
const core_info_t *info = &core_info_list->list[i];
if (string_is_equal(path_basename(info->path), path_basename(path))
&& info->display_name)
{
strlcpy(s, info->display_name, len);
return true;
}
if (!string_is_equal(path_basename(info->path), path_basename(path)))
continue;
if (!info->display_name)
continue;
strlcpy(s, info->display_name, len);
return true;
}
return false;
@@ -702,40 +906,24 @@ bool core_info_list_get_display_name(core_info_list_t *core_info_list,
bool core_info_get_display_name(const char *path, char *s, size_t len)
{
char *core_name = NULL;
char *display_name = NULL;
config_file_t *conf = NULL;
if (!path_file_exists(path))
return false;
conf = config_file_new(path);
bool ret = true;
char *tmp = NULL;
config_file_t *conf = config_file_new(path);
if (!conf)
return false;
config_get_string(conf, "corename",
&core_name);
config_get_string(conf, "display_name",
&display_name);
if (!core_name || !display_name)
{
ret = false;
goto error;
}
config_file_free(conf);
snprintf(s, len,"%s",display_name);
free(core_name);
free(display_name);
return true;
if (config_get_string(conf, "display_name", &tmp))
{
strlcpy(s, tmp, len);
free(tmp);
}
error:
config_file_free(conf);
if (core_name)
free(core_name);
if (display_name)
free(display_name);
return false;
return ret;
}
+6 -1
View File
@@ -2,6 +2,7 @@
* 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
*
* 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-
@@ -52,7 +53,7 @@ typedef struct
char *notes;
struct string_list *categories_list;
struct string_list *databases_list;
struct string_list *note_list;
struct string_list *note_list;
struct string_list *supported_extensions_list;
struct string_list *authors_list;
struct string_list *permissions_list;
@@ -119,6 +120,10 @@ bool core_info_find(core_info_ctx_find_t *info, const char *name);
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_unsupported_content_path(const char *path);
RETRO_END_DECLS
#endif /* CORE_INFO_H_ */
+2 -1
View File
@@ -22,7 +22,8 @@ enum rarch_core_type
CORE_TYPE_DUMMY,
CORE_TYPE_FFMPEG,
CORE_TYPE_IMAGEVIEWER,
CORE_TYPE_NETRETROPAD
CORE_TYPE_NETRETROPAD,
CORE_TYPE_VIDEO_PROCESSOR
};
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2015 - Daniel De Matteis
* 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
+62 -2
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2015 - Daniel De Matteis
* 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
@@ -21,6 +21,10 @@
#include <boolean.h>
#include <libretro.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
void libretro_dummy_retro_init(void);
void libretro_dummy_retro_deinit(void);
@@ -184,7 +188,7 @@ size_t libretro_imageviewer_retro_get_memory_size(unsigned id);
#endif
#if defined(HAVE_NETWORKGAMEPAD) && defined(HAVE_NETPLAY)
#if defined(HAVE_NETWORKGAMEPAD) && defined(HAVE_NETWORKING)
/* Internal networked retropad core. */
void libretro_netretropad_retro_init(void);
@@ -240,4 +244,60 @@ size_t libretro_netretropad_retro_get_memory_size(unsigned id);
#endif
#if defined(HAVE_V4L2)
/* Internal video processor core. */
void libretro_videoprocessor_retro_init(void);
void libretro_videoprocessor_retro_deinit(void);
unsigned libretro_videoprocessor_retro_api_version(void);
void libretro_videoprocessor_retro_get_system_info(struct retro_system_info *info);
void libretro_videoprocessor_retro_get_system_av_info(struct retro_system_av_info *info);
void libretro_videoprocessor_retro_set_environment(retro_environment_t cb);
void libretro_videoprocessor_retro_set_video_refresh(retro_video_refresh_t cb);
void libretro_videoprocessor_retro_set_audio_sample(retro_audio_sample_t cb);
void libretro_videoprocessor_retro_set_audio_sample_batch(retro_audio_sample_batch_t cb);
void libretro_videoprocessor_retro_set_input_poll(retro_input_poll_t cb);
void libretro_videoprocessor_retro_set_input_state(retro_input_state_t cb);
void libretro_videoprocessor_retro_set_controller_port_device(unsigned port, unsigned device);
void libretro_videoprocessor_retro_reset(void);
void libretro_videoprocessor_retro_run(void);
size_t libretro_videoprocessor_retro_serialize_size(void);
bool libretro_videoprocessor_retro_serialize(void *data, size_t size);
bool libretro_videoprocessor_retro_unserialize(const void *data, size_t size);
void libretro_videoprocessor_retro_cheat_reset(void);
void libretro_videoprocessor_retro_cheat_set(unsigned index, bool enabled, const char *code);
bool libretro_videoprocessor_retro_load_game(const struct retro_game_info *game);
bool libretro_videoprocessor_retro_load_game_special(unsigned game_type,
const struct retro_game_info *info, size_t num_info);
void libretro_videoprocessor_retro_unload_game(void);
unsigned libretro_videoprocessor_retro_get_region(void);
void *libretro_videoprocessor_retro_get_memory_data(unsigned id);
size_t libretro_videoprocessor_retro_get_memory_size(unsigned id);
#endif
#endif
File diff suppressed because it is too large. Load diff
+182
View File
@@ -0,0 +1,182 @@
LIBAVCODEC_SOURCE :=
LIBAVFORMAT_SOURCE :=
LIBAVUTIL_SOURCE :=
DEPS_SOURCE :=
DEFINES := -DHAVE_SWRESAMPLE
LIBRETRO_SOURCE :=
GL_SOURCE :=
CPUOPTS :=
DEPS_DIR := $(CORE_DIR)/deps
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
BASE_DIR := $(CORE_DIR)/..
AVFORMAT_DIR := $(BASE_DIR)/libavformat
AVCODEC_DIR := $(BASE_DIR)/libavcodec
AVUTIL_DIR := $(BASE_DIR)/libavutil
SWSCALE_DIR := $(BASE_DIR)/libswscale
SWRESAMPLE_DIR := $(BASE_DIR)/libswresample
INCFLAGS += -I$(BASE_DIR) -I$(CORE_DIR) -I$(LIBRETRO_COMM_DIR)/include -I$(LIBRETRO_COMM_DIR)/include/compat
LIBRETRO_SOURCE += $(CORE_DIR)/ffmpeg_core.c \
$(LIBRETRO_COMM_DIR)/queues/fifo_queue.c \
$(LIBRETRO_COMM_DIR)/rthreads/rthreads.c
ifeq ($(LIBRETRO_SWITCH),1)
DEFINES += -DLIBRETRO_SWITCH=1
INTERNAL_LIBAVCODEC = 1
INTERNAL_LIBAVFORMAT = 1
INTERNAL_LIBAVUTIL = 1
INTERNAL_LIBSWRESAMPLE = 1
INTERNAL_LIBSWSCALE = 1
INTERNAL_LIBASS = 0
INTERNAL_LIBFLAC = 1
INTERNAL_LIBOGG = 1
INTERNAL_LIBLAME = 1
INTERNAL_LIBFAAC = 1
INTERNAL_LIBVORBIS = 1
INTERNAL_ZLIB = 1
endif
ifeq ($(INTERNAL_LIBAVCODEC),1)
BAKE_IN_FFMPEG=1
else
ifneq (,$(findstring unix,$(platform)))
LIBS += $(shell pkg-config libavcodec --libs)
CFLAGS += $(shell pkg-config libavcodec --cflags)
else ifneq (,$(findstring osx,$(platform)))
LIBS += $(shell pkg-config libavcodec --libs)
CFLAGS += $(shell pkg-config libavcodec --cflags)
else ifneq (,$(findstring win,$(platform)))
LIBS += -lavcodec
endif
endif
ifeq ($(INTERNAL_LIBASS),1)
else
ifeq ($(WANT_LIBASS),1)
ifneq (,$(findstring unix,$(platform)))
ifneq (,$(findstring osx,$(platform)))
LIBS += $(shell pkg-config libass --libs)
CFLAGS += $(shell pkg-config libass --cflags)
endif
endif
endif
endif
ifeq ($(INTERNAL_LIBAVFORMAT),1)
BAKE_IN_FFMPEG=1
else
ifneq (,$(findstring unix,$(platform)))
LIBS += $(shell pkg-config libavformat --libs)
CFLAGS += $(shell pkg-config libavformat --cflags)
else ifneq (,$(findstring osx,$(platform)))
LIBS += $(shell pkg-config libavformat --libs)
CFLAGS += $(shell pkg-config libavformat --cflags)
else ifneq (,$(findstring win,$(platform)))
LIBS += -lavformat
endif
endif
ifeq ($(INTERNAL_LIBSWRESAMPLE),1)
BAKE_IN_FFMPEG=1
else
ifneq (,$(findstring unix,$(platform)))
LIBS += $(shell pkg-config libswresample --libs)
CFLAGS += $(shell pkg-config libswresample --cflags)
else ifneq (,$(findstring osx,$(platform)))
LIBS += $(shell pkg-config libswresample --libs)
CFLAGS += $(shell pkg-config libswresample --cflags)
else ifneq (,$(findstring win,$(platform)))
LIBS += -lswresample
endif
endif
ifeq ($(INTERNAL_LIBSWSCALE),1)
BAKE_IN_FFMPEG=1
else
ifneq (,$(findstring unix,$(platform)))
LIBS += $(shell pkg-config libswscale --libs)
CFLAGS += $(shell pkg-config libswscale --cflags)
else ifneq (,$(findstring osx,$(platform)))
LIBS += $(shell pkg-config libswscale --libs)
CFLAGS += $(shell pkg-config libswscale --cflags)
else ifneq (,$(findstring win,$(platform)))
LIBS += -lswscale
endif
endif
ifeq ($(INTERNAL_LIBAVUTIL),1)
BAKE_IN_FFMPEG=1
else
ifneq (,$(findstring unix,$(platform)))
LIBS += $(shell pkg-config libavutil --libs)
CFLAGS += $(shell pkg-config libavutil --cflags)
else ifneq (,$(findstring osx,$(platform)))
gIBS += $(shell pkg-config libavutil --libs)
CFLAGS += $(shell pkg-config libavutil --cflags)
else ifneq (,$(findstring win,$(platform)))
LIBS += -lavutil
endif
endif
ifeq ($(HAVE_BIGENDIAN),1)
CPUOPTS += -DHAVE_BIGENDIAN=1 -DMSB_FIRST
else
CPUOPTS += -DHAVE_BIGENDIAN=0
endif
ifeq ($(HAVE_SSA), 1)
LIBS += $(shell pkg-config libass --libs)
DEFINES += -DHAVE_SSA
endif
ifeq ($(BAKE_IN_FFMPEG),1)
DEFINES += -DHAVE_GMTIME_R -DHAVE_LOCALTIME_R
ifneq (,$(findstring unix,$(platform)))
DEFINES += -DHAVE_STRUCT_SOCKADDR_STORAGE -DHAVE_STRUCT_ADDRINFO -DHAVE_FMINF
else ifneq (,$(findstring osx,$(platform)))
DEFINES += -DHAVE_STRUCT_SOCKADDR_STORAGE -DHAVE_STRUCT_ADDRINFO
endif
include $(CORE_DIR)/Makefile.ffmpeg
endif
ifeq ($(HAVE_OPENGL),1)
ifeq ($(GLES),1)
LIBS += $(GL_LIB)
GLFLAGS += -DHAVE_OPENGLES -DHAVE_OPENGLES3
GL_SOURCE += $(LIBRETRO_COMM_DIR)/glsym/glsym_es3.c
else
LIBS += $(GL_LIB)
GLFLAGS += -DHAVE_OPENGL
GL_SOURCE += $(LIBRETRO_COMM_DIR)/glsym/glsym_gl.c
endif
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
endif
endif
ifeq ($(HAVE_PTHREADS),1)
LIBS += -lpthread
endif
SOURCES_C := $(GL_SOURCE) \
$(DEPS_SOURCE) \
$(LIBRETRO_SOURCE) \
$(LIBAVUTIL_SOURCE) \
$(LIBAVFORMAT_SOURCE) \
$(LIBSWSCALE_SOURCE) \
$(LIBAVCODEC_SOURCE) \
$(LIBSWRESAMPLE_SOURCE)
SOURCES_CXX := $(FFT_SOURCE)
File diff suppressed because it is too large. Load diff
+107 -88
View File
@@ -1,3 +1,4 @@
/* Copyright (C) 2016 - Brad Parker */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -22,7 +23,10 @@ extern "C" {
#include <libavutil/time.h>
#include <libavutil/opt.h>
#include <libavdevice/avdevice.h>
#ifdef HAVE_SWRESAMPLE
#include <libswresample/swresample.h>
#endif
#ifdef HAVE_SSA
#include <ass/ass.h>
#endif
@@ -35,7 +39,7 @@ extern "C" {
#include "fft/fft.h"
#endif
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
#include <glsym/glsym.h>
#endif
@@ -145,7 +149,7 @@ static double seek_time;
/* GL stuff */
struct frame
{
#if defined(HAVE_OPENGL)
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
GLuint tex;
#if !defined(HAVE_OPENGLES)
GLuint pbo;
@@ -156,7 +160,7 @@ struct frame
static struct frame frames[2];
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
static bool temporal_interpolation;
static bool use_gl;
static struct retro_hw_render_callback hw_render;
@@ -236,7 +240,7 @@ void CORE_PREFIX(retro_get_system_info)(struct retro_system_info *info)
info->library_name = "FFmpeg";
info->library_version = "v1";
info->need_fullpath = true;
info->valid_extensions = "mkv|avi|f4v|f4f|3gp|ogm|flv|mp4|mov|mp3|wav|webm|wmv|flac|ogg|m4a";
info->valid_extensions = "mkv|avi|f4v|f4f|3gp|ogm|flv|mp4|mp3|flac|ogg|m4a|webm|3g2|mov|wmv|mpg|mpeg|vob|asf|divx|m2p|m2ts|ps|ts|mxf|wma|wav";
}
void CORE_PREFIX(retro_get_system_av_info)(struct retro_system_av_info *info)
@@ -267,12 +271,12 @@ void CORE_PREFIX(retro_get_system_av_info)(struct retro_system_av_info *info)
void CORE_PREFIX(retro_set_environment)(retro_environment_t cb)
{
static const struct retro_variable vars[] = {
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
{ "ffmpeg_temporal_interp", "Temporal Interpolation; enabled|disabled" },
#endif
#ifdef HAVE_GL_FFT
{ "ffmpeg_fft_resolution", "GLFFT Resolution; 1280x720|1920x1080|640x360|320x180" },
{ "ffmpeg_fft_multisample", "GLFFT Multisample; 1x|2x|4x" },
#endif
#endif
{ "ffmpeg_color_space", "Colorspace; auto|BT.709|BT.601|FCC|SMPTE240M" },
{ NULL, NULL },
@@ -322,7 +326,7 @@ void CORE_PREFIX(retro_reset)(void)
static void check_variables(void)
{
struct retro_variable color_var = {0};
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
struct retro_variable var = {0};
#endif
#ifdef HAVE_GL_FFT
@@ -330,7 +334,7 @@ static void check_variables(void)
struct retro_variable fft_ms_var = {0};
#endif
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
var.key = "ffmpeg_temporal_interp";
if (CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
@@ -340,7 +344,6 @@ static void check_variables(void)
else if (!strcmp(var.value, "disabled"))
temporal_interpolation = false;
}
#endif
#ifdef HAVE_GL_FFT
fft_var.key = "ffmpeg_fft_resolution";
@@ -362,6 +365,7 @@ static void check_variables(void)
if (CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &fft_ms_var) && fft_ms_var.value)
fft_multisample = strtoul(fft_ms_var.value, NULL, 0);
#endif
#endif
color_var.key = "ffmpeg_color_space";
@@ -433,9 +437,9 @@ void CORE_PREFIX(retro_run)(void)
double min_pts;
int16_t audio_buffer[2048];
bool left, right, up, down, l, r;
size_t to_read_frames = 0;
int seek_frames = 0;
bool updated = false;
size_t to_read_frames = 0;
int seek_frames = 0;
bool updated = false;
#ifdef HAVE_GL_FFT
unsigned old_fft_width = fft_width;
unsigned old_fft_height = fft_height;
@@ -621,37 +625,43 @@ void CORE_PREFIX(retro_run)(void)
if (!decode_thread_dead)
{
uint32_t *data = video_frame_temp_buffer;
fifo_read(video_decode_fifo, &pts, sizeof(int64_t));
#if defined(HAVE_OPENGL)
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
if (use_gl)
{
#if defined(HAVE_OPENGLES)
fifo_read(video_decode_fifo, video_frame_temp_buffer, media.width * media.height * sizeof(uint32_t));
glBindTexture(GL_TEXTURE_2D, frames[1].tex);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
media.width, media.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, video_frame_temp_buffer);
glBindTexture(GL_TEXTURE_2D, 0);
#else
uint32_t *data = NULL;
#ifndef HAVE_OPENGLES
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, frames[1].pbo);
#ifdef __MACH__
data = (uint32_t*)glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY);
#else
data = (uint32_t*)glMapBufferRange(GL_PIXEL_UNPACK_BUFFER,
0, media.width * media.height, GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT);
0, media.width * media.height * sizeof(uint32_t), GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT);
#endif
#endif
fifo_read(video_decode_fifo, data, media.width * media.height * sizeof(uint32_t));
#ifndef HAVE_OPENGLES
glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
#endif
glBindTexture(GL_TEXTURE_2D, frames[1].tex);
#if defined(HAVE_OPENGLES)
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
media.width, media.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);
#else
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
media.width, media.height, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, NULL);
#endif
glBindTexture(GL_TEXTURE_2D, 0);
#ifndef HAVE_OPENGLES
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
#endif
}
else
#endif
{
fifo_read(video_decode_fifo, video_frame_temp_buffer, media.width * media.height * sizeof(uint32_t));
fifo_read(video_decode_fifo, data, media.width * media.height * sizeof(uint32_t));
dupe = false;
}
}
@@ -662,7 +672,7 @@ void CORE_PREFIX(retro_run)(void)
frames[1].pts = av_q2d(fctx->streams[video_stream]->time_base) * pts;
}
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
if (use_gl)
{
float mix_factor = (min_pts - frames[0].pts) / (frames[1].pts - frames[0].pts);
@@ -702,15 +712,17 @@ void CORE_PREFIX(retro_run)(void)
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));
CORE_PREFIX(video_cb)(RETRO_HW_FRAME_BUFFER_VALID,
media.width, media.height, media.width * sizeof(uint32_t));
}
else
#endif
{
CORE_PREFIX(video_cb)(dupe ? NULL : video_frame_temp_buffer, media.width, media.height, media.width * sizeof(uint32_t));
CORE_PREFIX(video_cb)(dupe ? NULL : video_frame_temp_buffer,
media.width, media.height, media.width * sizeof(uint32_t));
}
}
#ifdef HAVE_GL_FFT
#if defined(HAVE_GL_FFT) && (defined(HAVE_OPENGL) || defined(HAVE_OPENGLES))
else if (fft)
{
unsigned frames = to_read_frames;
@@ -730,7 +742,8 @@ void CORE_PREFIX(retro_run)(void)
frames -= to_read;
}
glfft_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));
CORE_PREFIX(video_cb)(RETRO_HW_FRAME_BUFFER_VALID,
fft_width, fft_height, fft_width * sizeof(uint32_t));
}
#endif
else
@@ -771,8 +784,10 @@ static bool codec_is_image(enum AVCodecID id)
return true;
default:
return false;
break;
}
return false;
}
static bool codec_id_is_ttf(enum AVCodecID id)
@@ -787,8 +802,10 @@ static bool codec_id_is_ttf(enum AVCodecID id)
return true;
default:
return false;
break;
}
return false;
}
#ifdef HAVE_SSA
@@ -815,11 +832,16 @@ static bool open_codecs(void)
{
unsigned i;
decode_thread_lock = slock_new();
video_stream = -1;
audio_streams_num = 0;
audio_streams_ptr = 0;
subtitle_streams_num = 0;
slock_lock(decode_thread_lock);
audio_streams_ptr = 0;
subtitle_streams_ptr = 0;
slock_unlock(decode_thread_lock);
memset(audio_streams, 0, sizeof(audio_streams));
memset(subtitle_streams, 0, sizeof(subtitle_streams));
@@ -839,7 +861,8 @@ static bool open_codecs(void)
break;
case AVMEDIA_TYPE_VIDEO:
if (!vctx && !codec_is_image(fctx->streams[i]->codec->codec_id))
if ( !vctx
&& !codec_is_image(fctx->streams[i]->codec->codec_id))
{
if (!open_codec(&vctx, i))
return false;
@@ -849,7 +872,8 @@ static bool open_codecs(void)
case AVMEDIA_TYPE_SUBTITLE:
#ifdef HAVE_SSA
if (subtitle_streams_num < MAX_STREAMS && codec_id_is_ass(fctx->streams[i]->codec->codec_id))
if ( subtitle_streams_num < MAX_STREAMS
&& codec_id_is_ass(fctx->streams[i]->codec->codec_id))
{
int size;
AVCodecContext **s = &sctx[subtitle_streams_num];
@@ -894,6 +918,7 @@ static bool init_media_info(void)
media.sample_rate = actx[0]->sample_rate;
media.interpolate_fps = 60.0;
if (vctx)
{
media.width = vctx->width;
@@ -982,7 +1007,8 @@ static bool decode_video(AVPacket *pkt, AVFrame *frame,
{
set_colorspace(sws, media.width, media.height,
av_frame_get_colorspace(frame), av_frame_get_color_range(frame));
sws_scale(sws, (const uint8_t * const*)frame->data, frame->linesize, 0, media.height,
sws_scale(sws, (const uint8_t * const*)frame->data,
frame->linesize, 0, media.height,
conv->data, conv->linesize);
return true;
}
@@ -1001,8 +1027,8 @@ static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt,
{
int64_t pts;
size_t required_buffer;
int ret = avcodec_decode_audio4(ctx, frame, &got_ptr, &pkt_tmp);
if (ret < 0)
return buffer;
@@ -1091,20 +1117,20 @@ static void render_ass_img(AVFrame *conv_frame, ASS_Image *img)
for (; img; img = img->next)
{
int x, y;
uint32_t *dst;
unsigned r, g, b, a;
uint32_t *dst = NULL;
const uint8_t *bitmap = NULL;
if (img->w == 0 && img->h == 0)
continue;
bitmap = img->bitmap;
dst = frame + img->dst_x + img->dst_y * stride;
dst = frame + img->dst_x + img->dst_y * stride;
r = (img->color >> 24) & 0xff;
g = (img->color >> 16) & 0xff;
b = (img->color >> 8) & 0xff;
a = 255 - (img->color & 0xff);
r = (img->color >> 24) & 0xff;
g = (img->color >> 16) & 0xff;
b = (img->color >> 8) & 0xff;
a = 255 - (img->color & 0xff);
for (y = 0; y < img->h; y++,
bitmap += img->stride, dst += stride)
@@ -1115,9 +1141,9 @@ static void render_ass_img(AVFrame *conv_frame, ASS_Image *img)
unsigned dst_alpha = 256 - src_alpha;
uint32_t dst_color = dst[x];
unsigned dst_r = (dst_color >> 16) & 0xff;
unsigned dst_g = (dst_color >> 8) & 0xff;
unsigned dst_b = (dst_color >> 0) & 0xff;
unsigned dst_r = (dst_color >> 16) & 0xff;
unsigned dst_g = (dst_color >> 8) & 0xff;
unsigned dst_b = (dst_color >> 0) & 0xff;
dst_r = (r * src_alpha + dst_r * dst_alpha) >> 8;
dst_g = (g * src_alpha + dst_g * dst_alpha) >> 8;
@@ -1134,8 +1160,9 @@ static void render_ass_img(AVFrame *conv_frame, ASS_Image *img)
static void decode_thread(void *data)
{
unsigned i;
AVFrame *aud_frame, *vid_frame;
SwrContext *swr[audio_streams_num];
AVFrame *aud_frame = NULL;
AVFrame *vid_frame = NULL;
void *conv_frame_buf = NULL;
size_t frame_size = 0;
int16_t *audio_buffer = NULL;
@@ -1146,12 +1173,10 @@ static void decode_thread(void *data)
(void)data;
if (video_stream >= 0)
{
sws = sws_getCachedContext(NULL,
media.width, media.height, vctx->pix_fmt,
media.width, media.height, PIX_FMT_RGB32,
SWS_POINT, NULL, NULL, NULL);
}
for (i = 0; (int)i < audio_streams_num; i++)
{
@@ -1181,18 +1206,18 @@ static void decode_thread(void *data)
while (!decode_thread_dead)
{
bool seek;
AVPacket pkt;
int subtitle_stream;
double seek_time_thread;
int audio_stream, audio_stream_ptr;
int subtitle_stream;
AVPacket pkt;
AVCodecContext *actx_active;
AVCodecContext *sctx_active;
AVCodecContext *actx_active = NULL;
AVCodecContext *sctx_active = NULL;
#ifdef HAVE_SSA
ASS_Track *ass_track_active;
ASS_Track *ass_track_active = NULL;
#endif
slock_lock(fifo_lock);
seek = do_seek;
seek = do_seek;
seek_time_thread = seek_time;
slock_unlock(fifo_lock);
@@ -1237,9 +1262,9 @@ static void decode_thread(void *data)
double video_time = pts * av_q2d(fctx->streams[video_stream]->time_base);
#ifdef HAVE_SSA
if (ass_render)
if (ass_render && ass_track_active)
{
int change = 0;
int change = 0;
ASS_Image *img = ass_render_frame(ass_render, ass_track_active,
1000 * video_time, &change);
@@ -1282,13 +1307,13 @@ static void decode_thread(void *data)
slock_unlock(fifo_lock);
}
}
else if (pkt.stream_index == audio_stream)
else if (pkt.stream_index == audio_stream && actx_active)
{
audio_buffer = decode_audio(actx_active, &pkt, aud_frame,
audio_buffer, &audio_buffer_cap,
swr[audio_stream_ptr]);
}
else if (pkt.stream_index == subtitle_stream)
else if (pkt.stream_index == subtitle_stream && sctx_active)
{
AVSubtitle sub;
int finished = 0;
@@ -1307,7 +1332,7 @@ static void decode_thread(void *data)
#ifdef HAVE_SSA
for (i = 0; i < sub.num_rects; i++)
{
if (sub.rects[i]->ass)
if (sub.rects[i]->ass && ass_track_active)
ass_process_data(ass_track_active,
sub.rects[i]->ass, strlen(sub.rects[i]->ass));
}
@@ -1338,7 +1363,7 @@ static void decode_thread(void *data)
slock_unlock(fifo_lock);
}
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
static void context_destroy(void)
{
#ifdef HAVE_GL_FFT
@@ -1350,29 +1375,19 @@ static void context_destroy(void)
#endif
}
static void context_reset(void)
{
static const char *vertex_source =
"attribute vec2 aVertex;\n"
"attribute vec2 aTexCoord;\n"
"varying vec2 vTex;\n"
"void main() { gl_Position = vec4(aVertex, 0.0, 1.0); vTex = aTexCoord; }\n";
#include "gl_shaders/ffmpeg.glsl.vert.h"
static const char *fragment_source =
"#ifdef GL_ES\n"
"precision mediump float;\n"
"#endif\n"
"varying vec2 vTex;\n"
"uniform sampler2D sTex0;\n"
"uniform sampler2D sTex1;\n"
"uniform float uMix;\n"
#if defined(HAVE_OPENGLES)
"void main() { gl_FragColor = vec4(pow(mix(pow(texture2D(sTex0, vTex).bgr, vec3(2.2)), pow(texture2D(sTex1, vTex).bgr, vec3(2.2)), uMix), vec3(1.0 / 2.2)), 1.0); }\n";
// 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.
/* 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"
#else
"void main() { gl_FragColor = vec4(pow(mix(pow(texture2D(sTex0, vTex).rgb, vec3(2.2)), pow(texture2D(sTex1, vTex).rgb, vec3(2.2)), uMix), vec3(1.0 / 2.2)), 1.0); }\n";
#include "gl_shaders/ffmpeg.glsl.frag.h"
#endif
static void context_reset(void)
{
static const GLfloat vertex_data[] = {
-1, -1, 0, 0,
1, -1, 1, 0,
@@ -1553,6 +1568,9 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
{ 0 },
};
if (!info)
return false;
CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS, desc);
if (!CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt))
@@ -1587,8 +1605,6 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
goto error;
}
decode_thread_dead = false;
#ifdef HAVE_GL_FFT
is_glfft = video_stream < 0 && audio_streams_num > 0;
#endif
@@ -1598,7 +1614,7 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
video_decode_fifo = fifo_new(media.width
* media.height * sizeof(uint32_t) * 32);
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
use_gl = true;
hw_render.context_reset = context_reset;
hw_render.context_destroy = context_destroy;
@@ -1612,7 +1628,7 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
#endif
if (!CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_HW_RENDER, &hw_render))
{
use_gl=false;
use_gl = false;
LOG_ERR("Cannot initialize HW render.");
}
#endif
@@ -1623,10 +1639,13 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
audio_decode_fifo = fifo_new(buffer_seconds * media.sample_rate * sizeof(int16_t) * 2);
}
fifo_cond = scond_new();
fifo_cond = scond_new();
fifo_decode_cond = scond_new();
fifo_lock = slock_new();
decode_thread_lock = slock_new();
fifo_lock = slock_new();
slock_lock(fifo_lock);
decode_thread_dead = false;
slock_unlock(fifo_lock);
check_variables();
+192 -26
View File
@@ -9,15 +9,13 @@
#include <retro_miscellaneous.h>
#include <filters.h>
#include <math/complex.h>
#include <gfx/math/matrix_4x4.h>
#define GLM_SWIZZLE
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/packing.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace glm;
#define GL_DEBUG 0
#if GL_DEBUG
#define GL_CHECK_ERROR() do { \
if (glGetError() != GL_NO_ERROR) \
@@ -90,13 +88,13 @@ typedef struct GLFFT
unsigned depth;
} glfft_t;
#include "gl_shaders/fft_heightmap.glsl.vert.h"
#include "gl_shaders/fft_heightmap.glsl.frag.h"
#include "gl_shaders/fft_vertex_program.glsl.vert.h"
#include "gl_shaders/fft_fragment_program_resolve.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_real.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_complex.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_blur.glsl.frag.h"
#include "../gl_shaders/fft_heightmap.glsl.vert.h"
#include "../gl_shaders/fft_heightmap.glsl.frag.h"
#include "../gl_shaders/fft_vertex_program.glsl.vert.h"
#include "../gl_shaders/fft_fragment_program_resolve.glsl.frag.h"
#include "../gl_shaders/fft_fragment_program_real.glsl.frag.h"
#include "../gl_shaders/fft_fragment_program_complex.glsl.frag.h"
#include "../gl_shaders/fft_fragment_program_blur.glsl.frag.h"
static GLuint fft_compile_shader(glfft_t *fft, GLenum type, const char *source)
{
@@ -151,9 +149,176 @@ static GLuint fft_compile_program(glfft_t *fft,
return prog;
}
#define USE_GLM
//#define GLM_USE_DEBUG
static void fft_render(glfft_t *fft, GLuint backbuffer, unsigned width, unsigned height)
{
mat4 mvp;
#ifdef USE_GLM
glm::vec3 eye = glm::vec3(0, 80, -60);
glm::vec3 center = eye + glm::vec3(0.0f, 0.0f, 1.0f);
#ifdef GLM_USE_DEBUG
printf("center : %.2f, %.2f, %.2f\n", center.x, center.y, center.z);
#endif
glm::vec3 up = glm::vec3(0.0f, 1.0f, 0.0f);
glm::mat4 mvp_persp = glm::perspective((float)M_HALF_PI, (float)width / height,
1.0f, 500.0f);
#ifdef GLM_USE_DEBUG
printf("mvp_persp: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
mvp_persp[0][0],
mvp_persp[0][1],
mvp_persp[0][2],
mvp_persp[0][3],
mvp_persp[1][0],
mvp_persp[1][1],
mvp_persp[1][2],
mvp_persp[1][3],
mvp_persp[2][0],
mvp_persp[2][1],
mvp_persp[2][2],
mvp_persp[2][3],
mvp_persp[3][0],
mvp_persp[3][1],
mvp_persp[3][2],
mvp_persp[3][3]
);
#endif
glm::mat4 mvp_lookat = glm::lookAt(eye, center, up);
#ifdef GLM_USE_DEBUG
printf("eye %.2f %.2f %.2f\n", eye.x, eye.y, eye.z);
printf("center %.2f %.2f %.2f\n", center.x, center.y, center.z);
printf("up %.2f %.2f %.2f\n", up.x, up.y, up.z);
printf("mvp_lookat: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
mvp_lookat[0][0],
mvp_lookat[0][1],
mvp_lookat[0][2],
mvp_lookat[0][3],
mvp_lookat[1][0],
mvp_lookat[1][1],
mvp_lookat[1][2],
mvp_lookat[1][3],
mvp_lookat[2][0],
mvp_lookat[2][1],
mvp_lookat[2][2],
mvp_lookat[2][3],
mvp_lookat[3][0],
mvp_lookat[3][1],
mvp_lookat[3][2],
mvp_lookat[3][3]
);
#endif
glm::mat4 mvp = mvp_persp * mvp_lookat;
#ifdef GLM_USE_DEBUG
printf("mvp: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
mvp[0][0],
mvp[0][1],
mvp[0][2],
mvp[0][3],
mvp[1][0],
mvp[1][1],
mvp[1][2],
mvp[1][3],
mvp[2][0],
mvp[2][1],
mvp[2][2],
mvp[2][3],
mvp[3][0],
mvp[3][1],
mvp[3][2],
mvp[3][3]
);
#endif
#else
vec3_t eye, center, up;
math_matrix_4x4 mvp_lookat, mvp, mvp_persp;
eye[0] = 0.0f;
eye[1] = 80.0f;
eye[2] = -60.0f;
up[0] = 0.0f;
up[1] = 1.0f;
up[2] = 0.0f;
center[0] = 0.0f;
center[1] = 0.0f;
center[2] = 1.0f;
vec3_add(&center[0], &eye[0]);
#ifdef GLM_USE_DEBUG
printf("center : %.2f, %.2f, %.2f\n", center[0], center[1], center[2]);
#endif
matrix_4x4_projection(&mvp_persp, (float)M_HALF_PI, (float)width / height, 1.0f, 500.0f);
#ifdef GLM_USE_DEBUG
printf("mvp_persp: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
MAT_ELEM_4X4(mvp_persp, 0, 0),
MAT_ELEM_4X4(mvp_persp, 0, 1),
MAT_ELEM_4X4(mvp_persp, 0, 2),
MAT_ELEM_4X4(mvp_persp, 0, 3),
MAT_ELEM_4X4(mvp_persp, 1, 0),
MAT_ELEM_4X4(mvp_persp, 1, 1),
MAT_ELEM_4X4(mvp_persp, 1, 2),
MAT_ELEM_4X4(mvp_persp, 1, 3),
MAT_ELEM_4X4(mvp_persp, 2, 0),
MAT_ELEM_4X4(mvp_persp, 2, 1),
MAT_ELEM_4X4(mvp_persp, 2, 2),
MAT_ELEM_4X4(mvp_persp, 2, 3),
MAT_ELEM_4X4(mvp_persp, 3, 0),
MAT_ELEM_4X4(mvp_persp, 3, 1),
MAT_ELEM_4X4(mvp_persp, 3, 2),
MAT_ELEM_4X4(mvp_persp, 3, 3)
);
printf("eye %.2f %.2f %.2f\n", eye[0], eye[1], eye[2]);
printf("center %.2f %.2f %.2f\n", center[0], center[1], center[2]);
printf("up %.2f %.2f %.2f\n", up[0], up[1], up[2]);
#endif
matrix_4x4_lookat(&mvp_lookat, eye, center, up);
#ifdef GLM_USE_DEBUG
printf("mvp_lookat: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
MAT_ELEM_4X4(mvp_lookat, 0, 0),
MAT_ELEM_4X4(mvp_lookat, 0, 1),
MAT_ELEM_4X4(mvp_lookat, 0, 2),
MAT_ELEM_4X4(mvp_lookat, 0, 3),
MAT_ELEM_4X4(mvp_lookat, 1, 0),
MAT_ELEM_4X4(mvp_lookat, 1, 1),
MAT_ELEM_4X4(mvp_lookat, 1, 2),
MAT_ELEM_4X4(mvp_lookat, 1, 3),
MAT_ELEM_4X4(mvp_lookat, 2, 0),
MAT_ELEM_4X4(mvp_lookat, 2, 1),
MAT_ELEM_4X4(mvp_lookat, 2, 2),
MAT_ELEM_4X4(mvp_lookat, 2, 3),
MAT_ELEM_4X4(mvp_lookat, 3, 0),
MAT_ELEM_4X4(mvp_lookat, 3, 1),
MAT_ELEM_4X4(mvp_lookat, 3, 2),
MAT_ELEM_4X4(mvp_lookat, 3, 3)
);
#endif
matrix_4x4_multiply(&mvp, &mvp_persp, &mvp_lookat);
#ifdef GLM_USE_DEBUG
printf("mvp: \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n %.2f, %.2f, %.2f, %.2f \n\n",
MAT_ELEM_4X4(mvp, 0, 0),
MAT_ELEM_4X4(mvp, 0, 1),
MAT_ELEM_4X4(mvp, 0, 2),
MAT_ELEM_4X4(mvp, 0, 3),
MAT_ELEM_4X4(mvp, 1, 0),
MAT_ELEM_4X4(mvp, 1, 1),
MAT_ELEM_4X4(mvp, 1, 2),
MAT_ELEM_4X4(mvp, 1, 3),
MAT_ELEM_4X4(mvp, 2, 0),
MAT_ELEM_4X4(mvp, 2, 1),
MAT_ELEM_4X4(mvp, 2, 2),
MAT_ELEM_4X4(mvp, 2, 3),
MAT_ELEM_4X4(mvp, 3, 0),
MAT_ELEM_4X4(mvp, 3, 1),
MAT_ELEM_4X4(mvp, 3, 2),
MAT_ELEM_4X4(mvp, 3, 3)
);
#endif
#endif
/* Render scene. */
glBindFramebuffer(GL_FRAMEBUFFER, fft->ms_fbo ? fft->ms_fbo : backbuffer);
@@ -161,13 +326,14 @@ static void fft_render(glfft_t *fft, GLuint backbuffer, unsigned width, unsigned
glClearColor(0.1f, 0.15f, 0.1f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
vec3 eye(0, 80, -60);
mvp = perspective((float)M_HALF_PI, (float)width / height, 1.0f, 500.0f) *
lookAt(eye, eye + vec3(0.0f, 0.0f, 1.0f), vec3(0.0f, 1.0f, 0.0f));
glUseProgram(fft->block.prog);
#ifdef USE_GLM
glUniformMatrix4fv(glGetUniformLocation(fft->block.prog, "uMVP"),
1, GL_FALSE, value_ptr(mvp));
1, GL_FALSE, (&mvp[0].x));
#else
glUniformMatrix4fv(glGetUniformLocation(fft->block.prog, "uMVP"),
1, GL_FALSE, (&(MAT_ELEM_4X4(mvp, 0, 0))));
#endif
glUniform2i(glGetUniformLocation(fft->block.prog, "uOffset"),
(-int(fft->block_size) + 1) / 2, fft->output_ptr);
glUniform4f(glGetUniformLocation(fft->block.prog, "uHeightmapParams"),
@@ -348,12 +514,12 @@ void fft_build_params(glfft_t *fft, GLuint *buffer,
unsigned read_a = (step == 0) ? bitinverse(a, size) : a;
unsigned read_b = (step == 0) ? bitinverse(b, size) : b;
vec2 tmp = vec2(twiddle.real, twiddle.imag);
glm::vec2 tmp = glm::vec2(twiddle.real, twiddle.imag);
buffer[2 * a + 0] = (read_a << 16) | read_b;
buffer[2 * a + 1] = packHalf2x16(tmp);
buffer[2 * a + 1] = glm::packHalf2x16(tmp);
buffer[2 * b + 0] = (read_a << 16) | read_b;
buffer[2 * b + 1] = packHalf2x16(-tmp);
buffer[2 * b + 1] = glm::packHalf2x16(-tmp);
}
}
}
@@ -523,12 +689,12 @@ static void fft_init(glfft_t *fft)
static void fft_init_block(glfft_t *fft)
{
unsigned x, y;
GLuint *bp;
GLushort *block_vertices;
GLuint *block_indices;
unsigned block_vertices_size;
unsigned block_indices_size;
int pos = 0;
int pos = 0;
GLuint *bp = NULL;
GLushort *block_vertices = NULL;
GLuint *block_indices = NULL;
fft->block.prog = fft_compile_program(fft,
fft_vertex_program_heightmap, fft_fragment_program_heightmap);
@@ -604,13 +770,13 @@ static bool fft_context_reset(glfft_t *fft, unsigned fft_steps,
fft->block_size = fft->size / 4 + 1;
fft->passes_size = fft_steps;
fft->passes = (Pass*)calloc(fft->passes_size, sizeof(Pass));
fft->passes = (Pass*)calloc(fft->passes_size, sizeof(Pass));
if (!fft->passes)
return false;
fft->sliding_size = 2 * fft->size;
fft->sliding = (GLshort*)calloc(fft->sliding_size, sizeof(GLshort));
fft->sliding = (GLshort*)calloc(fft->sliding_size, sizeof(GLshort));
if (!fft->sliding)
return false;
@@ -0,0 +1,13 @@
#include "shaders_common.h"
static const char *fragment_source = GLSL(
varying vec2 vTex;
uniform sampler2D sTex0;
uniform sampler2D sTex1;
uniform float uMix;
void main() {
gl_FragColor = vec4(pow(mix(pow(texture2D(sTex0, vTex).rgb, vec3(2.2)), pow(texture2D(sTex1, vTex).rgb, vec3(2.2)), uMix), vec3(1.0 / 2.2)), 1.0);
}
);
@@ -0,0 +1,12 @@
#include "shaders_common.h"
static const char *vertex_source = GLSL(
attribute vec2 aVertex;
attribute vec2 aTexCoord;
varying vec2 vTex;
void main() {
gl_Position = vec4(aVertex, 0.0, 1.0); vTex = aTexCoord;
}
);
@@ -0,0 +1,13 @@
#include "shaders_common.h"
static const char *fragment_source = GLSL(
varying vec2 vTex;
uniform sampler2D sTex0;
uniform sampler2D sTex1;
uniform float uMix;
void main() {
gl_FragColor = vec4(pow(mix(pow(texture2D(sTex0, vTex).bgr, vec3(2.2)), pow(texture2D(sTex1, vTex).bgr, vec3(2.2)), uMix), vec3(1.0 / 2.2)), 1.0);
}
);
Loaded 100 of 2806 files, more files were not shown because too many files have changed in this diff. Show more