Compare commits

...
4761 Commits
Author SHA1 Message Date
Brad Parker dd2e73d664 Qt: add fallback path for older versions 2018-09-17 23:12:08 -04:00
Twinaphex 132faf3bf2 Merge pull request #7237 from fr500/master
update assets
2018-09-18 04:05:03 +02:00
radius 2ff8bdc14a update assets 2018-09-17 21:03:09 -05:00
twinaphex e9a25e3022 Fix relative path includes 2018-09-17 21:47:12 +02:00
twinaphex fa30f49e16 Buildfix 2018-09-17 20:00:54 +02:00
Twinaphex 9a6a797f90 Merge pull request #7232 from alfrix/master
Update spanish and add discord sublabel
2018-09-17 19:43:12 +02:00
Twinaphex 448520ead2 Merge pull request #7231 from fr500/master
[recording] hook up the options properly
2018-09-17 19:37:01 +02:00
Alfrix 4ab61c3f7d Add discord sublabel and fix cheat apply after load 2018-09-17 14:31:47 -03:00
Alfrix 63f5281b67 Update english 2018-09-17 14:31:04 -03:00
Alfrix 74350ee184 Update Spanish 2018-09-17 14:30:31 -03:00
radius 0d7a169ea0 [recording] toggle menu when the options are used 2018-09-17 09:19:06 -05:00
radius ef9258449c [recording] hook up the options properly 2018-09-17 09:08:54 -05:00
twinaphex eb9e8c97d6 (Menu) Cleanups 2018-09-17 10:09:52 +02:00
twinaphex 6d0409b6bd (Menu) More cleanups 2018-09-17 10:07:15 +02:00
twinaphex 2d8eb9322a Cleanups 2018-09-17 10:02:31 +02:00
twinaphex 3aec8abca9 Get rid of some void pointers 2018-09-17 09:57:30 +02:00
twinaphex c40700e51b Add Start Streaming / Start Recording - implementation will need
to be properly done though
2018-09-17 09:18:44 +02:00
twinaphex 3c8ee6f26a Add 'Start Streaming/Start Recording' to Quick Menu 2018-09-17 09:06:24 +02:00
Twinaphex 4f85ca5f9a Merge pull request #7225 from fr500/master
WIP: [record] start whipping some sense into this feature
2018-09-17 06:16:13 +02:00
twinaphex 0fe713eb5f Fix error: initializer element is not constant 2018-09-17 03:50:37 +02:00
Twinaphex 8c10abf8bb Update CHANGES.md 2018-09-17 03:41:45 +02:00
Twinaphex 2dcc6ae046 Merge pull request #7230 from bparker06/qt_labeledit
Qt: edit playlist entry labels by clicking on them a second time
2018-09-17 03:41:01 +02:00
twinaphex 2c959d8ff1 (Display server) Add get_output 2018-09-17 03:40:17 +02:00
Brad Parker 5fbf841fb2 Qt: edit playlist entry labels by clicking on them a second time, or with the platform's edit key (usually F2) 2018-09-16 21:34:28 -04:00
twinaphex 9c88c6e3c5 Add msg_hash OUTPUT_DISPLAY_ID 2018-09-17 03:25:34 +02:00
twinaphex 04211662cf Add 'Use Custom Refresh Rate' setting 2018-09-17 01:56:18 +02:00
twinaphex cb7d15bc2b Update 2018-09-17 01:31:51 +02:00
twinaphex b5c6586b12 Change CRT switch resolution - add options 'Off/15 Khz/31Khz' 2018-09-17 01:30:49 +02:00
twinaphex 369f8206d1 Add 'X-Axis Centering' - https://github.com/libretro/RetroArch/issues/6988 2018-09-16 21:00:34 +02:00
Twinaphex 5d4a8f4497 Merge pull request #7226 from theheroGAC/patch-35
Update msg_hash_it.h
2018-09-16 16:35:26 +02:00
theheroGAC 71e8f00b27 Update msg_hash_it.h 2018-09-16 12:39:11 +02:00
twinaphex 07fd28b351 Change CRT Super Resolution 'OFF' to 'Native' 2018-09-16 09:06:55 +02:00
twinaphex 92b6854315 CRT SwitchRes - step 3 - https://github.com/libretro/RetroArch/issues/6988 2018-09-16 08:57:27 +02:00
twinaphex ac81ef680d Update sublabels 2018-09-16 08:29:13 +02:00
twinaphex 004a2e335f (CRT SwitchRes) Step 1- https://github.com/libretro/RetroArch/issues/6988 2018-09-16 08:06:06 +02:00
twinaphex 60437f07fd Update CHANGES.md 2018-09-16 07:38:15 +02:00
Twinaphex 394136f368 Merge pull request #7224 from alfrix/master
Update spanish and fix some indentation mishaps in us
2018-09-16 06:20:13 +02:00
Alfrix f24715ac1e Update spanish and fix some indentation mishaps in us 2018-09-16 00:27:40 -03:00
radius efa62af78b [recording] use a different config for streaming 2018-09-15 22:02:57 -05:00
radius 1c85058e72 [recording] rename bsv recording from movie to input replay 2018-09-15 21:47:23 -05:00
radius 16bd85b118 [recording] refactor recording_is_enabled no need to use a pointer for all of this 2018-09-15 21:09:41 -05:00
radius 9d490ace3b [record] deinit before init 2018-09-15 17:54:00 -05:00
radius 49214de125 [record] start whipping some sense into this feature 2018-09-15 17:49:39 -05:00
twinaphex 50398c2a35 Bump version up to 1.7.5 2018-09-15 20:24:04 +02:00
Brad Parker 055eff653a android: add text to xhdpi banner per TV app quality guidelines 2018-09-15 12:39:35 -04:00
twinaphex 13223c2225 Update switch_thread_audio.c 2018-09-15 17:44:27 +02:00
twinaphex f21493947d vim - add RetroArch style conventions 2018-09-15 17:43:34 +02:00
twinaphex 2fc08ce394 (switch_nx_gx.c) Some style nits 2018-09-15 17:39:03 +02:00
twinaphex 6ff2c96d03 - Rename switch_nx_thread_audio.c to switch_thread_audio.c
- Change code to C89-comformant
- Some small formatting/style nits
- Cleanup Makefile.common object listings
2018-09-15 17:31:56 +02:00
twinaphex db43033f9a Some minor cleanups - switch_audio_compat.h 2018-09-15 17:21:21 +02:00
Twinaphex c614cb05ec Merge pull request #7223 from m4xw/audio_thr_fixes
[NSW] Fix Threaded audio driver
2018-09-15 16:58:04 +02:00
M4xw ea066625ba [NSW] Fix Threaded audio driver (fifoSize init) and use a slightly higher Prio. 2018-09-15 16:46:17 +02:00
Twinaphex 13c22c47b9 Merge pull request #7220 from reswitched/master
[NSW] SDK Compat Fixups
2018-09-15 16:33:52 +02:00
misson20000 abd86058c6 fix attribution (it's a common mistake) 2018-09-15 03:28:08 -07:00
misson20000 8ed254f0c0 small platform_switch indentation fixups 2018-09-15 03:27:29 -07:00
misson20000 7072bbb829 [NSW] SDK compat fixups 2018-09-15 03:27:29 -07:00
misson20000 fa76a3cb60 CRLF -> LF 2018-09-15 03:27:05 -07:00
twinaphex bde5905eba Cleanup 2018-09-15 08:12:18 +02:00
twinaphex 7bd705983e Convert strcmp to string_is_equal 2018-09-15 07:47:44 +02:00
twinaphex ec5d046f4c Cleanups - get rid of strcmp references 2018-09-15 07:44:21 +02:00
twinaphex eac56c4382 Try to avoid strcpy and strcmp in midi_driver.c 2018-09-15 07:32:48 +02:00
Brad Parker 19329fe7c7 prevent out of bound array access for unmapped input binds 2018-09-15 01:21:10 -04:00
twinaphex 09d27fc591 Silence some warnings 2018-09-15 07:19:51 +02:00
twinaphex 73e01b64ba Should fix non-HAVE_DISCORD path 2018-09-15 07:17:29 +02:00
twinaphex 3d611a2673 Update runahead - get rid of FREE macro 2018-09-15 06:41:37 +02:00
Twinaphex df5476f0c0 Merge pull request #7210 from fr500/master
WIP: Discord "ask to join"
2018-09-15 06:37:32 +02:00
Twinaphex 77923df4c1 Merge pull request #7218 from m4xw/libnx_updates
[LIBNX] Implement threading, adapt libnx 1.4.0 changes, add Core extension
2018-09-15 04:36:02 +02:00
M4xw 0ff014c1ac [LIBNX] Add Core extension 2018-09-15 02:29:40 +02:00
M4xw 3a6e410833 [LIBNX] Add pthreads wrapper 2018-09-15 02:28:52 +02:00
radius e567b3847c [discord] use the upstream application ID 2018-09-14 19:03:26 -05:00
M4xw 424d169cd9 [LIBNX] Fix Audio and Platform for updated libnx 2018-09-15 01:29:42 +02:00
Twinaphex 7ed367c49b Merge pull request #7214 from RobLoach/emscripten-chailove
(Emscripten) Add ChaiLove selection to web player
2018-09-14 23:33:50 +02:00
Twinaphex d41f41c5d0 Merge pull request #7216 from DEX357/patch-19
Update msg_hash_pl.h
2018-09-14 23:33:36 +02:00
DEX357 e37bd41e86 Update msg_hash_pl.h 2018-09-14 23:20:09 +02:00
Twinaphex 899e35451a Merge pull request #7215 from m4xw/libnx_fixes
[LIBNX] Add platform_switch, Fix switch_audio.
2018-09-14 20:46:33 +02:00
M4xw 64edf5f879 [LIBNX] Fixups and bare minimum to function 2018-09-14 20:38:42 +02:00
M4xw 3566171ea1 Essential .gitignore rules 2018-09-14 19:35:31 +02:00
M4xw 932b4c5ce1 [LIBNX] Fix switch_audio 2018-09-14 19:35:21 +02:00
Rob Loach 2ff87fd663 emscripten: Add ChaiLove selection to web player 2018-09-14 09:39:20 -04:00
twinaphex 7428fef4bc Cleanups 2018-09-12 21:50:11 +02:00
twinaphex 0158bbe4aa Add switch_nx_gfx.c 2018-09-12 21:44:53 +02:00
twinaphex 8f9dc13aa7 Add copyrights 2018-09-12 21:28:54 +02:00
twinaphex 19b4ef3b2c Add conv rgb565 to ABGR8888 by m4xw 2018-09-12 20:04:52 +02:00
twinaphex cc8b458ee3 Add menu_display_switch.c 2018-09-12 20:01:56 +02:00
twinaphex 517b1b9089 Add HAVE_LIBNX ifdefs to switch_input.c/switch_joypad.c, and
features_cpu.c
2018-09-12 19:54:51 +02:00
twinaphex 6139f8846a (NSW) We now have only one non-threaded audio driver for both SDKs instead of
two
2018-09-12 19:37:38 +02:00
twinaphex 213a56c59f Get rid of RESULT_OK usage 2018-09-12 18:58:12 +02:00
twinaphex 677cb30982 (NSW) Start unifying both libtransistor and libnx switch audio drivers 2018-09-12 18:29:25 +02:00
radius fed74b9e70 [discord] populate data correctly 2018-09-12 01:45:28 -05:00
radius 4d0729187f [discord] start getting ready for ask-to-join functionality, cleanup some of the mess 2018-09-12 01:45:27 -05:00
twinaphex 2a7a2e7dee (LIBNX) Start backporting libnx code; beginning with audio drivers 2018-09-12 08:14:17 +02:00
twinaphex 9cbd7ec6f3 (RGUI) Add some Switch ifdefs to RGUI 2018-09-12 08:01:19 +02:00
twinaphex bf75e6b9d7 video_context_driver_swap_interval - add in safeguard 2018-09-12 07:16:33 +02:00
Twinaphex 9017e209e8 Update CHANGES.md 2018-09-12 06:44:53 +02:00
Twinaphex d52f5cc0d4 Update CHANGES.md 2018-09-12 06:43:33 +02:00
twinaphex 650c173125 Turn public functions into static functions 2018-09-12 06:39:07 +02:00
twinaphex 3c160a6eb4 Create video_driver_get_all_flags 2018-09-12 06:31:41 +02:00
twinaphex 3f8e3547f4 (GLX) swap_control_tear should now be implemented and working 2018-09-12 04:17:41 +02:00
twinaphex 58472cb696 Silence some warnings 2018-09-12 04:09:19 +02:00
twinaphex 914df58d2e (WGL) Adaptive Vsync should work now for WGL 2018-09-12 03:59:25 +02:00
twinaphex 98b20d4e5d (GLX/WGL) Start implementing adaptive VSync (swap_control_tear) for GLX/WGL pt. 1 2018-09-12 02:42:24 +02:00
Twinaphex 9bf2fb8f79 Merge pull request #7209 from RetroSven/master
provide a means for cores to coordinate with the frontend when shutting down multiple threads gracefully
2018-09-12 00:54:04 +02:00
Sven 3c0eadbdf2 per request 2018-09-11 18:52:51 -04:00
Sven b771a3e0f5 move libretro.h defines to retroarch.h 2018-09-11 18:45:01 -04:00
twinaphex 4738ef545c Change interval type to signed int 2018-09-12 00:08:13 +02:00
Sven d8796732aa provide a means for cores to coordinate with the frontend when shutting down multiple threads gracefully 2018-09-11 13:29:20 -04:00
Twinaphex 5d8c268afc Update CHANGES.md 2018-09-11 06:39:07 +02:00
Twinaphex c876342057 Update CHANGES.md 2018-09-11 06:38:22 +02:00
Twinaphex 91b945e529 Update CHANGES.md 2018-09-11 06:37:56 +02:00
Twinaphex f96db78b3d Update CHANGES.md 2018-09-11 06:36:45 +02:00
Twinaphex 83c3bd31c6 Update CHANGES.md 2018-09-11 06:36:12 +02:00
Twinaphex 21684a80ad Update CHANGES.md 2018-09-11 06:35:43 +02:00
Twinaphex a0d87dd68d Merge pull request #7207 from altiereslima/master
Update brazilian portuguese translation
2018-09-11 06:26:13 +02:00
altiereslima 3a6290887a Update brazilian portuguese translation 2018-09-11 01:21:42 -03:00
Twinaphex ae3a53185b Merge pull request #7206 from bparker06/lobby_host_room
netplay: save lobby details received back from server after first announcement
2018-09-11 03:30:09 +02:00
Brad Parker 7a76c6a4da netplay: save lobby details received back from server after first announcement 2018-09-10 21:01:46 -04:00
Twinaphex 90580d2ae1 Merge pull request #7204 from alphanu1/master
Multiple fixes
2018-09-10 21:02:14 +02:00
alphanu1 f576266ace Update dispserv_x11.c 2018-09-10 19:36:57 +01:00
twinaphex e403b8fb1e C89 buildfixes 2018-09-10 20:35:30 +02:00
Twinaphex 7e4d0b3b41 Merge pull request #7205 from Themaister/master
Vulkan: Fix race condition in threaded mailbox emulation.
2018-09-10 20:01:20 +02:00
Themaister a1989afba9 Vulkan: Fix race condition in threaded mailbox emulation. 2018-09-10 19:35:13 +02:00
alphanu1 d32993411e Merge pull request #90 from alphanu1/alphanu1-patch-83
fixes
2018-09-10 18:25:44 +01:00
alphanu1 4328c075e8 fixes 2018-09-10 18:25:32 +01:00
alphanu1 c1e6de96a6 Merge pull request #89 from alphanu1/alphanu1-patch-82
re introduced snprintf
2018-09-10 18:13:10 +01:00
alphanu1 6c2d11b414 re introduced snprintf 2018-09-10 18:12:44 +01:00
alphanu1 d4e43b15c1 Merge pull request #88 from alphanu1/alphanu1-patch-81
xrandr spamming fix
2018-09-10 18:10:06 +01:00
alphanu1 7c05922d36 xrandr spamming fix
also re introduced snprintf
2018-09-10 18:09:42 +01:00
alphanu1 340515a9fa Update dispserv_x11.c 2018-09-10 18:08:49 +01:00
alphanu1 522d30d52d Merge pull request #86 from alphanu1/alphanu1-patch-79
xrandr spamming fix
2018-09-10 17:42:44 +01:00
alphanu1 d8c36e5bb8 xrandr spamming fix 2018-09-10 17:42:33 +01:00
alphanu1 7e7f95f2fe Merge pull request #85 from alphanu1/alphanu1-patch-78
Xrandr sapmming fix
2018-09-10 17:40:09 +01:00
alphanu1 30d7ef898d Xrandr sapmming fix 2018-09-10 17:39:52 +01:00
alphanu1 adb0542748 Merge pull request #84 from libretro/master
update
2018-09-10 17:35:58 +01:00
bparker06 d8b4d1fdff Update CHANGES.md 2018-09-10 10:15:06 -04:00
Raphael Zumer ab384b8afb Update msg_hash_ja.h (#7203)
* Fix some incorrect labels
* Word some labels more naturally
* Use RetroAchievements instead of レトロ実績
2018-09-10 10:14:14 -04:00
Twinaphex 523ee65125 Merge pull request #7201 from rzumer/master
Support headerless NES hashing in cheevos.c
2018-09-10 06:33:54 +02:00
Raphaël Zumer 3a0c450e70 Support headerless NES hashing in cheevos.c 2018-09-10 00:15:52 -04:00
Twinaphex d96117533c Merge pull request #7197 from endrift/master
camera: Fix v4l2 driver that broke years ago
2018-09-10 02:55:38 +02:00
Vicki Pfau 0576c516c4 camera: Fix v4l2 driver that broke years ago 2018-09-09 17:44:03 -07:00
Twinaphex 99debae18e Merge pull request #7193 from QuarkTheAwesome/master
WiiU: Add missing "#include <sys/iosupport.h>" to required files (buildfix)
2018-09-09 18:01:15 +02:00
alphanu1 1b4439413c Update dispserv_x11.c 2018-09-09 12:50:28 +01:00
alphanu1 557fe10bac Merge pull request #83 from alphanu1/alphanu1-patch-77
snprintf broke switching
2018-09-09 11:52:36 +01:00
alphanu1 cf4fff8d31 snprintf broke switching 2018-09-09 11:51:37 +01:00
Ash 751ad68c50 deps/libiosuhax: Fix missing "#include <sys/iosupport.h>" 2018-09-09 18:29:42 +10:00
Ash 9344391bfa WiiU: Fix missing "#include <sys/iosupport.h>" in sd_fat_devoptab 2018-09-09 18:22:48 +10:00
twinaphex bfdb75a30e Add ifdef 2018-09-09 01:28:09 +02:00
Twinaphex 4750342b33 Merge pull request #7192 from alphanu1/master
New porches and interlaced bug fix.
2018-09-08 23:57:23 +02:00
alphanu1 5632ac9f72 Merge pull request #82 from alphanu1/alphanu1-patch-76
New Porch Calc, Matched against an oscilloscope
2018-09-08 22:12:07 +01:00
alphanu1 5c6fc6db7e New Porch Calc, Matched against an oscilloscope 2018-09-08 22:11:31 +01:00
alphanu1 12e2fe9ca0 Merge pull request #81 from alphanu1/alphanu1-patch-75
Fix for crt interlaced bug
2018-09-08 22:09:52 +01:00
alphanu1 952b46f2c1 Fix for crt interlaced bug 2018-09-08 22:09:30 +01:00
alphanu1 719cb86bc0 Merge pull request #79 from libretro/master
Update
2018-09-08 21:12:29 +01:00
Twinaphex 6ea292f2f5 Merge pull request #7191 from Themaister/master
Vulkan: Maintenance fixes
2018-09-08 21:50:28 +02:00
bparker06 18e249e85e travis: install Qt for OSX 2018-09-08 12:04:05 -04:00
Themaister d338dac277 Only do mailbox emulation for fullscreen.
Too large impact on performance in Windowed mode.
2018-09-08 16:27:25 +02:00
Themaister d39f66a738 Emulate mailbox by wrapping acquire in a thread.
Needed on nVidia Windows since they don't support timeout == 0 ...
2018-09-08 15:56:49 +02:00
Themaister 157d1e7e63 Only use mailbox emulation on AMD. 2018-09-08 11:47:58 +02:00
Themaister 66c4f8fd35 Make sure to always clear out swapchain_fence_signalled. 2018-09-08 11:47:58 +02:00
Themaister 9ebac87638 Vulkan: Emulate mailbox on Windows. 2018-09-08 11:47:58 +02:00
Themaister af534f0fa8 Vulkan maintenance fixes.
- Use VkBuffer instead of linear VkImage for staging uploads.
  Not guaranteed to be supported, and desktop IHVs recommend using
  buffers.

- Fix validation error where swapchain recreation with reuse of the old
  VkSwapchainKHR does not create a fence properly, leading to validation
  error next time that swapchain index is observed.
2018-09-08 11:47:58 +02:00
Twinaphex 1155e11cfc Merge pull request #7189 from stuartcarnie/sgc-qt-embedded
chore: Call Makefile.apple to generate Qt moc files
2018-09-08 05:52:59 +02:00
Stuart Carnie 1de3aaadeb chore: Call Makefile.app to generate Qt moc files 2018-09-07 20:32:57 -07:00
twinaphex 61d56e07fa Don't excessively log 2018-09-08 03:15:32 +02:00
Twinaphex fb4f8ff550 Merge pull request #7188 from stuartcarnie/sgc-qt-embedded
feat(macOS): Embed Qt frameworks and frameworks to @executable_path
2018-09-08 02:49:42 +02:00
Stuart Carnie 4d7fe0e96c feat(macOS): Embed Qt frameworks and frameworks to @executable_path
* note that install_name_tool is used to update the frameworks via
  a post-build script
2018-09-07 17:38:46 -07:00
twinaphex df059c585f Implement RETRO_ENVIRONMENT_GET_FASTFORWARDING 2018-09-08 02:19:05 +02:00
twinaphex 7c2da36af9 Prevent warning 2018-09-08 02:11:18 +02:00
Twinaphex 27edbb58e3 Merge pull request #7187 from RetroSven/master
implement libretro private def to allow cores to tell RA to save states in background
2018-09-08 01:41:20 +02:00
Sven b4081d9347 implement libretro private def to allow cores to tell RA to save states in background 2018-09-07 19:09:56 -04:00
Twinaphex 3e27a504ed Merge pull request #7185 from stuartcarnie/sgc-macos-qt
feat(macOS): Initial Desktop UI (Qt) support
2018-09-06 05:37:55 +02:00
Stuart Carnie 428f895b6f feat(macOS): Initial Desktop UI (Qt) support
* Adds new RetroArchQT build target to RetroArch_Metal.xcodeproj

Prerequisites:

* Install Qt Frameworks

    $ brew install qt

* Build `moc` files using

    $ make -f Makefile.apple HAVE_QT=1 Q=/usr/local/opt/qt/bin/moc generate

Limitations:

* Qt frameworks are not embedded in bundle, therefore Qt must be
  installed via the `brew` command
2018-09-05 20:10:54 -07:00
Brad Parker c60fdf0b2e Qt: fix duplicate function name with griffin 2018-09-05 00:07:24 -04:00
Twinaphex 5d529f4ce4 Merge pull request #7178 from RobLoach/config
Update config entries pointer to the new beginning of the list
2018-09-04 14:30:32 +02:00
Brad Parker a48cc2f9b5 travis: unzip quietly so build log is not truncated 2018-09-03 20:00:03 -04:00
Brad Parker c64a75c58a travis: clean up OSX Metal image and add assets 2018-09-03 19:50:04 -04:00
Rob Loach 9da261c6d9 Update config entries pointer to the new beginning of the list after sorting 2018-09-03 13:31:46 -04:00
Brad Parker 9214f6079f travis: go to correct folder to deploy Metal 2018-09-03 09:37:59 -04:00
Brad Parker 511dcb0d56 travis: build Metal with libretro-super instead 2018-09-03 09:07:04 -04:00
Brad Parker b2c704862a travis: deploy OSX Metal build 2018-09-02 21:57:06 -04:00
Twinaphex c57e259fa7 Update CHANGES.md 2018-09-03 03:11:23 +02:00
Twinaphex 4409c61730 Update CHANGES.md 2018-09-03 03:10:36 +02:00
Twinaphex e224d1cd04 Update CHANGES.md 2018-09-03 03:10:08 +02:00
Twinaphex 96d27b6ac6 Update CHANGES.md 2018-09-03 03:09:37 +02:00
Twinaphex 9c53dc3797 Merge pull request #7176 from stuartcarnie/sgc-metal
Metal: Add support for screen shots
2018-09-03 03:00:36 +02:00
Stuart Carnie 99f497de85 feat(Metal): Add support for screen shots 2018-09-02 17:55:02 -07:00
Stuart Carnie 9d22aacaa7 refactor: Add vertex buffer struct to ShaderTypes and remove global 2018-09-02 17:53:18 -07:00
Twinaphex c41f331e2a Merge pull request #7175 from stuartcarnie/sgc-revert-config
Revert "fix(gfx): Move enum to end to avoid breaking existing config
2018-09-02 22:05:47 +02:00
Stuart Carnie 8a63ace201 Revert "fix(gfx): Move enum to end to avoid breaking existing configurations"
This reverts commit 93b79fa
2018-09-02 13:03:16 -07:00
Twinaphex 6463f7005b Merge pull request #7174 from stuartcarnie/sgc-metal
Fix crashes for metal; buffer overflow in xmb; Metal fullscreen issue
2018-09-02 21:55:10 +02:00
Stuart Carnie f1ad1ff444 fix(Metal): Fix invalid selector
Removed selector logic and wrapped in HAVE_METAL, given this is only
called when Metal is enabled.
2018-09-02 12:51:34 -07:00
Stuart Carnie 611e484633 fix(xmb): Fix buffer overflow 2018-09-02 12:49:44 -07:00
Twinaphex 4d12eaf685 Merge pull request #7173 from hiddenasbestos/oem102
Support for "OEM-102" key (usually '\' on Euro keyboards)
2018-09-02 19:40:31 +02:00
David Walters b592f254b9 Support for "OEM-102" key (usually '\' on Euro keyboards) 2018-09-02 18:24:51 +01:00
Twinaphex d4cb24f8d1 Merge pull request #7148 from alfrix/master
Add neoactive and retroactive to menu icons
2018-09-02 03:42:03 +02:00
Brad Parker a86454d30c Qt: fix file browser downloads button not scrolling correctly on first click 2018-09-01 21:25:07 -04:00
Stuart Carnie eadc3f4a91 fix(Metal): Fix SIGFAULT if any attribute is 0 2018-09-01 16:13:23 -07:00
Stuart Carnie 6b7572d166 fix(macOS): Fix stack overflow when raising Metal shader load event 2018-09-01 16:12:43 -07:00
Twinaphex 4f4b1c182f Merge pull request #7167 from Themaister/master
Fix glslang_format LUT.
2018-09-01 22:51:29 +02:00
Themaister 1d7dfc5f47 Fix glslang_format LUT.
Was logging wrong format names.
2018-09-01 22:46:47 +02:00
Stuart Carnie 802697fdec fix(Metal): Use textures for pixel conversion 2018-09-01 11:58:37 -07:00
Stuart Carnie 577d81071e fix(Metal): Cleanup shader logging messages 2018-09-01 11:58:37 -07:00
Stuart Carnie 1264e9c533 fix(Metal): Use ifdef syntax; add correct default for Metal build 2018-09-01 11:58:37 -07:00
Stuart Carnie 93b79fac90 fix(gfx): Move enum to end to avoid breaking existing configurations
* `aspect_ratio_index` relies on the ordinal values not changing
2018-09-01 11:58:37 -07:00
Twinaphex 4457bad631 Merge pull request #7165 from kwyxz/haiku-mbedtls-fix
mbedtls in 1.7.4 broke Haiku build
2018-09-01 13:58:09 +02:00
Benjamin FRANCOIS c723f13753 This allows building on Haiku after disabling Discord 2018-09-01 07:25:06 +00:00
Twinaphex 4e0c2314d9 Define HAVE_SSL for OSX 2018-09-01 04:22:57 +02:00
twinaphex 34e295ec51 Add net_socket_ssl.cto griffin 2018-09-01 04:20:23 +02:00
twinaphex 2fb8831dcc Uniquely name functions 2018-09-01 04:18:01 +02:00
twinaphex 31df00d52a Uniquely name functions 2018-09-01 04:14:36 +02:00
twinaphex fb047e4622 Uniquely name functions 2018-09-01 04:12:58 +02:00
twinaphex 18203f4d30 Cleanups 2018-09-01 04:11:16 +02:00
twinaphex 6d29cde453 (SSL) Name functions uniquely 2018-09-01 04:09:59 +02:00
twinaphex e83504002d (SSL) Make these functions unique 2018-09-01 04:08:27 +02:00
Twinaphex 93af9baf48 Remove warning 2018-09-01 04:04:15 +02:00
twinaphex 23eb1e981a Remove HAVE_STRIPES from OSX build 2018-09-01 04:01:03 +02:00
twinaphex d5fa379aa8 Update header 2018-09-01 03:54:47 +02:00
Twinaphex 1ad6291c79 Merge pull request #7163 from Tatsuya79/patch-5
fix task_save.c
2018-09-01 01:53:09 +02:00
Tatsuya79 dd9db41403 fix task_save.c 2018-09-01 01:50:30 +02:00
Twinaphex 09284dc6ce Merge pull request #7162 from Tatsuya79/patch-4
revert #7156
2018-09-01 01:46:41 +02:00
Tatsuya79 64459bda3a revert #7156
revert https://github.com/libretro/RetroArch/pull/7156
2018-09-01 01:41:21 +02:00
twinaphex 64cc28a487 Update 2018-09-01 01:14:26 +02:00
twinaphex c0c88173a0 (CocoaTouch) Fix some function callback signatures 2018-09-01 01:07:14 +02:00
Twinaphex 65535a1259 Cleanups 2018-09-01 01:03:58 +02:00
twinaphex 10f374182f Revert "Change these ifdefs"
This reverts commit 245f265098.
2018-08-31 21:49:16 +02:00
twinaphex 245f265098 Change these ifdefs 2018-08-31 21:48:58 +02:00
twinaphex 85f093e042 Change these to numbers 2018-08-31 21:25:33 +02:00
neville 8c3479f850 (OSX PowerPC) PowerPC Fixed 2018-08-31 21:22:37 +02:00
bparker06 ad15f76ff5 travis: add OSX Metal build 2018-08-31 13:49:44 -04:00
neville bd43682341 Use dynamic lookup code path 2018-08-31 19:37:40 +02:00
Twinaphex 832bf6d6e8 Get rid of this compile-time ifdef 2018-08-31 19:29:11 +02:00
twinaphex a58511ec00 Revert "Compatibility fixes for OSX PPC"
This reverts commit d7899c51aa.
2018-08-31 19:20:10 +02:00
twinaphex 70f9abe99f Revert "Add conditionals to maintain backwards compatibility with OSX 10.5"
This reverts commit 1222192afb.
2018-08-31 19:20:03 +02:00
twinaphex 0b069c4ee3 Revert "Use constant values instead of MAC_OS_X_VERSION_ - might not be available on earlier OSX versions/xcode"
This reverts commit f35b578c42.
2018-08-31 19:19:56 +02:00
twinaphex 1265d7546c Revert "Start using raw constants for OSX version detection"
This reverts commit ab34a70873.
2018-08-31 19:19:42 +02:00
twinaphex c7af7ae00d Revert "Add conditionals for OSX 10.6 and higher"
This reverts commit 7f7f23d08b.
2018-08-31 19:19:35 +02:00
twinaphex 91145e02c6 Revert "OSX PowerPC - gets it compiling and linking again but doesn't work -"
This reverts commit f16ec700a9.
2018-08-31 19:19:27 +02:00
Twinaphex e2a650cb26 Remove unused variable 2018-08-31 19:02:47 +02:00
Twinaphex 4a30ec5623 Update CHANGES.md 2018-08-31 18:44:24 +02:00
Twinaphex b86164cccb Merge pull request #7159 from bparker06/qt_filterarchives
Qt: add option to filter extensions inside archives when adding to a playlist
2018-08-31 17:50:59 +02:00
Brad Parker 230787808c Qt: fix playlist title when adding a folder with one item 2018-08-31 09:16:45 -04:00
Brad Parker faaf84aef3 Qt: do not show right-click menu for file browser contents 2018-08-31 09:05:22 -04:00
Twinaphex 41f7de72cd Merge pull request #7157 from RobLoach/configure
libretro-common: Restore libretro-common/audio/dsp_filters/configure
2018-08-31 05:48:47 +02:00
Brad Parker 30fb23ccbe Qt: add option to filter extensions inside archives when adding to a playlist 2018-08-30 23:06:34 -04:00
Rob Loach c7e6eda438 libretro-common: Restore libretro-common/audio/dsp_filters/configure 2018-08-30 22:23:05 -04:00
twinaphex 7c22f265b8 Update libretro-common 2018-08-31 02:28:20 +02:00
Twinaphex 02e23be127 Merge pull request #7156 from RetroSven/master
push save state into background for cores that need the emulator to be running during serialization
2018-08-30 18:15:29 +02:00
Sven 75abd1f36e Merge remote-tracking branch 'upstream/master' 2018-08-30 12:07:41 -04:00
neville f16ec700a9 OSX PowerPC - gets it compiling and linking again but doesn't work -
left a TODO/FIXME for aussiebloke
2018-08-30 17:45:22 +02:00
twinaphex 7f7f23d08b Add conditionals for OSX 10.6 and higher 2018-08-30 17:38:43 +02:00
Sven b8ab6c1e74 push save state into background for cores that need the emulator to be running to correctly save states 2018-08-30 11:21:31 -04:00
twinaphex ab34a70873 Start using raw constants for OSX version detection 2018-08-30 16:35:44 +02:00
neville f35b578c42 Use constant values instead of MAC_OS_X_VERSION_ - might not be available on earlier OSX versions/xcode 2018-08-30 16:29:58 +02:00
twinaphex 1222192afb Add conditionals to maintain backwards compatibility with OSX 10.5 2018-08-30 16:22:02 +02:00
neville d7899c51aa Compatibility fixes for OSX PPC 2018-08-30 16:18:51 +02:00
neville 5af0e58288 - Unset BOM
- remove non-latin characters - won't compile on OSX PPC otherwise
2018-08-30 16:05:51 +02:00
twinaphex dac4034954 Add PPC ifdefs; kIOHIDUniqueKey is not available on OSX 10.5 2018-08-30 15:56:02 +02:00
twinaphex b1643f9275 (AArch64) Needs to be set to SDK level 26 for Google Play 2018-08-30 01:47:15 +02:00
Brad Parker 2e8361970b Qt: buildfix for older Qt 2018-08-29 18:41:05 -04:00
twinaphex 9d43f7f036 Fix French 2018-08-29 21:25:47 +02:00
Twinaphex a157f2eedd Merge pull request #7152 from bparker06/qt_coreoptions
Qt: initial core options dialog
2018-08-29 17:43:31 +02:00
Brad Parker 5a0017a23e Update CHANGES.md 2018-08-29 11:42:14 -04:00
Brad Parker 56c9a37e5a Qt: initial core options dialog 2018-08-29 11:34:36 -04:00
Brad Parker 95ad8798ee Qt: scrub thumbnail titles according to No-Intro before downloading, fixes #7149 2018-08-29 00:42:34 -04:00
Brad Parker c746115bbd Qt: keep trying to download remaining thumbnails if any fail to open for writing (probably just illegal characters in filename) 2018-08-29 00:25:19 -04:00
twinaphex 7234544669 Update version 2018-08-29 01:48:37 +02:00
Alfrix 107cc364b5 Add neoactive and retroactive to menu icons 2018-08-28 19:43:02 -03:00
Twinaphex 945f57e3b4 Merge pull request #7147 from alfrix/master
Bind sublabel cheat apply after load
2018-08-28 22:13:06 +02:00
Alfrix 2d9f00f358 Bind sublabel cheat apply after load 2018-08-28 16:37:48 -03:00
Twinaphex d160775263 Merge pull request #7137 from alfrix/xmb_exp
Fallback to a default icon in if there is no playlist icon
2018-08-28 19:51:47 +02:00
Twinaphex 8f043d717c Merge pull request #7145 from alfrix/joselagem
Rebase and fix #6961
2018-08-28 19:39:31 +02:00
Joselagem 613ff650d0 Update languages files US and ES
Update languages files US and ES
Actualización de los archivos de idioma US y ES
2018-08-28 14:34:13 -03:00
Brad Parker 3010ef8775 Qt: do not create a new playlist if a name was not specified 2018-08-28 11:34:08 -04:00
Brad Parker 44eb97206a Qt: fix canceling of thumbnail downloads, use QDir comparison instead of string-based to honor case-insensitivity on Windows 2018-08-28 09:01:25 -04:00
Twinaphex 96e14c0b61 Merge pull request #7139 from bparker06/qt_playlist_thumbnail
Qt: add right-click for playlists to download thumbnails for the current entries
2018-08-28 05:31:51 +02:00
Brad Parker d8913d5d3a Qt: add right-click for playlists to download thumbnails for the current entries 2018-08-27 23:29:44 -04:00
Twinaphex 0c6eea5030 Merge pull request #7138 from altiereslima/master
Update brazilian portuguese translation
2018-08-28 00:19:54 +02:00
Brad Parker 38f3d06d08 Qt: use C locale for numbers, otherwise slang shaders can break 2018-08-27 17:56:53 -04:00
altiereslima 0116f675b9 Update brazilian portuguese translation 2018-08-27 17:21:56 -03:00
Twinaphex fa110c5bb2 Merge pull request #7124 from orbea/clang
Silence -Wunknown-warning-option warnings with clang.
2018-08-27 20:49:02 +02:00
Brad Parker 23836bfba9 use_thread option for screenshot was backwards 2018-08-27 13:38:43 -04:00
Twinaphex ea87bb5a1d Merge pull request #7122 from orbea/vulkan
Fix segfaults when starting vulkan without a working vulkan driver.
2018-08-27 18:59:00 +02:00
twinaphex 8a5d092e5b (dispserv_x11.c) Make variable bigger to avoid all the warnings and use snprintf 2018-08-27 16:09:12 +02:00
Alfrix 6d1e04dd9c Cleanup 2018-08-27 10:45:07 -03:00
Alfrix aa0889ec29 Fallback to default icon in custom playlists 2018-08-27 10:43:31 -03:00
Twinaphex 503b42d161 Merge pull request #7134 from Dwedit/runahead-input-fix
Deterministic input for RunAhead, guaranteed to match the last polled input
2018-08-27 13:52:36 +02:00
Twinaphex d2d9989ef1 Merge pull request #7135 from bparker06/qt_thumbnailpack
Qt: add right-click option for playlists to download their thumbnail packs
2018-08-27 13:51:57 +02:00
Brad Parker 21f99b9965 Qt: add right-click for playlists to download their thumbnail packs 2018-08-26 23:24:43 -04:00
Brad Parker 98fadf9b1f Qt: remove partially downloaded thumbnail if transfer is canceled 2018-08-26 23:24:22 -04:00
Twinaphex 4a951cb369 Merge pull request #7133 from alfrix/xmb_exp
Fix themes without menu icons
2018-08-27 01:04:51 +02:00
Alfrix 461dbf39ba Fix themes without menu icons 2018-08-26 20:00:36 -03:00
Brad Parker 32345e37f8 Qt: OPENSSL_VERSION_AT_LEAST was reverted in openssl git because it is in fact broken 2018-08-26 18:14:08 -04:00
Brad Parker 9638005332 Qt: add UI option to set startup playlist, fixes #7103 2018-08-26 17:17:45 -04:00
Brad Parker 12f1d003bb Qt: openssl 1.1.0 broke their ABI 2018-08-26 16:04:01 -04:00
Brad Parker 1d6a69d198 Qt: remove partially downloaded files on failure 2018-08-26 12:04:18 -04:00
Brad Parker 49e5fcd0cc Qt: only use openssl if we have it 2018-08-26 10:44:55 -04:00
Brad Parker 7731db9ed8 Qt: link to openssl so Qt will have it for later 2018-08-26 10:40:33 -04:00
Brad Parker 78f5aba04b Qt: fix filename used for thumbnail download 2018-08-26 10:40:08 -04:00
Dwedit 821462409e Deterministic input for RunAhead, guaranteed to match the last polled input. 2018-08-26 00:22:19 -05:00
Twinaphex adb72755e1 Merge pull request #7127 from altiereslima/master
Update brazilian portuguese translation
2018-08-25 21:52:57 +02:00
Twinaphex 6093a56919 Merge pull request #7123 from bparker06/qt_thumbnail
Qt: add right-click option to download thumbnail for playlist entries
2018-08-25 21:52:44 +02:00
altiereslima 8c7526d8ef como sempre... 2018-08-25 16:38:26 -03:00
altiereslima 3d056bc8c4 Update brazilian portuguese translation 2018-08-25 16:24:17 -03:00
orbea 3c6e42ccf6 Silence -Wunknown-warning-option warnings with clang.
When building CXX code with clang it will print many warnings.

warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]

However removing this flag does not introduce any warnings so it
should be safe to remove.
2018-08-25 06:37:33 -07:00
Brad Parker e9e424ec82 Qt: add right-click option to download thumbnail for playlist entries 2018-08-25 01:00:18 -04:00
orbea 260ce526c2 Fix segfaults when starting vulkan without a working vulkan driver.
RetroArch will crash in several places when running vulkan in an
environment that does not have working vulkan drivers.

This should guard against those crashes and allow RetroArch to fail
safely in those cases.
2018-08-24 19:36:03 -07:00
Twinaphex a6d5931412 Merge pull request #7120 from alfrix/xmb_exp
Add automatic and systematic to menu icons
2018-08-25 00:22:37 +02:00
Twinaphex 07509a8ec8 Merge pull request #7121 from orbea/video_driver
Default to gl instead of vulkan.
2018-08-25 00:22:18 +02:00
orbea d8ea30881d Default to gl instead of vulkan.
If the video_driver is set incorrectly it will default to vulkan
instead of gl. However its possible to have RetroArch built with
vulkan even with no working vulkan drivers and this will cause a
segfault.

Defaulting to gl again should be a safer default which should crash
for fewer users.

Fixes https://github.com/libretro/RetroArch/issues/5568.
2018-08-24 13:55:09 -07:00
Alfrix 8dfeaba30b Add automatic and systematic to menu themes 2018-08-24 16:10:19 -03:00
Twinaphex b095511e97 Merge pull request #7117 from alfrix/xmb_exp
Add Automatic theme
2018-08-23 21:57:52 +02:00
Alfrix c39ce0e04b Add Automatic theme
It has been in the assets folder a long time by now
2018-08-23 16:41:07 -03:00
Twinaphex f357526a57 Merge pull request #7116 from altiereslima/master
Update brazilian portuguese translation
2018-08-23 18:46:33 +02:00
altiereslima 6e9a8a9dd9 fix 2018-08-23 13:23:03 -03:00
altiereslima 49b785b9dc Update brazilian portuguese translation
Added some missing strings.
Aligned with msg_hash_us.h
2018-08-23 13:03:36 -03:00
Brad Parker 6464003d5f Qt: use id instead of array index for shader params, fix empty window on vulkan 2018-08-23 11:42:31 -04:00
Twinaphex ea35fe85f6 Merge pull request #7114 from hyarsan/master
Make the Show Desktop Menu sublabel sound better
2018-08-23 15:38:32 +02:00
Yarsan Hoessain 27147226a0 Make the Show Desktop Menu sublabel sound better 2018-08-23 15:27:09 +02:00
Brad Parker 88cecc521a Qt: hopefully parameters are fixed now part 2 2018-08-22 22:51:50 -04:00
Twinaphex da3888dd68 Merge pull request #7111 from alfrix/xmb_exp
Add Retrosystem to the support list of menu icons
2018-08-23 02:19:59 +02:00
Alfrix fb15edebc3 Add Retrosystem to the support list of menu icons 2018-08-22 19:52:27 -03:00
Twinaphex 376dd85715 Merge pull request #7110 from alfrix/xmb_exp
Change start core icon
2018-08-22 22:46:22 +02:00
Alfrix 947113d007 Change start core icon 2018-08-22 16:31:02 -03:00
Twinaphex c93cf0f362 Merge pull request #7108 from alfrix/xmb_exp
Don't show the pipeline option it was disabled in the build
2018-08-22 17:59:41 +02:00
Alfrix b118e45d49 Don't show the pipeline option it was disabled in the build 2018-08-22 12:51:59 -03:00
Brad Parker 8ff257290c Qt: hopefully parameters are fixed now 2018-08-21 21:20:25 -04:00
Brad Parker 67653ba5f0 Qt: try to fix wrong parameter being set in a different way 2018-08-21 21:01:56 -04:00
Brad Parker 0b9adb3938 Qt: fix pass parameters switched around on context reset if move up/down buttons were used 2018-08-21 19:16:18 -04:00
Brad Parker 498ed160bb Qt: fix shader passes disappearing on context reset 2018-08-21 18:25:25 -04:00
Twinaphex 0300e8a544 Merge pull request #7107 from TheMrIron2/master
PSP: Slightly more aggressive optimisation
2018-08-22 00:20:01 +02:00
Twinaphex 9740ede4da Merge pull request #7089 from winneon/discord_improvements
wip - discord: added new discord-rpc statuses & updated discord-rpc calls to stay more consistent
2018-08-21 22:48:59 +02:00
TheMrIron2 96023ea469 PSP: Slightly more aggressive optimisation
- O3 flag replacing O2 for higher level of optimisation. Potentially unstable, but works for Wii U RetroArch along with other PSP emulators. I don't see why not.
- fsingle-precision-constant to simplify some operations. Should be safe while being more performant due to using less memory traffic and may lessen load on the CPU because of the simplification.
2018-08-21 20:48:55 +00:00
Jesse Bryan 5bda0b3a61 general: fixed the merge conflict 2018-08-21 14:57:59 -05:00
Twinaphex dfe0a81206 Merge pull request #7106 from alfrix/spanish
Update Spanish
2018-08-21 20:35:13 +02:00
Alfrix fad5569d99 Cleanup styling 2018-08-21 15:30:02 -03:00
Alfrix 052424ffd2 Update Spanish 2018-08-21 15:30:02 -03:00
Twinaphex 8e76145278 Merge pull request #7105 from alfrix/xmb_exp
Change Reset core association icon to undo
2018-08-21 19:43:44 +02:00
Brad Parker 06daa1f9ef Qt: start on history playlist by default, UI option to change it will come later 2018-08-21 13:39:22 -04:00
Twinaphex 94ec9233f6 Merge pull request #7104 from Tatsuya79/patch-3
rename vrr runloop option
2018-08-21 19:19:46 +02:00
Alfrix 8984162e0f Change Reset core association icon to undo 2018-08-21 14:19:35 -03:00
Tatsuya79 1c8f2beca3 update vrr runloop help 2018-08-21 18:47:06 +02:00
Tatsuya79 45bcd62f34 rename vrr runloop option 2018-08-21 18:45:22 +02:00
Brad Parker cc16c45069 Qt: keep size of shader window when reloading if user has changed it 2018-08-21 11:14:42 -04:00
Jesse Bryan f6a0b09e7d general: renamed rpcname to systemid 2018-08-21 09:41:16 -05:00
Brad Parker 281966a14c Qt: make sure video_shader exists 2018-08-21 10:15:00 -04:00
Jesse Bryan c276f9349a discord: remove hardcoded values and use new attribute 2018-08-20 20:55:44 -05:00
Brad Parker 6a4584e301 Update CHANGES.md 2018-08-20 21:49:50 -04:00
Brad Parker ff09503ac1 Qt: add right-click options to reset shader parameters back to defaults 2018-08-20 21:48:59 -04:00
Brad Parker 4d09ddde1c Qt: limit shader preset/pass selection to the appropriate extensions 2018-08-20 20:26:50 -04:00
Brad Parker e9c68597ff Qt: try to work around layout crashing issues on Windows 2018-08-20 18:47:18 -04:00
Jesse Bryan ea561c8dfe discord: see the previous commit message 2018-08-20 14:16:52 -05:00
Jesse Bryan f507905345 discord: fixed the corename comparison statement 2018-08-20 14:14:35 -05:00
Jesse Bryan bb451d59e8 discord: hardcoded non-essential cores into discord.c 2018-08-20 14:03:06 -05:00
Brad Parker 0ed43eb908 Qt: fix tool button handling on shader window 2018-08-20 12:57:05 -04:00
Jesse Bryan 44180e55b1 Merge branch 'master' of https://github.com/libretro/RetroArch into discord_improvements 2018-08-20 08:30:57 -05:00
Jesse Bryan 7568d35086 discord: replace forward slashes with underscores 2018-08-20 08:30:54 -05:00
Brad Parker 3ad54bc9ca Qt: revert paintEvent changes, only keep one for ShaderParamsDialog 2018-08-19 19:27:06 -04:00
Brad Parker 8380ad61f9 Qt: add missing paintEvent overrides for stylesheet correctness 2018-08-19 18:54:13 -04:00
Brad Parker b60df44b59 Qt: add load/save/remove/apply buttons to top of shaders dialog 2018-08-19 16:26:23 -04:00
Twinaphex d9f7afbf77 Merge pull request #7098 from RobLoach/pkg-mame2003plus
ctr: Add MAME 2003 Plus
2018-08-19 18:55:09 +02:00
Rob Loach 5ba4103f6e pkg: Add MAME 2003 Plus 2018-08-19 12:49:47 -04:00
Brad Parker d571bfaf17 Qt: use native path separators for file browser content 2018-08-19 11:46:33 -04:00
Brad Parker f6dc3345e9 Qt: use native path separators for folder scan from file browser, fixes #7084 2018-08-19 11:05:25 -04:00
twinaphex 821ffc9962 Clang scan-build error fix 2018-08-19 16:13:13 +02:00
Twinaphex b0f21e7c2e Merge pull request #7097 from Tatsuya79/patch-2
[Desktop Menu] update dark theme
2018-08-19 16:03:23 +02:00
Tatsuya79 9e9fb5803e Update ui_qt_themes.h 2018-08-19 16:00:19 +02:00
Tatsuya79 c051bae1bd Update ui_qt_themes.h 2018-08-19 15:56:19 +02:00
Twinaphex e6576c8239 Merge pull request #7088 from alfrix/xmb_exp
XMB add an option to show desktop ui aka WIMP
2018-08-19 15:55:38 +02:00
Tatsuya79 a309400305 name gridLayoutWidget 2018-08-19 15:54:56 +02:00
Twinaphex e35623d492 Merge pull request #7093 from bparker06/max_frames_ss
command-line parameters for screenshotting after max_frames is reached
2018-08-19 06:23:31 +02:00
Brad Parker b1dde87ce5 add --max-frames-ss and --max-frames-ss-path parameters for taking a screenshot after max_frames is reached 2018-08-18 23:09:40 -04:00
Brad Parker b0146abd11 add fullpath and use_thread parameters to take_screenshot() 2018-08-18 23:08:55 -04:00
Jesse Bryan 7755c9ae55 discord: removed the icon warning and uncommented the necessary line 2018-08-18 21:21:56 -05:00
Jesse Bryan cdbe19e213 discord: fix merge conflicts 2018-08-18 21:16:12 -05:00
alfrix e0d99d7da2 Change UI to menu 2018-08-18 22:22:40 -03:00
Brad Parker c00fd41b93 Qt: style fixup for filter/scale/move shader options 2018-08-18 19:07:58 -04:00
Brad Parker 380cd7ac53 Qt: add move up/down button for shader passes 2018-08-18 18:03:51 -04:00
alfrix 70d0458180 Add sublabel for 'Show desktop ui' 2018-08-18 18:16:19 -03:00
Twinaphex ea946b5c97 Merge pull request #7092 from Dwedit/attach_console
Attach console before displaying Version information, Help, or Features.
2018-08-18 21:06:15 +02:00
alfrix b915fd095d Fix focus for windows platforms (Tatsuya) 2018-08-18 15:14:41 -03:00
alfrix d2e4832ebe QT fix focus (bparker) 2018-08-18 15:10:41 -03:00
alfrix 105fba6abe XMB add an option to show desktop ui aka WIMP 2018-08-18 15:10:40 -03:00
Dwedit f01894ebe4 Attach console before displaying Version information, Help, or Features. 2018-08-18 12:43:49 -05:00
Brad Parker 894d460821 Qt: add "current shader" prefix to window title 2018-08-18 13:04:53 -04:00
Brad Parker 0a9891def1 Qt: fix checkbox setting of shader parameters 2018-08-18 13:00:39 -04:00
Brad Parker e78f2f63f7 Qt: fix changing of double spinbox values 2018-08-18 12:39:28 -04:00
Brad Parker e4834250b9 Qt: set shader dialog title to current preset/shader name 2018-08-18 12:39:17 -04:00
twinaphex 90efa02718 Fix more scan-build issues 2018-08-18 16:16:17 +02:00
Twinaphex f07b8b1965 Merge pull request #7090 from Dwedit/fix_missing_content
Fix console mode loading core without content
2018-08-18 16:06:41 +02:00
twinaphex 646e64c28c Fix some clang scan-build warnings/errors 2018-08-18 15:56:44 +02:00
Dwedit 0e34c12d5c Fixed bug that let Retroarch proceed to retro_run without loading content
Removed unlocalized and redundant error message
2018-08-18 08:40:19 -05:00
Jesse Bryan ea6541b90f discord: remove test rpc client ID 2018-08-18 02:17:08 -05:00
Jesse Bryan fd7d8d9424 Merge branch 'master' of https://github.com/libretro/RetroArch into discord_improvements 2018-08-18 02:12:56 -05:00
Jesse Bryan a0cf6b6b5e discord: added additional discord events and other improvements 2018-08-18 02:12:51 -05:00
Brad Parker 849792dc2c fix memory leaks 2018-08-18 01:15:50 -04:00
Brad Parker dfd85125ad fix null deref 2018-08-18 01:10:05 -04:00
Brad Parker c59cbfc4e8 fix memory leaks 2018-08-18 01:07:57 -04:00
Brad Parker 077ef86bab fix null pointer dereferences 2018-08-18 01:07:51 -04:00
Brad Parker 2f87f669f1 fix null dereference (but scan-build still warns with "Assigned value is garbage or undefined") 2018-08-18 01:00:53 -04:00
Brad Parker 23d7fbcaf3 fix memory leaks 2018-08-18 00:56:10 -04:00
Brad Parker fbe08aa0c5 fix double free 2018-08-18 00:51:07 -04:00
Brad Parker 1d4cb967f0 fix scan-build error "branch condition evaluates to garbage" 2018-08-18 00:48:40 -04:00
Brad Parker 16459bfa91 Qt: add filter/scale to shader window 2018-08-18 00:33:59 -04:00
Brad Parker b76f3abfbc android: use current package name for external storage 2018-08-17 20:38:56 -04:00
Brad Parker 819e930b89 Qt: move drag&drop context menu into FileDropWidget source 2018-08-17 11:57:47 -04:00
twinaphex 566d0fc0d9 Remove this 2018-08-17 17:43:28 +02:00
twinaphex ae0d9fd60d (Wayland) Buildfixes 2018-08-17 17:42:14 +02:00
Brad Parker 1fba7df859 use existing src folder for android64 instead of duplicating it 2018-08-17 09:40:13 -04:00
twinaphex 7250181319 Add some __WINRT__ ifdefs 2018-08-17 14:51:27 +02:00
Brad Parker e2ff7478ca don't return uninitialized data 2018-08-17 07:49:25 -04:00
Brad Parker f130b261f4 Qt: Linux buildfix 2018-08-16 23:14:52 -04:00
Brad Parker 1966b04832 Qt: windows buildfix 2018-08-16 22:58:35 -04:00
Brad Parker 648705154e Qt: split functions into separate files 2018-08-16 22:48:31 -04:00
Brad Parker 6ef3567ea5 Qt: reset shader params window when passes are set to 0 2018-08-16 22:48:07 -04:00
twinaphex cfd15687d1 Buildfix 2018-08-16 22:01:24 +02:00
twinaphex f9e8737476 Remove libui - we don't need it anymore now that we have the Qt desktop
UI
2018-08-16 21:34:20 +02:00
twinaphex 35991f5feb Don't use == NULL 2018-08-16 21:32:14 +02:00
twinaphex b28af7734f MSVC 2012 solution works now 2018-08-16 21:18:37 +02:00
twinaphex 4a54826d9b Remove unused variable 2018-08-16 21:14:56 +02:00
twinaphex a1d5b0fd03 Update MSVC 2012 solution 2018-08-16 20:49:31 +02:00
Brad Parker 12539f310d use strl functions 2018-08-16 13:51:44 -04:00
twinaphex d3c6fc1601 Add initial MSVC 2012 solution 2018-08-16 19:29:31 +02:00
Brad Parker 9221e4e845 Discord integration requires a C++ linker 2018-08-16 13:10:22 -04:00
twinaphex 220c84c7a3 Fix strlcat size arguments 2018-08-16 18:53:19 +02:00
twinaphex 6cd6bf993f Fix strlcpy call 2018-08-16 18:30:53 +02:00
twinaphex 0175effb00 Revert "(Menu) change strncpy to strlcpy"
This reverts commit ba67623961.
2018-08-16 16:40:28 +02:00
Brad Parker f8521a5580 Qt: use string literal for themes 2018-08-16 10:20:37 -04:00
Brad Parker 34e48bcbc9 Update AUTHORS.h 2018-08-16 09:29:39 -04:00
Twinaphex e43462cc3e Merge pull request #7048 from alfrix/xmb_exp
(Menu) Add more XMB Icons
2018-08-16 14:45:10 +02:00
Brad Parker 18a6467d4f Qt: update success is not an error 2018-08-16 08:42:40 -04:00
Twinaphex f37898dd01 Merge pull request #7079 from Tatsuya79/patch-1
Desktop UI dark theme updates
2018-08-16 13:31:19 +02:00
Tatsuya79 f750229693 Desktop UI dark theme updates 2018-08-16 13:12:34 +02:00
twinaphex 6001c7f030 (MSVC 2008) Add HAVE_OVERLAY 2018-08-16 11:53:46 +02:00
twinaphex c699889f0c Update MSVC2008 2018-08-16 11:50:51 +02:00
twinaphex 145d4d66f5 Update MSVC 2008 solution 2018-08-16 11:44:51 +02:00
twinaphex d2de72bfb7 Update MSVC 2008 solution 2018-08-16 11:18:56 +02:00
twinaphex a8826c766b (MSVC2008) Update solution 2018-08-16 11:06:22 +02:00
twinaphex fd532414f0 (DSound) Add fallback when we are not building with HAVE_THREADS support 2018-08-16 10:57:33 +02:00
twinaphex 3f4cd71aa3 Cleanups 2018-08-16 10:42:26 +02:00
twinaphex de8c98fdef Remove ID_M_SHADER_PARAMETERS 2018-08-16 10:18:56 +02:00
twinaphex 3fb039f9f0 Update menu_display_metal.m 2018-08-16 10:18:00 +02:00
twinaphex ba67623961 (Menu) change strncpy to strlcpy 2018-08-16 10:15:51 +02:00
twinaphex 75a388cd67 Use strlcpy instead of strncpy in slang_process.cpp 2018-08-16 10:14:42 +02:00
twinaphex c12baad087 Fixup compat_snprintf.c for MSVC 2008 2018-08-16 10:12:17 +02:00
twinaphex 6266065384 Fix more code when compiling without menu support 2018-08-16 09:59:51 +02:00
twinaphex e2e43e6ade Update - make sure non-HAVE_MENU targets can compile 2018-08-16 09:51:03 +02:00
Brad Parker c74c3c9536 Qt: set object names 2018-08-15 21:41:44 -04:00
Brad Parker c663b0f87b Qt: make shader parameter window scrollable if there are too many items to show 2018-08-15 21:40:39 -04:00
twinaphex 921e52e64f Remove old leftover buggy Win32 driver 2018-08-16 00:05:09 +02:00
Brad Parker 9f60a6d17c fix Core Information not appearing after 73f2710 2018-08-15 16:11:05 -04:00
Twinaphex 32d1769968 Merge pull request #7076 from winneon/discord_improvements
discord: use playlist & platform titles when launching content
2018-08-15 21:48:26 +02:00
Twinaphex eee287074c Merge pull request #7077 from bparker06/wimp_shader_param
Qt: Initial shader parameters window
2018-08-15 21:36:34 +02:00
Twinaphex 4d96fddf5e Merge pull request #7061 from wiktorek140/sailfishos-touch
Sailfish OS  device build configuration connected with touch screen support required for device with this OS
2018-08-15 13:30:04 +02:00
twinaphex 1b544d6879 (AArch64) Add separate android phoenix dir 2018-08-15 13:08:06 +02:00
twinaphex c540d83850 (MSVC 2017 Android) Update library name 2018-08-15 12:30:11 +02:00
twinaphex f53349e3dd Move MSVC 2017 files to android/phoenix 2018-08-15 10:46:24 +02:00
Jesse Bryan 2d7cb40537 discord: moved core_info changes to separate PR 2018-08-14 23:40:51 -05:00
Jesse Bryan 010412c895 discord: simplified some lines 2018-08-14 23:26:48 -05:00
Jesse Bryan bf9a8ac4a0 discord: general discord-rpc improvements
Now, if the content was loaded from a playlist, the content name will be the playlist entry's title instead of the filename of the content.

Also, `state` was modified to show the display name of the core, not the
library name. The difference is that the display name shows the platform
as well, not just the core name (i.e. "NEC - PC Engine SuperGrafx (Beetle SGX)" instead of "Mednafen SuperGrafx").
2018-08-14 23:12:47 -05:00
Brad Parker 341cf63399 Qt: show shader pass in parameters window, reload shader params when shader is reloaded 2018-08-14 21:38:52 -04:00
Brad Parker 553394c266 Qt: fix setting of spinbox values when modifying shader parameter sliders 2018-08-14 21:38:45 -04:00
Brad Parker 560149857b shaders: track the pass for each parameter 2018-08-14 18:46:32 -04:00
Brad Parker 4a86d29810 shaders: fix memory leak 2018-08-14 18:44:19 -04:00
Brad Parker 6de4384350 glsl: don't clear the shader source 2018-08-14 18:42:23 -04:00
Brad Parker 572c1ea2d3 Qt: initial shader parameter support 2018-08-14 16:04:48 -04:00
Brad Parker 4a9ef99759 Qt: fix core loading after 73f2710 2018-08-14 16:04:11 -04:00
Twinaphex 135000a5f3 Merge pull request #7074 from RetroSven/master
bugfix: code and state not swapped
2018-08-14 20:04:56 +02:00
Sven 977eac2601 bugfix: code and state not swapped 2018-08-14 13:29:58 -04:00
twinaphex 801bae65e3 Rename files 2018-08-14 17:55:26 +02:00
twinaphex 4fc0d4a194 Rename dir 2018-08-14 17:30:05 +02:00
twinaphex 5ebe5de1b9 Add resource files 2018-08-14 17:24:35 +02:00
twinaphex 00c6fcde84 Add initial VS2017 Android solution - not working yet 2018-08-14 16:04:58 +02:00
twinaphex a6941fb4ed Initial work done on VS2017 solution for Android 2018-08-14 16:02:31 +02:00
twinaphex 48956f3fe4 (MSVC 2008) Add initial MSVC 2008 solution files 2018-08-14 12:18:33 +02:00
twinaphex 16ab69285b (Griffin) Cleanup 2018-08-14 11:45:20 +02:00
twinaphex 6a64e27e3d (D3D8) Add HAVE_MENU ifdefs 2018-08-14 11:41:43 +02:00
twinaphex db9f4697f6 Add HAVE_MENU ifdefs 2018-08-14 11:40:42 +02:00
twinaphex 8c084c70b7 Add HAVE_MENU ifdefs 2018-08-14 11:18:24 +02:00
alfrix b35914fcc0 Fix Stop Netplay Host 2018-08-13 19:41:18 -03:00
Twinaphex 1b542a157d Merge pull request #7073 from flyinghead/fh/stop-audio-after-unload
Close the audio driver after unload_game to avoid threads deadlocks
2018-08-13 15:27:29 -07:00
Flyinghead e52f90926d Close the audio driver after unloading the game to avoid blocking threads that are pushing audio 2018-08-14 00:16:08 +02:00
alfrix ae562614c4 Add dot-art to the supported list in the new XMB icons 2018-08-13 18:42:46 -03:00
twinaphex 66367d41a3 Update libretro-common 2018-08-13 19:56:02 +02:00
alfrix 6e64a39044 Add icons to XMB (limited to Monochrome for now)
Add monochrome inverted to the menu icons
Allow the extra XMB icons in custom theme
Add subsettings
2018-08-13 12:37:45 -03:00
alfrix 8bbc0cb115 Cleanup 2018-08-13 12:37:45 -03:00
Brad Parker b93974faea Qt: update "About RetroArch" logo 2018-08-13 08:42:47 -04:00
twinaphex f657391b2a mbedtls does not support C89 so don't use HAVE_SSL for C89_BUILD 2018-08-13 03:21:08 -07:00
twinaphex 116390b3e8 We should use strlcpy instead of strncpy - this usage of strncpy
was also showing warnings with GCC 8.2
2018-08-13 03:10:02 -07:00
twinaphex 02eb650273 We should use strlcpy instead of strncpy 2018-08-13 03:07:12 -07:00
Brad Parker 0c658debbf update Japanese translation 2018-08-12 22:42:34 -04:00
twinaphex f37ffb7a65 Fix relative path includes 2018-08-12 18:38:05 +02:00
twinaphex be4f592e9e Fix crash at startup when Enable Discord is enabled 2018-08-12 16:33:52 +02:00
twinaphex 356c829f81 Revert "Revert "fix heap-use-after-free""
This reverts commit 6b4cfdc043.
2018-08-12 16:33:24 +02:00
twinaphex 6b4cfdc043 Revert "fix heap-use-after-free"
This reverts commit 73f271021a.
2018-08-12 09:22:32 +02:00
Brad Parker 5fd0664277 fix heap buffer overflow 2018-08-11 21:20:05 -04:00
Brad Parker 73f271021a fix heap-use-after-free 2018-08-11 21:19:56 -04:00
Twinaphex a36442d72d Merge pull request #7069 from bparker06/msvc_version
xmb: show MSVC version next to RetroArch version in lower-left corner
2018-08-11 22:22:01 +02:00
Brad Parker 7b24f884d6 xmb: show MSVC version next to RetroArch version in lower-left corner 2018-08-11 16:20:06 -04:00
Twinaphex 23fe638add Merge pull request #7067 from gouchi/patch-1
Update README.md
2018-08-11 19:04:07 +02:00
gouchi 07b4aed245 Update README.md
fix typo
2018-08-11 18:44:28 +02:00
Brad Parker 325d30f062 Qt: sort core association list case-insensitively 2018-08-10 19:39:04 -04:00
Brad Parker 3d9e7f2c60 Qt: make contributor list static 2018-08-10 19:28:13 -04:00
Twinaphex d352de8133 Merge pull request #7065 from bparker06/contrib
Qt: Add list of contributors to about box
2018-08-11 01:25:40 +02:00
Brad Parker 376608aea0 Qt: cleanup 2018-08-10 19:23:52 -04:00
Brad Parker 177642ac2f add script to fetch list of github contributors 2018-08-10 19:20:13 -04:00
Brad Parker e91c18f556 Qt: Add list of contributors to about box 2018-08-10 19:10:23 -04:00
twinaphex 2cfae2a6e7 C89 buildfix 2018-08-11 00:15:32 +02:00
Twinaphex 91a5b09627 Merge pull request #7042 from Tatsuya79/master
VRR runloop Option.
2018-08-10 21:15:58 +02:00
Brad Parker 8d5f2ad1de Qt: use core display name if regular name is empty 2018-08-10 15:10:18 -04:00
Brad Parker 51f968c557 Qt: fix core association not showing up when clicking on playlists while in grid view 2018-08-10 09:58:22 -04:00
Brad Parker fe6dda917a word_wrap: hack to workaround long lines without spaces 2018-08-09 23:54:16 -04:00
Wiktor Strzębała 45799ee034 Bring up touch support for wayland subsystem for sailfish os devices
Touch code cleanup
Make variabled static as suggest bparker06
C89 compilation error fix (at least for loops)
More C89 fixes

Signed-off-by: Wiktor Strzębała <[email protected]>
2018-08-09 20:49:27 +02:00
Brad Parker e235a0991c Qt: updates 2018-08-09 11:55:42 -04:00
Twinaphex a8dc7209b7 Merge pull request #7060 from RetroSven/master
reverse code/state display so that users can see at a glance which codes are active
2018-08-09 14:59:05 +02:00
Sven 1af96360a5 reverse code/state display so that users can see at a glance which codes are enabled 2018-08-09 08:52:35 -04:00
Wiktor Strzębała ca769b0006 Wayland have EGL libs
Signed-off-by: Wiktor Strzębała <[email protected]>
2018-08-09 14:42:19 +02:00
Wiktor Strzębała 599fd8abe0 Spec file for building under MERSDK (sailfishos)
Signed-off-by: Wiktor Strzębała <[email protected]>
2018-08-09 14:41:55 +02:00
Tatsuya79 e48b9011bf Don't adjust audio for VRR. Silence log message about it. 2018-08-09 12:29:40 +02:00
Brad Parker 50b23d6572 Qt: use yes/no buttons for question dialogs to allow canceling even if checkbox is clicked, return checkbox status separately from yes/no buttons 2018-08-08 12:49:35 -04:00
twinaphex 2a68b6e691 Update 2018-08-08 07:40:33 +02:00
twinaphex e74e306947 Relative path include bugfix 2018-08-08 07:38:48 +02:00
twinaphex fc176c1fa6 Put this around HAVE_DISCORD ifdefs 2018-08-08 07:35:11 +02:00
twinaphex 27c2c6c6d7 Add Discord integration 2018-08-08 07:32:37 +02:00
twinaphex a3847ed656 Not available on PSP either 2018-08-08 06:03:01 +02:00
twinaphex c59b054ef2 Comment this out 2018-08-08 05:01:22 +02:00
twinaphex f14ae31e93 Uncomment this too 2018-08-08 04:54:11 +02:00
twinaphex 1becd89699 Remove DEBUG ifdef 2018-08-08 04:51:03 +02:00
twinaphex e6e35805a6 Enable this 2018-08-08 04:50:16 +02:00
Twinaphex 499fdc7e22 Merge pull request #7053 from RetroSven/master
add option to auto-apply cheat codes when a game loads ; fix some misc cheat module bugs
2018-08-08 03:17:44 +02:00
twinaphex 80227bfcdb Vita doesn't have ftruncate it seems 2018-08-08 01:46:32 +02:00
Sven b48321737d Merge remote-tracking branch 'upstream/master' 2018-08-07 17:35:16 -04:00
Sven b648d70f27 add option to auto-apply cheat codes when a game loads ; fix some misc bugs in cheat engine 2018-08-07 17:34:46 -04:00
Twinaphex 59b620a1a6 Merge pull request #7051 from greso/master
(macOS) Fix input issues
2018-08-07 20:22:55 +02:00
greso 2c9fda1798 (macOS) Fix input issues
For my Xbox One Controller the min input for the hat is 1 and not 0. 0
points to the default state that is called after each button press.

On top of that the two axis for the trigger buttons were ignored. I
added some additional axis that are not present on my controller but
will probably help for other input devices.
2018-08-07 19:51:50 +02:00
twinaphex 137a39c705 Update 2018-08-07 06:22:56 +02:00
twinaphex 7fdc516d8d Update 2018-08-07 06:19:27 +02:00
twinaphex 653bcba2e0 Update libretro-common 2018-08-07 06:17:48 +02:00
twinaphex f52708e205 Update filestream_transforms.h 2018-08-07 06:00:16 +02:00
twinaphex c563eedb32 Hopefully the VFS interface can now remain stable 2018-08-07 05:53:32 +02:00
twinaphex 1bda6ba204 Update libretro-common 2018-08-07 05:43:19 +02:00
twinaphex 0fb7d6a9e4 (SSL) Re-enable drbg 2018-08-07 04:57:33 +02:00
twinaphex 9403489f2e try to bake out debug parts of mbedtls 2018-08-07 04:51:26 +02:00
twinaphex 79f87cbaee More C89_BUILD fixes for mbedtls 2018-08-07 04:48:05 +02:00
twinaphex 6155772c5e mbedtls is not C89_BUILD compatible for now 2018-08-07 03:54:09 +02:00
twinaphex f523fec4d2 C89_BUILD fixes 2018-08-07 03:50:10 +02:00
twinaphex 2bf3ec2000 C89_BUILD fixes 2018-08-07 03:37:56 +02:00
Twinaphex d4ab18c188 Merge pull request #7049 from bparker06/wimp_update
Qt: add option to update RetroArch (Windows only for now)
2018-08-07 03:10:32 +02:00
Brad Parker 4baecf84ca Qt: add option to update RetroArch (Windows only for now) 2018-08-06 20:52:47 -04:00
Brad Parker a1b831abdb allow 7z archives to have multiple files extracted at once 2018-08-06 20:44:59 -04:00
twinaphex 00f252ad2d configuration.c - cleanups:
- use string_is_equal instead of strcmp
- use calloc instead of malloc
2018-08-06 06:59:50 +02:00
twinaphex 68f5c907fe Don't leak 4096 bytes in config_load_remap 2018-08-06 06:55:13 +02:00
Twinaphex 5a727ce522 Merge pull request #7046 from DEX357/patch-18
Update msg_hash_pl.h
2018-08-06 02:41:08 +02:00
DEX357 046ce64250 Update msg_hash_pl.h 2018-08-06 00:27:26 +02:00
Twinaphex c19e26ebf6 Merge pull request #7045 from dor3k/patch-1
Update Polish
2018-08-06 00:15:16 +02:00
dor3k dcc642876a Update msg_hash_pl.h 2018-08-05 23:30:41 +02:00
twinaphex d9f4675a51 menu_settings_free - prevent null pointer indirections 2018-08-05 16:59:59 +02:00
dor3k 54074f5c53 Update msg_hash_pl.h 2018-08-05 02:36:54 +02:00
twinaphex 3f959637f2 Update application ID 2018-08-05 02:14:21 +02:00
twinaphex ae69bf9d7b More changes needed for mbedtls/griffin 2018-08-05 01:10:05 +02:00
Twinaphex dae393d519 Merge pull request #7043 from fr500/master
Discord: Show game name and a core icon
2018-08-05 01:08:55 +02:00
radius 605565e87e Discord: Show game name and a core icon 2018-08-04 17:41:07 -05:00
Tatsuya79 bd4d462170 VRR runloop Option. 2018-08-05 00:34:10 +02:00
twinaphex a1e338827c (mbedtls) Changes to make it compatible with Griffin, pt. 1 2018-08-04 21:16:12 +02:00
twinaphex d2613d6e89 (mbedtls) Global variables need to be uniquely namespaced for Griffin 2018-08-04 20:57:23 +02:00
twinaphex 3019748b17 (mbedtls) Use arc4_alt.h 2018-08-04 20:54:11 +02:00
twinaphex ad87ec871d (mbedtls) update asn1parse.c 2018-08-04 20:10:19 +02:00
twinaphex 5b3b3b4a89 (mbedtls) Add arc4_alt.h 2018-08-04 20:09:07 +02:00
Twinaphex 01103dcd23 Cleanups 2018-08-04 20:02:33 +02:00
twinaphex 564c7805b0 Add HAVE_SSL ifdef to griffin.c 2018-08-04 19:51:55 +02:00
Brad Parker c71b4ccca3 only set mbedtls debug if we are building in debug mode 2018-08-04 13:24:36 -04:00
twinaphex 7b147a40ae Update 2018-08-04 19:23:42 +02:00
Twinaphex b0e8775b55 Merge pull request #7041 from RetroSven/master
bugfix for very long code values - allow for any length
2018-08-04 19:10:46 +02:00
Sven 0f634d563b Merge remote-tracking branch 'upstream/master' 2018-08-04 13:05:40 -04:00
Sven 2fb5d54130 bugfix for very long code values - allow for any length 2018-08-04 13:05:05 -04:00
Brad Parker 93aed2bc87 Update CHANGES.md 2018-08-04 12:56:48 -04:00
twinaphex 2f1dd78a77 Set HAVE_SSL=yes by default for Windows/Linux 2018-08-04 18:50:53 +02:00
Twinaphex 00ff8b59aa Merge pull request #7040 from alfrix/spanish
Update Spanish
2018-08-04 16:10:10 +02:00
Sven deff1de2b7 Merge remote-tracking branch 'upstream/master' 2018-08-04 08:29:07 -04:00
Sven a82ea4dcc8 bump size for long one-line multi-codes 2018-08-04 08:28:39 -04:00
Alfredo Monclus ce20a9acdf Add Onscreen Notifications and Overlays Sublabels 2018-08-04 00:33:51 -03:00
Alfredo Monclus 8fe519365c Update Spanish 2018-08-03 23:20:32 -03:00
Brad Parker 75d161e0bd Qt: make links in Help->About clickable, add documentation link 2018-08-03 21:38:38 -04:00
twinaphex 5773f7071d C89 buildfixes 2018-08-04 00:47:52 +02:00
Twinaphex 421e6fe0f7 Merge pull request #7039 from RetroSven/master
add some options to the cheat system to browse emulator memory
2018-08-03 23:55:12 +02:00
Sven e5bc567765 Merge remote-tracking branch 'upstream/master' 2018-08-03 14:59:44 -04:00
Sven 36d16a9c94 add some options to the cheat system to browse emulator memory 2018-08-03 14:59:33 -04:00
Brad Parker 43492c5fbd Qt: add Help->About dialogs 2018-08-02 23:21:39 -04:00
Twinaphex af4438406d Merge pull request #7038 from joel16/vita-clockrates
Set max bus & gpu clock rates for PS VITA
2018-08-02 19:36:59 +02:00
Joel16 b606572bce Set max bus & gpu clock rates 2018-08-02 12:19:16 -05:00
Twinaphex 03854a0da1 Merge pull request #7037 from RetroSven/master
add an option to auto-apply cheats whenever they are toggled on/off
2018-08-02 17:18:21 +02:00
Sven c1bba50567 Merge remote-tracking branch 'upstream/master' 2018-08-02 11:00:02 -04:00
Sven 3bba9aeeaf add an option to auto-apply cheats whenever they are toggled on/off 2018-08-02 10:59:37 -04:00
twinaphex 5b9115c848 C89_BUILD fixes 2018-08-01 01:27:30 +02:00
twinaphex aec7ed40da This crashed Wayland 2018-08-01 01:15:58 +02:00
Brad Parker bdf5efd4ab Qt: fix thumbnail display in file browser when name has dots in it 2018-07-31 11:34:25 -04:00
Brad Parker b60e35ce48 Update CHANGES.md 2018-07-31 00:16:48 -04:00
Brad Parker ea05b0f3cb Qt: "add entry" option for starting a new custom playlist entry 2018-07-31 00:15:59 -04:00
Brad Parker d5ae00f3d8 Qt: fix loading of content from grid view with core set to "ask me" 2018-07-30 22:52:14 -04:00
Brad Parker e63edfa6d2 Qt: add button to playlist entry dialog to change the path to the content 2018-07-30 21:18:34 -04:00
Brad Parker e1b2d752ab Qt: use complete base name in case file has periods in it 2018-07-30 19:41:31 -04:00
Twinaphex 3e330bed7c Merge pull request #7034 from Tatsuya79/patch-3
Update ui_qt_themes.h
2018-07-31 01:32:08 +02:00
Tatsuya79 1ceac715b3 Update ui_qt_themes.h 2018-07-31 01:07:00 +02:00
Brad Parker 50381a0463 Qt: allow FileDropWidget to be styleable 2018-07-30 18:22:18 -04:00
Twinaphex b5d5fb4940 Merge pull request #7032 from Tatsuya79/patch-2
Update ui_qt_themes.h
2018-07-30 17:36:04 +02:00
Tatsuya79 20a66e468e Update ui_qt_themes.h 2018-07-30 17:26:58 +02:00
Brad Parker 5273aa2861 Qt: use native separators for playlist paths 2018-07-30 10:02:38 -04:00
Twinaphex 157fbe07b6 Merge pull request #7031 from RetroSven/master
fix strncat size warnings ; only consume additional cheat memory when performing searching - no need to alloc additional memory when applying cheats ; bugfix address mask max value
2018-07-30 14:00:44 +02:00
Sven ba8ceb8f84 Merge remote-tracking branch 'upstream/master' 2018-07-30 04:12:46 -04:00
Sven c2825cb7c5 fix strncat size warnings ; only consume additional cheat memory when performing searching - no need to alloc additional memory when applying cheats ; bugfix address mask max value 2018-07-30 04:08:50 -04:00
Brad Parker 558a732330 Qt: add right-click option to edit playlist entries, fix bug with extra .lpl extension in playlists 2018-07-29 23:51:23 -04:00
Twinaphex 0d157bc09f Merge pull request #7030 from RetroSven/master
add "reload game-specific cheats" option to cheats menu
2018-07-29 23:56:08 +02:00
Sven 3d862bbdb4 Merge remote-tracking branch 'upstream/master' 2018-07-29 16:08:12 -04:00
Sven 565e916ef9 add "reload game-specific cheats" option to cheats menu 2018-07-29 15:55:40 -04:00
Twinaphex 58dd8a1917 Merge pull request #7029 from alfrix/spanish
Spanish terminology changes
2018-07-29 20:31:25 +02:00
Alfredo Monclus 7426701b2f Anulaciones a Personalizaciones 2018-07-29 15:06:01 -03:00
Alfredo Monclus 2516b7ad1e Ranura a Posición 2018-07-29 14:07:49 -03:00
twinaphex 7131b969d8 (Android) Buildfixes 2018-07-29 19:04:53 +02:00
Twinaphex 9b79d150b4 Merge pull request #7028 from Skarsnik/master
Fix a bug in the READ_CORE_RAM command of the network interface and add a VERSION command
2018-07-29 18:23:43 +02:00
Twinaphex 77095247cc Merge pull request #7027 from RetroSven/master
save/load from cheat_dir/core_name/game_name.cht ; only save to cheat…
2018-07-29 17:14:05 +02:00
Twinaphex 7ea94f57f6 Merge pull request #7026 from alfrix/spanish
Update Spanish
2018-07-29 17:12:47 +02:00
Sven 0442aa5a31 save/load from cheat_dir/core_name/game_name.cht ; only save to cheat file when there are >0 cheats 2018-07-29 10:48:41 -04:00
Alfredo Monclus 18646e3af0 Update Spanish 2018-07-29 11:20:46 -03:00
Sylvain Colinet 011cb61782 Added a version command 2018-07-29 15:15:29 +02:00
Sylvain Colinet ef43e171ce Network command interface : Fix the READ_CORE_RAM command to not crash when asking for size over 78 2018-07-29 14:49:31 +02:00
Brad Parker 2faa250174 Qt: throttle status bar messages 2018-07-28 23:15:00 -04:00
Brad Parker fea09f7382 Qt: add right-click menu to delete playlist items 2018-07-28 22:34:00 -04:00
Brad Parker 978edc7acf Qt: always set the current tab on startup 2018-07-28 18:46:51 -04:00
Twinaphex e579842620 Merge pull request #7023 from RetroSven/master
fix bug when accessing memory address cheat setting before cheat syst…
2018-07-29 00:08:38 +02:00
Sven 3c0a8c0c10 fix bug when accessing memory address cheat setting before cheat system initialized ; clean up code in some areas 2018-07-28 17:45:33 -04:00
twinaphex d08f0f1234 CXX_BUILD cleanups 2018-07-28 23:18:44 +02:00
twinaphex 89083fd093 C89 buildfixes 2018-07-28 22:11:56 +02:00
Twinaphex 367d6e7480 Merge pull request #7017 from RetroSven/cheater
Implement robust cheat searching interface with rumble features
2018-07-28 19:01:40 +02:00
bparker06 7c06e6f620 Update CHANGES.md 2018-07-28 13:00:26 -04:00
Twinaphex fb3b5df350 Merge pull request #7022 from bparker06/qt_playlist
Qt: ability to add/delete playlists and drag&drop files into a playlist
2018-07-28 18:29:07 +02:00
Brad Parker 8835e2d9a2 Qt: add delete key option to list/grid view to remove playlist items 2018-07-28 11:48:24 -04:00
Brad Parker c883a81c42 Qt: only allow dropping files onto center list/grid view 2018-07-28 10:39:21 -04:00
Tatsuya79 963e19b42b Update ui_qt_themes.h (#7021)
* Update ui_qt_themes.h

* Update ui_qt_window.cpp
2018-07-28 07:54:25 -04:00
Brad Parker 489601fadb Qt: allow right-click in empty portion of playlist widget 2018-07-27 23:52:27 -04:00
Brad Parker 45d38dcccf Qt: add dialog to choose core/database for new playlist entries 2018-07-27 23:45:48 -04:00
twinaphex 20335cd2b9 Add Hakchi files 2018-07-27 19:26:15 +02:00
Twinaphex d802a7eaab Merge pull request #7018 from altiereslima/master
Update portuguese translation
2018-07-27 14:37:06 +02:00
altiereslima 0f63d1f851 Update portuguese translation 2018-07-27 04:54:07 -03:00
Brad Parker fcdeebe672 Qt: initial drag&drop to add playlist entries. no scanning or filtering yet 2018-07-26 23:35:17 -04:00
Sven c750235414 Merge branch 'master' into cheater 2018-07-26 19:40:20 -04:00
Brad Parker be952a9d14 Qt: add options for new/delete playlist 2018-07-26 11:23:51 -04:00
Brad Parker e9c4192e9b Qt: fix grid label text getting cut off on Windows, do not change size of grid items when selected 2018-07-26 11:14:01 -04:00
Brad Parker 0e86c664ce Qt: add tooltips to show entire grid label text 2018-07-25 19:52:08 -04:00
Brad Parker 4b712fa750 Qt: elide grid label text 2018-07-25 19:41:54 -04:00
Sven 5f35249216 Implement robust cheat searching interface with rumble features 2018-07-25 19:19:14 -04:00
Brad Parker 665628e6c0 Qt: add separate settings for max list/grid entries 2018-07-25 15:24:26 -04:00
Brad Parker 065318eb39 Qt: set default limit for "all playlists" to 5000, use retro_assert instead of assert 2018-07-25 08:44:25 -04:00
twinaphex d6b273f60e Add retro_assert.h 2018-07-25 12:24:07 +02:00
Brad Parker 5ff77d1833 Qt: better border drawing across styles, add option for max entries in "all playlists" 2018-07-25 01:43:57 -04:00
Brad Parker f0b0be898a Qt: draw border around selected grid item 2018-07-25 00:29:48 -04:00
Brad Parker d17c17085c Qt: hook up search box to grid view 2018-07-24 17:07:17 -04:00
Brad Parker c7052f67df update CHANGES.md 2018-07-24 15:10:29 -04:00
Brad Parker baa709632d Qt: sort grid entries by name 2018-07-24 15:10:29 -04:00
hizzlekizzle b4cae22396 Merge pull request #7013 from hizzlekizzle/master
update info.plist to v1.7.3
2018-07-24 11:55:59 -05:00
hizzlekizzle ab03c1818a update info.plist to v1.7.3
must have been missed in the previous update
2018-07-24 11:15:03 -05:00
Twinaphex 8535fe11da Merge pull request #7003 from gvbr/runahead
Runahead: ensure prefixed second-instance temp directory on linux
2018-07-24 15:57:47 +02:00
Twinaphex ccb87f3a96 Update CHANGES.md 2018-07-24 15:02:42 +02:00
Twinaphex 70a24ae421 Merge pull request #7012 from TheOfficialFloW/patch-1
Use sceCtrlIsMultiControllerSupported to detect
2018-07-24 15:02:20 +02:00
TheOfficialFloW ef10b7897d Use sceCtrlIsMultiControllerSupported to detect 2018-07-24 10:12:15 +02:00
Twinaphex 6150bd9772 Merge pull request #7010 from bparker06/qt_grid
Qt: initial working grid view
2018-07-23 17:45:43 +02:00
Twinaphex 3aac9a1693 Update CHANGES.md 2018-07-23 17:45:30 +02:00
twinaphex 6cee45ab99 Don't bake in HAVE_STRIPES by default 2018-07-23 17:42:57 +02:00
twinaphex a740d73d21 Don't set MENU_STRIPES as default 2018-07-23 17:42:15 +02:00
Brad Parker b52995dd30 Merge branch 'master' into qt_grid 2018-07-23 11:18:26 -04:00
Brad Parker c8a814ae40 Qt: hook up grid view click/doubleclick events 2018-07-23 11:17:58 -04:00
Twinaphex 48a722f4bc Merge pull request #7009 from kurumushi/patch-1
Add imc0: mount for ps vita
2018-07-23 16:53:12 +02:00
kurumushi bbe1dcd48f Add imc0: mount for ps vita
This allows using the internal storage of the ps vita 2000 model when it's mounted on imc0: instead of ux0:
2018-07-23 23:11:54 +09:00
Brad Parker 1293447aab Qt: hide progress properly when done showing "all playlists" if user only has a single playlist 2018-07-23 09:44:24 -04:00
Twinaphex e5741eb9b2 Merge pull request #7008 from yoshisuga/issue-6751
issue 6751: read input of overlay for remapped keyboard keys
2018-07-23 04:32:21 +02:00
Brad Parker f78337e02e Qt: add progress bar for grid view loading 2018-07-22 22:05:57 -04:00
Brad Parker 75ce796c34 Merge branch 'master' into qt_grid 2018-07-22 20:03:55 -04:00
twinaphex bea736865b Add some logs 2018-07-23 00:10:35 +02:00
Yoshi Sugawara 0a710564e1 issue 6751: read input of overlay for remapped keyboard keys 2018-07-22 11:32:52 -10:00
twinaphex 6ae4350883 (XMB) Add back XMB ribbon - was probably not meant to be removed 2018-07-22 21:18:11 +02:00
twinaphex 454dbc6185 Change this to MENU_STRIPES 2018-07-22 21:14:30 +02:00
twinaphex 7403cfad99 (Stripes) Buildfix 2018-07-22 20:54:59 +02:00
Twinaphex c2d3727c09 Merge pull request #7007 from libretro/stripes
[WIP] Stripes menu
2018-07-22 20:14:50 +02:00
Rob Loach aba179a910 Merge branch 'master' into stripes 2018-07-22 13:30:47 -04:00
twinaphex 9c0ed0f2c4 Don't use core profile GLSL shaders for OpenGLES 2018-07-18 10:06:30 +02:00
gvbr 0addd1aca4 Runahead: ensure prefixed second-instance temp directory on linux 2018-07-17 20:06:18 -07:00
Brad Parker 7e609d6a05 fix some config entries not being saved 2018-07-16 23:01:21 -04:00
Twinaphex b878a94f76 Merge pull request #6998 from bparker06/config_sort
sort config file variables
2018-07-16 06:47:53 +02:00
Brad Parker 62e89974af sort config file variables 2018-07-16 00:15:49 -04:00
twinaphex eb345019c2 Don't implement bind_block/flush_block for drivers that
don't implement it
2018-07-15 20:16:40 +02:00
Twinaphex 5159f71cf5 Update CHANGES.md 2018-07-15 14:43:31 +02:00
twinaphex ea09c29e04 Update implementations for other input drivers - not all input
drivers support this yet
2018-07-15 14:34:02 +02:00
twinaphex 9a1ac6d77b (rwebinput) Fix game focus toggle 2018-07-15 14:22:16 +02:00
twinaphex 13431c7cbf (udev) Fix game focus toggle for udev input driver 2018-07-15 14:20:26 +02:00
twinaphex 98190294db (winraw_input) Fix game focus toggle for winraw_input 2018-07-15 14:18:35 +02:00
twinaphex d50850762b Fix game focus toggling for DInput driver 2018-07-15 14:17:10 +02:00
twinaphex 311b454a2c Change return value to true instead for command_event_save_core_config 2018-07-15 05:58:01 +02:00
twinaphex 675b8bb9e2 Cleanup some code in command_event 2018-07-15 05:50:08 +02:00
Twinaphex a34e29c037 Merge pull request #6990 from stuartcarnie/sgc-metal
fix(Cocoa): Fix blank screen after full screen toggle; window focus
2018-07-15 04:46:59 +02:00
Stuart Carnie 0291c41afa fix(Metal): Fix blank screen after full screen toggle; window focus 2018-07-14 11:18:21 -07:00
Twinaphex a68a22081c Merge pull request #6989 from Dwedit/win32_message_loop_threaded_video_fix
Move win32 message loop, now compatible with threaded video
2018-07-14 06:12:07 +02:00
Dwedit fa00eda625 Relocation of Win32 Message Loop Fix is now tied to whether threaded video is enabled or not
Menu bar is removed if threaded video is enabled, due to code currently being unsafe when using threaded video.
2018-07-13 22:34:03 -05:00
twinaphex d6c5c7f208 Pre-MSVC 2013 did not support PRIu32, add workaround 2018-07-14 05:29:17 +02:00
twinaphex 0df98a53a6 Use video_driver_is_threaded_internal from within gfx/video_driver.c 2018-07-14 05:24:28 +02:00
twinaphex cc473a25b9 Add video_driver_is_threaded 2018-07-14 05:23:03 +02:00
twinaphex 0d39701145 Get rid of double void argument 2018-07-14 00:54:14 +02:00
twinaphex 5ba2a621c0 Silence warnings 2018-07-14 00:45:16 +02:00
twinaphex 600c2c1ca1 Simplify menu_display_font 2018-07-14 00:39:46 +02:00
twinaphex abc6eb7d8c Revert "Re-revert this - causes issues with toggling fullscreen with threaded"
This reverts commit 52a55695ce.
2018-07-14 00:22:52 +02:00
twinaphex 4758caea74 Commenting this out for now - this causes crashes with
toggling fullscreen in threaded video mode with the GL driver
2018-07-14 00:21:27 +02:00
twinaphex 52a55695ce Re-revert this - causes issues with toggling fullscreen with threaded
video mode and GL driver
2018-07-14 00:10:21 +02:00
twinaphex 76cbd54420 Merge branch 'master' of https://github.com/libretro/RetroArch 2018-07-14 00:02:14 +02:00
twinaphex 38a35e53fd Revert "Move Message loop call to right before video_driver_get_status call"
This reverts commit 838dcc8a5a.
2018-07-14 00:01:25 +02:00
Twinaphex 308b053fee Merge pull request #6982 from meleu/patch-2
CHANGES: added cheevos related stuff
2018-07-14 00:00:50 +02:00
Twinaphex 279c635b91 Merge pull request #6985 from RetroSven/rewind_buffer_size_ui
implement a way to set rewind_buffer_size via the UI
2018-07-13 22:38:11 +02:00
Sven 83da70586e implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
Brad Parker 367689a3f9 add enum for 21:9 aspect 2018-07-13 15:30:48 -04:00
Brad Parker 637ded4ef1 add 21:9 aspect ratio 2018-07-13 15:29:07 -04:00
meleu e160c70950 CHANGES: added cheevos related stuff 2018-07-13 08:12:01 -03:00
Twinaphex 7dcc99980a Update CHANGES.md 2018-07-13 12:20:55 +02:00
Twinaphex 11244d78b0 Merge pull request #6981 from casdevel/dinput
Add dinput rumble support
2018-07-13 12:20:28 +02:00
Twinaphex 06318e3dd9 Merge pull request #6980 from stuartcarnie/sgc-metal
fix(Metal): Render search box correctly
2018-07-13 10:27:42 +02:00
Stuart Carnie 13a9aca88a fix(Metal): Render search box correctly 2018-07-12 23:15:24 -07:00
Twinaphex 36494d622a Merge pull request #6979 from stuartcarnie/sgc-metal
fix(Metal): Various Metal fixes
2018-07-13 06:36:28 +02:00
Stuart Carnie 167ad3b57d fix(Metal): Various Metal fixes
* OSD message background
* clear glui background
* add Metal to configuration
* added optional config to compile Metal build without OpenGL
* fixed fill_pathname_join_delim; if out_path and dir are same, don't
  strlcpy, as the results are undefined.
2018-07-12 21:33:18 -07:00
Brad Parker dbfccb25dd sixel: fix context init 2018-07-12 22:59:05 -04:00
Twinaphex 42c4e8c687 Merge pull request #6978 from webgeek1234/android_url
Fix android armeabi and x86_64 core updater urls
2018-07-13 04:22:12 +02:00
Aaron Kling dc807f25cf Fix android armeabi and x86_64 core updater urls 2018-07-12 20:06:03 -05:00
Brad Parker f8ea5cfd8d update CHANGES.md 2018-07-12 17:24:52 -04:00
Brad Parker 7e1074c40a sixel: add missing menu display driver 2018-07-12 17:24:52 -04:00
Twinaphex 44859fc06e Merge pull request #6977 from bparker06/sixel_new
initial SIXEL video driver
2018-07-12 23:06:59 +02:00
Brad Parker ab27b7c85f initial SIXEL video driver 2018-07-12 16:55:08 -04:00
twinaphex 6b5ade4ac3 Should be no more deprecated warnings with core context GL for menu
shaders
2018-07-12 22:03:37 +02:00
twinaphex fab08c9cfb Only load Xinput DLL once 2018-07-12 21:39:18 +02:00
twinaphex 60d7d1c793 Add xmb ribbon simple core shader 2018-07-12 21:34:17 +02:00
twinaphex 140e657d51 (GLSL) Add logging for compiling menu shaders 2018-07-12 21:25:39 +02:00
Twinaphex 7f7493d751 Merge pull request #6975 from yoshisuga/ios11_files
[iOS] Support viewing/opening files in Files app
2018-07-12 06:00:40 +02:00
Yoshi Sugawara 14e79e0a43 support viewing/opening files in Files app 2018-07-11 15:52:11 -10:00
Twinaphex 8a683c1626 Merge pull request #6973 from bearoso/fix-rr
Win32: Fix monitor-reported refresh rate.
2018-07-12 00:39:17 +02:00
Brandon Wright c81aab345c Lock sizes of enum fields at 32 bits. 2018-07-11 16:37:37 -05:00
Twinaphex 7adce0050e Update CHANGES.md 2018-07-11 11:23:21 +02:00
Twinaphex cb137954f9 Update wiiu_audio.c - audio should no longer clip 2018-07-11 11:22:43 +02:00
twinaphex dc55bd13aa Add HAVE_METAL 2018-07-11 03:42:42 +02:00
Twinaphex fd86140514 Merge pull request #6963 from alphanu1/master
casting int to float
2018-07-08 20:24:46 +02:00
alphanu1 f25ef05d52 Merge pull request #78 from alphanu1/alphanu1-patch-73
cast float
2018-07-08 19:19:40 +01:00
alphanu1 755a128d95 cast float 2018-07-08 19:15:24 +01:00
Twinaphex e4a8ef409a Merge pull request #6962 from alphanu1/master
Resolution refresh rate restore bugfix for windows.
2018-07-08 19:29:59 +02:00
alphanu1 46d74971fd Merge pull request #77 from alphanu1/alphanu1-patch-72
Restore refresh fix for windows
2018-07-08 18:18:07 +01:00
alphanu1 045606ce44 Restore refresh fix for windows
The refresh rate is now detect to restore the original desktop resolution.
2018-07-08 18:17:23 +01:00
alphanu1 74eacd5a33 Merge pull request #76 from libretro/master
update
2018-07-08 18:13:05 +01:00
Twinaphex 7fb147e8b3 Merge pull request #6959 from stuartcarnie/sgc-metal
feat(Metal): Full screen support
2018-07-07 17:55:42 +02:00
Stuart Carnie 40a1446c95 feat(Metal): Reload shader preset when Metal driver reinitialized 2018-07-07 07:31:43 -07:00
Stuart Carnie 74e1f24e90 feat(Metal): Full screen support
* I believe there is a race condition where the viewport is not set
  correctly on launch
2018-07-06 23:38:34 -07:00
Stuart Carnie 01df2c5e88 fix(Metal): Check for nil drawable 2018-07-06 23:37:15 -07:00
Twinaphex dc161a1cb3 Merge pull request #6958 from RobLoach/defaced
code: Replace hexspeak code
2018-07-07 06:09:59 +02:00
Rob Loach 0f39ef4247 [#6955] Update hexspeak magic pointer code
Fixes #6955
2018-07-06 23:03:15 -04:00
Twinaphex e8fb22ba47 Merge pull request #6953 from Dwedit/cached_frame_hack2
Invalidate `frame_cache_data` pointer to prevent crash if first frame is paused
2018-07-06 20:36:32 +02:00
Dwedit 41ce61974d A hack to invalidate the frame_cache_data pointer during the following events:
Load Game, Reset, Init, Unload, Unload Game, Video Driver Destroy, Video Driver Free, Video Driver Init

This prevents an invalid pointer from being read if the first frame starts out paused.
2018-07-06 09:53:31 -05:00
twinaphex ceaa0259e5 Merge commit 'c8366b0b0f6ab996adcbcf1ee09a3ed6298e7d4e' 2018-07-06 05:17:39 +02:00
twinaphex c8366b0b0f Squashed 'deps/SPIRV-Cross/' changes from f96c9f9fb4..0f59016635
0f59016635 Merge pull request #636 from KhronosGroup/cfg-refactor
2bf57d6dff Deal with composite constants in variable initializer.
dcddd5326e Add LUT test cases for OpVariable with initializer.
af290ede87 Remove some redundant spvArrayCopy declarations.
8c314112b4 Run format_all.sh.
5582523d9a Add some tests for LUT promotion.
5143695080 Don't need to enclose expression for arrays.
d29f48ef06 Deduce constant LUTs from read-write variables.
b5ed706860 Hoist out variable scope analysis.
c26c41b26b Make the CFGs for all active functions available.
6fdadb9218 Track partial writes as well.
7216129377 Hoist out the inline VariableAccessHandler class.

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: 0f590166359f4ee35d80040f0965417f482cd6b1
2018-07-06 05:17:39 +02:00
twinaphex 22d6930488 Some MSVC 2010 360 buildfixes 2018-07-06 04:45:52 +02:00
Twinaphex 974aa3c8ac Merge pull request #6951 from Dwedit/message_loop_fix
Move Message loop call to right before `video_driver_get_status` call
2018-07-06 04:42:35 +02:00
Dwedit 838dcc8a5a Move Message loop call to right before video_driver_get_status call 2018-07-05 20:07:01 -05:00
Zoran Vuckovic 544802e1a8 Add dinput rumble support 2018-07-05 20:01:23 +02:00
twinaphex c3d469dd8e Revert "Moved WIN32 message loop out of win32_check_window, and into just before the call to runloop_iterate"
This reverts commit 7108628369.
2018-07-05 02:42:16 +02:00
twinaphex 31e76458f7 Merge commit 'aa9ebf5f29e1a22a5050572353b122915db1451d' 2018-07-05 02:10:00 +02:00
twinaphex aa9ebf5f29 Squashed 'libretro-common/' changes from 1548bee835..b857ce7fc5
b857ce7fc5 Cleanups

git-subtree-dir: libretro-common
git-subtree-split: b857ce7fc55d725246a095f766e2bb82bb1d4ce6
2018-07-05 02:10:00 +02:00
Twinaphex c54532d77d Merge pull request #6950 from stuartcarnie/sgc-macos
fix(macOS): Fix older targets
2018-07-05 01:14:54 +02:00
Stuart Carnie d1712d7c5a fix(macOS): Fix older targets 2018-07-04 15:26:49 -07:00
Twinaphex a96b482d78 Merge pull request #6949 from stuartcarnie/sgc-macos
fix(macOS): Use correct availability macro check
2018-07-04 23:42:00 +02:00
Stuart Carnie d8061ac0e9 fix(macOS): Use correct availability macro check 2018-07-04 14:19:05 -07:00
Twinaphex 95500f5631 Merge pull request #6948 from stuartcarnie/sgc-metal
feat(Metal): Add support for overlays
2018-07-04 22:52:29 +02:00
twinaphex 155f797ccb Merge commit '2da12dca5803c3dcde920a1cff838fd98aecb36f' 2018-07-04 22:51:43 +02:00
twinaphex 2da12dca58 Squashed 'deps/SPIRV-Cross/' changes from e59cc24495..f96c9f9fb4
f96c9f9fb4 Merge pull request #635 from KhronosGroup/fix-631
e044732896 Support OpTypeImage with depth == 2 (unknown) properly.
a6814a405a Merge pull request #630 from KhronosGroup/fix-628
af2d3abd03 Fail more gracefully with some unsupported opcodes.
26107ba200 Fix os.errno issues on Travis.
ee44f6027b Changed OpTypeImage to only flag depth if the op is 1
c863f53cac Merge pull request #627 from KhronosGroup/macro-namespace-fix
9ddbd5aff6 Run format_all.sh.
f1752e58e1 Add basic namespace to internal macros.
d67e586b2e Merge pull request #626 from billhollings/master
9bf226cb05 Fixes for code review of PR 626.
4c5142b9d3 CompilerMSL support larger texel buffers by using 2D Metal textures.
314f39a7c4 Merge pull request #621 from billhollings/master
4beefe756c Fixes from PR 621 code review.
f66507a701 Merge branch 'master' of https://github.com/KhronosGroup/SPIRV-Cross
0ea5e0549e Merge pull request #615 from JustSid/master
5ac55ee735 Fixed emission of some legacy texture ops without requiring the appropriate extensions
ceec708b89 Added better fallbacks for legacy textureProjLod() and textureProjLodOffset() generation
994f789465 Merge pull request #624 from KhronosGroup/fix-619
33c61d2abe Support branch/loop hints in HLSL.
327fb03677 Merge pull request #623 from KhronosGroup/fix-618
2077478651 Merge pull request #622 from KhronosGroup/fix-620
10dfaf79d5 Support globallycoherent in HLSL.
ffa9133d77 Support ternary expressions in OpSpecConstantOp.
e091031613 CompilerMSL pass builtin struct members into functions.
7607eb6923 Merge pull request #617 from KhronosGroup/fix-612
d94d20f4f3 Deal with some builtins being declared with wrong signedness.
0f62b5dc1e Moved check for depth texture and shadowXY emission completely to legacy_tex_op()
447a253ce7 Simplified check for depth texture
76c8e3c1c4 Merge pull request #616 from KhronosGroup/fix-614
b29629fd46 Add support to remove SPIRV_Cross_BaseInstance uniform.
809631ce21 Mention JSON backend in README.
040204d65c Fix warnings and run format_all.sh.
b4c8c3b9b2 Merge branch 'reflection' of git://github.com/jherico/SPIRV-Cross
f6dad78c99 Added support for shadowXY() sample instructions in legacy GLSL
9ad432463c Prefix integer types with underscore
0ad0f948e1 More PR feedback
3b30202bee Add reflection specific test cases, add reflection testing to test_shaders.sh
8d84a541ac Add specialization constant output in reflection
762040084d More feedback
d0a67ba6a7 Code consolidation, const correctness, faster regression testing
3a825349bc More cleanup
6c88b0048b PR feedback
ee86000529 Cleanup code
709d3c60f2 Working on reflection output
0039cb86fc Merge pull request #613 from KhronosGroup/fix-609
9d31154917 Deal with switch case labels which share a block.

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: f96c9f9fb4fc7d17991cecb2b2294dce06d08d9c
2018-07-04 22:50:02 +02:00
Stuart Carnie c7b21d5bd6 feat(Metal): Add support to disable display sleep (no screen saver) 2018-07-04 13:13:03 -07:00
Stuart Carnie a19ea2ed07 feat(Metal): Add support for overlays 2018-07-04 13:12:40 -07:00
Twinaphex 4b6d6dd421 Merge pull request #6946 from Dwedit/bom_fix
Fix missing BOM on msg_hash_pl.h
2018-07-04 21:32:45 +02:00
Twinaphex a0b1937584 Merge pull request #6947 from Dwedit/message_loop_fix
Moved WIN32 message loop from win32_check_window to before runloop_iterate
2018-07-04 21:30:11 +02:00
Dwedit 7108628369 Moved WIN32 message loop out of win32_check_window, and into just before the call to runloop_iterate 2018-07-04 14:20:38 -05:00
Dwedit 3deb56690a Fix missing BOM on msg_hash_pl.h 2018-07-04 14:14:01 -05:00
Twinaphex 63a071b85a Merge pull request #6945 from Themaister/master
Vulkan: WSI stability fixes
2018-07-04 21:04:08 +02:00
Hans-Kristian Arntzen 52cb0fe375 Vulkan: Fix crash when we get two create_swapchain errors in a row. 2018-07-04 20:25:03 +02:00
Hans-Kristian Arntzen f1d2dac213 Vulkan: Fix various stability issues with WSI.
Added an ifdef to trigger "hardening" which will return spurious errors
for critical WSI things like acquire next image, queue submit and
surface dimension queries.
2018-07-04 19:45:54 +02:00
Twinaphex c8fc27099d Merge pull request #6944 from stuartcarnie/sgc-metal
feat(Metal): Support vsync enable / disable
2018-07-04 19:08:01 +02:00
Stuart Carnie 048aa16599 feat(Metal): Support vsync enable / disable 2018-07-04 09:50:09 -07:00
Twinaphex 2752651de9 Merge pull request #6941 from stuartcarnie/sgc-metal
fix(Metal): fix XRGBA rendering; no nil texture; undefined stuff bad
2018-07-04 18:08:04 +02:00
Stuart Carnie 844e5e15d0 fix(Metal): fix XRGBA rendering; no nil texture; undefined stuff bad 2018-07-04 08:50:46 -07:00
Twinaphex c0dba89d43 Update CHANGES.md 2018-07-04 15:30:07 +02:00
Twinaphex 5552838e34 Merge pull request #6940 from DEX357/patch-17
Update msg_hash_pl.h
2018-07-04 15:05:02 +02:00
Twinaphex 06d8b1fbaa Merge pull request #6939 from theheroGAC/patch-34
Update msg_hash_it.h
2018-07-04 15:04:54 +02:00
Twinaphex 5575bdb449 Merge pull request #6938 from stuartcarnie/sgc-metal
feat(metal): xmb menus and shader pipeline support
2018-07-04 15:04:44 +02:00
DEX357 17f0ef7dd8 Update msg_hash_pl.h 2018-07-04 12:10:39 +02:00
Stuart Carnie 8a298616aa chore(cocoa): reformat (3 spaces, etc) 2018-07-04 00:24:47 -07:00
Stuart Carnie 5240efc857 chore(Metal): fix compiler warnings when targeting newer macOS versions 2018-07-04 00:24:04 -07:00
Stuart Carnie 30d2192338 fix(Metal): Fix release build crash for misaligned read 2018-07-04 00:16:14 -07:00
theheroGAC 905e9e83c0 Update msg_hash_it.h 2018-07-04 08:27:33 +02:00
Stuart Carnie 44ca1062b0 formatting 2018-07-03 22:32:12 -07:00
Stuart Carnie a0900ec433 feat(Metal): full xmb pipeline support
Menu TODOs:

* understand why ribbon does not look the same as GL
* add clear support to `MenuDisplay` for glui
2018-07-03 22:32:12 -07:00
Stuart Carnie 4a101734a1 More cleanup
* use single render command encoder for display for better performance
* Context handles all rendering and presentation
2018-07-03 22:32:12 -07:00
Stuart Carnie 1c5d94aca1 Improve performance; don't care about previous state ofcolor attachment
Color attachment is being completely overwritten.
2018-07-03 22:32:12 -07:00
Stuart Carnie 5e1f991e32 feat(Metal): initial xmb and glui menu support
TODOs

* menu shader pipeline effects
* refactor / optimize graphics rendering
2018-07-03 22:32:12 -07:00
Stuart Carnie 4135300b04 fix(materialui): Assign scale_factor and rotation to draw 2018-07-03 22:32:12 -07:00
Twinaphex 149f5b73a1 Merge pull request #6937 from DEX357/patch-16
Update msg_hash_pl.h
2018-07-04 00:59:04 +02:00
Twinaphex e0b71de5df Merge pull request #6936 from DEX357/patch-15
Update msg_hash_pl.h
2018-07-04 00:58:56 +02:00
DEX357 7a001a07aa Update msg_hash_pl.h 2018-07-02 20:13:19 +02:00
DEX357 f8f620f268 Update msg_hash_pl.h 2018-07-02 20:01:03 +02:00
Brad Parker 04d5e6368e Merge branch 'master' into qt_grid 2018-07-02 11:52:04 -04:00
Brad Parker c4f34f3c6f update JP translation 2018-07-02 11:51:00 -04:00
twinaphex 30f97ebe52 Add this 2018-07-01 22:22:17 +02:00
Twinaphex 4eb4c7b97d Create internal_cores.h 2018-07-01 21:19:40 +02:00
Twinaphex 39a1e494c5 Update CHANGES.md 2018-07-01 17:00:58 +02:00
Twinaphex 121ff2d4a5 Merge pull request #6931 from DEX357/patch-14
Update msg_hash_pl.h
2018-07-01 16:58:58 +02:00
Twinaphex 9cdf477c59 Merge pull request #6933 from Themaister/master
Vulkan: Try to avoid creating swapchains redundantly.
2018-07-01 16:58:30 +02:00
Themaister f2cae17021 Vulkan: Try to avoid creating swapchains redundantly.
Win32: Only make resize events when needed.
Do not create swapchain unless necessary.
Deal better with Windows WSI workarounds.
2018-07-01 16:21:09 +02:00
twinaphex efe9fc7339 Buildfix 2018-07-01 16:19:10 +02:00
DEX357 bf8e5c2e90 Update msg_hash_pl.h 2018-07-01 13:40:35 +02:00
Twinaphex 928cfacb11 Merge pull request #6930 from DEX357/patch-13
Update msg_hash_pl.h
2018-07-01 13:39:11 +02:00
DEX357 ebabd9486b Update msg_hash_pl.h 2018-07-01 13:34:16 +02:00
Twinaphex c4611f6379 Merge pull request #6928 from Themaister/master
Vulkan: Support multiple displays in VK_KHR_display.
2018-07-01 01:58:28 +02:00
Themaister c4ba8d26a0 Support multiple displays in VK_KHR_display. 2018-07-01 01:21:51 +02:00
Twinaphex a3ae537c02 Merge pull request #6862 from gblues/master
WIIU: cleanups to wiiu bootstrap code
2018-06-30 14:31:22 +02:00
Twinaphex 5366fc1f29 Merge pull request #6926 from fr500/staging
Android fixes
2018-06-30 14:31:06 +02:00
radius 717e45dc52 Add mouse wheel support
enable hold to bind on android

cleanup
2018-06-29 21:12:47 -05:00
radius fef9b63bc0 Revert "Disable ENABLE_TOUCH_SCREEN_MOUSE for now until issues are resolved"
This reverts commit 2b02616512.
2018-06-29 21:12:47 -05:00
David Walters 91dd569a73 fix: keep resetting bind during the hold period 2018-06-29 21:12:46 -05:00
David Walters d73954085a Hold to bind function (disabled with #if 0) 2018-06-29 21:12:46 -05:00
David Walters 70eda90d03 more accurate rarch_timer 2018-06-29 21:12:46 -05:00
David Walters 8a2b23de34 new setting "input_bind_hold" 2018-06-29 21:12:45 -05:00
Brad Parker 04311695aa netplay: always use configured port instead of hardcoding, and don't ask for IP address if one is already set. fixes #6626 2018-06-27 23:03:27 -04:00
Brad Parker 15924e5d9b fix "runtime error: member call on null pointer of type 'struct AppHandler'" 2018-06-27 13:25:13 -04:00
Twinaphex e786afe481 Update config.def.h 2018-06-27 00:25:52 +02:00
twinaphex 8a1c0be83c (Android) Another potential buildfix; define ENABLE_HLSL
(slang_process) Put HLSL/Cg code around ENABLE_HLSL ifdef
(SPIRV-Cross) Make sure macros no longer need to be redefined; make them
unique in both glsl and hlsl files; needed for Griffin builds
2018-06-26 13:18:17 +02:00
twinaphex 3bbf34aa58 Merge branch 'master' of https://github.com/libretro/RetroArch 2018-06-25 23:55:53 +02:00
twinaphex 0230c2f4d8 Merge commit 'a078d40b80103ba083ad04eab625084279e930b3' 2018-06-25 23:55:41 +02:00
twinaphex a078d40b80 Squashed 'libretro-common/' changes from edffe4d147..1548bee835
1548bee835 Update glsm
df7c8aebea Update glsm

git-subtree-dir: libretro-common
git-subtree-split: 1548bee835ab5fa2d120a4859ff653a5f128de1f
2018-06-25 23:55:40 +02:00
Twinaphex f88f7419d7 Merge pull request #6923 from libretro/revert-6922-revert-6882-patch-3
Revert "Revert "(wiiu) Use portlibs zlib and libpng""
2018-06-25 23:26:51 +02:00
Twinaphex 893dbc6bee Revert "Revert "(wiiu) Use portlibs zlib and libpng"" 2018-06-25 23:26:43 +02:00
Twinaphex 7bdf0fd9a6 Merge pull request #6922 from libretro/revert-6882-patch-3
Revert "(wiiu) Use portlibs zlib and libpng"
2018-06-25 22:33:53 +02:00
Twinaphex 3c6c9a8b08 Revert "(wiiu) Use portlibs zlib and libpng" 2018-06-25 22:33:45 +02:00
twinaphex 2ef56e906c Don't define this unless necessary 2018-06-25 21:52:24 +02:00
twinaphex d967cbc879 Add another ENABLE_HLSL ifdef 2018-06-25 21:51:23 +02:00
Twinaphex 0f4744bed7 Merge pull request #6921 from theheroGAC/patch-33
Update msg_hash_it.h
2018-06-25 21:40:39 +02:00
theheroGAC 8017f706d8 Update msg_hash_it.h 2018-06-25 21:38:22 +02:00
twinaphex 9d6de6b60d Buildfix for MSVC 2010 2018-06-25 19:49:41 +02:00
Twinaphex 07d226a76d Merge pull request #6882 from opendata26/patch-3
(wiiu) Use portlibs zlib and libpng
2018-06-25 18:16:59 +02:00
twinaphex 234102d475 (glslang) Buildfix for Android 2018-06-25 16:52:15 +02:00
Twinaphex e10d7d93df Merge pull request #6906 from meleu/patch-1
cheevos: support for ResetIf/PauseIf HitCount - closes #6817
2018-06-24 19:45:07 +02:00
Twinaphex 3bdc7ca352 Merge pull request #6915 from RobLoach/osd-font
freetype: Allow getting OSD Font from Assets Directory
2018-06-24 18:13:18 +02:00
Rob Loach e4fe33f437 freetype: Add comment about assets:// 2018-06-24 12:02:28 -04:00
Twinaphex 8585617f69 Merge pull request #6916 from stuartcarnie/sgc-metal
feat(Metal): font rendering
2018-06-24 17:54:37 +02:00
Rob Loach 8a96062ed0 freetype: Rename to osd-font.tff 2018-06-24 11:19:40 -04:00
Rob Loach da6b7987f1 freetype: Get DejaVuSansMono.ttf from the assets directory 2018-06-24 11:00:21 -04:00
Twinaphex 1504a9ed2d Merge pull request #6914 from DEX357/patch-12
Update msg_hash_pl.h
2018-06-24 16:20:57 +02:00
Stuart Carnie 367c15f488 feat(Metal): font rendering
* FPS and other OSD messages render correctly
* add autoreleasepool around entire render loop to avoid memory leaks
2018-06-23 23:54:23 -07:00
DEX357 e8e6f20f6c Update msg_hash_pl.h 2018-06-24 00:53:52 +02:00
Twinaphex c10aab9830 Merge pull request #6912 from stuartcarnie/sgc-metal
More metal resize, stability improvements
2018-06-24 00:28:22 +02:00
Stuart Carnie eacd52f009 fix(Metal): improve shader stability
* use MTKView, which handles layer and scaling changes automatically
  between displays
2018-06-23 13:33:27 -07:00
Stuart Carnie ee8d82dcfe add additional project files 2018-06-23 13:33:27 -07:00
meleu 536638eaf6 support for ResetIf/PauseIf HitCount 2018-06-23 17:25:16 -03:00
Jean-André Santoni 2a2e732a79 (Menu) Add a setting to hide the shutdown option 2018-06-23 12:01:13 +07:00
Jean-André Santoni ab3d8979ea (Menu) Hide overlays, rewind and latency in kiosk mode 2018-06-23 11:18:37 +07:00
twinaphex 7566e09970 Squashed 'libretro-common/' changes from c3c0facc97..edffe4d147
edffe4d147 Buildfix for 3DS - implicit declaration of isspace et al.

git-subtree-dir: libretro-common
git-subtree-split: edffe4d1470ae6b846e420392d324c1b2b14281a
2018-06-22 17:43:11 +02:00
Jean-André Santoni 6868670136 (XMB) Code cleaning 2018-06-22 22:31:06 +07:00
Jean-André Santoni 1ff15fd071 (Lakka) Flag MIDI menu as advanced 2018-06-22 22:25:07 +07:00
Jean-André Santoni bea3822331 (Lakka) Flag more settings groups with SD_FLAG_LAKKA_ADVANCED 2018-06-22 22:22:46 +07:00
Jean-André Santoni cfa53dd694 Update vscode includePath 2018-06-22 22:14:52 +07:00
twinaphex e8b0d6974d Merge commit '48cb38619ff8bbc5ff3c0df93704b3297047a8fe' 2018-06-22 15:00:02 +02:00
twinaphex 48cb38619f Squashed 'libretro-common/' changes from 999e69a9f1..c3c0facc97
c3c0facc97 whoops, cute bug
fc2866b999 no real point leaving these unimplemented, they're easy
bd1d5800db Add filestream_scanf

git-subtree-dir: libretro-common
git-subtree-split: c3c0facc97d3a4c065c72961b5ab165b99d3153c
2018-06-22 15:00:02 +02:00
twinaphex e3d406808f Merge branch 'master' of https://github.com/libretro/RetroArch 2018-06-21 21:54:34 +02:00
twinaphex 8baffb3fdf OPtionally compile hlsl files 2018-06-21 21:53:44 +02:00
Twinaphex 3df1fd7993 Update CHANGES.md 2018-06-21 10:20:31 +02:00
Twinaphex ad593a1eae Update CHANGES.md 2018-06-21 08:43:49 +02:00
Twinaphex 58351230d8 Update CHANGES.md 2018-06-21 08:39:41 +02:00
Twinaphex 511044270b Fix iOS build 2018-06-21 08:37:08 +02:00
twinaphex 3799a33efa Silence warnings 2018-06-21 08:31:08 +02:00
twinaphex 837cf84fc8 Put this around an ifdef 2018-06-21 08:26:27 +02:00
Twinaphex c0beef8365 Merge pull request #6905 from stuartcarnie/sgc-metal
fix(Metal): fix project file to include .metal resources
2018-06-21 08:25:43 +02:00
twinaphex 863204b343 Merge commit 'c68f2796b95838412610023611398d7c9968a3f3' 2018-06-21 08:22:10 +02:00
twinaphex c68f2796b9 Squashed 'libretro-common/' changes from c9b117d5b8..999e69a9f1
999e69a9f1 More warning fixes

git-subtree-dir: libretro-common
git-subtree-split: 999e69a9f1c3818b6018f39579421e7e52c6bb1b
2018-06-21 08:22:09 +02:00
twinaphex d14a3f0d1f Merge commit '5c25cc90765cbf6ad7f01c0b635c72595bc7f457' 2018-06-21 08:18:08 +02:00
twinaphex 5c25cc9076 Squashed 'libretro-common/' changes from 3d989dc968..c9b117d5b8
c9b117d5b8 Silence more warnings

git-subtree-dir: libretro-common
git-subtree-split: c9b117d5b8135acd6c175e93931f39067e7d0ec4
2018-06-21 08:18:07 +02:00
twinaphex 0d8729daa6 FIx warning 2018-06-21 08:12:02 +02:00
twinaphex 944cac8352 Squashed 'libretro-common/' changes from 156677b98e..3d989dc968
3d989dc968 Cleanups
dabdf7c539 Updates

git-subtree-dir: libretro-common
git-subtree-split: 3d989dc968fa529e91d8e8e4f42f8909451aa7a3
2018-06-21 08:07:19 +02:00
twinaphex 697531dbdd Merge commit '944cac83520c99e1ddf3d8cd3bf25990c8746d14' 2018-06-21 08:07:19 +02:00
Stuart Carnie 3462fd248c fix(Metal): fix project file to include .metal resources 2018-06-20 22:58:36 -07:00
twinaphex b05026b69f Buildfix 2018-06-21 07:56:40 +02:00
Twinaphex fd11b205da Silence bunch of warnings 2018-06-21 07:52:01 +02:00
Twinaphex 2bdffff435 Silence more warnings 2018-06-21 07:34:27 +02:00
Twinaphex 467aa30131 Cleanups 2018-06-21 07:26:05 +02:00
Twinaphex cede1e38f2 Update CHANGES.md 2018-06-21 07:09:46 +02:00
Twinaphex cd174c899a Merge pull request #6904 from stuartcarnie/sgc-apple-metal
feat(apple): Metal support for macOS
2018-06-21 06:44:03 +02:00
Stuart Carnie 411bcf8bdd feat(apple): Metal support for macOS
* includes rgui
* shader support

This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00
Twinaphex 1a091a83af Merge pull request #6902 from DEX357/patch-11
Update msg_hash_pl.h
2018-06-21 05:47:40 +02:00
DEX357 05464a469e Update msg_hash_pl.h 2018-06-20 19:57:44 +02:00
twinaphex b10f1faf7a Updates 2018-06-20 16:29:14 +02:00
twinaphex 8232265c8f Change MIDI submenu 2018-06-20 16:27:00 +02:00
twinaphex fb2d27931d Fix some warnings 2018-06-20 16:21:53 +02:00
twinaphex f8cad6f565 Update glslang 2018-06-20 10:47:08 +02:00
twinaphex 1f571be61d Fix warning 2018-06-20 10:24:10 +02:00
twinaphex 684b2f5722 Get rid of glslang-old 2018-06-20 10:23:00 +02:00
twinaphex abf7bf877e (glslang) Buildfix #1 2018-06-20 10:22:08 +02:00
twinaphex c15950a80c Merge commit 'db3f820301d386847befd1f43da650b2748e3e57' as 'deps/glslang-new' 2018-06-20 10:07:00 +02:00
twinaphex db3f820301 Squashed 'deps/glslang-new/' content from commit 5fe506a8ba
git-subtree-dir: deps/glslang-new
git-subtree-split: 5fe506a8ba0ce5629004d593da16db7f3f57c58b
2018-06-20 10:07:00 +02:00
twinaphex 0328298474 Squashed 'deps/SPIRV-Cross/' changes from c9516fa917..e59cc24495
e59cc24495 Merge pull request #607 from billhollings/master
ac57a30ad6 Regenerate MSL shaders to fix conflicts from merge.
ab2ea93e35 Merge branch 'master' of https://github.com/KhronosGroup/SPIRV-Cross
9b4defe202 CompilerMSL support matrices & arrays in stage-in & stage-out.
285f214071 Merge pull request #605 from KhronosGroup/unpack-regular-operations-msl
58fab58e5e Do not unpack transposed matrices.
192a882df3 Also unpack regular unary/binary operations on MSL.
dc565136fb Merge pull request #604 from KhronosGroup/fix-603
b86bd0a265 Unpack expressions when used in functions on MSL.
c5b6ba239c Merge pull request #599 from KhronosGroup/fix-295
f1e8555801 Emit matrix layouts in structs directly.
b1196f2ace Merge pull request #598 from KhronosGroup/fix-594
6bcc890e63 Sanitize underscores in general, not just for members.
6fea07f2fd Merge pull request #597 from KhronosGroup/fix-595-596-592
3a9b045dc3 Various maintenance fixes.
0a83bacf3e Merge pull request #593 from KhronosGroup/old-clang-compile
2a1ab4108b Fix compile on older clang.
6ef1c49ec0 Merge pull request #591 from KhronosGroup/fix-578
04b149feb0 Fix image load/store on cube arrays in MSL.
8bac5c09f3 Merge pull request #590 from KhronosGroup/fix-581
f65120c147 Deal with packed expressions in more scenarios.
db1ed375b0 Merge pull request #589 from KhronosGroup/fix-580
280fb93204 Add test for reading SSBO from fragment shader on MSL.
a1b3964cbd Run format_all.sh.
6b3da831be Declare read-only SSBOs as const device in MSL.
08336e7bbb Merge pull request #588 from KhronosGroup/pr-583
46bf17c5d3 Add SREM tests for HLSL/MSL.
7cba89b4a5 Add reference files for SREM.
6b144cc609 handle OpSRem
e792cd6160 no expression type for OpSRem
f1eacba244 Merge pull request #587 from zeux/master
91fd41816f Fix textureGrad compilation for legacy targets
8cc1fdbb30 Merge pull request #586 from KhronosGroup/fix-584
ba15daee33 Add support for inheriting bindings for combined image samplers.
f929c361c5 Merge pull request #577 from KhronosGroup/fix-575
bcaae84c76 Deal with scoping for Private variables.
26b887ec99 Fix atomic_compare_exchange_weak_explicit.
62c6d2d498 Merge pull request #576 from KhronosGroup/fix-574
fb7181bff1 Run format_all.sh.
c643addacd Only reflect spec constant if it actually has a constant ID.
991b655c72 Declare OpSpecConstantOp up-front on relevant targets.
0617b98613 Run format_all.sh.
3951b9456f Fix SpecConstantComposite if input is SpecConstantOp.
c74dc4578a Merge pull request #572 from KhronosGroup/vulkan-glsl-sampler-mediump
01080365fa Use mediump on images in --vulkan-semantics as well.
9d370aca58 Merge pull request #571 from KhronosGroup/fix-570
7eba247864 Handle inout properly with split access chains.
97e38bcd38 Merge pull request #569 from KhronosGroup/fix-566
b71f5dfc0c Fix split access chains for builtin arrays.
e4694a8403 Merge pull request #568 from KhronosGroup/fix-567
903b798da7 Fix GCC 8.1 build.
d3b966322d Merge pull request #565 from pmuetschard/master
aced6058b4 Don't limit GLSL identifiers with HLSL keywords.
2792f8f3f2 Merge pull request #564 from KhronosGroup/fix-563
85a8f066f4 Do not use RMW rewrite for matrices.
04f0a08cfc Merge pull request #562 from KhronosGroup/fix-561
d2df067dd4 Force recompile if we add row-major transpose functions in MSL.
7b95168c3d Do not clear spv_function_implementations on MSL.
9279750a1d Merge pull request #560 from KhronosGroup/fix-557
17be3c652f Deal with fake overloads when using combined image samplers.
e80d6e0142 Merge pull request #559 from KhronosGroup/fix-558
3187d89c31 Reduce test case ... MSL can't deal with certain unusual cases yet.
f3e810b8b3 Fix OpCompositeConstruct with arrays in MSL.
9d43e9c02a Merge pull request #556 from billhollings/master
ba1026b899 Merge branch 'master' of https://github.com/KhronosGroup/SPIRV-Cross
57213cb7ca Compiler MSL default gather offset when component specified.
1ebccb4466 Mention Wiki in README.
8f07df016b Merge pull request #555 from KhronosGroup/fix-553
7e23e69f2a Run format_all.sh.
47081f810a Fix GatherDref on GLSL.
6b478c928d Merge pull request #554 from KhronosGroup/query-fixes
40bbf6be7a Build combined dummy samplers for Query functions without sampler as well.
d93807a625 Deal with OpImageFetch without explicit LOD.
454691f434 Merge pull request #547 from KhronosGroup/op-image-usage-tracking
aaf397cd1f Fix usage tracking issue for OpImage.
bbf6b60350 Merge pull request #546 from KhronosGroup/fix-545
893ed379d5 Remove some stale test files.
cd442b9c2f Clean and fix some issues with test_shaders.py.
18958ecccb Add test for combined-sampler-reuse on GLSL.
0280800a8f Fix case where SampledImage would get flushed to temporary.
a090907607 Merge pull request #543 from KhronosGroup/fix-542
8b75e46433 Fix some formatting issues.
f56433b802 Add new tests for combined arrays of sampler + image.
a39eb4826b Combined array of images is starting to work ...
1478847122 Change AppVeyor badge link to the correct one.
d559a8df39 Add AppVeyor status badge.
dd39d36726 Merge pull request #540 from KhronosGroup/appveyor
cc82d14ee8 Add appveyor script.
d0c829b580 Add no-opt to CTest, make test_shaders.py faster when FXC is missing.
2804d9acd7 Merge pull request #539 from KhronosGroup/fix-533
e351e5c565 Use convert_to_string for lod clamp.
e30a94225f Complete MSL constexpr samplers.
64f9461d72 Check for array of samplers.
df58debf7a Add support for constexpr samplers in MSL.
3a8335eee0 Merge pull request #537 from KhronosGroup/fix-535
b9cd3dcd7f Run format_all.sh.
e930f79e2e Be a bit smarter about uint on legacy targets.
2684054bbd Merge pull request #538 from KhronosGroup/fix-io-block-location
b06c1af9b3 Distinguish between enhanced_layouts and SSO requirements.
28c9be8a23 Unsigned integers are disallowed on legacy targets.
7796a9f3ec Merge pull request #531 from KhronosGroup/subgroup
c266429be9 Partially implement subgroup ops for HLSL SM 6.0.
146ea76f52 Add test shader for subgroup.
e1ccfd5dbb Implement all of subgroup.
f6c0e53f58 Start adding Vulkan 1.1 subgroup support to GLSL.
489e04e09e Merge pull request #530 from KhronosGroup/fix-529
9c2761f69a Run format_all.sh.
8175e2e200 Fix depth compare textures when used in functions without argument.
edac731360 Merge pull request #528 from msiglreith/fix_root_constants_name
6bdd775936 Merge pull request #526 from taisei-project/strip-uniform-location
f260c452f7 Fix naming of root constants
4a43024dba Strip uniform locations for ESSL < 3.00 and GLSL < 430
9b8c2c4654 Merge pull request #524 from KhronosGroup/fix-512-523
694b314f87 Support empty structs.
31a3fdf4ee Decouple public require_extension and the internal use of the function.
d0133c5dd9 Merge pull request #509 from KhronosGroup/hlsl-semantic-counter-buffer
d8cdab2f57 Add test shader for semantic decoration.
05c66f9cac Add test shader which uses counter buffer extension.
215d3ca0a4 Add support for new HLSL semantic/counter buffer decorations.
7f84537350 Merge pull request #519 from KhronosGroup/fix-507
ac81a0ce68 Use declared binding in SPIR-V as a fallback for explicit MSL binds.
e8ca39b7b5 Add test for sampler image arrays.
382101bd05 Run format_all.sh.
1d082e9b79 Fix passing arrays of combined image samplers in HLSL.
5827dd54ea Support array of images and samplers in MSL.
81eb72a9a0 Ignore LOD when sampling 1D textures in MSL.
69ffd918a6 Merge pull request #522 from KhronosGroup/fix-515
938040be0b Only disable binding layout for UBOs.
fe697a80f5 Emit classic uniform for UBO in GLSL 1.30.
65be63fd04 Merge pull request #521 from KhronosGroup/fix-516
a6e211e00b Support dual-source blending on GLSL and MSL.
a1e30c8c2b Merge pull request #520 from KhronosGroup/fix-517
3229e6efb6 Add more illegal name replacement in MSL.
761b06bc73 Merge pull request #514 from KhronosGroup/fix-510
a901b4c814 Remove redundant temporary sort.
c1947aa447 Update glslang/SPIRV-Tools on Travis.
35f64d03bb Fix name aliasing for temporary variables.
5161d5ed3b Merge pull request #505 from KhronosGroup/msl-array-mrt
719cf9d42f Run format_all.sh.
8e90382675 Properly flatten MRT outputs in MSL.
6e6ca0b237 Attempt MRT-as-array in MSL.
fbfe13657a Merge pull request #502 from KhronosGroup/update-glslang-spirv-tools
4f348a9807 Update README and update_test_shaders.sh.
b46910e9f5 Access chain into packed vectors as arrays.
a6afda650f Add newly moved reference files.
cdbd376c42 Try building debug on Travis.
e7bf8d2f48 Refactor out noopt shaders to their own folders.
1a4a36b6cd Experiment a bit more with Travis.
5a746ba941 Split checkout and build on Travis CI.
4979d10b54 Implement packHalf2x16/unpackHalf2x16 on MSL.
ae2680c898 Make sure ballotARB inherits expression dependencies.
938c7debed Handle control-dependent temporaries.
012377f811 Refactor block IO emission to use bitset.
955eac522b Make use of the handy scripts for Travis as well.
9fbd8b789e Update tests for latest SPIRV-Tools and glslang.
e8e58844d4 Rewrite everything to use Bitset rather than uint64_t.
29315f3b3f Merge pull request #498 from JustSid/master
e66fd6c2a0 Added generation of the textureXYZGrad() legacy GLSL instruction
0f9cb0da0d Merge pull request #497 from KhronosGroup/fix-489
9a52713d77 Run format_all.sh.
a803e5ae38 Deprecate set_options()/get_options() interface, replace it.
236b2fa47c Merge pull request #496 from KhronosGroup/fix-494
e3b8e9455c Add test shader where a phi variable invalidates a temporary.
1de74fdabd Explicitly emit break/continues in selection branches.
e0efa737ca Expand the implementation of inherit_expression_dependencies.
01fbb3a342 Merge pull request #495 from KhronosGroup/fix-493
28cccc3dbb Emit complex continue blocks "properly".
54549a624f Add some test shaders for special merge methods.
8d557d4103 Handle cases where merge selects as also loop merge or continue blocks.
8c8a93f745 Merge pull request #492 from KhronosGroup/fix-488
922420e346 Disallow arrays and structs from becoming loop variables.
2e5d06d1ce Merge pull request #485 from KhronosGroup/fix-484
bdabd0c73a Disable double test in MSL FP16 tests.
723bec5d33 frexp/ldexp fails in debug builds, workaround temporarily.
0780820a7b Skip interpolateAt tests with FP16.
ac0e93f392 Run format_all.sh.
18ad1be3c3 Add FP16 test for MSL as well.
47d94ff8d9 Add FP16 to HLSL.
770ed25f29 Merge pull request #487 from KhronosGroup/fix-486
15a941cd3d Add builtin GLSL functions to blacklist.
d9da2db442 Some compat fixes for MSL and Half.
547278da12 Test denormal fp16 constants.
24dfe496c2 Run format_all.sh.
05348a66ca Add test shader for FP16 support.
bc0f698df3 Fix packing alignments for float16.
91f85d3412 Begin adding float16_t support to GLSL.
b0a2de5b63 Merge pull request #483 from KhronosGroup/fix-466
38d9d8af68 Add some more MSL test shaders.
5fe79eb59c Update tests.
294259e2f1 Fix type aliasing on MSL.

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: e59cc244958af6059f7bd1d16d833e17409dec37
2018-06-20 09:32:45 +02:00
twinaphex 4fb79dfffe Merge commit '032829847454432a4b149452d6354c13c5888239' 2018-06-20 09:32:45 +02:00
twinaphex e3d04fd14a This spams too much, disable this 2018-06-20 07:31:05 +02:00
Twinaphex cdbdd04cda Merge pull request #6901 from RobLoach/gtest-submodule
discord: Remove the gtest submodule
2018-06-20 07:24:49 +02:00
Rob Loach e45692b70d rapidjson: Remove the gtest folder 2018-06-20 00:23:15 -04:00
twinaphex 2367c33887 Mpv integration now works 2018-06-20 06:17:47 +02:00
twinaphex d27b6265a0 Add more HAVE_MPV ifdefs 2018-06-20 04:50:58 +02:00
twinaphex 0286829348 Start adding HAVE_MPV ifdefs 2018-06-20 04:29:31 +02:00
twinaphex e51d8b6b0f Update mpv-libretro.c 2018-06-20 03:53:37 +02:00
twinaphex f9f15dc5c5 Update mpv libretro core 2018-06-20 03:46:53 +02:00
Twinaphex dde650074a Update CHANGES.md 2018-06-19 14:31:49 +02:00
Twinaphex 7385cc3d23 Merge pull request #6899 from DEX357/patch-10
Update msg_hash_pl.h
2018-06-19 14:31:06 +02:00
DEX357 c7d565c6c2 Update msg_hash_pl.h 2018-06-19 14:03:48 +02:00
twinaphex c4da475384 Buildfix 2018-06-19 11:59:41 +02:00
Twinaphex 76d540a075 Merge pull request #6898 from libretro/android_susperf_setting
android: add configurable setting for Sustained Performance Mode
2018-06-19 09:30:30 +02:00
Brad Parker aa083d1e4c android: add configurable setting for Sustained Performance Mode 2018-06-19 02:50:33 -04:00
twinaphex 981b0eec91 Take this out 2018-06-19 06:28:38 +02:00
twinaphex c1f16e156e Add Power Management submenu 2018-06-19 06:23:38 +02:00
Twinaphex 48128a9b36 Merge pull request #6894 from libretro/android_susperf
android: enable sustained performance mode if supported
2018-06-19 04:41:02 +02:00
Twinaphex 1feadee0cb Merge pull request #6895 from casdevel/midi
Document MIDI interface
2018-06-18 23:53:53 +02:00
opendata26 707855beda (wiiu) add back HAVE_BUILTINZLIB but disabled by default 2018-06-18 21:41:30 +01:00
Zoran Vuckovic 8d99044fb4 Document MIDI interface 2018-06-18 21:26:10 +02:00
Brad Parker 612ed942d0 android: enable sustained performance mode if supported, bump target API to 24 2018-06-18 12:56:14 -04:00
twinaphex ca3b8149a8 MSVC 2003 buildfix 2018-06-18 05:03:26 +02:00
Twinaphex 798635bf8a Update CHANGES.md 2018-06-18 03:21:28 +02:00
twinaphex 54a95eed83 These defines are not available on Android NDK APIs lower than 24 2018-06-18 01:56:22 +02:00
twinaphex e39b92a1f0 Another buildfix 2018-06-18 01:44:17 +02:00
twinaphex 7d3f62a816 Buildfix 2018-06-18 01:35:38 +02:00
twinaphex a6b0dd9f57 Buildfixes 2018-06-18 01:05:52 +02:00
twinaphex e0405b2f5c Add MIDI to Griffin 2018-06-18 00:37:51 +02:00
Twinaphex 49f3dacde5 Merge pull request #6892 from casdevel/midi
Add MIDI support
2018-06-17 23:07:26 +02:00
twinaphex 76db13fda4 Merge commit '950525a37032877e080ee0f4455c0c4cda550d45' 2018-06-17 20:11:37 +02:00
twinaphex 950525a370 Squashed 'libretro-common/' changes from 8030c86033..156677b98e
156677b98e Update

git-subtree-dir: libretro-common
git-subtree-split: 156677b98efb626c8b4c6fe8df4730ed0a15120f
2018-06-17 20:11:36 +02:00
twinaphex fa1ec0780b Merge commit '3997b59cd652c7852f866aa11c25693fab6bbcda' 2018-06-17 20:04:50 +02:00
twinaphex 3997b59cd6 Squashed 'libretro-common/' changes from 705d72b4a3..8030c86033
8030c86033 Update
5303312e02 Update
a5507504f4 Merge pull request #80 from markwkidd/patch-2
fde3bc8334 Update libretro.h
afa570f1c0 clarify how input device subclasses are declared
4c0a96ba8a Update glsm.c
e5c75fcecb Merge pull request #78 from markwkidd/correct-path_remove_extension-desc
9713f7f66e correct path_remove_extension docs

git-subtree-dir: libretro-common
git-subtree-split: 8030c86033c7c20f554d41e009fc73f1bf4dff2d
2018-06-17 20:04:50 +02:00
Zoran Vuckovic 22d30a0dbf Fix segfault on device change 2018-06-17 18:50:27 +02:00
Twinaphex 7335db08dc Update CHANGES.md 2018-06-17 05:10:44 +02:00
Twinaphex ef1ec3131e Update CHANGES.md 2018-06-17 05:10:00 +02:00
Twinaphex 6df3597f97 Merge pull request #6881 from L0sted/master
Some russian translations
2018-06-17 02:27:05 +02:00
Twinaphex fde7796cb0 Merge pull request #6888 from bparker06/android_battery
support powerstate/battery level in Android
2018-06-17 02:26:10 +02:00
Brad Parker 7176bb19ad support powerstate/battery level in Android 2018-06-16 19:15:16 -04:00
Zoran Vuckovic b487c3cace Add MIDI support 2018-06-16 21:17:32 +02:00
opendata26 cbc804783f (wiiu) Use portlibs zlib and libpng
Zlib needed for libpng to work, used in some cores.

Signed-off-by: Craig Tatlor <[email protected]>
2018-06-15 18:53:45 +01:00
Twinaphex 9d0c0b77ee Merge pull request #6883 from fr500/master
subsystem: set the subsystem correctly
2018-06-14 23:54:18 +02:00
radius aa35b9da46 subsystem: set the subsystem correctly 2018-06-14 16:38:27 -05:00
l0sted 81e01da585 a lot of work 2018-06-14 15:48:44 +03:00
Twinaphex fd1c354811 Merge pull request #6876 from retro-wertz/patch-1
Better no log at all than showing a false log
2018-06-14 00:51:17 +02:00
l0sted a90008f7ed a lot of changes 2018-06-13 15:32:48 +03:00
l0sted 99b6757400 Latency translation 2018-06-13 13:30:01 +03:00
l0sted af02712712 Updated russian translation 2018-06-13 13:21:15 +03:00
Brad Parker 19dd1c15eb Merge branch 'master' into qt_grid 2018-06-12 20:49:50 -04:00
bparker06 ab9e00219d Add null pointer check 2018-06-11 20:28:36 -04:00
Twinaphex 890c781a76 Merge pull request #6874 from altiereslima/master
Update portuguese brazilian translation.
2018-06-11 14:48:50 +02:00
retro-wertz ce27e986e9 Better no log at all than showing a false log
This false message has been like foreve. Nobody seems interested in updating "small and minor" things. so lets just remove this....
2018-06-11 17:08:59 +08:00
altiereslima 3f04c639b4 Update portuguese brazilian translation. 2018-06-10 19:58:50 -03:00
gblues 9ea16c0b3d Updates from PR feedback (ty @aliaspider) 2018-06-07 21:16:49 -07:00
gblues 8b87a53366 Replace hokey "hooks" struct with weak symbol annotations
- Did a test build to ensure RA built
- Copied over to my FTPservU sources and ensured no compile issues there

Looks solid. A lot cleaner, too.

@aliaspider
2018-06-07 18:41:16 -07:00
Twinaphex a4144dfe9b Merge pull request #6869 from FIX94/master
(GC) ACTUALLY fix up build
2018-06-07 21:10:32 +02:00
FIX94 6ede99b47b (GC) ACTUALLY fix up build 2018-06-07 21:04:34 +02:00
hizzlekizzle 9271a7505f Merge pull request #6863 from Brunnis/xmb-thumbnails-issue
Implement fix for thumbnails not showing up in Quick Menu as well as …
2018-06-07 13:26:32 -05:00
Brad Parker ef8390dee1 Merge branch 'master' into qt_grid 2018-06-07 11:57:05 -04:00
Twinaphex a7a54800e8 Merge pull request #6868 from Themaister/master
Vulkan: Fix two validation errors.
2018-06-07 05:07:24 +02:00
Mikael Brunnhede 0813de0392 Hide thumbnails in Quick Menu sub-menus. 2018-06-06 23:48:07 +02:00
Hans-Kristian Arntzen 16c797f057 Vulkan: Fix two validation errors.
- Mipgen was only transitioning the first miplevel to GENERAL.
  Fix the image barrier helper function to transition all levels and
  layers.

- Validation layer was complaining that a VkSwapchainKHR was not
  properly destroyed. After recycling the swapchain, destroy the old
  one.
2018-06-06 23:23:32 +02:00
Twinaphex 6a9e73b7f2 Merge pull request #6865 from DEX357/patch-9
Update msg_hash_pl.h
2018-06-06 18:16:50 +02:00
DEX357 d94f9bd921 Update msg_hash_pl.h 2018-06-06 18:02:35 +02:00
Mikael Brunnhede 75330a142d Implement fix for thumbnails not showing up in Quick Menu as well as "Run" menu after closing content. Also implement fix for savestate thumbnail being hidden behind boxart/screenshot thumbnails. With this fix, boxart/screenshot thumbnails are not shown on the right hand side if there is a savestate screenshot being rendered. 2018-06-05 10:51:51 +02:00
gblues f22c337cfc WIIU: cleanup and build-out of wiiu bootstrap code
I used the code in `wiiu/` to bootstrap my own WiiU homebrew app; this
PR reflects some changes I needed to make, that might be useful upstream.

1. Clean up filesystem initialization

Filesystem driver initialization was lumped in with filesystem mounting;
and that was a problem in my project, because I needed to be able to remount
the SD card on the fly. So, now it's split up.

I've added a callback object named "hooks" that can be used by consuming
applications to handle filesystem mounting and unmounting. If these hooks are
not provided, then the existing default behavior occurs.

2. Expand socket handling

- add `SO_NONBLOCK` flag for non-blocking socket I/O
- add normal errno defines like `EWOULDBLOCK` `EAGAIN`.

3. Remove RetroArch dependencies

- the exception handler protects usage of version_git with
  `#ifdef HAVE_GIT_VERSION` but not the include, so I added that.

  It also technically depends on version.h, but I'm not touching that.
  It's easy enough to implement and I needed the same functionality. I'm
  not sure what the best solution for that dependency is.

- missing_libc_functions.c included features/features_cpu.h which is
  a libretro include. This appears to be a stale include though, because
  everything compiles and works without it.

- an ifdef referencing the RA "WIIU" define, rather than the devkitpro
  "__wiiu__" define
2018-06-05 00:06:40 -07:00
gblues 21fd83f766 Merge github:libretro/RetroArch 2018-06-04 23:38:38 -07:00
twinaphex ec718c6f71 Should only be used for Wii 2018-06-04 21:25:04 +02:00
Twinaphex 7bfe9e409a Merge pull request #6860 from meleu/patch-22
fix crash when scrolling cheevos list. fixes #6732
2018-06-04 16:31:08 +02:00
meleu 0ffe0f8513 fix crash when scrolling cheevos list. fixes #6732 2018-06-04 10:07:18 -03:00
Twinaphex 5bc7acffd5 Merge pull request #6858 from meleu/patch-22
show cheevos description on RGUI - fixes #6764
2018-06-04 03:53:39 +02:00
meleu 6040e1c0fc show cheevos description on RGUI - fixes #6764 2018-06-03 16:46:20 -03:00
Twinaphex 6ecf64d08f Merge pull request #6855 from GregorR/null-input-joypad-driver
Fix input when the joypad driver is NULL.
2018-06-02 23:04:45 +02:00
Gregor Richards af357c1afe Fix input when the joypad driver is NULL. 2018-06-01 23:22:04 -04:00
Twinaphex e4476ec61b Merge pull request #6847 from reswitched/nsw-dynamic
NSW: dynamic core loading
2018-06-02 01:39:00 +02:00
Twinaphex 861d87281e Merge pull request #6852 from theheroGAC/patch-32
Update msg_hash_it.h
2018-06-01 02:40:49 +02:00
Twinaphex ab9a9e733e Merge pull request #6853 from FIX94/patch-1
(GC/Wii) revert commit 822e2fd
2018-06-01 02:40:40 +02:00
FIX94 3f8235db28 revert commit 822e2fd
commit 822e2fd broke sd gecko mounting on gamecube, making the gamecube build unusable, reverting it makes it run fine again
2018-06-01 00:22:42 +02:00
theheroGAC 430d674b4e Update msg_hash_it.h 2018-05-31 22:45:32 +02:00
Twinaphex adaac8a8cd Merge pull request #6851 from meepingsnesroms/master
Update README.MD(Fixed)
2018-05-31 20:49:02 +02:00
meepingsnesroms c0da95559f Update README.MD(Fixed) 2018-05-31 10:26:35 -07:00
Twinaphex ad79fbe4a9 Merge pull request #6846 from GregorR/netplay-runahead-compatibility
Fix compatibility between netplay and runahead
2018-05-31 10:29:22 +02:00
Twinaphex 49c08baaa7 Merge pull request #6848 from reswitched/fix-tearing
NSW: fix tearing
2018-05-31 10:28:11 +02:00
misson20000 97994b0684 NSW: libtransistor added an ELF loader, and cores are now .so instead of .nro 2018-05-30 22:13:55 -07:00
misson20000 1ef6b1d8e4 NSW: wip dynamic support 2018-05-30 22:13:55 -07:00
Gregor Richards 2c07561fc1 Fix compatibility between netplay and runahead
Unsurprisingly, netplay and runahead are wildly incompatible; both rely
on internal rewinding, without communicating this fact to each other.
Somewhat more surprisingly, netplay already has all the infrastructure
for negative input latency, as it's structurally the same as receiving
delayed input from a peer. This patch makes the two features
"compatible" by disabling runahead per se when netplay is active, and
using runahead's configuration to adjust netplay's own input latency
feature, which is now allowed to be negative. The effect is mostly the
same (modulo the second core support), and it doesn't confuse netplay
peers.
2018-05-30 22:01:02 -04:00
misson20000 1404b63219 fix for tearing (depends on libtransistor commit cf5d0403 in v2.0.0, which is yet to be released) 2018-05-30 18:04:58 -07:00
Twinaphex 0045e1fff2 Merge pull request #6845 from DEX357/patch-8
Update msg_hash_pl.h
2018-05-30 07:20:49 +02:00
DEX357 9cf843e349 Update msg_hash_pl.h 2018-05-30 02:30:51 +02:00
twinaphex a3a047b8ec Fix Coverity warning 2018-05-29 22:01:05 +02:00
twinaphex b1ec722a75 Buildfix 2018-05-29 18:55:18 +02:00
Twinaphex 65232d3ab4 Merge pull request #6842 from gmdvieira/wayland.screensaver
Add screensaver (idle) inhibition for Wayland driver
2018-05-29 17:23:22 +02:00
hizzlekizzle 34a75ba605 Merge pull request #6578 from Stevoisiak/settings-driver-section
retroarch.cfg: Reorganize sections
2018-05-29 09:28:22 -05:00
Gustavo Maciel Dias Vieira 14c505117d Add screensaver (idle) inhibition for Wayland driver
The Wayland driver currently has no implementation for gfx_ctx_wl_suppress_screensaver. This adds a Dbus implementation using the same infrastructure used by the X11 driver.
2018-05-29 09:56:58 -03:00
twinaphex ddbc0d53c0 Add Discord Enable option to Settings -> Privacy 2018-05-29 12:41:13 +02:00
twinaphex 81ce02cf74 Put this around an ifdef 2018-05-29 12:18:31 +02:00
twinaphex 6d81d31ef5 Enable Discord setting 2018-05-29 12:18:01 +02:00
twinaphex b5f6ae7931 (Discord) Add translatable string 2018-05-29 11:14:21 +02:00
twinaphex 406342479a Change function signature of discord_update 2018-05-29 11:09:13 +02:00
twinaphex 1fb57857ea Add discord_is_inited 2018-05-29 11:06:43 +02:00
twinaphex 31e7894539 Get rid of unnecessary ifdef 2018-05-29 10:43:45 +02:00
twinaphex 8ad1ddbac5 Disable discord support for C89 2018-05-29 10:42:18 +02:00
twinaphex b4912a718f (Discord.c) Cleanups 2018-05-29 10:40:01 +02:00
twinaphex 4a035f5b22 Start adding files for Mac/Linux 2018-05-29 10:30:56 +02:00
twinaphex d488dfcafa Make these files Windows-specific 2018-05-29 10:24:17 +02:00
twinaphex e056cd8005 Disable HAVE_DISCORD for now 2018-05-29 10:22:07 +02:00
Twinaphex 2848f1f2b1 Merge pull request #6840 from fr500/master
WIP: discord-rpc support
2018-05-29 10:21:28 +02:00
radius 00bb17588d Merge commit '6e7a18a5987cbd5dec80308250062867f2cc3aad' as 'deps/discord-rpc/thirdparty/rapidjson-1.1.0' 2018-05-28 23:59:23 -05:00
radius 6e7a18a598 Squashed 'deps/discord-rpc/thirdparty/rapidjson-1.1.0/' content from commit 2fb78f9cee
git-subtree-dir: deps/discord-rpc/thirdparty/rapidjson-1.1.0
git-subtree-split: 2fb78f9cee01996f020d5af7592b37c5a0693b31
2018-05-28 23:59:23 -05:00
radius f0082d710c restore this file 2018-05-28 23:49:23 -05:00
radius 0308191f88 Merge commit 'b86df4ee09564e88f9d2c994ef9d5af75d4e7395' as 'deps/discord-rpc' 2018-05-28 23:46:51 -05:00
radius b86df4ee09 Squashed 'deps/discord-rpc/' content from commit ba9fe00c4d
git-subtree-dir: deps/discord-rpc
git-subtree-split: ba9fe00c4de1d680cdc56605d9c0d2b4cf8e7a07
2018-05-28 23:46:51 -05:00
radius d5c2bc90c1 add discord files 2018-05-28 23:46:36 -05:00
Brad Parker 8d886751b9 Merge branch 'master' into qt_grid 2018-05-28 18:16:13 -04:00
Brad Parker 8c6bc4a678 Qt: update UI after loading every 25 grid items, keep grid from mixing up content from multiple playlists if the user switches to a new one before one is finished loading 2018-05-28 18:14:36 -04:00
Twinaphex b378566cb8 Merge pull request #6837 from Dwedit/dirty_input_fix
Add bounds checking to runahead dirty input code
2018-05-28 20:19:31 +02:00
Twinaphex cdc2bdb327 Merge pull request #6835 from Dwedit/null-fix_
Fix a calloc(0) which led to uninitialized data being used later on.
2018-05-28 20:19:21 +02:00
Dwedit adbc71ce46 Change bounds to a const variable
Add one more bounds check
2018-05-28 12:14:04 -05:00
Dwedit e8b381680a reformat spaces 2018-05-28 12:04:11 -05:00
Dwedit becb6dee16 Fix out of bounds access in dirty_input code 2018-05-28 12:01:18 -05:00
Dwedit 51f7746407 reformat like the old code 2018-05-28 10:58:04 -05:00
Dwedit 8cd8e7d3ae Fix a calloc(0) which led to uninitialized data being used later on. 2018-05-28 10:54:25 -05:00
twinaphex 23b0444afe Update libretro-common 2018-05-28 17:30:56 +02:00
Twinaphex 877766d0ae Merge pull request #6834 from Dwedit/null-fix_
Fix null pointer read in action_bind_sublabel_subsystem_add
2018-05-28 17:13:08 +02:00
Dwedit 6ef5232f32 Fix null pointer read in action_bind_sublabel_subsystem_add 2018-05-28 09:37:43 -05:00
Twinaphex d00fe30f0e Merge pull request #6831 from ReRetro/master
Change Retroarch to RetroArch once again for the 3ds
2018-05-27 21:09:08 +02:00
Twinaphex 743ab2351c Merge pull request #6829 from fr500/overrides
only apply deadzone on analog to digital remapping, not analog to analog
2018-05-27 21:08:52 +02:00
Yarsan Hoessain 99c074e275 Change Retroarch to RetroArch once again for the 3ds 2018-05-27 20:21:41 +02:00
radius c2c5265916 only apply deadzone on analog to digital remapping, not analog to analog 2018-05-27 11:58:52 -05:00
Twinaphex 3a96314bfd Merge pull request #6828 from DEX357/patch-7
Update msg_hash_pl.h
2018-05-26 09:50:36 +02:00
DEX357 9af767163f Update msg_hash_pl.h 2018-05-26 00:55:55 +02:00
alphanu1 488d142ebf Merge pull request #75 from alphanu1/alphanu1-patch-71
Black screen fix
2018-05-25 12:27:43 +01:00
alphanu1 7c50550fc3 Black screen fix 2018-05-25 12:26:11 +01:00
Twinaphex 06aab60307 Merge pull request #6827 from alphanu1/master
Porch adjust to fix aspect and 240p menu for CRT
2018-05-25 12:21:04 +02:00
alphanu1 05cf6fa114 Merge pull request #74 from alphanu1/alphanu1-patch-70
Porch adjust to fix aspect
2018-05-25 10:58:59 +01:00
alphanu1 b4996e6d41 Porch adjust to fix aspect 2018-05-25 10:58:43 +01:00
alphanu1 31919e9a61 Merge pull request #73 from alphanu1/alphanu1-patch-69
240p menu for CRT
2018-05-25 10:57:47 +01:00
alphanu1 e6b2f5a734 240p menu for CRT 2018-05-25 10:57:32 +01:00
alphanu1 a002297f37 Merge pull request #72 from alphanu1/alphanu1-patch-68
update
2018-05-25 10:56:46 +01:00
alphanu1 f99540e9d0 update 2018-05-25 10:56:22 +01:00
alphanu1 9c03f99eb9 Merge pull request #71 from alphanu1/alphanu1-patch-67
update
2018-05-25 10:55:54 +01:00
alphanu1 23ec5eed84 update 2018-05-25 10:55:15 +01:00
alphanu1 8a5dce2d25 Merge pull request #70 from alphanu1/alphanu1-patch-66
Porch adjust to fix aspect
2018-05-25 10:49:48 +01:00
alphanu1 a98ce80df0 Porch adjust to fix aspect 2018-05-25 10:49:28 +01:00
alphanu1 0ecd571d0f Merge pull request #69 from alphanu1/alphanu1-patch-65
240p menu for CRT
2018-05-25 10:43:26 +01:00
alphanu1 e20e0b1cfd 240p menu for CRT 2018-05-25 10:42:57 +01:00
alphanu1 f9fb5ae659 Merge pull request #68 from libretro/master
update
2018-05-25 10:41:38 +01:00
Twinaphex 25fbcb33e5 Merge pull request #6821 from reswitched/master
NSW: fix analog sticks
2018-05-24 10:41:49 +02:00
misson20000 dd0ad28818 NSW: fix analog sticks 2018-05-24 00:18:38 -07:00
Twinaphex 1b7fb1530a Merge pull request #6820 from altiereslima/master
Update Portuguese Brazilian Translation #2
2018-05-22 04:03:16 +02:00
altiereslima b2303b8ef4 Update Portuguese Brazilian Translation #2 2018-05-21 22:56:25 -03:00
Twinaphex a5b877b142 Merge pull request #6812 from altiereslima/master
Update Portuguese Brazilian Translation
2018-05-21 04:12:09 +02:00
Twinaphex 62bf39316f Merge pull request #6811 from alfrix/spanish
Fix build
2018-05-21 04:12:01 +02:00
altiereslima 1530d6ce3e Update Portuguese Brazilian Translation 2018-05-20 22:56:03 -03:00
Alfrix 82a869b142 Fix build 2018-05-20 22:51:05 -03:00
Twinaphex 3c49c8c856 Merge pull request #6807 from markwkidd/master
Improve text for existing menu item -- "Save Game-options file"
2018-05-21 03:03:18 +02:00
Twinaphex 73287af8e4 Merge pull request #6808 from DEX357/patch-5
Update msg_hash_pl.h
2018-05-21 03:02:52 +02:00
Twinaphex 6f1a80dafe Merge pull request #6809 from DEX357/patch-6
Update msg_hash_pl.h
2018-05-21 03:02:46 +02:00
Twinaphex 430a79da5a Merge pull request #6810 from alfrix/spanish
Spanish Update
2018-05-21 03:02:36 +02:00
Alfrix 056664ee7d Update Spanish 2018-05-20 19:56:58 -03:00
DEX357 5313aca11d Update msg_hash_pl.h 2018-05-21 00:04:16 +02:00
DEX357 0a45468af9 Update msg_hash_pl.h
missing entries
2018-05-20 23:48:50 +02:00
markwkidd b2c767ee22 provide a verb for the Save Game-option command
Signed-off-by: markwkidd <[email protected]>
2018-05-20 15:30:26 -05:00
Twinaphex 58e13ab6ca Merge pull request #6802 from DEX357/patch-4
Update msg_hash_pl.h
2018-05-20 17:39:28 +02:00
DEX357 64c6f88512 Update msg_hash_pl.h
amendments
2018-05-20 15:10:10 +02:00
Twinaphex dec45f0963 Merge pull request #6800 from DEX357/patch-3
Update msg_hash_pl.h
2018-05-20 08:00:22 +02:00
Twinaphex 463348cb2e Merge pull request #6801 from meepingsnesroms/master
Update the 3ds build system to match new core format
2018-05-20 08:00:13 +02:00
gblues 10ae93153a Merge github:libretro/RetroArch 2018-05-19 18:54:34 -07:00
meepingsnesroms f3bad8b3e2 Fix salamander for 3dsx build 2018-05-19 11:42:08 -07:00
meepingsnesroms 51b9b69828 Finish buildbot fixes 2018-05-19 11:35:12 -07:00
meepingsnesroms f59913ab04 Remove tab 2018-05-19 10:03:57 -07:00
meepingsnesroms 6c1e865d28 Make build system match core format 2018-05-19 09:59:47 -07:00
DEX357 702dc1bb80 Update msg_hash_pl.h
Further corrections and omissions.
2018-05-19 18:49:16 +02:00
Twinaphex 31c5cc9269 Update CHANGES.md 2018-05-19 16:50:16 +02:00
Twinaphex 30a37af792 Merge pull request #6798 from meepingsnesroms/master
Add another error handler, fix variable name formatting
2018-05-19 16:23:30 +02:00
Twinaphex d42d9efd32 Merge pull request #6797 from DEX357/patch-2
Update msg_hash_pl.h
2018-05-19 16:23:07 +02:00
meepingsnesroms 5b2ec62a41 Add another error handler, fix variable name formatting 2018-05-18 17:39:11 -07:00
DEX357 496fbc1f50 Update msg_hash_pl.h
minor grammar changes
2018-05-19 01:42:49 +02:00
twinaphex c7c1983c91 Update d3d9_set_pixel_shader 2018-05-18 20:43:12 +02:00
twinaphex eac9ce1818 Refactor load_program 2018-05-18 08:49:52 +02:00
twinaphex 9dea722c39 Update portion of dr_flac.h that was problematic on
certain systems
2018-05-18 05:32:07 +02:00
twinaphex 2bda59b8e4 (platform_unix.c) Get rid of some warnings 2018-05-18 05:17:13 +02:00
Twinaphex 6a291e0240 Merge pull request #6794 from alfrix/spanish
Spanish Update
2018-05-18 04:09:28 +02:00
Alfrix d604239f00 Update Spanish 2018-05-17 21:28:18 -03:00
Ramiro Morales 421c191049 Update Spanish translation (msg_hash_es.h).
Changes were generated by the following workflow:

1. .h -> .po conversion
2. Translation edit using a tool that supports gettext .po file format.
   e.g. poedit, dedicated modes of Emac, Vim, other editors
3. .po -> .h conversion

Steps 1 and 3 are handled by using WIP tool at

https://github.com/ramiro/RetroArch/blob/manage-i18n-with-gettext-tools/tools/intl.py
2018-05-17 21:09:00 -03:00
twinaphex 3c1c6758c7 Update 2018-05-18 01:38:45 +02:00
Twinaphex a36685d31f Merge pull request #6793 from alfrix/polish
Update Polish (@DEX357)
2018-05-18 01:16:48 +02:00
Alfrix 8014f10da4 Update Polish (DEX357) 2018-05-17 20:10:19 -03:00
twinaphex ce79ff79d2 Cleanups 2018-05-18 01:10:13 +02:00
twinaphex db184a470b Cleanups 2018-05-18 00:51:45 +02:00
twinaphex c9de823e38 (D3D9 HLSL) Start getting rid of old code 2018-05-18 00:46:39 +02:00
twinaphex d457256bda (D3D9 HLSL) More work hooking up the stock shader(D3D9 HLSL) More work
hooking up the stock shader(D3D9 HLSL) More work hooking up the stock
shader(D3D9 HLSL) More work hooking up the stock shader(D3D9 HLSL) More
work hooking up the stock shader(D3D9 HLSL) More work hooking up the
stock shader(D3D9 HLSL) More work hooking up the stock shader(D3D9 HLSL)
More work hooking up the stock shader(D3D9 HLSL) More work hooking up
the stock shader
2018-05-18 00:36:51 +02:00
twinaphex 48b9506299 (HLSL) Implement renderchain_add_pass 2018-05-18 00:27:07 +02:00
twinaphex 076a8a6a97 (D3D9 HLSL) Updates 2018-05-18 00:24:19 +02:00
twinaphex 5a84170efe Simplify d3d9_hlsl_load_program 2018-05-18 00:19:02 +02:00
twinaphex c4a38f24d1 Refactor D3D9 HLSL 2018-05-18 00:17:47 +02:00
twinaphex 991882cbd6 Create d3d9_hlsl_bind_program 2018-05-17 23:25:43 +02:00
twinaphex 8fadef7082 Update d3d9_set_vertex_shader 2018-05-17 23:23:17 +02:00
twinaphex 1d67334323 Expand d3d9_cg_bind_program 2018-05-17 23:20:13 +02:00
twinaphex 9adedbc01a Create d3d9_cg_bind_program 2018-05-17 22:57:16 +02:00
twinaphex eb27d014e8 Cleanups 2018-05-17 22:50:37 +02:00
twinaphex f7b1007995 Move mvp_val to hlsl_renderchain 2018-05-17 22:46:51 +02:00
twinaphex 671be3c372 Cleanup d3d9_cg_load_program 2018-05-17 22:40:46 +02:00
twinaphex c412e2ec97 (Cg renderchain) Refactor vStock/fStock 2018-05-17 22:38:17 +02:00
twinaphex 3b7a1a8a73 Make hlsl_load_program more like Cg version 2018-05-17 22:30:57 +02:00
twinaphex 0df8ca030f Cleanups 2018-05-17 22:22:10 +02:00
twinaphex c67dc034e9 Add vtable/ftable to shader_pass 2018-05-17 22:14:23 +02:00
twinaphex 34c5c84706 Cleanups 2018-05-17 21:43:27 +02:00
twinaphex be9f643edb Get rid of hlsl->dev 2018-05-17 21:26:11 +02:00
twinaphex cabe5c6686 Uncomment d3d9_hlsl_renderchain_set_params for state tracker 2018-05-17 21:11:43 +02:00
twinaphex d946cf1ee5 Create common set vertices function 2018-05-17 21:07:44 +02:00
twinaphex 2011453340 Cleanups 2018-05-17 20:50:32 +02:00
twinaphex 9d6777a87f Rewrite set_shader_params to be nearly identical to Cg renderchain 2018-05-17 20:45:26 +02:00
twinaphex 6c392d3863 Cleanups 2018-05-17 20:31:16 +02:00
twinaphex 70074010e0 Cleanups 2018-05-17 20:15:47 +02:00
twinaphex aec7ce3f4e Update 2018-05-17 20:01:20 +02:00
twinaphex ebc2cc6d5b (HLSL) Cleanup log messages 2018-05-17 19:57:07 +02:00
twinaphex cc1f503f57 (HLSL) Further cleanups 2018-05-17 19:55:08 +02:00
twinaphex 9adc4d4a2f Another cleanup 2018-05-17 19:48:16 +02:00
twinaphex 0de7e7bf46 Cleanups 2018-05-17 19:47:22 +02:00
twinaphex bef7b481c6 Refactor more D3D9 HLSL renderchain code 2018-05-17 19:33:47 +02:00
twinaphex 5bb1b2ef7c Start refactoring HLSL code - constant table parameter setters 2018-05-17 19:26:52 +02:00
twinaphex da53ddc99b Create d3d9_hlsl_get_constant_by_name 2018-05-17 19:13:39 +02:00
twinaphex 18b176c1ea Rename functions 2018-05-17 19:03:13 +02:00
twinaphex 3b7414bc4b (Cg) Some refactors 2018-05-17 18:56:12 +02:00
twinaphex d28aad6372 Rename hlsl_compile_program 2018-05-17 18:46:57 +02:00
Twinaphex 2a0fda0845 Merge pull request #6791 from Dwedit/fix-reset-command
Fix the reset command not closing the menu
2018-05-17 18:41:14 +02:00
Twinaphex 380308d7d0 Merge pull request #6792 from Tatsuya79/patch-1
Disable gl hard sync in menu
2018-05-17 18:40:36 +02:00
twinaphex fe1d3306af Cleanups 2018-05-17 18:20:36 +02:00
twinaphex a9cede28b4 remove some Cg references from log messages 2018-05-17 18:03:18 +02:00
twinaphex 08425d978c Create d3d9_renderchain_destroy_passes_and_luts 2018-05-17 17:59:42 +02:00
twinaphex c022190895 Cleanups 2018-05-17 17:52:44 +02:00
twinaphex 041d51b8d1 Cleanups 2018-05-17 17:50:33 +02:00
twinaphex f8b7104ef2 Move more common code to d3d9_renderchain.h 2018-05-17 17:38:42 +02:00
twinaphex a024da61f4 More code de-duplication 2018-05-17 17:27:56 +02:00
twinaphex e01a028e24 Move add_lut_internal to d3d9_renderchain.h 2018-05-17 17:25:46 +02:00
Tatsuya79 e96463645d Disable gl hard sync in menu 2018-05-17 17:24:10 +02:00
twinaphex c46d84b799 Create d3d9_renderchain_add_lut 2018-05-17 17:23:53 +02:00
twinaphex 6d2b5c8052 Move read_viewport function back to d3d9.c 2018-05-17 17:17:08 +02:00
twinaphex ad3cedfff1 Create d3d9_init_renderchain 2018-05-17 17:15:04 +02:00
twinaphex ea5e4e9ae4 Create struct D3D9Vertex 2018-05-17 17:10:44 +02:00
twinaphex 30b6366158 (d3d9_cg_renderchain.c) Reuse same struct 2018-05-17 17:09:23 +02:00
twinaphex 45f409b022 Start using shader_pass struct 2018-05-17 16:52:12 +02:00
twinaphex d369cde6c6 (Cg renderchain) Cleanups 2018-05-17 16:50:02 +02:00
Dwedit af2f679ff5 Fix the reset command not closing the menu 2018-05-17 09:49:45 -05:00
twinaphex bc59b0345d Start unifying the structs across the two renderchains 2018-05-17 16:42:27 +02:00
twinaphex 517e42c9c7 Pass d3d pointer to set_mvp 2018-05-17 05:46:49 +02:00
twinaphex 8161add9e4 (D3D renderchains) Updates 2018-05-17 05:36:56 +02:00
twinaphex 7afad7a84b Add start/end render 2018-05-17 04:19:35 +02:00
twinaphex fef586b887 Comment out align texels for now 2018-05-17 02:21:40 +02:00
twinaphex 8686c5e037 (HLSL) Use HLSLVertex everywhere in the file 2018-05-17 02:18:57 +02:00
twinaphex 91fc81e76a (D3D9 HLSL) Prevents crash with game frame 2018-05-17 02:17:47 +02:00
twinaphex 62a2af1848 (HLSL) Update set_vertices 2018-05-17 02:16:19 +02:00
twinaphex a999bff175 Cleanups 2018-05-17 02:07:15 +02:00
twinaphex 47551cec84 (HLSL) set_vertices - more work 2018-05-17 02:01:32 +02:00
Twinaphex bc0185c313 Merge pull request #6782 from meepingsnesroms/master
Make 3DS launch cores like a normal system
2018-05-17 01:34:48 +02:00
meepingsnesroms 1bd25a6f12 Fix pointer type 2018-05-16 16:28:32 -07:00
meepingsnesroms ce0d8bb5e0 Remove quote parsing 2018-05-16 16:26:38 -07:00
meepingsnesroms 8617690499 Fix tab where spaces should be 2018-05-16 10:41:25 -07:00
twinaphex 47f3855e1b Cleanups 2018-05-16 16:06:00 +02:00
twinaphex 4b5ea2877e Cleanups 2018-05-16 16:03:22 +02:00
twinaphex efbfe85da4 Cleanups 2018-05-16 15:58:46 +02:00
twinaphex 3aba080434 Integrate HLSL code into d3d9_hlsl_renderchain.c 2018-05-16 15:52:11 +02:00
Twinaphex 1e44b4f9e7 Merge pull request #6784 from Tatsuya79/patch-9
call input_remapping_set_defaults before loading a new remap
2018-05-16 14:53:12 +02:00
Tatsuya79 dd3c9dd838 call input_remapping_set_defaults before loading a new remap 2018-05-16 13:30:57 +02:00
meepingsnesroms 9e51d41fea Fix last null terminator not being added to cia argv 2018-05-15 18:11:47 -07:00
meepingsnesroms 756db4f264 Fix broken path handling when launching a core with a file or with spaces 2018-05-15 11:46:13 -07:00
meepingsnesroms 052de6bcd2 3ds now has proper core launching 2018-05-15 10:30:34 -07:00
twinaphex 2d540264e8 Start hooking up set_shader_mvp function 2018-05-15 06:02:10 +02:00
twinaphex 6afd100d2f (D3D9 HLSL) Add calc_and_set_shader_mvp 2018-05-15 05:53:15 +02:00
twinaphex 52fcdd183a (HLSL) Add more functions 2018-05-14 23:14:26 +02:00
twinaphex 5cba3f0b25 (D3D) Updates 2018-05-14 22:24:02 +02:00
twinaphex 9e63b108ae Cleanups 2018-05-14 22:20:26 +02:00
twinaphex 8361922034 Cleanup 2018-05-14 22:07:07 +02:00
twinaphex c0cd08fa11 Cleanups 2018-05-14 22:01:21 +02:00
twinaphex 4e572d6f87 Simplify calc_and_set_shader_mvp 2018-05-14 21:54:28 +02:00
twinaphex e1368a9209 (Cg D3D9) Buildfix 2018-05-14 21:42:14 +02:00
twinaphex 39f45a17d2 create d3d9_convert_geometry 2018-05-14 21:32:14 +02:00
twinaphex c941b4e922 Update D3D9 HLSL code 2018-05-14 21:26:52 +02:00
twinaphex f37f8a1076 (HLSL renderchain) Refactor code 2018-05-14 21:10:14 +02:00
twinaphex dc61c08006 Cleanups 2018-05-14 20:50:02 +02:00
twinaphex 15f2cde260 (HLSL) Start adding renderchain code 2018-05-14 20:42:28 +02:00
twinaphex 111aeb46b3 Make blit_texture a generic function used by both Cg and HLSL
renderchains
2018-05-14 19:11:45 +02:00
twinaphex c1d949b017 Rename pass_vector_list to cg_pass_vector_list 2018-05-14 18:48:47 +02:00
twinaphex 8a607e72af (D3D9 Cg) Cleanups 2018-05-14 18:46:06 +02:00
twinaphex e646366fd4 Cleanups 2018-05-14 18:42:53 +02:00
twinaphex e8ae1e324f Cleanups 2018-05-14 18:40:36 +02:00
twinaphex 7a9bfa52b0 Add comments 2018-05-14 17:51:50 +02:00
Twinaphex fd4aca1654 Merge pull request #6779 from fr500/overrides
blacklist some settings from overrides
2018-05-14 17:50:15 +02:00
twinaphex e9054159ec Remove set_font_rect callback 2018-05-14 16:57:34 +02:00
radius ecedf8b995 blacklist some settings from overrides 2018-05-13 23:58:55 -05:00
twinaphex bf3122329b (D3D9) Buildfixes 2018-05-14 06:37:01 +02:00
twinaphex 232d3f4d92 Take out add_state_tracker function callback for D3D9 renderchain 2018-05-14 06:33:51 +02:00
Twinaphex dad1e9e52a Merge pull request #6775 from fr500/overrides
WIP: override, presets & remap improvements
2018-05-14 06:23:10 +02:00
twinaphex e5ec7d0fda (Menu) Cut down on some code duplication 2018-05-14 06:18:57 +02:00
radius f81ea09f20 add saving, deletion options for per-dir remaps 2018-05-13 23:17:44 -05:00
radius 0a0365e49a add menu entries 2018-05-13 22:33:06 -05:00
twinaphex 94955eb3b5 (D3D8) Do less casting 2018-05-14 05:14:26 +02:00
twinaphex 2c5112f3ac Cleanups 2018-05-14 05:07:12 +02:00
radius 16c33b4f42 add remap saving, add new variables 2018-05-13 22:05:19 -05:00
radius 908d9b315b overrides: improve 43220c088a a bit 2018-05-13 22:05:18 -05:00
nosh01 9b57b3658d config_load_override() allow override configs to be loaded that match the content parent path name 2018-05-13 22:05:18 -05:00
twinaphex c40c08375c (d3d9_common.h) Cleanups 2018-05-14 05:04:45 +02:00
twinaphex cbe4c78979 (D3D8/D3D9) Cleanups 2018-05-14 04:55:33 +02:00
twinaphex 606d700bf2 No more D3D8/D3D9 header includes in d3d_common.c 2018-05-14 04:36:08 +02:00
twinaphex 8733a41e58 (d3d_common.c) Get rid of these header includes 2018-05-14 04:00:27 +02:00
twinaphex 6a9b39da3f Get rid of d3d.h and xdk_defines.h 2018-05-14 03:57:27 +02:00
twinaphex 5fe6c74b51 Remove this 2018-05-14 03:47:13 +02:00
twinaphex d1c1e4e2aa Move D3D9_DECL_FVF_TEXCOORD to d3d9_common.h 2018-05-14 03:17:26 +02:00
twinaphex 86c7e7c69f (D3D9) Uniquely name 'Pass' for cg renderchain; some more work on HLSL 2018-05-14 03:12:09 +02:00
twinaphex 1de6bf550b (D3D renderchains) Cleanups/unifications 2018-05-14 03:06:19 +02:00
twinaphex 8beed4c1ec (360) Buildfix 2018-05-14 01:50:58 +02:00
twinaphex 1a55d4309c Fix --disable-cheevos 2018-05-14 01:44:08 +02:00
twinaphex 7617e3efd2 Fix Coverity error - forgot a break 2018-05-14 01:38:24 +02:00
Twinaphex 155c48d7fe Update CHANGES.md 2018-05-14 01:14:28 +02:00
twinaphex 2dae506e88 (MSVC2003) Buildfix 2018-05-14 01:11:47 +02:00
Twinaphex 64e9cb1f5e Update CHANGES.md 2018-05-14 01:09:06 +02:00
Twinaphex b8233c15ae Merge pull request #6776 from altiereslima/master
Update Portuguese Brazilian translation.
2018-05-14 01:07:33 +02:00
twinaphex aea89bfde3 Cleanups 2018-05-14 00:37:03 +02:00
twinaphex 34eb78ad78 Silence some warnings 2018-05-14 00:35:01 +02:00
twinaphex 8a78b69689 Buildfix 2018-05-14 00:31:58 +02:00
twinaphex 45cd860835 Cleanup variables never used 2018-05-14 00:30:30 +02:00
twinaphex 2fdd4444ff Get rid of unintentional typedef redefinition (C11 feature) 2018-05-14 00:29:20 +02:00
Twinaphex d0a697ebf0 (MacOS) Another buildfix 2018-05-14 00:23:05 +02:00
Twinaphex f3f0c6b1d1 One buildfix 2018-05-14 00:21:08 +02:00
twinaphex 599937cc4f Make separate xcodeproj 2018-05-14 00:17:17 +02:00
altiereslima 693d12a67a Update Portuguese Brazilian translation. 2018-05-13 19:15:00 -03:00
Twinaphex 0174e45026 Merge pull request #6667 from fr500/master
cheevos fixes and additions
2018-05-13 21:48:29 +02:00
twinaphex 96e1b862f6 (Vulkan) Update headers - use C comments 2018-05-13 21:42:02 +02:00
twinaphex 7a88fafdb0 Cleanup 2018-05-13 21:36:57 +02:00
Stuart Carnie 789933b333 wip: add Vulkan support to Apple platforms 2018-05-13 21:35:23 +02:00
Stuart Carnie 0a4ff225be Update Vulkan 2018-05-13 21:35:18 +02:00
Twinaphex 0d7d844462 Merge pull request #6774 from sergiou87/fix-keyboard-mapping
Fix the way offsets are calculated for keyboard remapping
2018-05-13 21:32:40 +02:00
radius b25a2b49c4 move pause entry to achievements menu 2018-05-13 14:26:38 -05:00
radius f3c29b43eb disable cheevos_hardcore_paused on contant load 2018-05-13 13:40:30 -05:00
radius aa86d78183 add quick menu action to pause / resume hardcore mode for current session 2018-05-13 13:40:30 -05:00
radius 1037093d45 cleanup cheevos hardcore conditions 2018-05-13 13:40:30 -05:00
radius 7216726664 add cheevos_hardcore_active, cleanup whitespaces 2018-05-13 13:40:29 -05:00
radius 504317ac7e cheevos fixes, reenable menu entries if cheevos are disabled on the fly 2018-05-13 13:40:29 -05:00
twinaphex 605d88751f (HLSL) Remove XBOX ifdef 2018-05-13 19:35:20 +02:00
twinaphex 64f2efe567 Cleanups 2018-05-13 19:03:09 +02:00
twinaphex bcedf74fe4 (D3D renderchains) Cleanups 2018-05-13 18:59:57 +02:00
twinaphex 380fa6fd5e Updates 2018-05-13 18:51:05 +02:00
twinaphex 85da5360d2 (D3D9) Update 2018-05-13 18:47:24 +02:00
twinaphex 34149e510e (D3D9) Cleanups 2018-05-13 18:36:17 +02:00
twinaphex 33d2c2d422 (D3D9) Cleanups 2018-05-13 18:33:16 +02:00
twinaphex 46f23f9fbd Get rid of d3d_video_viewport 2018-05-13 18:24:19 +02:00
twinaphex 53446cc0c8 (D3D9 renderchains) Cleanups 2018-05-13 18:11:48 +02:00
twinaphex c6cc2c930c Create d3d9_log_info 2018-05-13 18:01:09 +02:00
twinaphex 8ecfd367ff Backport shader log info 2018-05-13 17:57:48 +02:00
Steven M. Vascellaro 5ff7cc6a4c Comment out background color settings 2018-05-13 11:54:22 -04:00
twinaphex 770b39e769 (HLSL) Buildfixes 2018-05-13 17:28:40 +02:00
twinaphex 3d7eaee7c9 (menu display driver) Cleanups to bind_texture 2018-05-13 14:43:40 +02:00
twinaphex 659d8a4ec6 (GL) Cleanups 2018-05-13 14:34:41 +02:00
twinaphex 5bde17025a Move min_filter_to_mag to gl_common.h 2018-05-13 14:24:49 +02:00
twinaphex c88a7545a3 (menu display drivers) Cleanups 2018-05-13 14:15:04 +02:00
Sergio Padrino Recio 35b709768d Fix the way offsets are calculated for keyboard remapping 2018-05-13 13:34:36 +02:00
twinaphex 08820b5245 Cleanup gl_update_input_size 2018-05-13 06:43:24 +02:00
twinaphex 1f944afff7 (GL) Cleanups 2018-05-13 06:34:15 +02:00
twinaphex 999f1db694 Cleanup 2018-05-13 06:30:13 +02:00
twinaphex 41295ef7b9 Remove viewport_info callback from D3D9 renderchain interface 2018-05-13 06:29:17 +02:00
twinaphex 27170674a5 (D3D9) Cleanups 2018-05-13 06:22:12 +02:00
twinaphex dee50349ba Rename d3d_renderchain_driver to d3d9_renderchain_driver 2018-05-13 06:03:26 +02:00
twinaphex 494ddb16d9 Get rid of viewport_info callback function - was the same for both
GL1 and GL2 renderchains
2018-05-13 05:56:44 +02:00
twinaphex 6996e72b49 Move renderchain driver interface to gl_common.h - and replace
some void pointers in function callbacks with gl_t
2018-05-13 05:53:35 +02:00
Twinaphex 3773482883 Update CHANGES.md 2018-05-13 05:29:56 +02:00
Twinaphex 5e7ea8de19 Merge pull request #6772 from Dwedit/env-hook-fix
Fix full-screen mode change breaking Secondary Core's environment variables
2018-05-13 05:29:28 +02:00
Dwedit a03ccae2ae fix error 2018-05-12 22:19:42 -05:00
Dwedit 432b320775 Fix full-screen mode change breaking Secondary Core's environment variables
* RunAhead: Remove Environment Hook from primary core
* Modify core option manager to trigger setting the secondary core's dirty environment flag
* RunAhead: Make secondary core's hook support that change, so it can turn off the dirty environment flag after reading a setting.
2018-05-12 22:11:49 -05:00
twinaphex 7c90933e3a (GL1 renderchain) Updates 2018-05-13 02:44:54 +02:00
twinaphex 1763b8ad55 (GL1 renderchain) Get rid of bind_prev_texture 2018-05-13 02:41:31 +02:00
twinaphex ad2290df43 Update gl1_renderchain.c 2018-05-13 02:33:15 +02:00
twinaphex be502a39fd Cleanups 2018-05-12 19:24:04 +02:00
twinaphex 58ac7c320e (dxgi_common.c) Add more __WINRT__ ifdefs 2018-05-12 19:22:37 +02:00
twinaphex cc5393e54d (WinRT) Add more WINRT ifdefs 2018-05-12 19:17:23 +02:00
twinaphex bf76005618 (WinRT) Add more __WINRT__ ifdefs 2018-05-12 19:14:49 +02:00
twinaphex 542294900f (WinRT) More compilation fixes 2018-05-12 19:03:39 +02:00
twinaphex 75aea82256 Squashed 'libretro-common/' changes from 71b08aa6b3..705d72b4a3
705d72b4a3 Merge pull request #74 from markwkidd/patch-1
3a06bdd07a update description of the "save" directory

git-subtree-dir: libretro-common
git-subtree-split: 705d72b4a30f8096118df443246c6e5c9e1f7e99
2018-05-12 18:07:47 +02:00
twinaphex 04a4578435 Merge commit '75aea8225637bb47e44543ed624f5861cb27c204' 2018-05-12 18:07:47 +02:00
twinaphex 6ff58826d8 Squashed 'libretro-common/' changes from b1f9a44ebb..71b08aa6b3
71b08aa6b3 Add missing files

git-subtree-dir: libretro-common
git-subtree-split: 71b08aa6b3660e21afd8024a1da4d5a9c844e1e4
2018-05-12 18:05:31 +02:00
twinaphex dd7ac99f27 Merge commit '6ff58826d8725e4e8788c22706de8b25cc89a4c2' 2018-05-12 18:05:31 +02:00
twinaphex 9d5472cecf Merge commit '37aad93a58efba6c340e13aa1d83ddf2df762b3d' 2018-05-12 18:03:49 +02:00
twinaphex 37aad93a58 Squashed 'libretro-common/' changes from 377cef30fa..b1f9a44ebb
b1f9a44ebb Add missing headers

git-subtree-dir: libretro-common
git-subtree-split: b1f9a44ebbf488debc0f5ef2c817d9c4f72f7153
2018-05-12 18:03:48 +02:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex ce9ce1d353 Squashed 'libretro-common/' content from commit 377cef30fa
git-subtree-dir: libretro-common
git-subtree-split: 377cef30faf410724141b280665db1b6b82cbc7b
2018-05-12 17:56:33 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
Twinaphex ed2ed873b8 Update CHANGES.md 2018-05-12 16:29:07 +02:00
Twinaphex f658bea4cd Merge pull request #6768 from theheroGAC/patch-31
Update msg_hash_it.h
2018-05-12 01:59:58 +02:00
Steven M. Vascellaro ae47b1f505 Revert "Fix variable names for 'video_msg'"
This reverts commit 5061bc5a65.
2018-05-11 19:55:07 -04:00
alphanu1 7da1813554 Merge pull request #67 from alphanu1/alphanu1-patch-64
fix
2018-05-11 22:22:24 +01:00
alphanu1 dcc87f4557 fix 2018-05-11 22:21:52 +01:00
theheroGAC f22cc9f2dd Update msg_hash_it.h 2018-05-11 13:28:31 +02:00
Twinaphex 5abdf50c04 Update CHANGES.md 2018-05-11 04:24:44 +02:00
Twinaphex b0aab23fd1 Merge pull request #6719 from Brunnis/autohide-configuration-override-options
Automatically hide "Configuration Override options" in Quick Menu
2018-05-11 04:14:21 +02:00
Twinaphex d2e1698426 Merge pull request #6765 from SuperrSonic/master
(GX) Changes to gx_gfx
2018-05-11 01:43:52 +02:00
Diego A 3b738e0b2d Always enable vfilter, enable deflicker setting in progressive scan, fix vsync set to off 2018-05-10 18:44:22 -04:00
Twinaphex c3c50bae29 Merge pull request #6760 from altiereslima/master
Update Portuguese Brazilian translation
2018-05-10 20:23:17 +02:00
Twinaphex cf5d42dbfe Merge pull request #6761 from rsn8887/master
(Vita/PSP) Use proper button labels, fix inverted R-Stick Y axis
2018-05-10 06:41:04 +02:00
rsn8887 6d5115a50d (Vita/PSP) Use proper button labels, fix inverted R-Stick Y axis 2018-05-09 22:55:33 -05:00
altiereslima 5378e5d525 Update Portuguese Brazilian translation 2018-05-09 23:32:25 -03:00
Twinaphex b5118391a9 Merge pull request #6758 from Dwedit/win32-unify-file-open
Win32: Unify file open code between Menus and Drag Drop, and fix it too
2018-05-10 04:18:54 +02:00
Dwedit ca00d93aac Edit the Japanese resource file too 2018-05-09 21:10:11 -05:00
Dwedit 387d4d87eb Fix core selection appearing unnecessarily
Re-order the dialog items in core selection dialog to make the listbox have focus
Removed the "do wm close" stuff.
2018-05-09 21:04:23 -05:00
Dwedit f3f0d4f787 Unify File Open and File Drag Drop code
* Code in `win32_drag_query_file` was split off into `win32_load_content_from_gui`
* File Open dialog now uses the same code as drag drop instead of the non-working code that was in there before.
* File Dialog and Core Select Dialog show and hide mouse cursor if they were invoked in fullscreen mode
2018-05-09 21:04:23 -05:00
meepingsnesroms 1a6f572405 Fixes 2018-05-09 18:23:35 -07:00
alphanu1 06d411d6e7 Update dispserv_x11.c 2018-05-10 01:56:39 +01:00
Twinaphex 72a77884fa Merge pull request #6756 from Dwedit/runahead-messages
Runahead error messages
2018-05-10 02:43:24 +02:00
Twinaphex 36b9fd94ba Merge pull request #6757 from Dwedit/additional-null-check
Additional null checks in video_driver.c
2018-05-10 02:43:03 +02:00
Dwedit bafb23edc3 Additional null check in video_driver.c
I have managed to trigger a null pointer exception on one of these two functions, so for safety, I added in null checks for the structs and function pointers.
2018-05-09 19:25:33 -05:00
Dwedit 6154a843e0 Runahead error messages
* Add error messages for: Core not having savestates, load/save state failure, secondary core create failure
* Added messages for us locale, can be localized elsewhere
* Add a configuration setting to hide the initial warning message for core not having savestates
* Small code changes and cleanup for secondary core
* Fixed typo "destory" in dirty input code
2018-05-09 19:08:16 -05:00
meepingsnesroms 5f234f0dd1 Start using proper 3ds executable formats (doesnt work properly yet) 2018-05-09 15:55:48 -07:00
Twinaphex 911072fb69 Merge pull request #6755 from Dwedit/small_bugfix
Small Bugfix to not trigger savestate code
2018-05-10 00:52:46 +02:00
Dwedit f94c736945 Small Bugfix, do not have Reset command trigger savestate code 2018-05-09 17:42:30 -05:00
twinaphex 46f7742afc Some early WinRT commits 2018-05-09 16:13:29 +02:00
gblues c161813f10 fix so object files are in expected location 2018-05-08 20:43:37 -07:00
gblues 171e222ebe Add "compile" make target
== DETAILS

As part of the build system overhaul, I need to be able to compile
without linking; this adds a "compile" target so that I can do that.

Currently only implemented on the main Makefile and Wii U.
2018-05-08 20:03:13 -07:00
alphanu1 61f445b159 Merge pull request #66 from alphanu1/alphanu1-patch-63
changes to switching method
2018-05-08 15:17:30 +01:00
alphanu1 b89b08d1ff changes to switching method
Added HDMI switching when CRT active, this slowed switching down. So there is also a new method to switch
2018-05-08 15:16:08 +01:00
alphanu1 e9739c2b14 Merge pull request #65 from alphanu1/alphanu1-patch-62
added swap_interval change for CRT
2018-05-08 15:14:31 +01:00
alphanu1 1bd74718ee added swap_interval change for CRT
Change for interlaced resolution when CRT active
2018-05-08 15:13:37 +01:00
alphanu1 90839289c4 Merge pull request #64 from libretro/master
update
2018-05-08 10:33:40 +01:00
Twinaphex 53140172ab Update CHANGES.md 2018-05-08 01:48:34 +02:00
Twinaphex a9e7bd9ee1 Merge pull request #6737 from gblues/master
Implement UDP broadcast network logging on Wii U
2018-05-08 01:47:04 +02:00
twinaphex 41d2ebf8b5 Apparently not available 2018-05-08 00:16:20 +02:00
twinaphex 2c409c606e (Winphone) should be _DISCARD 2018-05-07 23:19:42 +02:00
twinaphex 244f167dd5 (D3D11) Start adding D3D feature level 9 and Windows Phone ifdefs 2018-05-07 23:18:59 +02:00
Brad Parker 03e0510fc4 Qt: use guarded pointer for adding grid items to layout, in case playlist is changed (and hence the items get deleted) before they are all added 2018-05-07 14:29:54 -04:00
twinaphex 70bbe0bdb1 Update CHANGES.md 2018-05-07 17:56:48 +02:00
twinaphex c79950d707 (PS3) Add HAVE_DR_FLAC
(Dr. Flac) Fix some warnings with PS3 compiler
2018-05-07 17:52:53 +02:00
twinaphex 4f549bc55c (cheevos) Silence PS3 warnings
(PS3) Add HAVE_DR_MP3
2018-05-07 17:45:43 +02:00
twinaphex fb141343c3 (NSW) Add RARCH_INTERNAL 2018-05-07 17:41:53 +02:00
twinaphex 2cfa05fbbb (RGUI) Expose hex options for colors 2018-05-07 16:11:38 +02:00
twinaphex 1e42e8f58c (Qt) Add translatable string for 'Clear' 2018-05-07 15:37:54 +02:00
twinaphex b2361987b7 Make 'Current Core' string translatable 2018-05-07 15:27:56 +02:00
twinaphex 648be7e181 (menu_displaylist.c) Cleanups 2018-05-07 15:23:38 +02:00
twinaphex 555ffba328 menu_displaylist_parse_settings_internal - cleanup 2018-05-07 15:16:56 +02:00
twinaphex 3c73183a04 Cleanups - fix warnings 2018-05-07 15:05:59 +02:00
twinaphex 3753ff15fd (NSW) Add header include dir for dr_mp3 2018-05-07 14:50:00 +02:00
twinaphex 8af8db59e0 (Menu displaylist) Cleanups 2018-05-07 14:48:13 +02:00
twinaphex 45b841274a menu_displaylist_ctl - cleanups 2018-05-07 13:47:08 +02:00
Brad Parker 649216c700 Qt: add view menu option to change between icon/list views 2018-05-07 02:36:00 -04:00
Brad Parker faf52937c5 Qt: buildfix 2018-05-07 00:07:12 -04:00
gblues 5b3dd70ac3 Use a different packet size
== DETAILS

We had some disagreement on what packet size to use.

The maximum packet size varies depending on the actual network
hardware in use; the typical Ethernet value is relatively safe,
but not 100% compatible.

RFC 791 does, however, define a minimum datagram size that all
IP hosts must be able to handle--and it's large enough for our
needs, since we're generally not writing more than maybe 100
bytes at a time anyway.

I also did a little bit of cleanup for readability.
2018-05-06 19:08:32 -07:00
Brad Parker 2a784ae1bc Qt: remove mutex, defer loading of grid items into layout, use guarded pointers for exec() operations, misc cleanup 2018-05-06 20:50:54 -04:00
twinaphex 3cf12dbbf8 DRIVER_DATA_GET calls nearly gone from menu_displaylist.c 2018-05-07 02:46:40 +02:00
twinaphex b647f6e019 Cleanups 2018-05-07 02:44:03 +02:00
twinaphex 7928c3b098 Cleanups 2018-05-07 02:40:47 +02:00
twinaphex 698999f129 (menu_displaylist.c) Cleanups 2018-05-07 02:35:40 +02:00
twinaphex d3c2393daf Cleanups 2018-05-07 02:33:21 +02:00
twinaphex 0384ed4535 Cleanups 2018-05-07 02:25:19 +02:00
twinaphex 96b0edf962 (menu_displaylist.c) Cleanups 2018-05-07 02:20:19 +02:00
twinaphex 886170f505 Cleanups 2018-05-07 02:14:41 +02:00
twinaphex 05c272afd6 (menu_displaylist.c) Cleanups 2018-05-07 02:10:03 +02:00
twinaphex fd76c3b8b1 Change back to previous behavior 2018-05-07 01:29:21 +02:00
gblues 23f0a85446 Implement UDP broadcast network logging on Wii U
== DETAILS

The broadcast address is a standard part of TCP/IP that is used to
send messages to everyone on the subnet. This patch updates the
logging code to do the following:

1. Derive the broadcast address from the Wii U's own IP address
   and subnet mask. These can all be obtained at runtime, which
   means we can...
2. Remove the PC_DEVELOPMENT_IP_ADDRESS define from Wii U's
   Makefile, because compiling in an IP is no longer needed.
3. Rewrite the net_listen script to listen for broadcast packets
   and print them out with timestamps.

Since it's using the broadcast address, the only requirement is
that the PC be on the same network subnet as the Wii U.

Because of the low overhead of UDP, I've made logging on by
default. This will make it a ton easier to get useful bug
reports from users.
2018-05-06 14:39:48 -07:00
Twinaphex ac0b2799c5 Merge pull request #6735 from gblues/master
Fix Salamander build
2018-05-06 19:38:25 +02:00
gblues 58e298ab8d Fix Salamander build
- move non-salamander objects out of salamander scope
- move the missing libc functions to general scope
- fix salamander_main inline invocation

TESTING: Ran 'make -f Makefile.wiiu SALAMANDER=1' successfully
2018-05-06 10:01:20 -07:00
twinaphex e18f81eb74 Update libretro-common 2018-05-06 17:11:18 +02:00
Twinaphex 72fa691c81 Merge pull request #6733 from Tatsuya79/patch-8
QT remove button ghostly inside highlighting
2018-05-06 17:06:53 +02:00
Tatsuya79 425da219c6 QT remove button ghostly inside highlighting 2018-05-06 17:05:21 +02:00
Twinaphex 8484ea4154 Merge pull request #6672 from gblues/master
Cleanup of Wii U launcher code
2018-05-06 15:24:00 +02:00
Twinaphex 0f87a06a67 Merge pull request #6730 from QuarkTheAwesome/gx2-patch1
[WiiU] Fix out-of-bounds rendering bug
2018-05-06 13:40:22 +02:00
Ash 68d789a4ea [WiiU] Fix out-of-bounds rendering bug 2018-05-06 21:18:03 +10:00
Brad Parker de71a4dee7 Qt: general performance improvements, fix crash on switching playlists quickly in grid view, prevent initial loading of grid items from blocking 2018-05-06 01:36:47 -04:00
Brad Parker d55b1a0ad4 Qt: only check for pending events of the main thread 2018-05-05 23:17:30 -04:00
Brad Parker c2ad8d47d3 Qt: only check for pending events of the main thread 2018-05-05 22:57:29 -04:00
Twinaphex ec8f40c833 Merge pull request #6727 from ceb33/master
fix to set hid device registration deterministic (#6497), to address issue #6640 re-adding dynamic device registration
2018-05-05 23:15:12 +02:00
Brad Parker 8e7e530747 Qt: fix crash on switching playlists quickly 2018-05-05 17:02:03 -04:00
ceb33 bafd2af885 remove custom debug output 2018-05-05 13:33:15 +02:00
ceb33 67784c85cf update and merge to current Retroarch version 2018-05-05 12:59:04 +02:00
ceb33 9008684651 re-add callback to manage usb device plugged in while retroarch is running 2018-05-05 12:48:01 +02:00
Twinaphex 2771f8cc41 Update CHANGES.md 2018-05-04 22:51:47 +02:00
Twinaphex a371a2f835 Merge pull request #6717 from altiereslima/master
Update Portuguese Brazilian translation
2018-05-04 22:38:51 +02:00
Twinaphex 9e0a3f0794 Merge pull request #6720 from Tatsuya79/patch-7
QT QSlider styling
2018-05-04 22:38:42 +02:00
twinaphex 9462e5aa93 Don't hide these settings behind advanced settings 2018-05-04 19:08:10 +02:00
Brad Parker a082ea7d76 Qt: remove zoom layout margins 2018-05-04 12:05:53 -04:00
twinaphex 91744d9dd0 Bump up version code 2018-05-04 16:27:14 +02:00
Tatsuya79 658ffb8951 QT QSlider styling 2018-05-04 12:11:53 +02:00
Mikael Brunnhede 1bc304b26e Automatically hide the "Configuration Override options" Quick Menu entry if neither of the sub-options are enabled. 2018-05-04 10:18:22 +02:00
altiereslima b03a943dd9 fix translation 2018-05-04 01:32:36 -03:00
altiereslima e8a0e78d9e Update Portuguese Brazilian translation 2018-05-04 01:21:31 -03:00
Brad Parker fc3251b6a9 Qt: use non-linear scale for zoom slider 2018-05-03 23:58:15 -04:00
twinaphex b2ceb50897 Update to 1.7.3 2018-05-04 05:45:22 +02:00
Twinaphex 6c95cbb6b4 Merge pull request #6716 from cubtekki/cubtekki-patch-0
Updated readme file
2018-05-04 05:07:02 +02:00
cubtekki cbd8f83288 Update README.md
Corrected some spelling errors.
2018-05-03 20:02:22 -07:00
cubtekki bcb7a7a6c8 Update README.md
Corrected some spelling errors.
2018-05-03 19:55:30 -07:00
Brad Parker e372bb5320 Qt: cut maximum zoom slider value in half 2018-05-03 22:10:45 -04:00
Brad Parker 0f2262f065 Qt: fix thumbnail image loading 2018-05-03 22:05:12 -04:00
Brad Parker 6cab8cf139 Qt: fix some grid images not drawing properly 2018-05-03 22:05:12 -04:00
Brad Parker c10e65e99e Qt: support image playlist in grid layout 2018-05-03 22:05:12 -04:00
Brad Parker c42ad9fbb9 Qt: respect current zoom level when changing playlists 2018-05-03 22:05:12 -04:00
Brad Parker 758d484874 Qt: use primary screen size divided by 8 for grid item size 2018-05-03 22:05:12 -04:00
Brad Parker 5fa0d75bd7 adjust zoom factors 2018-05-03 22:05:12 -04:00
Brad Parker 8752996018 Qt: add grid zoom slider 2018-05-03 22:05:12 -04:00
Brad Parker f79ba4885a Qt: threaded grid image loading 2018-05-03 22:05:12 -04:00
Brad Parker 5f7abb068b Qt: initial grid layout work 2018-05-03 22:05:12 -04:00
Brad Parker 19f6798947 Qt: make sure we are inited before calling into the driver 2018-05-03 21:47:21 -04:00
Twinaphex 756320755b Update CHANGES.md 2018-05-04 03:31:45 +02:00
Twinaphex ed9ce033d8 Update CHANGES.md 2018-05-04 03:30:43 +02:00
Twinaphex 5c59e7f523 Update CHANGES.md 2018-05-04 03:23:01 +02:00
Twinaphex ad7ccf6d7b Update CHANGES.md 2018-05-04 03:21:51 +02:00
Twinaphex 66dfae2234 Merge pull request #6713 from orbea/make
Makefile: Try to fix logic.
2018-05-04 01:16:35 +02:00
orbea 14bb035026 Makefile: Try to fix logic. 2018-05-03 15:50:11 -07:00
twinaphex 6c09195f5e (D3D8/D3D9) Updates 2018-05-03 22:08:14 +02:00
twinaphex 6d019284f8 Get rid of some of the casts 2018-05-03 22:06:04 +02:00
twinaphex 82ebb9576f Create d3d9_video_t and d3d8_video_t 2018-05-03 22:03:12 +02:00
twinaphex c4a03b6b45 (xdk360_fonts.cpp) Cleanups 2018-05-03 21:39:25 +02:00
twinaphex 9f80092bbb Updates 2018-05-03 21:29:58 +02:00
Twinaphex 4a1fc9b598 Merge pull request #6701 from orbea/cxx
qb: Fix checking the CXX compiler
2018-05-03 21:28:47 +02:00
orbea 8f861d438b qb: Fix checking the CXX compiler
This does the following.

1. Fixes checking if the CXX compiler works on platforms other than windows.
2. Turns the error when the CXX compiler is missing or doesn't work into a warning.
3. Adds HAVE_CC and HAVE_CXX.
4. Only adds CC and CXX to config.mk when HAVE_CC or HAVE_CXX are true.
5. Disables Qt companion, Vulkan, CXX_BUILD and NEED_CXX_LINKER if HAVE_CXX is false.
6. Explicitly errors when the CXX compiler is broken or missing and Qt or vulkan support is enabled.
7. No longer explicitly links with the CXX compiler on windows since this should no longer be needed.

This also adds the function `check_enabled` to `qb/qb.lib.sh` which
can be used to dynamically disable any libraries that require C++
support.
2018-05-03 12:24:32 -07:00
Twinaphex de1bf58997 Buildfix 2018-05-03 20:39:03 +02:00
twinaphex 3796e52018 (OSX) Go back to old code - connect handler was broken 2018-05-03 20:31:28 +02:00
Twinaphex 356cd47ce8 Silence some unused variable warnings 2018-05-03 19:35:27 +02:00
twinaphex dd8a2df253 Cleanup 2018-05-03 19:17:13 +02:00
Brad Parker 05404f9104 fix buffer overflow in url encoding (affecting msvc2010/2013) 2018-05-03 12:57:23 -04:00
Twinaphex 803373bb09 Merge pull request #6712 from Dwedit/msvc_qt_project
Add QT builds to MSVC2017 project
2018-05-03 17:47:10 +02:00
Dwedit 00c116051f Add QT builds to MSVC2017 project
Fix missing line in griffin_cpp.cpp, and normalize end of line to LF
2018-05-03 10:32:32 -05:00
Twinaphex 909ffd4de4 Update input_driver.c 2018-05-03 15:28:26 +02:00
twinaphex 7bc66ae710 Buildfixes for MSVC 2015 2018-05-03 15:20:06 +02:00
twinaphex 268baca939 (MSVC 2013) Add /bigobj for griffin_glslang.cpp 2018-05-03 14:52:37 +02:00
Twinaphex 171bf76100 Merge pull request #6711 from Tatsuya79/patch-4
QT restore preferences if they exist
2018-05-03 14:07:11 +02:00
Tatsuya79 49177bdd93 QT restore preferences if they exist 2018-05-03 13:42:25 +02:00
twinaphex 4fac2b339c Remove unused variable 2018-05-03 13:20:05 +02:00
twinaphex 28025802da Try to fix build failure 2018-05-03 13:11:38 +02:00
Twinaphex c9744c5ba4 Merge pull request #6704 from Dwedit/fix-win32-bug
Fix __stdcall calling convention for Win32 32-bit builds
2018-05-03 12:20:08 +02:00
Twinaphex 78d571239c Merge pull request #6710 from alphanu1/patch-2
Fix screen position for CRT user
2018-05-03 12:19:40 +02:00
Twinaphex 9feb9ec37c Merge pull request #6709 from alphanu1/patch-1
Fix incorrect menu sizing for CRT
2018-05-03 12:19:27 +02:00
Twinaphex d877bccde5 Merge pull request #6706 from fr500/fixes
fix #6700
2018-05-03 12:19:12 +02:00
alphanu1 7dab5b9ae3 Fix screen position for CRT user 2018-05-03 09:42:53 +01:00
alphanu1 c3beeb3ca9 Fix incorrect menu sizing for CRT 2018-05-03 09:36:37 +01:00
gblues 84e9c93c35 quotes for some, braces for others 2018-05-02 22:37:34 -07:00
radius 7bdbd005a8 fix #6700 2018-05-02 23:32:40 -05:00
gblues 27bfcf3c77 Replace angle includes with quote includes
=== DETAILS

Replaced includes for things that aren't standard library headers so
they use quotes instead of brackets.

Also fixed up a couple of headers that had include-order dependencies.
2018-05-02 21:31:00 -07:00
Dwedit 81457d74d3 Use WINAPI instead of __stdcall, not sure what keywords I can use or not, so I'll just use the macro instead of the keyword 2018-05-02 22:09:20 -05:00
Dwedit 0d2f9b9b11 Fix __stdcall calling convention for Win32 32-bit builds 2018-05-02 21:59:07 -05:00
twinaphex 896ac3c89f Add sublabel 2018-05-03 03:42:22 +02:00
twinaphex 27b399521f (MaterialUI) Fix icon label for Mixer Settings 2018-05-03 02:14:12 +02:00
twinaphex d45002779d Fix one label 2018-05-03 02:12:16 +02:00
twinaphex 4c212d460f Make Mixer Stream values translatable 2018-05-03 02:08:21 +02:00
twinaphex 1ab1d12398 Add sublabels to 'Add To Mixer' 2018-05-03 02:02:28 +02:00
twinaphex 965149d425 Add sublabels for mixer actions 2018-05-03 01:47:52 +02:00
twinaphex 7b1d61da3d (QuickMenu) Added Configuration Override submenu 2018-05-03 00:04:19 +02:00
twinaphex ea77fbbd38 Increase max streams from 8 to 16 2018-05-02 23:42:39 +02:00
twinaphex cdc60481cf Fix label 2018-05-02 21:56:45 +02:00
twinaphex ab360ae3ac (Audio mixer) Add Sequential playback mode 2018-05-02 21:43:16 +02:00
twinaphex b480cdbe26 Add 'Add To Mixer And Play' 2018-05-02 21:09:53 +02:00
twinaphex 0d36993ceb Remove name when sound is done 2018-05-02 21:02:45 +02:00
twinaphex 68a2f18bfb Cleanups 2018-05-02 20:52:06 +02:00
Twinaphex 44e935c64d Merge pull request #6702 from orbea/cxx_linker
Makefile.common: Fix vulkan builds on 32-bit linux.
2018-05-02 20:49:54 +02:00
twinaphex 5e32f7ab40 Add To Mixer and Add To Mixer And Play actions 2018-05-02 20:39:55 +02:00
twinaphex 90c1ce8fcc Add Add To Mixer And Play labels 2018-05-02 20:27:01 +02:00
twinaphex 51374fd2d1 Add better title for stream 2018-05-02 20:21:20 +02:00
twinaphex 9fbfd503af Add value descriptions for audio mixer streams 2018-05-02 20:13:13 +02:00
orbea 2fce9127d0 Makefile.common: Fix vulkan builds on 32-bit linux. 2018-05-02 10:44:45 -07:00
twinaphex eff75a3bcd Move nbio_buf_t to task_audio_mixer.c 2018-05-02 19:30:06 +02:00
Twinaphex 468b41f7bc Merge pull request #6695 from orbea/cxx
qb: Always print CC and CXX variables if set.
2018-05-02 16:57:26 +02:00
Twinaphex 3bdbe22e27 Merge pull request #6697 from altiereslima/master
Update Portuguese Brazilian translation
2018-05-02 14:53:43 +02:00
altiereslima 212e857656 Update Portuguese Brazilian translation 2018-05-02 09:38:24 -03:00
twinaphex eac899f573 Try to fix build for targets that don't have HAvE_OVERLAY defined 2018-05-02 13:52:27 +02:00
gblues 7448fd3157 More code re-organization
=== DETAILS
Since @aliaspider wants the `wiiu/` to be something of a mini-SDK, I've
reorganized the code I put in there:

- `wiiu/main.c` now only has the ELF/RPX entrypoints, and the code used
  by those entrypoints, with RA code removed (e.g. swapped retro_sleep()
  for usleep()). These entrypoints then call main() ...
- Moved `main()` and its support functions back into `frontend/drivers/platform_wiiu.c`
  I also renamed some of the support functions I wrote, and better
  organized them within the code.
- Moved `wiiu/input/` into the `input/` hierarchy:

  * The joypad drivers now live in `input/drivers_joypad/wiiu/`
  * The HID driver now lives in `input/drivers_hid/`
  * The Wii U specific headers now live in `input/include/wiiu`
  * I added `input/include` into the include search path to avoid
    using really ugly relative includes
2018-05-01 23:23:40 -07:00
Brad Parker 4785893847 Qt: select the first visible item, which may not be row 0 2018-05-02 01:16:17 -04:00
Brad Parker 0ed2a5307d Qt: always free string list 2018-05-02 01:16:17 -04:00
orbea 237a705a82 qb: Always print CC and CXX variables if set. 2018-05-01 17:47:14 -07:00
Twinaphex 6588969bb4 Merge pull request #6690 from fr500/fixes
fix #6631
2018-05-02 02:36:37 +02:00
Twinaphex d68266d92e Merge pull request #6688 from altiereslima/master
Update Portuguese Brazilian translation
2018-05-02 01:46:43 +02:00
Brad Parker 99e4271f29 fix null dereference when there is no runahead save state list 2018-05-01 19:19:35 -04:00
radius 3304dad729 fix #6631 2018-05-01 18:09:04 -05:00
twinaphex 95278d39f7 Buildfix for MSVC 2003 2018-05-02 01:03:40 +02:00
Brad Parker 17524d5681 add loglevel tag back 2018-05-01 18:45:43 -04:00
altiereslima d5e62b731b update 2018-05-01 19:25:17 -03:00
altiereslima eba3a1b72d Update Portuguese Brazilian translation 2018-05-01 19:21:14 -03:00
Brad Parker eb549fdc17 Qt: can't get core info if there isn't any 2018-05-01 18:17:28 -04:00
Twinaphex b247962115 Merge pull request #6686 from bparker06/qt_defer_init
Qt: only init new UI the first time it is about to be shown
2018-05-01 23:49:09 +02:00
Brad Parker e3712182bd Qt: only init new UI the first time it is about to be shown 2018-05-01 17:47:12 -04:00
Twinaphex f0d25d2fd9 Merge pull request #6685 from alphanu1/master
Fix for exit error on Linux when CRT mode inactive
2018-05-01 23:01:20 +02:00
alphanu1 92e3e6c337 Merge pull request #61 from alphanu1/alphanu1-patch-59
Fix for Linux users exit error when CRT disabled
2018-05-01 21:43:23 +01:00
alphanu1 d1b834a301 Fix for Linux users exit error when CRT disabled 2018-05-01 21:42:29 +01:00
Twinaphex 511039330e Merge pull request #6684 from alphanu1/master
Fix for native low res in Linux
2018-05-01 22:13:13 +02:00
alphanu1 87a45160f0 Merge pull request #60 from alphanu1/alphanu1-patch-58
Removed static from function to share aspect changing
2018-05-01 21:08:26 +01:00
alphanu1 82a2fb955e Removed static from function to share aspect changing 2018-05-01 21:07:52 +01:00
alphanu1 53ee0a2cb3 Merge pull request #59 from alphanu1/alphanu1-patch-57
Fix for native low res in Linux
2018-05-01 20:56:48 +01:00
alphanu1 97630d7fb1 Fix for native low res in Linux 2018-05-01 20:56:30 +01:00
alphanu1 cf1d9274d2 Merge pull request #58 from alphanu1/alphanu1-patch-56
Fix for native low res in Linux
2018-05-01 20:56:03 +01:00
alphanu1 c9d89e234a Fix for native low res in Linux 2018-05-01 20:55:24 +01:00
Twinaphex cd8ae4d7d3 Merge pull request #6678 from altiereslima/master
Update Portuguese Brazilian translation
2018-05-01 21:46:07 +02:00
twinaphex 33c1d55801 GetDisplayConfigBufferSizes and QueryDisplayConfig now go
through function pointers for backwards compatibility
2018-05-01 21:44:10 +02:00
alphanu1 65a0427471 Merge pull request #55 from alphanu1/alphanu1-patch-53
res fix
2018-05-01 20:32:49 +01:00
alphanu1 8584e27a81 res fix 2018-05-01 20:32:34 +01:00
alphanu1 11374ddf12 Merge pull request #54 from alphanu1/alphanu1-patch-52
Linux resolution improvements for CRT
2018-05-01 20:28:22 +01:00
alphanu1 11b0fe2a97 Linux resolution improvements for CRT 2018-05-01 20:28:01 +01:00
alphanu1 ab6acd1115 Merge pull request #53 from libretro/master
update
2018-05-01 20:26:09 +01:00
Twinaphex 402b1432ee Merge pull request #6681 from orbea/indent
Silence -Wmisleading-indentation warning
2018-05-01 20:13:26 +02:00
orbea b2f508d72e qb: Improve moc detection (#6680) 2018-05-01 13:40:42 -04:00
alphanu1 533f762e52 Merge pull request #52 from libretro/master
update
2018-05-01 18:39:20 +01:00
orbea e33a12c18f Silence -Wmisleading-indentation warning
gfx/video_crt_switch.c: In function ‘crt_screen_setup_aspect’:
gfx/video_crt_switch.c:95:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
       if (width < 1920)
       ^~
gfx/video_crt_switch.c:97:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          height = 480;
          ^~~~~~
2018-05-01 10:17:19 -07:00
Brad Parker 20cb92c185 qb: allow building without Qt 2018-05-01 16:24:19 +00:00
Brad Parker 6639d0ed89 qb: don't fail if moc is missing 2018-05-01 08:51:57 -07:00
altiereslima 974a04e692 Update Portuguese Brazilian translation 2018-05-01 12:30:49 -03:00
Twinaphex eb498f56a6 Merge pull request #6674 from Brunnis/fix-incorrect-dialog-label
Fix incorrect labels on dialogs due to incorrect macro
2018-05-01 13:31:23 +02:00
Twinaphex 12d72e26cc Merge pull request #6673 from alphanu1/master
Tweaks to modeline genorator
2018-05-01 13:24:40 +02:00
alphanu1 dcb7dd12c8 Merge pull request #51 from alphanu1/alphanu1-patch-51
Better startup resolution for CRT
2018-05-01 12:14:53 +01:00
alphanu1 4b8fbf8682 Better startup resolution for CRT 2018-05-01 12:14:25 +01:00
alphanu1 2279870235 Merge pull request #50 from alphanu1/master-4
modeline tweaks, better porches
2018-05-01 12:10:58 +01:00
alphanu1 cc1024ddd0 modeline tweaks, better porches 2018-05-01 12:10:32 +01:00
alphanu1 50751e3f43 Merge pull request #49 from libretro/master
update
2018-05-01 12:08:27 +01:00
Mikael Brunnhede b2187d4b10 Fix incorrect labels on dialogs due to incorrect macro. 2018-05-01 12:17:36 +02:00
Brad Parker 791aaa00e1 qb: detect Qt automatically 2018-04-30 22:11:55 -07:00
gblues 04cefd27d1 Cleanup of Wii U launcher code
== DETAILS

The Wii U main entrypoints were embedded in the frontend driver,
which isn't a great place for them. Also, the `main()` method was
pretty long and monolithic. Now it's (much) less so.

Changes:

- Refactor out the main entrypoints into their own source files
  (`wiiu/main.c` and `wiiu/main.h`)
- Optimize includes in both files, so only the minimum needed to
  compile are included.
- The `main()` method is a lot easier to understand now. It's no longer
a confusing mess of ifdefs.
- There's a small amount of changes in the headers for future work, which
  is switching kpad_driver to be callback-driven. The only change here is
  to import the function that will be used, and define some data types.

Testing:
- Did local builds and confirmed build is successful
- Successfully loaded a core and switched among a few games
2018-04-30 21:56:06 -07:00
Twinaphex 9ba9f9e8bd Merge pull request #6671 from altiereslima/master
Update Brazilian Portuguese translation
2018-05-01 04:55:49 +02:00
altiereslima 0058d734a2 Update Brazilian Portuguese translation
based in english file: msg_hash_us.h
2018-04-30 23:48:21 -03:00
twinaphex b650d484f4 (Qt) Change label to Clear 2018-05-01 04:35:02 +02:00
Brad Parker cc94cafa8f update Japanese translation 2018-04-30 22:06:32 -04:00
Brad Parker 4df26353dd Qt: add option (off by default) to suggest the currently loaded core first 2018-04-30 20:33:28 -04:00
Brad Parker f2f37a3309 Qt: refocus UI when unloading core/content 2018-04-30 19:52:21 -04:00
twinaphex bf084da088 (ui_companion_driver) cleanups 2018-05-01 01:29:17 +02:00
Brad Parker 71257adb8e Qt: add setting in User Interface to enable use of the desktop menu in general (disabling it may improve startup time if desktop menu is not being used) 2018-04-30 19:11:38 -04:00
Twinaphex fc28edd821 Merge pull request #6670 from Tatsuya79/patch-3
small text style change
2018-04-30 23:09:56 +02:00
Tatsuya79 dbdef08a90 small text style change 2018-04-30 23:02:18 +02:00
twinaphex b7ceedd891 Qt GUI won't work for C89 2018-04-30 21:03:47 +02:00
Twinaphex 62256b77c3 Merge pull request #6668 from bparker06/qt_wimp_squash
Qt WIMP GUI
2018-04-30 20:51:30 +02:00
Brad Parker a1aefc901c Qt WIMP GUI 2018-04-30 14:33:05 -04:00
Twinaphex 4e057edb1e Merge pull request #6666 from alphanu1/master
Fixed incorrect variable assignment.
2018-04-30 19:47:07 +02:00
alphanu1 93bdb5c4f4 Merge pull request #48 from alphanu1/alphanu1-patch-48
Fix incorrect variable
2018-04-30 18:41:40 +01:00
alphanu1 2226dec436 Fix incorrect variable 2018-04-30 18:41:20 +01:00
Twinaphex 97ccfdf020 Merge pull request #6665 from alphanu1/master
Windows hz bug fix
2018-04-30 19:27:49 +02:00
alphanu1 34ecc81484 Merge pull request #47 from alphanu1/alphanu1-patch-47
Moved variable back to the top
2018-04-30 17:54:20 +01:00
alphanu1 675da4692e Moved variable back to the top 2018-04-30 17:54:00 +01:00
alphanu1 3e17cbd2e1 Merge pull request #46 from alphanu1/alphanu1-patch-46
Variable rename
2018-04-30 17:51:51 +01:00
alphanu1 9400754a2b Variable rename 2018-04-30 17:51:28 +01:00
alphanu1 fdddbb713d Merge pull request #45 from alphanu1/alphanu1-patch-45
Variable rename
2018-04-30 17:50:36 +01:00
alphanu1 db751b4241 Variable rename 2018-04-30 17:50:13 +01:00
alphanu1 73b5aff2e1 Merge pull request #44 from alphanu1/alphanu1-patch-44
bug fix with hz switching
2018-04-30 17:15:38 +01:00
alphanu1 11b7f76526 bug fix with hz switching 2018-04-30 17:14:19 +01:00
Twinaphex 54f54fce28 Merge pull request #6664 from meleu/patch-21
don't allow slow motion if cheevos enabled
2018-04-30 18:13:28 +02:00
twinaphex 6ba2e72a3b Add title for mixer stream settings 2018-04-30 18:12:22 +02:00
twinaphex 1f2a543232 Change logging back to 0 2018-04-30 17:53:07 +02:00
twinaphex 5aeab54ab7 (Audio mixer) Ability to individually set volume per stream 2018-04-30 17:51:01 +02:00
alphanu1 9474b4be74 Merge pull request #43 from alphanu1/master-3
Linux / Windows hz bug fix and Linux low res modeline generator fix
2018-04-30 16:50:58 +01:00
alphanu1 f672c7dc5c Linux / Windows hz bug fix and Linux low res modeline generator fix
when merging Linux CRT refresh rate hz was dealt with in floats for Linux but ints for windows.
2018-04-30 16:49:22 +01:00
alphanu1 3edd7a6ac8 Merge pull request #42 from alphanu1/alphanu1-patch-41
Linux / windows hz bug fix
2018-04-30 16:41:04 +01:00
alphanu1 af3eb9e851 Linux / windows hz bug fix
when merging Linux CRT refresh rate hz was dealt with in floats for Linux but ints for windows.
2018-04-30 16:40:27 +01:00
alphanu1 e6dd809c8a Merge pull request #41 from libretro/master
RA update
2018-04-30 16:30:57 +01:00
meleu e57d0049f3 disable slow motion if cheevos enabled 2018-04-30 12:27:35 -03:00
twinaphex 01e85b321b Improve audio_driver_menu_sample 2018-04-30 15:44:12 +02:00
twinaphex 0cea2cf158 Remove two Coverity warnings 2018-04-30 15:32:28 +02:00
twinaphex 1c90866070 Refactor this a bit and document it 2018-04-30 15:24:40 +02:00
twinaphex 25a7cb0f66 (Menu) Rename hack_shader_pass to scratchpad.unsigned_var 2018-04-30 15:19:54 +02:00
twinaphex 49341bac26 Add Play/Play (Looped) actions 2018-04-30 15:04:29 +02:00
twinaphex eb4ee2d57c Merge branch 'master' of https://github.com/libretro/RetroArch 2018-04-30 14:34:48 +02:00
twinaphex 965859ddcb Start adding mixer controls - ability to stop and remove loaded tracks 2018-04-30 14:34:25 +02:00
Twinaphex 22e55e61de Merge pull request #6656 from gblues/master
WIIU: Disable screen-dimming while core is running
2018-04-30 02:25:05 +02:00
gblues 162d1fbfb5 WIIU: Disable screen-dimming while core is running
== DETAILS
In my extended testing, I found that the HID device inputs don't get factored
into resetting things like the burn-in protection and automatic power down.

The automatic power-down can't be changed in software, but the screen dimming
can!

This patch disables the screen dimming while the core is running, but turns
it back on while the menu is displayed. This way, users who want the screen
dimming functionality to kick in need to simply enter the RA menu.
2018-04-29 16:26:14 -07:00
Twinaphex 05ea2cff96 Update CHANGES.md 2018-04-29 18:49:51 +02:00
Twinaphex e19b6faa7e Update CHANGES.md 2018-04-29 18:49:23 +02:00
Twinaphex bf64c1cf23 Merge pull request #6655 from alphanu1/master
Linux switching for CRT
2018-04-29 18:41:54 +02:00
Twinaphex 2285d19b90 Merge pull request #6653 from RobLoach/wbfs
Add Wii Backup File WBFS scanning
2018-04-29 17:21:37 +02:00
Twinaphex 29b8c47577 Merge pull request #6654 from theheroGAC/patch-30
Update msg_hash_it.h with the translations of the new strings
2018-04-29 16:54:18 +02:00
alphanu1 896041f468 Add files via upload 2018-04-29 15:47:32 +01:00
alphanu1 db2eaf97e4 Merge pull request #40 from alphanu1/alphanu1-patch-40
Linux switching CRT
2018-04-29 15:44:29 +01:00
alphanu1 16ccbbc75a Linux switching CRT 2018-04-29 15:44:08 +01:00
alphanu1 ec3ab4031b Merge pull request #39 from alphanu1/alphanu1-patch-39
Code clean up and Linux switching
2018-04-29 15:39:52 +01:00
alphanu1 a0b46d9a38 Code clean up and Linux switching 2018-04-29 15:38:16 +01:00
theheroGAC 51d1baa646 Update msg_hash_it.h 2018-04-29 15:54:19 +02:00
Rob Loach 00092eb5ea feat: Add Wii Backup File WBFS scanning 2018-04-29 09:51:38 -04:00
alphanu1 ff928ddb7c Merge pull request #38 from alphanu1/alphanu1-patch-38
Linux switching incorporation
2018-04-29 13:51:44 +01:00
alphanu1 7d53e6a16f Linux switching incorporation 2018-04-29 13:51:18 +01:00
alphanu1 d17ce844d5 Merge pull request #37 from alphanu1/alphanu1-patch-37
Linux switching incorporation
2018-04-29 13:50:08 +01:00
alphanu1 0498ab6b86 Linux switching incorporation 2018-04-29 13:49:32 +01:00
alphanu1 8aa4d52367 Merge pull request #36 from alphanu1/alphanu1-patch-36
Linux switching incorporation
2018-04-29 13:48:56 +01:00
alphanu1 a930afce31 Linux switching incorporation 2018-04-29 13:48:08 +01:00
twinaphex 4380bc52bd (MSVC) Buildfixes 2018-04-29 14:47:57 +02:00
alphanu1 2d36a32bcd Merge pull request #35 from alphanu1/alphanu1-patch-35
Linux switching incorporation
2018-04-29 13:47:26 +01:00
alphanu1 1eedb0406b Linux switching incorporation 2018-04-29 13:46:43 +01:00
Twinaphex 6cd046a42a Merge pull request #6650 from alphanu1/master
Restore resolution fix
2018-04-29 13:49:14 +02:00
alphanu1 c73b4b26ba Merge pull request #34 from alphanu1/alphanu1-patch-34
Changes to stop unwanted resolution change for non CRT users
2018-04-29 01:42:50 +01:00
alphanu1 1f8540ca9d Changes to stop unwanted resolution change for non CRT users 2018-04-29 01:41:38 +01:00
twinaphex d36026575e Remove obsolete diff 2018-04-29 01:12:54 +02:00
twinaphex 91fcb49270 (Menu audio) Fix situation where a libretro core is running
in the background and menu audio is playing - we don't want
audio_driver_menu_sample called then
2018-04-29 01:05:04 +02:00
twinaphex b0ef193117 Add 'Enable menu audio' setting 2018-04-29 00:41:53 +02:00
twinaphex 773fc1ebad Create audio_driver_menu_sample 2018-04-29 00:06:54 +02:00
alphanu1 90d62fd0cc Restore resolution fix 2018-04-28 20:53:39 +01:00
alphanu1 b51c8d62e7 Restore resolution fix 2018-04-28 20:52:58 +01:00
alphanu1 6aa072b6cf Restore resolution fix 2018-04-28 20:52:24 +01:00
alphanu1 46afabee6a Merge pull request #33 from libretro/master
MME Update 172
2018-04-28 20:51:51 +01:00
twinaphex 686faa2407 Add experimental-audio.diff 2018-04-28 21:40:36 +02:00
twinaphex b6df41d808 (audio_driver.c) Cleanups 2018-04-28 20:06:07 +02:00
twinaphex 5a80a6046f (Android) Remove no longer needed machine/cpu-features.h 2018-04-28 19:29:30 +02:00
Twinaphex 80b480e855 Merge pull request #6648 from fr500/master
fix #6644
2018-04-28 19:07:54 +02:00
radius 7b82c8a9bc fix #6644 2018-04-28 11:56:21 -05:00
radius 5e1a698fa2 fix #6644 2018-04-28 11:42:48 -05:00
twinaphex f14735961a (libFLAC) turn into relative path header includes 2018-04-28 15:14:53 +02:00
twinaphex 238091f182 (OSX/Android) Add Dr. Flac/Dr. Mp3 support to Android/OSX 2018-04-28 14:33:48 +02:00
twinaphex e3ce768ad0 (dr_mp3.h) Fix C89_BUILD issues 2018-04-28 14:32:10 +02:00
twinaphex 3583e1e501 Update 2018-04-28 14:22:42 +02:00
twinaphex e7272ddefa (Audio mixer) Add MP3 support as well 2018-04-28 14:18:04 +02:00
twinaphex 64f31f1ddd Update libretro-common 2018-04-28 13:52:54 +02:00
Twinaphex 2439673dcf Merge pull request #6646 from RobLoach/gfx-context
Fix missing division in mali fbdev
2018-04-28 13:26:20 +02:00
twinaphex 381f14fa9a (dr_flac.h) Silence warnings 2018-04-28 13:13:22 +02:00
twinaphex 9a6e069d6f (dr_flac.h) Assume stdint.h presence 2018-04-28 12:44:52 +02:00
twinaphex 89d765d6c7 Define DR_FLAC_NO_STDIO 2018-04-28 12:44:25 +02:00
twinaphex 437c4fbc0a (dr_flac.h) C89_BUILD fixes 2018-04-28 12:37:50 +02:00
twinaphex 3f7c318e3f (Audio mixer) Add FLAC support to audio mixer 2018-04-28 11:17:37 +02:00
Rob Loach 71c031099b Fix missing division in mali fbdev 2018-04-27 22:44:53 -04:00
twinaphex faa99bd323 Start adding FLAC hooks 2018-04-27 23:45:06 +02:00
twinaphex 714f7b7b13 Cleanups 2018-04-27 23:21:44 +02:00
twinaphex 958602d328 HAVE_BUILTINFLAC no longer needs to be excluded for C89 2018-04-27 23:17:28 +02:00
twinaphex 1f2ef858ab Update libretro-common 2018-04-27 23:12:24 +02:00
Twinaphex b693d76ebb Merge pull request #6638 from bearoso/fixmali
Fix typo in mali fbdev driver.
2018-04-27 19:57:56 +02:00
Twinaphex 6ad624f5bd Merge pull request #6639 from bearoso/travis
Adjust travis build to only use libraries the build-server supports.
2018-04-27 19:57:45 +02:00
Brandon Wright c7f04102c7 Adjust travis build to only use libraries the build-server supports. 2018-04-27 12:48:58 -05:00
Brandon Wright 0e013ced75 Fix typo in mali fbdev driver. 2018-04-27 12:42:46 -05:00
Twinaphex e52bb69b35 Merge pull request #6637 from orbea/flac
Makefile.common: Fix segfaults with --disable-builtinflac.
2018-04-27 19:02:09 +02:00
orbea 76b4b426af Makefile.common: Fix segfaults with --disable-builtinflac. 2018-04-27 09:54:05 -07:00
twinaphex 80025692c1 (Android) Bump up version code 2018-04-26 21:25:38 +02:00
Twinaphex 97215d5c8a Merge pull request #6625 from gblues/master
Fix WaveBird support for the Wii U GCA
2018-04-26 20:46:23 +02:00
twinaphex f1d707a043 Running gl_check_capability from gl_get_flags resulted in a crash
on some Android systems, so unfortunately we cannot selectively hide
away GPU Hard Sync for now
2018-04-26 20:45:01 +02:00
twinaphex 37b1c9e8e9 Add NULL entry 2018-04-26 16:05:57 +02:00
Twinaphex a097d5f6ac Merge pull request #6630 from gingerbeardman/patch-1
changed APP_UNIQUE_ID to next free & valid HEX number
2018-04-26 14:55:32 +02:00
Matt Sephton c6d6bb26c3 changed APP_UNIQUE_ID to next free & valid HEX number
was 0xBAC1G
2018-04-26 13:54:23 +01:00
twinaphex c482aff8b2 No idea where this character came from 2018-04-26 13:38:45 +02:00
Twinaphex 68a93e67e9 Merge pull request #6624 from fr500/master
prevent crashing in cores that don't range check retro_set_controller…
2018-04-26 13:33:21 +02:00
gblues f378e2bfcf Fix WaveBird support for the Wii U GCA
== DETAILS
Thanks to JacobM at GBAtemp for helping me test this.

The WaveBird wasn't being properly picked up due to the port status byte
being different from normal GC controllers. (Why? who knows. Probably
so games could detect the WB and show WB-specific OSDs).

This implementation should be more future-proof, to handle any other
unexpected status bytes.
2018-04-25 21:28:33 -07:00
radius 0964444e06 prevent crashing in cores that don't range check retro_set_controller_port 2018-04-25 19:51:55 -05:00
Twinaphex f0e057c8d0 Merge pull request #6623 from leiradel/master
Remove logging from cheevos
2018-04-25 23:52:40 +02:00
Twinaphex 6ac4032735 Merge pull request #6580 from gblues/gblues/hid
Working HID driver for Wii U [TESTING NEEDED]
2018-04-25 23:10:39 +02:00
twinaphex 9663f5199e (Switch) Enable HAVE_RUNAHEAD for Switch 2018-04-25 22:20:48 +02:00
Twinaphex 09394198b2 Update CHANGES.md 2018-04-25 22:10:04 +02:00
Andre Leiradella f04548a95d Fixed warning about unused STUB_LOG; removed unused debug functions 2018-04-25 18:02:31 +01:00
Andre Leiradella 029ba3d2f6 Mute cheevos logging, define CHEEVOS_VERBOSE in cheevos.h to enable 2018-04-25 17:56:15 +01:00
twinaphex 023e280319 win32_get_refresh_rate not available on Xbox 2018-04-25 14:20:37 +02:00
twinaphex 9a7ca5fe57 C89 buildfix 2018-04-25 12:02:35 +02:00
twinaphex 7b1ad55b20 Try to use snprintf instead of sprintf 2018-04-25 11:31:50 +02:00
Twinaphex 77b092ffc3 Merge pull request #6619 from Tatsuya79/patch-1
XMB fix crash with scale factor under 100
2018-04-25 10:55:19 +02:00
Tatsuya79 0737b90080 XMB fix crash with scale factor under 100 2018-04-25 10:54:04 +02:00
twinaphex 2fd9373c05 Merge branch 'master' of https://github.com/libretro/RetroArch 2018-04-25 10:44:04 +02:00
twinaphex fee49f0e7e Update libretro-common 2018-04-25 10:43:19 +02:00
Twinaphex a58f80cc09 Update CHANGES.md 2018-04-25 10:42:50 +02:00
Twinaphex 8e1c2e48c4 Update CHANGES.md 2018-04-25 10:42:50 +02:00
Celerizer 212d7bfbe1 [Cheevos] Store only login token, not password 2018-04-25 10:42:50 +02:00
twinaphex 2178f7b8ce Update libretro-common 2018-04-25 10:21:26 +02:00
Twinaphex 7902a60669 Update CHANGES.md 2018-04-25 10:15:40 +02:00
Twinaphex 134c1e6083 Merge pull request #6618 from celerizer/master
[Cheevos] Store only login token, not password
2018-04-25 10:14:25 +02:00
Twinaphex 6344162900 Update CHANGES.md 2018-04-25 10:13:57 +02:00
twinaphex de111ea903 Should fix some zip archives potentially not working on Linux; the
stream member of zlib was being set to random memory, so it was
attempted
 to be freed on line 73 of trans_stream_zlib.c
2018-04-25 10:10:22 +02:00
gblues 07864aebb4 Add fault-tolerance to kpad driver
== DETAILS

So, the KPadRead function will sometimes return 0, but this doesn't mean
the wiimote is actually disconnected. It's usually something transient, like
the BT chip has nothing to send or whatever. I don't know.

So, I added a buffer so that it won't disconnect the pad without 5
consecutive 0-reads.

This is a temporary hack; a proper solution will use the Wii U's callback
mechanisms to do wiimote detection. But that's a separate project. This at
least prevents OSD spam.

== TESTING

Tested locally. Verified that connecting/disconnecting nunchuk during play
still works properly.
2018-04-24 21:46:42 -07:00
gblues f33fa3d566 Fix pad leak in kpad (wiimote) driver
== DETAILS

This is the wiimote version of the same bug I previously fixed in the HID
driver, where disconnected pads didn't actually invoke the unregister task.

This has an extra wrinkle, in that we *also* need to invoke the unregister
task when the wiimote device changes (e.g. user plugs in a nunchuk or
classic controller).

Now, there's still the problem of the "disconnect" detection being broken; so
a consequence of this commit is OSD spam. However, the actual wiimote input
is processed successfully and there's no noticeable issues in the pad
handling.

== TESTING

Using Mario 3, I played a level in which I started as bare wiimote, then
hot-plugged the nunchuk, and the input switched automatically. At  the
end of the level, I hot-unplugged the nunchuk and it automatically reverted
to horizontal layout; and the pad remained 100% responsive the entire time.
2018-04-24 21:20:08 -07:00
Celerizer ca4f70db22 [Cheevos] Store only login token, not password 2018-04-24 21:31:07 -05:00
bparker06 2160f185f1 Update CHANGES.md 2018-04-24 19:34:31 -04:00
Twinaphex d65b387d0f Update AndroidManifest.xml 2018-04-24 19:03:57 +02:00
twinaphex ea69340130 Update 2018-04-24 18:36:35 +02:00
twinaphex c92142cdbd Duplicate latency settings 2018-04-24 18:33:38 +02:00
Twinaphex f2527b3a3c Merge pull request #6616 from Tatsuya79/master
Fix console layout case.
2018-04-24 18:21:02 +02:00
Tatsuya79 d851cbf3d5 Fix console layout case. 2018-04-24 18:14:18 +02:00
Twinaphex 485825fcd1 Merge pull request #6615 from Tatsuya79/master
XMB PSP layout thumbnail scaling.
2018-04-24 18:09:07 +02:00
Twinaphex bd01ab80ca Merge pull request #6614 from Dwedit/copy_load_info_bugfix
Two fixes for copy_load_info.c
2018-04-24 18:08:27 +02:00
Tatsuya79 31415f760a XMB PSP layout thumbnail scaling. 2018-04-24 17:47:02 +02:00
twinaphex b2e9a328cd Add User Interface -> Views -> Quick Menu -> Show
Overlays/Remaps/Latency
2018-04-24 17:46:49 +02:00
Dwedit dd6eb92352 Two fixes for copy_load_info.c
* Additional check before copying data in clone_retro_game_info
* Sizes the dest string list in string_list_clone to capacity rather than size
2018-04-24 10:32:31 -05:00
twinaphex b907ee2503 Add sublabels for CRT SwitchRes 2018-04-24 17:08:43 +02:00
twinaphex 65fe25f03c (RGUI) Add background border filler thickness enable 2018-04-24 16:45:06 +02:00
twinaphex ee421fcaa8 Add RGUI Border Filler Enable 2018-04-24 16:01:51 +02:00
gblues f6b33b1d30 missing file 2018-04-24 06:37:02 -07:00
twinaphex 68c9cf4cb9 update CHANGES.md 2018-04-24 15:27:12 +02:00
twinaphex 6b31bd8b48 Only show Menu Linear Filter for RGUI and only show it for
video drivers that implement it
2018-04-24 15:14:06 +02:00
twinaphex c506f489df (D3D8) Hook up Menu Linear Filter 2018-04-24 14:49:58 +02:00
twinaphex a75e7ede0d (D3D9) Implement Menu Linear Filter 2018-04-24 14:47:21 +02:00
twinaphex 77d97d2407 (menu_displaylist.c) Cleanups 2018-04-24 14:24:25 +02:00
twinaphex f228b26755 Cleanups 2018-04-24 14:08:38 +02:00
twinaphex 757d1baa8d Cleanups 2018-04-24 13:51:27 +02:00
twinaphex 5164e62172 User Interface -> Views - show 'no entries to display' instead
of getting locked in
2018-04-24 13:46:14 +02:00
twinaphex 381bc28530 Update CHANGES.md 2018-04-24 13:19:37 +02:00
twinaphex 64bdf7e48e Prevent collision 2018-04-24 08:33:14 +02:00
gblues 1d84c0eca1 Fix analog for DS3, plus some cleanups
== DETAILS

- DS3 analog wasn't working mainly because I forgot to actually declare the
  axes in input/input_autoconfig.c when declaring the pad. Whoops.
- I also moved the axis decoding logic to a more central place, because it
  clearly is not Wii U specific.
- Removed some dead commented-out code

== TESTING

Can use analog inputs on both GCA and DS3. Tested in Mario 3 on Nestopia core.

Haven't tested with any actual analog games, but I did confirm via logging
that the correct ranges are produced.
2018-04-23 23:22:27 -07:00
twinaphex 265ae728dd (XMB) Add XMB menu layout - ability to switch between PS3 (Console)
and PSP (Handheld) layouts
2018-04-24 07:38:53 +02:00
twinaphex af351932bd (XMB) Cleanups 2018-04-24 07:19:29 +02:00
twinaphex 72428a23c5 (shader_vulkan.cpp) Move some functions to vulkan_common.c 2018-04-24 07:07:58 +02:00
twinaphex a482c90222 (dynamic.c) Cleanups 2018-04-24 04:49:02 +02:00
twinaphex 2760586086 Cleanups 2018-04-24 04:46:13 +02:00
Twinaphex 17cbc80a9b Merge pull request #6609 from RobLoach/patch-32
Disable Travis email notifications
2018-04-24 03:35:16 +02:00
Rob Loach 431d15746e test: Disable Travis email notifications
@twinaphex reported that he was getting a lot of Travis email notifications. These are not needed, as the build status is reported on both Pull Requests, and the Status Badge.
2018-04-23 17:08:43 -04:00
twinaphex a93289e311 (materialui) add icons 2018-04-23 22:47:50 +02:00
twinaphex ebfa4bdcdc Implement two stub functions 2018-04-23 18:34:23 +02:00
twinaphex d6c17178a3 Add some logging for shader backend setup 2018-04-23 18:25:41 +02:00
twinaphex 77d815a572 Get rid of warning 2018-04-23 17:48:31 +02:00
twinaphex c90c98dcaa Silence warnings 2018-04-23 17:37:37 +02:00
twinaphex 789ef63dee (360) Don't bake in HAVE_XUI anymore; buildfixes for C++ 2018-04-23 17:35:36 +02:00
twinaphex fec8d3294c Cleanup 2018-04-23 17:23:14 +02:00
twinaphex 95ecbc0859 Update 2018-04-23 17:22:02 +02:00
twinaphex 830068e5bd Create d3d9x_constant_table_set_float_array 2018-04-23 17:20:08 +02:00
twinaphex a6fcd9dae0 Create d3d9x_constant_table_set_defaults 2018-04-23 17:09:11 +02:00
twinaphex bd3f39b005 Remove SetMatrix macro 2018-04-23 17:04:59 +02:00
twinaphex 0e5ccd7c15 Create d3d9x_constant_table_set_matrix 2018-04-23 17:04:30 +02:00
twinaphex dbb9a43abe (HLSL) Cleanups 2018-04-23 15:59:09 +02:00
twinaphex 8d02343b53 (HLSL) Cleanups 2018-04-23 15:58:00 +02:00
twinaphex d7fa70927c (HLSL) Cleanups 2018-04-23 15:55:26 +02:00
twinaphex d03ff06cf3 (HLSL) Cleanups 2018-04-23 15:51:24 +02:00
twinaphex 282b4ba21b (d3d9_common.c) Cleanups 2018-04-23 15:40:43 +02:00
twinaphex 0c4a3a83ce (HLSL) Fix implicit declaration 2018-04-23 15:32:47 +02:00
Steven M. Vascellaro 5061bc5a65 Fix variable names for 'video_msg'
A few variables for video message color/position were using the wrong variable name

https://github.com/libretro/RetroArch/blob/master/configuration.h#L274-L279
2018-04-23 09:32:46 -04:00
twinaphex af734939ee More HLSL work 2018-04-23 15:26:35 +02:00
twinaphex 32c92a9a22 Rename d3dxbuffer_release 2018-04-23 15:04:19 +02:00
twinaphex 45cea92ba2 Remove null_renderchain 2018-04-23 14:57:37 +02:00
twinaphex 871f04e19a (slang) Cleanups 2018-04-23 14:56:02 +02:00
twinaphex e54cb1b121 Only show black frame insertion for the video drivers/context drivers
that support it
2018-04-23 14:15:21 +02:00
twinaphex ee621ba476 Silence Coverity warning 2018-04-23 14:07:10 +02:00
twinaphex f1fa1d4879 Previously, GPU Hard Sync options would only show up if the
video driver was explicitly set to the GL driver; now, it can be
dynamically shown for more video drivers if there are going to be
more drivers supporting this feature other than GL
2018-04-23 13:42:09 +02:00
twinaphex c4c8699ee3 Only show max swapchain images if supported by video driver and/or
context driver
2018-04-23 13:34:30 +02:00
twinaphex 6f4fd8859a Add customizable swapchain images flag to VC EGL context 2018-04-23 13:12:00 +02:00
twinaphex b1a2d1991c (d3d10.c) Cleanups 2018-04-23 13:09:05 +02:00
twinaphex 6f3003554e (D3D10/D3D11/D3D12) Don't load menu pipeline shaders unless XMB
is selected
2018-04-23 12:59:28 +02:00
twinaphex 5370c59201 Cleanups/style nits 2018-04-23 12:03:50 +02:00
twinaphex bac0d22ce9 Create menu_display_osk_ptr_at_pos 2018-04-23 11:58:18 +02:00
twinaphex 8bc3283bd5 Create menu_display_draw_keyboard 2018-04-23 11:42:55 +02:00
twinaphex f8ccf50fd4 Make materialui_render_keyboard and xmb_render_keyboard identical 2018-04-23 11:36:15 +02:00
twinaphex 54ec4e47e8 Silence another warning 2018-04-23 11:31:39 +02:00
twinaphex eb69025ca8 Cleanups 2018-04-23 11:30:38 +02:00
twinaphex c18d2e0432 Silence warnings 2018-04-23 10:49:36 +02:00
Twinaphex b41c4ed624 Update 2018-04-23 10:22:54 +02:00
gblues f7135bcee6 Fix analog reading on GCA
== DETAILS
After a little trial and error, I got analog input working for the
Wii U GC adapter.

DS3 might work, but it's untested.
2018-04-22 23:47:07 -07:00
gblues ed742c48e0 Fix hotplugging
== DETAILS
So, it turns out that there *is* a autoconfig disconnect handler. Took digging
through tasks/task_autodetect.c to find it!

So, I added a call to the handler when the pad gets disconnected.

This seems to solve the problem of the pad not disappearing from the menu.

(At the very least, the user's pad index reverts to "none" which is still
an improvement)

== TESTING
Tested manually, made sure it didn't crash or leak slots.
2018-04-22 17:34:20 -07:00
twinaphex 997c24ae0c Make FLAC, zlib and LZMA support in libchdr optional 2018-04-22 20:19:07 +02:00
twinaphex fc169cf4fe Split up libchdr_chd.c into several files 2018-04-22 19:50:14 +02:00
twinaphex 8e2dfa6184 Cleanups 2018-04-22 19:19:27 +02:00
twinaphex 8a1f2f5cf2 Update libretro-common 2018-04-22 18:36:30 +02:00
twinaphex 7bef8746a3 Add chd_precache code to libchdr 2018-04-22 18:04:45 +02:00
twinaphex 1fd2cf1ff5 Update libchdr chd 2018-04-22 17:43:57 +02:00
twinaphex 5dc916f0b3 Take out another header include 2018-04-22 15:45:56 +02:00
twinaphex 04fa4871f0 Create d3d_translate_filter and get rid of duplicate functions 2018-04-22 15:45:11 +02:00
twinaphex 88387ccbde (D3D8) Cleanups 2018-04-22 15:34:08 +02:00
twinaphex 3a93377811 D3D8 buildfix 2018-04-22 14:55:15 +02:00
twinaphex 9e741019f3 (menu_display_d3d8.c) Buildfix 2018-04-22 14:46:20 +02:00
twinaphex 2a655116a6 Set #define CINTERFACE in these files 2018-04-22 14:27:39 +02:00
twinaphex 80fdd6d2a1 Less pointer/variable casting going on 2018-04-22 14:20:59 +02:00
twinaphex ca8829fe3c (D3D9) Simplifications 2018-04-22 14:00:32 +02:00
twinaphex a7e40ea3f4 (d3d8_common.c) Define CINTERFACE, get rid of C++ versions 2018-04-22 13:34:05 +02:00
twinaphex 5ee6cdf753 (d3d9_common.c) Cleanups 2018-04-22 13:26:58 +02:00
twinaphex 8de03fe843 (D3D9 common) Define CINTERFACE and get rid of C++ ifdefs 2018-04-22 13:18:56 +02:00
twinaphex 58623d7540 (d3d_common.h) Cleanups 2018-04-22 13:09:03 +02:00
twinaphex 3033dda866 (x11_common.c) Cleanups 2018-04-22 13:05:40 +02:00
twinaphex 4c941d3ada (gl2_renderchain) Try to prevent warning 2018-04-22 12:57:38 +02:00
twinaphex db314ff82f Uniquely namespace libchdr source files 2018-04-22 12:10:15 +02:00
twinaphex ca9dd89975 Revert "(3DS/Emscripten/Vita/Wiiu) Add HAVE_CHD support"
This reverts commit d4c691527a.
2018-04-22 12:02:40 +02:00
twinaphex d4c691527a (3DS/Emscripten/Vita/Wiiu) Add HAVE_CHD support 2018-04-22 11:58:11 +02:00
Twinaphex 8c400ce6ab Merge pull request #6603 from meleu/patch-20
Fixing cheevos hardcore mode description
2018-04-22 08:56:19 +02:00
meleu e325c68748 fixing cheevos hardcore mode description
Removing fast-forward as something that is disabled when in Hardcore mode is enabled.
Fast-forwarding is allowed even in hardcore mode.
2018-04-22 01:14:03 -03:00
twinaphex 248f1242dc Some warning fixes 2018-04-21 18:14:19 +02:00
twinaphex 1526c8a15d (PS3) Should fix PS3 build with context driver 2018-04-21 18:05:25 +02:00
Twinaphex f4c83157af Fix CocoaGL context driver 2018-04-21 18:06:14 +02:00
twinaphex 413914a1cf Add Rewind/Latency/Overlay Settings to Quick Menu 2018-04-21 15:55:05 +02:00
twinaphex dae0f36a20 Some cleanups 2018-04-21 15:00:35 +02:00
gblues ef36744859 Start implementing fall-back to async read
== DETAILS

The Wii U GC adapter doesn't seem to like doing async reads if it is connected
via a USB hub. It seems to be device-specific, though, because my DS3 works
just fine through the same hub.

I tried creating a fallback to synchronous reads, but it resulted in a hard
lock of the system. So, for the time being, it's going to be a known
limitation. Might be solved by using a powered USB hub.

Learned that the cache alignment is 64, not 32, so the alignment math has
been updated. Thanks, @aliaspider for that info.
2018-04-20 21:58:45 -07:00
gblues 0c92fab0b9 Fix GameCube button detection
This should fix the issue where R/L buttons didn't register when doing
input detection.

This also brings the GC pad in line with the rest of the gamepads in
input_autodetect_builtin.c.

Also fixed a really stupid bug that was part of why analog inputs aren't
being read. Analog still isn't working, mind, but it's a lot closer to
working now that it's actually getting down into the pad driver level!
2018-04-20 00:00:33 -07:00
gblues 53738e4a0d Allow Wii U GCA to work without 2nd cable attached
=== DETAILS

So, the GCA has 2 USB connections; one is the data connection, and the
second is used to drive rumble.

Due to a driver bug, if the second cable wasn't attached, the pads wouldn't
get detected.

I fixed that bug.
2018-04-18 23:12:45 -07:00
twinaphex 16df2ceb4e Fix Xbox OG 2018-04-17 11:39:59 +02:00
twinaphex d8fd499f3d Update count 2018-04-19 23:41:15 +02:00
twinaphex 4d64a94cb2 Updates 2018-04-19 22:28:17 +02:00
twinaphex 835e491c62 Use int64_t type for feeding to filestream_read 2018-04-19 22:26:40 +02:00
Twinaphex 037c47eaf1 Merge pull request #6597 from fr500/master
fix #6596
2018-04-19 18:06:56 +02:00
radius d8b5fea374 fix coverity warnings 2018-04-19 10:07:59 -05:00
radius 8198e5c0b2 fix #6596 2018-04-19 09:54:16 -05:00
twinaphex 74d4bc80d9 (libretro-common) Updates 2018-04-19 09:43:21 +02:00
twinaphex 1c66905f0d Updates 2018-04-19 08:01:07 +02:00
twinaphex 4914c164fa Update file_stream_transforms 2018-04-19 07:56:57 +02:00
twinaphex a7ad6e2024 (XMB) Add icons for shader/shader presets 2018-04-18 08:22:01 +02:00
twinaphex 070ee2fb40 (dispserv_win32.c) Simplify code 2018-04-18 08:03:34 +02:00
twinaphex 9532a77b4f Buildfix 2018-04-18 07:53:25 +02:00
Twinaphex ba25d90cc8 Merge pull request #6593 from Dwedit/silly_bug_fix
Fix a silly bug in the code that tries to copy the DLL 30 times
2018-04-18 06:44:53 +02:00
twinaphex e17c3d869d Avoid warnings on gx2_common.h 2018-04-18 06:43:21 +02:00
Dwedit af87a19675 Fix a silly bug in the code that tries copying the dll to 30 random files (should not return true at the end) 2018-04-17 23:25:26 -05:00
twinaphex b0e62f3ec6 (D3D11) Add more feature levels
(D3D11) If CreateDeviceAndSwapchain fails, error out gracefully
2018-04-17 21:29:02 +02:00
Twinaphex a4f1c6b602 Merge pull request #6592 from Ryunam/playlist-work
Add toggle to show/hide Playlist tabs on XMB
2018-04-17 19:09:03 +02:00
Ryunam 712a2fcc1d Add toggle to show/hide Playlist tabs 2018-04-17 17:53:24 +02:00
twinaphex 710570a408 (MSVC 2013) Buildfix 2018-04-17 11:37:00 +02:00
twinaphex 30c824c30a Try to fix MSVC warning 2018-04-21 08:54:57 +02:00
twinaphex 6d7ffef316 (gl2_renderchain.c) Update 2018-04-21 08:52:38 +02:00
twinaphex c52f53aada Some minor refactors 2018-04-21 08:47:09 +02:00
twinaphex df5586570f Make gl2_renderchain_deinit_fbo safer 2018-04-21 08:42:57 +02:00
twinaphex 88d62c7766 Update 2018-04-21 06:31:07 +02:00
twinaphex e5d90eebd7 Updates to libretro-common 2018-04-21 06:29:56 +02:00
twinaphex 6929db9fb6 (D3D10/D3D11) Compile shaders with SM 4.0 instead of 5.0 2018-04-21 05:36:59 +02:00
twinaphex 832cc4e945 (MSVC) Silence warnings 2018-04-21 05:20:22 +02:00
twinaphex e0b57843aa Enable HAVE_D3D10 now for main Windows build 2018-04-21 05:14:50 +02:00
twinaphex 8848b2837b Add D3D10 to slang supported checks 2018-04-21 05:11:24 +02:00
Twinaphex 0cf6b83b63 Merge pull request #6601 from aliaspider/master
update D3D10 driver.
2018-04-21 05:02:45 +02:00
aliaspider b78dcf9f4c update D3D10 driver. 2018-04-21 03:56:19 +01:00
twinaphex 7515c3d7c3 (D3D10) Switch to shader model 4.0 2018-04-21 03:33:08 +02:00
twinaphex 8e52fcff96 Add D3D10 entry 2018-04-21 03:30:34 +02:00
twinaphex 9f2b56a929 Update Direct3D 10 driver 2018-04-21 03:27:41 +02:00
Twinaphex 919a441089 Merge pull request #6590 from fr500/master
fix #6589
2018-04-17 05:24:49 +02:00
radius 3755003d33 remap-redux: unify menu displaylist 2018-04-16 21:26:43 -05:00
twinaphex d7d5dfdc73 Add display_server_get_current_resolution 2018-04-17 03:37:56 +02:00
twinaphex f050104740 Change return type of content_get_subsystem_rom_id 2018-04-17 03:19:35 +02:00
twinaphex 3f8ea809de (360) Buildfix 2018-04-17 03:14:20 +02:00
Twinaphex 8113d2067f Merge pull request #6391 from meleu/patch-13
decreasing verbosity in Achievements menu
2018-04-17 01:49:35 +02:00
Twinaphex 029019b757 Merge pull request #6586 from bearoso/refresh_rate
Refresh rate polling updates
2018-04-17 01:27:05 +02:00
Twinaphex a1f50ba847 Merge pull request #6587 from meleu/patch-19
CHANGES.md: fixed NGP cheevos incompatibilities
2018-04-17 01:26:38 +02:00
meleu 9933eb004b CHANGES.md: fixed NGP cheevos incompatibilities 2018-04-16 20:23:59 -03:00
Twinaphex b7990bc63d Merge pull request #6585 from Ryunam/latency-settings
Implement "Latency" list under Settings and group all latency-related options together
2018-04-17 00:56:58 +02:00
Twinaphex eb4049397f Merge pull request #6584 from meleu/patch-19
cheevos/var.c: removed unnecessary memory adjustment for NeoGeo Pocket
2018-04-17 00:56:21 +02:00
Brandon Wright 6aa33c8710 Add some X11 error checking. 2018-04-16 16:56:36 -05:00
Brandon Wright c4f818599c Add some fbdev refresh rate polls. Also Xv. 2018-04-16 16:23:59 -05:00
Ryunam 2cf76a192f Add Latency list under Settings and move relevant functions 2018-04-16 23:21:14 +02:00
Brandon Wright 95f8205fd1 Add DRM interface for refresh rate. 2018-04-16 15:36:46 -05:00
meleu 3fb2484869 removed unnecessary memory adjustment 2018-04-16 17:01:43 -03:00
Brandon Wright 64b2830889 Fix Win32 build. Set Windows header API to Win7. 2018-04-16 14:51:38 -05:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex 7a4c468730 Update libretro-common 2018-04-16 08:34:34 +02:00
twinaphex ec2267daa6 Cleanups 2018-04-16 04:35:23 +02:00
twinaphex d46011ae14 Cleanups 2018-04-16 04:20:24 +02:00
twinaphex 4cc3cf7344 Only restore resolution through resolution switch if CRT
switch mode was ever actually used
2018-04-16 03:19:33 +02:00
Twinaphex de29f0ce62 Merge pull request #6583 from bearoso/refresh_rate
Show actual refresh rate and allow setting from video menu
2018-04-16 03:14:49 +02:00
Brandon Wright df5528b1d0 Divide Wayland rate by 1000 instead of multiply. 2018-04-15 20:00:14 -05:00
Brandon Wright e049605359 Add refresh rate polling to Win32 >= Windows 7. 2018-04-15 19:33:38 -05:00
Brandon Wright 20d87347f7 Add menu item showing and allowing to automatically set precise refresh rate. 2018-04-15 17:56:12 -05:00
Brandon Wright 533f898132 Add get refresh rate context function. Implement for X11 and Wayland. 2018-04-15 17:56:12 -05:00
Brandon Wright 7a00534378 Add poke interface for get_refresh_rate. 2018-04-15 17:56:11 -05:00
twinaphex 6d00810716 Simplify video_driver_monitor_adjust_system_rates 2018-04-15 19:38:01 +02:00
twinaphex 953172f05b This header include can go now 2018-04-15 19:29:07 +02:00
twinaphex c692f457c2 Add switch_resolution to display_server interface 2018-04-15 19:25:00 +02:00
twinaphex bed4214059 Turn int variables to unsigned 2018-04-15 18:59:58 +02:00
twinaphex 311c156e08 Turn width/height into unsigned 2018-04-15 18:55:16 +02:00
twinaphex 4d87772f4a (video_crt_switch.c) Turn a whole bunch of functions static 2018-04-15 18:52:38 +02:00
twinaphex 1c6a6c80f4 Try to prevent another memory leak - this time in miniupnpc 2018-04-15 18:42:25 +02:00
twinaphex bb05af0d92 (libchdr) Prevent memory leak 2018-04-15 18:39:42 +02:00
twinaphex dc7c4fea2d Prevent Coverity warning 2018-04-15 18:31:46 +02:00
twinaphex 359de5c84b Create win32_change_display_settings 2018-04-15 17:55:37 +02:00
twinaphex 87cf910396 (CRT switch) Cleanups 2018-04-15 17:12:28 +02:00
Twinaphex a2516d23a3 Merge pull request #6469 from alphanu1/master
CRT Switchres Capabilities
2018-04-15 16:56:15 +02:00
Twinaphex c6849bf267 Merge pull request #6581 from QuarkTheAwesome/master
[WiiU] Add build information to exception handler
2018-04-15 16:48:58 +02:00
Ash 8e1437ad86 [WiiU] Add build information to exception handler 2018-04-15 17:19:39 +10:00
gblues 6eebbe4213 Build fix for PC
== DETAILS
Hooray for conditional compile directives.

Moving things around broke things in unexpected ways on non-WiiU builds.

Well, not *completely* unexpected. But still.

Changes:

- Move some typedefs around to avoid circular include dependencies
- Include the file where the HID driver definition got moved to

== TESTING
- verified build for Wii U still runs successfully
- did a local build without any errors (some weird warnings, but since they
  happen in code I didn't change, I'm assuming they're pre-existing?)
2018-04-15 00:04:49 -07:00
gblues 4cd301bd92 Add pad unregistration
== DETAILS

I think this will fix the problem with duplicate pads--pads weren't properly
de-initializing and registering as disconnected. When a pad is disconnected,
the slot should properly release now.
2018-04-14 21:30:44 -07:00
Steven M. Vascellaro bc2cf0e215 Update list of joypad drivers 2018-04-14 18:16:33 -04:00
Steven M. Vascellaro cb21f3f33f retroarch.cfg: Add fps_show and framecount_show 2018-04-14 18:12:51 -04:00
Steven M. Vascellaro 559be4cff2 retroarch.cfg: Move/reorder Video settings 2018-04-14 18:12:27 -04:00
Steven Vascellaro f9db4b9839 retroarch.cfg: Update menu_driver options 2018-04-14 17:51:04 -04:00
Steven M. Vascellaro e39da99b87 retroarch.cfg: Add more driver settings
Adds driver settings for `camera_driver`, `location_driver`, and `record_driver`.
2018-04-14 17:37:02 -04:00
gblues 6ab91a422e Small cleanup to adapt to upstream code changes
retro_bits_t turned into input_bits_t and there were parts of my
code that needed to update.

== TESTING
No idea if upstream changes broke anything, but it compiles cleanly
now.
2018-04-14 14:34:13 -07:00
gblues fb5b31faf3 Merge branch 'master' into gblues/hid 2018-04-14 14:18:03 -07:00
Steven M. Vascellaro bdf5a0c22b retroarch.cfg: Add section for directory settings
- Adds a section for directory/path settings
- Adds settings for `recording_output_directory` and `recording_config_directory`

All settings in `directory` section are accessible from RGUI
2018-04-14 16:53:32 -04:00
gblues 97e09d179f Fix deadlocks when device is unplugged
== DETAILS
TIL that it's bad to call synchronization code from callbacks.

To avoid that, I made the following changes:

- Implemented an atomic swap (see previous commit) to avoid explicit
  locking when working with the event list
- ensure locks are only acquired in either the main thread or the
  I/O polling thread
- use an explicit polling loop; we still use async reads, but the
  read doesn't immediately re-invoke itself.
- remove the sleep in the polling thread.
- remove unnecessary locking in the thread cleanup call--verified that
  the list can't be modified while it is being executed.

== TESTING
I tested locally, and was able to disconnect/reconnect USB devices several times without the worker thread getting deadlocked.
2018-04-14 13:30:34 -07:00
Steven M. Vascellaro 7a18305ed2 retroarch.cfg: Add section for driver settings
Moves driver related settings to a new "driver" section.

With the exception of `video_context_driver`, all of these settings can be found in RGUI under "driver".
2018-04-14 15:33:58 -04:00
Twinaphex 79071bd11b Merge pull request #6577 from Stevoisiak/settings-rename-ui
retroarch.cfg: Rename "UI" to "User Interface"
2018-04-14 21:20:15 +02:00
Steven M. Vascellaro 9d352af3a8 retroarch.cfg: Rename "UI" to "User Interface"
Use full name for UI to match the terminology when changing settings in RGUI.
2018-04-14 15:17:40 -04:00
Twinaphex a20d53202d Merge pull request #6576 from RobLoach/patch-30
libretro-db: Show missing key match warning once
2018-04-14 20:47:53 +02:00
Twinaphex 3c7c8871d7 Merge pull request #6575 from RobLoach/patch-29
libretro-db: Ignore compiled binaries
2018-04-14 20:47:39 +02:00
Rob Loach d44f9467e4 libretro-db: Fix whitespace 2018-04-14 14:10:40 -04:00
Rob Loach d3bbdb2e06 libretro-db: Show missing key match warning once
Before, the "missing match" warning would appear for every entry. This change makes it show that it only displays the warning once.
2018-04-14 14:09:46 -04:00
Rob Loach b0a2df41dd libretro-db: Ignore compiled binaries
This makes it so that the compiled libretro-db binaries are ignored from git.
2018-04-14 14:08:28 -04:00
gblues dca36ebaf8 Add small snippet for atomic value swapping
Fortunately, the gcc port implements the builtins and, from basic
testing, they seem to work.

This is only really useful on Wii U--other platforms have more
robust atomic operations, or aren't using gcc to build.
2018-04-14 01:26:26 -07:00
twinaphex 6f7b8aac8c Add input/input_mapper.c always 2018-04-14 03:25:58 +02:00
Twinaphex 7c5e44ead0 Merge pull request #6568 from nurupo/cxxdoesntlag
CXXLAGS -> CXXFLAGS
2018-04-13 18:49:36 +02:00
Twinaphex 4c39a7fd78 Merge pull request #6571 from hiddenasbestos/retro_opendir_r2
retro_opendir - Improved fix for bad input
2018-04-13 18:47:02 +02:00
David Walters adf4ed960e Handle null and empty string calls to retro_opendir with a consistent null return. 2018-04-13 10:31:21 +01:00
Maxim Biro 6f9c2da807 CXXLAGS -> CXXFLAGS
C++ definitely doesn't lag!
2018-04-13 03:35:33 -04:00
Twinaphex 8fe51864a6 Merge pull request #6566 from gingerbeardman/graphics
3DS icon and banner update
2018-04-13 03:04:31 +02:00
gingerbeardman e1637ffa20 icon changes 2018-04-13 01:29:15 +01:00
gingerbeardman f8b75482e9 icon and banner update and refresh
new icons: freeintv
redrawn icons: 81, nekop2, np2kai
tweaked icons: fceumm,  mednafen_pce_fast, nestopia, o2em, picodrive
new banners: freeintv
tweaked banners: 81

all images have also been optimised
2018-04-13 01:15:26 +01:00
twinaphex dc61e23a21 Update libretro-common 2018-04-13 01:10:10 +02:00
Twinaphex bd2b913bc6 Silence more warnings 2018-04-13 00:52:52 +02:00
twinaphex 041670fe02 Get rid of multitude of casting warnings 2018-04-13 00:47:42 +02:00
twinaphex 1751f4a0af Make it possible to read bigger files by replacing ssize_t with int64_t
and size_t with uint64_t
2018-04-13 00:18:11 +02:00
twinaphex 70abbbf4fb Revert "Revert "(PS3) Set GCC for PS3""
This reverts commit 249abcd108.
2018-04-12 23:46:41 +02:00
Twinaphex ff18a55f06 Merge pull request #6565 from fr500/master
remap-redux: try to fix more warnings
2018-04-12 21:39:46 +02:00
twinaphex 6761ec471d Silence some Coverity warnings 2018-04-12 21:39:31 +02:00
radius 9a355b8f2e remap-redux: try to fix more warnings 2018-04-12 14:20:38 -05:00
twinaphex 6e4cf412f0 (menu_entry_playlist_start_entry) This code seems to be unnecessary now? 2018-04-12 21:02:54 +02:00
twinaphex e7bed050bc Fix memory leak 2018-04-12 20:54:06 +02:00
twinaphex 249abcd108 Revert "(PS3) Set GCC for PS3"
This reverts commit 5486894e3b.
2018-04-12 20:30:35 +02:00
twinaphex 5486894e3b (PS3) Set GCC for PS3 2018-04-12 20:16:58 +02:00
Twinaphex 38525e1e8f Merge pull request #6564 from Tatsuya79/patch-1
MUI Scale mouse cursor like icons.
2018-04-12 18:58:50 +02:00
Tatsuya79 3f77a6a320 MUI Scale mouse cursor like icons. 2018-04-12 18:56:54 +02:00
Twinaphex c5c41efc0f Merge pull request #6563 from hiddenasbestos/retro_opendir
patch retro_opendir to handle nullptr and empty-string input
2018-04-12 16:38:51 +02:00
David Walters 801ecb019a patch retro_opendir to handle nullptr and empty-string input 2018-04-12 12:44:42 +01:00
Twinaphex 872c364f34 Merge pull request #6561 from Dwedit/br_encoding_fix
Change encoding of msg_hash_pt_br.h from Windows-1252 to UTF-8
2018-04-12 02:28:10 +02:00
twinaphex 97cf6613da (XMB/Shaders) Reimplement menu shader loading for GLSL/Cg/HLSL backends - if
XMB is selected, it will compile the shader pipelines in
advance
2018-04-12 02:20:17 +02:00
Dwedit 9252c56142 Change Windows-1252 encoded file back to UTF-8 2018-04-11 17:10:46 -05:00
Jean-André Santoni 617793df40 [stripes] Better tab colors 2018-04-11 21:17:37 +07:00
twinaphex 74a3677eb5 Silence warning 2018-04-11 06:14:55 +02:00
twinaphex abad1b3134 Revert "(menu) Start passing menu_handle to action_ok callback"
This reverts commit d2a1c39f4b.
2018-04-11 06:12:26 +02:00
twinaphex 1836d08b33 Revert "Start passing around menu_driver_data around properly"
This reverts commit 7c314a9165.
2018-04-11 06:12:14 +02:00
twinaphex b540ae3d4d Revert "Update"
This reverts commit 21ede63df2.
2018-04-11 06:12:08 +02:00
twinaphex 146c94a86a Revert "(iOS) Buildfix"
This reverts commit 15142fd0a9.
2018-04-11 06:12:01 +02:00
twinaphex 6c99acb23e Revert "Pass around void pointer data - menu handle"
This reverts commit b4a2bd5156.
2018-04-11 06:11:54 +02:00
twinaphex fdffb7059d Revert "Less pointer grabbbing - reduce usage of RARCH_MENU_CTL_DRIVER_DATA_GET"
This reverts commit fbf03df8be.
2018-04-11 06:11:45 +02:00
twinaphex a276710877 Revert "(Menu) More refactors"
This reverts commit f0285ef792.
2018-04-11 06:11:38 +02:00
twinaphex a07ada7af6 Revert "More cleanups - getting rid of RARCH_MENU_CTL_DRIVER_DATA_GET"
This reverts commit a8f7d99aba.
2018-04-11 06:11:23 +02:00
twinaphex 21244c6ec7 Revert "(Menu) Get rid of more RARCH_MENU_CTL_DRIVER_DATA_GET calls"
This reverts commit cb3b5d72ab.
2018-04-11 06:11:18 +02:00
twinaphex 87c9d9eb9a Revert "Cleanups"
This reverts commit 8632a92568.
2018-04-11 06:11:10 +02:00
twinaphex 4993630e10 Revert "Cleanups"
This reverts commit 8d6067b1d4.
2018-04-11 06:11:04 +02:00
twinaphex 13d7e2bed2 Revert "(Zarch) Buildfix"
This reverts commit a3175a8fa3.
2018-04-11 06:10:59 +02:00
twinaphex 372603858d Revert "(Menu) Update menu code"
This reverts commit f481924f1e.
2018-04-11 06:10:51 +02:00
Twinaphex ba96aac2da Merge pull request #6556 from fr500/master
remap-redux: fix potential overrun
2018-04-11 05:03:37 +02:00
radius 13a9d11a2c remap-redux: fix potential overrun 2018-04-10 21:52:27 -05:00
Twinaphex ad671a153a Merge pull request #6496 from i30817/fix-scan-dot-in-directories
fix scanner skipping directories with dots
2018-04-11 04:08:12 +02:00
twinaphex 40d45c9451 Manually merge PT BR 2018-04-11 04:03:26 +02:00
Twinaphex f62ad312eb Merge pull request #6555 from i30817/patch-1
Serial magic should only match on full match
2018-04-11 03:26:44 +02:00
twinaphex f481924f1e (Menu) Update menu code 2018-04-11 03:04:58 +02:00
i30817 7da45bc789 Serial magic should only match on full match
As was mentioned on the wii dual layer disc issue, this line is comparing binary sequences as strings, which fails very obviously because neither of the 'strings' tested are strings and it's very likely both start with \0.
2018-04-11 01:37:35 +01:00
twinaphex a3175a8fa3 (Zarch) Buildfix 2018-04-10 22:12:58 +02:00
twinaphex 8d6067b1d4 Cleanups 2018-04-10 22:03:29 +02:00
twinaphex 8632a92568 Cleanups 2018-04-10 21:59:36 +02:00
twinaphex cb3b5d72ab (Menu) Get rid of more RARCH_MENU_CTL_DRIVER_DATA_GET calls 2018-04-10 21:53:44 +02:00
twinaphex a8f7d99aba More cleanups - getting rid of RARCH_MENU_CTL_DRIVER_DATA_GET
calls
2018-04-10 21:49:25 +02:00
twinaphex f0285ef792 (Menu) More refactors 2018-04-10 21:27:57 +02:00
twinaphex fbf03df8be Less pointer grabbbing - reduce usage of RARCH_MENU_CTL_DRIVER_DATA_GET 2018-04-10 19:57:33 +02:00
twinaphex b4a2bd5156 Pass around void pointer data - menu handle 2018-04-10 19:32:50 +02:00
twinaphex 15142fd0a9 (iOS) Buildfix 2018-04-10 19:22:39 +02:00
twinaphex 21ede63df2 Update 2018-04-10 19:20:50 +02:00
twinaphex 7c314a9165 Start passing around menu_driver_data around properly 2018-04-10 19:17:51 +02:00
twinaphex d2a1c39f4b (menu) Start passing menu_handle to action_ok callback 2018-04-10 18:39:03 +02:00
twinaphex 6e299065ce Remove RARCH_MENU_CTL_PLAYLIST_ calls - use playlist_init_cached,
playlist_get_cached, and playlist_free_cached from now on (defined
in playlist.h) - no more menu dependencies on cached playlists
2018-04-10 17:51:40 +02:00
twinaphex bce7742745 Create playlist_cached functions inside playlist.c 2018-04-10 17:40:29 +02:00
twinaphex 00da860681 Cleanup 2018-04-10 16:34:33 +02:00
twinaphex ac511120d4 (retroarch.c) Cleanups 2018-04-10 07:19:27 +02:00
twinaphex 86ea98605d (MSVC 2010) Buildfix 2018-04-10 06:50:47 +02:00
twinaphex 5697a24946 (samples/tasks/database) Define -DHAVE_COMPRESSION 2018-04-10 05:28:58 +02:00
twinaphex 25ab35b7d0 (samples/tasks/database) Add hardcoded extensions for OSX 2018-04-10 05:26:47 +02:00
twinaphex 639152e291 Hardcode exts for now - we assume this standalone program will
only be used on Windows/OSX/Linux systems for now
2018-04-10 05:20:19 +02:00
twinaphex c24179dc63 Scanning should now work in standalone program 2018-04-10 05:16:33 +02:00
twinaphex d66b8fa882 Start implementing main function 2018-04-10 04:53:12 +02:00
twinaphex c9e48cd9de Cleanups / get rid of more dependencies 2018-04-10 04:31:19 +02:00
twinaphex 6f0fc2426d (database_info/task_database) Get rid of list_special dependencies 2018-04-10 04:13:45 +02:00
twinaphex 3016edce0a Move retroarch.h dependencies out of core_info.c 2018-04-10 04:00:01 +02:00
twinaphex 00cc4ca7aa (samples) Gets close to linking now 2018-04-10 03:53:46 +02:00
twinaphex 6e46d1deb1 Buildfix 2018-04-10 03:07:28 +02:00
twinaphex 8ca8f92aeb No more configuration.h dependencies in core_info.c 2018-04-10 03:02:10 +02:00
twinaphex 7ccecc80c1 Update samples/tasks/database 2018-04-10 02:43:35 +02:00
twinaphex 06bafe3cc3 Fix typo 2018-04-10 02:41:09 +02:00
twinaphex 47a6f0bb7a Create extension_to_file_hash_type 2018-04-10 02:00:38 +02:00
twinaphex be0c118c87 (task_database.c) Don't use msg_hash_calcualte and msg_hash_to_file_type 2018-04-10 01:18:40 +02:00
twinaphex 445f176e24 (Xbox) Enable HAVE_RUNAHEAD for Xbox OG/360 2018-04-10 00:14:23 +02:00
twinaphex 867981b74b Include this header include 2018-04-10 00:07:37 +02:00
twinaphex 8b4b5e88ce Update 2018-04-09 22:20:51 +02:00
twinaphex 86c826350e Start moving dependencies out of certain files 2018-04-09 22:18:25 +02:00
twinaphex 908de15e7b Start adding samples - not done yet 2018-04-09 22:12:59 +02:00
twinaphex 22e5d000c2 Cleanups 2018-04-09 19:30:36 +02:00
twinaphex fdec9c50e0 (task_database.c) Add some RARCH_INTERNAL ifdefs 2018-04-09 19:26:49 +02:00
twinaphex f3e0a627af Get rid of one MSVC warning 2018-04-09 19:11:06 +02:00
twinaphex b6764c43db Buildfix 2018-04-09 19:09:00 +02:00
twinaphex afe77527cd Some cleanups for C89_BUILD 2018-04-09 18:57:39 +02:00
twinaphex 260cd62482 Cleanup some CXX_BUILD warnings 2018-04-09 18:53:26 +02:00
twinaphex ff9aebedca Some more Clang warning fixes 2018-04-09 17:48:11 +02:00
twinaphex 8e7b1ede7f Silence Clang warnings 2018-04-09 17:35:27 +02:00
twinaphex 9381d27f1f (miniupnpc) Get rid of warning - value computed is not used 2018-04-09 17:07:43 +02:00
twinaphex f00a75ec84 Get rid of some spurious code in XMB - catched by Clang 2018-04-09 17:02:44 +02:00
twinaphex 50edd0d467 Remove unused variable 2018-04-09 16:45:44 +02:00
twinaphex f071e8b440 Solve more Clang static analysis warnings 2018-04-09 16:42:12 +02:00
twinaphex e82882a1ab Silence some Clang static analysis warnings 2018-04-09 16:33:46 +02:00
twinaphex 88e7c03e1b filebrowser_parse - cleanups 2018-04-09 16:27:37 +02:00
twinaphex 0fb766b921 Move variables 2018-04-09 16:15:31 +02:00
Twinaphex 08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
Twinaphex 91ba0765e6 (libchdr) Silnces xcode warning 2018-04-09 05:58:32 +02:00
Twinaphex f2c23970a3 (font_driver.c) silences the xcode warnings 2018-04-09 05:56:58 +02:00
twinaphex 4db665130c Start moving callback functions to their dedicated files 2018-04-09 03:48:08 +02:00
twinaphex be5057eafc Cleanups 2018-04-09 00:38:44 +02:00
twinaphex a5c7b79842 Move BIT256_CLEAR_ALL_PTR outside of function 2018-04-09 00:34:07 +02:00
twinaphex 7b5a0bf706 Move clear operation outside of keys_pressed functions 2018-04-09 00:31:03 +02:00
Andrés 47a528801d Merge pull request #6547 from fr500/master
add comment
2018-04-08 17:22:32 -05:00
twinaphex 2cb14e730f Initialize to false by default 2018-04-09 00:21:22 +02:00
radius 215868f755 add comment 2018-04-08 17:21:17 -05:00
Twinaphex d5860a4f79 Merge pull request #6546 from fr500/master
cleanup
2018-04-09 00:04:42 +02:00
radius 066d181535 cleanup 2018-04-08 16:58:48 -05:00
twinaphex d0b735735c Update libretro-common 2018-04-08 23:23:01 +02:00
twinaphex 4cd4de3bd3 Simplify input_overlay_add_inputs_inner 2018-04-08 23:20:06 +02:00
Twinaphex 8dc63653e5 Remove unused variables 2018-04-08 23:17:45 +02:00
twinaphex 3a4d094277 MSVC buildfix 2018-04-08 23:13:20 +02:00
twinaphex bc70477005 (input_mapper.c) Some more refactors 2018-04-08 23:08:21 +02:00
Twinaphex 4052ffe08e Update CHANGES.md 2018-04-08 22:40:02 +02:00
Twinaphex e056c1e835 Merge pull request #6543 from orbea/core_delete
Hide the 'Core delete' option if the 'Core updater' is also hidden.
2018-04-08 22:39:40 +02:00
twinaphex a646fd3e65 (input_mapper.c) Small non-functional cleanups 2018-04-08 22:36:48 +02:00
Twinaphex 019e2acd92 Merge pull request #6545 from fr500/master
remap-redux: allow the menu to display manual keybinds
2018-04-08 21:55:14 +02:00
radius 968c692a04 remap-redux: allow the menu to display manual keybinds 2018-04-08 14:50:30 -05:00
twinaphex 1dd73f86b7 Simplify this code somewhat 2018-04-08 21:45:10 +02:00
twinaphex 9bcaac1abc Simplify input_mapper_state 2018-04-08 21:38:57 +02:00
twinaphex 24b694d674 Grab joypad_driver only once 2018-04-08 21:07:04 +02:00
twinaphex 30090db941 Simplify input_get_state_for_port for analogs 2018-04-08 21:04:42 +02:00
twinaphex 0ed69fd170 Simplify input_state analog code remapping somewhat 2018-04-08 20:49:02 +02:00
twinaphex 368becbc42 (wiiu) Potential build fix 2018-04-08 20:29:07 +02:00
twinaphex 1ce19f9573 Include header 2018-04-08 20:26:47 +02:00
twinaphex 460182fc63 Update runahead headers 2018-04-08 20:25:43 +02:00
twinaphex a82bb0ec94 Create special type input_bits_t 2018-04-08 20:21:12 +02:00
Twinaphex be1bca4ce4 Merge pull request #6485 from fr500/master
remap-redux part 2
2018-04-08 19:31:30 +02:00
radius 2b9b829459 remap-redux part2: fix saving, loading and set defaults 2018-04-08 12:13:51 -05:00
radius f517ca3b56 remap-redux part2: fix right stick 2018-04-08 12:13:50 -05:00
radius 72065aee0b remap-redux part2: analog to analog input rules are working for left stick to left stick and left stick to right, for some reason not for right stick to right
stick
(inverting axes) or right stick to left...
2018-04-08 12:13:50 -05:00
radius c608951ff8 remap-redux part2:
- remapping analogs to buttons works 100%
    - remapping to analogs needs the "new input rules written" based on the value and the new axis
2018-04-08 12:13:50 -05:00
radius 0ed9f05571 remap-redux part2:
- remapping analogs to buttons works 100%
- remapping analogs to other analogs still messed up for some reason
- need to reset input of the original axis in input_driver.c still
2018-04-08 12:13:49 -05:00
radius f662d9f65f remap-redux part2: start adding analog remapping 2018-04-08 12:13:49 -05:00
radius 06860bf704 remap-redux part2: rewrite keymapper to work like gamepad mapper 2018-04-08 12:13:49 -05:00
radius 3792a5e502 remap-redux part2: cleanup 2018-04-08 12:13:49 -05:00
radius fa3dfd5f63 remap-redux part2: finally user 2 mapping works! 2018-04-08 12:13:48 -05:00
radius 4260423e48 remap-redux part2: let's use this function instead, add logging 2018-04-08 12:13:48 -05:00
radius 1fa28f0e31 remap-redux part2: let's use this function instead, add logging 2018-04-08 12:13:47 -05:00
radius d8d22a9c40 remap-redux part2: simplify this code a bit, still not working 2018-04-08 12:13:47 -05:00
radius e42e79db28 remap-redux part2: rename variable 2018-04-08 12:13:47 -05:00
radius 2415f821af remap-redux part2: hide analogs for now 2018-04-08 12:13:47 -05:00
radius 958216ede9 remap-redux part2: change remap file labels because old ones are incompatible 2018-04-08 12:13:46 -05:00
radius e130afff73 remap-redux part2: cleanup 2018-04-08 12:13:46 -05:00
radius 5efba1c257 remap-redux part2: better wraparound, skip analogs, add RARCH_UNMAPPED 2018-04-08 12:13:46 -05:00
radius 23331aa484 remap-redux part2: wraparound 2018-04-08 12:13:45 -05:00
radius 59da4b880e remap-redux part2: add empty description to analogs that are currently not remappable 2018-04-08 12:13:45 -05:00
radius 058b4cea79 remap-redux part2: add empty description to analogs that are currently not implemented 2018-04-08 12:13:45 -05:00
radius 921a30da88 remap-redux part2: add empty description 2018-04-08 12:13:44 -05:00
radius e71826e3d6 remap-redux part2: clean up gamepad mapper callbacks 2018-04-08 12:13:44 -05:00
radius f7b94e5f66 remap-redux part2: clean up gamepad mapper callbacks 2018-04-08 12:13:44 -05:00
radius be2c648596 remap-redux part2: after 60 attempsts, new mapper works, N:1 mapping too 2018-04-08 12:13:43 -05:00
radius 7f5fe5ebff remap-redux part 2: add controller sublabel 2018-04-08 12:13:43 -05:00
radius 052887d8b0 remap-redux part 2: fix redefinition of key_descriptors 2018-04-08 12:13:43 -05:00
radius c4754815b6 remap-redux part 2: fix small issue with keymapper 2018-04-08 12:13:43 -05:00
radius 34649d1abf remap-redux part 2: start inverting the gamepad mapper columns 2018-04-08 12:13:42 -05:00
radius 51edf47ed2 remap-redux part 2: cleanup keymapper code 2018-04-08 12:13:42 -05:00
radius db5f3d7a75 remap-redux part 2: add keymapper sublabels 2018-04-08 12:13:42 -05:00
radius f6ee035011 remap-redux part 2: only add items for devices set to RETRO_DEVICE_KEYBOARD (or a subclass) 2018-04-08 12:13:41 -05:00
radius daf262da96 remap-redux part 2: reimplement saving 2018-04-08 12:13:41 -05:00
radius c57f8722e5 remap-redux part 2: restore original var names 2018-04-08 12:13:41 -05:00
radius 2bfb5ec0df remap-redux part 2: fix nits, hookup left/right callbacks 2018-04-08 12:13:40 -05:00
radius ed334cd1dd remap-redux part 2: allow multiple gamepads to work for the keymapper 2018-04-08 12:13:40 -05:00
twinaphex 9639389a66 Uniquely name crc32.c to avoid collissions with statically linked
builds
2018-04-08 17:58:10 +02:00
twinaphex 816d805f58 (wiiu) Only build these files in for non-Griffin build 2018-04-08 17:26:34 +02:00
orbea 63c99363bd Hide the 'Core delete' option if the 'Core updater' is also hidden. 2018-04-08 08:02:47 -07:00
Jean-André Santoni 3a1e954284 [stripe] Fix icon sizes 2018-04-08 21:55:11 +07:00
Jean-André Santoni 1189d84543 [stripes] Implement draw_bg 2018-04-08 21:48:55 +07:00
Jean-André Santoni 4af704babe [stripe] Use scale_factor to look nice of different screens 2018-04-08 20:55:53 +07:00
Jean-André Santoni cef8477215 [stripes] Rainbow colors 2018-04-08 20:47:49 +07:00
Jean-André Santoni 2ef3824554 [stripe] Draw the stripes 2018-04-08 18:58:57 +07:00
Jean-André Santoni a6e9107bd0 Add menu_display_draw_polygon 2018-04-08 18:58:11 +07:00
Jean-André Santoni f2e71615fb [stripes] Remove useless thumbnail stuff 2018-04-08 15:42:26 +07:00
Jean-André Santoni 3f32a7f1b7 [stripes] Remove useless ribbon stuff 2018-04-08 15:37:29 +07:00
Jean-André Santoni 34966e2ffc [stripes] Compute and animate category width 2018-04-08 15:22:32 +07:00
Jean-André Santoni d1695c043c [stripes] Compute categories y position 2018-04-08 13:38:51 +07:00
Jean-André Santoni 65626c188a [stripes] Remove most of draw_frame 2018-04-08 13:31:19 +07:00
Jean-André Santoni 7a7cb730c5 [stripes] Remove pipeline 2018-04-08 13:26:20 +07:00
Jean-André Santoni 5a22d1cd8e [stripes] Comment out draw_items for now 2018-04-08 13:21:33 +07:00
Jean-André Santoni 061fe25c33 [stripes] Compute y position for the tabs icons 2018-04-08 13:16:01 +07:00
twinaphex 23096e00a3 (wiiu) Add HAVE_RUNAHEAD object files 2018-04-08 07:15:59 +02:00
Jean-André Santoni 7601b740cc [stripes] Remove ribbon 2018-04-08 10:49:02 +07:00
Jean-André Santoni fcda6f7d96 [stripes] Remove gradients 2018-04-08 10:01:14 +07:00
Jean-André Santoni 1614519874 Clone xmb to stripe menu 2018-04-08 09:55:16 +07:00
twinaphex c570d461af Cleanups 2018-04-08 02:01:37 +02:00
twinaphex d58c425e43 Cleanups 2018-04-08 01:56:06 +02:00
twinaphex 2ca52bd08c Remove memcpy_alloc 2018-04-08 01:41:41 +02:00
twinaphex 4f32eb9cc1 (runahead) Style nits - no more '== NULL' 2018-04-08 01:36:30 +02:00
twinaphex 8e4df27305 (runahead) Cleanups 2018-04-08 01:28:17 +02:00
twinaphex 9e07e1a57f (runahead) Buildfix 2018-04-08 01:20:55 +02:00
twinaphex 360bea85b9 (PS3) Silence more warnings 2018-04-08 01:09:31 +02:00
twinaphex f069eeb017 (Wii/WiiU) Add HAVE_RUNAHEAD 2018-04-08 00:48:27 +02:00
Twinaphex 9a97c73dc2 Merge pull request #6285 from orbea/sysconfdir
qb: Add --sysconfdir
2018-04-07 22:54:30 +02:00
Twinaphex 2201e27593 Merge pull request #6528 from Tatsuya79/master
XMB thumbnails vertical disposition.
2018-04-07 04:17:32 +02:00
Twinaphex c1c328d265 Merge pull request #6538 from Dwedit/master
Runahead: Fix build errors on machines without HAVE_DYNAMIC
2018-04-07 04:17:17 +02:00
Dwedit cb74af60c9 one line typo 2018-04-06 20:14:29 -05:00
Dwedit ee0afec787 Fix build errors on machines without HAVE_DYNAMIC 2018-04-06 20:08:18 -05:00
Tatsuya79 299c808e22 Shorten text when 2nd thumb is on the right. 2018-04-06 22:47:49 +02:00
Tatsuya79 de080151cc Remove excessive blend calling. 2018-04-06 16:25:32 +02:00
gblues 4433cbebc6 Get digital inputs for Sony DualShock 3 working
== DETAILS

- fix the bitshift math
- read the right bytes out of the ds3 data packet
- remove verbose logging in critical path
- stop caring about errors in the hid read loop -- seems to just
  be benign "device not ready" -- or at least, that's what I'm assuming
  given that the read eventually succeeds.

== TESTING
Played Mario 3 with the DS3 with no issues.
2018-04-05 23:03:38 -07:00
Tatsuya79 1fadc2e148 Fix image preview sometimes on both thumbs. 2018-04-06 00:59:35 +02:00
Twinaphex 3e699cf00b Merge pull request #6532 from Dwedit/master
Runahead: Move Callback Init calls to after load content (fixes Mesen crashing)
2018-04-05 23:25:55 +02:00
Dwedit f37ed2f7e1 Move callback init calls to before set_controller_port_device calls. 2018-04-05 15:42:20 -05:00
Dwedit e42edbf032 Move Callback Init calls to after load content (fixes Mesen crashing) 2018-04-05 15:34:27 -05:00
Twinaphex 9c5a7a7453 Merge pull request #6531 from altiereslima/master
Updated Portuguese-BR translation
2018-04-05 17:20:35 +02:00
Tatsuya79 e78aedbb6c undo copyright change 2018-04-05 17:08:33 +02:00
altiereslima 1315e26ffa update 2018-04-05 11:46:11 -03:00
altiereslima dc901f6e1e Updated Portuguese-BR translation 2018-04-05 11:41:52 -03:00
Tatsuya79 ad0a36b825 XMB thumbnails vertical disposition. 2018-04-05 00:52:46 +02:00
gblues 46dad14d5f Merge branch 'master' into gblues/hid 2018-04-03 20:30:06 -07:00
Twinaphex cc177d9622 Merge pull request #6523 from hiddenasbestos/msvc
Fix several issues with building using Visual Studio 2015 and 2017
2018-04-03 20:00:08 +02:00
David Walters b5b906bc5a Fix for fatal error C1128 in 64-bit Debug builds (by adding /bigobj to command line) 2018-04-03 18:41:34 +01:00
David Walters c8a9f5eded Compile fix for _vsnprintf_s, missing standard library header. 2018-04-03 18:33:48 +01:00
David Walters 7adec98cd8 Fix MSVC2015 project/solution build config associations 2018-04-03 18:25:23 +01:00
David Walters 852c8735e6 Fix solution file to be Visual Studio 14 / "2015" format. 2018-04-03 18:21:10 +01:00
Twinaphex 2d2094575e Merge pull request #6520 from retro-wertz/patch-1
Fix false [ERROR] when closing content
2018-04-03 13:14:16 +02:00
gblues af08e5015a More work on Dual Shock 3 driver
== DETAILS

- update to not try starting the read loop until after the device
  is successfully initialized
- add new HID wrapper macros needed by ds3 driver
- add some debug logging to help with troubleshooting
- add button map for DS3

== TESTING
Tested with local build. DS3 init is not working.
2018-04-02 23:16:49 -07:00
retro-wertz 55450a5d73 Fix false [ERROR] when closing content
filestream_delete() returns 0 on success, and -1 on failure.
This PR removes this false error when closing content.

e.g.
[ERROR] Failed to remove temporary file: /EMULATORS/ConsoleRoms/Nintendo - Nintendo Entertainment System/Super Mario Bros. (World).nes.
2018-04-03 12:08:53 +08:00
Twinaphex 0b62a0f6e2 Merge pull request #6519 from bearoso/master
Add workarounds based on window manager for override-redirect.
2018-04-03 04:05:26 +02:00
twinaphex 00a3aba480 Define HAVE_RUNAHEAD for dynamic linked iOS 2018-04-03 03:48:59 +02:00
Brandon Wright 9f15e39114 Also use the original fallback designed for older window managers. 2018-04-02 20:21:32 -05:00
Brandon Wright 0a5e65dc06 Add workarounds based on window manager for override-redirect. 2018-04-02 20:01:14 -05:00
gblues 9bc5a15c2d Enable pads to register in any order
== DETAILS

Whereas the last commit had a hack (that disabled the wiimote
driver in the process), this has.. well, a *different* hack that
allows pads to register in any order.

Note that due to the initialization routines, the gamepad will still
likely always get slot 0. Not sure if this can be overridden via config
or not.

== TESTING

Tested locally with GC adapter
2018-04-01 18:52:26 -07:00
Twinaphex ab00d587d8 Merge pull request #6510 from bearoso/master
Add back override-redirect to allow G-SYNC
2018-04-02 01:57:27 +02:00
Twinaphex 19a6375ec6 Merge pull request #6509 from Dwedit/master
Make RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE work on the secondary core
2018-04-02 01:56:43 +02:00
Dwedit a275242aef C89 compliance and line spacing rules 2018-04-01 17:54:03 -05:00
Brandon Wright 8356300c3e Apply the same fix to xegl_ctx.c 2018-04-01 17:47:47 -05:00
Brandon Wright 64686d8106 Set override-redirect on true fullscreen, but after window is mapped. 2018-04-01 17:47:27 -05:00
Dwedit 78c8a9b197 Make RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE work on the secondary core 2018-04-01 17:34:54 -05:00
twinaphex 015facee70 (XMB) Cleanups 2018-04-01 18:23:37 +02:00
gblues 2cf89feb86 Code clean-up
== DETAILS

Now that I have a working implementation, it's time to tidy up a bit:

- there was no need for the HID subsystem's object data to have a reference
  to the global hid state (since it's global), so removed it.
- refactored the users of that member to use the global state, defining
  reusable macros.
- reorganized the information in *.h files
- removing the hid state also made the constructor changes to the hid driver
  unneeded, so I reverted those changes.

== TESTING
Confirmed clean build. Haven't tested the build yet to make sure everything
still works, though.
2018-03-31 22:25:30 -07:00
alphanu1 950719797d Merge pull request #32 from alphanu1/alphanu1-patch-33
Add files via upload
2018-04-01 00:34:36 +01:00
alphanu1 cf23ff7a88 Add files via upload
Fixes, merged changes and additions to remove extra files.
2018-04-01 00:29:46 +01:00
alphanu1 ca55f3198e Delete video_crt_linux.h
outdated, not needed
2018-04-01 00:27:04 +01:00
alphanu1 79eb3e6b8c Delete video_crt_win.h
outdated, not needed
2018-04-01 00:26:44 +01:00
alphanu1 752eddbb95 Delete video_crt_linux.c
outdated, not needed
2018-04-01 00:26:24 +01:00
alphanu1 b676167ef6 Delete video_crt_win.c
outdated, not needed
2018-04-01 00:26:06 +01:00
alphanu1 d5085c8831 Merge pull request #31 from alphanu1/alphanu1-patch-32
Add files via upload
2018-04-01 00:24:50 +01:00
alphanu1 dd78622d30 Add files via upload
added files for compile
2018-04-01 00:24:26 +01:00
alphanu1 5d7e31d2f3 Merge pull request #30 from alphanu1/alphanu1-patch-31
Add files via upload
2018-04-01 00:23:32 +01:00
alphanu1 6a6150bb03 Add files via upload
Removed obsolete/unneeded .o
2018-04-01 00:23:05 +01:00
Twinaphex 28b9a38d7d Merge pull request #6504 from Dwedit/secondary_core_bug_fix
Fixed initializing controller port map.
2018-03-31 21:09:02 +02:00
Dwedit 80b8410b0f Forgot to initialize controller port map, this caused VBA-M to crash when creating the secondary core. Now fixed. 2018-03-31 12:15:14 -05:00
alphanu1 a0c9ef55cb Merge pull request #29 from alphanu1/alphanu1-patch-30
Add files via upload
2018-03-31 15:19:03 +01:00
alphanu1 9524203051 Add files via upload
Amended braces and function calls.
2018-03-31 15:17:55 +01:00
alphanu1 38fc89fbfc Merge pull request #28 from alphanu1/alphanu1-patch-29
Add files via upload
2018-03-31 15:16:34 +01:00
alphanu1 64ebf62959 Add files via upload
Amended tabbing with spaces
2018-03-31 15:15:35 +01:00
Twinaphex 611cc52661 Merge pull request #6500 from Tatsuya79/master
XMB Right Thumbnail rework.
2018-03-31 14:13:25 +02:00
Twinaphex f7fa5844f2 Merge pull request #6502 from Dwedit/master
Runahead: Stop savestate transmission in netplay
2018-03-31 11:36:46 +02:00
gblues 39e4167df6 Start work on DualShock 3 driver
== DETAILS

The WiiU GC adapter is working!

Next up: DualShock 3

I have the skeleton of the driver started, need to work out the
activation packet.

== TESTING

The DS3 driver is broke as hell right now.
2018-03-30 23:00:14 -07:00
Dwedit 6b77a66298 get rid of the unnecessary typedef 2018-03-31 00:55:37 -05:00
Dwedit 15472eb184 Stop savestate transmission in netplay 2018-03-31 00:45:20 -05:00
Twinaphex a869cb5a7d Merge pull request #6501 from Dwedit/fast_savestate_flag_2
Fast Savestate and Hard Audio Disable flags in RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE
2018-03-31 04:54:09 +02:00
twinaphex 9164bcc244 Add HAVE_RUNAHEAD to Android 2018-03-31 04:22:18 +02:00
gblues d65bd90e67 Fix GC pad button mapping 2018-03-30 18:57:34 -07:00
Dwedit 36d33deb30 Add message about load state expected to succeed. 2018-03-30 20:41:52 -05:00
Dwedit ec6d6e58d6 Fast Savestate and Hard Audio Disable flags 2018-03-30 20:35:52 -05:00
Tatsuya79 0c0cad8630 XMB Right Thumbnail rework. 2018-03-30 23:53:16 +02:00
twinaphex cf4ab13281 Revert "Silence some Clang static analyzer warnings"
This reverts commit 2c882a01c1.
2018-03-30 19:28:37 +02:00
twinaphex b24433a9f2 Hack - make diagonal 5.0f for mobile, 6.5f for desktop 2018-03-30 16:05:45 +02:00
twinaphex 92b46a8275 Some cleanups 2018-03-30 15:50:27 +02:00
Twinaphex 0ff5631649 Merge pull request #6499 from Tatsuya79/patch-1
Make MUI auto dpi a bit bigger for low dpi phones
2018-03-30 15:47:17 +02:00
Tatsuya79 74d4e6043a Make MUI auto dpi a bit bigger for low dpi phones 2018-03-30 15:44:39 +02:00
twinaphex 8acc085dec (input_overlay.c) Get rid of some forward declarations 2018-03-30 13:57:50 +02:00
twinaphex 94254e4c79 (IOHIDManager) Cleanups 2018-03-30 11:49:25 +02:00
Twinaphex 86bfd8f4fc Merge pull request #6497 from ceb33/master
fix to have a deterministic HID device registration
2018-03-30 11:40:24 +02:00
ceb33 c6d6fc7098 fix memory leak 2018-03-30 11:00:38 +02:00
ceb33 82e2cc7c73 set hid device registration deterministic (sorting by ascending location_id), this solve the issue where game with same vid and pid where sometime swapped by the OS 2018-03-30 10:43:54 +02:00
gblues 5060c2aac4 More fixes, GC pad kinda sorta works
== DETAILS

- Added a new method to the joypad_connection_t interface for
  getting a single button
- wired everything into the hidpad driver
- for testing purposes, hacking the top-level joypad driver
  so that kpad isn't used
- add a new RARCH_LOG_BUFFER method to verbosity for logging the
  contents of a binary buffer (useful for writing/debugging pad drivers)
- fix a few bugs in the wiiu GC pad driver

The button mapping isn't quite right, and I'm not sure what's
going wrong.
2018-03-29 23:37:11 -07:00
gblues 89c1ba7929 Keep HID pads from clobbering gamepad/wiimotes
== DETAILS

Trying to do weird pad math just wasn't working so I bit the bullet and just
let it allocate all 16 pads in the slot list, then just mark 0-4 as
connected so that the slot allocator would start at 5.

I can see it detect the pad, but no idea if it works. Out of time for
today.
2018-03-29 23:37:11 -07:00
gblues 1eea48d0c8 Fix crash on exit bug
== DETAILS

Turns out freeing memory that's already been freed is.. bad.

Fix two double-free instances; one due to over-freeing and the other
due to wrong order-of-operations causing a double free.

Also updated logging a little.

== TESTING

The GC adapter still clobbers slot 0, but the "emergency exit" sequence
works to quit RA cleanly.
2018-03-29 23:37:11 -07:00
gblues 6b43defc98 Less verbose logging 2018-03-29 23:37:11 -07:00
gblues 8a4c5086fb Finish HID implementation for WiiU GCA adapter
== DETAILS

(I think)

- Uncomment the call in the read loop to start feeding packets to the
  driver
- implement the GCA packet driver
- implement the pad interface
- fix indentations in GCA driver

== TESTING
Compiles. Haven't tested yet.
2018-03-29 23:37:11 -07:00
gblues 180d6a28bf Fix up HID device driver initialization
== DETAILS
Turns out the cause of the crash was a bad cast, resulting in a
function call to nowhere.

Also, I think the DSI exception handler only works on the primary core;
when this was happening in the background thread, I got a black
screen error instead.

Next up: finishing up the GCA driver.
2018-03-29 23:37:11 -07:00
gblues dc6f4c23ed Rename hid_driver_instance members for clarity 2018-03-29 23:37:11 -07:00
gblues 4b9d5c0ab7 Start implementing "detach" code path
== DETAILS
We're at a point where we need to do more than just
clean up a local data structure, so I've started
implementing the "detach" part of the code so that
everything gets cleaned up properly.

Also, added error handling inside the polling
thread.

== TESTING

Have not tested yet.
2018-03-29 23:37:11 -07:00
gblues 0100d58ffb WIP: evolve driver implementation
== DETAILS

I've created the concept of a hid_driver_instance_t which is basically
a central place to store the hid pad driver, hid subsystem driver,
the pad list, and the instance data for the above in a central location.

The HID pad device drivers can use it to perform HID operations in a
generic manner.

This is more-or-less a pause point so I can catch up with upstream.

== TESTING

Haven't tested this yet. Compiles without warnings though!
2018-03-29 23:37:11 -07:00
gblues 41ce8853d7 Add name for hid device; implement detect
== DETAILS

- detect() methods in device_* files now check for VID/PID
  instead of just returning false
- add "name" field on hid device, mainly for logging purposes

== TESTING
Verified my WiiU GC adapter detected properly
2018-03-29 23:37:11 -07:00
gblues ae19eed00f implement hid device search 2018-03-29 23:37:11 -07:00
i30817 7e43db9cf1 fix scanner skipping directories with dots 2018-03-30 06:15:10 +01:00
Brad Parker ecd42f1aa8 C89 buildfix, correct spacing 2018-03-29 22:15:16 -04:00
Twinaphex 05e34654c6 Update CHANGES.md 2018-03-30 03:03:03 +02:00
Twinaphex 50f19630bd Update CHANGES.md 2018-03-30 03:00:58 +02:00
twinaphex 58df2e6427 update 2018-03-30 02:50:18 +02:00
Twinaphex 12bf69fa29 Update CHANGES.md 2018-03-30 02:44:06 +02:00
Twinaphex 33d9eee436 Update CHANGES.md 2018-03-30 02:41:40 +02:00
Twinaphex e8a77e6b91 Update CHANGES.md 2018-03-30 02:41:09 +02:00
Twinaphex d8787ef805 Update CHANGES.md 2018-03-30 02:37:07 +02:00
twinaphex 008900e73d (D3D11/D3D12) Fix crashes with completely black or white thumbnail
textures in XMB
2018-03-30 02:30:56 +02:00
Twinaphex be5e0dfb1f Merge pull request #6493 from bearoso/master
Prioritize _NET_WM_STATE_FULLSCREEN in true fullscreen mode
2018-03-30 01:52:45 +02:00
Brandon Wright 3bbff3c689 Use _NET_WM_STATE_FULLSCREEN as a first measure, only falling back to override-redirect when not supported. 2018-03-29 17:13:51 -05:00
Twinaphex 9ca3d40018 Merge pull request #6491 from bearoso/master
Allow compositor disabling on X11 fullscreen through _NET_WM_BYPASS_COMPOSITOR
2018-03-29 22:59:39 +02:00
Twinaphex 3c3f1a2661 Merge pull request #6481 from alfrix/right_thumb
Right thumbnail auto size
2018-03-29 22:55:08 +02:00
twinaphex ef039c2c08 Cleanups 2018-03-29 22:39:41 +02:00
Brandon Wright 5da1aa0af7 Allow compositor disabling on X11 fullscreen through _NET_WM_BYPASS_COMPOSITOR.
Note: KWin doesn't bypass compositor on override-redirect windows, so enabling windowed fullscreen is necessary.
2018-03-29 15:20:14 -05:00
Twinaphex dca622b4a8 Merge pull request #6490 from Dwedit/runahead_submission_4
more cleanup, remove malloc_zero, remove free_ptr
2018-03-29 21:14:27 +02:00
Dwedit dd392dcdfb Remove malloc_zero, replace with calloc
Replace free_ptr with FREE macro
2018-03-29 13:22:20 -05:00
twinaphex d04d1c0214 (Runahead) Fix for mingw as suggested by Dwedit 2018-03-29 20:01:34 +02:00
twinaphex 1103f4f630 (input_overlay.c) Cleanups 2018-03-29 19:43:04 +02:00
twinaphex 54636ea5f3 (OSX PPC) Define HAVE_RUNAHEAD 2018-03-29 19:35:26 +02:00
alfrix 647abd6aba Buildfix 2018-03-29 14:07:22 -03:00
alphanu1 1377b2e7cf Merge pull request #27 from alphanu1/alphanu1-patch-28
Add files via upload
2018-03-29 17:56:56 +01:00
alphanu1 d06386d0a5 Add files via upload
Variables removed from headers.
2018-03-29 17:54:46 +01:00
alphanu1 0fe838bfcd Merge pull request #26 from alphanu1/alphanu1-patch-27
Add files via upload
2018-03-29 17:46:24 +01:00
alfrix 0777a6d625 Do not draw the thumbnail if there is no space available 2018-03-29 13:45:54 -03:00
alfrix 5076569c81 Limit right thumb width 2018-03-29 13:45:54 -03:00
twinaphex 25e99ba75b Cleanups 2018-03-29 18:41:19 +02:00
alphanu1 6d536974d8 Add files via upload
Removed comments
2018-03-29 17:37:39 +01:00
twinaphex 65909fd1db free_file no longer necessary 2018-03-29 18:36:53 +02:00
twinaphex 8703ad8374 Get rid of free_str 2018-03-29 18:29:25 +02:00
Twinaphex 2db0c21f52 Fix C11 typedef redefinition issues 2018-03-29 18:10:28 +02:00
twinaphex e85f11ea38 (runahead) Remove unused variable 2018-03-29 18:05:52 +02:00
Twinaphex 425e1d9043 (OSX) Define HAVE_RUNAHEAD 2018-03-29 18:04:15 +02:00
twinaphex 8819b2a2f6 (MSVC 2005/2010/2013/2015/2017) Add HAVE_RUNAHEAD 2018-03-29 18:02:18 +02:00
twinaphex adb2274fc6 - Enable HAVE_RUNAHEAD for MSVC 2003
- Remove some unreferenced labels
2018-03-29 17:55:06 +02:00
Twinaphex 254932af04 Merge pull request #6488 from Tatsuya79/master
XMB Left thumb dynamic positioning and scaling.
2018-03-29 17:47:29 +02:00
twinaphex 0712c0ba99 Fix call to filestream_write to filestream_write_file 2018-03-29 17:45:25 +02:00
twinaphex 67c3fd88f4 Buildfixes - wrong function names were used 2018-03-29 17:35:28 +02:00
Twinaphex 039820f367 Merge pull request #6487 from Dwedit/runahead_submission_3
Runahead cleanup
2018-03-29 17:17:22 +02:00
Dwedit cbc18c74ea resolve conflicts 2018-03-29 09:52:14 -05:00
Tatsuya79 8859fa0213 XMB Left thumb dynamic positioning and scaling. 2018-03-29 16:39:38 +02:00
Dwedit 77f2b7d326 Replace the file handling code from secondary_core.c with the file streams
Hide secondary instance menu item if dynamic libraries are not supported
Remove unlink_utf8 stuff
Fix a compiler warning
2018-03-29 09:37:35 -05:00
twinaphex 77f7e1da8c Make menu_driver_load_image a static function 2018-03-29 16:27:19 +02:00
twinaphex a8b810760b (runahead) Get rid of a bunch of unnnecessary forward declarations 2018-03-29 16:18:45 +02:00
twinaphex b4859cde59 Update copyright attributions as said to PR OP 2018-03-29 16:12:56 +02:00
Twinaphex abdad9bc16 Merge pull request #6471 from alfrix/left_thumb
Left thumbnails
2018-03-29 16:12:32 +02:00
twinaphex c5ec1885f2 Don't use malloc.h anymore 2018-03-29 15:52:49 +02:00
twinaphex 40594a3059 Buildfix 2018-03-29 15:51:20 +02:00
twinaphex 76b025d70e malloc.h not available on OSX 2018-03-29 15:49:39 +02:00
twinaphex 4347517604 Buildfixes 2018-03-29 15:46:39 +02:00
twinaphex ca7c374303 Fix OSX compilation 2018-03-29 15:41:02 +02:00
alfrix a84facf636 Add Left Thumbnails
Fix behaviour when right thumb is off and use as fallback in filebrowser
Remove update_left_thumbnail_path
Fix dual image in imageviewer
Remove xmb_left_thumbnails_ident
Requested Changes
Fix last warning and button not switching thumb
Better scaling
Limit vertical size without changing position
Change thumb cycling behaviour
Remove update_left_thumbnail_image it was causing problems
2018-03-29 10:38:23 -03:00
twinaphex c041470bb0 Add HAVE_RUNAHEAD ifdef 2018-03-29 15:38:22 +02:00
twinaphex 6e662a8064 (D3D12) Buildfix 2018-03-29 15:29:36 +02:00
twinaphex ef5830b233 Silence some CXX_BUILD warnings 2018-03-29 15:27:30 +02:00
twinaphex 4372db491a Cleanup some warnings for C89_BUILD 2018-03-29 15:20:43 +02:00
twinaphex 1b0420807b (Griffin/MSVC) buildfixes 2018-03-29 15:15:47 +02:00
twinaphex 2bdfd2e1d0 (Runahead) Cleanups / style nits / etc. 2018-03-29 15:13:33 +02:00
Twinaphex eeb2a0a934 Merge pull request #6484 from Dwedit/runahead_submission
Runahead system
2018-03-29 14:46:04 +02:00
twinaphex 3fe6ecbce7 More static analyzer warning fixes 2018-03-29 14:19:24 +02:00
twinaphex 2c882a01c1 Silence some Clang static analyzer warnings 2018-03-29 14:11:52 +02:00
bparker06 265b0560b3 travis: disable all d3d versions for windows 2018-03-28 20:16:59 -04:00
Dwedit bc3d0b2acd Fix some static declarations 2018-03-28 17:41:45 -05:00
Dwedit ff0a2d4f57 Add files to the makefile 2018-03-28 17:32:37 -05:00
Dwedit 361152000d Added the missing file 2018-03-28 17:14:20 -05:00
Dwedit f5e0346fc2 Runahead system 2018-03-28 14:22:07 -05:00
twinaphex 2143540c8c (MSVC 2013/2015/2017) Add HAVE_CHEEVOS support 2018-03-28 18:33:31 +02:00
twinaphex 994ca6b3f8 Enable HAVE_CHEEVOS for MSVC 2003 target too 2018-03-28 18:07:31 +02:00
twinaphex 163be3ccfd (vulkan_common.c) Prevent some more collissions in the future 2018-03-28 17:41:04 +02:00
Twinaphex 02ce39869c Merge pull request #6480 from Dwedit/fix_d3d_duplicate
Rename "cached_device" to "cached_device_d3d11" to avoid a name conflict on griffin builds
2018-03-28 17:38:11 +02:00
Dwedit 2c1cb6cf55 Rename "cached_device" to "cached_device_d3d11" avoid a name conflict on griffin builds 2018-03-28 10:33:37 -05:00
Twinaphex 8c6f05e715 Merge pull request #6479 from Dwedit/fix_command_line
Fix invalid long command line options causing infinite loop on Windows (issue #6477)
2018-03-28 17:19:46 +02:00
Dwedit 86d24a0fc4 Fix invalid long command line options causing infinite loop on Windows (issue #6477) 2018-03-28 10:08:57 -05:00
Twinaphex 55157506a8 Merge pull request #6478 from alfrix/polish
Update Polish translation (DEX357)
2018-03-28 17:08:27 +02:00
alfrix d4558774df Update Polish translation (DEX357) 2018-03-28 11:55:20 -03:00
twinaphex e71f56d4a3 Update libretro-common 2018-03-28 16:45:05 +02:00
twinaphex 89e912087b Put RARCH_INTERNAL ifdef around this 2018-03-28 16:41:37 +02:00
twinaphex d17eee9cca We can actually disable DPI override by default now 2018-03-28 16:33:19 +02:00
twinaphex 5a7c37b819 Revert "(OpenSL) Fix issues with cores using threaded audio - audio thread"
This reverts commit 54708a944a.
2018-03-28 16:26:53 +02:00
Twinaphex 942121462d Merge pull request #6463 from Tatsuya79/patch-2
MUI New dpi calculation. (needs improvement)
2018-03-28 16:22:52 +02:00
twinaphex 167b977c4d Fix some build errors with MSVC 2003/2005 cores 2018-03-28 16:22:35 +02:00
twinaphex bb86387986 Re-enable HAVE_CHEEVOS for MSVC 2010 2018-03-28 14:57:27 +02:00
Twinaphex c30fd2a035 Merge pull request #6475 from meleu/patch-18
CHANGES: cheevos for NeoGeo, CPS1, CPS2 and CPS3
2018-03-28 12:44:13 +02:00
meleu 51f0e6f9d3 CHANGES: cheevos for NeoGeo, CPS1, CPS2 and CPS3
The fbalpha core supports cheevos for these drivers.

Thanks to @barbudreadmon for adding this support ;)
2018-03-28 00:30:01 -03:00
twinaphex d8e382c585 (Cheevos) Take out cheevos support for MSVC 2010 again, CORO_YIELD
macro does not work with MSVC 2010
2018-03-28 01:28:15 +02:00
alphanu1 d8c5718a6e Update README.md
incorrect spelling
2018-03-27 23:01:09 +01:00
alphanu1 e8d90500de Merge pull request #25 from alphanu1/alphanu1-patch-26
Add files via upload
2018-03-27 20:20:04 +01:00
alphanu1 46500e119c Add files via upload
native switch fix
2018-03-27 20:18:31 +01:00
twinaphex 1cfc8a5fc8 (Coverity) Fix some memory leaks 2018-03-27 17:03:36 +02:00
twinaphex 923ab3b6f4 (DRM Ctx) Buildfix 2018-03-27 14:19:36 +02:00
alphanu1 fc173eafab Update README.md 2018-03-27 00:12:46 +01:00
alphanu1 7f3b2474a9 Update README.md 2018-03-27 00:08:59 +01:00
alphanu1 9ce592b648 Update README.md 2018-03-26 23:58:54 +01:00
alphanu1 e55323daa9 Merge pull request #23 from alphanu1/alphanu1-patch-24
Add files via upload
2018-03-26 23:52:28 +01:00
alphanu1 b1fca8fc7e Add files via upload
Removed debug info
2018-03-26 23:51:40 +01:00
alphanu1 9cf0f19c12 Merge pull request #22 from alphanu1/alphanu1-patch-23
Add files via upload
2018-03-26 23:50:47 +01:00
alphanu1 d7d1d1d5b8 Add files via upload
Fixed errors after variable changes
2018-03-26 23:49:33 +01:00
alphanu1 cf422226e6 Merge pull request #21 from alphanu1/alphanu1-patch-22
Add files via upload
2018-03-26 21:25:36 +01:00
alphanu1 316e1ebf66 Add files via upload
Missing var in Linux placeholder
2018-03-26 21:25:16 +01:00
alphanu1 94ea7dde50 Merge pull request #20 from alphanu1/alphanu1-patch-21
Add files via upload
2018-03-26 21:22:38 +01:00
alphanu1 0ef6455c61 Add files via upload
Windows / Linux deps fix
2018-03-26 21:22:19 +01:00
alphanu1 4932b95777 Merge pull request #19 from alphanu1/alphanu1-patch-20
Add files via upload
2018-03-26 21:14:55 +01:00
alphanu1 80e295505e Add files via upload 2018-03-26 21:14:27 +01:00
alphanu1 e9ccb86b09 Merge pull request #18 from alphanu1/alphanu1-patch-19
Add files via upload
2018-03-26 21:08:01 +01:00
alphanu1 2ed38a8481 Add files via upload
Includes Linux place holder
2018-03-26 21:07:22 +01:00
alphanu1 06efb30c46 Merge pull request #17 from alphanu1/alphanu1-patch-18
Add files via upload
2018-03-26 21:03:05 +01:00
alphanu1 2243d7641b Add files via upload
Windows driver
2018-03-26 21:02:50 +01:00
alphanu1 62a0d378dd Merge pull request #16 from alphanu1/alphanu1-patch-17
Add files via upload
2018-03-26 21:02:09 +01:00
alphanu1 ce2d4af103 Add files via upload
Added Linux place holder
2018-03-26 21:01:13 +01:00
alphanu1 7e64052dc8 Merge pull request #14 from alphanu1/alphanu1-patch-16
Add files via upload
2018-03-26 20:29:57 +01:00
alphanu1 024b23aa2c Add files via upload 2018-03-26 20:29:34 +01:00
alphanu1 b2d45beb10 Merge pull request #13 from alphanu1/alphanu1-patch-15
Add files via upload
2018-03-26 20:24:38 +01:00
alphanu1 3b9036cc79 Add files via upload
Requested changes
2018-03-26 20:22:35 +01:00
alphanu1 a44f4d1489 Add files via upload
Change requests
2018-03-26 18:15:18 +01:00
Twinaphex 4b3c37494a Merge pull request #6470 from aliaspider/master
D3D11: hwrender: add support for cache_context.
2018-03-26 18:47:37 +02:00
aliaspider 97ecba8575 D3D11: hwrender: add support for cache_context. 2018-03-26 17:44:08 +01:00
alphanu1 dcc416ca46 Update README.md 2018-03-26 17:41:09 +01:00
alphanu1 d919e93013 Update README.md 2018-03-26 17:39:51 +01:00
alphanu1 e6c1704789 Merge pull request #12 from alphanu1/alphanu1-patch-14
Add files via upload
2018-03-26 17:23:38 +01:00
alphanu1 f6ab07f3fc Add files via upload
Changed variable names and comments
2018-03-26 17:21:37 +01:00
alphanu1 dd8beb48b6 Add files via upload
Changed variable names
2018-03-26 17:19:35 +01:00
alphanu1 51276a682f Add files via upload
Changed variable names
2018-03-26 17:18:43 +01:00
alphanu1 ff68b9244d Merge pull request #11 from alphanu1/alphanu1-patch-13
Add files via upload
2018-03-26 17:17:57 +01:00
alphanu1 540b15d6ef Add files via upload
Changed variable names
2018-03-26 17:17:23 +01:00
alphanu1 43205baa9a Update README.md 2018-03-26 16:20:22 +01:00
alphanu1 7f6f95c215 Merge pull request #10 from alphanu1/alphanu1-patch-11
CRT
2018-03-26 16:09:28 +01:00
alphanu1 b30aca2d6d CRT 2018-03-26 16:08:29 +01:00
alphanu1 af7f1da9fb Update README.md 2018-03-26 15:54:23 +01:00
alphanu1 670216d021 Update README.md 2018-03-26 15:48:53 +01:00
alphanu1 2783a26b97 Merge pull request #9 from alphanu1/alphanu1-patch-10
CRT
2018-03-26 15:40:43 +01:00
alphanu1 71578a43f6 CRT 2018-03-26 15:40:17 +01:00
alphanu1 b297f391ad Merge pull request #8 from alphanu1/alphanu1-patch-9
CRT
2018-03-26 15:37:12 +01:00
alphanu1 2967283b29 CRT 2018-03-26 15:36:53 +01:00
alphanu1 8e5a00d66b Merge pull request #7 from alphanu1/alphanu1-patch-8
CRT SwitchRes
2018-03-26 15:36:18 +01:00
alphanu1 b33cb14ba0 CRT SwitchRes 2018-03-26 15:35:30 +01:00
alphanu1 56bc1757ed CRT SwitchRes 2018-03-26 15:07:46 +01:00
alphanu1 8ce7703970 Merge pull request #5 from alphanu1/alphanu1-patch-5
CRT SwitchRes
2018-03-26 15:07:04 +01:00
alphanu1 99645e2cd7 CRT SwitchRes 2018-03-26 15:06:39 +01:00
alphanu1 2fc350828c Merge pull request #4 from alphanu1/alphanu1-patch-4
CRT SwitchRes
2018-03-26 15:05:38 +01:00
alphanu1 d207986a74 CRT SwitchRes 2018-03-26 15:05:12 +01:00
alphanu1 7eec1f3a24 Merge pull request #3 from alphanu1/alphanu1-patch-3
CRT SwitchRes
2018-03-26 15:04:10 +01:00
alphanu1 635b3b7670 CRT SwitchRes 2018-03-26 15:03:46 +01:00
alphanu1 8eb34f2544 Merge pull request #2 from alphanu1/alphanu1-patch-2
CRT SwitchRes
2018-03-26 15:01:57 +01:00
alphanu1 030b11c372 CRT SwitchRes 2018-03-26 15:01:09 +01:00
alphanu1 697e158d7a Merge pull request #1 from alphanu1/master-1
Add files via upload
2018-03-26 14:56:53 +01:00
alphanu1 9d23af5299 Add files via upload 2018-03-26 14:56:23 +01:00
Twinaphex a32d7d974c Update CHANGES.md 2018-03-26 00:40:48 +02:00
Twinaphex 1ff798b8a5 Merge pull request #6464 from aliaspider/master
add experimental D3D11 hwrender support.
2018-03-26 00:24:38 +02:00
aliaspider 3d96cacd71 add experimental D3D11 hwrender support. 2018-03-25 23:14:14 +01:00
aliaspider 88d1c1fdca msvc build fix. 2018-03-25 23:11:31 +01:00
twinaphex 826a7d199a Remove useless struct 2018-03-25 19:16:39 +02:00
Tatsuya79 8ecba8b2a3 MUI New dpi calculation. 2018-03-25 18:40:22 +02:00
twinaphex aa5525f670 Move core_len/core_buf to menu_handle_t 2018-03-25 17:35:46 +02:00
Twinaphex a130dce708 Update CHANGES.md 2018-03-25 17:09:51 +02:00
Twinaphex 814810aeaf Merge pull request #6462 from theheroGAC/patch-29
Fix and update msg_hash_it.h
2018-03-25 17:07:52 +02:00
twinaphex a2295af556 Make these variables a part of menu_handle_t 2018-03-25 17:02:30 +02:00
theheroGAC 30074b4404 Update msg_hash_it.h 2018-03-25 16:47:31 +02:00
Twinaphex 8a63a0ac52 Update CHANGES.md 2018-03-25 14:47:04 +02:00
twinaphex ae4b604a6f Update 2018-03-25 12:17:05 +02:00
Twinaphex 8bc04f90fe Merge pull request #6456 from fr500/master
Fixes #6453
2018-03-25 12:16:06 +02:00
Twinaphex ad37bc530e Merge pull request #6460 from yoshisuga/ios_config_fix
[iOS]: fixed configuration file path
2018-03-25 12:15:53 +02:00
Yoshi Sugawara baf7aa239d [iOS]: fixed configuration file path to be the retroarch cfg file instead of the config path 2018-03-24 23:47:24 -10:00
Twinaphex 20a73209b6 Merge pull request #6457 from Tatsuya79/patch-1
XMB scale the mouse cursor too.
2018-03-25 09:32:05 +02:00
radius 94e4357fd4 return early in case path is null and move vars to the top 2018-03-24 19:11:07 -05:00
Tatsuya79 1aaaa116d1 XMB scale the mouse cursor too. 2018-03-25 00:48:05 +01:00
twinaphex 02bf41a686 (task_content.c) Minor cleanup 2018-03-25 00:14:35 +01:00
twinaphex 3c6490d828 Update 2018-03-25 00:09:57 +01:00
Twinaphex b1c054e9a5 Merge pull request #6455 from Tatsuya79/master
Fix XMB thumbnail height limit again.
2018-03-24 23:58:10 +01:00
radius 51c9ac4f7a fix crash related to achievements on non-fullpath cores 2018-03-24 17:52:23 -05:00
Tatsuya79 35ae907899 Fix XMB thumbnail height limit again. 2018-03-24 23:22:42 +01:00
Twinaphex 75d2813d47 Merge pull request #6452 from meepingsnesroms/master
Add PokeMini index for 3ds
2018-03-24 20:27:44 +01:00
meepingsnesroms 9c47e24a84 Add PokeMini index for 3ds 2018-03-24 12:10:54 -07:00
Twinaphex ce40bc6446 Merge pull request #6451 from Tatsuya79/master
Fix XMB thumbnail height limit.
2018-03-24 20:05:08 +01:00
Tatsuya79 a32880fd22 Fix XMB thumbnail height limit. 2018-03-24 18:43:15 +01:00
twinaphex e4b955d4d4 Fix sample count reporting 2018-03-24 16:29:39 +01:00
Twinaphex eaf1e1474e Merge pull request #6450 from Tatsuya79/patch-1
Update CHANGES.md
2018-03-24 16:12:28 +01:00
twinaphex df58d5a7d9 Fix C89_BUILD 2018-03-24 16:11:10 +01:00
Tatsuya79 07aa350d7e Update CHANGES.md 2018-03-24 15:47:44 +01:00
twinaphex 875450e228 Statistics - add sample count 2018-03-24 15:42:45 +01:00
twinaphex 33d99fe75b Add fps / ms metrics to statistics 2018-03-24 15:39:02 +01:00
Twinaphex 1818552aeb Merge pull request #6449 from markwkidd/core-association-warning
Core association warning
2018-03-24 15:19:59 +01:00
Twinaphex ea1df738a7 Update CHANGES.md 2018-03-24 15:18:47 +01:00
Twinaphex 131418e371 Update CHANGES.md 2018-03-24 15:18:10 +01:00
markwkidd 007829654e cast and dereference pointer without compiler warn 2018-03-24 10:16:34 -04:00
markwkidd b984abb371 pass address of unsigned index 2018-03-24 10:15:41 -04:00
twinaphex defcde0d1e (OpenSL) buf_count - make sure it can never be lower than 2 (with
current code) - was an issue when setting audio latency to much
lower values
2018-03-24 14:50:59 +01:00
twinaphex 54708a944a (OpenSL) Fix issues with cores using threaded audio - audio thread
would freeze waiting for a signal while toggling the menu
2018-03-24 14:48:58 +01:00
twinaphex 1fb7d14b36 Add audio statistics 2018-03-24 12:38:25 +01:00
twinaphex 9343eacc0a Create public function compute_audio_buffer_statistics 2018-03-24 12:25:52 +01:00
twinaphex 647f1a48a6 Add max size to statistics 2018-03-24 12:08:43 +01:00
twinaphex 9b8713aebd Fix Coverity defects 2018-03-24 11:59:01 +01:00
twinaphex 9057ffbde4 use boolean.h instead of stdbool.h 2018-03-24 11:45:50 +01:00
twinaphex 70f598c619 Use boolean.h instead of stdbool.h 2018-03-24 11:41:17 +01:00
Twinaphex 473d978d78 Merge pull request #6444 from Dwedit/original_suggestion
Functions to suspend and resume audio and video, and environment function for core to query status of enabled/disabled audio and video
2018-03-24 09:54:47 +01:00
Twinaphex 2b1979c3b7 Merge pull request #6447 from markwkidd/patch-1
revert change to core association to fix regression
2018-03-24 09:54:06 +01:00
markwkidd 512dc7fef5 revert change to core association to fix regression 2018-03-23 22:17:43 -04:00
Dwedit 3297900543 Add the early return to audio_driver_sample_batch 2018-03-23 17:22:00 -05:00
Dwedit fbd4900031 Add documentation for RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE to the header file 2018-03-23 16:33:51 -05:00
Dwedit 575265ff06 Remove early return from audio_driver_flush 2018-03-23 14:46:32 -05:00
Dwedit 7deeb6d2fa Functions to enable and disable audio and video, and an environment function to query status of audio and video enables 2018-03-23 14:12:05 -05:00
twinaphex 4d1b4f905f Start adding OSD statistics - doesn't work yet for SDL2/SDL 2018-03-23 17:43:49 +01:00
twinaphex 0ece3d8397 Start implementing frame_time/frame_count to video_info 2018-03-23 13:30:30 +01:00
twinaphex 85d3be1245 Update libretro-common 2018-03-23 11:17:56 +01:00
Twinaphex e179a39491 Merge pull request #6442 from yoshisuga/small_fixes
[iOS]: Some small fixes
2018-03-23 10:02:39 +01:00
Yoshi Sugawara c44dd39dd6 Fixed crash when opening content using "open in..", support for keyboard mapper 2018-03-22 22:43:20 -10:00
markwkidd e9822e0ac7 Update menu_cbs_ok.c (#6439) 2018-03-22 19:46:02 -04:00
Twinaphex 5c82ef3ee3 Merge pull request #6423 from markwkidd/playlist-core-reset
"reset associated core" feature for playlists
2018-03-22 21:40:19 +01:00
twinaphex be796566bc Add HAVE_CHEEVOS support for MSVC 2005 2018-03-22 20:45:35 +01:00
twinaphex f597fd7a11 Add HAVE_CHEEVOS support for MSVC 2010 2018-03-22 20:42:06 +01:00
markwkidd e373d82a58 cherry-pick menu code for core association reset 2018-03-22 13:27:37 -04:00
Twinaphex 0be2b76892 Update slang_process.cpp 2018-03-22 15:24:03 +01:00
twinaphex c318d05803 Fix buffer overlap - pointed out by @leo150, thanks 2018-03-22 15:22:17 +01:00
Twinaphex dac6f11547 Merge pull request #6435 from GregorR/netplay-device-availability-bug
Fix a bug in remembering device availability for netplay
2018-03-22 12:29:20 +01:00
Gregor Richards 06b402bc14 Fix a bug in remembering device availability for netplay
Really silly bug had netplay forgetting to unset device availability
when a client goes to spectator mode. As a consequence, in certain
configurations, later joins would automatically choose the wrong device,
and you'd have to manually specify a device to get the right one. This
fixes that.
2018-03-21 19:24:58 -04:00
Twinaphex 59bf897561 Merge pull request #6431 from meleu/patch-17
cheevos.c: getting the hash from ROM's filename
2018-03-21 20:33:18 +01:00
meleu d2d8f00b29 cheevos.c: getting the hash from ROM's filename
This is the method we'll use for arcade games.
2018-03-21 11:21:33 -03:00
Twinaphex c29ff4304c Merge pull request #6428 from GregorR/fix-appendconfig
Fix --appendconfig conflict with load order
2018-03-21 05:29:22 +01:00
Twinaphex 4fa50d14ea Merge pull request #6429 from orbea/snow
Fix apitrace shader compiler warning.
2018-03-21 05:28:59 +01:00
orbea 7526b12338 Fix apitrace shader compiler warning.
2418: message: major shader compiler issue 2: 0:3(311): warning: `atime' used uninitialized
  2418 @0 glCompileShader(shader = 27)
  2418: warning: 0:3(311): warning: `atime' used uninitialized
2018-03-20 17:39:33 -07:00
Gregor Richards ea85727b3c Fix --appendconfig conflict with load order
I'd previously changed the load order of command line options to make
overrides work with less hassle. I didn't notice --appendconfig, which,
as a where-is-the-config-file option, needs to come before config file
loading. This fixes that.
2018-03-20 18:48:51 -04:00
hizzlekizzle 813c7ad1f7 Merge pull request #6425 from vickychenglau/README.md-edits
Edited README.md for grammar and formatting
2018-03-20 08:36:01 -05:00
Vicky C Lau 7928c03e3c Edited for grammar and formatting 2018-03-20 00:54:23 -07:00
twinaphex 319d87cf6f Bump up version 2018-03-20 08:35:17 +01:00
Twinaphex ab672c4394 Merge pull request #6424 from fr500/staging
try to fix building SPIRV on android yet again
2018-03-20 08:03:56 +01:00
radius e9fdfd2334 try to fix building yet again 2018-03-20 01:46:30 -05:00
Andrés 8e3fb86115 Merge pull request #6421 from fr500/master
subsystem part 5: show subsystem roms within archives
2018-03-19 19:28:05 -05:00
radius caafe61f07 show subsystem roms within archives 2018-03-19 18:44:15 -05:00
twinaphex f78f5c27ce Try to silence more Coverity warnings 2018-03-19 14:18:39 +01:00
Twinaphex 719a3e52c7 Merge pull request #6400 from altiereslima/master
Update Translation (Portuguese Brazilian)
2018-03-19 13:51:09 +01:00
twinaphex 6bf011a700 Silence another warning 2018-03-19 12:25:56 +01:00
twinaphex 72dc03a1c6 Try to fix Coverity warnings 2018-03-19 06:58:36 +01:00
Twinaphex 62d2b9a54e Merge pull request #6417 from Tatsuya79/patch-1
xmb_scale_factor min limit to 20
2018-03-19 03:46:50 +01:00
Twinaphex a357198bda Merge pull request #6418 from bearoso/master
Fix multi-line text spacing in menus with Vulkan driver.
2018-03-19 03:46:35 +01:00
Brandon Wright eb6d04d430 With X context set vk.swapchain to VK_NULL_HANDLE when failing to create swapchain so Vulkan common functions don't try and use it and crash. 2018-03-18 19:31:25 -05:00
Andrés c7f070113a Merge pull request #6419 from fr500/master
reset retroarch.cfg
2018-03-18 19:06:37 -05:00
radius 9b022c5904 reset retroarch.cfg 2018-03-18 19:06:07 -05:00
Brandon Wright 1f472db2aa Fix multi-line text spacing in menus with Vulkan driver. 2018-03-18 18:57:24 -05:00
Tatsuya79 ac556e0b7c xmb_scale_factor min limit to 20 2018-03-18 23:05:57 +01:00
markwkidd 1354526345 fix whitespace typo 2018-03-18 16:43:20 -04:00
markwkidd 4312c11d31 demonstration of core association reset
fix .cfg:

tweak
2018-03-18 16:41:49 -04:00
Twinaphex adc4f27eb9 Merge pull request #6416 from fr500/staging
try to fix android compilation issues
2018-03-18 19:12:07 +01:00
Twinaphex 4d8d6478f4 Merge pull request #6415 from fr500/master
fix potential crash on task_push_http_transfer
2018-03-18 19:11:42 +01:00
radius fd9d8c9512 fix potential crash on task_push_http_transfer 2018-03-18 12:52:04 -05:00
radius eb1d3f612f try to fix android compilation issues 2018-03-18 11:55:54 -05:00
Andrés a8fc4b204a Merge pull request #6413 from fr500/staging
remove task_push_http_transfer_raw, encode before sending data to the…
2018-03-18 11:13:03 -05:00
Twinaphex 3e3b24bbaf Merge pull request #6414 from bearoso/master
Fix X11 Vulkan bug from Wayland driver.
2018-03-18 04:41:32 +01:00
Brandon Wright e8de264b75 Fix X11 Vulkan bug from Wayland driver. 2018-03-17 19:45:01 -05:00
Twinaphex 8f0c94a322 Merge pull request #6412 from fr500/master
Fix #6411
2018-03-17 22:47:19 +01:00
radius 05b6c4eafa update CHANGES.md 2018-03-17 15:04:55 -05:00
radius 1a4db72e82 shader left / right fixes and cleanup 2018-03-17 14:56:34 -05:00
radius c52fdc469f remove task_push_http_transfer_raw, encode before sending data to the task 2018-03-16 22:38:21 -05:00
Twinaphex 9721c7c4be Merge pull request #6407 from QuarkTheAwesome/master
[WiiU] Fix OOB read/write in keyboard driver
2018-03-17 03:36:47 +01:00
Ash aeea0e6ca8 [WiiU] Fix OOB read/write in keyboard driver
This code used a keyboardState size of 256 and indexed it with a
retro_key, which can be any value (RETROK_RALT is 307). This fixes
that by using RETROK_LAST as the array size.

Should fix #6322.
2018-03-17 13:00:47 +11:00
meleu 176cde31fc decreasing verbosity in Achievements menu 2018-03-16 21:04:56 -03:00
twinaphex fb011f8377 Fix MSVC 2013 build 2018-03-16 22:04:34 +01:00
Brad Parker 450fc90a15 griffin: add vc2015 Makefile target 2018-03-16 21:03:58 +00:00
Brad Parker 614521b238 fix building on windows without dinput 2018-03-16 21:03:43 +00:00
twinaphex ffbb439fb5 Fix MSVC 2015 solution 2018-03-16 21:45:14 +01:00
Brad Parker 3d378fd772 add back missing UTF8 BOMs 2018-03-16 16:21:19 -04:00
Twinaphex 65c903de3c Merge pull request #6403 from fr500/staging
fix shader parameter increase decrease
2018-03-16 19:24:10 +01:00
radius 6b150ba38d fix shader parameter increase decrease 2018-03-16 09:32:22 -05:00
altiereslima 24783b21cf Update Translation (Portuguese Brazilian) 2018-03-16 02:35:29 -03:00
Twinaphex aa4ded4bc7 Merge pull request #6399 from meleu/patch-16
fixing cheevos (broken after #6389)
2018-03-16 05:12:26 +01:00
meleu eb5a69ded3 fixing cheevos (broken after #6389) 2018-03-16 01:03:57 -03:00
Twinaphex 29a057ac98 Merge pull request #6397 from meleu/patch-11
cheevos: console ID for Game Gear
2018-03-15 21:39:35 +01:00
meleu ca6df1ae32 Support Game Gear
The Console ID 15 was changed to Game Gear at RetroAchievements database.

http://retroachievements.org/gameList.php?c=15
2018-03-15 16:40:19 -03:00
Twinaphex 83fae86b6f Merge pull request #6395 from RobLoach/achievement-list
cheevos: Rename "Achievement List" to "Achievements"
2018-03-15 18:03:58 +01:00
Rob Loach 518ff36ed4 cheevos: Rename 'Achievement List' to 'Achievements' 2018-03-15 12:56:20 -04:00
Twinaphex 1c045de7a6 Merge pull request #6392 from meleu/patch-15
Update CHANGES.md
2018-03-15 16:42:31 +01:00
Twinaphex e07be500ee Merge pull request #6390 from aliaspider/master
(Vulkan) add missing queue locks when calling vkQueueWaitIdle.
2018-03-15 16:41:33 +01:00
meleu d02d48da24 Update CHANGES.md 2018-03-15 07:52:03 -03:00
aliaspider b948cf46e7 (Vulkan) add missing queue locks when calling vkQueueWaitIdle. 2018-03-15 09:21:23 +01:00
Twinaphex ee809abf6b Merge pull request #6388 from meleu/patch-12
added cheevos_auto_screenshot
2018-03-15 06:42:10 +01:00
twinaphex 6653818dc8 Revert "(input_overlay.c) Cleanups"
This reverts commit 56389466aa.
2018-03-15 06:39:06 +01:00
Twinaphex 1eaa902b6d Merge pull request #6389 from fr500/master
make sure to always encode urls, also change the PS3 default urls
2018-03-15 06:36:40 +01:00
radius b01e63e2cd make sure to always encode urls, also change the PS3 default urls 2018-03-14 23:04:50 -05:00
meleu 6346f18133 added cheevos_auto_screenshot 2018-03-14 22:41:51 -03:00
twinaphex 6bf34c36ed Update net_http_test 2018-03-15 00:38:30 +01:00
twinaphex 9cac3175c3 Buildfix 2018-03-15 00:31:29 +01:00
twinaphex 32b2808fe0 Revert "Turn scaler_ctx_scale_direct into inline function"
This reverts commit d51edd8239.
2018-03-14 23:48:47 +01:00
twinaphex e5eeed688e Add some stuff to net sample Makefile 2018-03-14 23:48:29 +01:00
twinaphex fd206a7dd0 Update https links 2018-03-14 19:09:05 +01:00
Twinaphex 0d4833fb76 Merge pull request #6385 from meleu/patch-11
Update CHANGES.md
2018-03-14 06:32:40 +01:00
meleu a419c524f7 Update CHANGES.md
- CHEEVOS: Support Atari 2600, Virtual Boy, Neo Geo (Arcade).
- VITA: Bugfix for 'PS Vita takes many time to start to accept input' issue.
2018-03-13 23:08:25 -03:00
Twinaphex d170cb5469 Merge pull request #6379 from RobLoach/morningblue
xmb: Add Morning Blue theme
2018-03-12 02:49:51 +01:00
Rob Loach ddb0f81cf2 xmb: Add Morning Blue theme 2018-03-11 20:37:49 -04:00
twinaphex d51edd8239 Turn scaler_ctx_scale_direct into inline function 2018-03-11 18:14:17 +01:00
twinaphex d6eda2502d Improve scaler_ctx_scale_direct macro 2018-03-11 17:46:39 +01:00
Twinaphex 4552002945 Merge pull request #6375 from GregorR/override-load-order
Make command-line overrides (somewhat) clearer
2018-03-11 01:32:14 +01:00
Twinaphex 173f6a23e3 Merge pull request #6377 from Ryunam/master
Implement Slow motion toggle under Input Hotkey Binds
2018-03-10 22:15:04 +01:00
Ryunam c5775fd73c Implement Slow motion toggle 2018-03-10 18:42:45 +01:00
Gregor Richards 2be56942da Since directories can't be post-overridden, that case still needs to be handled separately. 2018-03-09 17:33:41 -05:00
Gregor Richards b33d29aecf Make command-line overrides (somewhat) clearer
This commit:

(1) Changes the order of command-line loading so that config loading
happens before command line overrides. This way, config loading does not
itself have to be concerned with being pre-overridden.

(2) Adds overrides to the data structures that configuration saving uses
to save configuration blocks of the same type, so that they can easily
be added in the future.

(3) Corrects some (all?) existing problems with command-line overrides
being ignored.
2018-03-09 17:23:34 -05:00
twinaphex d991c7d471 Fix warning 2018-03-09 15:44:11 +01:00
twinaphex 96e154cb8f Fixes PS3 build hopefully 2018-03-09 15:39:10 +01:00
Twinaphex 6d8544c26d Merge pull request #6373 from ajefr/patch-2
declaration error
2018-03-09 04:02:16 +01:00
ajefr 1da67cecf3 declaration error 2018-03-08 21:44:26 +01:00
Andrés 07ecc641fe Merge pull request #6372 from ajefr/patch-1
typo
2018-03-08 15:25:06 -05:00
ajefr 98f8ed637c typo
stati -> static
2018-03-08 21:19:00 +01:00
twinaphex 7a99694a1a Update PS3 buildbot URLs 2018-03-08 03:45:55 +01:00
meleu d5503e9e7c fix a bad in_addr manipulation on VITA - fixes #6127 (#6366)
added VITA condition
2018-03-07 22:11:30 +01:00
Twinaphex 1bccf5cf27 Merge pull request #6365 from Tatsuya79/patch-3
Fix MaterialUI scaling bug in long lists, lower res devices.
2018-03-07 16:07:16 +01:00
Tatsuya79 5dda583a94 Fix MaterialUI scaling bug in long lists, lower res devices. 2018-03-07 12:17:10 +01:00
Twinaphex d532f108fc Merge pull request #6364 from reswitched/master
[NSW] Graphics driver speed improvements/fixes and audio driver improvement
2018-03-07 06:35:39 +01:00
misson20000 35f796d65d NSW(audio): use alloc_pages to acquire buffers instead of using ones in bss 2018-03-06 21:18:42 -08:00
misson20000 e934f11065 NSW: skip frames if we can't acquire a buffer (newer libtransistors use three buffers, making this very unlikely to happen) 2018-03-06 20:55:40 -08:00
misson20000 4a4de74518 NSW(gfx): clear image row-by row for better caching (it's seriously a LOT faster), do pixel format conversion in scalers, and remove timing debug messages 2018-03-06 19:52:03 -08:00
misson20000 dd53be15ae let scalers output in ABGR8888 2018-03-06 19:52:03 -08:00
Twinaphex 82fb34a3ce Merge pull request #6327 from ramiro/add-arab-lang-name-en-literal
Add "Arabic" to intl/msg_hash_us.h missed in 45580cb9a8.
2018-03-06 20:52:31 +01:00
twinaphex 82213266e6 (PS3) Change back to SNC 2018-03-06 19:03:51 +01:00
twinaphex 2b300b96e2 Update Makefile.ps3.cobra too 2018-03-06 18:32:00 +01:00
twinaphex 3e6ffe3983 See if this fixes PS3 builds 2018-03-06 18:31:25 +01:00
twinaphex 14e6d42935 (XMB) Get rid of some unnecessary pointer passing 2018-03-06 15:55:06 +01:00
twinaphex aa57331569 (MaterialUI) Attempt to make things more readable 2018-03-06 15:34:58 +01:00
Twinaphex b815c64814 Merge pull request #6355 from 777sha/master
More french translations
2018-03-06 15:33:41 +01:00
Twinaphex 2e61eecbdd Merge pull request #6363 from reswitched/master
NSW: Menu toggle combo, build fix, graphics driver fixes
2018-03-06 12:57:42 +01:00
misson20000 90c36c52ce NSW: fix graphics driver colors for rgb32 and don't break aspect ratio when scaling menu texture 2018-03-05 23:45:28 -08:00
misson20000 22c95b31ea NSW: cpu_features_get_time_usec: put SWITCH block before POSIX_MONOTONIC_CLOCK block 2018-03-05 20:23:49 -08:00
misson20000 7487d938b3 NSW: remove global state in graphics driver, as it is no longer necessary 2018-03-05 20:14:52 -08:00
Lubosz Sarnecki be64bf08e4 config.def.h: Toggle menu with start & select (- & +) on Switch. 2018-03-05 20:03:56 -08:00
Twinaphex a4e2c8c75c Update Makefile.ps3.salamander 2018-03-06 04:47:58 +01:00
Twinaphex 34ec4b9dcb Update Makefile.ps3.cobra 2018-03-06 04:47:34 +01:00
Twinaphex 7d8e8291ec Update Makefile.ps3 2018-03-06 04:47:16 +01:00
Twinaphex 333ef62e25 Merge pull request #6362 from aliaspider/master
update SPIRV-Cross.
2018-03-06 04:47:01 +01:00
aliaspider bb972a6dab (spirv) set flip_vert_y to true when emitting HLSL. 2018-03-06 04:12:58 +01:00
aliaspider ff6d24cbef (SPIRV-Cross) Merge commit 'f48c1800c0122e8e7957f572c359e4594932cd4c' 2018-03-06 04:11:59 +01:00
aliaspider f48c1800c0 Squashed 'deps/SPIRV-Cross/' changes from 33c5cd9..c9516fa
c9516fa Fix OSX Travis.
94cd777 Move `rename_interface_variable` to util
467c956 Merge pull request #480 from KhronosGroup/fix-476
1e4db56 Run format_all.sh.
eecbeaa Take execution model into account for entry point methods.
337150f Merge pull request #479 from KhronosGroup/fix-477
3c1b147 Support Invariant for BuiltInPosition.
cae1722 Merge pull request #475 from KhronosGroup/fix-convert-cast
e69b1ae Fix implicit conversion bug.
b39c063 Merge pull request #474 from KhronosGroup/fix-pointer-overload
fda36f8 Fix function overload when SPIR-V overloads on pointer type.
a61e728 Merge pull request #472 from KhronosGroup/fix-446
6a12ff7 Fix multiple declaration of spvDet2x2 on MSL.
b380a21 Implement MatrixInverse on HLSL.
6066fe4 Merge pull request #471 from KhronosGroup/fix-462
f6d08e6 Add workaround for PointCoord builtin on HLSL.
fb196c2 Merge pull request #470 from KhronosGroup/fix-459
dd603ea Support spec constant array size in blocks.
32b1c7d Merge pull request #469 from KhronosGroup/fix-454
a04bdcc Handle overloaded functions which share the same OpName.
f887b20 Merge pull request #468 from KhronosGroup/fix-461
4543dac Run format_all.sh.
047ad7d Support special float constants (NaN/Inf).
3f64f56 Merge pull request #465 from KhronosGroup/fix-445
0673f27 Fix incorrect loop range.
114c2c5 Add clip/cull-distance support to HLSL.
fb3f92a Overhaul clip/cull distance support in GLSL.
11bbccb Merge pull request #464 from billhollings/master
50ef6cd CompilerMSL remove incorrect packing of non-interface type-aliased structs.
3925fe8 Merge pull request #460 from KhronosGroup/fix-424
47b3742 Run format_all.sh.
1a2e4de Add test for texelFetch without sampler.
4db7061 Begin implementing texelFetch(texture2D) workaround on GLSL.
d871a89 Remove "EXPERIMENTAL" tag from MSL/HLSL.
218b0a5 Merge pull request #455 from KhronosGroup/fix-452
8a3bef2 Add OpFRem tests.
54a065b Run format_all.sh.
3fa6cc8 Implement FRem.
a9a6bca Merge pull request #453 from KhronosGroup/fix-444
843e34b Add IsFrontFace support to HLSL.
3d0c61f Merge pull request #451 from KhronosGroup/fix-437
636cc30 Fix case where hoisted temporaries were used before being declared.
4d1c5ad Merge pull request #450 from jodavis42/OpCopyMemoryCrash
b4b629b Null crash fix in OpCopyMemory.
6a0f698 Set width when creating NumWorkgroups buffer.
2bda0d5 Merge pull request #449 from billhollings/master
2964e32 CompilerMSL support gl_SampleMask and convert it to scalar uint from array.
64d3083 Merge pull request #448 from billhollings/master
b453348 Merge branch 'master' of https://github.com/billhollings/SPIRV-Cross
607b0d6 CompilerMSL support smaller offsets for 3-row row-major matrices.
7be30aa Merge pull request #442 from KhronosGroup/fix-435
a3104e9 Also check that type we load is an image.
a3ae861 Fix depth image usage in MSL for separate image/samplers.
702e086 Support passing implicit frag_coord arguments down to functions.
0912427 Begin implementing subpassLoad in MSL.
18a594a Implement subpass input support in HLSL.
f4bce68 Merge pull request #433 from KhronosGroup/fix-428
c9db3e5 Overload on constant storage.
b2c9487 Attempt to deduce constant/thread storage.
1a9c960 MSL cannot declare inline arrays except in certain cases.
156dd90 Implicit return value takes thread storage.
d89b790 Fix wrong function declaration in MSL.
00ccd59 Return arrays in HLSL/MSL by writing to an output variable instead.
9fa91f7 Support returning arrays from functions in GLSL/MSL.
ed6b775 Merge pull request #417 from msiglreith/root_constants_overwrite
369f5f6 Add missing include
d096f5c hlsl: Support custom root constant layout
4b58f65 Merge pull request #438 from zeux/msvc-warning-fix
24cf308 Fix MSVC 2015 warning
8b53b70 Merge pull request #434 from KhronosGroup/fix-429
18e8833 Support gl_NumWorkgroups in HLSL.
181a5fa Fix formatting after merge.
e3f4041 Fixes MSVC 2013 compilation
ef33770 Merge pull request #431 from twinaphex/master
59a12c7 Uniquely name these static functions

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: c9516fa91709b68ac20fa614625e85e0ced3f23f
2018-03-06 04:10:13 +01:00
Twinaphex c104a232fd Merge pull request #6361 from FIX94/master
(GX) allow audio output rate to be changed in the settings
2018-03-05 20:45:12 +01:00
FIX94 13a2246c50 (GX) allow audio output rate to be changed in the settings between 32khz and 48khz 2018-03-05 20:17:51 +01:00
Hugo Sha 810be0cea5 More fixes 2018-03-04 23:25:50 +01:00
Hugo Sha 7c1ee8b24b Added changes recommended by Tatsuya79 3 2018-03-04 22:33:33 +01:00
Twinaphex d51048b0df Merge pull request #6358 from fr500/subsystem
subsystem part 4: set savestates properly
2018-03-04 21:09:56 +01:00
Hugo Sha f3c3bc9f6e Some more changes 2018-03-04 19:59:28 +01:00
Hugo Sha 29c75105d4 Added changes recommended by Tatsuya79 2 2018-03-04 19:44:55 +01:00
Hugo Sha fc4a24e4c9 Added changes recommended by Tatsuya79 2018-03-04 19:34:57 +01:00
radius 7b0c0b63c9 subsystem part 4: set savestates properly 2018-03-04 12:34:51 -05:00
Twinaphex 32bf9cd716 Merge pull request #6356 from GregorR/netplay-no-double-check
Remove an incorrect double-check
2018-03-04 05:46:11 +01:00
Gregor Richards a39bff6e03 Remove an incorrect double-check
Netplay sync incorrectly checked whether the replay pointer was behind
the unread pointer twice, when in the second check it should only have
been checking if it was behind the current execution pointer. Because of
how resimulation works with device sharing, I THINK this could affect
sync. Even if it can't, it's wrong.
2018-03-03 23:03:35 -05:00
Twinaphex 112600e0db Merge pull request #6354 from Tatsuya79/patch-1
Move variable.
2018-03-04 02:51:24 +01:00
Hugo Sha 03e0d0fe99 More french translations 2 2018-03-04 02:26:01 +01:00
Tatsuya79 4c561a2de1 Move variable. 2018-03-04 01:56:29 +01:00
Twinaphex 340a368465 Merge pull request #6340 from Tatsuya79/master
XMB Dynamic Scaling Mod. (For Testing)
2018-03-04 01:08:59 +01:00
Tatsuya79 28a7357fca Thumbnails height limitation. Linear Image scaling. 2018-03-04 01:06:02 +01:00
twinaphex 1d1acc8940 Cleanup 2018-03-03 16:33:49 +01:00
Hugo Sha 1212b88bae More french translations 1 2018-03-03 16:21:32 +01:00
twinaphex 542cd6b6bf Uniquely name variables 2018-03-03 15:51:00 +01:00
twinaphex 63823b339a Buildfix for D3D8 2018-03-03 15:34:21 +01:00
twinaphex 858af5fbe2 Fix Griffin build 2018-03-03 15:30:35 +01:00
twinaphex b4a743fff4 Split up menu display drivers for D3D8/D3D9 into separate drivers;
split up d3d_common into separate files
2018-03-03 15:28:58 +01:00
twinaphex 0566b056a5 Take out d3d_common function call from d3d_w32_font.c 2018-03-03 05:42:14 +01:00
twinaphex 59dae251b0 Change to system dir include 2018-03-02 18:34:29 +01:00
twinaphex 64b36ef5d8 (MSVC) Buildfix for Cg renderchain 2018-03-02 18:32:14 +01:00
twinaphex 3f1ae25713 (D3D8) Buildfix 2 2018-03-02 17:44:48 +01:00
twinaphex ed67653086 (D3D8) Buildfix 2018-03-02 17:43:58 +01:00
twinaphex 371b6a604e (Xbox) Buildfix 2018-03-02 17:43:18 +01:00
twinaphex 588707f543 Cleanups 2018-03-02 17:30:21 +01:00
twinaphex 0ec5ce8cfe Get rid of d3d context drivers 2018-03-02 17:23:43 +01:00
twinaphex 95371cbda1 (Xbox 360) Buildfix 2018-03-02 17:05:30 +01:00
twinaphex dfdbc00a84 Cleanup Xbox 360 code from d3d_ctx 2018-03-02 17:03:34 +01:00
twinaphex dbf2fae5c1 (D3D9) Get rid of context driver 2018-03-02 17:00:11 +01:00
twinaphex fc9e018534 Implement d3d9_set_video_mode 2018-03-02 16:53:15 +01:00
twinaphex 7c599b715e Implement d3d9_has_windowed 2018-03-02 16:46:32 +01:00
twinaphex 9606db6f79 Start untangling more functions from context driver 2018-03-02 16:38:57 +01:00
twinaphex af5a2f61a1 (D3D9) Start getting rid of context driver for D3D9 driver 2018-03-02 15:30:39 +01:00
Twinaphex 0a1bcab732 Update CHANGES.md 2018-03-02 02:18:49 +01:00
twinaphex 9f33ba8607 (Vulkan/D3D11/D3D12) Add HAVE_GLSLANG now to both Android and MSVC solutions - shaders
should work now
2018-03-02 02:14:29 +01:00
twinaphex 3cd2018cc1 Update video_shader_parse.c 2018-03-02 01:41:05 +01:00
twinaphex df7f47d00a Create string_is_equal_case_insensitive 2018-03-01 23:16:34 +01:00
twinaphex 2f457af8bf Buildfix 2018-03-01 22:51:43 +01:00
twinaphex 25b7e54bdb Fix mistake 2018-03-01 22:44:27 +01:00
twinaphex 7a7902c4ac string_is_equal_noncase has issues in video_shader_get_type_from_ext 2018-03-01 22:42:03 +01:00
Twinaphex ae6e410de1 Remove unused variables 2018-03-01 22:28:26 +01:00
twinaphex 4c08bdc0e9 Add GFX_CTX_GX_API 2018-03-01 22:22:13 +01:00
Brad Parker 6329eca684 add patch to enable gdb/debugging on android 2018-03-01 16:01:04 -05:00
twinaphex 9d45d26f56 Update 2018-03-01 21:26:32 +01:00
twinaphex 13b6a016fc Fix d3d swap buffers call 2018-03-01 21:23:15 +01:00
twinaphex 16c1bd7a03 Create context get_api function 2018-03-01 21:16:54 +01:00
twinaphex ba0e6bcdea Get rid of warning that is inaccurate 2018-03-01 18:17:04 +01:00
twinaphex 128dff15ab Add better fallback in case current_video_context_api is none 2018-03-01 18:15:04 +01:00
twinaphex c8028f3150 Set current_video_context_api for GL and Vulkan 2018-03-01 17:51:55 +01:00
Twinaphex a22131b452 Update CHANGES.md 2018-03-01 17:35:49 +01:00
twinaphex c72a68faf8 Disable XMB shadow icons by default for PowerPC and ARM for performance
reasons
2018-03-01 17:34:08 +01:00
twinaphex 7da491d009 * menu_shader.c - cleanup
* Nothing uses HAVE_SHADERS define anymore, so get rid of it* Nothing
uses HAVE_SHADERS define anymore, so get rid of it* Nothing uses
HAVE_SHADERS define anymore, so get rid of it* Nothing uses HAVE_SHADERS
define anymore, so get rid of it* Nothing uses HAVE_SHADERS define
anymore, so get rid of it* Nothing uses HAVE_SHADERS define anymore, so
get rid of it* Nothing uses HAVE_SHADERS define anymore, so get rid of
it* Nothing uses HAVE_SHADERS define anymore, so get rid of it
2018-03-01 17:19:19 +01:00
twinaphex 8b8b08aefd - Simplify video_shader_parse_type
- Fix welcome screen
2018-03-01 15:58:06 +01:00
twinaphex 0de23512e7 Should fix APK extraction (hopefully) 2018-03-01 14:59:37 +01:00
twinaphex b3d3cbd4e1 sthread_isself - make Win32 codepath use GetCurrentThreadId instead 2018-02-28 16:18:48 +01:00
twinaphex 18d27468ae Set handles_transform for 3DS/D3D11/D3D12/Vita/WiiU menu
display drivers - this skips a bunch of costly matrix calculations
for menu display drivers that have a geometry shader or something
similar
2018-02-28 04:52:47 +01:00
Tatsuya79 4ab8fb9423 Dynamic Scaling Mod. 2018-02-27 19:01:15 +01:00
twinaphex f0f3df3043 Get rid of some menu shader functions 2018-02-27 05:07:34 +01:00
Twinaphex 502f3ddc74 Update CHANGES.md 2018-02-26 19:42:48 +01:00
twinaphex 7e8b9135c3 (Cg) If GL context is GLES2/3/Core context, Cg shaders are unavailable 2018-02-26 19:39:42 +01:00
twinaphex fbead501f3 Move SHADER_DIR_INIT to end of video driver init function 2018-02-26 19:33:27 +01:00
twinaphex 826ca302ca video_shader_get_type_from_ext - the switch now covers the APIs
that support the shader type, not the ones that don't
2018-02-26 19:04:01 +01:00
twinaphex 88ab8ceb24 Conditionally build up shader list 2018-02-26 18:56:56 +01:00
Twinaphex 4dc9c408d4 Merge pull request #6329 from markand/fix-vid-pid
Use EVIOCGID's ioctl to get vendor/product id, #6325
2018-02-26 18:39:33 +01:00
twinaphex bf22eeff21 Update CHANGES.md 2018-02-26 18:37:14 +01:00
twinaphex f2e80fd8e8 hide cg and glsl for D3D10/11/12 drivers 2018-02-26 18:36:10 +01:00
twinaphex a34c066e07 Hide glsl/cg shaders from Vulkan driver 2018-02-26 18:35:16 +01:00
twinaphex e9d0834a39 Selectively filter away slang/slangp shaders for now with GL driver 2018-02-26 18:32:22 +01:00
twinaphex 2f241d10d4 Update CHANGELOG 2018-02-26 18:17:19 +01:00
twinaphex d45189b853 Prevent crashes from occurring if we have the GL video driver
in use and we try to skip to a slang shader through next/previous
hotkeys
2018-02-26 18:15:38 +01:00
twinaphex 696fa900a1 Refactor macro functions which were unsafe 2018-02-26 18:08:17 +01:00
twinaphex b67777f664 Update d3d9_hlsl_renderchainc. 2018-02-26 17:52:38 +01:00
twinaphex 5b79d2b942 Refactor video_shader_driver_set_parameters 2018-02-26 17:51:52 +01:00
twinaphex 5665e27324 Nits 2018-02-26 15:12:19 +01:00
twinaphex b4733fd6c2 Cleanups 2018-02-26 00:13:01 +01:00
twinaphex 826a5009b0 Cleanups 2018-02-25 23:54:46 +01:00
twinaphex d8498d0de7 Cleanups 2018-02-25 23:49:00 +01:00
twinaphex 8dbe653e9f Cleanup 2018-02-25 23:24:21 +01:00
twinaphex e75992a66f Get rid of HAVE_SHADER_MANAGER 2018-02-25 23:03:39 +01:00
twinaphex 7bc9e5260e Start getting rid of HAVE_SHADER_MANAGER ifdefs 2018-02-25 22:54:17 +01:00
twinaphex 7a3d7e784a (menu_generic.c) Get rid of hashes 2018-02-25 22:27:05 +01:00
twinaphex dd91373f35 Remove unused function 2018-02-25 22:08:16 +01:00
twinaphex b4ea072ce7 (database_info.c) Cleanups 2018-02-25 21:58:52 +01:00
twinaphex 33f0009a11 Fix UNIX build 2018-02-25 20:49:44 +01:00
twinaphex 8d7911976c Refactor menu_shader.c 2018-02-25 20:42:44 +01:00
twinaphex b4a9ac37ff Get rid of more unnecessary hashing 2018-02-25 18:07:29 +01:00
twinaphex 366a1d58f8 (menu) Get rid of name_hash 2018-02-25 18:04:32 +01:00
twinaphex 78406bef69 (platform_unix.c) Remove lots of hashes 2018-02-25 17:58:36 +01:00
twinaphex d6d89e10ba Get rid of msg_hash dependency 2018-02-25 17:48:00 +01:00
twinaphex fa40be2aa5 Simplify sorting 2018-02-25 17:47:36 +01:00
twinaphex 071476174d database_info.c - get rid of hashes 2018-02-25 17:43:12 +01:00
twinaphex 74309e6e1c shader code - Get rid of more hashes 2018-02-25 17:20:22 +01:00
twinaphex f00d194ae3 Get rid of more hashes 2018-02-25 16:32:54 +01:00
Twinaphex b2c3a2c2db Merge pull request #6333 from r-type/patch-1
Update imports.h
2018-02-25 15:21:06 +01:00
not6 af8559bc19 Update imports.h
add OSGetCurrentThread and OSExitThread.
2018-02-25 13:53:57 +00:00
twinaphex b0f29a6743 (platform_unix.c) Remove more hashes 2018-02-25 13:16:17 +01:00
twinaphex fae9223641 Remove hashes from task_overlay 2018-02-25 13:03:54 +01:00
twinaphex 938f6cc26e Get rid of hashes in shader_gl_cg 2018-02-25 01:13:34 +01:00
twinaphex 016e24e5a5 (video_shader_parse) Get rid of hashes 2018-02-25 01:07:14 +01:00
twinaphex 8d9fbf4a62 Cleanups 2018-02-25 00:50:01 +01:00
twinaphex 36f9d359c2 Combine menu_list and menu_entries 2018-02-25 00:39:20 +01:00
twinaphex 2a6af87d23 Remove unused function 2018-02-25 00:28:31 +01:00
twinaphex 865fec4282 Update libretro-mpv core - only use dlopen for HAVE_OPENGLES builds 2018-02-23 14:40:31 +01:00
Ramiro Morales 7a0428fc76 Add "Arabic" to intl/msg_hash_us.h missed in 45580cb9a8. 2018-02-23 08:17:13 -03:00
David Demelier e99049a8ff Use EVIOCGID's ioctl to get vendor/product id, #6325
The current code get the USB vendor/product controller, in case of
bluetooth connection this means that you get the bluetooth dongle ids
instead of gamepads. This is not fine as we match gamepads using their
product and vendor ids.

Credits go to SDL which helped me to figure out this issue.

http://hg.libsdl.org/SDL/file/f7c6b974d5af/src/joystick/linux/SDL_sysjoystick.c#l208
2018-02-23 09:19:43 +01:00
Twinaphex cf7785d784 Merge pull request #6318 from fr500/master
nitpicking fix: makes shader next start at the first shader
2018-02-20 09:04:15 +01:00
radius 2f25ec6f8b nitpicking fix: makes shader next start at the first shader 2018-02-19 20:01:23 -05:00
twinaphex 6fc6bfbb24 (XDK1) Set default assets dir too 2018-02-19 13:43:32 +01:00
twinaphex 6c02dfd84c (XDK1) Setup some default dirs 2018-02-19 13:29:16 +01:00
twinaphex 5139241e87 Fix Python codepath 2018-02-19 09:11:33 +01:00
Twinaphex a453819732 Merge pull request #6315 from MrHuu/3DS
(3DS) Clean / Reorder / Add FreeIntv
2018-02-19 08:22:54 +01:00
MrHuu 9193bdc46c (3DS) Clean / Reorder / Add FreeIntv 2018-02-18 15:42:55 +01:00
twinaphex 56cbaefd05 Change this back 2018-02-18 02:12:15 +01:00
twinaphex c0f79d2032 Update 2018-02-18 02:11:41 +01:00
twinaphex 4e222589a0 (Xbox) Update 2018-02-18 02:09:55 +01:00
twinaphex daa44b7441 Update 2018-02-18 02:08:18 +01:00
twinaphex 22e9029640 (Xbox) Set IP 2018-02-18 02:04:22 +01:00
twinaphex 4d0af5f4ae (xdk) Update platform 2018-02-18 02:00:39 +01:00
twinaphex e7cde2c4ef (Xbox) Fix dist-scripts 2018-02-18 01:58:34 +01:00
Twinaphex 60b8a25203 Merge pull request #6314 from meepingsnesroms/master
Add eclipse ide files to gitignore
2018-02-18 01:37:49 +01:00
twinaphex c842d2e27e (Xbox1) Take out XMB 2018-02-18 01:37:36 +01:00
meepingsnesroms 28a0b6c2e2 Add missing slash 2018-02-17 15:59:04 -08:00
meepingsnesroms 56d22d4564 Add eclipse ide files to gitignore 2018-02-17 15:55:59 -08:00
twinaphex 9bdb6291b0 (input device ID) Should no longer crash when pressing left on
this entry when no devices are connected
2018-02-18 00:49:26 +01:00
twinaphex 175672dedc Fix ifdef 2018-02-17 20:02:18 +01:00
twinaphex 064ea5368e (Xbox 1) Add SSE/MMX 2018-02-17 19:59:26 +01:00
twinaphex bf610ba2e6 (D3D) Prevent crash with D3D8 2018-02-17 19:19:16 +01:00
twinaphex 7acd4b1847 (Windows) Buildfixes - use fseek for MSVC 2003 and earlier 2018-02-17 19:11:49 +01:00
Andrés dcf7ae855e Merge pull request #6313 from fr500/master
subsystem fix
2018-02-17 12:44:08 -05:00
radius fd767f65bd subsystem fix 2018-02-17 12:28:19 -05:00
Twinaphex f94c798792 Update CHANGES.md 2018-02-17 16:44:08 +01:00
twinaphex b6347420d3 Set 1.7.1 2018-02-17 16:43:51 +01:00
twinaphex 0de6af43bb Set cache_context to false by default 2018-02-17 15:18:28 +01:00
twinaphex 64db75a62e Prevent MSVC warning 2018-02-17 14:28:30 +01:00
twinaphex 11289367cf Subsystem should work now with archives when using 'Open' instead of
'Load'
2018-02-17 12:40:00 +01:00
twinaphex 7b52b4a258 Add some placeholder code 2018-02-17 12:23:15 +01:00
twinaphex 7e45bd93f6 (configuration.c)
- Fix Coverity leak
- Stylistic nits
2018-02-17 11:55:39 +01:00
twinaphex 242eef6a6d Prevent problems with empty strings in the future 2018-02-17 11:41:25 +01:00
twinaphex 89cd494ab7 (WiiU) Buildfix 2018-02-17 11:27:14 +01:00
Twinaphex 9bd18e22ba Merge pull request #6312 from fr500/master
fix potential wiiu crash
2018-02-17 09:36:13 +01:00
Twinaphex f48cce2334 Merge pull request #6311 from GregorR/netplay-discovery-string-length-bug
Fix bug in string length in strlcpy.
2018-02-17 09:03:17 +01:00
radius 7913b88853 fix potential wiiu crash 2018-02-17 00:10:08 -05:00
Gregor Richards 8cf4127695 Fix bug in string length in strlcpy. 2018-02-16 19:31:00 -05:00
twinaphex 5888718c04 (Zarch) Buildfix 2018-02-16 21:47:42 +01:00
twinaphex 070c09faec Avoid more pointer grabbing for video driver ptr 2018-02-16 20:42:37 +01:00
twinaphex 35f1c9ba33 (menu display driver) Get rid of remaining pointer grabbing 2018-02-16 19:42:13 +01:00
twinaphex 407d7e2c4e (menu display) Get rid of more pointer grabbing 2018-02-16 19:25:19 +01:00
twinaphex a05d3bc4f7 Update 2018-02-16 19:15:55 +01:00
twinaphex a0ba515337 Update 2018-02-16 19:08:16 +01:00
twinaphex d19aebc0bf (menu_display_gl) Remove unused pointer variable 2018-02-16 18:26:11 +01:00
twinaphex b25e2ce4e8 reduce more calls to video_driver_get_ptr 2018-02-16 17:54:39 +01:00
twinaphex 964e9db588 Reduce calls to video_driver_get_ptr - set it once for
video_frame_info_t
2018-02-16 17:19:55 +01:00
twinaphex 1e2d8de9ca Move renderchain code to the relevant files 2018-02-16 11:24:10 +01:00
twinaphex f5efddb7ec Cleanup 2018-02-15 21:10:10 +01:00
Twinaphex d7ab78d923 Merge pull request #6306 from GameDragon2k/master
RetroAchievements reset addition buffer
2018-02-15 20:53:42 +01:00
GameDragon2k 44d3561468 Reset Add buffer when hit condition is triggered 2018-02-15 14:30:46 -05:00
twinaphex 2b02616512 Disable ENABLE_TOUCH_SCREEN_MOUSE for now until issues are resolved 2018-02-15 14:50:14 +01:00
twinaphex ff831a7d99 Silence Coverity warning 2018-02-15 13:07:46 +01:00
twinaphex ddf34bacfd Disable D3D10 for now by default until it gets menu display driver
support and shader support
2018-02-15 12:46:37 +01:00
twinaphex bda5e67b48 (PS3) Use fseek for PS3 - fseeko not available 2018-02-15 06:50:15 +01:00
Twinaphex 8bea9ceadb Merge pull request #6303 from fr500/master
fix a bug with the || clean-up, tried to clean up the whole thing a bit
2018-02-15 06:21:19 +01:00
radius 789897481b fix a bug with the || clean-up, tried to clean up the whole thing a bit 2018-02-14 22:32:19 -05:00
Twinaphex be87075618 Merge pull request #6302 from bparker06/fseek
use 64-bit file offsets/seeking on windows
2018-02-14 07:29:34 +01:00
Brad Parker 95bb7f5aa5 use 64-bit file offsets/seeking on windows 2018-02-14 06:16:12 +00:00
twinaphex b01ac41c5f (XMB) C89 fixes 2018-02-14 05:42:42 +01:00
Twinaphex 186528a7e0 Merge pull request #6301 from fr500/master
remove the empty || that is shown when FPS display is disabled
2018-02-14 05:11:15 +01:00
radius 5b99a74cd8 remove the empty || that is shown when FPS display is disabled 2018-02-13 22:43:34 -05:00
Twinaphex a6539570a2 Merge pull request #6300 from GameDragon2k/master
Small fix for certain RetroAchievement conditions.
2018-02-14 03:59:21 +01:00
GameDragon2k 468256a8f8 Reset hits after evaluation. 2018-02-13 21:56:04 -05:00
GameDragon2k 79219c1640 Fix issue regarding Add Hits condition type 2018-02-13 21:43:41 -05:00
twinaphex 71b423c572 Don't use mmap for libretrodb - using mmap seems
to have adverse performance impact
2018-02-13 07:34:19 +01:00
Twinaphex 8f64909886 Merge pull request #6296 from fr500/master
de-hardcode rom count
2018-02-13 04:13:24 +01:00
radius a16cbe7cde de-hardcode rom count 2018-02-12 22:10:44 -05:00
Twinaphex d56bd2180f Merge pull request #6294 from GregorR/netplay-intl-fix
Remove leftover positional intl strings.
2018-02-13 03:28:50 +01:00
Twinaphex 6cc7d124c0 Merge pull request #6295 from fr500/master
C89 build fixes
2018-02-13 03:24:19 +01:00
radius 755578fc43 C89 build fixes 2018-02-12 21:19:51 -05:00
Gregor Richards 6f69034f6a Fix for es and ja as well. 2018-02-12 13:41:20 -05:00
Gregor Richards c44e4de4f8 Remove leftover positional intl strings. 2018-02-12 13:01:02 -05:00
Andrés d3504abc5d try to fix shader preset loading on WiiU 2018-02-12 12:27:16 -05:00
Twinaphex c6a9967b58 Merge pull request #6282 from fr500/master
Menu Subsystem Implementation
2018-02-12 08:56:51 +01:00
radius 1f2054d42f subsystem part 3: cleanups 2018-02-12 02:44:54 -05:00
radius d254c3eca4 subsystem part 3: fix saves 2018-02-12 02:39:26 -05:00
radius 9a23ee8017 subsystem part 3: remove more globals 2018-02-12 02:39:25 -05:00
radius 1b1ec37f36 subsystem part 3: these can be static again 2018-02-12 02:39:25 -05:00
radius 2a9046c06f subsystem part 3: cleanups 2018-02-12 02:39:25 -05:00
radius 9730fa5c51 subsystem part 2: load content! hacky 2018-02-12 02:39:25 -05:00
radius d3484528d1 subsystem part 2: load content? 2018-02-12 02:39:25 -05:00
radius 752e729ec2 subsystem part 2: set paths 2018-02-12 02:39:24 -05:00
radius b212640732 subsystem part 2: add a wrapper to set the current subsystem 2018-02-12 02:39:24 -05:00
radius 692c8683b2 subsystem part 2: add missing define, fix typo 2018-02-12 02:39:24 -05:00
radius 1951adeb5b subsystem part 2: add LABELS 2018-02-12 02:39:24 -05:00
radius 788bb4de50 subsystem part 1: proper labels for each entry 2018-02-12 02:39:24 -05:00
radius 597e0ce1ec subsystem part 1: get the required data to load content 2018-02-12 02:39:23 -05:00
Andrés 521433d1c7 Merge pull request #6293 from aliaspider/master
(D3D) better handling of frame duping.
2018-02-11 21:36:21 -05:00
aliaspider 72e6909aaa (D3D) better handling of frame duping. 2018-02-12 03:25:37 +01:00
Andrés c58af0d74e Merge pull request #6292 from orbea/upnp
Makefile.common: Fix builtin-miniupnpc.
2018-02-11 20:20:37 -05:00
orbea e28db33f64 Makefile.common: Fix builtin-miniupnpc. 2018-02-11 17:07:04 -08:00
Twinaphex 34edaaf98b Merge pull request #6291 from aliaspider/master
(D3D12) silence warning.
2018-02-12 01:32:16 +01:00
aliaspider 8a93e8d503 (D3D12) silence warning. 2018-02-12 01:29:44 +01:00
Twinaphex e428cec428 Merge pull request #6290 from aliaspider/master
(D3D11/12) add overlays.
2018-02-12 01:25:19 +01:00
aliaspider 98682197c9 (D3D11/12) add overlays. 2018-02-12 01:19:43 +01:00
Twinaphex 327e2237d6 Merge pull request #6289 from aliaspider/master
(D3D11/12) prevent double-free when resizing framebuffers.
2018-02-11 23:03:04 +01:00
aliaspider 19aed2af36 (D3D11/12) prevent double-free when resizing framebuffers.
(D3D12)
- correctly support lut/filtering/wrap options for slang shaders.
- rework frame sync.
2018-02-11 22:56:37 +01:00
orbea 72a02b7647 qb: Add --sysconfdir
This also deprecates --global-config-dir.
2018-02-11 09:54:57 -08:00
twinaphex 56389466aa (input_overlay.c) Cleanups 2018-02-11 17:58:24 +01:00
twinaphex 6738d64546 Cleanups 2018-02-11 16:45:40 +01:00
twinaphex 2d8623fa10 Cleanup unused variable 2018-02-11 16:42:53 +01:00
twinaphex ce2fb1770b Some further cleanups 2018-02-11 16:20:05 +01:00
twinaphex d4bd06545f Small cleanups to menu_shader.c 2018-02-11 16:18:44 +01:00
twinaphex 02ae733b27 Try to fix console builds 2018-02-11 16:13:58 +01:00
Twinaphex 6ccb9aa00d Merge pull request #6283 from BlueKore/master
Updated the locales
2018-02-11 15:57:30 +01:00
Diogo Barros 8c95a5731a Merge branch 'master' into master 2018-02-11 12:59:44 +00:00
Diogo Barros 1a3b137d9d Update msg_hash_pt_pt.c 2018-02-11 12:16:26 +00:00
Diogo Barros 8c785fa689 Update msg_hash_pt_pt.h 2018-02-11 12:14:53 +00:00
Twinaphex 4d1090dc53 Merge pull request #6281 from bparker06/decorations
add menu setting to toggle window decorations
2018-02-11 05:56:15 +01:00
Brad Parker 43aa977a91 add menu setting to toggle window decorations 2018-02-10 23:46:09 -05:00
Twinaphex ef84300de0 Merge pull request #6276 from orbea/docdir
qb: Add --docdir
2018-02-11 02:39:34 +01:00
Twinaphex d8257f4817 Merge pull request #6279 from aliaspider/master
(D3D12) slang shaders support.
2018-02-11 02:00:46 +01:00
aliaspider 37bebb5b65 (D3D12) slang shaders support. 2018-02-11 00:00:20 +01:00
twinaphex febfc18f0b Silence warning 2018-02-10 23:28:35 +01:00
twinaphex 8b1f8b8ae2 (Utils) fix builds 2018-02-10 23:20:34 +01:00
twinaphex b31779c588 (D3D8/9) Don't do allocation for this struct 2018-02-10 22:27:38 +01:00
twinaphex b45b1b3e55 (D3D8) Refactor texture loading to no longer be thread-unsafe 2018-02-10 21:36:40 +01:00
twinaphex 49bea666ff (D3D9 Cg) Buildfix 2018-02-10 21:23:15 +01:00
twinaphex b141c37fe9 Get rid of set_mvp function in D3D9 renderchain driver - use
one common set_mvp function instead
2018-02-10 21:21:09 +01:00
twinaphex 843a7f200c (D3D9) Make video texture load functions thread-safe 2018-02-10 21:13:24 +01:00
Brad Parker a8af4ee8c6 use 64-bit ftell on mingw also 2018-02-10 13:19:24 -05:00
orbea 85e4f5d94d qb: Add --docdir
By default 'make install' will now install the following 2-3 files
to $(DESTDIR)$(SHARE_DIR)/doc/retroarch which by default is
/usr/local/share/doc/retroarch.

COPYING
README.md

and if media/assets exists it will install:

media/assets/COPYING to COPYING.assets

Users will be able to configure this install path with.

./configure --docdir=PATH

For example:

./configure --docdir=/usr/doc/RetroArch-1.7.0
2018-02-10 08:55:54 -08:00
Twinaphex da0e2e6a51 Merge pull request #6259 from orbea/configure
qb: Add --bindir and --mandir.
2018-02-10 16:23:02 +01:00
Twinaphex 1f3e1baeb6 Merge pull request #6273 from fr500/master
Fix #6272
2018-02-10 01:49:16 +01:00
radius 1bfea60c2d fix whitespace 2018-02-09 19:44:42 -05:00
radius 31b99e2b01 Fix #6272 2018-02-09 19:42:48 -05:00
Twinaphex 01d659a4a3 Merge pull request #6269 from bparker06/ftell
use 64-bit ftell() on Windows where available
2018-02-09 22:34:51 +01:00
Brad Parker 40e9416c6c use 64-bit ftell on Windows where available 2018-02-09 13:33:03 -05:00
Brad Parker b5d2782833 C89 buildfix 2018-02-09 13:31:00 -05:00
Brad Parker bfb71f0694 C89 buildfix 2018-02-09 13:27:18 -05:00
Twinaphex 875ab9378d Merge pull request #6267 from aliaspider/master
restore some changes made in previous commit.
2018-02-09 18:13:13 +01:00
aliaspider a8ee5f6c44 restore some changes made in 9dc597cf6c. 2018-02-09 16:59:48 +01:00
Twinaphex ecc6c60ed2 Merge pull request #6266 from aliaspider/master
(D3D12) add a compute shader for mipmap generation.
2018-02-09 16:39:44 +01:00
aliaspider e11209ac79 (D3D12) precompute alpha before scaling when generating mipmaps. 2018-02-09 16:33:08 +01:00
Andrés a5be56dd77 Merge pull request #6263 from fr500/master
Fix #6255
2018-02-09 10:02:54 -05:00
aliaspider 6fe379d978 (D3D12) add a compute shader for mipmap generation. 2018-02-09 14:57:07 +01:00
Brad Parker aaf35f53f8 fill_pathname_parent_dir_name: return failure if path has no slash 2018-02-08 23:19:12 -05:00
radius 42f88a8239 Revert "Fix 'Append Disk Image'"
Reverting this truly fixes disk image append

¯\_(ツ)_/¯

This reverts commit 366c73f429.
2018-02-08 22:30:51 -05:00
Andrés 42e93f3197 restore missing code pieces of my last PR (#6261) 2018-02-08 22:24:18 -05:00
Brad Parker 09ad30f9de fix stack-use-after-scope ASAN error 2018-02-08 22:09:27 -05:00
twinaphex 9dc597cf6c Undo all menu hash related changes - was causing more harm
than good - apologies to radius since we now have to recode
his shader changes PR
2018-02-09 01:51:37 +01:00
orbea 72ff4c4d44 qb: Add --bindir and --mandir.
This also deprecates --with-bin_dir and --with-man_dir.
2018-02-08 12:01:28 -08:00
Twinaphex 8e33b35b09 Merge pull request #6257 from aliaspider/master
(D3D11/12) fix dialogbox / gradient.
2018-02-08 20:54:05 +01:00
Brad Parker 1923ec11a9 platform_unix: remove HAVE_NETWORKING requirement 2018-02-08 11:44:26 -05:00
aliaspider 97813b9722 (D3D11/12) fix dialogbox / gradient. 2018-02-08 17:11:24 +01:00
Twinaphex 2a211f90cf Merge pull request #6253 from ramiro/small-translations-fmt-fix
Fixed mismatching *printf fmt spec in translations.
2018-02-08 14:46:58 +01:00
Ramiro Morales 30e24a0bee Fixed mismatching *printf fmt spec in translations. 2018-02-08 07:40:02 -03:00
Twinaphex f2c9e754a9 Update CHANGES.md 2018-02-08 05:53:32 +01:00
Twinaphex 103c8c3939 Merge pull request #6237 from orbea/datarootdir
qb: Add --datarootdir to configure.
2018-02-08 05:47:18 +01:00
Twinaphex 5f14aab6fc Merge pull request #6249 from fr500/master
Shader preset changes
2018-02-08 05:32:04 +01:00
radius 11df736662 coverity fixes 2018-02-07 21:26:03 -05:00
radius ce5b481fc8 android build fix 2018-02-07 21:26:03 -05:00
radius c02ff23ab6 fix these entries 2018-02-07 21:26:03 -05:00
radius 4eb7ca5db1 better fix for shader next / shader prev 2018-02-07 21:26:03 -05:00
radius 26b2ff7c3f build fixes 2018-02-07 21:26:02 -05:00
radius 6900045b35 remove a leftover string 2018-02-07 21:26:02 -05:00
radius 3b3bcd8697 update strings 2018-02-07 21:26:01 -05:00
radius 30353792a5 update gx2_gfx to use retroarch_get_shader_preset() 2018-02-07 21:26:01 -05:00
radius e9b7c7267e fix some potential crashes when a shader is not set in config 2018-02-07 21:26:01 -05:00
radius 37454f79a8 fix SHADER_NEXT/SHADER_PREV 2018-02-07 21:26:00 -05:00
radius bc90062366 small fixes 2018-02-07 21:26:00 -05:00
radius c64d5556c1 readd shader to config, let's use a runtime check instead of overwritting the shader preset all the time 2018-02-07 21:25:59 -05:00
radius d5dbfe78d5 make sure a startup shader loads if one exists 2018-02-07 21:25:59 -05:00
radius 940efa8d73 allow loading of parent-dir specific presets 2018-02-07 21:25:58 -05:00
radius 5783030b5c add per-parent-dir shader preset saving 2018-02-07 21:25:58 -05:00
radius 8031a541da remove menu shader parameters 2018-02-07 21:25:57 -05:00
twinaphex 6ace5e99f0 Fix RDB entries 2018-02-08 01:40:27 +01:00
twinaphex a6a53bd539 Cleanups 2018-02-08 01:10:08 +01:00
twinaphex 71d1dedbdb Fix playlist run entries 2018-02-08 01:02:32 +01:00
Twinaphex 3391a0b94e Merge pull request #6251 from aliaspider/master
(D3D12) menu display driver / font renderer
2018-02-08 00:29:12 +01:00
aliaspider 0d88799e6d (D3D12) add menu display driver. 2018-02-08 00:18:05 +01:00
aliaspider 92afd7387d (D3D12) add a font driver. 2018-02-08 00:18:04 +01:00
aliaspider e42015e026 (D3D12) allow for dynamic allocation of descriptors. 2018-02-08 00:18:04 +01:00
aliaspider 757a9c08de (D3D) refactors. 2018-02-08 00:18:04 +01:00
aliaspider 4ccb844ad6 (D3D12) add font and menu pipelines. 2018-02-08 00:18:04 +01:00
aliaspider b030588669 (D3D12) refactor d3d12_init_samplers, add support for wrap modes. 2018-02-08 00:18:04 +01:00
aliaspider 6d90aae5d6 (D3D12) refactor init_pipeline. 2018-02-08 00:18:04 +01:00
twinaphex c1a936ea81 Remove remaining hashes 2018-02-07 23:42:24 +01:00
twinaphex cd33e39040 Remove all hashes 2018-02-07 23:41:25 +01:00
twinaphex 596901b335 Get rid of more hashes 2018-02-07 23:38:32 +01:00
twinaphex 115bdd9fe5 Cleanups 2018-02-07 23:31:30 +01:00
twinaphex 1ca2a617f9 Update 2018-02-07 22:59:34 +01:00
twinaphex aa0f553a25 Remove label_hash some more 2018-02-07 22:52:45 +01:00
twinaphex e83a74528b Get rid of more label hash usage 2018-02-07 22:45:01 +01:00
twinaphex 8024dd367e Remove this label hash 2018-02-07 22:39:49 +01:00
twinaphex 428175cbbc Get rid of menu_label_hash usage 2018-02-07 22:28:44 +01:00
twinaphex 2cfe34ce3f Get rid of another label 2018-02-07 22:22:04 +01:00
twinaphex f93af36364 Pass menu_label to bind OK 2018-02-07 22:19:18 +01:00
twinaphex 2b4b38a5c5 Don't scan anymore when pressing Y 2018-02-07 19:40:22 +01:00
twinaphex 63b0084d3b Try to fix build for platforms where HAVE_LIBRETRODB is not defined 2018-02-07 19:36:59 +01:00
twinaphex 2a4bbe301a Add hack 2018-02-07 16:19:12 +01:00
twinaphex 72f97fe712 Let's try to remove the !ANDROID ifdef I suppose 2018-02-07 05:49:33 +01:00
twinaphex ba35d29541 (menu_cbs_ok.c) Cleanups 2018-02-07 05:47:35 +01:00
twinaphex bc67aa3aad Cleanups 2018-02-07 05:36:58 +01:00
twinaphex 755d1ee17b Remove more hashes 2018-02-07 05:22:28 +01:00
twinaphex a42b400ee9 Get rid of more hashes 2018-02-07 05:05:03 +01:00
twinaphex b90e0750c3 Update 2018-02-07 05:01:02 +01:00
twinaphex 17dc8e9fb2 Remove more hashes 2018-02-07 04:44:36 +01:00
twinaphex 1d05861969 Get rid of more hashes 2018-02-07 04:40:18 +01:00
Andrés abc18d3793 Delete readme.txt 2018-02-06 22:37:22 -05:00
Andrés 408cfd66d6 Update README.md 2018-02-06 22:37:07 -05:00
Twinaphex 7ca6538095 Merge pull request #6246 from fr500/fixes
Fixes
2018-02-07 04:22:33 +01:00
radius db65537c24 fixup emscripten bundle 2018-02-06 22:17:58 -05:00
Brad Parker 039da3bb83 C89 buildfix 2018-02-06 22:17:32 -05:00
radius ee9c786297 add missing bundle files 2018-02-06 22:05:21 -05:00
twinaphex 35300bf08b UINT32_MAX not defined on random platforms even though we are including
stdint - just resort to dropping in real value instead
2018-02-07 01:10:14 +01:00
twinaphex f30f597499 Get rid of more hashes 2018-02-06 22:04:17 +01:00
twinaphex 5202afb173 Get rid of more hashes 2018-02-06 21:55:49 +01:00
twinaphex 934d5782a7 Cleanups 2018-02-06 21:42:06 +01:00
twinaphex e6bf322737 Remove hashes 2018-02-06 21:38:25 +01:00
Diogo Barros 75673beac6 Update msg_hash_pt_pt.c 2018-02-06 19:14:54 +00:00
Diogo Barros a6ad1241ed Update msg_hash_pt_pt.h 2018-02-06 19:13:43 +00:00
twinaphex 23ae113bfb Get rid of another hash 2018-02-06 17:25:19 +01:00
twinaphex 83aa0842ca Remove another hash 2018-02-06 17:21:19 +01:00
twinaphex 9436951437 Cleanups 2018-02-06 17:16:21 +01:00
twinaphex 5d0c4a0237 Get rid of more hashes 2018-02-06 14:45:04 +01:00
twinaphex 0ac208c91d Remove more hashes 2018-02-06 14:27:51 +01:00
twinaphex 84e253becc Remove more hashes 2018-02-06 14:25:25 +01:00
twinaphex 962e1f710e Updates 2018-02-06 13:56:49 +01:00
twinaphex 409c541494 Cleanups 2018-02-06 13:52:23 +01:00
twinaphex a2f2a726bb Get rid of more hashes 2018-02-06 13:47:34 +01:00
twinaphex 11ff498f3d Get rid of hash 2018-02-06 13:14:46 +01:00
Twinaphex a08eef9fda Merge pull request #6243 from gblues/master
Fix build
2018-02-06 12:19:53 +01:00
Twinaphex fe4b8983e7 Merge pull request #6244 from aliaspider/master
prevent crash in render_msg and add byte-order-marker for msvc.
2018-02-06 12:19:23 +01:00
aliaspider 2b70e9d9ec update arabic translation. 2018-02-06 11:12:01 +01:00
aliaspider d8f1a08a47 add byte-order-marker to msg_hash_ar.* 2018-02-06 09:29:55 +01:00
aliaspider 9b1e1af86e check for empty string in font_driver_render_msg. 2018-02-06 09:28:18 +01:00
gblues f5d923caec Fix build
== DETAILS

`intl/msg_hash_es.h` was missing some parenthesis, causing the build to
fail.

== TESTING
tested local build successfully
2018-02-05 23:23:24 -08:00
Twinaphex 007d3323c5 Merge pull request #6242 from alfrix/spanish
Update Spanish translation
2018-02-06 04:40:20 +01:00
Alfredo Monclus 67af3758df Update Spanish translation 2018-02-05 23:40:46 -03:00
Brad Parker cc879a7bcc update JP translation 2018-02-05 20:34:48 -05:00
twinaphex 833285cfbf Fix Playlist settings 2018-02-06 02:22:49 +01:00
twinaphex d89f268d98 Fix regression with load archive 2018-02-06 01:07:52 +01:00
twinaphex 1523976d2c Updates 2018-02-06 00:26:00 +01:00
twinaphex 0e46a6b77e Update 2018-02-06 00:16:49 +01:00
twinaphex 410188ce90 Cleanups 2018-02-06 00:10:40 +01:00
twinaphex cef20c4135 remove hash 2018-02-06 00:05:47 +01:00
twinaphex 532462702e Remove hash 2018-02-06 00:03:27 +01:00
twinaphex 76267cf05f Remove hashes 2018-02-06 00:00:55 +01:00
twinaphex 942c61cb58 Remove hashes 2018-02-05 23:58:10 +01:00
twinaphex b726959297 Get rid of hashes 2018-02-05 23:49:46 +01:00
twinaphex 8e21e61923 Cleanups 2018-02-05 23:43:26 +01:00
twinaphex 226206e2f8 Remove more hashes 2018-02-05 23:40:38 +01:00
twinaphex 754c9d4db9 Cleanup more hashes 2018-02-05 23:37:27 +01:00
Diogo Barros ca75e5ee50 Update msg_hash_pt_pt.h
Finished the review of the header file (really final!!!)
2018-02-05 21:17:26 +00:00
twinaphex fb1c44c900 Get rid of more hashes 2018-02-05 21:41:34 +01:00
Twinaphex 24ea73b218 Merge pull request #6240 from aliaspider/master
add basic support for arabic.
2018-02-05 21:25:48 +01:00
twinaphex 18c708d29a Get rid of more hashes 2018-02-05 21:22:57 +01:00
twinaphex 6fa5822bb2 Cleanup hashes 2018-02-05 21:14:49 +01:00
twinaphex da070061b0 Cleanups 2018-02-05 21:09:59 +01:00
twinaphex 81859c805f Get rid of MENU_LABEL_FAVORITES 2018-02-05 20:59:59 +01:00
aliaspider 45580cb9a8 add basic support for arabic. 2018-02-05 20:54:55 +01:00
twinaphex 457d543cb1 Get rid of callback function hashes 2018-02-05 19:14:55 +01:00
Twinaphex 45cde3c49e Merge pull request #6236 from BlueKore/master
Finished the translation of the portuguese header file.
2018-02-05 18:44:58 +01:00
twinaphex c61230cdbe setting->name_hash can be safely removed now 2018-02-05 17:42:54 +01:00
twinaphex 85e7920b66 Start getting rid of msg_hash_calculate in menu code 2018-02-05 17:40:32 +01:00
twinaphex c9fd0d4a77 Get rid of more hashes 2018-02-05 17:18:54 +01:00
twinaphex e8941ec437 Get rid of more hashes in menu_generic.c 2018-02-05 17:14:03 +01:00
twinaphex 9e372c6c29 Prevent leak 2018-02-05 16:50:11 +01:00
twinaphex 1bbdad4621 Cleanups 2018-02-05 16:49:04 +01:00
twinaphex 969067b359 Revert "Cleanup code"
This reverts commit 8d835d9b51.
2018-02-05 16:42:02 +01:00
twinaphex 8d835d9b51 Cleanup code 2018-02-05 16:41:02 +01:00
twinaphex 0adba21410 Cleanup hashes 2018-02-05 16:18:32 +01:00
twinaphex b979e6209e Remove another unused hash 2018-02-05 16:00:26 +01:00
twinaphex fb94ccbfd2 Remove some hashes 2018-02-05 15:55:58 +01:00
twinaphex 7e67a1bf36 Get rid of more hashes 2018-02-05 15:50:16 +01:00
twinaphex d2aa12149f task_load_content - simplify code 2018-02-05 15:37:43 +01:00
twinaphex 562201bdd4 (deferred push) Refactor 2018-02-05 15:10:10 +01:00
twinaphex 6eee3d68dd Cleanups 2018-02-05 15:03:54 +01:00
twinaphex bcea63b177 Cleanups 2018-02-05 14:34:54 +01:00
twinaphex e2617d56cf (deferred_push) Cleanups 2018-02-05 14:27:00 +01:00
twinaphex eec5d7722b (deferred_push.c) Cleanups 2018-02-05 14:19:50 +01:00
twinaphex d950794659 (video_shader_parse.c) Be safer with memory allocations 2018-02-05 13:55:04 +01:00
twinaphex a43d2b627a (Menu) Cleanups 2018-02-05 13:33:34 +01:00
Brad Parker 12cf1bf5f8 update JP translation 2018-02-04 22:59:13 -05:00
Brad Parker 966a1d49e7 fix typos 2018-02-04 22:59:13 -05:00
twinaphex 27c6e3c5c4 (Zarch) Buildfix 2018-02-05 01:52:11 +01:00
twinaphex e01416a0da Split up code to platform_xdk.h 2018-02-05 01:33:54 +01:00
twinaphex b2963a9124 (menu_display_d3d.c) Turn this into HAVE_D3D8 conditional instead 2018-02-05 01:26:43 +01:00
Twinaphex 377f5567ce Merge pull request #6239 from aliaspider/master
(msvc) CXX_BUILD + griffin fixes.
2018-02-05 00:44:51 +01:00
twinaphex 69fedc6b40 task_screenshot.c - remove XBOX1 specific code 2018-02-05 00:29:05 +01:00
aliaspider 5549b136c2 (msvc) CXX_BUILD + griffin fixes. 2018-02-05 00:25:03 +01:00
twinaphex 6982dd838f (MSVC 2017) Fix VS 2017 solution 2018-02-05 00:04:41 +01:00
twinaphex fa07570f76 Simplify fill_pathname_representation_wrapper 2018-02-04 23:40:27 +01:00
twinaphex f364d2d3ec (C89) Don't build D3D9/10/11/12 2018-02-04 23:25:12 +01:00
twinaphex c830d0273d (core_info.c) cleanup memory allocations 2018-02-04 23:07:24 +01:00
twinaphex 32888c1f17 Cleanup some allocations 2018-02-04 23:02:52 +01:00
orbea b67bb87c8d qb: Add --datarootdir to configure.
This allows a user to use --datarootdir=PATH to configure the
share directory used for pixmaps, desktop files, man pages and assets.

By default this will be '/usr/local/share'. Assets and man page install
paths can still be configured with:
  --with-man_dir=PATH
and
  --with-assets_dir=PATH

Some operating systems like Haiku use unconventional install paths
and this should allow them to configure their build correctly.
2018-02-04 13:54:55 -08:00
twinaphex cbd5e87711 Indenting nits 2018-02-04 22:12:53 +01:00
twinaphex 534e5bbf34 Make code compatible when compiled as C++ 2018-02-04 21:50:05 +01:00
Diogo Barros d73685d3ef Update msg_hash_pt_pt.h 2018-02-04 20:31:32 +00:00
twinaphex 3ff3cada71 CXX_BUILD is fixed again for Windows 2018-02-04 21:13:41 +01:00
twinaphex 028fc18294 Fix more warnings 2018-02-04 21:12:42 +01:00
radius 29e1000e47 update CHANGES.md 2018-02-04 15:12:26 -05:00
Diogo Barros 7ed13e667f Update msg_hash_pt_pt.h 2018-02-04 20:10:18 +00:00
twinaphex 9dd33b9797 More CXX_BUILD linking error fixing 2018-02-04 20:57:30 +01:00
Diogo Barros 02a2a81dac Update msg_hash_pt_pt.h 2018-02-04 19:55:35 +00:00
Diogo Barros a31a73efba Update msg_hash_pt_pt.h 2018-02-04 19:50:51 +00:00
Diogo Barros 3b256becc6 Update msg_hash_pt_pt.h 2018-02-04 19:49:54 +00:00
twinaphex 47ea7c7cb9 Fix libflac linking errors with CXX_BUILD 2018-02-04 20:42:37 +01:00
twinaphex 2b4890220a (D3D) Silence CXX_BUILD warnings 2018-02-04 20:40:28 +01:00
Twinaphex 5483f5fc39 Merge pull request #6234 from aliaspider/master
various fixes for CXX_BUILD.
2018-02-04 20:08:43 +01:00
aliaspider 700fce3bd2 various fixes for CXX_BUILD. 2018-02-04 20:03:27 +01:00
twinaphex dc4f7ec920 Buildfix 2018-02-04 19:58:36 +01:00
twinaphex 3aaab43736 Should fix Emscripten build 2018-02-04 19:57:31 +01:00
twinaphex df1c131520 Prevent more Coverity warnings 2018-02-04 19:45:47 +01:00
twinaphex 3d0e768e71 Silence some Coverity errors 2018-02-04 19:30:34 +01:00
twinaphex 0b3545837e Cleanup some allocations 2018-02-04 19:05:43 +01:00
twinaphex a180b1094e Add stdint.h to spirv_msl.hpp 2018-02-04 18:55:22 +01:00
Twinaphex d2fa1f177d Merge pull request #6225 from bparker06/mitm_list
add menu option to select different MITM server locations
2018-02-04 18:27:10 +01:00
Twinaphex 39406c3357 Merge pull request #6233 from fr500/fixes
Fixes
2018-02-04 18:17:37 +01:00
radius 453681b59d fix saves for subsystem 2018-02-04 11:48:21 -05:00
twinaphex ac22a9ce20 (D3D10) Start making D3D10 ready for CXX_BUILD 2018-02-04 17:11:00 +01:00
radius c4bb588f3b fix small logging issue 2018-02-04 10:59:02 -05:00
Andrés aa5ac765b7 Merge pull request #6232 from leiradel/master
Fixed empty menu when there are no cheevos
2018-02-04 10:50:57 -05:00
leiradel 8b5e7c45d0 Fixed empty menu when there are no cheevos 2018-02-04 15:32:17 +00:00
twinaphex 2e8569a472 Bake in spirv_msl as well - just use UINT32_MAX - max() numeric_limits
was conflicting with Windows min/max macros
2018-02-04 15:56:50 +01:00
twinaphex 8771171f63 (glslang) Compatibility tweaks for MSVC 2010 compatibility 2018-02-04 15:49:53 +01:00
twinaphex 24306429bd (VS2013) Update solution; add Vulkan, D3D10, D3D11 support 2018-02-04 14:33:37 +01:00
twinaphex 2963288b29 SPIRV-Cross and glslang will compile with Griffin/MSVC targets now 2018-02-04 14:21:34 +01:00
Twinaphex 2c7d674d52 Merge pull request #6231 from orbea/source
dist-scripts: Don't use the 'source' builtin.
2018-02-04 11:52:37 +01:00
orbea ae6524a7f5 dist-scripts: Don't use the 'source' builtin.
The 'source' builtin is not POSIX and not all of the build environments have it.
For example the wiiu build log report:

./wiiu-cores.sh: 8: ./wiiu-cores.sh: source: not found
2018-02-03 21:56:46 -08:00
Twinaphex 31a30f1496 Merge pull request #6229 from aliaspider/master
(slang) slang_process: preset alias setting has higher priority.
2018-02-03 23:36:59 +01:00
aliaspider 0e159a0ec0 (slang) slang_process: preset alias setting has higher priority. 2018-02-03 23:35:04 +01:00
twinaphex 80dbef47cb (Android) Add HAVE_SLANG/HAVE_SPIRV_CROSS 2018-02-03 21:36:42 +01:00
twinaphex c60f706f1e (MSVC 2013) Update solution
Griffin - add better ifdefs
2018-02-03 20:50:31 +01:00
Twinaphex e5610d5ddb Merge pull request #6228 from aliaspider/master
(slang) slang_process: simplify data mappings.
2018-02-03 17:27:25 +01:00
aliaspider 76d07cd6a7 (slang) slang_process: simplify data mappings. 2018-02-03 17:22:47 +01:00
twinaphex 311de8138e (Griffin) shader_vulkan - Uniquely name set_unique_map to avoid collision 2018-02-03 17:20:23 +01:00
twinaphex df632814e6 Add appropriate HAVE_SPIRV_CROSS ifdefs 2018-02-03 17:13:36 +01:00
twinaphex 94022f0599 (MSVC 2013) Add HAVE_SLANG
(Griffin) Add SPIRV-Cross/slang rules to Griffin
2018-02-03 17:10:20 +01:00
twinaphex 1464995fdc (D3D11) ability to compile without HAVE_SLANG 2018-02-03 17:01:47 +01:00
twinaphex 43a6213b68 (MaterialUI) prevent crashes when font driver is NULL 2018-02-03 16:58:37 +01:00
twinaphex 4dfda8743c (XMB) Prevent crash when no font driver loaded 2018-02-03 16:55:24 +01:00
twinaphex 8e96700f0f (D3D8/D3D9) Update headers to work with C89 2018-02-03 16:50:26 +01:00
Twinaphex 27c47a89b9 Update CHANGES.md 2018-02-03 15:57:32 +01:00
Twinaphex f9ba402766 Update CHANGES.md 2018-02-03 15:56:26 +01:00
Twinaphex 840ebb13ca Update CHANGES.md 2018-02-03 15:55:05 +01:00
Twinaphex 48adfab643 Update CHANGES.md 2018-02-03 15:53:58 +01:00
twinaphex 4f7f237644 (Wiiu) uniquely name global variable 'pos' to prevent collissions with
variables in other cores (like freeintv)
2018-02-03 15:40:54 +01:00
twinaphex 5d2b7ce32f (D3D8 headers) Start making this C89-compatible 2018-02-03 15:29:56 +01:00
twinaphex 0336c2f975 (Headers) Make Cg/D3D9 X headers C89-compatible 2018-02-03 15:18:19 +01:00
twinaphex dac1f10708 C89_BUILD fixes 2018-02-03 15:16:04 +01:00
Twinaphex 50e902f2ea Merge pull request #6227 from aliaspider/master
(D3D11) multi-pass shaders: add support for history frames.
2018-02-03 14:48:48 +01:00
twinaphex 0b4ccf25e7 Revert "* d3d11.c - minor cleanups for C89"
This reverts commit fa458b2f5c.
2018-02-03 14:48:34 +01:00
twinaphex fa458b2f5c * d3d11.c - minor cleanups for C89
* C89 build fixes for D3D9X headers
2018-02-03 14:01:32 +01:00
aliaspider e225e96025 (D3D11) multi-pass shaders: add support for history frames. 2018-02-03 13:29:00 +01:00
twinaphex 178730891d - Silence more warnings
- Don't include d3dx headers when including cgD3D9
2018-02-03 13:11:31 +01:00
twinaphex d446742d4b Some C89_BUILD build fixes 2018-02-03 12:47:53 +01:00
Twinaphex ef75c80218 Merge pull request #6226 from BlueKore/master
Update msg_hash_pt_pt.h
2018-02-03 12:39:12 +01:00
Diogo Barros caaf4f922b Update msg_hash_pt_pt.h 2018-02-03 11:35:16 +00:00
twinaphex 9c305f7e95 Update 2018-02-03 12:22:08 +01:00
twinaphex 88cb40834c Style nits 2018-02-02 22:50:07 +01:00
twinaphex 535012f8bf Put compute_audio_buffer_statistics behind ifdef DEBUG 2018-02-02 21:57:58 +01:00
twinaphex 0ee124582c Silence another Coverity warning 2018-02-02 21:53:58 +01:00
twinaphex 58d6918533 Silence Coverity warning 2018-02-02 21:48:55 +01:00
Brad Parker 6fc0cc4645 send selected MITM server to the lobby 2018-02-02 15:48:45 -05:00
Brad Parker 9449184c69 Update CHANGES.md 2018-02-02 15:44:29 -05:00
twinaphex 75b48a866f (3DS) Fix compilation error 2018-02-02 21:44:24 +01:00
Brad Parker df27e704a5 add menu option to select different MITM server locations 2018-02-02 15:37:02 -05:00
Brad Parker efc35e43bb allow bool/string/path settings to override cbs_get_value 2018-02-02 15:28:43 -05:00
Twinaphex 6776caa3f5 Merge pull request #6224 from aliaspider/master
(D3D11) multi-pass shaders: add support for feed-back textures.
2018-02-02 20:46:57 +01:00
aliaspider e30c7edd8d (D3D11) multi-pass shaders: add support for feed-back textures. 2018-02-02 19:57:45 +01:00
twinaphex acdbf6f069 Cleanup retro_dirent.c 2018-02-02 19:09:25 +01:00
Brad Parker dbe270476a Prevent undefined behavior reported by UBSan
runtime error: member access within null pointer of type 'const struct dirent'
2018-02-02 11:43:24 -05:00
Twinaphex 81519d227b Merge pull request #6223 from aliaspider/master
(D3D11) multi-pass shaders: add support for wrap modes and lut mipmapping.
2018-02-02 17:23:34 +01:00
aliaspider 6fe3a31617 (D3D11) multi-pass shaders: add support for wrap modes and lut
mipmapping.
2018-02-02 17:18:41 +01:00
Twinaphex 3451994374 Merge pull request #6222 from aliaspider/master
(D3D11) better handling of FBO scale.
2018-02-02 14:41:23 +01:00
aliaspider 2a25e284af (D3D11) better handling of FBO scale. 2018-02-02 14:39:53 +01:00
Twinaphex ea6b69f078 Merge pull request #6221 from aliaspider/master
(deps) update SPIRV-Cross.
2018-02-02 14:24:59 +01:00
aliaspider 7f75e9f4cf build fix for HAVE_GLSLANG=1 HAVE_VULKAN=0. 2018-02-02 13:35:31 +01:00
aliaspider 14d2528da7 Merge commit 'f880cb2d48c302803937f45618392145ab923413' 2018-02-02 13:19:12 +01:00
aliaspider f880cb2d48 Squashed 'deps/SPIRV-Cross/' changes from d4b0625cbd..33c5cd9b19
33c5cd9b19 Merge pull request #427 from aliaspider/master
5fc48b61fa add `matrix` to the list of illegal names.

git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: 33c5cd9b19295f94702c8c3002283fb4b55f47ab
2018-02-02 13:19:10 +01:00
aliaspider 1fd1426388 (slang) no need for this anymore. 2018-02-02 12:32:31 +01:00
aliaspider 501fd33b68 Squashed 'deps/SPIRV-Cross/' content from commit d4b0625cbd
git-subtree-dir: deps/SPIRV-Cross
git-subtree-split: d4b0625cbd7377e720b4fa1d63e6a3c09da5db63
2018-02-02 11:53:59 +01:00
aliaspider 553f9b705e Merge commit '501fd33b6849de260c6a81fd9575c3aa8a01f7a5' as 'deps/SPIRV-Cross' 2018-02-02 11:53:59 +01:00
aliaspider cd5852d3b0 use git subtree for deps/SPIRV-Cross 2018-02-02 11:53:23 +01:00
Twinaphex 1d118c46a3 Merge pull request #6220 from aliaspider/master
(D3D11) font + slang fixes.
2018-02-02 02:38:33 +01:00
aliaspider 1e96393228 (D3D11) font renderer: fix line spacing. 2018-02-02 02:21:18 +01:00
aliaspider caad590d04 (slang) slang_process: fix compatibility with more shaders. 2018-02-02 01:50:18 +01:00
Twinaphex b297bd7e6c Merge pull request #6217 from aliaspider/master
(slang) slang_process: fix clash with HLSL keywords.
2018-02-01 23:09:03 +01:00
Andrés 3a5d1c5322 Merge pull request #6218 from leiradel/master
Fixed unable to use savestates when the game has no cheevos and an as…
2018-02-01 16:59:15 -05:00
leiradel dda52a1eed Fixed unable to use savestates when the game has no cheevos and an associated freeze 2018-02-01 21:54:11 +00:00
aliaspider 189ea0578d (slang) slang_process: change the type of FragCoord only when it is a
pixel shader input.
2018-02-01 22:22:56 +01:00
aliaspider b8e3933fe0 (slang) slang_process: 'linear' and 'point' are also reserved keywords
in HLSL.
2018-02-01 22:11:11 +01:00
Twinaphex d24478d0d8 Merge pull request #6216 from aliaspider/master
(slang) slang_process.cpp: enforce the binding of  the uniform and push constant blocks.
2018-02-01 21:50:11 +01:00
aliaspider 80880ec857 (slang) slang_process.cpp: enforce the binding of the uniform and push
constant blocks.
2018-02-01 21:45:36 +01:00
Twinaphex ba3513fb70 Merge pull request #6215 from aliaspider/master
(slang) slang_process.cpp: add support for more shaders.
2018-02-01 21:10:04 +01:00
aliaspider 461a936eb4 (D3D11) correct the size data of the last pass. 2018-02-01 20:56:40 +01:00
aliaspider 8db625dd59 (slang) slang_process.cpp: add support for more shaders. 2018-02-01 20:10:07 +01:00
Twinaphex 7eecb5b2b8 Merge pull request #6213 from aliaspider/master
(d3d11) slang reflection fix.
2018-02-01 18:03:09 +01:00
aliaspider d0b997a414 (slang) slang_process.cpp: stage_mask texture semantic doesn't apply to
the size uniforms.
2018-02-01 17:48:27 +01:00
Twinaphex f096e667d8 Merge pull request #6204 from aliaspider/master
(D3D11) Implement slang shader specification using Spirv-Cross.
2018-02-01 16:33:58 +01:00
aliaspider 0aa1164a6f (D3D11) fix fbo size when no scale factor is specified. 2018-02-01 16:29:40 +01:00
aliaspider 11a7171b51 (slang) set enum value SLANG_FORMAT_UNKNOWN to 0. 2018-02-01 15:13:58 +01:00
aliaspider 3865856aa2 (D3D11) add support for #pragma format in slang shaders. 2018-02-01 15:07:12 +01:00
aliaspider 91298255ad (D3D11) resize fbos when the viewport size changes. 2018-02-01 12:45:35 +01:00
aliaspider 4dd8fb4df9 (D3D11) make sure the stock shader is set before drawing the menu
texture.
2018-02-01 12:31:24 +01:00
aliaspider 5d46e8bca4 (D3D11) plug leak. 2018-02-01 11:29:28 +01:00
twinaphex 2f55c5724f Don't keep grabbing config_get_ptr inside loop 2018-02-01 11:28:45 +01:00
aliaspider e6c455d2c6 (D3D11) move format support checks to d3d11_init_texture(); 2018-02-01 11:21:51 +01:00
twinaphex 8d99fd7ce0 Cleanup string manipulation 2018-02-01 11:16:13 +01:00
twinaphex a7bad98b39 Cleanups 2018-02-01 10:55:49 +01:00
twinaphex f80d701ca7 menu_displaylist_parse_horizontal_list - cleanups 2018-01-31 23:41:53 +01:00
twinaphex 6d4b5a93ea Cleanup menu_displaylist_parse_database_entry 2018-01-31 23:36:00 +01:00
twinaphex e81ee5f0cb Simplifications 2018-01-31 23:13:47 +01:00
twinaphex 7cf4763bfb Add TODO/FIXME note 2018-01-31 23:05:42 +01:00
twinaphex b0013dbd68 Cleanups 2018-01-31 22:49:19 +01:00
twinaphex f9a412dc11 Create fill_pathname_join_concat_noext and use it 2018-01-31 22:43:55 +01:00
Twinaphex 19c537db52 Merge pull request #6207 from leiradel/master
Fixed crash when a content is loaded before the cheevos task for the previous content was finished
2018-01-31 22:23:33 +01:00
leiradel 9c695765dd Fixed crash when a content is loaded before the cheevos task for the previous content was finished 2018-01-31 21:10:08 +00:00
aliaspider f34dbdff8b (slang) cleanups. 2018-01-31 19:36:31 +01:00
twinaphex ed9e82d906 get rid of BOM for griffin.c 2018-01-31 19:07:57 +01:00
twinaphex de1efd7878 This hack is no longer needed with latest nvidia windows
drivers (390.77)
2018-01-31 18:10:53 +01:00
aliaspider 0ccfa3804b (D3D11) frame count is an unsigned int. 2018-01-31 17:21:18 +01:00
aliaspider d8924d6fbb (D3D11) clear out all unused texture/sampler bindings each pass to avoid
hazards with SetRenderTargets.
2018-01-31 17:05:48 +01:00
aliaspider f7b5baccb6 (D3D11) always save emitted hlsl code when debugging. 2018-01-31 16:12:55 +01:00
aliaspider f907f2ea7d (D3D11) save spirv-cross's hlsl output when shader compilation fails. 2018-01-31 15:55:59 +01:00
twinaphex 445c2dd6f4 (miniupnpc) Another warning fixed 2018-01-31 14:52:29 +01:00
twinaphex 337e185d18 Prevent more warnings with Griffin 2018-01-31 14:49:35 +01:00
twinaphex 5fc95142e5 (miniupnpc) Get rid of PRINT_SOCKET_ERROR 2018-01-31 14:47:00 +01:00
twinaphex ebb65cd781 (libFLAC) use retro_miscellaneous MIN/MAX 2018-01-31 14:40:47 +01:00
Twinaphex 761f172367 (iOS 11 Static) Update 2018-01-31 14:12:16 +01:00
Twinaphex ceb1d1f8a0 (iOS 11) Update solution 2018-01-31 13:23:39 +01:00
twinaphex 5dd837b310 Add iOS 11 solutions 2018-01-31 13:22:30 +01:00
Twinaphex 9783e59ed3 Update iOS 8 xcodeproj 2018-01-31 12:54:25 +01:00
aliaspider 5e09af9c77 (D3D11) attach identifiers to the generated slang semantic mappings to
simplify debugging.
2018-01-31 12:00:39 +01:00
twinaphex 5bfa63e4bd (Darwin) Fix warnings 2018-01-31 11:23:57 +01:00
twinaphex efcbb7627c (libco) Add aarch64 backend 2018-01-31 09:17:37 +01:00
twinaphex b1732efd03 (libco) Small style nit 2018-01-31 09:15:19 +01:00
Twinaphex 1f7649bfd8 Merge pull request #6205 from fr500/gx2
load shader presets at startup on wiiu
2018-01-31 08:58:02 +01:00
radius d953ec2b5f load shader presets at startup on wiiu 2018-01-30 22:49:49 -05:00
aliaspider 5bc78d3ad5 (D3D11) Implement slang shader specification using Spirv-Cross.
(incomplete)
2018-01-31 01:08:36 +01:00
Alcaro 9889f34180 Fix this issue https://forums.libretro.com/t/issue-linking-libco/14482 2018-01-31 00:39:27 +01:00
twinaphex 08e61230e9 Update video_poke_interface 2018-01-30 22:29:57 +01:00
twinaphex b0b39ff899 Cleanups 2018-01-30 22:16:16 +01:00
twinaphex 7dcd46a20f Get rid of HAVE_MENU ifdefs for video_driver_poke interface 2018-01-30 22:14:47 +01:00
twinaphex 7f38ee79f7 (MSVC2013) Add additional features 2018-01-30 22:01:09 +01:00
twinaphex b011f27c89 (MSVC 2013) Solution starts working now 2018-01-30 21:53:37 +01:00
twinaphex 911d01b1e4 CLeanups 2018-01-30 21:46:49 +01:00
Twinaphex 7b1b5b07c6 Merge pull request #6203 from aliaspider/master
various cleanups / fixes.
2018-01-30 21:39:46 +01:00
aliaspider b228775b0d (D3D10/11/12) allow building without HAVE_D3D9 2018-01-30 21:33:25 +01:00
aliaspider 4a3e4fc7de (mingw) include all of the sal.h defines in dxgi_common.h 2018-01-30 20:02:40 +01:00
aliaspider 13f18afcd9 (D3D10/11/12) cleanups / fixes. 2018-01-30 19:34:53 +01:00
leiradel 8147e6f31c Remove cheevos stuff from coro.h; add macros to increase readability 2018-01-30 17:47:20 +00:00
aliaspider f896ba29d0 silence some warnings. 2018-01-30 18:07:12 +01:00
aliaspider 037b57a4bd make: change the clean rule to remove both release and debug objects. 2018-01-30 17:57:54 +01:00
twinaphex 27a133c4fd Update 2018-01-30 17:20:34 +01:00
twinaphex 80bdcd89a6 (D3D10/11/12) Cleanup non-HAVE_DYNAMIC codepaths 2018-01-30 17:06:57 +01:00
twinaphex b5a1111e07 Don't define HAVE_D3D12 for MSVC 2013 2018-01-30 16:44:42 +01:00
twinaphex a5f232793b Silence warnings 2018-01-30 16:44:42 +01:00
Twinaphex 55c33d2022 Merge pull request #6202 from esoptron/patch-2
Add MIT License to internal Imageviewer core
2018-01-30 16:09:26 +01:00
twinaphex aeab2e5bd1 enable d3d10/11/12 again for mingw build 2018-01-30 16:04:45 +01:00
esoptron ebf644f172 Add MIT License to internal Imageviewer core 2018-01-30 10:00:56 -05:00
twinaphex 15fb080e74 Turn this off by default again until we properly solve this on the
buildbot
2018-01-30 14:54:07 +01:00
Twinaphex c7acc4b118 Merge pull request #6201 from QuarkTheAwesome/wiiu-clock
[WiiU] Add missing time/clock libc functions
2018-01-30 09:53:06 +01:00
Ash af37d3780a [WiiU] Fix indentation, for real this time
-_-
2018-01-30 17:43:45 +11:00
Ash 68f7aeadb2 [WiiU] Reformat line indents
Not sure what happened there. Do we need a squash merge now?
2018-01-30 17:38:16 +11:00
Ash 3a442af6be [WiiU] Add missing time/clock libc functions
Add some timing functions so that we can know the time (woo-hoo?)
I use errno here, which worries me a bit. I wouldn't put it past
devkitPPC to have it as a null pointer or something.

Can confirm this makes XMB's clock work, much to @cucholix's delight;
I'm sure ;D
2018-01-30 17:14:58 +11:00
leiradel d3d4c5740c Merge branch 'master' of https://github.com/libretro/RetroArch 2018-01-29 22:03:17 +00:00
twinaphex 7ab992e858 Add missing null pointer check 2018-01-29 23:01:58 +01:00
twinaphex 05e35bd4b1 Compiles with MSVC 2013 2018-01-29 21:31:03 +01:00
twinaphex fde8cbecf2 Try to see if this works 2018-01-29 17:48:57 +01:00
Twinaphex 34699a9504 Update config.params.sh 2018-01-29 17:42:23 +01:00
twinaphex 604024b799 Revert "Fixed crash when the content is closed and the cheevos are still being loaded"
This reverts commit 7b39da0848.
2018-01-29 17:30:47 +01:00
leiradel 7b39da0848 Fixed crash when the content is closed and the cheevos are still being loaded 2018-01-29 17:25:15 +01:00
twinaphex a6f8013c24 More MSVC2013 buildfixes 2018-01-29 17:19:36 +01:00
twinaphex 2906744a0d (D3D10) Add non_HAVE_DYNAMIC codepaths 2018-01-29 15:33:30 +01:00
twinaphex 03e800c1c8 Add HAVE_D3D11 to MSVC 2013 - we need non-HAVE_DYNAMIC codepaths
for D3D11
2018-01-29 14:05:44 +01:00
Twinaphex 81c8fc891a Update CHANGES.md 2018-01-29 13:22:05 +01:00
Twinaphex f597861a4c Update CHANGES.md 2018-01-29 13:21:03 +01:00
Twinaphex 923305df4c Merge pull request #6199 from yo6snap/master
[iOS10+]Handle hardware keyboards and iCade controllers
2018-01-29 12:05:05 +01:00
twinaphex 891d8741db (HLSL shader driver) Cleanups 2018-01-29 12:01:52 +01:00
twinaphex ee813ab76b Create new functions for d3d_common.c 2018-01-29 11:44:55 +01:00
Olivier PARRA 9acb536bf4 [iOS10+]Handle hardware keyboards and iCade controllers 2018-01-29 11:36:09 +01:00
bparker06 3d2c579bc7 Change Bliss-Box feature report size per ulao 2018-01-28 20:26:47 -05:00
Brad Parker a7f134b5a7 forgot to free memory 2018-01-28 15:56:35 -05:00
Brad Parker 722137296d add fill_pathname_parent_dir_name function 2018-01-28 15:55:27 -05:00
twinaphex 34a1eb34a9 Update MPV 2018-01-28 13:52:28 +01:00
Twinaphex 00a3a74d43 Merge pull request #6193 from MrHuu/3DS
Add 3DS core Handy
2018-01-28 13:20:54 +01:00
MrHuu 192fa74868 Add 3DS core Handy 2018-01-28 12:46:30 +01:00
Twinaphex 0c3a684e2c Merge pull request #6192 from gblues/master
Fix memory management bugs
2018-01-28 08:48:21 +01:00
gblues f2ea5dde11 Fix memory management bugs
== DETAILS

 * Fix double-free in hidpad shutdown code
 * Fix possible double-free in hidpad error handling code
 * Fix memory leak in adapter delete method
2018-01-27 22:54:59 -08:00
Andrés 4416baa920 Merge pull request #6191 from ToKe79/fix-configuration-1
fix: configuration.c parenthesis
2018-01-27 19:54:26 -05:00
ToKe79 152f658c7d fix: configuration.c parenthesis 2018-01-28 00:59:05 +01:00
Andrés f51560cb0e Merge pull request #6189 from cucholix/patch-2
Allow auto loading of slangp presets on GX2
2018-01-27 16:07:39 -05:00
cucholix 2e2ae5494b [Wii U] Enable shader preset saving
Enable shader preset saving on Wii U, initial implementation.
2018-01-27 17:58:57 -03:00
Twinaphex 801b9b5c6f Merge pull request #6187 from cucholix/patch-1
Shader parameters saving fix
2018-01-27 17:49:33 +01:00
Brad Parker ba41d1bf84 use real timer to delay applying shader changes on watch notification 2018-01-26 20:27:29 -05:00
cucholix 648032bd75 Update gx2_gfx.c 2018-01-26 16:10:04 -03:00
cucholix de6c185e88 Shader parameters saving fix
It's @aliaspider code :p
2018-01-26 15:49:34 -03:00
twinaphex fc0ea0c63f Cut down unnecessary _XBOX ifdefs 2018-01-26 15:15:03 +01:00
Twinaphex e96c85b41c Merge pull request #6186 from aliaspider/master
update SPIRV-Cross
2018-01-26 14:16:03 +01:00
aliaspider 5af5222249 update SPIRV-Cross
- https://github.com/KhronosGroup/SPIRV-Cross/commit/
66a407285e36a0f772e3209cb86ded6e3d900f6a
2018-01-26 13:48:17 +01:00
twinaphex 6b45447425 (d3d_common.c) Cleanups 2018-01-26 07:28:54 +01:00
twinaphex d33772195f (D3D9 Cg) CLeanups 2018-01-26 06:50:11 +01:00
twinaphex 8d6aafde95 (D3D9 Cg) Update 2018-01-26 06:36:24 +01:00
Brad Parker 9ef75473e0 fix coverity warnings 2018-01-26 00:14:59 -05:00
twinaphex 16cccb8796 (XDK360) Buildfixes 2018-01-26 05:29:44 +01:00
twinaphex 1f6b9e1c18 (Xbox 360) Buildfixes 2018-01-26 04:59:35 +01:00
twinaphex 89641d0009 Cleanups 2018-01-26 04:37:53 +01:00
twinaphex 18035bc8ec Cleanups 2018-01-26 04:35:47 +01:00
Twinaphex dbc51fb132 Merge pull request #6183 from meepingsnesroms/master
Start adding tesseract functions
2018-01-26 04:29:46 +01:00
twinaphex 4aca11693e video_shader_driver_reset_to_defaults - early return if current_shader
is NULL
2018-01-26 04:14:44 +01:00
twinaphex 9436cc0234 - Add HAVE_HLSL to qb/config.params.sh, set to no by default
- (D3D9 HLSL) Fix build/compilation
2018-01-26 04:09:35 +01:00
twinaphex 6f57aa84a8 Remove unused variable 2018-01-26 04:07:23 +01:00
twinaphex 5328ce7375 Cleanups to headers 2018-01-26 04:02:22 +01:00
twinaphex 61971c2f0e Remove header requirements for menu_display_d3d.c 2018-01-26 03:53:56 +01:00
Brad Parker e2691c425c fix display server memory leaks 2018-01-25 21:48:08 -05:00
Brad Parker 2dfe14ce4d increase shader watch delay frames to 10 2018-01-25 20:53:05 -05:00
Twinaphex 9182a2e519 Merge pull request #6184 from bparker06/shader_watch
Add quick menu option to watch shader files for changes and recompile automatically
2018-01-26 01:51:04 +01:00
Twinaphex 60c22afb94 Merge pull request #6181 from MrHuu/3DS
Add 3DS gw core
2018-01-26 01:16:24 +01:00
Brad Parker 9e347ec71f detect shader file changes on move and delete as well, and wait a few frames before re-applying changes 2018-01-25 19:09:55 -05:00
Brad Parker f087b150c9 Add quick menu option to watch shader files for changes and recompile automatically (Linux only for now) 2018-01-25 15:50:57 -05:00
meepingsnesroms b68256689a Start adding tesseract functions 2018-01-25 12:22:42 -08:00
MrHuu 53d1048905 Add 3DS gw core 2018-01-25 19:56:24 +01:00
Twinaphex f97ebfbf1f Merge pull request #6179 from aliaspider/master
(D3D11) add the remaining menu shaders.
2018-01-25 17:18:59 +01:00
aliaspider c0117f077b (D3D11) add the remaining menu shaders. 2018-01-25 17:07:23 +01:00
Twinaphex 019b9a08c2 Merge pull request #6178 from theheroGAC/patch-28
Little update italian translate
2018-01-25 17:00:10 +01:00
twinaphex c8c7ca0c30 (XDK1) Buildfix 2018-01-25 16:46:30 +01:00
twinaphex 3adb6cc5a8 CXX_BUILD fixes 2018-01-25 16:42:10 +01:00
theheroGAC 374a52c0e9 Little update italian translate 2018-01-25 16:35:24 +01:00
twinaphex 8e3b3762ad More compatibility fixes for CXX_BUILD 2018-01-25 16:33:28 +01:00
twinaphex b0f7728606 CXX_BUILD - buildfixes 2018-01-25 15:54:37 +01:00
aliaspider a2cddb27e5 (D3D11) refactors. 2018-01-25 15:48:53 +01:00
aliaspider 74013c220a fix read of uninitialized memory. 2018-01-25 15:44:35 +01:00
twinaphex 204f9aa484 (360) More buildfixes 2018-01-25 15:35:07 +01:00
twinaphex d4367ed993 Cleanups 2018-01-25 15:30:48 +01:00
Twinaphex 706a549f03 Update config.params.sh 2018-01-25 15:02:23 +01:00
twinaphex b9e65fc750 (D3D8) Buildfixes 2018-01-25 14:38:24 +01:00
twinaphex 8f4a1b748b (D3D8/D3D9) More dehardcoding 2018-01-25 14:34:20 +01:00
twinaphex 8422e44a2d Start moving d3dx fonts code to d3d_common.c 2018-01-25 14:13:21 +01:00
Twinaphex 994e07fa3d Update d3d.h 2018-01-25 13:24:39 +01:00
twinaphex e98b165761 Silence some warnings 2018-01-25 12:38:14 +01:00
twinaphex 282853873b (360) Some buildfixes 2018-01-25 12:35:46 +01:00
twinaphex 6ee8f681da Remove comment 2018-01-25 12:33:27 +01:00
twinaphex 495c702860 Buildfixes/cleanups 2018-01-25 12:30:08 +01:00
Twinaphex 4315b57791 Update d3d8.c 2018-01-25 12:27:02 +01:00
Twinaphex 8797fa95eb Update d3d9.c 2018-01-25 12:26:45 +01:00
Twinaphex 1163c1aef8 Update d3d.h 2018-01-25 12:26:12 +01:00
twinaphex 4c390944bb Remove some more HAVE_D3D8/HAVE_D3D9 ifdefs that depend on
compile-time instead of runtime
2018-01-25 12:22:06 +01:00
twinaphex c76ce05070 Update d3d_w32_font 2018-01-25 12:16:57 +01:00
twinaphex aa66ca8bf4 (D3D8) Buildfix 2018-01-25 11:51:24 +01:00
twinaphex 766f3b33c7 Dehardcode some more opaque types defined by macros 2018-01-25 11:50:07 +01:00
Twinaphex 1657b9b7c4 Merge pull request #6176 from aliaspider/master
(D3D11) build fix.
2018-01-25 10:49:12 +01:00
aliaspider 183d2fcabd (D3D11) build fix. 2018-01-25 10:40:32 +01:00
twinaphex a18e7767f3 Fix some unreferenced local variable warnings 2018-01-25 10:25:50 +01:00
twinaphex 2634a5ea2d (D3D8) Cleanups 2018-01-25 10:12:49 +01:00
twinaphex 6cdde6d9aa Get rid of warning 2018-01-25 10:06:16 +01:00
twinaphex 684374eec8 Remove D3DVIEWPORT dependency 2018-01-25 10:03:50 +01:00
Twinaphex ef17085216 Merge pull request #6175 from aliaspider/master
(D3D11) add ribbon shader.
2018-01-25 09:50:57 +01:00
aliaspider 427003fa3b (D3D11) add ribbon shader.
- it doesn't look quite right though.
2018-01-25 09:48:07 +01:00
Twinaphex 85fab182b8 Merge pull request #6174 from aliaspider/master
(D3D11) autogen mipmaps when needed / fix text colors.
2018-01-25 09:33:44 +01:00
aliaspider 17aa49004f (D3D10/11/12) prevent some crashes on driver re-init. 2018-01-25 06:24:39 +01:00
aliaspider da3a90a025 (D3D11) misc. 2018-01-25 05:47:19 +01:00
aliaspider 580c0184c2 (D3D11) font driver: fix text colors. 2018-01-25 05:46:48 +01:00
aliaspider 2a54cbca75 (D3D11) autogen mipmaps when needed. 2018-01-25 04:57:49 +01:00
twinaphex 0588c3c68e Don't rely on LPDIRECT3DTEXTURE 2018-01-25 04:28:50 +01:00
twinaphex 26f9489f89 Replace LPDIRECT3D 2018-01-25 04:12:37 +01:00
Twinaphex 0d898dd479 Merge pull request #6173 from meepingsnesroms/master
Add translation_driver.c, allow separate memory buffers for multiple …
2018-01-25 03:40:56 +01:00
twinaphex 74a602d4c9 Remove system_bgm 2018-01-25 03:38:32 +01:00
Twinaphex 507b609ec9 Merge pull request #6172 from yo6snap/master
[OSX]Modify HID buttons detection algorithm. [IOS9]Remove HID entry from menu.
2018-01-25 03:36:11 +01:00
meepingsnesroms 9f2e395c45 Add translation_driver.c, allow separate memory buffers for multiple instances 2018-01-24 18:35:14 -08:00
Olivier PARRA 8bff69eae8 1.[IOS9]Remove HID entry from menu as IOKIT is not available 2.[OSX]Add robustness and determinism to HID buttons detection code (add controller buttons in a sorted list) 2018-01-25 02:20:52 +01:00
Twinaphex f07571f8eb Merge pull request #6171 from aliaspider/master
(D3D11) sample the font atlas correctly.
2018-01-25 01:59:31 +01:00
aliaspider ccc9d36949 (D3D11) sample the font atlas correctly. 2018-01-25 01:58:17 +01:00
twinaphex 3c664f51b2 (D3D8) Buildfix 2018-01-25 01:53:45 +01:00
Twinaphex ccfd9d79dd Merge pull request #6170 from aliaspider/master
(D3D11) update the included shader.
2018-01-25 01:49:16 +01:00
aliaspider 0cd2310a6f (D3D11) forgot to update the included shader. 2018-01-25 01:46:30 +01:00
Twinaphex 3bfc13223c Merge pull request #6169 from aliaspider/master
(D3D11) font + menu display drivers.
2018-01-25 01:46:17 +01:00
twinaphex bc81a9dc88 Dehardcode LPDIRECT3DDEVICE usage 2018-01-25 01:45:03 +01:00
aliaspider 8354ffd452 (D3D12) add support for scaling/rotation im menu display driver. 2018-01-25 01:34:53 +01:00
aliaspider 45541a0d44 (D3D11) change the sprite vertex buffer to a ring buffer to avoid data
races with the gpu.
2018-01-25 01:03:54 +01:00
aliaspider 013ecf3719 (D3D11) menu display: fix the order of gradient colors. 2018-01-25 00:53:57 +01:00
aliaspider 68a6b7f402 (D3D11) change the sampler adressing mode to clamp. fixes the background
in xmb.
2018-01-25 00:45:06 +01:00
aliaspider 812eefa601 (D3D11) add menu display driver. 2018-01-25 00:20:06 +01:00
twinaphex 4dc6eb0ae4 (D3D8) Rotation no longer affects RGUI 2018-01-24 22:50:44 +01:00
twinaphex c227ce5ed2 Correct typo 2018-01-24 22:16:06 +01:00
twinaphex e79c19e52a Ifdef this for HAVE_D3D12 2018-01-24 21:38:32 +01:00
aliaspider 840bd459df (D3D11) add a font driver. 2018-01-24 20:51:19 +01:00
Twinaphex 472abb1e8f Merge pull request #6167 from aliaspider/master
(D3D10/11/12) add viewport settings.
2018-01-24 17:40:22 +01:00
aliaspider 30d5cd1a07 (D3D10/11/12) add viewport settings.
- move some common routines to video_driver.c
2018-01-24 15:00:32 +01:00
Twinaphex c30715db10 Revert "Try to prevent rotation on menu"
This reverts commit 042c2e82a0.
2018-01-24 10:28:55 +01:00
twinaphex 042c2e82a0 Try to prevent rotation on menu 2018-01-24 10:16:03 +01:00
twinaphex 9018012c5c (D3D8) Now handles rotation properly (except for RGUI frame
being rotated as well)
2018-01-24 10:08:52 +01:00
twinaphex ba0986ae20 Enable this for newer versions of MSVC 2018-01-24 10:02:07 +01:00
Twinaphex f86b80e2b0 Merge pull request #6166 from aliaspider/master
(D3D12) add remaining guids.
2018-01-24 07:59:53 +01:00
twinaphex 978dcf1997 Update CHANGES.md 2018-01-24 07:52:53 +01:00
aliaspider a6b24ce995 (d3d10/11/12) reformat some files. 2018-01-24 07:45:45 +01:00
twinaphex f10b60f14f Don't use NEON codepaths for iOS - ever since arm64 this has become
problematic
2018-01-24 07:40:09 +01:00
Twinaphex 57ad08e37d Add arm64 for iOS 10 target 2018-01-24 07:37:03 +01:00
Twinaphex 3a18a57de5 Update ios xcodeprojs 2018-01-24 07:35:30 +01:00
aliaspider cba3c5b68c (D3D12) add remaining guids. 2018-01-24 07:33:14 +01:00
Twinaphex b96f51ecc3 Each xcodeproj now becomes unique 2018-01-24 07:21:15 +01:00
twinaphex bf7cbb2aea Split up iOS xcodeprojs into separate ones 2018-01-24 07:17:39 +01:00
Twinaphex a3757cea70 Merge pull request #6165 from gblues/master
Fix wiimote detection
2018-01-24 06:38:19 +01:00
Twinaphex ef4cc160a5 Update 2018-01-24 05:42:28 +01:00
twinaphex 634da308aa Cleanups 2018-01-24 05:40:53 +01:00
gblues 9e2d53dc99 Fix wiimote detection
== DETAILS
When I split out wiiu_gamepad into multiple sub-drivers, I missed a spot.

The code expects the device type to be initialized to a magic number
(0xfd), and instead it was getting initalized to zero, which meant it
never triggered the detection process.

I re-added the initialization, and now it works.

== TESTING

Tested with nestopia core to confirm autodetect and game response works.
2018-01-23 19:57:51 -08:00
twinaphex 5730ebc118 Add Shader Placeholder 2018-01-24 04:21:28 +01:00
twinaphex dc6752cdf4 (MSVC 2013) Add more switches 2018-01-24 02:16:23 +01:00
twinaphex 63ad668ff0 Add HAVE_DYNAMIC ifdefs 2018-01-24 02:12:58 +01:00
twinaphex cf97ff3824 Update 2018-01-24 02:09:43 +01:00
twinaphex 6a46065162 (MSVC 2013) Add more non_HAVE_DYNAMIC codepaths 2018-01-24 01:52:44 +01:00
twinaphex 80b17668b6 Add initial VS2013 solution 2018-01-24 01:29:45 +01:00
twinaphex 4dd3a22679 (D3D12) Silence MSVC warnings 2018-01-24 00:38:11 +01:00
twinaphex 1028dc7959 (D3D12) D3D32 works with Mingw now - based on this -
https://github.com/wolfgangfengel/graphicsdemoskeleton/blob/master/DirectX%2012/01_Skeleton/Window.c#L35
2018-01-24 00:32:18 +01:00
twinaphex 0e363164b1 Attempt to get further with D3D12 for mingw - now compiles
but doesn't link yet
2018-01-24 00:14:26 +01:00
twinaphex d387cfbfbe Add include/dxsdk 2018-01-23 23:40:17 +01:00
twinaphex 6bbfcdd069 Cleanups 2018-01-23 22:19:55 +01:00
twinaphex 3a981e081c Cleanups 2018-01-23 21:46:46 +01:00
twinaphex ba8050ae2c Cleanup xmb_context_reset_background 2018-01-23 21:34:54 +01:00
twinaphex 5fba9fe25a (XMB) Cleanups 2018-01-23 21:18:44 +01:00
Twinaphex cb63f20c8c Merge pull request #6163 from aliaspider/master
(d3d10/11/12) resize swapchain correctly when the window's size changes.
2018-01-23 20:58:03 +01:00
aliaspider 956c6ca25a (d3d10/11/12) resize swapchain correctly when the window's size changes. 2018-01-23 20:27:03 +01:00
Twinaphex b8da3d0e9f Merge pull request #6162 from aliaspider/master
(msvc) support msvc's Predefined Macros in features_cpu.c
2018-01-23 19:38:35 +01:00
aliaspider c5de5d9433 (msvc) support msvc's Predefined Macros in features_cpu.c
- add missing defines to makefile.msvc.
2018-01-23 19:35:39 +01:00
twinaphex b04a52e2e9 (MSVC 2017) Add HAVE_D3D10 2018-01-23 19:29:32 +01:00
Twinaphex 0b68b46c57 Merge pull request #6161 from aliaspider/master
(D3D10/12) frame duping. re-enable vsync.
2018-01-23 19:18:46 +01:00
aliaspider 3a53010b13 (D3D10/12) frame duping. re-enable vsync. 2018-01-23 19:11:44 +01:00
Twinaphex d608904309 Remove unused variables 2018-01-23 18:47:49 +01:00
Twinaphex 2e3b6fbdf0 Merge pull request #6160 from aliaspider/master
(D3D10/11/12) updates.
2018-01-23 18:39:24 +01:00
aliaspider a5bf9d8dc6 (D3D10/11/12)
.add a d3d10 driver.
.add more utility functions to d3d*_common files.
.add an image transfer/convert function to dxgi_common.
.various refactors / style nits.
2018-01-23 18:04:55 +01:00
aliaspider 96e96b9dfd (msvc) use stdbool.h for VS 2013 and later. 2018-01-23 17:50:46 +01:00
twinaphex 56fad1a77b Get rid of strdup in populate_settings_bool 2018-01-23 08:51:39 +01:00
twinaphex ed38887910 (VS2017) Update solution 2018-01-23 08:38:40 +01:00
twinaphex c24e66e61c (QB) Add HAVE_DIRECT3D11/HAVE_DIRECT3D12 (disabled by default
for now)
2018-01-23 07:45:16 +01:00
Twinaphex 8bc1d9965d Fix unused variables/etc. 2018-01-23 07:29:04 +01:00
twinaphex c6fd61cc86 (D3D8) Buildfix 2018-01-23 07:21:53 +01:00
twinaphex 673a190d84 Merge d3d8_renderchain into d3d8.c 2018-01-23 07:18:46 +01:00
twinaphex ce19e7c98a Get rid of unused reinit function and get rid of other
unused stuff in D3D8
2018-01-23 07:00:25 +01:00
twinaphex 393ebfc467 (D3D8) No automatic generation of mipmaps possible, so remove this code 2018-01-23 06:53:07 +01:00
twinaphex bb1fdad0d9 (Switch) Replace malloc() with calloc() in switch_gfx.c 2018-01-23 06:48:10 +01:00
twinaphex 93523782e5 Uniquely name D3D9 2018-01-23 06:43:03 +01:00
twinaphex f1c5812ff8 (D3D8) Buildfixes 2018-01-23 06:31:33 +01:00
twinaphex 3a30c71cea (D3D8) Buildfix 2018-01-23 06:30:46 +01:00
twinaphex 9be084de00 Static / public functions and interfaces need to be named
uniquely for Griffin
2018-01-23 06:29:33 +01:00
twinaphex cc9ce0044b Fix more heap errors in debug mode - MSVC 2003 2018-01-23 06:16:07 +01:00
twinaphex c323041bc5 menu_display_reset_textures_list - put texpath on stack 2018-01-23 06:13:25 +01:00
twinaphex 54726aa668 Remove snprintf_p for now 2018-01-23 06:10:21 +01:00
twinaphex 3d5bb2af17 (XMB) Turn background_file_path into char pointer 2018-01-23 05:56:41 +01:00
twinaphex 6437e4b4a9 remove tons of unreferenced local variables 2018-01-23 05:49:03 +01:00
Twinaphex 9ba42837d8 Merge pull request #6158 from reswitched/master
[NSW] libtransistor updates
2018-01-23 05:41:08 +01:00
Twinaphex db2816556c Merge pull request #6157 from reswitched/buildfix-netplay
wrap some netplay code in #ifdef HAVE_NETPLAY blocks
2018-01-23 05:38:57 +01:00
twinaphex 86b64c34aa Make xmb->thumbnail_file_path a char pointer 2018-01-23 05:38:02 +01:00
misson20000 5f8c888e0f [NSW] remove checks for running under Mephisto, since not only do they prevent us from running under Yuzu, but we don't have libtransistor_context anymore 2018-01-22 20:36:32 -08:00
misson20000 2440b6198d buildfix for netplay identifiers that weren't in #ifdef HAVE_NETPLAY blocks 2018-01-22 20:36:09 -08:00
twinaphex 0c9b4a60a2 Start reducing amount of times xmb->thumbnail_file_path is
written to
2018-01-23 05:30:41 +01:00
Twinaphex 4a6a97be60 Merge pull request #5429 from GregorR/netplay-input-upgrades-1
Netplay input upgrades 1
2018-01-23 05:01:45 +01:00
twinaphex 924007eda2 Prevent calling task_image_process if image is NULL 2018-01-23 04:57:12 +01:00
twinaphex a6ff88a094 Catch another edge case - this function is a mess and a minefield -
we need additional helpers to file_path.c and we need to properly
clean this up
2018-01-23 04:49:36 +01:00
twinaphex 4a7bfa463f Create tmp_new2 - avoid scenario where fill_pathname_join
tries to join itself - create path first with tmp_new2,
then copy this back to xmb->thumbnail_file_path
2018-01-23 04:40:40 +01:00
Twinaphex 7902fdafd8 Merge pull request #6155 from fr500/master
attempt to fix #6154
2018-01-23 04:31:06 +01:00
twinaphex b957e5aff4 Cleanup 2018-01-23 04:30:47 +01:00
twinaphex f36dfda328 Fix Coverity resource leak warning 2018-01-23 04:29:45 +01:00
twinaphex 4b6c4e5a6a BUildfix for D3D enum 2018-01-23 04:25:37 +01:00
twinaphex d3c2d90a2c BUildfix 2018-01-23 03:53:35 +01:00
radius fb4bf99a31 attempt to fix #6154 2018-01-22 21:48:17 -05:00
twinaphex d5ec046c63 Use calloc 2018-01-23 03:43:38 +01:00
twinaphex 6a47669d21 Prevent some heap corruptions/exceptions 2018-01-23 03:41:25 +01:00
twinaphex 93561a042b Cleanups 2018-01-23 03:35:23 +01:00
twinaphex f680f00098 Indent nit 2018-01-23 03:31:28 +01:00
twinaphex 625ddc5e52 Prevent some null pointer dereferences 2018-01-23 03:30:55 +01:00
twinaphex 27f34bf420 Some stability fixes 2018-01-23 03:23:49 +01:00
twinaphex 7e56ecba4b Cleanups 2018-01-23 03:22:00 +01:00
twinaphex e2e411bfa5 BUildfixes 2018-01-23 03:20:14 +01:00
twinaphex 8179379d31 Update 2018-01-23 03:09:55 +01:00
twinaphex 6cb2159a50 Buildfix for D3D8 renderchain 2018-01-23 03:00:34 +01:00
twinaphex d28d14079a Create separate D3D8 and D3D9 drivers 2018-01-23 02:55:33 +01:00
twinaphex 1a20fff7f2 Revert "reimplement mvp for D3D8"
This reverts commit f0d47bcd13.
2018-01-22 23:03:02 +01:00
twinaphex f0d47bcd13 reimplement mvp for D3D8 2018-01-22 23:01:20 +01:00
twinaphex a80fb7c969 Add some safeguards here 2018-01-22 21:48:28 +01:00
twinaphex 6208981ad3 filestream_getline - be safer 2018-01-22 21:32:36 +01:00
twinaphex e8ff299fd4 Revert "(D3D8) Implement rotation matrix"
This reverts commit ef63b4342c.
2018-01-22 20:54:22 +01:00
twinaphex ef63b4342c (D3D8) Implement rotation matrix 2018-01-22 20:27:53 +01:00
twinaphex 3271b61b6a Some safeguards 2018-01-22 20:03:34 +01:00
twinaphex 63d9d80d17 Cleanup d3d9_cg_renderchain.c 2018-01-22 08:18:28 +01:00
twinaphex 6ee8ddb496 (D3D11) Some minor style nits 2018-01-22 07:35:36 +01:00
twinaphex 3fc2ddb8d2 (IOHIDManager) Add improvements - https://github.com/libretro/RetroArch/issues/4816#issuecomment-359145035 2018-01-22 06:48:56 +01:00
Twinaphex 99500b6f10 Merge pull request #6153 from aliaspider/master
(D3D11/12) refactors/fixes. add blending and selectable samplers for d3d12.
2018-01-22 00:07:12 +01:00
aliaspider 80df049f41 (D3D11/12) refactors/fixes. add blending and selectable samplers for
d3d12.
2018-01-21 23:46:50 +01:00
Twinaphex ed0e1cbba1 Update README.md 2018-01-21 20:48:11 +01:00
Twinaphex c3591d9af8 Merge pull request #6151 from aliaspider/master
(msvc) fix slang build.
2018-01-21 15:48:11 +01:00
aliaspider d0d8a98046 (msvc) fix glslang build.
glslang still can't build with griffin since the files expect to be
compiled seperately.
2018-01-21 11:52:56 +01:00
twinaphex e601190ecb (D3D11/12) Fix warnings 2018-01-21 07:57:25 +01:00
twinaphex f8d32bf10d (MSVC 2017) Add HAVE_D3D11/HAVE_D3D12 2018-01-21 07:51:11 +01:00
twinaphex 0ec2ae1e97 Add files to Griffin 2018-01-21 07:49:07 +01:00
twinaphex 6319dbcc8a d3d_common.c - cleanups 2018-01-21 06:41:54 +01:00
twinaphex 8d7e9b31a4 Cleanups 2018-01-21 06:34:33 +01:00
twinaphex b8460026fb Update CHANGES.md 2018-01-21 05:04:30 +01:00
Twinaphex ffff5df787 Merge pull request #6148 from aliaspider/master
(D3D11/D3D12) initial video driver implementation.
2018-01-21 04:59:18 +01:00
twinaphex 2178b6d10f Vulkan temporary workaround for swapchain recycling (nvidia) -
Both swapchain recreation methods are proper andwithin the Vulkan specs.
The differnece is retroarch follows method (apparently proposed in
vulkan samples) that "hopes" the driver will reuse some of the old
swapchain resources, while the other method destroys everything and
recreates from scratch. At the moment on Nvidia drivers the second
method is stable while the first method is unreliable in all cases
today.
2018-01-21 04:40:01 +01:00
aliaspider c8027ebe1d (tools) add the tool used to generate the d3d headers. 2018-01-21 04:28:06 +01:00
aliaspider 6b9dc2205b (MSVC) add Makefile.msvc 2018-01-21 04:12:01 +01:00
aliaspider 094196220d (D3D11/D3D12) initial video driver implementation.
- some headers from the windows 10 sdk need to be added to the include
path when targeting mingw :
   d3d11.h
   d3d11sdklayers.h
   d3d12.h
   d3d12sdklayers.h
   d3d12shader.h
   d3dcommon.h
   d3dcompiler.h
2018-01-21 04:10:45 +01:00
twinaphex 7ab2cbf877 Revert "(Xbox OG) Add HAVE_7ZIP"
This reverts commit fd799bccef.
2018-01-21 04:01:12 +01:00
twinaphex fd799bccef (Xbox OG) Add HAVE_7ZIP 2018-01-21 02:35:17 +01:00
twinaphex c5ffd06778 Revert "(xdk_joypad.c) Cleanups"
This reverts commit 49c399217d.
2018-01-21 01:48:28 +01:00
twinaphex 6c73cea470 Revert "Buildfix"
This reverts commit 832cf07247.
2018-01-21 01:48:21 +01:00
twinaphex 832cf07247 Buildfix 2018-01-21 01:44:18 +01:00
twinaphex 49c399217d (xdk_joypad.c) Cleanups 2018-01-21 01:43:19 +01:00
twinaphex f884e5b0c8 (Xbox OG) Build in RPNG support 2018-01-21 01:27:41 +01:00
twinaphex 500869dd3f Use threaded data runloop for Xbox OG 2018-01-21 01:22:18 +01:00
twinaphex 537870b6ec (XDK1) Add HAVE_OVERLAY 2018-01-21 01:19:06 +01:00
twinaphex 2fcd44b40c (Xbox 1) Remove HAVE_MATERIALUI 2018-01-21 00:06:55 +01:00
twinaphex 932904e07e (Xbox 360) Buildfixes 2018-01-20 23:42:10 +01:00
twinaphex 983617372a (d3d_common.c) With D3D9 Xbox 360, these functions don't
return anything
2018-01-20 23:40:53 +01:00
twinaphex b7bbf368fe (XBox XDK) Input should work again completely 2018-01-20 23:38:32 +01:00
Twinaphex 1dc918b8c7 Merge pull request #6142 from orbea/install
Makefile: Fix make install.
2018-01-20 21:54:59 +01:00
Twinaphex 84d4822901 Merge pull request #6143 from ToadKing/emscripten-bfi
Enable black frame insertion on Emscripten
2018-01-20 21:54:47 +01:00
Twinaphex f08031345e Merge pull request #6144 from aliaspider/master
various / build fixes.
2018-01-20 21:54:37 +01:00
aliaspider 7bdb48088b (msvc) add #pragma execution_character_set("utf-8") to msg_hash_ko.c. 2018-01-20 20:08:29 +01:00
aliaspider 5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +01:00
aliaspider 5918e15999 Makefile: use different build directories for debug and release.
add _DEBUG defines for debug builds.
2018-01-20 20:02:45 +01:00
Toad King 773dbcf1cc small gitignore change 2018-01-20 13:01:48 -06:00
Toad King 55334aeffd fix black frame insertion in emscripten 2018-01-20 13:01:48 -06:00
twinaphex 528e4d8cc4 xdk_joypad_axis - implement case 4/5 for Xbox 360 2018-01-20 19:57:14 +01:00
twinaphex 6311885824 (XDK1) Change D-pad to hat controls - make gamepad D-pad and analog
stick work properly
2018-01-20 19:48:29 +01:00
twinaphex 13da6bf4a2 With Xbox OG, some of the face buttons are analog buttons -
need to implement this in _button callback function
2018-01-20 19:34:01 +01:00
twinaphex b4bb6e2ef4 Start making xdk_joypad code more similar to PC code 2018-01-20 19:05:39 +01:00
twinaphex 64e0861aee remove iteration variables 2018-01-20 18:57:19 +01:00
twinaphex 3ba978caa9 Make axis function more like PC version 2018-01-20 18:55:28 +01:00
twinaphex e16d962c01 Start getting rid of analog_state 2018-01-20 18:54:21 +01:00
twinaphex f25306ba22 memset g_xinput_states to 0 2018-01-20 18:50:24 +01:00
twinaphex 03a745e5b4 Remove xdk_joypad_get_buttons 2018-01-20 18:47:39 +01:00
twinaphex 0550b22a35 (XDK) Buildfix 2018-01-20 18:46:13 +01:00
twinaphex f74e399bdf Start rewriting xdk_joypad.c 2018-01-20 18:44:35 +01:00
orbea cc26f4a88c qb: Don't overwrite defaults
Haiku really should use the configure flags provided, that is why they exists.

In this case.

./configure \
  --global-config-dir=$PREFIX/settings
  --with-assets_dir=$PREFIX/data
  --with-mand_dir=$PREFIX/documentation/man

Changing the defaults just makes the script more complicated for no good reason.
2018-01-20 09:27:02 -08:00
twinaphex 41575a63ac (XDK joypad) Cleanups 2018-01-20 17:59:59 +01:00
orbea 6ce57ffe18 Makefile: Fix make install.
Partially reverts https://github.com/libretro/RetroArch/commit/b9585df325234b9545903112f554b25e4fe39139
2018-01-20 08:26:55 -08:00
twinaphex e1ec0e578c (XUI) Use new d3d format function too 2018-01-20 16:47:59 +01:00
twinaphex 4a5de7ed6a Use D3D common format functions 2018-01-20 16:45:45 +01:00
twinaphex 2cb8b50cef D3DXCompileShader - D3D9 only 2018-01-20 16:40:26 +01:00
twinaphex fe72bc3ab6 (d3d_common.c) Get rid of Xbox 360-specific ifdefs 2018-01-20 16:38:10 +01:00
twinaphex cc1a828c87 d3d_get_color_format_backbuffer - cleanups 2018-01-20 16:35:59 +01:00
leiradel e54da03ddc Fixed crash when the content is closed and the cheevos are still being loaded 2018-01-20 14:35:25 +00:00
Twinaphex 4ba100f660 Update CHANGES.md 2018-01-20 09:32:55 +01:00
Twinaphex 29ce197d16 Update CHANGES.md 2018-01-20 09:31:01 +01:00
Twinaphex 5c7778519b Merge pull request #6140 from kwyxz/master
Update Haiku port to allow it to build again
2018-01-20 09:27:27 +01:00
kwyxz b9585df325 Update Haiku port to allow it to build again 2018-01-20 00:19:01 -08:00
Twinaphex 214c2fe273 Merge pull request #6138 from gblues/master
A handful of fixes & cleanups
2018-01-20 07:31:06 +01:00
twinaphex 5fc2f3db51 Add HAVE_D3DX ifdefs 2018-01-20 07:04:21 +01:00
twinaphex 9f7d0d59c5 (Xbox 1) Fix texture U/V 2018-01-20 07:00:03 +01:00
gblues 51c01df815 Turn off WIIU_HID on master 2018-01-19 21:58:22 -08:00
twinaphex 1d9ea0297e Move this lower in priority 2018-01-20 06:50:25 +01:00
twinaphex b640e1cbe9 (Xbox OG) Add HAVE_MATERIALUI / HAVE_XMB 2018-01-20 06:48:44 +01:00
twinaphex 47164a550d Dont'default to XMB for now for Xbox 2018-01-20 06:47:46 +01:00
twinaphex c106783e85 (XDK1) Now renders RGUI and game frame properly 2018-01-20 06:25:02 +01:00
gblues f4685447cc Merge github:libretro/RetroArch 2018-01-19 20:54:33 -08:00
twinaphex e6f637ea6b Set autoconfig binds for Xbox 2018-01-20 03:14:17 +01:00
Brad Parker 9172765252 update JP translation 2018-01-19 21:04:11 -05:00
twinaphex 4bd4692cf2 Get rid of another _XBOX ifdef 2018-01-20 02:09:51 +01:00
twinaphex 6f73bdf287 (Emscripten) Cleanups 2018-01-20 02:05:37 +01:00
twinaphex f97d6ec909 (VC EGL) Cleanups 2018-01-20 02:03:49 +01:00
twinaphex fb257eb21e (GL/Raspberry Pi) Should fix the regression with GL cores on
Raspberry Pi
2018-01-19 22:45:04 +01:00
twinaphex a3b593f27b (D3D) Take this out for Xbox 2018-01-19 22:41:58 +01:00
twinaphex 273d94e549 Remove this 2018-01-19 22:09:58 +01:00
twinaphex d01b9c4a09 Cleanups 2018-01-19 21:25:35 +01:00
twinaphex 82f721145c (XDK) Refactor xdk_joypad.c 2018-01-19 21:24:28 +01:00
twinaphex 58e87387d5 Try to prevent more null pointer dereferences; more general cleanups 2018-01-19 19:15:05 +01:00
twinaphex f03180c31a Cleanups - do some early returns in case we get a NULL pointer
dereference
2018-01-19 18:42:50 +01:00
twinaphex 92a18e411c (cheevos) Get rid of a lot of macros - make it more understandable 2018-01-19 18:25:54 +01:00
twinaphex 4f16ff8c2e Remove macros CORO_LEAVE/CORO_ENTER/CORO_SUB 2018-01-19 16:54:44 +01:00
twinaphex bd883ad4d5 (cheevos) Get rid of some of these macros 2018-01-19 16:45:53 +01:00
twinaphex b4b5ed1630 Rely on xbox input subsystem to attach/detach gamepads 2018-01-19 07:02:47 +01:00
twinaphex 0731a79a4f Pass this to XInputOpen 2018-01-19 06:56:44 +01:00
twinaphex f71bbeae9f (XDK) Try to autodetect all pads at startup 2018-01-19 06:49:52 +01:00
Twinaphex 29fa91dcd0 Merge pull request #6136 from ToadKing/emscripten-phone
Fix web template on phone browsers
2018-01-19 06:19:11 +01:00
Toad King a634994809 no longer compile with SDL support by default 2018-01-18 22:57:46 -06:00
Toad King bd9e70f70e fix top bar not appearing in phone browsers 2018-01-18 22:57:46 -06:00
twinaphex cdcca43233 remove _XBOX1 ifdefs 2018-01-19 05:42:54 +01:00
twinaphex cb475f7815 Take out _XBOX1 codepath 2018-01-19 05:22:25 +01:00
twinaphex d8e9e3383d Revert "(Xbox) Swizzled formats on Xbox need to be POW2"
This reverts commit f608b5ed52.
2018-01-19 05:06:46 +01:00
twinaphex 7484e01034 Revert "This one complains too"
This reverts commit 1a3a88a62e.
2018-01-19 05:06:24 +01:00
twinaphex 1a3a88a62e This one complains too 2018-01-19 05:04:11 +01:00
twinaphex f608b5ed52 (Xbox) Swizzled formats on Xbox need to be POW2 2018-01-19 05:00:50 +01:00
gblues 86ac651edf Fix disabled HID code, add defensive programming
== DETAILS

1. Noticed that the HID driver wasn't loading after setting WIIU_HID=1. Found
   that the HID driver init was ifdef'd out. Removed that.

2. Current theory around "System Memory Error 160-2203" is in-memory
   corruption. So, to try to identify it:

   - Created a routine that does a hex dump of the RPX over the logger. (I
     have a python3 script that can extract the hex dump back into a binary
     file). If a SME occurs with this routine enabled, we can see if the
     corruption is happening at read-time, or somewhere between when we send
     the RPX to the loader and try to execute it.

   - I noticed that we allocate slightly more memory than the RPX actually
     needs, and we don't zero the memory, which means there's a handful of
     bytes at the end that could be anything. I added a call to memset() to
     zero out the memory prior to loading the RPX off the SD card.

And, of course, after adding those, I haven't been able to reproduce the
System Memory Error, so maybe the uninitialized memory was the problem?

Here's hoping.
2018-01-18 19:57:19 -08:00
twinaphex 47f6ff7435 Silence warning 2018-01-19 04:56:10 +01:00
twinaphex dc81998c0b (Xbox OG) Buildfixes 2018-01-19 04:55:34 +01:00
twinaphex 5b5e3e4a05 Cleanups 2018-01-19 04:45:11 +01:00
twinaphex 88873776c8 Cleanups 2018-01-19 04:13:02 +01:00
twinaphex 9f45370120 Cleanups 2018-01-19 03:54:07 +01:00
twinaphex daa2a572b9 Cleanup 2018-01-19 03:52:32 +01:00
twinaphex a3f95f58ec Cleanup menu_display_d3d 2018-01-19 03:40:34 +01:00
twinaphex 1f8e0fdfe5 Revert "Update filestream_getline to prevent heap corruption"
This reverts commit 60a45db69e.
2018-01-19 02:49:24 +01:00
twinaphex 60a45db69e Update filestream_getline to prevent heap corruption 2018-01-19 02:44:18 +01:00
twinaphex 841593f082 (MSVC 2010) Define HAVE_D3DX 2018-01-19 02:37:24 +01:00
twinaphex 4ef66e6e8c This should make XMB/MaterialUI render correctly on D3D8 2018-01-19 02:24:10 +01:00
twinaphex 79b434719f Update 2018-01-18 23:23:22 +01:00
Twinaphex 318843a71d Update ctr_pthread.h 2018-01-18 21:12:07 +01:00
Twinaphex 194aa4ae7b Merge pull request #6134 from meepingsnesroms/master
Fix writing to local thread pointer instead of actual thread.(3DS threads)
2018-01-18 19:39:38 +01:00
meepingsnesroms da5ce6ef35 Fix writing to local thread pointer instead of actual thread. 2018-01-18 10:35:58 -08:00
Twinaphex 37c67e480d Merge pull request #6131 from alfrix/spanish
Update spanish translation
2018-01-18 14:54:34 +01:00
Alfredo Monclus 2b693afc7e Update spanish translation 2018-01-18 03:53:09 -03:00
twinaphex 2d9727f499 Simplify sanitize_to_string further 2018-01-18 06:32:50 +01:00
twinaphex 1679124361 Cleanup sanitize_to_string function 2018-01-18 06:29:14 +01:00
twinaphex e7414e8286 Cleanups 2018-01-18 06:15:39 +01:00
twinaphex 2dd9c5bb82 (3DS) Try to silence warning/error 2018-01-18 04:54:21 +01:00
Twinaphex 1c5a35d0d3 Merge pull request #6130 from meepingsnesroms/master
Add 3DS threads
2018-01-18 02:22:41 +01:00
meepingsnesroms 5e42401fdb Add 3DS threads 2018-01-17 14:00:57 -08:00
Twinaphex 3e5cc5b300 Merge pull request #6129 from deltabeard/hex_fix
Show GL hex error in hex
2018-01-17 20:04:44 +01:00
twinaphex cd9cda08a2 Update and fix API error 2018-01-17 19:30:20 +01:00
Mahyar Koshkouei 87a7c0f426 Show GL hex error in hex
Fixes an issue whereby a hexadecimal error value was being printed in
decimal.

Tested on a RPi that suffers from issue 6078.

Signed-off-by: Mahyar Koshkouei <[email protected]>
2018-01-17 17:08:03 +00:00
Twinaphex 45c50c604b Update CHANGES.md 2018-01-17 09:20:56 +01:00
twinaphex f30c0010f6 Remove xbox media path 2018-01-17 09:05:28 +01:00
twinaphex 281223eae8 Xbox ifdefs 2018-01-17 08:54:06 +01:00
twinaphex 136068098d Xbox fixes 2018-01-17 08:51:56 +01:00
twinaphex 29098d6b99 Not necessary for D3D8 we believe 2018-01-17 07:45:06 +01:00
twinaphex f1f3a6f0ae Remove some Xbox specific code 2018-01-17 07:37:05 +01:00
Twinaphex e1b1a1b07b Merge pull request #6128 from aliaspider/master
(D3D8) can now render content frame, rgui and overlays.
2018-01-17 07:15:31 +01:00
aliaspider ebd9430982 (D3D8) can now render content frame, rgui and overlays. 2018-01-17 07:10:45 +01:00
twinaphex e73b1564a4 Remove retro_inline 2018-01-17 06:47:49 +01:00
twinaphex 6d2df385f8 Turn _V functions into macros 2018-01-17 06:47:18 +01:00
twinaphex bd73d4b98a Cleanups 2018-01-17 06:44:16 +01:00
twinaphex 11f26ed549 Refactor verbosity code - try to avoid log calls if verbosity is not
set
2018-01-17 06:28:26 +01:00
Andrés 78adf0cca4 Merge pull request #6126 from fr500/master
fix display name for builtin autoconfs again
2018-01-16 22:20:17 -05:00
radius d1dba26565 fix display name for builtin autoconfs again 2018-01-16 22:18:28 -05:00
Twinaphex ac18a75311 Merge pull request #6125 from ToadKing/emscripten-wasm
Copy over new .wasm file instead of old .js.mem file
2018-01-17 02:40:10 +01:00
Toad King 10697dc543 copy over new .wasm file instead of old .js.mem file 2018-01-16 19:24:01 -06:00
twinaphex df1979be12 Define string_is_not_equal 2018-01-17 01:06:09 +01:00
twinaphex 897c1654ab Reduce usage of string_is_not_equal_fast 2018-01-17 01:03:48 +01:00
twinaphex f48458d5bd (D3D9) Fix warning 2018-01-17 00:53:47 +01:00
Twinaphex c5b71470c4 Update 2018-01-17 00:49:23 +01:00
Twinaphex 57df01bbaa (Apple) Buildfix 2018-01-17 00:48:25 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
Brad Parker daf0b55f80 fix heap buffer overflow
==16726== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x600400139d99 at pc 0x5cb4d8 bp 0x7ffc88a3a050 sp 0x7ffc88a3a048
READ of size 1 at 0x600400139d99 thread T0
    #0 0x5cb4d7 in xmb_update_savestate_thumbnail_path /home/bp/RetroArch/menu/drivers/xmb.c:1071
2018-01-16 10:32:45 -05:00
twinaphex 830b2e429d Buildfix 2018-01-16 09:43:17 +01:00
Twinaphex 030a65bf9b Merge pull request #6117 from orbea/install
Makefile: Use cp / chmod instead of install.
2018-01-16 08:28:34 +01:00
twinaphex c4d3ea6f8d Add want_mipmap function parameter to d3d_texture_new 2018-01-16 09:11:14 +01:00
twinaphex 4ead2df09e (D3D) Remove HAVE_FBO ifdef - should make shaders work again 2018-01-16 08:15:10 +01:00
Twinaphex 4069796926 Merge pull request #6120 from ToadKing/emscripten-mupen
more build modifications to emscripten (needed for mupen64 to work)
2018-01-16 06:12:19 +01:00
Toad King 99472beeb6 more build modifications to emscripten (needed for mupen64 to work) 2018-01-15 21:02:01 -06:00
twinaphex 713de18a04 Revert "Simplify d3d9_cg_renderchain"
This reverts commit 17d1e387de.
2018-01-16 03:29:10 +01:00
twinaphex 0c07dc6f24 Revert "Updates to d3d9_cg_renderchain"
This reverts commit f13148d10e.
2018-01-16 03:28:57 +01:00
twinaphex 1dee2438e6 Revert "(Cg D3D9) Cleanups"
This reverts commit 6c95f389b1.
2018-01-16 03:28:47 +01:00
twinaphex 6c95f389b1 (Cg D3D9) Cleanups 2018-01-16 03:22:13 +01:00
twinaphex f13148d10e Updates to d3d9_cg_renderchain 2018-01-16 03:18:12 +01:00
twinaphex 91e8f7d4db BUildfix 2018-01-16 03:12:38 +01:00
twinaphex 17d1e387de Simplify d3d9_cg_renderchain 2018-01-16 03:09:51 +01:00
twinaphex 7477dd65ff (D3D8) Try to implement set_final_viewport 2018-01-16 02:57:24 +01:00
Twinaphex 5d64adf1a6 Merge pull request #6119 from garbear/libretro-api
Add missing {, |, } and ~ to the libretro API
2018-01-16 01:37:02 +01:00
twinaphex bce0c40b73 (D3D8) Assume we need to set this 2018-01-16 02:32:26 +01:00
twinaphex 734e952457 (D3D8) Try this 2018-01-16 02:26:35 +01:00
twinaphex 3bdea333e1 enable this 2018-01-16 02:22:53 +01:00
twinaphex 8ddcf4d6d7 Let's try this 2018-01-16 02:21:43 +01:00
twinaphex 797f26421a Add MVP code 2018-01-16 01:16:38 +01:00
twinaphex 9d144e28fc Use D3DFVF_XYZ for PC, D3DFVF_XYZRHW for Xbox 2018-01-16 02:04:50 +01:00
twinaphex ae52cd2c68 Fix return type of render_pass 2018-01-16 01:41:16 +01:00
twinaphex 7a281a348e Fix d3d8_renderchain 2018-01-16 01:38:31 +01:00
twinaphex 591e8e22c7 Fix d3d8_renderchain_free 2018-01-16 01:37:07 +01:00
twinaphex 89ee07486a Remove d3d8_renderchain_clear 2018-01-16 01:34:39 +01:00
twinaphex 7ceb107c6a Rewrite d3d8_renderchain.c 2018-01-16 01:30:59 +01:00
twinaphex e32ceb8f30 Rewrite d3d_texture_blit 2018-01-16 00:08:10 +01:00
twinaphex 86385dcaf7 Start creating d3d_texture_t 2018-01-15 23:13:16 +01:00
Twinaphex 97e96bf272 Merge pull request #6118 from ToadKing/emscripten-template
Minor Emscripten template fixes
2018-01-15 21:44:10 +01:00
twinaphex fdffc1a178 One ifdef less 2018-01-15 22:04:15 +01:00
Toad King fea2dd3d17 remove log textbox from embed template 2018-01-15 14:10:51 -06:00
Toad King b997c8f80f fix padding on content area. fullscreen hack no longer needed on chrome
remove box shadow from navbar so it doesn't cover the render area
2018-01-15 14:04:28 -06:00
twinaphex 391fd3eadc Fix CXX_BUILD for D3D 2018-01-15 21:44:49 +01:00
twinaphex f26b18c7a4 D3D8 compilation fixes 2018-01-15 20:58:13 +01:00
orbea db66dcb4db Makefile: Use cp / chmod instead of install.
Using standard tools like cp and chmod is more portable than install which does not work the same
on all supported platforms.
2018-01-15 10:24:33 -08:00
Twinaphex 6efe1128c0 Merge pull request #6115 from orbea/pulse
qb: Enable pulse detection for SunOS again.
2018-01-15 19:02:31 +01:00
twinaphex 2a4f19d0c7 Update pulse.c 2018-01-15 19:32:51 +01:00
orbea c8d25a9152 qb: Enable pulse detection for SunOS again. 2018-01-15 09:54:39 -08:00
Twinaphex d8a5958e21 Merge pull request #6114 from RobLoach/patch-27
emscripten: Remove output textarea
2018-01-15 17:02:50 +01:00
Rob Loach cb3ab8b12e emscripten: Use argument list for Module.print 2018-01-15 10:06:06 -05:00
Rob Loach 2f6297838e emscripten: Remove output textarea
This removes the output textarea as we're using the console now.
2018-01-15 10:03:50 -05:00
Twinaphex 09c49aad11 Merge pull request #6113 from ToadKing/more-emscripten-fixes
Emscripten fixes Part 2
2018-01-15 12:27:57 +01:00
Toad King bc511b8c8a enable shader pipeline
enables menu shader effects
2018-01-15 04:53:44 -06:00
Toad King 066a0a6b32 put emscripten build artifacts into its own folder
clean up all artifacts on make clean
2018-01-15 04:53:27 -06:00
Toad King ccb45a068d fix compiler warning 2018-01-15 04:52:35 -06:00
Toad King 28b2bf537f fix warning 2018-01-15 04:17:01 -06:00
Toad King 78a3d0f828 Merge branch 'master' into more-emscripten-fixes 2018-01-15 04:09:26 -06:00
Toad King 3917b02f9f build optimized emscripten builds as WASM
HUGE speed-ups for firefox and moderate speedups for chrome
2018-01-15 04:00:09 -06:00
Toad King 0256156a6b fix rwebaudio time drift
fixes audio getting stuck in an always fast state
2018-01-15 03:08:30 -06:00
Toad King 19facdb066 reset drivers shortly after toggling fullscreen mode
fixes black screen after going fullscreen in game
2018-01-15 02:12:53 -06:00
Toad King d23faff8d6 set the main loop first before calling rarch_main 2018-01-15 00:43:20 -06:00
Toad King 2738c79aa0 switch to RGUI as default menu for emscripten 2018-01-15 00:07:12 -06:00
Toad King 1c1b35708a fix default joypad driver on emscripten 2018-01-15 00:06:57 -06:00
Toad King db152fede8 remove container with uneeded padding. fixes canvas being off-center in smaller windows 2018-01-14 23:45:54 -06:00
Toad King b75f4b4f67 implement setting vsync and swapinterval
vsync is not "true" vsync (that's always on in browsers) but changes the main loop timer from immediate to window.requestAnimationFrame
2018-01-14 23:29:20 -06:00
Twinaphex 92ef4002d1 Merge pull request #6112 from RobLoach/emscripten-top-nav
emscripten: Allow hiding the top menu
2018-01-15 06:28:56 +01:00
twinaphex 59b5ecf7db (XDK) Buildfixes 2018-01-15 06:36:02 +01:00
twinaphex c398db76d4 (xdk360_fonts.cpp) Cleanups 2018-01-15 06:32:40 +01:00
twinaphex 27caf46616 Add d3d_get_render_state 2018-01-15 06:14:20 +01:00
twinaphex 510dfca756 Start adding C++ code path for SetVertexShaderConstantF and
refactor xdk360_fonts.cpp calls
2018-01-15 06:01:59 +01:00
Toad King 2d3fc1a384 update gitignore 2018-01-14 22:59:06 -06:00
Rob Loach 443262a9cd emscripten: Allow hiding the top menu 2018-01-14 23:57:53 -05:00
Toad King 6f77859eed fixes to rwebaudio
it should no longer mark buffers for clear if they're still being filled
report correct total buffer size to help resampler
2018-01-14 22:56:53 -06:00
Twinaphex d2a0046f23 Merge pull request #6110 from fr500/master
cut down duplication
2018-01-15 04:51:56 +01:00
radius d7168584a2 cut down duplication 2018-01-14 22:43:49 -05:00
Twinaphex de1079497c Merge pull request #6109 from fr500/master
remove dropbox
2018-01-15 04:32:35 +01:00
radius 346d9480f7 remove dropbox 2018-01-14 22:31:30 -05:00
Toad King 2df70cce17 make retroarch logs log to web console instead of textbox 2018-01-14 21:18:30 -06:00
Toad King 4498e9ffba fix white bar in chrome when fullscreen 2018-01-14 21:10:15 -06:00
Toad King a682ccd8e8 fix menu button 2018-01-14 21:02:59 -06:00
Twinaphex e948412bb4 Merge pull request #6108 from aliaspider/master
(direct3D) fix scaling in the menu display driver.
2018-01-15 03:48:40 +01:00
Toad King 7b3554fd3c fix crash in cores than send audio early 2018-01-14 20:46:08 -06:00
aliaspider 25a7c04a27 (direct3D) fix scaling in the menu display driver. 2018-01-15 03:45:37 +01:00
twinaphex 28d9ba6a05 Add libretro-mpv 2018-01-15 01:38:05 +01:00
Twinaphex 33103263a7 Merge pull request #6093 from RobLoach/file_path
libretro-common: Clean up dependencies of file_path
2018-01-15 01:31:52 +01:00
twinaphex 93b523e6ea C89 buildfix 2018-01-15 01:01:41 +01:00
Twinaphex fd3ef0ec9c Merge pull request #6107 from ToadKing/emscripten-fixes
Fix Emscripten build
2018-01-14 23:05:36 +01:00
Toad King 60f203d344 fix emscripten build 2018-01-14 16:03:44 -06:00
Garrett Brown 39742e24db Add missing {, |, } and ~ to the libretro API
Missing keys are found in TyrQuake's source:

https://github.com/libretro/tyrquake/blob/be5aede91/common/keys.h#L111-L114
2018-01-14 13:58:11 -08:00
Twinaphex 9b0b16e2c0 Merge pull request #6106 from ToadKing/emscripten-fixes
Emscripten rewrites
2018-01-14 22:40:00 +01:00
Toad King c8f03b4640 fix fullscreen sometimes losing state 2018-01-14 15:19:37 -06:00
Toad King fca639ad84 remove linking SDL code 2018-01-14 14:42:57 -06:00
Twinaphex 0b27f539c2 Merge pull request #6103 from fr500/master
ifdef cheevos variables properly
2018-01-14 21:37:43 +01:00
Twinaphex 823e2c9a32 Merge pull request #6105 from MrHuu/3DS
Add 3DS stella / prosystem core
2018-01-14 21:37:31 +01:00
Toad King 460ceaef97 queue keyboard events and only process them when polling
fixes hitting enter from search box also selecting underlying menu item
2018-01-14 14:37:25 -06:00
Twinaphex 97dec217b3 Merge pull request #6104 from orbea/shellcheck
qb: Silence shellcheck warning.
2018-01-14 18:36:29 +01:00
orbea 06648ca21b qb: Silence shellcheck warning.
Line 25:
SORT=sort
^-- SC2209: Use var=$(command) to assign output (or quote to assign string).
2018-01-14 09:12:41 -08:00
radius 06b840c6ca ifdef cheevos variables properly 2018-01-14 11:49:19 -05:00
MrHuu 859da19d80 Add 3DS stella / prosystem core 2018-01-14 16:34:49 +01:00
Toad King 4fd750b48a add builtin autoconf script for emscripten gamepads with "standard" mapping 2018-01-14 04:24:37 -06:00
Toad King b3900217da clamp axis values to -1.0 - 1.0, at least firefox can report values outside that range 2018-01-14 03:43:23 -06:00
Toad King 2d27a8c3e2 fix exiting not terminating emscripten runtime 2018-01-14 02:53:34 -06:00
Toad King 1f8a85615c don't always clear poll state 2018-01-14 02:34:38 -06:00
Toad King 5ef595be1a fix fullscreen 2018-01-14 02:33:22 -06:00
Toad King de3581de73 fix analog sticks 2018-01-14 01:35:28 -06:00
Toad King 15c3f56b37 fix phantom button presses 2018-01-14 01:00:46 -06:00
Toad King 21d928ba0e add joypad driver for emscripten 2018-01-14 00:15:30 -06:00
Twinaphex a7e9ca4def Update CHANGES.md 2018-01-14 05:17:35 +01:00
Toad King 38ec1acf8e add mouse support to emscripten 2018-01-13 20:51:30 -06:00
Toad King 77b158e6a2 fix compiler warning 2018-01-13 20:47:30 -06:00
Toad King 0ce1fa7751 fix search box in menu 2018-01-13 20:47:15 -06:00
Twinaphex 332ccbf300 Merge pull request #6097 from aliaspider/master
(Direct3D) Menu display driver implementation.
2018-01-14 02:54:40 +01:00
aliaspider 7b09d5399c (Direct3D) Menu display driver implementation. 2018-01-14 02:21:48 +01:00
Toad King 1e212b4248 use emscripten HTML5 API for keyboard events instead of old JS library 2018-01-13 17:56:00 -06:00
twinaphex 8e6f931f85 Add some safeguards 2018-01-13 23:50:14 +01:00
gblues 1515bd8c1b Minor cleanups
== DETAILS
- Add *.swp to gitignore so editor swap files don't get committed
- Remove unneeded commented-out defines from WiiU build
- Start on fix for DSI when switching cores on WiiU

== TESTING
Sigh. I'm back at "System Memory error", which makes me think the problem
might be the SD card. (On the plus side, I manually verified the hash so
at least the copy process is working).

So, that's to say that I can't actually test to see if the DSI error is
fixed.
2018-01-13 12:16:37 -08:00
Andrés 4eb33dfc4f Update CHANGES.md 2018-01-13 14:22:42 -05:00
Twinaphex d7f4538c01 Update CHANGES.md 2018-01-13 15:32:15 +01:00
Twinaphex b2ec210fd6 Merge pull request #6094 from aliaspider/master
(win32)  disable WS_EX_LAYERED when opacity == 100.
2018-01-13 14:53:43 +01:00
aliaspider 9cb896a3d9 (win32) WS_EX_LAYERED drastically decreases performance, so only set it
when needed (when opacity < 100).
2018-01-13 07:53:13 +01:00
Toad King 161d758b33 don't apply class that has padding to canvas 2018-01-13 00:46:31 -06:00
Toad King a77f9c37c6 start on bringing the emscripten video code up to speed with latest emscripten
fix rwebinput
2018-01-13 00:05:07 -06:00
Rob Loach 26b9cb3c78 libretro-common: Clean up dependencies of file_path
This moves a few functions that were defined in file_path_special to libretro-common to clean up the dependency tree.
2018-01-13 00:27:49 -05:00
bparker06 728f77b2bc Update CHANGES.md 2018-01-12 16:16:27 -05:00
Twinaphex 2967e35930 Update CHANGES.md 2018-01-12 17:11:54 +01:00
Twinaphex 650fe99198 Merge pull request #6086 from kwyxz/master
Solaris 11 RetroArch build
2018-01-12 17:04:36 +01:00
Twinaphex 2064a98dfd Merge pull request #6090 from fr500/master
fix my last PR for builtin autoconfs
2018-01-12 16:32:43 +01:00
radius 2e210b6bb4 fix my last PR for builtin autoconfs 2018-01-12 10:29:35 -05:00
twinaphex 39cc418e2e Cut down on code duplication 2018-01-12 05:27:09 +01:00
twinaphex fb38c0da21 Cut down on code duplication 2018-01-12 04:51:15 +01:00
twinaphex ef6b87ae2c (Menu) Cut down on code duplication 2018-01-12 04:42:44 +01:00
twinaphex 3407cd665d (Menu) Cut down on code duplication 2018-01-12 04:18:53 +01:00
twinaphex af12858953 Try to have a more robust fallback path for
menu_displaylist_parse_generic
2018-01-12 04:02:14 +01:00
twinaphex a5e35e7193 ake 2018-01-12 03:56:29 +01:00
Twinaphex 3bb5072e1b Update CHANGES.md 2018-01-12 03:21:52 +01:00
twinaphex db034b8a12 Change Makefile.emscripten 2018-01-12 03:16:15 +01:00
Twinaphex e099b8150c Merge pull request #6083 from aliaspider/master
(WIIU) add remaining menu shaders.
2018-01-12 03:00:22 +01:00
aliaspider 24cb240079 (WIIU) add remaining menu shaders.
- move some files around.
2018-01-12 02:54:45 +01:00
twinaphex 7cbe4ba9a8 Turn some variables static 2018-01-12 01:37:23 +01:00
Twinaphex 1af59d71c7 Merge pull request #6082 from fr500/master
add display name and config name to autoconf
2018-01-12 01:33:39 +01:00
kwyxz 71cdb5e03c With Solaris, use ginstall instead of install 2018-01-11 15:15:58 -08:00
kwyxz f566ecebf4 Disabling Pulse for now 2018-01-11 14:51:18 -08:00
kwyxz e65ad7c6d8 Solaris 11 does not like this POSIX define 2018-01-11 14:50:07 -08:00
kwyxz a11decf61d Added SunOS to the list of targets + fixed a sort specificity 2018-01-11 14:48:43 -08:00
radius 3b334b60d6 add display name and config name to autoconf 2018-01-11 17:06:14 -05:00
twinaphex 8dd6328fb7 Get rid of warning 2018-01-11 23:05:26 +01:00
Twinaphex c78a33ba8f Merge pull request #5847 from hiddenasbestos/udev_lightgun_api
lightgun support in udev
2018-01-11 19:38:32 +01:00
David Walters c76545bf6c Compile fix. 2018-01-11 17:03:18 +00:00
Twinaphex 9c72e6aaaf Merge pull request #6081 from gblues/master
Polish up WiiU deploy scripts
2018-01-11 15:46:05 +01:00
David Walters 4e79ef9f61 Merge branch 'master' of https://github.com/libretro/RetroArch into udev_lightgun_api 2018-01-11 13:07:22 +00:00
gblues 8701ce289a Polish up WiiU deploy scripts
== DETAILS
Some updates for the WiiU port:

1. Implement a way to set logging IP/port that doesn't risk getting committed.

   To do this, I've created `wiiu-devel.properties.template` and added the file
   `wiiu-devel.properties` to .gitignore. Developers can then:

   * Copy the template file to `wiiu-devel.properties`
   * Enter the relevant details (documented in the template file)

2. Convert `version.all` to unix line endings so modern versions of bash don't
   complain when it is included.

2. Rewrote the `wiiu-cores.sh` script into `wiiu-new-cores.sh`

   - Automatically detects when building retroarch inside the `libretro-super`
     hierarchy to collect the *.info files and *.a files
   - Automatically detects the *.png (fetched by running `fetch-submodules.sh`
     script)

3. Create a `wiiu-rpx-upload.sh` script to upload the output of `wiiu-cores.sh`

   - uses `wiiu-devel.properties` to get WiiU IP address
   - after upload, re-downloads and compares hashes to detect bad uploads
2018-01-10 22:51:00 -08:00
Twinaphex e0eb625dd0 Update CHANGES.md 2018-01-11 02:57:55 +01:00
twinaphex 54fd72fb24 Make it possible to compile with HAVE_VULKAN on MSVC 2017 build ;
glslang stripped out for now
2018-01-11 02:53:40 +01:00
Twinaphex 399011a4fa Merge pull request #6079 from meepingsnesroms/master
Add frontend, battery level and memory amount detection to 3ds port
2018-01-11 02:16:06 +01:00
Twinaphex 8eac8916b7 Update CHANGES.md 2018-01-11 02:13:10 +01:00
Twinaphex bea71745c1 Merge pull request #6080 from aliaspider/master
(WIIU) add ribbon shader. fix menu bg gradient.
2018-01-11 02:11:50 +01:00
aliaspider 9c2fc061ee (WIIU) fix griffin build. 2018-01-11 02:09:34 +01:00
aliaspider eac088696a (WIIU) add ribbon shader. fix menu bg gradient. 2018-01-11 02:09:03 +01:00
meepingsnesroms 74c8506391 Add frontend, battery level and memory amount detection to 3ds port
Also fix white spaces in led drivers, make led drivers use standard driver format.
Begin work on translation driver.
Add salamander files to gitignore.
2018-01-10 16:52:32 -08:00
twinaphex 7e9945cde9 Buildfix 2018-01-09 23:47:13 +01:00
Twinaphex 2a42983b4f Merge pull request #6077 from aliaspider/master
(WIIU) fix detection of 32bit input frames.
2018-01-09 17:53:47 +01:00
aliaspider a8d3ddc05d (WIIU) fix detection of 32bit input frames. 2018-01-09 17:05:09 +01:00
Twinaphex ae8d0630e2 Merge pull request #6076 from aliaspider/master
(WIIU) custom shader: add support for input textures and most uniforms.
2018-01-09 16:52:20 +01:00
aliaspider f34e180b40 (WIIU) custom shader: add support for input textures and most uniforms. 2018-01-09 16:41:01 +01:00
Twinaphex e0597ab747 Merge pull request #6072 from bkoropoff/builtin-flac-2
Make sure HAVE_CHD is defined regardless of which FLAC we use
2018-01-09 06:22:09 +01:00
Brian Koropoff 52f799a815 Make sure HAVE_CHD is defined regardless of which FLAC we use 2018-01-08 20:29:01 -08:00
Twinaphex bf1bd83631 Merge pull request #6071 from fr500/master
Disable hard sync on FF without mangling settings"
2018-01-09 03:43:33 +01:00
Twinaphex 31728bd2ca Merge pull request #6074 from aliaspider/master
(WIIU) revert forced 480p mode.
2018-01-09 03:29:28 +01:00
aliaspider 22a776bb3e (WIIU) revert forced 480p mode. 2018-01-09 03:26:11 +01:00
Twinaphex ae9e13324d Merge pull request #6073 from aliaspider/master
(WIIU) improve support for custom shaders.
2018-01-09 03:22:49 +01:00
aliaspider dc7c0a570f (WIIU) revert changes to net_listen.sh 2018-01-09 03:07:41 +01:00
aliaspider 0236b52b03 (WIIU) update uniform blocks correctly for custom shaders. 2018-01-09 03:06:54 +01:00
aliaspider 42905d9bbb (WIIU) add a better converter for slang shaders. 2018-01-09 03:05:29 +01:00
radius 8007c3efd7 Disable hard sync on FF without mangling settings 2018-01-08 20:06:24 -05:00
radius 6eb089cb82 Revert "Fast forward state disable hard sync"
This reverts commit ea5045d50a.
2018-01-08 20:03:29 -05:00
twinaphex aa641325cb Cleanups 2018-01-08 23:30:07 +01:00
twinaphex 7fdb621481 Update 2018-01-08 23:23:37 +01:00
twinaphex 8f9d807306 Remove some more Xbox ifdefs 2018-01-08 23:06:09 +01:00
Twinaphex 9f804f40bc Merge pull request #6069 from orbea/revert-6064-builtin-flac
Revert "Fix building with built-in flac"
2018-01-08 19:21:51 +01:00
orbea 4415086176 Revert "Fix building with built-in flac" 2018-01-08 18:12:53 +00:00
twinaphex 7616ea1b73 Add some logging to SetTextureStageState 2018-01-08 17:25:39 +01:00
David Walters 3dc3534498 Merge branch 'master' of https://github.com/libretro/RetroArch into udev_lightgun_api 2018-01-08 14:37:05 +00:00
Twinaphex a84a2046c4 Merge pull request #6067 from Tatsuya79/patch-3
Fast forward state disable hard sync
2018-01-08 12:11:26 +01:00
Tatsuya79 ea5045d50a Fast forward state disable hard sync 2018-01-08 12:02:37 +01:00
Andrés 581683dc69 Merge pull request #6065 from gblues/master
Remove all HID code from WiiU build via ifdef
2018-01-08 02:33:08 -05:00
gblues 5894d0ef86 Remove all HID code from WiiU build via ifdef
== DETAILS
We're trying to track down the source of crashes when switching cores.
To rule out the HID code, this commit does the following:

- Wraps the library imports in an ifdef
- Wraps the object files in conditionals in Makefile.wiiu
- In wiiu_joypad, calls into the hidpad driver are wrapped in ifdef

== TESTING
This didn't solve the "System memory error" crash I've been experiencing.
But, maybe it will impact the other flavors of crashes others are seeing.
2018-01-07 20:26:24 -08:00
Twinaphex 27d671bd0a Merge pull request #6064 from bkoropoff/builtin-flac
Fix building with built-in flac
2018-01-07 21:39:35 +01:00
twinaphex 5eb5ecac77 Update shader_hlsl.c 2018-01-07 21:34:39 +01:00
twinaphex 23ace06ca1 Cleanups 2018-01-07 20:55:00 +01:00
twinaphex acf9e41aae Start using d3dx_compile_shader 2018-01-07 20:47:35 +01:00
twinaphex 49ea8b950e Create d3dx_compile_shader 2018-01-07 20:32:43 +01:00
twinaphex 141f09ad2e Cleanups 2018-01-07 20:25:30 +01:00
twinaphex d3a4cc90c8 Cleanups - get rid of shader ifdefs 2018-01-07 20:21:08 +01:00
Brian Koropoff 4ad0a1214e Fix building with built-in flac
Not having HAVE_FLAC caused CHD support to be missing, etc.
This updates the logic to match how zlib is handled.
2018-01-07 10:48:09 -08:00
twinaphex 5ca618c8d6 Cleanups 2018-01-07 14:52:26 +01:00
twinaphex 8d7ea32e0d Add flag for debug D3D 2018-01-07 14:06:31 +01:00
twinaphex 1f0d57f5f2 (xdk360_fonts.cpp) Cleanups 2018-01-07 13:45:37 +01:00
twinaphex 58e6e2c025 Try to fix DEBUG path 2018-01-07 13:25:32 +01:00
twinaphex 0be4d7d178 Add free(file) 2018-01-07 13:13:21 +01:00
twinaphex 99699af36f (MSVC 2003) Add DEBUG 2018-01-07 12:21:01 +01:00
twinaphex e011329728 (D3D) Buildfix 2018-01-07 12:12:41 +01:00
vgmoose 890de0e79b allow joycons to work while attached 2018-01-07 12:10:28 +01:00
twinaphex fce097b892 (360) Buildfixes 2018-01-07 12:00:09 +01:00
twinaphex e90a71d9f5 Create d3dx_compile_shader_from_file 2018-01-07 11:52:32 +01:00
twinaphex 3ab8f017d9 Cleanups 2018-01-07 11:06:27 +01:00
twinaphex 88d1e455e3 Add code that allows for debug D3D 2018-01-07 10:46:53 +01:00
Twinaphex 8a6d5dbe91 Merge pull request #6063 from aliaspider/master
(WIIU) add a tool to convert slang shaders.
2018-01-07 09:06:29 +01:00
aliaspider 6b24663dd9 (WIIU) add more NULL check to *_free functions. 2018-01-07 03:45:41 +01:00
aliaspider 7cc34302f4 (WIIU) check for NULL in gfd_free 2018-01-07 03:40:03 +01:00
aliaspider 517a3f801f (WIIU) add a tool to convert slang shaders. 2018-01-07 03:26:14 +01:00
Twinaphex edd89c5ba3 Merge pull request #6061 from gblues/master
Add input validation to iosuhax
2018-01-07 00:06:05 +01:00
gblues f9b548492e Add input validation to iosuhax
== DETAILS

I believe this should (at least partially) resolve #6025.

In my own testing, I haven't been able to reproduce the DSI error,
but I have encountered the black-screen crashes and could reliably
(but not predictably) reproduce the crash by simply switching
between cores.

Looking at the DSI error, the crash occurs within iosuhax. So, I looked
at that code.. and basically none of the input pointers are validated.

Yikes.

This commit adds pointer sanity checking to all of the iosuhax code.

== TESTING

When I did a test build, I noticed two things:

1. No more black screen crashes!
2. In lieu of the crash, it looks like the network logging dies. RA itself
   seems to continue working just fine.
2018-01-06 14:59:48 -08:00
twinaphex df2a31b0e9 Create d3d pixel shader/vertex shader functions 2018-01-06 23:10:27 +01:00
twinaphex d7df6b3729 Create d3d_free_vertex_shader/d3d_free_pixel_shader 2018-01-06 22:57:44 +01:00
twinaphex e03e578212 Add d3d_set_pixel_shader 2018-01-06 22:49:36 +01:00
Andrés 7b040a52b6 Merge pull request #6059 from fr500/staging
make the hack less specific
2018-01-06 15:49:14 -05:00
twinaphex 9fe3271900 Add d3dxbuffer_release 2018-01-06 21:30:50 +01:00
twinaphex 9f6a97db76 Update 2018-01-06 21:10:30 +01:00
twinaphex d62ada458c Add D3DFVF_CUSTOMVERTEX for D3D9 2018-01-06 20:51:41 +01:00
twinaphex 942fd7102d Start getting HLSL compiling for PC 2018-01-06 20:48:17 +01:00
twinaphex ef05fd8a78 Cleanups 2018-01-06 19:51:29 +01:00
radius 3ee75e86c5 ake the hack less specific 2018-01-06 13:47:54 -05:00
twinaphex 553099abf1 Add d3d_check_device_type 2018-01-06 19:42:22 +01:00
Andrés cb41b5d7d9 Merge pull request #6043 from meepingsnesroms/master
Let developers define there own bannertool and makerom, add other 3ds binarys to gitignore
2018-01-06 13:06:39 -05:00
twinaphex 9b52164b00 Create d3d_get_adapter_display_mode 2018-01-06 16:10:05 +01:00
twinaphex 23437f27b4 Cleanups 2018-01-06 15:42:47 +01:00
twinaphex b42c92c619 Create d3d_is_windowed_enable 2018-01-06 15:32:02 +01:00
twinaphex 67220c358c Create d3d_get_color_format_front_buffer 2018-01-06 15:25:11 +01:00
twinaphex 7cc8040347 Create d3d_get_color_format 2018-01-06 15:18:02 +01:00
Twinaphex f2ec145cb7 Merge pull request #6058 from alfrix/comments
WiiU: C89 style comments
2018-01-06 14:02:57 +01:00
Alfredo Monclus bbd9a6566c WiiU: C89 style comments 2018-01-06 09:44:03 -03:00
twinaphex 8c20206afa Update 2018-01-06 12:35:00 +01:00
Twinaphex d4f5f3244a Merge pull request #6057 from gblues/master
Fix the blocking call to HIDRead()
2018-01-06 12:26:03 +01:00
gblues 560a5f0a4f Fix the blocking call to HIDRead()
== DETAILS

TIL that the "max_packet_size_*" fields in the HIDDevice struct
are actually requirements, not maximums.

The reason HIDRead() was blocking was because the HIDWrite() that
sent the activation command was silently failing.

The reason HIDWrite() was silently failing was because I was using too
small of a buffer for the device.

In this case: the Wii U GC adapter, which has a "max" tx packet size of 5.

"max" is misleading. You actually have to write all 5 bytes.

Which means: copying the 1-byte buffer to the 5-byte buffer, and writing
the 5-byte buffer via HIDWrite().

So, in summary:

- Use correct semantics for HIDWrite() so that HIDRead() can work.
- Update the OSThread struct to reflect the current knowledge over at
  WUT. It's unlikely this was actually causing a problem, but never
  hurts to be more correct.

== TESTING
I temporarily enabled the call to log_buffer() and confirmed that the
GC adapter's state is successfully being read.
2018-01-05 23:12:42 -08:00
Twinaphex 74942551ff Merge pull request #6052 from orbea/libchdr
Backport changes from libchdr upstream
2018-01-06 07:10:36 +01:00
Twinaphex 8347b6da21 Merge pull request #6056 from gblues/master
Use the right value for BIT256_GET macro
2018-01-06 07:09:27 +01:00
gblues 5b13f85967 Use the right value for BIT256_GET macro
== DETAILS

The BIT256_GET() macro expects a bit number (from 0-255), and we're giving it
a 32-bit mask (0x000080000).

Solution:

- Define VPAD_BUTTON_xxx_BIT macros using the bit number
- Use said macro in wiiu_input.c
- organizational cleanup:

  * put VPAD_BUTTON_TOUCH into the enum in stead of as a hokey define
  * put the touch bits in the right order
  * put in placeholder enums for (currently) unused bits
2018-01-05 20:03:10 -08:00
Andrés dedcd26495 Merge pull request #6053 from aliaspider/master
(WIIU) add preliminary multi-pass shader support.
2018-01-05 21:48:30 -05:00
aliaspider 55d262f5d8 (WIIU) add preliminary multi-pass shader support.
can load *.slangp and *.slang files. since there is no runtime compiler,
precompiled shaders (*.gsh) need to be present next to each *.slang
source file.
2018-01-06 03:39:53 +01:00
orbea df885fce31 libchdr: Backport "backported chd_file::guess_unitbytes from upstream to set unitbytes and unitcount fields for pre-v5 headers"
Backports https://github.com/rtissera/libchdr/commit/13444fc72f8ef61121ecaf38c44132ae449ed13a
2018-01-05 16:08:29 -08:00
orbea eeb6230ebd libchdr: Trivial cleanup 2018-01-05 16:08:29 -08:00
twinaphex bc53b9e1b6 Update libretro-common 2018-01-05 23:32:25 +01:00
Gregor Richards bb047c32ad Fixing intl files affected by netplay changes. 2018-01-05 14:30:23 -05:00
Gregor Richards 84baf5db1f Wrong branch index! 2018-01-05 14:27:02 -05:00
Gregor Richards 73bd969ac9 Fixes for slave mode with multiple input devices 2018-01-05 14:27:02 -05:00
Gregor Richards e20024ead9 Adjustments to make ranetplayer work with the new protocol. 2018-01-05 14:27:02 -05:00
Gregor Richards 984f763d75 Only do our careful resimulation with joypads 2018-01-05 14:27:02 -05:00
Gregor Richards 50de28b1a1 Netplay keyboard hack for keydown/keyup support
An unfortunate hack for cores that translate the keyboard input device
into keydown/keyup events without saving that in the savestate. We
simply replay the previous frame's input before loading the rewound
frame's state, to assure that both the state and the keyup/down state
are correct.

Ideally, cores would save this as part of the state, but it's a bit
proximal and a fairly significant change for those that use it, so it's
easier to fix in netplay.
2018-01-05 14:27:02 -05:00
Gregor Richards a96eb24247 Support for keyboards over netplay. 2018-01-05 14:27:02 -05:00
Gregor Richards c01a199493 Netplay input device abstraction, support for mice
This abstracts away the details of particular input devices for netplay,
and adds support for mice and (similar) lightguns. Unfortunately, in
practice, no core handles mice or lightguns in a savestate-safe way, so
they need to be used in stateless mode to be reliable, but they do work.
2018-01-05 14:27:02 -05:00
Gregor Richards ab669a2db8 Fix a bug that could segfault with fast dis/reconnection. 2018-01-05 14:27:02 -05:00
Gregor Richards c8ec048459 More netplay flip nonsense to tear out. 2018-01-05 14:27:02 -05:00
Gregor Richards 8d5a79fc69 Removing long-obsolete now-disfunctional "netplay flip players" feature 2018-01-05 14:27:02 -05:00
Gregor Richards c2923f5504 Netplay message for input devices not available. 2018-01-05 14:26:19 -05:00
Gregor Richards fff95facc7 New netplay failure messages. 2018-01-05 14:26:19 -05:00
Gregor Richards e4ad16fc1b Document MODE change in netplay README 2018-01-05 14:26:19 -05:00
Gregor Richards dc9ee8c6bc Don't 0-index device numbers! 2018-01-05 14:26:19 -05:00
Gregor Richards f7dba84c67 Netplay mode change improvements
(1) All mode change code unified, so server mode changes and client mode
changes and announcements go through the same functions

(2) New messages which are translateable and work with multiple input
devices
2018-01-05 14:26:19 -05:00
Gregor Richards 507c6dc09f Removing now-obsolete and always-confusing swap_input option. 2018-01-05 14:26:19 -05:00
Gregor Richards 2104ac44d9 Fixed server mode changes. 2018-01-05 14:24:43 -05:00
Gregor Richards 6eaaaef995 Minor bugfixes in input resolution. 2018-01-05 14:24:43 -05:00
Gregor Richards 2794031d12 Improved reemulation to not replay unread frames if they haven't changed. 2018-01-05 14:24:43 -05:00
Gregor Richards 74901e6161 Whoops, missed one refactor rename. 2018-01-05 14:24:43 -05:00
Gregor Richards 6946ea1bd3 Netplay support for multiple local devices. 2018-01-05 14:24:43 -05:00
Gregor Richards 95bbd914f1 Fixed >2-player issues with multi-input. 2018-01-05 14:24:43 -05:00
Gregor Richards ed320fd914 Adding and removing players
The new input handling makes adding and removing players more
complicated, since data can be present that's not expected from the
connected clients list, or absent that's expected in the list but
actually shouldn't be there.
2018-01-05 14:24:43 -05:00
Gregor Richards 39243a8d40 Configurable sharing mode. 2018-01-05 14:24:43 -05:00
Gregor Richards abf045ef0e Made device requests (badly) configurable. 2018-01-05 14:24:43 -05:00
Gregor Richards 7af7616d3d New initial connection header and support for inter-version connections. 2018-01-05 14:24:43 -05:00
Gregor Richards fe80c4ce2c Added real pad sharing modes. 2018-01-05 14:24:43 -05:00
Gregor Richards e4029b72c1 Rename things back after renaming for refactoring. 2018-01-05 14:24:42 -05:00
Gregor Richards b897ba4e30 Re-fixed input simulation. 2018-01-05 14:24:42 -05:00
Gregor Richards 8c551f3990 Fixing some counters. 2018-01-05 14:24:42 -05:00
Gregor Richards d1ca90e136 Get rid of this FIXME. 2018-01-05 14:24:42 -05:00
Gregor Richards ed69916e59 First cut of input changes (not yet working) 2018-01-05 14:24:42 -05:00
Gregor Richards 6d4119690d First step (not yet compiling) of changing around Netplay input. 2018-01-05 14:24:42 -05:00
meepingsnesroms 69bb95c49b Remove -a from uname 2018-01-05 09:58:10 -08:00
twinaphex f677a7ad7e Add HAVE_OVERLAY to qb system 2018-01-05 16:10:34 +01:00
twinaphex 8ca98e0a18 Buildfix 2018-01-05 14:14:42 +01:00
Twinaphex f4250a1ad5 Silence unused variable warnings 2018-01-05 14:13:58 +01:00
Twinaphex 3dff396ff4 Merge pull request #6050 from aliaspider/master
(WIIU) add a frame shader to match the shaders used by gl/vulkan
2018-01-05 13:49:10 +01:00
twinaphex 08abfd9208 (LED) Fix relative path includes 2018-01-05 13:47:49 +01:00
twinaphex f9e4ff3610 Cleanups 2018-01-05 13:28:50 +01:00
twinaphex a516a0a3a3 Add overlay_led_driver 2018-01-05 13:27:52 +01:00
aliaspider 8e095164e0 (WIIU) add a frame shader to match the shaders used by the gl/vulkan
drivers.
2018-01-05 13:18:55 +01:00
twinaphex 751c0fe58c Sync libretro-common 2018-01-05 13:16:04 +01:00
twinaphex cf8e7cd362 (wiiu) small style nits; declare variables at top; C comments 2018-01-05 13:09:05 +01:00
Twinaphex af9911df8a Merge pull request #6048 from gblues/master
Fix RETRO_DEVICE_ID_POINTER_PRESSED handling
2018-01-05 12:39:52 +01:00
gblues 34b120c269 Fix unfreed memory bug
== DETAILS
This should fix #6025.

After confirming that dummying out the init block of the HID subsystem
driver eliminated the crash, I narrowed it down to the event loop.

And that's when I noticed that, when the thread consumes the event,
it doesn't free it.

Oops.

Updated the event loop to free the event after it has been processed.

== TESTING
Local build, was able to load multiple ROMs in succession where prior
I was getting the system memory errors.

I've #if 0'd out a call to HIDRead that is still getting deadlocked,
because it slows down the startup/shutdown process.
2018-01-05 00:16:59 -08:00
Twinaphex d3e68239df Merge pull request #6047 from pattheaux/overlay_led
Added an overlay led driver, fixed a bug in the rpi led driver
2018-01-05 08:17:58 +01:00
gblues 3a0468523a Fix RETRO_DEVICE_ID_POINTER_PRESSED handling
== DETAILS

The joypad driver was only copying the first 16 bits when executing
get_buttons(). The touchpad button is bit 19, so as a result
RETRO_DEVICE_ID_POINTER_PRESSED would never fire.

We fix this for now by copying 32 bits.

== TESTING

Will need someone to verify. I don't  have a core handy that leverages
the pointer device state functionality.
2018-01-04 22:13:30 -08:00
meepingsnesroms 0598f2e7c8 Remove 64bit png and replace with 32 as 64 is incompatible new with bannertool 2018-01-04 17:05:54 -08:00
Twinaphex 9791712165 Merge pull request #6044 from aliaspider/master
(WIIU) add a gfd shader file reader.
2018-01-04 23:13:17 +01:00
aliaspider 3979d03cb3 (WIIU) add a gfd shader file reader. 2018-01-04 23:03:11 +01:00
meepingsnesroms 13b03ff5d3 Ignore more 3ds binary files 2018-01-04 11:54:51 -08:00
meepingsnesroms bf47859430 Remove binarys 2018-01-04 11:46:13 -08:00
meepingsnesroms 2e0eb4df8e Allow using custom bannertool and makerom for 3ds, for wav format not found error
You can compile the latest version of bannertool for your system and have retroarch build with that instead of the builtin one that fails on windows.
2018-01-04 11:40:03 -08:00
Ian House 5311544c65 Added overlay led driver, fixed a bug in the rpi led driver 2018-01-04 12:56:57 -05:00
Twinaphex c04b555f04 Merge pull request #6042 from aliaspider/master
(WIIU) add a sprite shader.
2018-01-04 18:00:18 +01:00
aliaspider e653a33237 fix warning. 2018-01-04 17:38:31 +01:00
aliaspider a7632620da (WIIU) add a sprite shader. 2018-01-04 17:38:04 +01:00
aliaspider e63697dca7 (WIIU) fix net logger. 2018-01-04 17:21:16 +01:00
twinaphex 73c36c47e2 (XDK) Xbox buildfixes 2018-01-04 17:00:21 +01:00
twinaphex 99c00b438b Silence unreferenced local variable warning 2018-01-04 16:55:28 +01:00
twinaphex 3033c1586a (MSVC 2010) x64 - compile griffin.c as C 2018-01-04 16:55:00 +01:00
twinaphex c495ca924d (MSVC 2010) Buildfix for x64 2018-01-04 16:53:54 +01:00
twinaphex 2c12010889 Updates 2018-01-04 14:59:23 +01:00
twinaphex e0b59c40ea Cleanups 2018-01-04 14:52:35 +01:00
twinaphex 6eddea99c0 Cleanups 2018-01-04 14:50:56 +01:00
twinaphex 41d9a8fd75 Make D3DX optional 2018-01-04 14:42:13 +01:00
twinaphex bd14582465 Update D3D8 codepath 2018-01-04 12:42:51 +01:00
twinaphex 21bf01ca6c Update file_stream_transforms.c 2018-01-04 08:16:43 +01:00
SaltyFist ad695a8b72 (switch) Add support for RETRO_PIXEL_FORMAT_XRGB8888 2018-01-04 07:28:17 +01:00
misson20000 a039e6c41e (NSW) temporary fix for graphic buffer dequeue failure 2018-01-04 07:28:12 +01:00
Twinaphex 14c9806584 Merge pull request #6040 from gblues/master
Revert previous fix, apply correct fix
2018-01-04 07:01:26 +01:00
Twinaphex 30bbfd88d1 Merge pull request #6039 from orbea/clang
C89_BUILD: Fix some clang compiler errors
2018-01-04 07:01:08 +01:00
Twinaphex 2aff5b54ff Merge pull request #6038 from orbea/c89
C89_BUILD: Remove c++ style comments
2018-01-04 07:00:43 +01:00
gblues 80cdb92154 Re-re-fix wpad scaling. For real this time.
== DETAILS

@r-type got me the link to the fixed-fixed version.

Which was actually closer to where I was originally!

So:

- Revert the previous commit
- Apply the actual changes needed to fix the problem
- Bring in and fix the logging code from the previous implementation

== TESTING
- Verified that top-left is -0x7fff,-0x7fff and that bottom-right is
  0x7fff, 0x7fff.

== REVIEW
@QuarkTheAwesome @r-type @twinaphex
2018-01-03 21:32:00 -08:00
gblues c1ef5c5497 Revert "Fix wiiu touchpad scaling"
This reverts commit 1d933a6b52.
2018-01-03 19:57:38 -08:00
Andrés 2ddcea8112 Merge pull request #6037 from leiradel/master
Fixed HTTP request for cheevos; fixed handling invalid cheevos
2018-01-03 21:41:31 -05:00
orbea 2d19885a17 C89_BUILD: Fix some clang compiler errors
Fixes the following -Werror warnings with C89_BUILD=1 and clang.

gfx/common/x11_common.c:407:17: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
         Status status = 0;
                ^
libretro-common/formats/libchdr/chd.c:639:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
                uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
                         ^
libretro-common/formats/libchdr/chd.c:723:12: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
                uint8_t *sector = &dest[framenum * CD_FRAME_SIZE];
                         ^
2018-01-03 16:53:11 -08:00
orbea a4ab4794cf C89_BUILD: Remove c++ style comments 2018-01-03 14:56:22 -08:00
leiradel ba661a3af4 Fixed HTTP request for cheevos; fixed handling invalid cheevos 2018-01-03 21:34:52 +00:00
twinaphex 447e990522 Add missing files 2018-01-03 20:54:37 +01:00
twinaphex 0c13961f9e Updates 2018-01-03 20:48:33 +01:00
Twinaphex 8559fb8085 Merge pull request #6036 from orbea/clang
C89_BUILD: Fix some clang compiler errors.
2018-01-03 21:37:21 +01:00
orbea e1db3e7a6d C89_BUILD: Fix some clang compiler errors.
Fixes these two compile errors with C89_BUILD=1

configuration.c:2028:9: error: ISO C90 forbids mixing declarations and code [-Werror,-Wdeclaration-after-statement]
   bool has_application_data =
        ^
1 error generated.
make: *** [Makefile:164: obj-unix/configuration.o] Error 1

In file included from menu/widgets/menu_osk.c:42:
menu/widgets/menu_osk_utf8_pages.h:62:94: error: no newline at end of file [-Werror,-Wnewline-eof]
                          "ヤ","ユ","ヨ","ワ","ヲ","ァ","ィ","ゥ","ェ","ォ","⊕"};
                                                                                 ^
1 error generated.
make: *** [Makefile:163: obj-unix/menu/widgets/menu_osk.o] Error 1
2018-01-03 12:19:16 -08:00
twinaphex a3b9f0ab63 (D3DX8) d3dx8 always has to be statically linked 2018-01-03 20:35:24 +01:00
twinaphex b925603eff (D3D9) Buildfix 2018-01-03 20:26:13 +01:00
twinaphex a8445c3ec4 D3D8 buildfix 2018-01-03 20:23:34 +01:00
twinaphex 5d5115941f (d3d_common.c) Fix D3D8 codepaths 2018-01-03 20:16:19 +01:00
twinaphex 45d532b3a2 Simplify Makefile.common 2018-01-03 19:58:51 +01:00
twinaphex aa255a9ad2 (D3D) Make d3dx dynamically loadable 2018-01-03 19:55:00 +01:00
twinaphex d3480e6365 Create d3d_font_indirect 2018-01-03 19:03:19 +01:00
twinaphex 94b04828f9 Add ability to dynamically load d3d DLL 2018-01-03 18:53:13 +01:00
twinaphex 3a3776ba24 Create d3d_initialize_symbols 2018-01-03 18:38:13 +01:00
twinaphex f19ff885f4 Cleanups 2018-01-03 18:23:04 +01:00
twinaphex 7b8299bbd7 Add this back 2018-01-03 18:15:20 +01:00
twinaphex 2424ffaa26 Dehardcode D3D_SDK_VERSION 2018-01-03 18:14:54 +01:00
twinaphex 30ba656f5c Create d3d_create 2018-01-03 18:09:31 +01:00
twinaphex 24a78a28c2 Update 2018-01-03 17:28:41 +01:00
twinaphex 5e5f0106e7 HLSL does not require Cg runtime lib 2018-01-03 16:11:44 +01:00
twinaphex b37ea96969 Cleanup 2018-01-03 16:09:44 +01:00
twinaphex 966053be60 Fix some of the major remaining issues with the D3D8 codepath 2018-01-03 15:57:47 +01:00
twinaphex 0e337bb110 Use d3d_device_get_backbuffer 2018-01-03 16:25:45 +01:00
twinaphex 06366c9c85 Correct this 2018-01-03 15:22:17 +01:00
twinaphex 6e22e2b4fc Add d3d_device_get_backbuffer 2018-01-03 15:21:48 +01:00
twinaphex dbd2faf69a fabsf not defined for MSVC 2003 2018-01-03 14:48:53 +01:00
twinaphex efb022bb28 (D3D8 renderchain) Buildfix 2018-01-03 14:46:08 +01:00
twinaphex df9cf9df21 (Xbox OG) Buildfix 2018-01-03 14:43:41 +01:00
twinaphex dddfbe311a (XBox OG) Buildfix 2018-01-03 14:42:09 +01:00
twinaphex 88a91af0dc Remove this rule from the conditional 2018-01-03 14:40:41 +01:00
twinaphex c9ff9ea253 (XFONTS) Buildfix 2018-01-03 14:28:07 +01:00
twinaphex 3058fc3390 (xfont) Add C++/C codepaths 2018-01-03 14:26:40 +01:00
twinaphex 59050709a9 (Xbox OG) Fix d3d_frame_postprocess 2018-01-03 14:18:57 +01:00
twinaphex edb8ecdbf8 (xdk_joypad.c) Add C codepath for XGetDeviceChanges 2018-01-03 14:13:29 +01:00
twinaphex e17baf411c Use d3d_surface_free 2018-01-03 14:10:14 +01:00
twinaphex 947bd80faf d3d8_renderchain_set_vertices - buildfix 2018-01-03 14:06:47 +01:00
twinaphex c81ad957fa (D3D8/Xbox OG) Buildfix for d3d_set_vertex_declaration 2018-01-03 14:04:37 +01:00
twinaphex 010148ce9c (D3D8/Xbox OG) Buildfix for d3d_set_vertex_shader 2018-01-03 14:02:54 +01:00
twinaphex 0ece7015e7 C buildfix 2018-01-03 13:59:42 +01:00
twinaphex f6cb15f410 Buildfix for HAVE_D3D8 2018-01-03 13:59:15 +01:00
twinaphex bf1f201e5a Add another HAVE_D3D8 conditional 2018-01-03 13:57:01 +01:00
twinaphex 777e96f2ea (Xbox OG) Buildfixes 2018-01-03 13:52:57 +01:00
twinaphex 7a481236bf (Xbox OG) Some more buildfixes 2018-01-03 14:37:35 +01:00
twinaphex 6c5d303a07 (Xbox OG) Fix Salamander build 2018-01-03 14:31:41 +01:00
Twinaphex c9669b696c Merge pull request #5998 from orbea/val
qb: Improve build without pkg-config.
2018-01-03 13:25:36 +01:00
twinaphex 956f869974 (360) Fix Salamander build 2018-01-03 12:14:08 +01:00
Twinaphex 5c5dae7160 Merge pull request #6034 from orbea/mouse
Hide mouse cursor CMD_EVENT_REINIT in fullscreen.
2018-01-03 11:42:27 +01:00
Twinaphex a11af7ef1d Merge pull request #6033 from gblues/master
Fix wiiu touchpad scaling
2018-01-03 11:42:05 +01:00
orbea b4e5f61713 Hide mouse cursor CMD_EVENT_REINIT in fullscreen. 2018-01-03 02:05:25 -08:00
gblues 1d933a6b52 Fix wiiu touchpad scaling
== DETAILS

Apparently when I refactored this code, I missed out on the fix for
touchpad coordinates that @QuarkTheAwesome had committed.

Oops.

- Fix the touchpad coordinates
- Remove unneeded references to video driver in wpad_driver.c
- Remove unneeded video driver include in pad_driver.h
- Add logging in wpad_driver to verify the fix (#ifdef'd out by default)

== TESTING

Verified fix manually.
2018-01-02 23:25:03 -08:00
bparker06 70ca528d85 readme: Update supported platforms 2018-01-02 22:49:46 -05:00
Brad Parker 228049df11 7zip: only use Unicode file open on Windows 2018-01-02 20:48:19 -05:00
bparker06 c51b107d9c Update archive_file_7z.c 2018-01-02 20:24:48 -05:00
Brad Parker 54e7ec8e79 win32: use Unicode file I/O for 7zip archives when available 2018-01-02 20:21:55 -05:00
Twinaphex 5db48f9aea Merge pull request #6030 from orbea/debug
Makefile.common: Don't hardcode -g
2018-01-02 18:40:52 +01:00
orbea e2b003a993 qb: Only look in /opt/vc/include if $HAVE_VIDEOCORE=yes. 2018-01-02 09:40:36 -08:00
orbea 48982de355 qb: Improve build without pkg-config. 2018-01-02 09:40:36 -08:00
orbea 0ec95f7aea Makefile.common: Don't hardcode -g 2018-01-02 09:20:13 -08:00
twinaphex 3528923507 Fix crash with Linux HTTP tasks - null pointer dereference 2018-01-02 13:41:59 +01:00
Twinaphex 33929842bb Update CHANGES.md 2018-01-02 08:27:07 +01:00
Twinaphex ed53542b8b Merge pull request #6020 from orbea/vulkan
Makefile.common: Don't enable vulkan if the user disabled it.
2018-01-02 07:15:19 +01:00
twinaphex 298e8b6326 Remove C++ comments 2018-01-02 07:13:09 +01:00
twinaphex e87cd7382e Silence warning 2018-01-02 06:41:52 +01:00
twinaphex 472a792d88 Silence warnings/errors 2018-01-02 06:40:19 +01:00
twinaphex 0c741e6f61 Fix png test 2018-01-02 06:35:07 +01:00
twinaphex 6d0101d118 Update nbio test 2018-01-02 06:33:20 +01:00
twinaphex d1ad5c336e Silence warnings 2018-01-02 06:28:05 +01:00
twinaphex 2d107b44fa Buildfix 2018-01-02 06:24:22 +01:00
twinaphex 74120c47e7 Remove C++ comment 2018-01-02 06:20:31 +01:00
Twinaphex 88311acad3 Merge pull request #6027 from meepingsnesroms/master
Add all xmb menu options to rgui and glui, 3ds warning fix, move start directory to top of load content
2018-01-02 06:19:48 +01:00
Twinaphex fddcf2b204 Merge pull request #6028 from fr500/master
show the menu entries when no achievements found even if hardcore mod…
2018-01-02 06:10:51 +01:00
Brad Parker abb855a3cc buildfix 2018-01-01 23:05:36 -05:00
Twinaphex 420f61bfb0 Merge pull request #6029 from alfrix/spanish
Update Spanish Translation
2018-01-02 04:16:36 +01:00
Alfredo Monclus f4948a1826 Update Spanish Translation 2018-01-01 22:28:40 -03:00
meepingsnesroms 4f60966dd5 Make glui support disabling all menu entrys too
Also remove hide settings from non xmb drivers, I was using it wrong.
2018-01-01 15:56:48 -08:00
meepingsnesroms 657f5aa2a2 Fix copy to self causing abort on OSX 2018-01-01 15:18:24 -08:00
radius acef4ac22e show the menu entries when no achievements found even if hardcore mode is enabled) 2018-01-01 17:02:42 -05:00
Alcaro e0eb5e698e We'll want a test suite at some point, here's the first test 2018-01-01 20:55:26 +01:00
Alcaro a79b3250ce why is -common trying to call out of -common 2018-01-01 20:42:10 +01:00
twinaphex 07f13876fc Fix playlist issues with extract_value - the name of the last playlist
entry in history list was being reused for the next playlist entry
2018-01-01 20:17:41 +01:00
meepingsnesroms 7ac985e9be Add all xmb menu options to rgui and glui, 3ds warning fix, move start directory to top of load content 2018-01-01 10:38:16 -08:00
orbea 8287a961e4 qb: Enable vulkan for Win32.
The check_lib function does not seem able to detect vulkan on windows,
this replaces a hack in Makefile.common that does the same, but while allowing
C89_BUILD=1 and --disable-vulkan to work.
2018-01-01 10:09:17 -08:00
twinaphex f611d1c357 * Compile C code with MSVC Makefile as C instead of C++
* Add compatibility tweak for MSVC in C mode for math functions
2018-01-01 17:38:04 +01:00
twinaphex 21c1acac73 Prevent another Coverity warning - memory corruption 2018-01-01 17:24:00 +01:00
Twinaphex 3df545112c Merge pull request #6024 from Tatsuya79/patch-2
Hide mouse after SET_SYSTEM_AV_INFO (please Check before merge)
2018-01-01 17:14:24 +01:00
Tatsuya79 6dbfbb0846 fix 2018-01-01 16:58:32 +01:00
twinaphex b279dfcb64 Simplify extract_value 2018-01-01 16:45:18 +01:00
Tatsuya79 10c6ef6f1a Hide mouse cursor after RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO in fullscreen 2018-01-01 16:44:55 +01:00
twinaphex 515918f80c config_file.c - fix Coverity warning - resource leak of
path
2018-01-01 16:37:20 +01:00
Brad Parker 04e6554ad6 don't assume msvc is always compiled in C++ mode 2018-01-01 10:24:04 -05:00
twinaphex b57f0d95c2 Try to fix Apple iOS build - error: initializer element is not a compile-time constant 2018-01-01 15:27:52 +01:00
twinaphex 8908d9983b (360) Some more buildfixes 2018-01-01 15:11:06 +01:00
twinaphex aab1e87439 Update compat_snprintf.c 2018-01-01 14:35:47 +01:00
Twinaphex 80f946e0a6 Merge pull request #6022 from bparker06/taskbar_progress
win32: Show progress meter on taskbar for downloads (Windows 7 and up)
2018-01-01 08:13:39 +01:00
twinaphex 6f95823702 Some more D3D header fixes 2018-01-01 08:11:41 +01:00
twinaphex 2214e04784 Cleanup some D3D headers 2018-01-01 08:08:22 +01:00
Brad Parker e62e0c83da win32: Show progress meter on taskbar for downloads (Windows 7 and up) 2018-01-01 02:08:09 -05:00
twinaphex d0b414f9d8 indenting nits 2018-01-01 08:03:04 +01:00
twinaphex e566a5591b Revert "Revert config_file.c"
This reverts commit 2f422a457f.
2018-01-01 07:45:57 +01:00
twinaphex f2ddc8eff0 Revert "Simplify config_file_write"
This reverts commit a4500eeafc.
2018-01-01 07:45:56 +01:00
Twinaphex 63dc7cbedb Update CHANGES.md 2018-01-01 07:20:17 +01:00
twinaphex 6ccde2b907 Add menu setting 'Audio Resampler Quality' 2018-01-01 06:53:52 +01:00
orbea 5b944a0e65 Makefile.common: Don't enable vulkan if the user disabled it.
This breaks '--disable-vulkan' and 'C89_BUILD=1' build for windows.
2017-12-31 15:01:50 -08:00
Andrés 3145708106 Merge pull request #6019 from orbea/c89
C89_BUILD=1 build fix
2017-12-31 17:47:12 -05:00
Alcaro 7fd4d5013d C89 2017-12-31 23:46:11 +01:00
orbea f993355f71 qb: Fix undefined miniupnpc references with C89_BUILD=1
LD retroarch
obj-unix/./libretro-common/net/net_natt.o: In function `natt_open_port':
/RetroArch/libretro-common/net/net_natt.c:120: undefined reference to `UPNP_AddAnyPortMapping'
/RetroArch/libretro-common/net/net_natt.c:133: undefined reference to `UPNP_GetExternalIPAddress'
/RetroArch/libretro-common/net/net_natt.c:126: undefined reference to `UPNP_AddPortMapping'
obj-unix/./libretro-common/net/net_natt.o: In function `natt_init':
/RetroArch/libretro-common/net/net_natt.c:61: undefined reference to `upnpDiscover'
/RetroArch/libretro-common/net/net_natt.c:74: undefined reference to `miniwget'
/RetroArch/libretro-common/net/net_natt.c:77: undefined reference to `parserootdesc'
/RetroArch/libretro-common/net/net_natt.c:79: undefined reference to `GetUPNPUrls'
/RetroArch/libretro-common/net/net_natt.c:81: undefined reference to `freeUPNPDevlist'
collect2: error: ld returned 1 exit status
make: *** [Makefile:159: retroarch] Error 1
2017-12-31 14:18:02 -08:00
orbea d7c9ca08cc C89_BUILD=1 build fix
libretro-common/audio/resampler/drivers/sinc_resampler.c:59:23: error: comma at end of enumerator list [-Werror=pedantic]
    SINC_WINDOW_LANCZOS,
                       ^
cc1: some warnings being treated as errors
make: *** [Makefile:164: obj-unix/./libretro-common/audio/resampler/drivers/sinc_resampler.o] Error 1
2017-12-31 13:43:31 -08:00
twinaphex a74ef2214d Start removing SINC ifdefs for individual Makefiles 2017-12-31 21:34:31 +01:00
twinaphex 8860619a5e Add audio_resampler_quality to config file 2017-12-31 21:25:07 +01:00
twinaphex b9248cf3af Start preparing runtime toggleable resampler quality settings 2017-12-31 20:55:26 +01:00
twinaphex 0dd2f075fe Refactor sinc resampler so that we can set resampler quality
at runtime
2017-12-31 20:40:04 +01:00
twinaphex 3090e85064 Refactor sinc_resampler.c 2017-12-31 18:23:27 +01:00
Twinaphex 8170548034 Merge pull request #6003 from orbea/val2
qb: Improve the check_val function.
2017-12-31 18:09:15 +01:00
twinaphex 9b2cfc4867 Updates 2017-12-31 18:04:10 +01:00
twinaphex 82d44e9ad3 Cut down on more HAVE_MENU ifdefs 2017-12-31 18:02:14 +01:00
twinaphex bd16fd49ab Fix ./configure --disable-rgui 2017-12-31 17:53:11 +01:00
twinaphex cf3a010ead Remove some HAVE_MENU ifdefs 2017-12-31 17:42:07 +01:00
Alcaro 99f696abd2 Fix #6009 v3.0 2017-12-31 15:28:10 +01:00
Alcaro abf4e50e6d These warnings aren't needed 2017-12-31 14:33:57 +01:00
Twinaphex e5f986d16d Merge pull request #6014 from aliaspider/master
(WIIU) updates.
2017-12-31 14:32:40 +01:00
Alcaro 9ab6957dc4 Fix #6009 v2.0 2017-12-31 14:32:14 +01:00
aliaspider f9e06725fa (WIIU) rework makefile. 2017-12-31 14:07:14 +01:00
aliaspider 0a32642f17 (WIIU) shader: use a single attribute stream. 2017-12-31 14:06:49 +01:00
aliaspider 601fda9784 (WIIU) fix warnings 2017-12-31 14:06:03 +01:00
twinaphex df3bb2e7e8 gfx_ctx_wgl_update_title - small cleanup 2017-12-31 13:54:34 +01:00
Alcaro 93f0679ead Fix #6009 2017-12-31 13:20:05 +01:00
orbea 24f69cb537 qb: Fix undefined flac references with C89_BUILD=1 2017-12-30 22:40:02 -08:00
twinaphex 5aa159431e Prevent potential crash 2017-12-31 07:15:18 +01:00
Twinaphex 768be8b9c8 Merge pull request #6011 from gblues/master
Fix a couple crash bugs
2017-12-31 07:08:03 +01:00
Twinaphex b8899ecbd3 Merge pull request #6012 from RobLoach/revert-5986-patch-25
Revert "xmb: Add a few icons to the menu"
2017-12-31 07:07:43 +01:00
Rob Loach 6c02686f84 Revert "xmb: Add a few icons to the menu" 2017-12-31 00:20:40 -05:00
twinaphex 2884ad2d73 (360) Some buildfixes 2017-12-31 06:09:39 +01:00
gblues c2d2fe971e Add timeout for HID thread shutdown
== DETAILS
If a call to HIDRead() ends up blocking indefinitely, it will
cause the shutdown process to wait forever.

To avoid a deadlock, I've put in a retry counter so that it will
give up after 5s and print a warning to the log.
2017-12-30 20:59:07 -08:00
orbea c96ae959b3 qb: Add a fallback path for jack audio without pkg-config
This is a proof of concept for the fallback path without pkg-config.
As jack is something often not installed by default it demonstrates
that when pkg-config exists and the dependency doesn't the check_val
function in qb/qb.libs.sh will redundantly check -ljack and as expected,
fail. It also shows that when pkg-config is not installed and jack is
enabled with --enable-jack it will bail and print a configure error.
2017-12-30 20:56:40 -08:00
orbea a37d624967 qb: Improve the check_val function.
This accomplishes two things for the fallback path without pkg-config.

1. If --disable-foo is passed to configure it will explicitly skip
   check_val. This has the benefit of reducing checks in
   qb/config.libs.sh which are easy to break due to human error.

2. When a fallback path exists and --enable-foo is passed to configure,
   but fails due to the missing -lfoo check_val will now bail and print
   a configure error. However --enable-foo will still be ignored if
   there is no fallback path and pkg-config is not installed.

One issue with this is that if pkg-config is installed and the package
foo is not, it will still check if -lfoo works. As not all pkg-config
implemenations can be trusted to work even if they exist this seems
unavoidable.
2017-12-30 20:56:40 -08:00
twinaphex 06e3a9e762 Avoid warning 2017-12-31 05:34:59 +01:00
Brad Parker 55559983fd UTF-8 BOM fixes 2017-12-30 23:07:59 -05:00
Brad Parker 8a8687ec9c add missing ifdef for device change fix and include 2K in the version check 2017-12-30 23:07:59 -05:00
twinaphex d09e0f7da2 (task_autodetect.c) Too much verbose spam 2017-12-31 04:24:42 +01:00
twinaphex 39a1ebacc3 Merge branch 'fr500-master' 2017-12-31 03:44:39 +01:00
twinaphex 4c608ca994 Buildfix 2017-12-31 03:44:28 +01:00
twinaphex 8686b8c5a2 Merge branch 'master' of git://github.com/fr500/RetroArch into fr500-master 2017-12-31 03:41:39 +01:00
radius acdb5efdcd try to fix msvc2003 builds 2017-12-30 21:38:00 -05:00
twinaphex 923eef3eb3 Updates to D3D headers 2017-12-31 03:36:43 +01:00
twinaphex b464014a51 C89_BUILD fixes 2017-12-31 03:27:55 +01:00
twinaphex f7744d812e Turn this into a static variable 2017-12-31 03:18:10 +01:00
twinaphex 88cac16409 (MSVC 2003) Compile griffin.c as C code 2017-12-31 03:16:08 +01:00
misson20000 be5ebbc039 (NSW) since we haven't yet gotten the OS graphics driver, upon calling display_finalize, to release some of the (currently global) resouces we give it when we initialized it, we need to maintain a little bit of global state in the graphics driver so it can be freed and reinitialized when we load a core. this should be able to be reverted when we implement alloc_pages in libtransistor. see https://github.com/reswitched/libtransistor/issues/74 and https://github.com/reswitched/libtransistor/issues/69 2017-12-31 03:04:15 +01:00
misson20000 7cc614263a (NSW) add default button bindings and fix right joystick 2017-12-31 03:04:11 +01:00
Twinaphex 6732afa608 Update CHANGES.md 2017-12-31 02:29:54 +01:00
Twinaphex 4be19999a5 Update CHANGES.md 2017-12-31 02:07:01 +01:00
gblues 11fed40c79 Fix another crash bug in joypad_connect
== DETAILS

I fixed a similar bug in a past commit, with the same root cause: making
assumptions about the length of the array.

- Add validation to joypad_connection_init() so that if >MAX_USERS is
  requested, a warning is logged and only MAX_USERS is allocated.
- Rewrote the iteration routines so they strictly use the
  joypad_is_end_of_list() method to detect the end.
2017-12-30 16:36:54 -08:00
Twinaphex 1b6870b180 Merge pull request #6008 from orbea/oss
qb: Fix --disable-oss for openbsd.
2017-12-31 00:49:55 +01:00
orbea 7ab2254fc4 qb: Fix --disable-oss for openbsd.
If --disable-oss is passed to configure we should not check for any oss support.
2017-12-30 15:45:19 -08:00
Twinaphex d9c0f769c7 Merge pull request #6006 from aliaspider/master
(WIIU) update shader and add alpha blending to menu + overlays.
2017-12-31 00:21:53 +01:00
Twinaphex d8bb9ac018 Merge pull request #6002 from orbea/gitignore
gitignore: Add .tmp.cxx
2017-12-31 00:20:41 +01:00
aliaspider b371f4bb32 (WIIU) add a color attribute to tex_shader.
+ some fixes to overlay and menu display code.
2017-12-30 23:21:32 +01:00
Alcaro e5b346ad92 what an impressive bug farm. #6001 2017-12-30 17:43:48 +00:00
orbea a6f7bf9492 gitignore: Add .tmp.cxx 2017-12-30 09:33:34 -08:00
aliaspider f6fdd421c6 (WIIU) shaders: use bitfields for GPU register values. 2017-12-30 16:39:23 +01:00
twinaphex 136fb6e3c9 (WIIU) Cleanup 2017-12-30 15:35:32 +01:00
Twinaphex 0389bc64fe Merge pull request #5997 from libretro/new_hid
New HID system (courtesy of gblues)
2017-12-30 15:30:03 +01:00
twinaphex 7e61f08cdb Simplify audio_driver_flush 2017-12-30 14:14:30 +01:00
twinaphex 74eb6336d5 Buildfix 2017-12-30 13:48:21 +01:00
twinaphex 481a140c9c Buildfixes 2017-12-30 13:45:29 +01:00
twinaphex 292d506ed8 Fix more MSVC Griffin build errors 2017-12-30 13:35:47 +01:00
twinaphex 8d5a8355a7 Fix some linkage errors with RA MSVC 2010 2017-12-30 13:00:08 +01:00
twinaphex 20bb653f1e (Xbox 360) Buildfixes 2017-12-30 12:36:00 +01:00
twinaphex d5d4e9ff2b (shader HLSL) Start adding support for C as well 2017-12-30 12:16:07 +01:00
twinaphex fb74e11011 (360) Small buildfixes 2017-12-30 12:00:43 +01:00
Twinaphex ca2bc6dccd Update CHANGES.md 2017-12-30 11:25:28 +01:00
twinaphex b788bf71bd (3DS) Implement frontend rating - will return 6 for New 3DS/2DS,
and 3 for Old 3DS/2DS
2017-12-30 11:23:47 +01:00
misson20000 6254ddecf2 (NSW) initial support for menu 2017-12-30 11:14:45 +01:00
misson20000 5003a2d50b (NSW) fix switch audio driver to not start the audio output twice and not start it by default 2017-12-30 11:14:45 +01:00
Twinaphex e9b6f1e18d Merge pull request #5999 from orbea/gitignore
gitignore: Add .tmp and .tmp.c
2017-12-30 08:40:11 +01:00
twinaphex 8619534a31 Fix resource leaks pointed out by Coverity 2017-12-30 08:37:52 +01:00
orbea 129a44b8ce gitignore: Add .tmp and .tmp.c
These are test programs for checking if features can be enabled and
should not be committed.
2017-12-29 23:28:23 -08:00
twinaphex 20122d21ee CXX_BUILD buildfix 2017-12-30 08:12:38 +01:00
twinaphex 794de84961 Get rid of variable-length array 2017-12-30 08:09:35 +01:00
Twinaphex f63385de08 Merge pull request #5994 from orbea/bsd
qb: Include /usr/local/lib for *bsd too
2017-12-30 05:25:59 +01:00
Twinaphex 6c08ceacb9 Merge pull request #5995 from meepingsnesroms/master
Fix new 3ds xl not being detected, others
2017-12-30 05:25:46 +01:00
gblues ec45df79f4 Dummy out calls into HID driver
== DETAILS

Got system memory error. Probably because the calls aren't properly
implemented. So  dummy them out for now.
2017-12-30 04:43:46 +01:00
gblues 65c177a0ee Move HID driver into wiiu/ code
== DETAILS

RetroArch's general HID drivers are intended as a full-on substitute for
other input drivers such as XInput, DInput, SDL, etc. The Wii U port is,
to my knowledge, the first case of heterogenous input drivers working
concurrently.

As such, I've moved things around:

- The HID driver source is moved into the wiiu/input/ directory alongside
  the joypad subdrivers.
- We no longer use the input_hid_init_first() method to instantiate; instead
  we just init the wiiu HID driver directly.
- The HID pad driver and HID subsystem driver enjoy a tighter coupling,
  mainly having to do with the initialization of the joypad connections
  list, because there's no way to inform the HID driver's init() method
  how many slots to allocate.

== TESTING
Will test in a moment, but at  least it compiles cleanly. ;)
2017-12-30 04:43:38 +01:00
gblues 704cc61fd8 Fix bug in autodetect macro, gamepad now works properly
== DETAILS
The gamepad didn't work because I had tried to rename the pad from
'WIIU Gamepad' to 'WiiU Gamepad'.

I added some debug logging and (to cut out a lot of trial-and-error)
discovered that the reason it didn't work was because a bug in a macro
was  using the define literally instead of substituting it (so e.g.
the autodetect handler was trying to match 'WiiU Gamepad' against the
literal string 'PAD_NAME_WIIU_GAMEPAD').

- Fixed the macro bug
- Left a minimal amount of the debug logging in place; may come in
  handy for someone else.
- Updated wpad/kpad/hidpad to use the define constants

== TESTING
Did a test build and confirmed the gamepad responded.
2017-12-30 04:43:33 +01:00
gblues 0ae7ffe0d3 Clean up dumb compile warnings, fix crash bug
== DETAILS

- the free() method of the hid_driver_t interface needs its
  parameter defined as const in order for the compiler to stop
  complaining about losing const-ness.
- if a joypad list is created with <MAX_USERS slots in it, the
  destroy() function will crash because it assumes there are MAX_USERS
  entries.

  To do this, the allocate function creates n+1 slots, and gives the
  last slot a canary value that the destroy() method can then watch for
  when iterating through the list.
2017-12-30 04:43:27 +01:00
gblues 52c754cfa8 Split wiiu_gamepad into three sub-drivers
== DETAILS
Well, after a lot of code analysis, this seems like the
best way to handle things on the Wii U without also completely
re-architecting the I/O handling in RetroArch.

How it works:

- the top-level wiiu_joypad driver is now nothing more than a
  delegator.
- the wiiu-specific drivers live in `wiiu/input/`
- wpad_driver.c handles the WiiU gamepad
- kpad_driver.c handles the wiimotes
- hidpad_driver.c will handle HID devices like the GC adapter, DS3/DS4, etc.

  (I say "will" because this isn't implemented yet)

== TESTING
Haven't actually tried the build to see if it works, but it does
compile.
2017-12-30 04:43:18 +01:00
gblues 8f900de65e Clean up USB VID/PID declarations
== DETAILS

USB Vendor and Product IDs are in little-endian byte order, and they
need to be byteswapped on big-endian systems.

This approach allows us to use the standard hex notation for the VID/HID
values, and give them meaningful names, and only swap on the platforms
that need it. Also prevents having to abuse SWAP16() in the platform-
specific code.
2017-12-30 04:43:03 +01:00
gblues 0f66bc3297 Implement HID read loop, add debug logging
== DETAILS

I haven't figured out how I'm going to get the data read via HIDRead()
funneled back to the adapter--the handle_packet() method doesn't actually
get called anywhere.

I'm probably going to need to do more tweaking to the function pointer
list.

This commit also adds logging for the data read via HIDRead.

== TESTING

I used my "stress test" (which I used to reproduce the crash caused
by the old HID implementation), and it did not crash.
2017-12-30 04:41:30 +01:00
gblues 7954dab835 Progress on I/O handling
== DETAILS

Starting to implement the I/O handling on the HID driver.

The old implementation basically had a never-ending HIDRead() callback
set up, so that callback N would start the read process for invocation
N+1.

We will take the same approach here; but now that the I/O thread is
happenning on its own core, we should be able to let it run full-
throttle without impacting emulator performance.

Of course, this hinges on the callback actually running on the same
core as the syscall was initiated on.

== TESTING
Can confirm that the read_loop_callback gets invoked on the same core
that the HIDRead() was invoked on.
2017-12-30 04:41:25 +01:00
gblues 661e5bf50b Implement new functions in hid_driver_t in WiiU driver
== DETAILS

This implements the WiiU-specific functions.

Since the wiiu_hid_t data structure contains the handle and interface
index, the method signatures can be simplified quite a bit. And since
(at least for now) we want these to be synchronous, we don't need to
expose the callback parameters.
2017-12-30 04:41:19 +01:00
gblues 678c4093c1 Start adapting the dual shock 3 driver to use the new driver format.
== DETAILS

The handshake stuff is derived from the old HID2VPAD, just in knowing
what data goes in what report.

- Added the HID_REPORT_ flags to syshid.h
- Renamed the generic "REPORT_TYPE" flags to be meaningful
- also fixed incorrect parameter list for set_protocol
== TESTING
The functions aren't implemented in wiiu_hid.c just yet,
so this is gonna crash if you try to run it.
2017-12-30 04:41:12 +01:00
gblues 982d6893b0 Set the send_control pointer on the drivers
== DETAIL

One minor detail missed in the last commit: actually putting the
send_control function into the driver declaration. Woops.

Not doing the Wii U because it will be using the other methods.
2017-12-30 04:41:07 +01:00
gblues 5b37ced196 Update HID pad driver architecture
== DETAILS

The current HID implementation assumes a very low-level USB library
is being used. This causes a problem on Wii U, because the Cafe OS
only exposes a high-level interface.

To get these functions exposed to the HID pad drivers, I had to make
three changes:

1. I added the legacy "send_control" function to the HID driver
   interface
2. I modified the signature of pad_connection_pad_init() to send the
   driver pointer instead of the function pointer
3. I updated the HID pad drivers to keep the pointer to the driver
   instead of the function pointer, and updated the calls into the
   send_control function as appropriate
4. I updated the HID drivers to use the new pad init signature

== TESTING
Untested, in theory it should work without a hitch because at this
point all I've done is abstract things a little. I still need to
update the HID pad drivers to use the Wii U-specific calls as
appropriate.
2017-12-30 04:41:01 +01:00
gblues d0adbd194e Revert changes to joypad API
== DETAILS

Premature. Still learning my way around the codebase.
2017-12-30 04:40:53 +01:00
gblues c1496a8600 WIP - reorganizing input data
== DETAILS

Looking at the apple input driver gave me an idea--moving the
HID driver into the wiiu_input_t data instead of piggy-backing
it off the wiiu_joypad driver.

- Remove changes to wiiu_joypad
- Add equivalent to wiiu_input

This is probably broke as hell. Haven't tried to compile.
2017-12-30 04:40:43 +01:00
gblues 5804233ca8 Start fleshing out wiiu_hid driver
== DETAILS

- Added entrypoints into `input/connect/joypad_connection.c` to allow
  a max value to be passed in, instead of using single macro value
- Created a hand-off between the HID attach handler and the worker thread
- Created a pad initializer in `wiiu_hid.c` leveraging the new functionality
  added to `joypad_connection.c`

== TESTING
Compiles cleanly. At best, doesn't do anything. Might crash--not ready
to test quite yet.
2017-12-30 04:40:39 +01:00
gblues e98b006715 HID worker thread is now operational
== DETAILS
After wasting some cycles trying to isolate a crash, I went back to
basics.

I enabled the network logging, and put in a bunch of logging lines,
and noticed that the HID thread wasn't actually starting.

I did quite a bit of experimenting, working with different
memory alignments, and finally got it working.

== TESTING
As you can see, I put a log output inside the worker thread. When
I run the build, I can see the TICK messages. I can also see that
the thread shuts down as expected.

Also! The HID callback works as expected too! I have the GC
adapter, and when I register the HID callback it fires and I get the
following data:

    [INFO] USB device attach event
    [INFO]                 handle: 2058729
    [INFO]   physical_device_inst: 0
    [INFO]                    vid: 0x7e05
    [INFO]                    pid: 0x3703
    [INFO]        interface_index: 0
    [INFO]              sub_class: 0
    [INFO]               protocol: 0
    [INFO]     max_packet_size_rx: 37
    [INFO]     max_packet_size_tx: 5

Note that these are raw dumps of the data passed to the method,
so e.g. the VID/PID might be byte-swapped from how they're usually
represented.

Have not done the stress test to try to reproduce the crash.
2017-12-30 04:40:33 +01:00
gblues 192f5875b9 Simplify, add logging, revert some of the changes
== DETAILS
The old code was crashing; I did a minimalized branch and the crash
went away, so I'm bringing that over here. Meaning I'll have to
redo some of the other work I'd put in, but oh well.

(now watch it start crashing again)

== TESTING
Can confirm it builds. Wii U is busy ATM so I can't test.
2017-12-30 04:40:23 +01:00
gblues 1beba28d02 Only call HIDSetup/HidTeardown once
== DETAILS
I did a minimalist edit of the HID thread that stripped out all
HID* syscalls, and this stopped the crashing. I then re-added just
the HIDSetup() and HIDTeardown() calls, and the crash came back.

This smells like an OS bug. To work around it, I've put the
HIDSetup() and HIDTeardown() calls into the app init/shutdown
section, so they only get called once in the application lifetime
and not each time the input driver is initialized.
2017-12-30 04:40:15 +01:00
gblues d0368124e6 Add OSFastMutex WiiU calls to list of imports 2017-12-30 04:40:10 +01:00
gblues 5c5e5be649 More progress on the HID driver
== DETAILS
I think I've about got the thread startup/teardown code worked
out. Logically, anyway, if not accurately.

The challenge has been figuring out how best to integrate the
features of HID2VPAD.

I found `input/connect/joypad_connection.c` and this seems like
the logical place for:

- Special-case driver for the Switch Pro controller
- Any other special cases HIDTOVPAD supports that core RetroArch
  doesn't
- Parsing of HIDTOVPAD config file to add custom button mapping

== TESTING
Compiles. Haven't tested with a real Wii U. Probably doesn't work
though. I very likely have the threading bit wrong.
2017-12-30 04:40:01 +01:00
gblues c3736adb77 Start implementing HID polling thread
== DETAILS

Looking at the other HID USB drivers, it looks like the typical
implementation is to start up a background thread to do the
polling, rather than wait for RA to invoke the poll() method.

This commit sets up the skeleton of the background thread:

- The thread gets created in init()
- The thread gets stopped in free()

Right now the body of the thread is a 10ms sleep.

== TESTING

It compiles cleanly, and links. Don't know if it actually works.
2017-12-30 04:39:56 +01:00
gblues 203876a206 More progress on the HID driver
== DETAILS
I think I've about got the thread startup/teardown code worked
out. Logically, anyway, if not accurately.

The challenge has been figuring out how best to integrate the
features of HID2VPAD.

I found `input/connect/joypad_connection.c` and this seems like
the logical place for:

- Special-case driver for the Switch Pro controller
- Any other special cases HIDTOVPAD supports that core RetroArch
  doesn't
- Parsing of HIDTOVPAD config file to add custom button mapping

== TESTING
Compiles. Haven't tested with a real Wii U. Probably doesn't work
though. I very likely have the threading bit wrong.
2017-12-30 04:39:44 +01:00
gblues 1657079c45 Start implementing HID polling thread
== DETAILS

Looking at the other HID USB drivers, it looks like the typical
implementation is to start up a background thread to do the
polling, rather than wait for RA to invoke the poll() method.

This commit sets up the skeleton of the background thread:

- The thread gets created in init()
- The thread gets stopped in free()

Right now the body of the thread is a 10ms sleep.

== TESTING

It compiles cleanly, and links. Don't know if it actually works.
2017-12-30 04:39:39 +01:00
gblues 7e56881b88 Some cleanups 2017-12-30 04:39:34 +01:00
gblues 3b92cce6bf Start wiring up the HID driver
- add alloc/free for necessary objects
- register callback with Wii U OS

Don't think I've put the unregister bit in, so this is very likely
broken.
2017-12-30 04:39:25 +01:00
Nathan Strong e80d99dbae Delete controller_patcher; start on proper HID driver
== DETAILS

We discovered that the controller_patcher code was causing
the WiiU to intermittently crash when switching ROMs.

Changes:

- Completely extricates the controller_patcher code
- Create a skeleton wiiu_hid driver
- Wire up the build system to build/link it successfully

== TESTING

Has not been tested. Probably doesn't crash, since the
skeleton driver is just a copy of the null driver.
2017-12-30 04:38:57 +01:00
twinaphex a792112bd1 Update glslang support for MSVC 2017-12-30 04:36:35 +01:00
meepingsnesroms d18ee7eaed Fix new 3ds xl not being detected, others
Also fixes whitespace in makefile and platform_ctr.c and compiles with debug libctru when DEBUG=1
2017-12-29 19:30:54 -08:00
orbea 1b404afc86 qb: Include /usr/local/lib for *bsd too 2017-12-29 16:06:04 -08:00
twinaphex d49b7b28b6 input_poll - cleanup 2017-12-29 23:12:35 +01:00
twinaphex a6afddae04 current_input_data and current_input are no longer globals 2017-12-29 23:03:25 +01:00
Alcaro ad7dd75458 this name makes slightly more sense. 2017-12-29 21:16:28 +01:00
Alcaro fc725e252e Maybe #5989 can accept this compromise 2017-12-29 21:15:25 +01:00
Twinaphex 22062fdf91 Merge pull request #5991 from orbea/gl
qb: Include /usr/local/include for bsd based systems.
2017-12-29 21:08:41 +01:00
Twinaphex c4049946ea Merge pull request #5990 from orbea/revert-5983-patch-1
Revert "config.libs.sh: reintroduce HAVE_X11 check"
2017-12-29 21:08:10 +01:00
orbea 6ab2244a43 qb: Do not check for x11 when using --disable-x11. 2017-12-29 11:25:35 -08:00
orbea 72e3d5c38c Makefile: Fix debug builds. (#5989)
RetroArch builds debug builds by default after commit https://github.com/libretro/RetroArch/commit/ec4b0f90896d9cca2b9eaa0df0e9127b3ca5445d
This is very bad and breaks ./configure && make.
2017-12-29 14:00:53 -05:00
orbea a34555c9a9 qb: Include /usr/local/include for bsd based systems.
This resolves an issue where the default freebsd compiler does not
include /usr/local/include which contains important headers such as
GL/gl.h and results in the check_header function failing to find them.

Unfortunately pkg-config/pkgconf will not work here for two reasons.
1. It does not seem able to actually check for gl.h which RetroArch
explicitly needs.

2. Not all systems have a pkg-config implementation so we will still
have to fall back to checking for gl.h...

Fixes https://github.com/libretro/RetroArch/issues/5958
2017-12-29 10:23:14 -08:00
orbea eaccab5237 Revert "config.libs.sh: reintroduce HAVE_X11 check" 2017-12-29 18:04:07 +00:00
Alcaro ec4b0f9089 What kind of bug farm is this filestream thingy 2017-12-29 15:32:07 +01:00
twinaphex 8c2070947e Prevent some warnings 2017-12-29 13:00:24 +01:00
Twinaphex c872edcc2b Merge pull request #5986 from RobLoach/patch-25
xmb: Add a few icons to the menu
2017-12-29 09:23:55 +01:00
Rob Loach 0a65875956 xmb: Add a few icons to the menu 2017-12-29 02:18:40 -05:00
Twinaphex 96f5323723 Update CHANGES.md 2017-12-29 06:57:17 +01:00
Twinaphex ba8b5749ac Merge pull request #5985 from meepingsnesroms/master
Basic networking for 3DS, bug fixes
2017-12-29 06:56:45 +01:00
meepingsnesroms 7dbaa45172 Basic networking, bug fixes
Fix CPU count bug, make 3ds compile with networking
2017-12-28 21:49:21 -08:00
Twinaphex 688443b9a6 Merge pull request #5984 from RobLoach/slow-motion-granularity
settings: Add Slow Motion Ratio granularity
2017-12-29 06:00:09 +01:00
Rob Loach 10076706b5 settings: Add Slow Motion Ratio granularity
This makes it so that the Slow Motion setting can be set to something like 1.2, rather than 1 increments.

Fixes #5917
2017-12-28 23:51:41 -05:00
Twinaphex c7c0ba7d03 Update CHANGES.md 2017-12-29 05:07:40 +01:00
twinaphex 893cd2b472 Make this C89-compatible 2017-12-29 04:46:13 +01:00
misson20000 3101ee8036 (NSW) fix compilation errors and warnings for switch drivers 2017-12-29 04:45:25 +01:00
Twinaphex 64ceabfc9d Merge pull request #5983 from psyke83/patch-1
config.libs.sh: reintroduce HAVE_X11 check
2017-12-29 04:08:49 +01:00
Conn O'Griofa 010aa8061f config.libs.sh: reintroduce HAVE_X11 check
Current behaviour would force check_val to check for X11 even if explicitly disabled.

Fixes Raspberry Pi build (which requires --disable-x11).
2017-12-29 02:10:19 +00:00
Twinaphex 258c8acdad Update switch_audio.c 2017-12-29 02:28:34 +01:00
Alcaro 353b2ebff6 Make this thing more like stdio 2017-12-29 01:38:59 +01:00
Twinaphex e6462de5be Merge pull request #5982 from celerizer/master
Fix unofficial achievements not being loaded
2017-12-29 00:55:57 +01:00
celerizer a2ab7defa9 Fix unofficial achievements not being loaded
RetroArch is currently returning only achievements with flag 3 from the site, regardless of whether "Test Unofficial" is on or not. This change makes RetroArch return every achievement from the site when this the option is on or only those marked with Flag 3 (core cheevos) when off.
2017-12-28 17:48:58 -06:00
twinaphex 5c876647ed (NSW) Small cleanups 2017-12-29 00:45:00 +01:00
Twinaphex 946b765e61 Merge pull request #5981 from celerizer/master
Support Neo Geo Pocket
2017-12-29 00:13:22 +01:00
Twinaphex 817247851f Update CHANGES.md 2017-12-29 00:12:01 +01:00
misson20000 1d6e8baa03 improve switch audio driver buffering behaviour 2017-12-29 00:10:01 +01:00
misson20000 033a7259b4 audio driver for the switch 2017-12-29 00:10:01 +01:00
misson20000 6d2a7b1f26 Nintendo Switch (libtransistor) port 2017-12-29 00:10:01 +01:00
celerizer a79bd5a509 Support Neo Geo Pocket
For after https://github.com/libretro/beetle-ngp-libretro/pull/37 is merged.
2017-12-28 16:38:57 -06:00
Twinaphex 00567ac3a8 Merge pull request #5978 from RobLoach/monochrome-inverted
Add Monochrome Inverted icon theme
2017-12-28 22:26:54 +01:00
Alcaro a8359a8664 VFS specification very clearly says zero or minus one, not 'return whatever rename() says'. 2017-12-28 19:11:43 +01:00
Rob Loach a6d757f0aa locale: Add Monochrome Inverted translation 2017-12-28 09:12:49 -05:00
Rob Loach a1467346f5 theme: Add Monochrome Inverted icon theme 2017-12-28 09:10:58 -05:00
Twinaphex f5e5490724 Merge pull request #5976 from theheroGAC/patch-27
little italian translation fix
2017-12-28 12:15:53 +01:00
theheroGAC ab69edb51a Update msg_hash_it.h 2017-12-28 10:44:26 +01:00
theheroGAC 0f3836f549 little italian translation fix 2017-12-28 10:42:00 +01:00
Francisco José García García 86388283a4 [PSP] Buildfix 2017-12-28 10:36:11 +01:00
twinaphex 7b5547d368 Try to be safer with strlcpy calls 2017-12-28 05:56:45 +01:00
Twinaphex 321285811f Merge pull request #5973 from RobLoach/light
XMB: Add Light theme
2017-12-28 05:40:59 +01:00
Twinaphex 69fe86f57d Update CHANGES.md 2017-12-28 04:34:04 +01:00
Alcaro a7be0520b5 Define replaced 2017-12-28 04:24:33 +01:00
Alcaro 12ed6b8657 oh right, that's what it wants. 2017-12-28 04:13:00 +01:00
Alcaro c29d5906d2 okay so why exactly are we using seek instead of tell/size 2017-12-28 04:08:41 +01:00
Alcaro b933a8796b Let's not pretend to calculate deviation if we don't actually do that 2017-12-28 03:05:42 +01:00
Twinaphex 7e3a458925 Merge pull request #5975 from RobLoach/scale
xmb: Allow menu scale of 200%
2017-12-28 02:21:47 +01:00
Rob Loach 04d2607368 xmb: Allow menu scales of 200% 2017-12-27 20:11:07 -05:00
Twinaphex 073954c561 Merge pull request #5972 from RobLoach/xmb-font-color
Menu: Allow changing Font Color
2017-12-28 01:44:05 +01:00
Twinaphex f330c0ebc7 Merge pull request #5921 from frangarcj/rthreads_audio
Rthreads audio
2017-12-28 01:42:31 +01:00
Rob Loach 60702e3871 xmb: Remove gradient on Light theme 2017-12-27 19:41:46 -05:00
Rob Loach d71a2db781 XMB: Add Light theme 2017-12-27 17:33:39 -05:00
Rob Loach b4d2ed3421 Merge branch 'xmb-font-color' of github.com:RobLoach/RetroArch into xmb-font-color 2017-12-27 17:03:52 -05:00
Rob Loach 85f9eb402e font-color: Remove XMB from the Font Color naming scheme 2017-12-27 17:03:39 -05:00
Rob Loach 9efc0d2a78 font-color: Remove reference to config.def.h 2017-12-27 16:51:05 -05:00
Rob Loach db33df2268 font-color: Only display on Advanced Settings 2017-12-27 16:45:27 -05:00
Rob Loach f96b285715 font-color: Use the settings for the color 2017-12-27 16:38:36 -05:00
Twinaphex c7c71cb01f Fix Apple build 2017-12-27 22:36:10 +01:00
Twinaphex b1c0fe7d0d Fix CXX_BUILD for Apple 2017-12-27 22:33:32 +01:00
Rob Loach f51994d7e3 font-color: Fix parsing setting 2017-12-27 16:30:01 -05:00
Rob Loach 29c9afa609 font-color: Update the font color to reflect in the menu 2017-12-27 16:21:56 -05:00
twinaphex 56b4d4917c One CXX_BUILD buildfix 2017-12-27 22:21:39 +01:00
twinaphex 008881462d Cleanups 2017-12-27 22:12:01 +01:00
twinaphex dbaa237c71 (pthreads) Cleanups 2017-12-27 22:08:59 +01:00
twinaphex 4c0c842451 Make D3D headers more suitable for C89_BUILD 2017-12-27 22:03:13 +01:00
twinaphex b10616ffb7 Fix C89_BUILD 2017-12-27 21:49:56 +01:00
Twinaphex 12aa454d54 Merge pull request #5971 from fr500/master
only reinit when HID devices are attached on dinput
2017-12-27 21:43:47 +01:00
radius 2cab3a7e4e fix some nits 2017-12-27 15:43:03 -05:00
radius e7616f2dc2 fix include 2017-12-27 15:38:54 -05:00
radius c3e6ac96aa only reinit when HID devices are attached 2017-12-27 15:34:18 -05:00
Twinaphex 0215c37447 Update CHANGES.md 2017-12-27 21:19:37 +01:00
twinaphex eb62b610cb (LED code) Cleanups 2017-12-27 21:17:47 +01:00
twinaphex c8a134818a Fix fall-through 2017-12-27 21:05:24 +01:00
twinaphex cf4084c829 Update Griffin 2017-12-27 20:40:05 +01:00
Francisco José García García 443e454e5a (psp pthreads) Buildfixes 2017-12-27 19:28:14 +01:00
Twinaphex 96ae1608d5 Merge pull request #5970 from orbea/flac
qb: Allow using the system flac.
2017-12-27 19:25:08 +01:00
orbea a2032a56a0 qb: Allow using the system flac. 2017-12-27 09:51:19 -08:00
Twinaphex 61b7b2e590 Merge pull request #5968 from pattheaux/leds
Leds
2017-12-27 18:01:33 +01:00
Twinaphex 04ec4d96ca Merge pull request #5969 from orbea/zlib
Makefile.common: Clean up zlib check.
2017-12-27 17:58:44 +01:00
orbea e07ce68e7f Makefile.common: Clean up zlib check. 2017-12-27 08:38:47 -08:00
Ian House 78c49047a5 Changed the retro environment LED interface to 46 to avoid a numbering conflict 2017-12-27 11:18:49 -05:00
Francisco José García García b8d84dd0b9 Merge pull request #5967 from frangarcj/master
[PSP] Fix build
2017-12-27 17:17:22 +01:00
Francisco José García García 4fe6f032ec [PSP] Fix build 2017-12-27 17:15:26 +01:00
Ian House 8178e21cda Merge branch 'master' of https://github.com/libretro/RetroArch into leds 2017-12-27 11:14:35 -05:00
Ian House 6f5c68c1d0 Merge fixes 2017-12-27 11:14:24 -05:00
Ian House aa7c289708 Added an LED interface and a Raspberry Pi GPIO implementation 2017-12-27 11:11:08 -05:00
Ian House 917b354eb7 Added an LED interface and a Raspberry Pi GPIO implementation 2017-12-27 11:05:12 -05:00
Francisco José García García 599d08fe12 Merge branch 'master' into rthreads_audio 2017-12-27 12:03:57 +01:00
Twinaphex c5c9a6b563 Update CHANGES.md 2017-12-27 08:40:22 +01:00
Twinaphex 636ee4489a Update CHANGES.md 2017-12-27 08:39:14 +01:00
twinaphex 4ecb4d5dfb (Wiiu) Add overlays courtesy of r-type, thanks 2017-12-27 08:38:03 +01:00
twinaphex 12cbacae31 Update 2017-12-27 08:23:17 +01:00
twinaphex c4f06f2ef2 (psp pthreads) Buildfixes 2017-12-27 07:48:04 +01:00
Twinaphex a57df7d43f Merge pull request #5962 from frangarcj/bake_pthreads
[PSP] Bake pthreads with griffin
2017-12-27 05:56:25 +01:00
Twinaphex 3f5aa82853 Merge pull request #5964 from orbea/miniupnpc
qb: Disable all miniupnpc support with --disable-miniupnpc.
2017-12-27 05:55:50 +01:00
Twinaphex d64154bf40 Merge pull request #5965 from fr500/master
avoid dinput reinitialization on unrelated WM_DEVICECHANGE events
2017-12-27 05:55:38 +01:00
bparker06 2dcd2bc5c6 Fix relative path 2017-12-26 22:02:11 -05:00
Brad Parker a3a5f6e07e win32: add Unicode versions of getenv, GetModuleFileName, LoadLibrary and _mkdir 2017-12-27 02:55:53 +00:00
radius ab54fda509 avoid dinput reinitialization on unrelated WM_DEVICECHANGE events 2017-12-26 20:17:26 -05:00
Twinaphex fee7ab9dc8 Merge pull request #5963 from meepingsnesroms/master
Use relative path names better for devkitARM
2017-12-27 02:16:22 +01:00
orbea c63011db71 qb: Disable all miniupnpc support with --disable-miniupnpc. 2017-12-26 16:18:47 -08:00
meepingsnesroms 417be6e497 Use relative path names better for devkitARM 2017-12-26 15:32:56 -08:00
Francisco José García García 73e81dba96 [PSP] Bake pthreads with griffin 2017-12-26 23:45:09 +01:00
meepingsnesroms 5ff20a708a Merge pull request #5 from libretro/master
Update to upstream
2017-12-26 14:35:37 -08:00
meepingsnesroms ca062cbe38 Merge branch 'master' into master 2017-12-26 14:35:18 -08:00
twinaphex 2768f639a2 Fix csnd corrupting dsp audio driver on failure, add 3dsx/smdh to
gitignore
2017-12-26 21:36:46 +01:00
Twinaphex 6fc71b6b55 Merge branch 'master' into master 2017-12-26 21:35:25 +01:00
twinaphex 9488e4e25a Add pthreads-emb implementation 2017-12-26 20:52:03 +01:00
Francisco José García García c23d84c54f [VITA][PSP] New Audio Driver 2017-12-26 16:50:33 +01:00
meepingsnesroms f8b9c8fa6d Fix csnd corrupting dsp audio driver on failure, add 3dsx/smdh to gitignore 2017-12-26 05:31:51 -08:00
Twinaphex 4b728cd264 Update CHANGES.md 2017-12-26 09:57:51 +01:00
Twinaphex dc207beb80 Merge pull request #5956 from orbea/miniupnpc
qb: HAVE_MINIUPNPC is needed for builtin miniupnpc
2017-12-26 09:57:18 +01:00
orbea ac044c47ee qb: HAVE_MINIUPNPC is needed for builtin miniupnpc 2017-12-26 00:52:04 -08:00
Twinaphex 14eb6d5cda Update CHANGES.md 2017-12-26 09:51:35 +01:00
twinaphex 2be575bb19 Enable CHEEVOS for PS3 2017-12-26 09:50:46 +01:00
twinaphex 08d9ee9600 (PSP) Add thread support 2017-12-26 09:45:45 +01:00
Twinaphex d3fd5f25d5 Merge pull request #5953 from orbea/miniupnpc
Makefile.common: Clean up the miniupnpc check
2017-12-26 09:41:08 +01:00
Twinaphex 29ad88e09c Merge pull request #5955 from fr500/master
fix menu toggle with keymapper active
2017-12-26 09:40:08 +01:00
orbea 9e7882ec96 Makefile.common: Clean up the miniupnpc check 2017-12-26 00:15:54 -08:00
radius 7d9193555a fix menu toggle with keymapper active 2017-12-26 01:20:36 -05:00
meepingsnesroms 5a4bd619ba Revert "Merge branch 'master' into master"
This reverts commit 4b68a21a7e, reversing
changes made to 5e0f78e8a0.
2017-12-25 18:27:59 -08:00
meepingsnesroms c978b53214 Merge pull request #4 from libretro/master
Use better devkit arm fix
2017-12-25 17:53:08 -08:00
meepingsnesroms 4b68a21a7e Merge branch 'master' into master 2017-12-25 17:52:38 -08:00
twinaphex 5e0f78e8a0 Update CHANGES.md 2017-12-26 00:47:31 +01:00
twinaphex 0a2b44273d Disable automatically add content by playlist by default 2017-12-25 18:19:55 +01:00
twinaphex 2fd3f41865 Bump to version 1.7.0 2017-12-25 18:17:57 +01:00
Twinaphex de5d5b0860 Merge pull request #5951 from aliaspider/master
(CTR) build fix.
2017-12-25 09:21:52 +01:00
aliaspider 1f143927ca (CTR) build fix. 2017-12-25 08:51:50 +01:00
Twinaphex 2c865d862b Update CHANGES.md 2017-12-25 08:37:50 +01:00
twinaphex 7321c6c87a (xaudio) Cleanups 2017-12-25 08:11:10 +01:00
twinaphex 3f281bb31f Cleanups 2017-12-25 07:49:07 +01:00
twinaphex c0c9764afe Update 2017-12-25 07:36:49 +01:00
twinaphex 72bf298701 libchdr requires both 7zip and zlib 2017-12-25 04:18:42 +01:00
twinaphex 8ff5c00600 HAVE_7ZIP should not be a requirement for CHD 2017-12-25 04:17:06 +01:00
bparker06 87e5dc9a93 Add DOS to the list of supported operating systems 2017-12-24 21:47:40 -05:00
Brad Parker 89bd38918e win32: correct usage of GetWindowPlacement per MS docs, fixes game window position on Win95/98 2017-12-24 17:17:36 -05:00
twinaphex 6664f8a772 (STB Truetype) Try to silence potential uninitialized reference to winding_lengths
variable
2017-12-24 18:54:57 +01:00
twinaphex 2e1e2cb406 Update 2017-12-24 18:53:03 +01:00
Brad Parker 6d484b7724 xinput: check for valid function pointers before calling them 2017-12-23 23:02:29 -05:00
Brad Parker 9cd3746702 enable STB Unicode font renderer for PS3 2017-12-23 21:35:45 -05:00
Twinaphex 2899d624cc Update config.def.h 2017-12-23 08:13:57 +01:00
twinaphex ca3c101161 Define DEX_BUILD/CEX_BUILD/ODE_BUILD for PS3 versions - set
custom buildbot core updater URL per target
2017-12-23 08:12:39 +01:00
Twinaphex 9bfba320f0 Merge pull request #5947 from esoptron/patch-1
Disable Temporal Interpolation by default in internal FFmpeg core
2017-12-23 04:47:14 +01:00
esoptron 2be322acbb Disable Temporal Interpolation by default in internal FFmpeg core 2017-12-22 17:24:13 -05:00
Twinaphex 05820677db Merge pull request #5942 from RobLoach/c_converter
Update c_converter with libretro-common vfs changes
2017-12-21 02:23:24 +01:00
Rob Loach 4564301bb5 Update c_converter with libretro-common vfs changes 2017-12-20 20:15:33 -05:00
twinaphex c2b8f03e50 Add CHANGES.md 2017-12-21 02:08:18 +01:00
twinaphex 6557bff118 Prevent some warnings on PS3 2017-12-21 02:06:34 +01:00
twinaphex ce50d39ada Update CHANGES.md 2017-12-21 01:29:23 +01:00
Twinaphex 0e3c067a53 Merge pull request #5941 from frangarcj/vita-adrenaline
(PSP) Fix for VITA's Adrenaline
2017-12-21 01:05:28 +01:00
Francisco José García García ab31e05f65 (PSP) Fix for VITA's Adrenaline 2017-12-21 00:09:38 +01:00
Brad Parker aeac9786b1 ps3: copy individual cores to a separate folder for use with the updater 2017-12-20 12:01:15 -05:00
twinaphex a4500eeafc Simplify config_file_write 2017-12-20 17:07:31 +01:00
twinaphex 513885d465 (PS3) Set up cheat dir/autoconfig dir 2017-12-20 16:11:59 +01:00
twinaphex f6e9a624ca (PS3) Add default dir for core download assets 2017-12-20 16:02:40 +01:00
twinaphex 259b077eef (PS3) Set PATH_MAX_LENGTH to CELL_FS_MAX_FS_PATH_LENGTH 2017-12-20 15:45:11 +01:00
twinaphex 7cda1aaab9 Set PATH_MAX_LENGTH to 512 for PS3 2017-12-20 15:39:01 +01:00
twinaphex 6441a25c35 PS3 has AF_INET6 defined yet we still shouldn't take this path 2017-12-20 15:34:57 +01:00
twinaphex 56f9d0a7cf Cleanup 2017-12-20 05:27:20 +01:00
Twinaphex f952123095 Merge pull request #5938 from fr500/master
Get rid of the console window correctly on MSVC 2003
2017-12-20 04:08:16 +01:00
radius 7a89537a16 this line is not required 2017-12-19 21:56:16 -05:00
radius ef7ecf229b try to get rid of the console window in MSVC 2003 builds 2017-12-19 21:56:15 -05:00
Twinaphex 089cb2a34d Merge pull request #5937 from QuarkTheAwesome/master
[WiiU] Add -D__WUT__; fixes integrated libiosuhax
2017-12-20 03:50:25 +01:00
Ash 46bffb8b12 [WiiU] Add -D__WUT__; fixes integrated libiosuhax
There was some type confusion around IOS_Open with libiosuhax, leading
to it treating the first instruction of that function as an address to
point to. Adding -D__WUT__ lets it know that we are using proper symbols
and not function pointers.
2017-12-20 13:47:30 +11:00
twinaphex 2f422a457f Revert config_file.c 2017-12-20 02:52:01 +01:00
Twinaphex 5eb6c5dae9 Merge pull request #5936 from clienthax/ps3res
More ps3 networking fixs.
2017-12-19 23:02:14 +01:00
clienthax 73aa381b27 More ps3 networking fixs. 2017-12-19 21:39:22 +00:00
twinaphex 7c73930a87 Add libiosuhax/libfat 2017-12-19 22:12:58 +01:00
Alcaro b7249525d4 guess drunk is better than untested 2017-12-19 00:13:19 +01:00
Alcaro b2d5fad4f5 strtok is drunk 2017-12-19 00:08:25 +01:00
Alcaro bfeb9ff5c2 that's an interesting double free 2017-12-18 22:29:27 +01:00
twinaphex 106721d943 Update Polish language - use the header 2017-12-18 19:46:28 +01:00
Twinaphex 659b32adb4 Merge pull request #5933 from alfrix/polish
Polish translation update (DEX357)
2017-12-18 18:54:02 +01:00
Alfrix 8371129143 Polish translation update (DEX357)
https://forums.libretro.com/t/polish-translation-characters/13763/7
2017-12-18 14:39:49 -03:00
Andrés 746c5e6845 Fix for empty console window on MSVC2003 builds 2017-12-18 09:42:24 -05:00
twinaphex 95e807749d Simplification/cleanup 2017-12-18 07:09:44 +01:00
twinaphex 422ce9396c Cleanup - input_key_pressed 2017-12-18 06:14:48 +01:00
twinaphex 69f85556a3 Get rid of meta_key_pressed 2017-12-18 05:59:57 +01:00
twinaphex 7b210ccf37 Don't call meta key pressed if not bound 2017-12-18 05:49:17 +01:00
twinaphex 1978689dcb Rewrite input_keys_pressed_iterate 2017-12-18 05:22:45 +01:00
twinaphex 9b9cf7b036 Cleanups 2017-12-18 05:13:57 +01:00
twinaphex 3c5d2f047c Create input_keys_pressed_iterate 2017-12-18 05:09:16 +01:00
Twinaphex db345d8ad6 Update CHANGES.md 2017-12-18 01:56:44 +01:00
twinaphex bd7a8a0479 Show Quick Menu title correctly 2017-12-18 01:55:35 +01:00
Twinaphex 6c266364fc Update CHANGES.md 2017-12-18 01:14:45 +01:00
twinaphex e16a501c46 Update CHANGES.md 2017-12-18 01:01:00 +01:00
Twinaphex b6f9681373 Merge pull request #5931 from fr500/master
fix fullscreen cli option
2017-12-17 19:21:26 +01:00
radius a7f989fdb6 fix fullscreen toggle 2017-12-17 13:16:40 -05:00
Twinaphex d3a72d147f Merge pull request #5930 from fr500/master
update this label to Stop immediately
2017-12-17 18:50:56 +01:00
radius 3ed436dbd0 update this label to Stop immediately 2017-12-17 12:16:34 -05:00
Twinaphex da5d0650d5 Merge pull request #5929 from fr500/master
show the frontend name and CPU architecture on netplay rooms
2017-12-17 18:10:39 +01:00
radius 7bdd8e945a show the frontend name and CPU architecture on netplay rooms 2017-12-17 11:51:50 -05:00
twinaphex d169d51180 Revert "Rewrite menu toggle"
This reverts commit 144ca2cfd8.
2017-12-17 17:21:51 +01:00
twinaphex edae66e413 Faulty fall-through 2017-12-17 17:12:02 +01:00
twinaphex 0f906d0986 Revert "that's a dumb bug."
This reverts commit 69a630f8e0.
2017-12-17 17:06:02 +01:00
Twinaphex 26f483b22d Merge pull request #5882 from hiddenasbestos/dolphinbar
Mayflash DolphinBar
2017-12-17 16:48:26 +01:00
Twinaphex 4758d3e22b Merge pull request #5926 from hyarsan/master
Fix typo in CHANGES.md
2017-12-17 14:30:16 +01:00
hyarsan c87ee34d07 Fix typo in CHANGES.md 2017-12-17 14:10:21 +01:00
Twinaphex bf9b6a7ddd Merge pull request #5925 from hiddenasbestos/overlay_fix
Fixes for overlay buttons
2017-12-17 14:06:18 +01:00
David Walters 02f6301607 fix reversed logic 2017-12-17 12:46:21 +00:00
David Walters adffa5fc4c Fixes for overlay buttons 2017-12-17 12:36:18 +00:00
meepingsnesroms 0e22aec947 Bugfixes
Fix multiple line ending tipes in changed files, use DEVKITARM variable when referencing that directory, add 3ds .lst file to gitignore
2017-12-16 20:47:08 -08:00
meepingsnesroms bb7ee12766 Fix compile on new devkitARM 2017-12-16 19:20:43 -08:00
twinaphex 2fa03755eb Cleanups 2017-12-17 04:11:56 +01:00
twinaphex 144ca2cfd8 Rewrite menu toggle 2017-12-17 03:54:11 +01:00
meepingsnesroms d4503bc037 Merge pull request #3 from libretro/master
Prepare to update to newest devkitARM
2017-12-16 17:39:35 -08:00
twinaphex 49634cc46e Create manual get_value cbs callback for URL 2017-12-16 22:31:38 +01:00
ggf906 961972a858 (PSP) (VITA) New rthreads audio driver 2017-12-16 18:02:47 +01:00
ggf906 66157307d8 (PSP) Add thread support 2017-12-16 18:02:46 +01:00
twinaphex 9596cc2866 Update 2017-12-16 17:06:37 +01:00
Brad Parker 03970ddacd Show BSD OSes in frontend OS info 2017-12-16 10:46:52 -05:00
Twinaphex 9f336b705a Merge pull request #5918 from bparker06/opacity_x11
x11: enable window transparency
2017-12-16 16:40:09 +01:00
Brad Parker af85c20e56 Update CHANGES.md 2017-12-16 10:35:25 -05:00
Brad Parker 81cd5435a1 x11: enable window transparency 2017-12-16 10:29:30 -05:00
Twinaphex c9716c066f Merge pull request #5919 from orbea/dbus
Ifdef the broken dbus code better.
2017-12-16 14:50:47 +01:00
orbea 1ddcc7be82 Ifdef the broken dbus code better. 2017-12-16 05:19:05 -08:00
twinaphex 6622cb0810 Update libretro API 2017-12-16 14:12:38 +01:00
Andrés 2974258589 Update CHANGES.md 2017-12-16 00:58:29 -05:00
Andrés f26db935ec Update CHANGES.md 2017-12-16 00:57:58 -05:00
Andrés cac184c75c Update CHANGES.md 2017-12-16 00:50:53 -05:00
twinaphex d8068553f4 Update 2017-12-16 02:47:59 +01:00
twinaphex 3fd059e073 Update 2017-12-16 01:20:21 +01:00
twinaphex c63859cca9 Add safeguard suggested by Alcaro 2017-12-16 00:19:56 +01:00
Andrés fbdd53b717 Change the entry point in MSVC2010 builds 2017-12-15 18:03:20 -05:00
twinaphex 4ba1e8336d Update libretro-common 2017-12-15 23:21:22 +01:00
twinaphex 1b6b670882 filestream - use int64_t 2017-12-15 21:10:58 +01:00
Twinaphex 60aa6bf3fb Fix warnings 2017-12-15 20:33:39 +01:00
twinaphex b7eba4b28f Update image_core.c 2017-12-15 19:25:30 +01:00
Andrés 4604faf8d9 Update RetroArch-msvc2010.vcxproj 2017-12-15 12:46:35 -05:00
twinaphex 42462c2ba9 Silence some warnings 2017-12-15 18:31:12 +01:00
twinaphex 4572675a15 (PS3) Fix Salamander build 2017-12-15 18:20:18 +01:00
Alcaro cbdb91a668 Remove file_ prefixes, for consistency with the rest of libretro. They're not useful, anything they'd mean is provided by the vfs_iface-> anyways. Also rename delete to remove to match libc and avoid C++ keywords. 2017-12-15 17:28:55 +01:00
Andrés f25ba04d91 Change the entry point in non DEBUG builds 2017-12-15 09:43:39 -05:00
Twinaphex fde0cca93d Merge pull request #5914 from frangarcj/psp_audio
(PSP) Sync audio thread
2017-12-15 14:19:12 +01:00
ggf906 21aedd46ee (PSP) Sync audio thread 2017-12-15 13:35:10 +01:00
Alcaro 69a630f8e0 that's a dumb bug. 2017-12-15 11:21:43 +01:00
Alcaro c88e5e08a0 Add VFS support to imageviewer (should get Unicode filenames working on Windows too, even without VFS) 2017-12-15 11:00:02 +01:00
Alcaro 29b9ec0b5e Create this thing because makefile 2017-12-15 10:12:01 +01:00
Alcaro 03723118e5 Some minor clarifications 2017-12-15 10:02:49 +01:00
Andrés 0602f8eb79 Try to get rid of the console in MSVC 2010 builds 2017-12-14 21:36:33 -05:00
twinaphex 4369ac1545 Update 2017-12-15 00:35:11 +01:00
twinaphex 1932513edb Update libretro-common 2017-12-15 00:31:37 +01:00
Alcaro ecf5d55a25 Rename this one, to not codify policy in what should be a frontend decision 2017-12-14 21:21:18 +01:00
twinaphex c6217ef14b (file_path.c) Get rid of libretro.h dependency 2017-12-14 20:06:15 +01:00
twinaphex c7c4b723d6 Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
Brad Parker 8c0adf3594 move path_file_rename and path_file_remove into VFS 2017-12-14 13:32:26 -05:00
twinaphex 842ac40c6e Style nit 2017-12-14 19:09:29 +01:00
Alcaro 26e191f642 These have no reason to not be static 2017-12-14 18:58:20 +01:00
Alcaro ff1d452096 Implement get_path 2017-12-14 18:48:37 +01:00
twinaphex ef3ba4d989 Get rid of retro_vfs_file_putc 2017-12-14 18:45:54 +01:00
Alcaro f282044be2 this doesn't belong here. 2017-12-14 18:10:04 +01:00
Alcaro f536d25013 Too many ifdefs 2017-12-14 17:55:30 +01:00
Alcaro d5847c2391 Revert and fix "Don't use opaque handle to get around warnings and other issues"
This reverts commit e23409926e.
2017-12-14 17:28:13 +01:00
twinaphex 7bf996abe6 Cleanup 2017-12-14 16:53:19 +01:00
twinaphex b20de872a3 Remove file_stream.h dependency on vfs_implementation.c 2017-12-14 16:41:10 +01:00
twinaphex 41b1329bc1 Rewrite filestream_seek call 2017-12-14 15:56:28 +01:00
twinaphex 2c0c6ae65e Attempt to fix MSVC 2017-12-14 15:41:23 +01:00
twinaphex f6937e27f2 Add vfs_implementation to Salamander builds 2017-12-14 15:18:48 +01:00
twinaphex 10199d4c81 Remove this 2017-12-14 15:15:19 +01:00
twinaphex e23409926e Don't use opaque handle to get around warnings and other issues 2017-12-14 15:06:28 +01:00
twinaphex dadf968134 Add TODO/FIXME note 2017-12-14 14:05:55 +01:00
twinaphex 0b6c191354 Start moving file stream code over to vfs_implementation.c 2017-12-14 14:03:42 +01:00
twinaphex 7788a852c0 Some more cleanups 2017-12-14 00:16:18 +01:00
twinaphex d12df0d91f Rewrite file_stream.c - reimplement filestream_error 2017-12-14 00:01:58 +01:00
twinaphex 4dfbfc4d02 Reimplement filestream_gets 2017-12-13 19:19:49 +01:00
twinaphex adb0add226 print_buf_lines - moved 2017-12-13 05:04:52 +01:00
Twinaphex 7abf68a5b3 Merge pull request #5908 from RobLoach/patch-24
Replace double quotes in thumbnail names
2017-12-13 03:51:37 +01:00
twinaphex eeefdf980c Add menu_networking.c/menu_networking.h 2017-12-13 03:35:12 +01:00
Rob Loach cd2ae18ec1 Replace double quotes in thumbnail names 2017-12-12 13:08:24 -05:00
Twinaphex 44be5b0999 Merge pull request #5907 from hyarsan/master
Change "Retroarch" to "RetroArch" in HB Launcher for consistency.
2017-12-12 17:54:53 +01:00
hyarsan a28bc6ed23 Change "Retroarch" to "RetroArch" in HB Launcher for consistency.
In the Homebrew Launcher, RetroArch has always appeared as "Retroarch" which doesn't make sense if everything else is "RetroArch". This just does not look right and I get pissed just looking at it. lol
2017-12-12 16:57:33 +01:00
Francisco José García García 982d616025 Update psp_audio.c 2017-12-12 13:34:45 +01:00
twinaphex f8fd94f6f4 Buildfix 2017-12-12 12:22:06 +01:00
Twinaphex 709c7de40f Merge pull request #5906 from gblues/remove-trailing-whitespace
Remove trailing whitespace
2017-12-12 11:19:12 +01:00
gblues 0f7de204f7 Last batch of whitespace cleanup (post-rebase)
-- looks like a few files committed with DOS line endings
2017-12-12 00:24:46 -08:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

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

add ming32 config too

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

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

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

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

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

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

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

allow building RetroArch from the command pallete

Allow building, and starting RetroArch via vscode Tasks

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

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

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

I've just added an `if(cheevos_locals.core.count > 0)` and added indentation. The diff makes it look like it got more changes than it actually got.
2017-11-22 12:56:17 -02:00
Twinaphex d5f950a624 Merge pull request #5740 from theheroGAC/patch-25
small change to translation
2017-11-22 13:08:39 +01:00
Twinaphex d991908ba8 Merge pull request #5741 from orbea/vulkan
Silence -Wunused-function warning.
2017-11-22 13:08:24 +01:00
Twinaphex b35f6a48cb Merge pull request #5742 from TotalCaesar659/patch-1
Updated Russian translation
2017-11-22 13:08:12 +01:00
Twinaphex 74693e62d3 Merge pull request #5744 from bparker06/x11_icon
x11: add RetroArch logo to window title bar
2017-11-22 13:07:02 +01:00
Brad Parker 20b73cd676 x11: add RetroArch logo to window title bar 2017-11-22 00:01:42 -05:00
Brad Parker 3c975fe6bd add option to force 32-bit compilation on 64-bit compilers 2017-11-21 23:57:20 -05:00
TotalCaesar659 bfe84d3348 Updated Russian translation 2017-11-22 04:14:34 +03:00
orbea e10dd4d95e Silence -Wunused-function warning. 2017-11-21 13:29:46 -08:00
theheroGAC ca1ae5276e small change to translation 2017-11-21 20:42:46 +01:00
twinaphex c0567266b1 Fix mistake 2017-11-21 19:40:39 +01:00
twinaphex 29b421512a Try to be safer 2017-11-21 19:22:44 +01:00
Twinaphex e8b10d342a Update CHANGES.md 2017-11-21 16:40:48 +01:00
twinaphex 6f5cad5f59 Bump to version 1.6.9 2017-11-21 16:32:24 +01:00
Twinaphex 3ac298a2ce Merge pull request #5736 from orbea/exists
qb: Add a function to find executables in the $PATH
2017-11-21 16:29:10 +01:00
Twinaphex 2f7f90ce36 Merge pull request #5738 from Supernature2k/patch-1
Fix https://github.com/libretro/RetroArch/issues/5737
2017-11-21 16:28:59 +01:00
twinaphex 2c7e5f98fc Bump version code 2017-11-21 16:26:45 +01:00
Supernature2k d9afa9170c Fix https://github.com/libretro/RetroArch/issues/5737
fix issue with network command working only 1 time each
see https://github.com/libretro/RetroArch/issues/5737
2017-11-21 12:04:47 +01:00
orbea b744f2a2c9 qb: Add a function to find executables in the $PATH 2017-11-20 22:06:50 -08:00
Twinaphex d980336a80 Merge pull request #5735 from RobLoach/fix-strdup-char
Fix strdup() memory leak
2017-11-21 04:38:56 +01:00
Twinaphex d36d3e2c89 Update menu_dialog.c 2017-11-21 04:38:38 +01:00
Rob Loach 9e3d6adf6e Fix coding standard 2017-11-20 18:47:27 -05:00
Rob Loach 25c116e192 Fix strdup() memory leak 2017-11-20 18:46:07 -05:00
Twinaphex f27574b807 Merge pull request #5734 from FayneAldan/patch-1
Move Retrosystem to end
2017-11-20 23:41:12 +01:00
twinaphex 76dadbc603 Try to retain backwards compat. with older ffmpeg versions 2017-11-20 23:38:25 +01:00
Twinaphex 517c7b19f5 Merge pull request #5733 from orbea/ffmpeg_snapshot
Fix build with ffmpeg snapshots.
2017-11-20 23:36:34 +01:00
Fayne Aldan 69212cf7c7 Move Retrosystem to end
Enums shouldn't be reordered
2017-11-20 15:19:36 -07:00
orbea 4f5fc6e4ad Fix build with ffmpeg snapshots.
Fixes https://github.com/libretro/RetroArch/issues/5717
2017-11-20 13:52:53 -08:00
meepingsnesroms 9e3d631824 Fix outdated name of function (libretrodb_tool) 2017-11-19 13:25:17 -08:00
Rob Loach be936e9bcf Fix type of font colors 2017-03-14 06:09:46 -04:00
Rob Loach 157fbeccb5 Add Font Text Color settings 2017-03-12 10:33:06 -04:00
5407 changed files with 836165 additions and 229547 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
## Guidelines
1. Rebase before opening a pull request
2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises
## Description
[Description of the pull request, detail any issues you are fixing or any features you are implementing]
## Related Issues
[Any issues this pull request may be addressing]
## Related Pull Requests
[Any other PRs from related repositories that might be needed for this pull request to work]
## Reviewers
[If possible @mention all the people that should review your pull request]
+54 -3
View File
@@ -7,7 +7,13 @@
*.elf
*.dol
*.map
*.swp
.tmp
.tmp.c
.tmp.cxx
config.log
/.project
/.externalToolBuilders/
/retroarch
/retroarch.cfg
/retroarch.exe
@@ -62,11 +68,34 @@ menu/driverspzarch.c
.pc
/media/shaders_glsl/
/obj-w32/
.cproject
.settings
libretro-super
run.sh
convert_rumble.awk
*~
# Wii U
*.depend
*.rpx
*.last
wiiu/wut/elf2rpl/elf2rpl
/pkg/wiiu/retroarch
/pkg/wiiu/wiiu
/pkg/wiiu/rpx
/wiiu-devel.properties
# 3ds
/.lst
*.3dsx
*.cia
*.3ds
*.bnr
*.smdh
/retroarch_3ds.core
/retroarch_3ds.icn
/retroarch_3ds_salamander.icn
# Ctags
/tags
@@ -91,12 +120,13 @@ wiiu/wut/elf2rpl/elf2rpl
pkg/apple/iOS/build/
pkg/apple/iOS/modules/
pkg/apple/build/
ui/drivers/qt/moc_*
ui/drivers/moc_*
obj-unix/
.vagrant/
.MAKEFILE_DEFINES
.CONFIG_DEFINES
/pkg/msvc/Release Cg/*.exe
/pkg/msvc/Release Cg/*.iobj
/pkg/msvc/Release Cg/*.ipdb
@@ -104,11 +134,32 @@ obj-unix/
/pkg/msvc/Release Cg/*.lpl
/pkg/msvc/Release Cg/*.cfg
/pkg/msvc/*.db
/pkg/msvc/.vs
/pkg/msvc/*/.vs
/pkg/msvc/msvc-2010/Release Cg/RetroArc.27FF7CE1.tlog/*.tlog
/pkg/msvc/msvc-2010/Release Cg/RetroArc.27FF7CE1.tlog/*.lastbuildstate
/pkg/msvc/msvc-2010/Release Cg/*.log
/pkg/msvc/msvc-2010/Release Cg/*.obj
/pkg/msvc/msvc-2010/Release Cg/*.res
/pkg/msvc/msvc-2010/Release Cg/*.pdb
retroarch.cfg
Makefile.local
# Emscripten artifacts
retroarch.js
retroarch.js.mem
*.bc
*.wasm
# only ignore .js files in the repo root
/*.js
# Switch
*.d
exefs/*
retroarch_switch.pfs0
retroarch_switch.lst
retroarch_switch.nacp
retroarch_switch.nro
retroarch_switch.nso
+16
View File
@@ -5,7 +5,23 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
+19 -2
View File
@@ -10,7 +10,7 @@ matrix:
- g++-mingw-w64-i686
- mingw-w64-i686-dev
script:
- CROSS_COMPILE=i686-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- CROSS_COMPILE=i686-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501" ./configure --disable-d3d8 --disable-d3d9 --disable-d3d10 --disable-d3d11 --disable-d3d12 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: mingw-x64
addons:
apt:
@@ -18,7 +18,7 @@ matrix:
- g++-mingw-w64-x86-64
- mingw-w64-x86-64-dev
script:
- CROSS_COMPILE=x86_64-w64-mingw32- ./configure --disable-d3d9 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- CROSS_COMPILE=x86_64-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501" ./configure --disable-d3d8 --disable-d3d9 --disable-d3d10 --disable-d3d11 --disable-d3d12 && make HAVE_ZLIB=1 HAVE_BUILTINZLIB=1 HAVE_RPNG=1
- compiler: gcc
- compiler: clang
addons:
@@ -34,6 +34,20 @@ matrix:
osx_image: xcode7.3
script:
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
- os: osx
osx_image: xcode9.3
script:
- cd ~/
- brew install --force-bottle qt5
- git clone --depth=50 https://github.com/libretro/libretro-super
- cd libretro-super/travis
- ./build-retroarch-metal.sh
deploy:
skip_cleanup: true
provider: script
script: cd ../retroarch; bash travis_metal_deploy.sh
on:
branch: master
script:
- ./configure
@@ -55,6 +69,7 @@ addons:
- libsdl-image1.2-dev
- libsdl-mixer1.2-dev
- libsdl-ttf2.0-dev
- libusb-1.0-0-dev
coverity_scan:
project:
name: "RetroArch"
@@ -63,3 +78,5 @@ addons:
build_command_prepend: "./configure; make clean"
build_command: "make"
branch_pattern: coverity_scan
notifications:
email: false
+128
View File
@@ -0,0 +1,128 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}",
"${workspaceRoot}/libretro-common/include"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
]
},
{
"name": "Linux",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "Win32",
"includePath": [
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/winrt",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/um",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/shared",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/winrt",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++17"
},
{
"name": "msys2-mingw32",
"includePath": [
"C:/msys64/mingw32/include",
"C:/msys64/mingw32/i686-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/msys64/mingw32/include",
"C:/msys64/mingw32/i686-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "msys2-mingw64",
"includePath": [
"C:/msys64/mingw64/include",
"C:/msys64/mingw64/x86_64-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/msys64/mingw64/include",
"C:/msys64/mingw64/x86_64-w64-mingw32/include",
"${workspaceRoot}/libretro-common/include",
"${workspaceRoot}/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}
+45
View File
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/retroarch.exe",
"args": ["-v"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceFolder}/retroarch.exe",
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
]
}
+25
View File
@@ -0,0 +1,25 @@
{
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.env.windows": {
"PATH": "/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:$PATH",
"MSYSTEM": "MINGW64",
},
"terminal.integrated.cursorBlinking": true,
"editor.tabSize": 3,
"editor.renderWhitespace": "all",
"editor.insertSpaces": true,
"files.associations": {
"frontend_driver.h": "c",
"*.in": "c",
"*.rh": "c",
"array": "c",
"file_stream.h": "c",
"driver.h": "c",
"iosfwd": "c",
"xlocbuf": "c",
"xmemory0": "c",
"ios": "c"
},
"C_Cpp.dimInactiveRegions": false,
}
+91
View File
@@ -0,0 +1,91 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "msys2-mingw64 build",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true },
"command": "./configure; make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 build with debug symbols",
"type": "shell",
"group": "build",
"command": "./configure; DEBUG=1 make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 rebuild",
"type": "shell",
"group": "build",
"command": "make -j2",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 clean",
"type": "shell",
"group": "build",
"command": "make clean",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
{
"taskName": "msys2-mingw64 run",
"type": "shell",
"group": {
"kind": "test",
"isDefault": true },
"command": "./retroarch -v",
"options": {
"shell": {
"executable": "C:\\msys64\\usr\\bin\\bash.exe",
"args": [
"-c"
]
}
}
}
]
}
+273
View File
@@ -0,0 +1,273 @@
static const char *retroarch_contributors_list = R"(
RetroArch and the libretro team would like to
acknowledge the following contributors:
1ch (L0sted)
Aaahh Ahh (Aaahh)
Aaron Oneal (aarononeal)
Adam Mechtley (amechtley)
Adolfo Ketzer (reztek)
AdrianoML
ajefr
Alberto Simon (asimonf)
Alcaro
Alessandro Mangone (Vektor) (zevektor)
Alex Eckhart (alex34567)
Alex Folland (AlexFolland)
Alexander Spady (alkaseltzerspadt)
Alexandre Garcia (Alexandre-Garcia)
Alfredo Monclus (alfrix)
aliaspider
alphanu1
altiereslima
Alwin Garside (Yogarine)
Amiga1200Gamer (amigagamer)
Andre Leiradella (leiradel)
Andrés (fr500)
Anthony J. Bentley (bentley)
AridRayne
Arto Vainiolehto (arakerlu)
asako (asakous)
Ash (QuarkTheAwesome)
Ashura (CoalaJoe)
Autechre64
Avton1
barbudreadmon
bearoso
blackgur
Boris Timofeev (btimofeev)
bparker06
Brandon Johnson (Denu8thell)
Brian Koropoff (bkoropoff)
Brian S. Stephan (bsstephan)
Brunnis
bubuleur
Casey Borders (CaseyB)
ceb33
celerizer
Chris Merrett (chrisfu)
chu (9chu)
CidVonHighwind
clienthax
Conn O'Griofa (psyke83)
cpsw
Cray Elliott (MP2E)
Cristian Sandu (crazyquark)
ctult
cubtekki
cucholix
cudencuden
cxd4
dalter
Dan Weiss (Dwedit)
danieljg
Daniil Zhilin (GeneralFailer)
dankcushions
Danny Glover (DannyGlover)
Dave (freakdave)
Dave Leaver (danzel)
David Demelier (markand)
David Erickson (daviderickson)
David Shah (daveshah1)
David Walters (hiddenasbestos)
DEX357
diablodiab
dibas
Diego A. (SuperrSonic)
Diego Viola (diegoviola)
Diogo Barros (BlueKore)
DogParty
dor3k
Dudu Akiva (duduke)
duganchen
duskgao
ekipan
ensra
erbridge
esoptron
Ethan Lee (flibitijibibo)
Ezio-PS
Fabio (Oibaf66)
Fabio Ritrovato (Sephiroth87)
Fayne Aldan (FayneAldan)
FIX94
Flame Sage (chris062689)
flyinghead
Francisco José García García (frangarcj)
GameDragon2k
Garrett Brown (garbear)
gblues
Geoffrey Plitt (GeoffreyPlitt)
Glenn Hevey (hevey)
Googer
gouchi
Gregor Richards (GregorR)
Gui Andrade (archshift)
Gustavo Maciel Dias Vieira (gmdvieira)
gvbr
H. İbrahim Güngör (igungor)
hadess
Hans-Kristian Arntzen (Themaister)
Henri Gomez (hgomez)
Henri Gomez (hgomez-sonarsource)
Higor Eurípedes (heuripedes)
hizzlekizzle
Hugo B. (777sha)
hunterk
Hyllian
i30817
iAmGhost
Jack (jakcron)
James Le Cuirot (chewi)
James Sexton (Bezier89)
Jan Holthuis (Holzhaus)
Jay McCarthy (jeapostrophe)
Jean-André Santoni (kivutar)
Jean-Paul Mari (djipi)
Jean-Sébastien Guay (Skylark13)
Jesse Bryan (winneon)
Joel (joel16)
Joerg Sonnenberger (jsonn)
Johannes Schickel (lordhoto)
John Regan (jprjr)
Jon Maddox (maddox)
Jonathan Relf (jonathanrelf)
Joohan Lee (losernator)
Jools Wills (joolswills)
Joseph Carter (iKarith)
Joseph Conan Montgomery (Grotke)
Josh Palmer (ShiftyAxel)
JuanVCS
Justin Jacobs (dorkster)
Justin Weiss (justinweiss)
Ken Rossato (rossato)
kurumushi
kwyxz
l3iggs
lasers
Lawrence Kesteloot (lkesteloot)
liffy (lifning)
Lionel Flandrin (simias)
littleguy77
Logan (loganmc10)
lordashram
Lothar Serra Mari (lotharsm)
Lubosz Sarnecki (lubosz)
lucianposton
lxerandrew
Mahyar Koshkouei (deltabeard)
Marcelo Munhoz Pélos (mpelos)
markwkidd
Maschell
Mat M. (lioncash)
Matt Sephton (gingerbeardman)
Maxime Gauduin (alucryd)
mcrisostomo
meancoot
meepingsnesroms
meleu
Michael K. (kuxii2016)
Michał Durak (micechal)
Mico Chopitea (micochops)
miguelpinheiro
Mike Swanson (chungy)
miqlas (extrowerk)
misson20000
Monroe88
mprobinson
MrHuu
muzuiget
mwtremblay
Nathan S. (natinusala)
nattycleopatra
netux79
nfnty
Nicolas Adenis-Lamarre (nadenislamarre)
Nicolas Guillaumin (nguillaumin)
Nicolas Lopez Fernandez (pyroesp)
Nikita Vakhrushev (JesterIOS)
Nikola Kocic (nikola-kocic)
Niouby
nosh01
not6 (r-type)
notaz
nstCactus
nurupo
Oggom
Oleg Shevchenko (olsh)
opendata26
orbea
OV2
pamapa
Paolo Bonzini (bonzini)
Paul McCarty (a-shark)
Pedro Ribeiro (pedrib)
pinumbernumber
pponso1
Ramiro Morales (ramiro)
retro-wertz
Richard Howell (rmaz)
Rob Loach (RobLoach)
Romain Gay (vikbez)
Romain Graillot (notnotme)
Romain TISSERAND (rtissera)
Roman Kalashnikov (lunixoid)
Royerson
rrooij
rsn8887
Ryunam
rz5
Saggi Mizrahi (ficoos)
SAKUJ0
Sam Pagenkopf (44100hertz)
Sam Stenvall (Jalle19)
Scheiker
Sebastien Ronsse (sronsse)
Sergi Granell (xerpi)
Sergio Padrino (sergiou87)
sergio-br2 (sergiobenrocha2)
Seth Kingsley (sethk)
Shane Mouton (ismouton)
Shizeeg Unadequatov (shizeeg)
Skarsnik
slotek
sparklewind
spec-chum
Stefan (gizmo98)
stefan-gr
Steven M. Vascellaro (stevoisiak)
Stuart Carnie (stuartcarnie)
Sunguk Lee (d3m3vilurr)
Supernature2k
Sven (RetroSven)
Swizzy
Tatsuya79
Terry Lewis (terry-au)
The Last Cabra (vanfanel)
thedax
theheroGAC
TheOfficialFloW
thiolliere
Toad King (ToadKing)
Tobias Jakobi (tobiasjakobi)
Tomáš Kelemen (ToKe79)
Torsten Paul (t-paul)
TotalCaesar659
TroggleMonkey
Twinaphex
URBANsUNITED
vgmoose
Vicky C Lau (vickychenglau)
Vladimir Panteleev (CyberShadow)
Víctor "IlDucci" (IlDucci)
Wang Vincent (susemm)
webgeek1234
Wiktor Strzębała (wiktorek140)
xhp-creations
Yarsan Hoessain (hyarsan)
Yongwoon Cho (ssangkong)
yoshisuga
zeromus
zlice
Zoran Vuckovic (casdevel)
)";
+277 -2
View File
@@ -1,4 +1,279 @@
# 1.6.9 (future)
# 1.7.5 (future)
- CAMERA: Fix Video4Linux2 driver that broke years ago.
- CHEEVOS: Support headerless NES hashing.
- CRT: New porches and interlaced bug fix.
- COMMON: Support for "OEM-102" key (usually '\' on Euro keyboards).
- DISCORD: Add 'Ask To Join' Feature.
- LOCALIZATION: Update Portuguese / Brazilian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Polish translation.
- LOCALIZATION: Update Spanish translation.
- MENU/QT/WIMP: Add option to filter extensions inside archives when adding to a playlist.
- MENU/QT/WIMP: Rename playlist entries with 2 single clicks.
- METAL: Add screenshot support.
- NETPLAY: Save lobby details received back from server after first announcement.
- OPENGL/GLX: Implement Adaptive VSync - GLX_EXT_swap_control_tear.
- OPENGL/WGL: Implement Adaptive VSync - WGL_EXT_swap_control_tear.
- SWITCH: Merging of RetroNX Nintendo Switch port, based on libnx SDK.
- VULKAN: Fix race condition in threaded mailbox emulation.
- VULKAN: Maintenance fixes.
# 1.7.4
- ANDROID: Add sustained performance mode, can be turned on/off in Power Management settings menu.
- ANDROID: Powerstate/battery level support.
- CHEEVOS: Fix crash when scrolling Achievement List while Unofficial Achievements enabled (#6732).
- CHEEVOS: Added hitcounts support for PauseIf/ResetIf (#6817).
- COMMON: Automatically hide "Configuration Override options" in Quick Menu.
- COMMON: Small Bugfix to not trigger savestate code when pressing Reset.
- COMMON: Added libsixel video driver.
- EMSCRIPTEN: Fix Game Focus Toggle.
- HID/OSX: Fix to set hid device registration deterministic (#6497), to address issue #6640 re-adding dynamic device registration.
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Polish translation.
- LOCALIZATION: Update Portuguese / Brazilian translation.
- LOCALIZATION: Update Russian translation.
- LOCALIZATION: Update Spanish translation.
- MIDI: Add MIDI support to the libretro API. Dosbox is the first proof of concept core implementing libretro MIDI.
- MIDI: Add a Windows driver for MIDI, based on winmm.
- MENU/QT/WIMP: Qt QSlider styling for Dark Theme.
- MENU/QT/WIMP: Remove button ghostly inside highlighting.
- MENU/QT/WIMP: Initial grid view.
- MENU/QT/WIMP: Drag&drop to add new playlist items, add option to add/edit/delete playlists.
- MENU/QT/WIMP: Add menu option to update RetroArch (Windows only for now).
- MENU/QT/WIMP: Add menu option to manage shaders.
- MENU/QT/WIMP: Add menu option to manage core options.
- MENU/XMB: Add new icons for the settings
- MENU/XMB: Add an option to show the desktop ui
- METAL: Initial work-in-progress video driver for Metal. macOS-only right now, and currently requires macOS 10.13.
- METAL: Supports XMB/MaterialUI, has a menu display driver. Has a font rendering driver.
- METAL/SLANG: Slang shaders should be compatible with Metal video driver.
- NETWORK: Enable SSL/TLS support by default for desktop platforms.
- QNX: Fix Game Focus Toggle.
- PS3: Add audio mixer support for FLAC and MP3.
- PSP: Use proper button labels, fix inverted R-Stick Y axis.
- REMAPS: Fix the way offsets are calculated for keyboard remapping.
- RUNAHEAD: Fix full-screen mode change breaking Secondary Core's environment variables.
- VITA: Use proper button labels, fix inverted R-Stick Y axis.
- VITA: Add imc0: mount.
- VITA: Use sceCtrlIsMultiControllerSupported to detect.
- VULKAN: Fix two validation errors.
- VULKAN: Try to avoid creating swapchains redundantly. Should fix black screen and having to alt tab out of window again to get display working on Nvidia GPUs (Windows).
- VULKAN/OSX: Initial MoltenVK support. Not enabled yet, several MoltenVK bugs should be fixed first before we can have it fully working.
- WINDOWS/DINPUT: Add rumble support.
- WINDOWS/DINPUT: Fix Game Focus Toggle.
- WINDOWS/RAWINPUT: Fix Game Focus Toggle.
- X11: Fix Game Focus Toggle.
- WII: Change deflicker setting to work in 480p or higher, and always enables vfilter so that the user can easily change brightness.
- WIIU: Fix out-of-bounds rendering bug
- WIIU: Implement UDP broadcast network logging on Wii U.
- WIIU: Audio should no longer clip.
# 1.7.3
- AUDIO: Audio mixer supports FLAC/MP3 file types now!
- COMMON: Fixed bug 'crashing in cores that don't range check retro_set_controller_type'. Some people were having crashes when device is set to RETRO_DEVICE_NONE and the cores don't check the number of ports, in VBAM's case it was overflowing and crashing. QuickNES was crashing too.
- COMMON: Fixed buffer overflow in url encoding (affecting MSVC2010/2013).
- COMMON: (QuickMenu) Added Configuration Override submenu.
- HID: Merge new HID subsystem.
- HID: Fix WaveBird support for the Wii U GCA.
- HID/OSX: Fix regression with IODHIDManager - gamepads which are connected later would not be autoconfigured.
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Portuguese translation.
- MENU: New WIMP Qt GUI!
- MENU: Audio mixer now works in the menu without any cores loaded. You have to enable the setting 'Enable menu audio' for this to work.
- REMAPPING/OVERLAYS: Fix regression - overlays could no longer be remapped.
- SCANNER: Add Wii Backup File WBFS support.
- X11: CRT SwitchRes support for X11/Linux.
# 1.7.2
- ANDROID/OPENSL: Prevent crashes when setting audio latency too low (buffer count can never be lower than 2 now).
- CRT: Added CRT SwitchRes.
- COMMON: Hide the 'Core delete' option if the 'Core updater' is also hidden.
- COMMON: Add way to reset core association for playlist entry.
- COMMON: Fix invalid long command line options causing infinite loop on Windows
- COMMON: Add OSD statistics for video/audio/core.
- COMMON: Added runahead system; allows you to drive down latency even further.
- COMMON: Fix buggy behavior that could happen with ZIP file reading on some platforms as a result of not initializing struct.
- CHEEVOS: Support Atari 2600, Virtual Boy, and Arcade (only Neo Geo, CPS-1, CPS-2 and CPS-3 and only with fbalpha core).
- CHEEVOS: Add option to automatically take a screenshot when an achievement is triggered.
- CHEEVOS: Fixed incompatibilities with Neo Geo Pocket achievement sets.
- CHEEVOS: Store only login token, not password.
- D3D10: Added D3D10 driver to release build. Has working shaders (Slang), overlay, and menu display driver support. Should be on par capabilities wise
with D3D11 driver except for there being no hardware rendering right now.
- D3D11: Experimental hardware renderer. Allows for libretro cores to use D3D11 for hardware rendering. First core to use this is PPSSPP.
- D3D11: Increase backwards compatibility, shaders compile with Shader Model 4.0 now, added support for more feature levels.
- D3D10/D3D11/D3D12: Fix crashes with completely black or white thumbnail textures in XMB.
- GUI: Support disabling window decorations on Windows and Linux.
- LIBRETRO: Addition - Functions to enable and disable audio and video, and an environment function to query status of audio and video enables.
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Polish translation.
- MENU: Add Rewind/Latency/Overlay settings to Quick Menu, add options to show/hide them (User Interface -> Views -> Quick Menu)
- MENU/RGUI: Only show Menu Linear Filter for RGUI and only show it for
video drivers that implement it (D3D8/9/10/11/12/GL)
- MENU/RGUI: Add User Interface -> Appearance options.
- MENU/RGUI: D3D8/D3D9: Hookup Menu Linear Filter
- MENU/XMB: Disable XMB shadow icons by default for PowerPC and ARM for performance reasons.
- MENU/XMB: Left/right thumbnails are now automatically scaled according to layout.
- MENU/XMB: Add Left Thumbnails (additional to the right).
- MENU/XMB: Fixed left/right tab regression.
- MENU/XMB: Fix scaling of tall images that were cut on bottom previously.
- MENU/XMB: Menu scale factor setting now changes texts length, image scaling and margins.
- MENU/XMB: Mouse cursor scales correctly now.
- MENU/XMB: Add toggle to show/hide Playlist tabs.
- MENU/XMB: Add menu layout - can switch between Desktop, Handheld and Auto.
- MENU/XMB: Don't load menu pipeline shaders unless XMB is selected (D3D10/D3D11/D3D12/GL/Vulkan)
- MENU/VIDEO: Only show black frame insertion for the video drivers/context drivers
that support it (so far this includes - D3D8/D3D9, OpenGL, Vulkan)
- MENU/VIDEO: Only show max swapchain images if supported by video driver and/or context driver (so far this includes - DRM EGL context driver, VideoCore EGL context driver, Vulkan)
- MENU/MaterialUI: Automatic DPI Scaling should be much improved now, now scales as expected at 1440p and 4K resolutions.
- MENU/MaterialUI: Fix wrong calculation of an entry height causing long playlists to end up outside of screen range. This also could cause crashes on low DPI screens.
- IOS: Fixed crash when opening downloaded roms from Safari or using the "Open in.." functionality. Added the compiler flag to support keyboard remapping to controls.
- IOS: Fixed buffer overlap that caused a crash while trying to download GLSL shaders from the buildbot.
- PS3: fix URLS
- REMAPS: Mapping keyboard keys from more than one gamepad (works with dosbox)
- REMAPS: Mapping more than one button to the same action
- REMAPS: Unmapping buttons
- REMAPS: Unmapping analogs
- REMAPS: Mapping a button to trigger an analog response (tested with mupen, can run on SM64 with the d-pad now, triggers a full analog tilt)
- REMAPS: Mapping an analog to another analog (having more than one analog mapped to the same output causes issues)
- REMAPS: Mapping an analog to produce a button response
- SCANNER: Should be able to scan dual-layer Wii disc images now, filestream code now supports files larger than 4GB.
- SHADERS/SLANG: Slang shaders should work again on Android version and MSVC versions (basically all the Griffin-based versions).
- SHADERS: If GL context is GLES2/3/Core context, Cg shaders are unavailable. Applies to shader list too.
- SHADERS: Hide cg/glsl shaders from being able to be selected if D3D8/9/10/11/Vulkan video drivers are selected.
- SHADERS: Hide slang shaders from being able to be selected if D3D8/9/OpenGL video drivers are selected.
- SHADERS: Prevent crashes from occurring if we have the GL video driver in use and we try to skip to a slang shader through next/previous hotkeys
- SHADERS: Fix shader parameter increase / decrease functions
- SUBSYSTEM: handle savestates properly (cart1 + cart2.state0)
- VULKAN/X11: Fix X11 Vulkan bug from Wayland driver.
- VULKAN: Fix multi-line text spacing in menus with Vulkan driver.
- WINDOWS XP: Add Cheevos support.
- WINDOWS/MSVC 2003/2005/2010/2013/2015/2017: Add Cheevos support.
- VITA: Bugfix for 'PS Vita takes many time to start to accept input' issue.
- X11: Allow compositor disabling on X11 fullscreen through _NET_WM_BYPASS_COMPOSITOR
- X11: Prioritize _NET_WM_STATE_FULLSCREEN_ in true fullscreen mode
- WIIU: Fix OOB read/write in keyboard driver.
# 1.7.1
- 3DS: Now correctly reports amount of CPU cores.
- 3DS: Frontend rating is now correctly implemented for both New 3DS/2DS and Old 3DS/2DS.
- 3DS: Initial networking support, HTTP requests won't work yet.
- 3DS: Now reports memory and battery state.
- AUDIO: Added 'Audio Resampler Quality' setting to Audio Settings. Setting this higher will increase sound quality at the expense of sound latency and/or performance. Setting this value lower will improve sound latency/performance at the expense of sound quality. Only has an effect if the Sinc resampler is used, and you have to restart the game for changes to take effect.
- CHEEVOS: Fix unofficial achievements not being loaded.
- CHEEVOS: Show savestate menu entries when no achievements are found even if hardcore mode is enabled.
- CHEEVOS: Support Neo Geo Pocket.
- COMMON: Bugfix for issue related to 'Windows mouse pointer visible when running MESS or MAME cores'.
- COMMON: Fix bug 'Last item in a Playlist is ignored'.
- COMMON: New LED API. Driver implemented for Raspberry Pi, proof of concept implemented for core MAME 2003.
- COMMON: Add quick menu option to watch shader files for changes and recompile them automatically (Linux only for now).
- D3D8: Direct3D 8 can now work on systems that have Direct3D 8 installed.
- D3D9: Add menu support for MaterialUI/XMB.
- D3D10: Initial video driver implementation.
- D3D11: Initial video driver implementation.
- D3D11: SPIRV-Cross/slang shader support for D3D11.
- D3D12: Initial video driver implementation.
- DINPUT: don't reinitialize input driver on network events / media insertion / network drive connection
- INPUT: show friendly names when available under input binds and system information
- INPUT: show the config name when available under system information
- GUI: Allow changing menu font color.
- GUI: Menu visibility options for RGUI and MaterialUI.
- GUI/MaterialUI: Works now with D3D8, D3D9 Cg, D3D11 and D3D12 drivers.
- GUI/XMB: Add Monochrome Inverted icon theme.
- GUI/XMB: Allow changing menu scale to 200%.
- GUI/XMB: Works now with D3D8, D3D9 Cg, D3D11 and D3D12 drivers. Menu shader effects currently don't work on D3D8/D3D9 Cg.
- HAIKU: Restored port.
- KEYMAPPER: prevent a condition that caused input_menu_toggle to stop working when a RETRO_DEVICE_KEYBOARD type device is enabled
- GL: ignore hard gpu sync when fast-forwarding
- IOS10/11: Handle hardware keyboards and iCade controllers
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Portuguese-Brazilian translation.
- LOCALIZATION: Update Spanish translation.
- NETPLAY: Add menu option to select different MITM (relay) server locations.
- OSX: Modify HID buttons detection algorithm.
- QB: Added --datarootdir, --sysconfdir, --bindir, --docdir and --mandir.
- QB: Deprecated --global-config-dir, --with-bin_dir and --with-man_dir.
- SHADERS: Allow saving of shader presets based on the parent directory (Saving one for */foo/bar/mario.sfc* would result in *shaders/presets/corename/bar.ext*). We decided it's safer to still isolate the presets to a single core because different cores may treat video output differently.
- SHADERS: Don't save the path to the current preset to the main config. This was causing weird behavior, instead it will try to load *currentconfig.ext* and it will save a preset with that name when select *apply shader preset*. The resulting shader will restore properly after restarting and even after core/parent/game specific presets are loaded
- SOLARIS: Initial port.
- SWITCH: Initial Nintendo Switch port, based on libtransistor SDK.
- PS3: Enable Cheevos.
- PSP: Enable threading support through pthreads.
- SHADERS: SPIRV-Cross/slang shader support for D3D11.
- SHIELD ATV: Allow the remote / gamepad takeover hack to work with the 2017 gamepad
- SUBSYSTEM: Subsystem saves now respect the save directory
- SUBSYSTEM: You can now load subsystem games from the menu (see https://github.com/libretro/RetroArch/pull/6282 for caveats)
- VULKAN: Fix swapchain recreation bug on Nvidia GPUs with Windows 10 (resolved in Windows Nvidia driver version 390.77).
- WINDOWS: Improved Unicode support (for cores/directory creation and 7zip archives).
- WINDOWS: Show progress meter on taskbar for downloads (Windows 7 and up).
- WINDOWS: WS_EX_LAYERED drastically decreases performance, so only set it when needed (transparency in windowed mode).
- WIIU: Overlay support.
- WIIU: Transparency support in menu + overlays.
- WIIU: Increased stability during core switching.
- WIIU: Shader support.
- WIIU: Menu shader effects added (shaders).
- WIIU: Add missing time/clock support. (also fixes RTC [Real Time Clock] in Gambatte)
- XBOX OG: Restored port.
# 1.7.0
- CHEEVOS: Add badges for achievements, shows thumbnail images of achievements.
- CHEEVOS: Leaderboard support.
- CHEEVOS: Only disable savestates on hardcore mode if achievements are not available.
- COMMANDLINE: Fix fullscreen toggle switch.
- COMMON: Add 'Automatically Load Content To Playlist' feature, enabled by default.
- COMMON: Fix slowmotion ratio always being reset back to 1.
- COMMON: Optimized NBIO implementations now for Apple, Windows, and Linux. Uses mmap for Linux/Windows/BSD if/when available. File I/O should now be much faster for loading images inside the menu.
- COMMON: Native Blissbox support now for latest firmware as of writing (2.0). Implementation through libusb and/or native Windows HID.
- COMMON: New lightgun API.
- COMMON: New VFS (Virtual File System) API.
- COMMON: Fixed some playlist bugs.
- COMMON: New snow shader.
- COMMON: Fix Quick Menu title, no longer shows 'Select File'.
- COMMON: Fix loading cores that require no content one after another.
- COMMON: Map Delete key to Y button for non-unified menu keyboard controls.
- COMMON: Fix for relative paths being normalised and generating a duplicate history entry.
- EMSCRIPTEN: Fix references to browserfs.
- FREEBSD: Support libusb HID input driver.
- HAIKU: Buildfix.
- INPUT: Map clear button to DEL key.
- LINUX/X11: Add RetroArch logo to window title bar.
- LINUX/X11: Input driver now supports new lightgun code.
- LINUX/X11: Support window transparency (requires a compositing window manager).
- LOBBIES: Fix for crash on join netplay rooms via touch / glui.
- LOCALIZATION: Update Italian translation.
- LOCALIZATION: Update Japanese translation.
- LOCALIZATION: Update Portuguese-Brazilian translation.
- LOCALIZATION: Update Polish translation.
- LOCALIZATION: Update Russian translation.
- MENU: Snowflake menu shader effect.
- OSX/PPC: Fix the GL2 renderchain, had to use EXT versions of framebuffer/renderbuffer functions.
- PS3: HTTP requests / downloads should now work.
- PS3: Core Updater now works.
- PS3: Improved font rendering, enable STB Unicode font renderer.
- PSP: Make it work with Vita's Adrenaline.
- PSP: Fix audio sync.
- PSP: Fix content loading, port should be functional again.
- PSP: Use 64MB when available.
- SCANNER: Fix crash from Windows-incompatible format string.
- VITA: Improve packaging, installation times.
- WIIU: Disabled the controller patcher for now since it was the source of many stability issues.
- VULKAN: Various stability fixes for WSI.
- WINDOWS: Add MSVC 2017 solution.
- WINDOWS: Get rid of the empty console window in MSVC 2010 builds.
- WINDOWS: Raw input driver now supports new lightgun code.
- WINDOWS: Use configured OSD/text message color on GDI driver.
- WINDOWS/XINPUT: Populate XInput VID/PID from DInput so autoconfig doesn't rely solely on joypad names
- WINDOWS/XINPUT: Fix crash that occurs in some situations with Steam running and a Steam Controller plugged in.
- WINDOWS: Improve version reporting under System Information.
- WINDOWS: Support window transparency.
- WINDOWS: Correct usage of GetWindowPlacement per MS docs, fixes game window position on Win95/98.
- WINDOWS: Added Visual Studio 2017 support.
# 1.6.9
- COMMON: Small memory leak.
- NETPLAY: Fix network command only working once.
# 1.6.8
- Audio: Fix the Audio DSP picker
@@ -158,7 +433,7 @@ Skipped this one.
- MISC: Various frontend optimizations.
- NET: Fix bug #4703 (https://github.com/libretro/RetroArch/issues/4703)
- OSX/MACOS: Fixes serious memory leak
- THUMBNAILS: Thumbnails show up now in Load Content -> Collection, Information -> Database
- THUMBNAILS: Thumbnails show up now in Load Content -> Collection, Information -> Database
- VIDEO: Fix threaded video regression; tickering of menu entries would no longer work.
- VITA: Fix 30fps menu (poke into input now instead of reading the entire input buffer which apparently is slow)
- VITA: Fix frame throttle
+92 -42
View File
@@ -9,13 +9,24 @@ endif
include config.mk
# Put your favorite compile flags in this file, if you want different defaults than upstream.
# Do not attempt to create that file upstream.
# (It'd be better to put this comment in that file, but .gitignore doesn't work on files that exist in the repo.)
-include Makefile.local
TARGET = retroarch
OBJDIR := obj-unix
OBJDIR_BASE := obj-unix
ifeq ($(DEBUG), 1)
OBJDIR := $(OBJDIR_BASE)/debug
else
OBJDIR := $(OBJDIR_BASE)/release
endif
OBJ :=
LIBS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
ifneq ($(findstring BSD,$(OS)),)
@@ -35,7 +46,7 @@ endif
include Makefile.common
ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang"),1)
DEFINES += -Wno-invalid-source-encoding
DEFINES += -Wno-invalid-source-encoding -Wno-incompatible-ms-struct
endif
ifeq ($(shell $(CC) -v 2>&1 | grep -c "tcc"),1)
@@ -66,6 +77,7 @@ endif
ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0 -g
DEFINES += -DDEBUG -D_DEBUG
else
OPTIMIZE_FLAG = -O3 -ffast-math
endif
@@ -74,27 +86,28 @@ ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I. -Ideps -Ideps/stb
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) -I. -Ideps -Ideps/stb
APPEND_CFLAGS := $(CFLAGS)
CXXFLAGS += $(APPEND_CFLAGS) -std=c++11 -D__STDC_CONSTANT_MACROS
OBJCFLAGS := $(CFLAGS) -D__STDC_CONSTANT_MACROS
ifeq ($(CXX_BUILD), 1)
LINK = $(CXX)
CFLAGS := $(CXXFLAGS) -xc++
CFLAGS += -DCXX_BUILD
CXXFLAGS += -DCXX_BUILD
else
ifeq ($(NEED_CXX_LINKER),1)
ifeq ($(HAVE_CXX), 1)
ifeq ($(CXX_BUILD), 1)
LINK = $(CXX)
CFLAGS := $(CXXFLAGS) -xc++
CFLAGS += -DCXX_BUILD
CXXFLAGS += -DCXX_BUILD
else ifeq ($(NEED_CXX_LINKER),1)
LINK = $(CXX)
else ifeq ($(findstring Win32,$(OS)),)
LINK = $(CC)
else
# directx-related code is c++
LINK = $(CXX)
LINK = $(CC)
endif
else
LINK = $(CC)
endif
ifneq ($(CXX_BUILD), 1)
ifneq ($(GNU90_BUILD), 1)
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE
@@ -119,10 +132,16 @@ endif
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
ifneq ($(X86),)
CFLAGS += -m32
CXXFLAGS += -m32
LDFLAGS += -m32
endif
ifneq ($(SANITIZER),)
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS)
endif
ifneq ($(findstring $(GPERFTOOLS),profiler),)
@@ -132,8 +151,29 @@ ifneq ($(findstring $(GPERFTOOLS),tcmalloc),)
LIBS += -ltcmalloc
endif
# Qt MOC generation, required for QObject-derived classes
ifneq ($(MOC_HEADERS),)
# prefix moc_ to base filename of paths and change extension from h to cpp, so a/b/foo.h becomes a/b/moc_foo.cpp
MOC_SRC := $(join $(addsuffix moc_,$(addprefix $(OBJDIR)/,$(dir $(MOC_HEADERS)))), $(notdir $(MOC_HEADERS:.h=.cpp)))
MOC_OBJ := $(patsubst %.cpp,%.o,$(MOC_SRC))
RARCH_OBJ += $(MOC_OBJ)
endif
all: $(TARGET) config.mk
$(MOC_SRC):
@$(if $(Q), $(shell echo echo MOC $<),)
$(eval MOC_TMP := $(patsubst %.h,%_moc.cpp,$@))
$(Q)$(MOC) -o $(MOC_TMP) $<
$(foreach x,$(join $(addsuffix :,$(MOC_SRC)),$(MOC_HEADERS)),$(eval $x))
$(MOC_OBJ):
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(foreach x,$(join $(addsuffix :,$(MOC_OBJ)),$(MOC_SRC)),$(eval $x))
ifeq ($(MAKECMDGOALS),clean)
config.mk:
else
@@ -183,29 +223,33 @@ install: $(TARGET)
rm -f $(OBJDIR)/git_version.o
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)$(DATA_DIR)/applications 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(DOC_DIR) 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)$(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
mkdir -p $(DESTDIR)$(DATA_DIR)/pixmaps 2>/dev/null || /bin/true
cp $(TARGET) $(DESTDIR)$(BIN_DIR)
cp tools/cg2glsl.py $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
cp retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)
cp retroarch.desktop $(DESTDIR)$(DATA_DIR)/applications
cp docs/retroarch.6 $(DESTDIR)$(MAN_DIR)/man6
cp docs/retroarch-cg2glsl.6 $(DESTDIR)$(MAN_DIR)/man6
cp media/retroarch.svg $(DESTDIR)$(DATA_DIR)/pixmaps
cp COPYING $(DESTDIR)$(DOC_DIR)
cp README.md $(DESTDIR)$(DOC_DIR)
chmod 755 $(DESTDIR)$(BIN_DIR)/$(TARGET)
chmod 755 $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
chmod 644 $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
chmod 644 $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
chmod 644 $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
@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/retrosystem/src; \
rm -rf $(DESTDIR)$(ASSETS_DIR)/retroarch/assets/xmb/dot-art/src; \
mkdir -p $(DESTDIR)$(ASSETS_DIR)/assets/xmb; \
mkdir -p $(DESTDIR)$(ASSETS_DIR)/assets/glui; \
cp -r media/assets/xmb/ $(DESTDIR)$(ASSETS_DIR)/assets; \
cp -r media/assets/glui/ $(DESTDIR)$(ASSETS_DIR)/assets; \
cp media/assets/COPYING $(DESTDIR)$(DOC_DIR)/COPYING.assets; \
echo "Asset copying done."; \
fi
@@ -213,15 +257,21 @@ uninstall:
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)$(DATA_DIR)/applications/retroarch.desktop
rm -f $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
rm -f $(DESTDIR)$(DOC_DIR)/COPYING
rm -f $(DESTDIR)$(DOC_DIR)/COPYING.assets
rm -f $(DESTDIR)$(DOC_DIR)/README.md
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
rm -rf $(DESTDIR)$(ASSETS_DIR)
clean:
rm -rf $(OBJDIR)
rm -rf $(OBJDIR_BASE)
rm -f $(TARGET)
rm -f *.d
.PHONY: all install uninstall clean
print-%:
@echo '$*=$($*)'
+24
View File
@@ -0,0 +1,24 @@
include Makefile.common
# Qt MOC generation, required for QObject-derived classes
ifneq ($(MOC_HEADERS),)
# prefix moc_ to base filename of paths and change extension from h to cpp, so a/b/foo.h becomes a/b/moc_foo.cpp
MOC_SRC := $(join $(addsuffix moc_,$(dir $(MOC_HEADERS))), $(notdir $(MOC_HEADERS:.h=.cpp)))
endif
MOC ?= $(error missing moc path)
.PHONY: generate
$(MOC_SRC):
@$(if $(Q), $(shell echo echo MOC $<),)
$(eval MOC_TMP := $(patsubst %.h,%_moc.cpp,$@))
$(MOC) -o $(MOC_TMP) $<
$(foreach x,$(join $(addsuffix :,$(MOC_SRC)),$(MOC_HEADERS)),$(eval $x))
generate: $(MOC_SRC)
@echo $(MOC_SRC)
print-%:
@echo '$*=$($*)'
+558 -353
View File
File diff suppressed because it is too large. Load diff
+66 -63
View File
@@ -5,25 +5,25 @@ DEBUG = 0
GRIFFIN_BUILD = 1
WHOLE_ARCHIVE_LINK = 0
BUILD_3DSX = 1
BUILD_3DS = 1
BUILD_3DS = 0
BUILD_CIA = 1
LIBCTRU_NO_DEPRECATION = 1
APP_TITLE = Retroarch 3DS
APP_DESCRIPTION = Retroarch 3DS
APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS
APP_AUTHOR = Team Libretro
APP_PRODUCT_CODE = RETROARCH-3DS
APP_UNIQUE_ID = 0xBAC00
APP_ICON = ctr/assets/default.png
APP_BANNER = ctr/assets/libretro_banner.png
APP_AUDIO = ctr/assets/silent.wav
APP_RSF = ctr/tools/template.rsf
APP_ICON = pkg/ctr/assets/default.png
APP_BANNER = pkg/ctr/assets/libretro_banner.png
APP_AUDIO = pkg/ctr/assets/silent.wav
APP_RSF = pkg/ctr/tools/template.rsf
APP_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
APP_BIG_TEXT_SECTION = 0
APP_USE_SVCHAX = 0
include ctr/Makefile.cores
include pkg/ctr/Makefile.cores
OBJ :=
OBJ += gfx/drivers/ctr_shaders/ctr_sprite.o
@@ -31,6 +31,12 @@ OBJ += ctr/ctr_system.o
OBJ += ctr/ctr_memory.o
OBJ += ctr/ctr_linear.o
OBJ += ctr/gpu_old.o
OBJ += ctr/exec-3dsx/exec_cia.o \
ctr/exec-3dsx/exec_3dsx.o \
ctr/exec-3dsx/mini-hb-menu/launch.o \
ctr/exec-3dsx/mini-hb-menu/loaders/rosalina.o \
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o \
ctr/exec-3dsx/mini-hb-menu/loaders/ninjhax1.o
ifeq ($(APP_BIG_TEXT_SECTION), 1)
APP_USE_SVCHAX = 1
@@ -46,6 +52,9 @@ ifeq ($(GRIFFIN_BUILD), 1)
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
DEFINES += -DHAVE_NETWORKING -DHAVE_CHEEVOS -DHAVE_SOCKET_LEGACY -DHAVE_THREADS
#-DHAVE_SSL -DMBEDTLS_SSL_DEBUG_ALL
#ssl is currently incompatible with griffin due to use of the "static" flag on repeating functions that will conflict when included in one file
else
HAVE_CC_RESAMPLER = 1
HAVE_MENU_COMMON = 1
@@ -61,44 +70,23 @@ else
HAVE_ZARCH = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_NETWORKING = 1
HAVE_CHEEVOS = 1
HAVE_SOCKET_LEGACY = 1
HAVE_THREADS = 1
HAVE_SSL = 1
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += gfx/drivers/ctr_gfx.o
OBJ += gfx/drivers_font/ctr_font.o
OBJ += menu/drivers_display/menu_display_ctr.o
OBJ += input/drivers/ctr_input.o
OBJ += input/drivers_joypad/ctr_joypad.o
OBJ += audio/drivers/ctr_csnd_audio.o
OBJ += audio/drivers/ctr_dsp_audio.o
OBJ += frontend/drivers/platform_ctr.o
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
endif
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
ifeq ($(strip $(CTRULIB)),)
@@ -144,7 +132,7 @@ endif
CFLAGS += -I. -Ideps -Ideps/libz -Ideps/7zip -Ideps/stb -Ilibretro-common/include
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE -DSINC_LOWEST_QUALITY
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
@@ -155,30 +143,36 @@ LDFLAGS += -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
CFLAGS += -std=gnu99 -ffast-math
LIBS := $(WHOLE_START) -lretro_ctr $(WHOLE_END) -lctru -lm
LIBS := $(WHOLE_START) -lretro_ctr $(WHOLE_END) -lm
ifeq ($(DEBUG), 1)
LIBS += -lctrud
else
LIBS += -lctru
endif
ifeq ($(BUILD_3DSX), 1)
TARGET_3DSX := $(TARGET).3dsx $(TARGET).smdh
TARGET_3DSX := $(TARGET).3dsx $(TARGET).smdh
endif
ifeq ($(BUILD_3DS), 1)
TARGET_3DS := $(TARGET).3ds
TARGET_3DS := $(TARGET).3ds
endif
ifeq ($(BUILD_CIA), 1)
TARGET_CIA := $(TARGET).cia
TARGET_CIA := $(TARGET).cia
endif
.PHONY: $(BUILD) clean all
all: $(TARGET)
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA) $(TARGET).core
$(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
$(TARGET).3dsx: $(TARGET).elf
$(TARGET).elf: $(OBJ) libretro_ctr.a
PREFIX := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
@@ -189,25 +183,38 @@ 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
ifeq ($(strip $(CTRBANNERTOOL)),)
ifneq ($(findstring Linux,$(shell uname)),)
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname)),)
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
else
MAKEROM = ctr/tools/makerom.exe
BANNERTOOL = ctr/tools/bannertool.exe
BANNERTOOL = $(CTRBANNERTOOL)
endif
ifeq ($(strip $(CTRMAKEROM)),)
ifneq ($(findstring Linux,$(shell uname)),)
MAKEROM = pkg/ctr/tools/makerom-linux
else ifneq ($(findstring Darwin,$(shell uname)),)
MAKEROM = pkg/ctr/tools/makerom-mac
else
MAKEROM = pkg/ctr/tools/makerom.exe
endif
else
MAKEROM = $(CTRMAKEROM)
endif
%.o: %.vsh %.gsh
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(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 $@
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
@@ -228,15 +235,15 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(DEVKITARM)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
cp ctr/big_text_section.xml $(TARGET).xml
cp pkg/ctr/big_text_section.xml $(TARGET).xml
else
rm -f $(TARGET).xml
endif
-3dsxtool $< $@ $(_3DSXFLAGS)
$(DEVKITARM)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
@@ -254,9 +261,6 @@ $(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 $(OBJ)
@@ -264,7 +268,6 @@ clean:
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
+45 -24
View File
@@ -2,19 +2,19 @@ TARGET := retroarch_3ds_salamander
LIBRETRO =
DEBUG = 0
BUILD_3DSX = 0
BUILD_3DSX = 1
BUILD_3DS = 0
BUILD_CIA = 1
APP_TITLE = Retroarch 3DS
APP_DESCRIPTION = Retroarch 3DS
APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS
APP_AUTHOR = Team Libretro
APP_PRODUCT_CODE = RETROARCH-3DS
APP_UNIQUE_ID = 0xBAC00
APP_ICON = ctr/assets/default.png
APP_BANNER = ctr/assets/libretro_banner.png
APP_AUDIO = ctr/assets/silent.wav
APP_RSF = ctr/tools/template.rsf
APP_ICON = pkg/ctr/assets/default.png
APP_BANNER = pkg/ctr/assets/libretro_banner.png
APP_AUDIO = pkg/ctr/assets/silent.wav
APP_RSF = pkg/ctr/tools/template.rsf
APP_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
@@ -35,16 +35,24 @@ OBJ := ctr/ctr_system.o \
libretro-common/compat/compat_strl.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o
OBJ += ctr/exec-3dsx/exec_cia.o \
ctr/exec-3dsx/exec_3dsx.o \
ctr/exec-3dsx/mini-hb-menu/launch.o \
ctr/exec-3dsx/mini-hb-menu/loaders/rosalina.o \
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o \
ctr/exec-3dsx/mini-hb-menu/loaders/ninjhax1.o
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/ctrulib
CTRULIB = $(DEVKITPRO)/libctru
endif
APP_TITLE := $(shell echo "$(APP_TITLE)" | cut -c1-128)
@@ -110,7 +118,7 @@ $(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
$(TARGET).3dsx: $(TARGET).elf
$(TARGET).elf: $(OBJ)
PREFIX := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
@@ -121,25 +129,38 @@ 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
ifeq ($(strip $(CTRBANNERTOOL)),)
ifneq ($(findstring Linux,$(shell uname)),)
BANNERTOOL = pkg/ctr/tools/bannertool-linux
else ifneq ($(findstring Darwin,$(shell uname)),)
BANNERTOOL = pkg/ctr/tools/bannertool-mac
else
BANNERTOOL = pkg/ctr/tools/bannertool.exe
endif
else
MAKEROM = ctr/tools/makerom.exe
BANNERTOOL = ctr/tools/bannertool.exe
BANNERTOOL = $(CTRBANNERTOOL)
endif
ifeq ($(strip $(CTRMAKEROM)),)
ifneq ($(findstring Linux,$(shell uname)),)
MAKEROM = pkg/ctr/tools/makerom-linux
else ifneq ($(findstring Darwin,$(shell uname)),)
MAKEROM = pkg/ctr/tools/makerom-mac
else
MAKEROM = pkg/ctr/tools/makerom.exe
endif
else
MAKEROM = $(CTRMAKEROM)
endif
%.o: %.vsh %.gsh
$(DEVKITPRO)/devkitARM/bin/picasso $^ -o $*.shbin
$(DEVKITPRO)/devkitARM/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(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 $@
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
@@ -160,15 +181,15 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(DEVKITARM)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
cp ctr/big_text_section.xml $(TARGET).xml
cp pkg/ctr/big_text_section.xml $(TARGET).xml
else
rm -f $(TARGET).xml
endif
-3dsxtool $< $@ $(_3DSXFLAGS)
$(DEVKITARM)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
+30 -64
View File
@@ -1,14 +1,15 @@
TARGET := retroarch.js
EOPT = USE_ZLIB=1 USE_SDL=2 # Emscripten specific options
EOPT = USE_ZLIB=1 # 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 -s USE_PTHREADS=$(PTHREAD)
DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_EGL -DHAVE_OVERLAY -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN
DEFINES := -DRARCH_INTERNAL -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD)
DEFINES += -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_FILTERS_BUILTIN
HAVE_OVERLAY = 1
HAVE_CC_RESAMPLER = 1
HAVE_EGL = 1
HAVE_OPENGLES = 1
@@ -17,29 +18,28 @@ HAVE_RPNG = 1
HAVE_EMSCRIPTEN = 1
HAVE_RGUI = 1
HAVE_SDL = 0
HAVE_SDL2 = 1
HAVE_SDL2 = 0
HAVE_ZLIB = 1
WANT_ZLIB = 1
HAVE_SHADERPIPELINE = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
MEMORY = 536870912
# XXX: setting this to 1/2 currently crashes Firefox nightly
PRECISE_F32 = 2
PRECISE_F32 = 1
OBJDIR := obj-emscripten
ifneq ($(NATIVE_ZLIB),)
WANT_ZLIB = 0
endif
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) \
LIBS := -s USE_ZLIB=1
LDFLAGS := -L. --no-heap-copy -s USE_ZLIB=1 -s TOTAL_MEMORY=$(MEMORY) -s NO_EXIT_RUNTIME=0 -s FULL_ES2=1 -s BINARYEN_TRAP_MODE=\"clamp\" \
-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
@@ -47,30 +47,15 @@ endif
ifeq ($(ASYNC), 1)
LDFLAGS += -s ASYNCIFY=$(ASYNC)
endif
endif
ifeq ($(HAVE_SDL2), 1)
LIBS += -s USE_SDL=2
DEFINES += -DHAVE_SDL2
endif
include Makefile.common
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
CFLAGS += -Ideps/libz -Ideps -Ideps/stb
libretro = libretro_emscripten.bc
@@ -82,7 +67,7 @@ ifeq ($(DEBUG), 1)
LDFLAGS += -O0 -g
CFLAGS += -O0 -g
else
LDFLAGS += -O2
LDFLAGS += -O2 -s WASM=1
# WARNING: some optimizations can break some cores (ex: LTO breaks tyrquake)
LDFLAGS += -s PRECISE_F32=$(PRECISE_F32)
ifeq ($(LTO), 1)
@@ -91,48 +76,29 @@ else
CFLAGS += -O2
endif
CFLAGS += -DHAVE_RPNG -Wall -Wno-unused-result -Wno-unused-variable -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
CFLAGS += -DHAVE_RPNG -Wall -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_take_screenshot']"
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
all: $(TARGET)
$(TARGET): $(OBJ)
$(TARGET): $(RARCH_OBJ) $(libretro)
@$(if $(Q), $(shell echo echo LD $@),)
$(Q)$(LD) -o $@ $(OBJ) $(libretro) $(LIBS) $(LDFLAGS)
$(Q)$(LD) -o $@ $(RARCH_OBJ) $(libretro) $(LIBS) $(LDFLAGS)
%.o: %.c
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) $(EOPTS) -c -o $@ $<
%.o: %.cpp
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) $(EOPTS) -c -o $@ $<
clean:
rm -f *.o
rm -f deps/libz/*.o
rm -f frontend/*.o
rm -f menu/*.o
rm -f menu/disp/*.o
rm -f audio/*.o
rm -f compat/*.o
rm -f compat/rxml/*.o
rm -f conf/*.o
rm -f gfx/scaler/*.o
rm -f gfx/*.o
rm -f gfx/d3d/*.o
rm -f gfx/drivers_context/*.o
rm -f gfx/math/*.o
rm -f gfx/drivers_font/*.o
rm -f gfx/drivers_font_renderer/*.o
rm -f gfx/py_state/*.o
rm -f gfx/rpng/*.o
rm -f gfx/glsym/*.o
rm -f record/*.o
rm -f input/*.o
rm -f tools/*.o
rm -f libretro-common/*/*.o
rm -rf $(OBJDIR)
rm -f $(TARGET)
rm -f *.d
.PHONY: all clean
+115 -8
View File
@@ -11,6 +11,13 @@ PC_DEVELOPMENT_UDP_PORT = 3490
RARCH_CONSOLE = 0
USBGECKO = 0
SPACE :=
SPACE := $(SPACE) $(SPACE)
BACKSLASH :=
BACKSLASH := \$(BACKSLASH)
filter_out1 = $(filter-out $(firstword $1),$1)
filter_out2 = $(call filter_out1,$(call filter_out1,$1))
UNAME_ARCH = $(shell uname -m)
ifeq ($(UNAME_ARCH),x86_64)
@@ -171,6 +178,7 @@ else ifeq ($(libogc_platform), 1)
CFLAGS += -DGEKKO -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
HAVE_RUNAHEAD := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
HAVE_RPNG := 1
@@ -334,7 +342,7 @@ else ifeq ($(platform), windows_msvc6_x86)
PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0351 -D__STDC_CONSTANT_MACROS -D_MBCS
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib
VCDIR ?= $(shell reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DevStudio\6.0\Products\Microsoft Visual C++" -v "ProductDir" | grep -o '[A-Z]:\\.*')
VCDIR ?= $(shell reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DevStudio\6.0\Products\Microsoft Visual C++" -v "ProductDir" | grep -io '[A-Z]:\\.*')
PATH := $(shell IFS=$$'\n'; cygpath "$(VCDIR)/bin"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VCDIR)/../Common/MSDev98/Bin")
@@ -493,8 +501,8 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS100COMNTOOLS)../../VC/include")
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -o '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -io '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -io '[A-Z]:\\.*')
WindowsSdkDir := $(WindowsSdkDir:\=)
ifeq ($(HAVE_DIRECTX), 1)
@@ -568,7 +576,7 @@ else ifneq (,$(findstring windows_msvc2012,$(platform)))
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS110COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS110COMNTOOLS)../../VC/include")
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" -v "KitsRoot81" | grep -o '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" -v "KitsRoot81" | grep -io '[A-Z]:\\.*')
WindowsSdkDir := $(WindowsSdkDir:\=)
ifeq ($(HAVE_DIRECTX), 1)
@@ -642,7 +650,7 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS120COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS120COMNTOOLS)../../VC/include")
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" -v "KitsRoot81" | grep -o '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots" -v "KitsRoot81" | grep -io '[A-Z]:\\.*')
WindowsSdkDir := $(WindowsSdkDir:\=)
ifeq ($(HAVE_DIRECTX), 1)
@@ -654,6 +662,95 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
export INCLUDE := $(INCLUDE);$(WindowsSdkDir)\Include\um;$(WindowsSdkDir)\Include\shared;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(WindowsSdkDir)\$(PlatLib)
endif
else ifneq (,$(findstring windows_msvc2015,$(platform)))
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
WANT_ZLIB := 1
HAVE_7ZIP := 1
HAVE_NETWORKING := 1
HAVE_NETWORK_CMD := 1
HAVE_OVERLAY := 1
HAVE_MATERIALUI := 1
HAVE_XMB := 1
HAVE_STB_FONT := 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
HAVE_COMMAND := 1
HAVE_STDIN_CMD := 1
HAVE_CMD := 1
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_DIRECTX ?= 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
CC = cl.exe
CXX = cl.exe
LD = link.exe
PLATCFLAGS += -D_WIN32 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -D__i686__ -D__SSE__ -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINDOWS -DHAVE_CC_RESAMPLER -DHAVE_GL_SYNC -DHAVE_GLSL -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA -DHAVE_OPENGL -DHAVE_SHADERPIPELINE -DHAVE_UPDATE_ASSETS -DWIN32
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib
PlatformSuffix = $(subst windows_msvc2015_,,$(platform))
ifneq (,$(findstring x64,$(PlatformSuffix)))
ifeq ($(HOST_ARCH),x86)
# cross-compile for x64 from x86 host
PATH := $(shell IFS=$$'\n'; cygpath "$(VS140COMNTOOLS)../../VC/bin/x86_amd64"):$(PATH)
else
PATH := $(shell IFS=$$'\n'; cygpath "$(VS140COMNTOOLS)../../VC/bin/amd64"):$(PATH)
endif
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS140COMNTOOLS)../../VC/lib/amd64")
WinArch = x64
PlatLib = um\x64
VCLib = amd64
else ifneq (,$(findstring arm,$(PlatformSuffix)))
PATH := $(shell IFS=$$'\n'; cygpath "$(VS140COMNTOOLS)../../VC/bin/x86_arm"):$(PATH)
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS140COMNTOOLS)../../VC/lib/arm")
HAVE_DIRECTX = 0
WinArch = arm
PlatLib = um\arm
VCLib = arm
else
PATH := $(shell IFS=$$'\n'; cygpath "$(VS140COMNTOOLS)../../VC/bin"):$(PATH)
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS140COMNTOOLS)../../VC/lib")
WinArch = x86
PlatLib = um\x86
VCLib =
endif
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS140COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS140COMNTOOLS)../../VC/include")
reg_query = $(call filter_out2,$(subst $2,,$(shell reg query "$2" -v "$1" 2>nul)))
fix_path = $(subst $(SPACE),\ ,$(subst \,/,$1))
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir ?= $(call reg_query,InstallationFolder,HKEY_CURRENT_USER\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0)
WindowsSdkDir := $(WindowsSdkDir)
WindowsSDKVersion ?= $(firstword $(foreach folder,$(subst $(subst \,/,$(WindowsSdkDir)Include/),,$(wildcard $(call fix_path,$(WindowsSdkDir)Include\*))),$(if $(wildcard $(call fix_path,$(WindowsSdkDir)Include/$(folder)/um/Windows.h)),$(folder),)))$(BACKSLASH)
WindowsSDKVersion := $(WindowsSDKVersion)
export INCLUDE := $(INCLUDE);$(VCINSTALLDIR)INCLUDE;$(VCINSTALLDIR)ATLMFC\INCLUDE;$(WindowsSdkDir)include\$(WindowsSDKVersion)ucrt;$(WindowsSdkDir)include\$(WindowsSDKVersion)shared;$(WindowsSdkDir)include\$(WindowsSDKVersion)um
export LIB := $(LIB);$(VCINSTALLDIR)LIB$(VCLib);$(VCINSTALLDIR)ATLMFC\LIB$(VCLib);$(WindowsSdkDir)lib\$(WindowsSDKVersion)ucrt\$(WinArch);$(WindowsSdkDir)lib\$(WindowsSDKVersion)$(PlatLib)
ifeq ($(HAVE_DIRECTX), 1)
PLATCFLAGS += -DHAVE_DINPUT -DHAVE_DSOUND -DHAVE_D3D -DHAVE_D3D9 -DHAVE_XAUDIO -DHAVE_XINPUT
DXSDK_DIR := $(DXSDK_DIR:\=)
export INCLUDE := $(INCLUDE);$(DXSDK_DIR)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(DXSDK_DIR)\Lib\$(WinArch)
else
export INCLUDE := $(INCLUDE);libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB)
endif
endif
ifneq (,$(findstring msvc,$(platform)))
@@ -671,6 +768,10 @@ ifeq ($(HAVE_GRIFFIN_CPP), 1)
OBJ += griffin/griffin_cpp.o
endif
ifeq ($(WANT_GLSLANG), 1)
OBJ += griffin/griffin_glslang.o
endif
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
@@ -740,6 +841,10 @@ ifeq ($(HAVE_IMAGEVIEWER), 1)
CFLAGS += -DHAVE_IMAGEVIEWER
endif
ifeq ($(HAVE_RUNAHEAD), 1)
CFLAGS += -DHAVE_RUNAHEAD
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP
endif
@@ -763,7 +868,7 @@ endif
ifneq (,$(findstring msvc,$(platform)))
CFLAGS += -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL
else
CFLAGS += -std=gnu99 -DSINC_LOWER_QUALITY -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
CFLAGS += -std=gnu99 -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
endif
ifeq ($(HAVE_MATERIALUI), 1)
@@ -832,7 +937,8 @@ ifeq ($(DEBUG), 1)
CFLAGS += -Wp64
endif
CFLAGS += -Od -Zi -D_DEBUG -MTd -TP
CFLAGS += -Od -Zi -D_DEBUG -MTd
LDFLAGS += -DEBUG
else
CFLAGS += -O0 -g -DDEBUG
endif
@@ -843,9 +949,10 @@ else ifeq ($(platform), vita)
else ifneq (,$(findstring msvc,$(platform)))
ifeq ($(platform), windows_msvc2003_x86)
CFLAGS += -Wp64
LDFLAGS += -SUBSYSTEM:WINDOWS -ENTRY:mainCRTStartup
endif
CFLAGS += -O2 -DNDEBUG -MT -TP
CFLAGS += -O2 -DNDEBUG -MT
else
CFLAGS += -O3
endif
+222
View File
@@ -0,0 +1,222 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
endif
TOPDIR ?= $(CURDIR)
include $(DEVKITPRO)/libnx/switch_rules
TARGET := retroarch_switch
DEBUG ?= 0
WHOLE_ARCHIVE_LINK = 0
GRIFFIN_BUILD = 0
OBJ :=
# For threading we need to overwrite some vars with global defines because devkitPro's includes
# make it hard for us. This works for the pthread wrapper
DEFINES_THREAD := -Dpthread_t=Thread -Dpthread_mutex_t=Mutex -Dpthread_mutexattr_t='void*' -Dpthread_attr_t=int -Dpthread_cond_t=CondVar -Dpthread_condattr_t='int' -D_SYS__PTHREADTYPES_H_
DEFINES := -U__linux__ -U__linux -DRARCH_INTERNAL -DGLOBAL_CONFIG_DIR='"/switch"' $(DEFINES_THREAD)
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_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 0
HAVE_XMB = 0
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_MENU = 1
HAVE_RUNAHEAD = 1
# RetroArch libnx useful flags
HAVE_OVERLAY = 0
HAVE_THREADS = 1
HAVE_PTHREADS = 1
HAVE_FREETYPE = 0
HAVE_SWITCH = 1
HAVE_LIBNX = 1
include Makefile.common
BLACKLIST :=
#BLACKLIST += input/input_overlay.o
#BLACKLIST += tasks/task_overlay.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# SOURCES is a list of directories containing source code
# DATA is a list of directories containing data files
# INCLUDES is a list of directories containing header files
# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm".
# ROMFS is the directory containing data to be added to RomFS, relative to the Makefile (Optional)
#
# NO_ICON: if set to anything, do not use icon.
# NO_NACP: if set to anything, no .nacp file is generated.
# APP_TITLE is the name of the app stored in the .nacp file (Optional)
# APP_AUTHOR is the author of the app stored in the .nacp file (Optional)
# APP_VERSION is the version of the app stored in the .nacp file (Optional)
# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional)
# ICON is the filename of the icon (.jpg), relative to the project folder.
# If not set, it attempts to use one of the following (in this order):
# - <Project name>.jpg
# - icon.jpg
# - <libnx folder>/default_icon.jpg
#---------------------------------------------------------------------------------
BUILD := build
SOURCES := $(CURDIR)/source
DATA := data
INCLUDES := include
EXEFS_SRC := exefs_src
#ROMFS := switch/romfs
APP_TITLE := RetroArch
APP_VERSION := 1.0.0
APP_AUTHOR := libretro Team
NO_ICON := 1
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mcpu=cortex-a57+crc+fp+simd
CFLAGS := -g -Wall -O3 -ffast-math -ffunction-sections \
$(ARCH) $(DEFINES) -Ideps -Ideps/libz -Ilibretro-common/include -Ideps/stb -I$(LIBNX)/include -include $(LIBNX)/include/switch.h #$(shell $(DEVKITPRO)/portlibs/switch/bin/freetype-config --cflags)
CFLAGS += $(INCLUDE) -DSWITCH=1 -DHAVE_LIBNX=1 -DNXLINK=1
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs $(ARCH) -Wl,--allow-multiple-definition -Wl,-Map,$(notdir $*.map)
LIBS := -lnx -lm -lstdc++ -lbz2 -lpng -lz
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS) $(LIBNX)
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------
export OUTPUT := $(TARGET)
export TOPDIR := $(CURDIR)
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
export DEPSDIR := $(CURDIR)/
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
#---------------------------------------------------------------------------------
# use CXX for linking C++ projects, CC for standard C
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
#---------------------------------------------------------------------------------
export LD := $(CC)
#---------------------------------------------------------------------------------
else
#---------------------------------------------------------------------------------
export LD := $(CXX)
#---------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------
export OFILES := $(OBJ) libretro_switch.a
export HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD)
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC)
ifeq ($(strip $(ICON)),)
icons := $(wildcard *.jpg)
ifneq (,$(findstring $(TARGET).jpg,$(icons)))
export APP_ICON := $(TOPDIR)/$(TARGET).jpg
else
ifneq (,$(findstring icon.jpg,$(icons)))
export APP_ICON := $(TOPDIR)/icon.jpg
endif
endif
else
export APP_ICON := $(TOPDIR)/$(ICON)
endif
ifeq ($(strip $(NO_ICON)),)
export NROFLAGS += --icon=$(APP_ICON)
endif
ifeq ($(strip $(NO_NACP)),)
export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp
endif
ifneq ($(APP_TITLEID),)
export NACPFLAGS += --titleid=$(APP_TITLEID)
endif
ifneq ($(ROMFS),)
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
endif
DEPENDS := $(OFILES:.o=.d)
.PHONY: clean all
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
all : $(OUTPUT).pfs0 $(OUTPUT).nro
$(OUTPUT).pfs0 : $(OUTPUT).nso
$(OUTPUT).nso : $(OUTPUT).elf
ifeq ($(strip $(NO_NACP)),)
$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp
else
$(OUTPUT).nro : $(OUTPUT).elf
endif
$(OUTPUT).elf : $(OBJ)
clean:
rm -f $(OBJ) $(OUTPUT).pfs0 $(OUTPUT).nro $(OUTPUT).elf
#---------------------------------------------------------------------------------
# you need a rule like this for each extension you use as binary data
#---------------------------------------------------------------------------------
%.bin.o %_bin.h : %.bin
#---------------------------------------------------------------------------------
@echo $(notdir $<)
@$(bin2o)
#---------------------------------------------------------------------------------------
endif
#---------------------------------------------------------------------------------------
+273
View File
@@ -0,0 +1,273 @@
TARGET := retroarch.exe
DEBUG = 0
GRIFFIN_BUILD = 0
OS = Win32
ARCH = amd64
#TARGET_ARCH = x86
BUILD_DIR = objs/msvc
CXX_BUILD = 0
WindowsSdkDir = C:\Program Files (x86)\Windows Kits\10\$(NOTHING)
WindowsSDKVersion := 10.0.14393.0\$(NOTHING)
VCINSTALLDIR := C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\$(NOTHING)
HAVE_D3DX := 1
HAVE_D3D8 := 0
HAVE_D3D9 := 1
HAVE_D3D10 := 1
HAVE_D3D11 := 1
HAVE_D3D12 := 1
HAVE_CG := 1
HAVE_OPENGL := 1
HAVE_VULKAN := 1
HAVE_XAUDIO := 1
HAVE_XINPUT := 1
HAVE_WASAPI := 0
HAVE_THREAD_STORAGE := 1
HAVE_WINMM := 1
HAVE_RPNG := 1
HAVE_ZLIB := 1
WANT_ZLIB := 1
HAVE_RGUI := 1
HAVE_XMB := 1
HAVE_MATERIALUI := 1
HAVE_STB_FONT := 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
HAVE_COMMAND := 1
HAVE_STDIN_CMD := 1
HAVE_CMD := 1
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_DINPUT := 1
HAVE_MENU_COMMON := 1
HAVE_BUILTINZLIB := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_7ZIP := 1
HAVE_NETWORKING := 1
HAVE_NETWORK_CMD := 1
HAVE_OVERLAY := 1
HAVE_LANGEXTRA := 1
HAVE_CHEEVOS := 1
HAVE_SHADERPIPELINE := 1
HAVE_IMAGEVIEWER := 1
include Makefile.common
INCLUDE_DIRS := $(patsubst -isystem%,-I%,$(INCLUDE_DIRS))
CFLAGS := $(filter-out -Wno-unknown-pragmas,$(CFLAGS))
CXXFLAGS := $(filter-out -fpermissive -Wno-switch -Wno-sign-compare -fno-strict-aliasing -Wno-maybe-uninitialized -Wno-reorder -Wno-parentheses,$(CXXFLAGS))
LIBS := $(filter-out -lstdc++,$(LIBS))
ifeq ($(ARCH),x64)
ARCH := amd64
endif
ARCH2 := $(ARCH)
ifeq ($(ARCH),amd64)
ARCH2 := x64
endif
ifeq ($(TARGET_ARCH),)
TARGET_ARCH = $(ARCH)
endif
ifeq ($(TARGET_ARCH),x64)
TARGET_ARCH = amd64
endif
TARGET_ARCH2 = $(TARGET_ARCH)
ifeq ($(TARGET_ARCH2),amd64)
TARGET_ARCH2 = x64
endif
CROSS = $(ARCH)
ifeq ($(ARCH),x86)
CROSS =
endif
INCLUDE := $(VCINSTALLDIR)include;$(VCINSTALLDIR)atlmfc\include;$(WindowsSdkDir)include\$(WindowsSDKVersion)ucrt;$(WindowsSdkDir)include\$(WindowsSDKVersion)shared;$(WindowsSdkDir)include\$(WindowsSDKVersion)um;
LIB := $(VCINSTALLDIR)LIB\$(CROSS);$(VCINSTALLDIR)atlmfc\lib\$(CROSS);$(WindowsSdkDir)lib\$(WindowsSDKVersion)ucrt\$(TARGET_ARCH2);$(WindowsSdkDir)lib\$(WindowsSDKVersion)um\$(TARGET_ARCH2);C:\Program Files (x86)\NVIDIA Corporation\Cg\lib.$(TARGET_ARCH2);C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\$(TARGET_ARCH2);
LIBPATH := $(VCINSTALLDIR)LIB\$(CROSS);$(VCINSTALLDIR)atlmfc\lib\$(CROSS);
PATH := $(shell IFS=$$'\n'; cygpath "$(VCINSTALLDIR)bin\\$(CROSS)"):$(shell IFS=$$'\n'; cygpath "$(WindowsSdkDir)\bin\\$(ARCH2)"):$(PATH)
export INCLUDE := $(INCLUDE)
export LIB := $(LIB)
export LIBPATH := $(LIBPATH)
export PATH := $(PATH)
#$(info WindowsSdkDir : $(WindowsSdkDir))
#$(info WindowsSDKVersion : $(WindowsSDKVersion))
#$(info VCINSTALLDIR : $(VCINSTALLDIR))
#$(info INCLUDE : $(INCLUDE))
#$(info LIB : $(LIB))
#$(info LIBPATH : $(LIBPATH))
#$(info PATH : $(PATH))
#$(error end)
DEFINES += -D__SSE__ -D__SSE2__
ifeq ($(TARGET_ARCH2),x64)
DEFINES += -D__x86_64__
else
#DEFINES += -D__i686__
endif
FLAGS += -nologo -MP
FLAGS += -Gm- -Zc:inline -fp:precise -Zc:forScope -GR- -Gd -Oi -volatile:iso
#FLAGS += -Zc:wchar_t -Zp16 -Z7
#FLAGS += -utf-8
#FLAGS += -source-charset:utf-8
CXXFLAGS += $(CFLAGS) -TP -EHsc
ifeq ($(CXX_BUILD),1)
CFLAGS := $(CXXFLAGS)
DEFINES += -DCXX_BUILD
else
CFLAGS += -TC
endif
WARNINGS += -WX -W3
WARNINGS += -wd4101 -wd4996 -wd4244 -wd4267 -wd4090 -wd4305 -wd4146 -wd4334 -wd4018 -wd4800 -wd4838
CC = cl.exe
CXX = cl.exe
LD = link.exe
RC = rc.exe
LIBS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib
LDFLAGS += -nologo -wx -nxcompat -machine:$(TARGET_ARCH2)
ifeq ($(DEBUG),1)
FLAGS += -GS -Gy -Od -RTC1 -D_SECURE_SCL=1 -Zi
FLAGS += -MDd
LDFLAGS += -DEBUG
DEFINES += -DDEBUG -D_DEBUG
else
FLAGS += -GS- -Gy- -O2 -Ob2 -GF -GT -Oy -Ot -D_SECURE_SCL=0
FLAGS += -MD
endif
ifeq ($(DEBUG),1)
BUILD_DIR := $(BUILD_DIR)-debug
endif
ifeq ($(GRIFFIN_BUILD),1)
BUILD_DIR := $(BUILD_DIR)-griffin
endif
BUILD_DIR := $(BUILD_DIR)-$(TARGET_ARCH2)
ifneq ($(V), 1)
Q := @
endif
ifeq ($(GRIFFIN_BUILD), 1)
OBJ := griffin/griffin.o griffin/griffin_cpp.o
DEFINES += -DHAVE_GRIFFIN -DUSE_MATH_DEFINES
else
BLACKLIST :=
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
endif
DEFINES += -DRARCH_INTERNAL -DHAVE_DYNAMIC -DJSON_STATIC
INCLUDE_DIRS += -I. -Igfx/include
#OBJ := version_git.o
OBJ := $(patsubst %rarch.o,%rarch.res,$(OBJ))
OBJ := $(addprefix $(BUILD_DIR)/,$(OBJ))
OBJ := $(OBJ:.o=.obj)
LDFLAGS += -WX -SUBSYSTEM:WINDOWS -ENTRY:mainCRTStartup
DEFINES := $(patsubst -f%,,$(DEFINES))
LDFLAGS := $(patsubst -l%,%.lib,$(LDFLAGS))
LIBS := $(filter-out -lm,$(LIBS))
LIBS := $(patsubst -l%,%.lib,$(LIBS))
#$(info INCLUDE_DIRS : $(INCLUDE_DIRS))
#$(info DEFINES : $(DEFINES))
#$(info CFLAGS : $(CFLAGS))
#$(info CXXFLAGS : $(CXXFLAGS))
#$(info LDFLAGS : $(LDFLAGS))
#$(info LIBS : $(LIBS))
#$(info OBJ : $(OBJ))
#$(info target : $(TARGET))
#$(info flags : $(FLAGS))
#$(info INCLUDE : $(INCLUDE))
#$(info LIB : $(LIB))
#$(info LIBPATH : $(LIBPATH))
#$(error end)
$(info os : $(OS))
$(info host : $(ARCH))
$(info target : $(TARGET_ARCH))
all: $(TARGET)
%: $(BUILD_DIR)/%
cp $< $@
ifeq ($(DEBUG),1)
%.exe: $(BUILD_DIR)/%.exe
cp $< $@
cp $(BUILD_DIR)/$*.pdb $*.pbd
endif
SHELL:=$(SHELL) -o pipefail
DEPFLAGS = -showIncludes | tee $(BUILD_DIR)/$*.dtemp | sed /'Note: including file:'/d
MAKEDEPS = echo $@: $< \\ > $(BUILD_DIR)/$*.depend && \
grep 'Note: including file:' $(BUILD_DIR)/$*.dtemp \
| sed '/$(subst \,\\,$(WindowsSdkDir))/Id; /$(subst \,\\,$(VCINSTALLDIR))/Id; s/Note: including file:[ ]*//g; s/\\/\//g; s/ /\\ /g; s/.*/ & \\/g' \
>> $(BUILD_DIR)/$*.depend && \
rm -f $(BUILD_DIR)/$*.dtemp
#DEPFLAGS :=
#MAKEDEPS :=
$(BUILD_DIR)/%.obj: %.cpp
@mkdir -p $(dir $@)
$(Q)$(CXX) -c -Fo:$@ $< $(FLAGS) $(CXXFLAGS) $(DEFINES) $(INCLUDE_DIRS) $(WARNINGS) $(DEPFLAGS)
@$(MAKEDEPS)
$(BUILD_DIR)/%.obj: %.c
@mkdir -p $(dir $@)
$(Q)$(CC) -c -Fo:$@ $< $(FLAGS) $(CFLAGS) $(DEFINES) $(INCLUDE_DIRS) $(WARNINGS) $(DEPFLAGS)
@$(MAKEDEPS)
$(BUILD_DIR)/%.res: %.rc
@mkdir -p $(dir $@)
$(Q)$(RC) $<
$(Q)mv $*.res $@
$(BUILD_DIR)/$(TARGET): $(OBJ) .$(TARGET).last
@touch .$(TARGET).last
$(Q)$(LD) $(OBJ) $(LDFLAGS) $(LIBS) -out:$(BUILD_DIR)/$(TARGET)
%.h %.hpp %.depend %.last: ;
clean:
rm -f $(OBJ) $(TARGET)
rm -f $(BUILD_DIR)/$(TARGET)
rm -f .$(TARGET).last
rm -f $(OBJ:.obj=.depend)
.PHONY: clean all
.PRECIOUS: %.depend %.last
-include $(patsubst %.obj,%.depend,$(filter %.obj,$(OBJ)))
+62
View File
@@ -0,0 +1,62 @@
# Hakchi version added to ease confusion amongst Hakchi community due to messy past...
#
# Make sure you have readelf installed (sudo apt-get install readelf) to patch the binary
# Might not be needed for your build but it's a useful tool and for safety it should be
# run anyway to ensure the SDL2 link isn't broken...
HAKCHI_VER := Hakchi_Retroarch_Neo_v1_7_3b
HAKCHI_NAME := "Hakchi RetroArch 'Neo' v1.7.3b
MOD_CREATOR := TheOtherGuys
MOD_CATEGORY := RetroArch
HAKCHI_DIR := hakchi
TARGET := retroarch
GIT_COMMIT := $(shell echo "`git rev-parse --short HEAD``git diff-index --quiet HEAD -- || echo '-dirty'`")
all: $(TARGET)
retroarch:
readelf -v #Check if you have readelf installed... (sudo apt-get install readelf)
./configure --host=arm-linux-gnueabihf --disable-freetype --enable-opengles --enable-udev --enable-alsa --enable-neon --enable-floathard
make -f Makefile -j HAVE_HAKCHI=1
patchelf --replace-needed libSDL2-2.0.so.0 libSDL2.so retroarch #libSDL2-2.0.so.0 sym link doesn't exist on native build. Just patch the binary...
#/usr/bin/arm-linux-gnueabihf-strip retroarch
rm -f $(HAKCHI_DIR)/bin/retroarch
cp retroarch $(HAKCHI_DIR)/bin/retroarch
echo $$(echo "Built by: " $$USER @ $$(date) \\\\\\ Git Commit: $(GIT_COMMIT)) > $(HAKCHI_DIR)/etc/libretro/retroarch_version
cp $(HAKCHI_DIR)/readme.md $(HAKCHI_DIR)/readme_COPY.md
printf "%s\n" \
"---" \
"Name: $(HAKCHI_VER)" \
"Creator: $(MOD_CREATOR)" \
"Category: $(MOD_CATEGORY)" \
"Version: $(HAKCHI_VER)" \
"Built on: $(shell date)" \
"Git commit: $(GIT_COMMIT)" \
"---" > $(HAKCHI_DIR)/readme.md
cat $(HAKCHI_DIR)/readme_COPY.md >> $(HAKCHI_DIR)/readme.md
rm $(HAKCHI_DIR)/readme_COPY.md
@echo "** BUILDING HAKCHI $(HAKCHI_VER) HMOD PACKAGE **"
cd $(HAKCHI_DIR)/; tar -czvf "$(HAKCHI_VER).hmod" *
mv $(HAKCHI_DIR)/$(HAKCHI_VER).hmod .
@echo "** BUILT HAKCHI $(HAKCHI_VER) HMOD PACKAGE **"
clean:
rm -f *.o
rm -f audio/*.o
rm -f conf/*.o
rm -f gfx/*.o
rm -f gfx/drivers_font/*.o
rm -f gfx/drivers_font_renderer/*.o
rm -f gfx/drivers_context/*.o
rm -f gfx/py_state/*.o
rm -f compat/*.o
rm -f record/*.o
rm -f input/*.o
rm -f tools/*.o
rm -f $(BINDIR)/retroarch
rm -f $(BINDIR)/retroarch-joyconfig
rm -f $(PNDDIR)/readme.html
rm -f retroarch
rm -f $(HAKCHI_DIR)/bin/retroarch
rm -f $(HAKCHI_VER).hmod
rm -f $(HAKCHI_DIR)/etc/libretro/retroarch_version
+1 -1
View File
@@ -15,7 +15,7 @@ LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
DEFINES = -std=gnu99 -DHAVE_THREADS -DHAVE_GETOPT_LONG=1 -DHAVE_GRIFFIN -DRARCH_INTERNAL
DEFINES += -D__ARM_ARCH_6__ -DSINC_LOWER_QUALITY -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_OVERLAY -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
DEFINES += -D__ARM_ARCH_6__ -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_OVERLAY -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
DEFINES += $(INCDIRS)
DEFINES += -D__OPENPANDORA__ -DPANDORA
DEFINES += -marm -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize
+17 -6
View File
@@ -4,7 +4,7 @@ include version.all
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = ultra-opt
CELL_PSGL_VERSION = opt
ASSETS_DIR := media/assets
@@ -63,7 +63,19 @@ endif
PPU_SRCS = griffin/griffin.c
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER -DHAVE_STB_VORBIS
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER -DHAVE_STB_VORBIS -DHAVE_STB_FONT -DHAVE_RUNAHEAD -DHAVE_DR_MP3 -DHAVE_DR_FLAC
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
@@ -84,8 +96,7 @@ ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else
ifneq($(system_platform), win)
else ifneq ($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
@@ -101,14 +112,14 @@ 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_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -DWANT_ZLIB -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 -DHAVE_CHEEVOS
#DEFINES += -DHAVE_IMAGEVIEWER
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O3 -g
PPU_OPTIMIZE_LV := -O2 -g
endif
ifeq ($(HAVE_LOGGER), 1)
+15 -4
View File
@@ -2,7 +2,7 @@ include version.all
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_BUILD_TOOLS = GCC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = ultra-opt
@@ -63,6 +63,18 @@ PPU_SRCS = griffin/griffin.c
DEFINES += -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_MENU -DRARCH_INTERNAL
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
GL_LIBS := -L. -lrgl_ps3
@@ -82,8 +94,7 @@ ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else
ifneq($(system_platform), win)
else ifneq($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
@@ -99,7 +110,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_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_STB_VORBIS
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_STB_VORBIS
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
+14 -1
View File
@@ -1,4 +1,4 @@
CELL_BUILD_TOOLS = SNC
CELL_BUILD_TOOLS = GCC
CELL_SDK ?= /usr/local/cell
HAVE_LOGGER = 0
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
@@ -27,6 +27,18 @@ STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe
INCFLAGS = -I. -Idefines -Ilibretro-common/include -Ideps/libz
DEFINES = -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
@@ -44,6 +56,7 @@ PPU_SRCS = frontend/frontend_salamander.c \
libretro-common/compat/compat_strl.c \
libretro-common/compat/compat_strcasestr.c \
libretro-common/streams/file_stream.c \
libretro-common/vfs/vfs_implementation.c \
libretro-common/file/config_file.c \
file_path_str.c \
verbosity.c
+8 -6
View File
@@ -1,8 +1,10 @@
BUILD_PRX = 1
BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
DEBUG = 0
HAVE_KERNEL_PRX = 1
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_THREADS = 0
HAVE_THREADS = 1
BIG_STACK = 0
WHOLE_ARCHIVE_LINK = 0
@@ -11,7 +13,7 @@ TARGET = retroarchpsp
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O3 -g
OPTIMIZE_LV := -O3
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
@@ -19,11 +21,11 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_END := -Wl,--no-whole-archive
endif
INCDIR = deps deps/stb deps/libz deps/7zip libretro-common/include
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
INCDIR = deps deps/stb deps/libz deps/7zip deps/pthreads deps/pthreads/platform/psp deps/pthreads/platform/helper libretro-common/include
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math -fsingle-precision-constant
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_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
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 -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
LIBDIR =
LDFLAGS =
+5 -3
View File
@@ -1,4 +1,5 @@
BUILD_PRX = 1
BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
HAVE_FILE_LOGGER = 0
DEBUG = 0
@@ -7,7 +8,7 @@ TARGET = retroarchpsp_salamander
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
else
OPTIMIZE_LV := -O2 -g
OPTIMIZE_LV := -O2
endif
INCDIR = $(PSPPATH)/include libretro-common/include
@@ -24,7 +25,7 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
CFLAGS += $(RARCH_DEFINES)
CFLAGS += $(RARCH_DEFINES)
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = RetroArch
@@ -45,6 +46,7 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o \
+71
View File
@@ -0,0 +1,71 @@
TARGET := retroarch_switch
DEBUG ?= 0
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
OBJ :=
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL -DHAVE_DYNAMIC
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_NEON -DHAVE_MATERIALUI -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB
DEFINES += -DHAVE_RUNAHEAD -DHAVE_DYNAMIC
else
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_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 0 # enable later?
HAVE_XMB = 0
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_MENU = 1
HAVE_RUNAHEAD = 1
HAVE_DYNAMIC = 1
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
endif
ifeq ($(strip $(LIBTRANSISTOR_HOME)),)
$(error "Please set LIBTRANSISTOR_HOME in your environment. export LIBTRANSISTOR_HOME=<path/to/libtransistor/dist/>")
endif
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
INCDIRS := -I. -Ideps -Ideps/libz -Ilibretro-common/include -Ideps/stb -I$(LIBTRANSISTOR_HOME)/build/sdl2_install/include/SDL2/
LIBDIRS := -L.
TARGETS := $(TARGET).nro
CFLAGS += $(INCDIRS) $(DEFINES) -Wno-unused-command-line-argument -Werror-implicit-function-declaration
all: $(TARGETS)
$(TARGET).nro.so: $(OBJ) libretro_switch.a fs.squashfs.o $(LIBTRANSISTOR_NRO_LIB) $(LIBTRANSISTOR_COMMON_LIBS)
$(LD) $(LD_FLAGS) --allow-multiple-definition -o $@ $(OBJ) libretro_switch.a fs.squashfs.o $(LIBTRANSISTOR_NRO_LDFLAGS) -lm
%.squashfs.o: %.squashfs
$(LD) -s -r -b binary -m aarch64elf -T $(LIBTRANSISTOR_HOME)/fs.T -o $@ $<
fs.squashfs: fs/*
mksquashfs $^ $@ -comp lz4 -nopad -noappend
clean:
rm -f $(OBJ) $(TARGET).nro.so $(TARGET).nro
.PHONY: clean all
+3 -19
View File
@@ -16,7 +16,7 @@ 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_NEON -DHAVE_MENU -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB DEFINES -DHAVE_KEYMAPPER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB -DHAVE_CC_RESAMPLER
ifeq ($(DEBUG), 1)
DEFINES += -DHAVE_NETLOGGER
@@ -47,6 +47,8 @@ else
HAVE_CC_RESAMPLER := 1
HAVE_CHEEVOS := 1
RARCH_CONSOLE := 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
ifeq ($(DEBUG), 1)
HAVE_NETLOGGER = 1
@@ -60,24 +62,6 @@ else
OBJ += input/drivers_joypad/psp_joypad.o
OBJ += audio/drivers/psp_audio.o
OBJ += frontend/drivers/platform_psp.o
OBJ += gfx/video_filters/2xsai.o
OBJ += gfx/video_filters/super2xsai.o
OBJ += gfx/video_filters/supereagle.o
OBJ += gfx/video_filters/2xbr.o
OBJ += gfx/video_filters/darken.o
OBJ += gfx/video_filters/epx.o
OBJ += gfx/video_filters/scale2x.o
OBJ += gfx/video_filters/blargg_ntsc_snes.o
OBJ += gfx/video_filters/lq2x.o
OBJ += gfx/video_filters/phosphor2x.o
OBJ += libretro-common/audio/dsp_filters/echo.o
OBJ += libretro-common/audio/dsp_filters/eq.o
OBJ += libretro-common/audio/dsp_filters/chorus.o
OBJ += libretro-common/audio/dsp_filters/iir.o
OBJ += libretro-common/audio/dsp_filters/panning.o
OBJ += libretro-common/audio/dsp_filters/phaser.o
OBJ += libretro-common/audio/dsp_filters/reverb.o
OBJ += libretro-common/audio/dsp_filters/wahwah.o
endif
+1
View File
@@ -46,6 +46,7 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o
+1
View File
@@ -61,6 +61,7 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/file/retro_dirent.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
+200 -133
View File
@@ -1,109 +1,170 @@
TARGET := retroarch_wiiu
BUILD_HBL_ELF = 1
BUILD_RPX = 1
DEBUG = 0
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
BUILD_HBL_ELF = 1
BUILD_RPX = 1
DEBUG = 0
GRIFFIN_BUILD = 0
SALAMANDER_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
WIIU_HID = 1
HAVE_RUNAHEAD = 1
WIIU_LOG_RPX = 0
BUILD_DIR = objs/wiiu
PC_DEVELOPMENT_TCP_PORT ?=
ifeq ($(SALAMANDER_BUILD),1)
BUILD_DIR := $(BUILD_DIR)-salamander
TARGET := $(TARGET)_salamander
else ifeq ($(GRIFFIN_BUILD),1)
BUILD_DIR := $(BUILD_DIR)-griffin
endif
ifeq ($(DEBUG),1)
BUILD_DIR := $(BUILD_DIR)-debug
endif
ifneq ($(V), 1)
Q := @
endif
PC_DEVELOPMENT_IP_ADDRESS ?=
PC_DEVELOPMENT_TCP_PORT ?=
OBJ :=
OBJ += wiiu/main.o
OBJ += wiiu/system/memory.o
OBJ += wiiu/system/atomic.o
OBJ += wiiu/system/exception_handler.o
OBJ += wiiu/system/missing_libc_functions.o
OBJ += wiiu/fs/sd_fat_devoptab.o
OBJ += wiiu/fs/fs_utils.o
OBJ += wiiu/controller_patcher/ControllerPatcher.o
OBJ += wiiu/controller_patcher/ControllerPatcherWrapper.o
OBJ += wiiu/controller_patcher/ConfigReader.o
OBJ += wiiu/controller_patcher/config/ConfigParser.o
OBJ += wiiu/controller_patcher/config/ConfigValues.o
OBJ += wiiu/controller_patcher/network/ControllerPatcherNet.o
OBJ += wiiu/controller_patcher/network/TCPServer.o
OBJ += wiiu/controller_patcher/network/UDPClient.o
OBJ += wiiu/controller_patcher/network/UDPServer.o
OBJ += wiiu/controller_patcher/patcher/ControllerPatcherUtils.o
OBJ += wiiu/controller_patcher/patcher/ControllerPatcherHID.o
OBJ += wiiu/controller_patcher/utils/CPRetainVars.o
OBJ += wiiu/controller_patcher/utils/CPStringTools.o
OBJ += wiiu/controller_patcher/utils/PadConst.o
OBJ += wiiu/controller_patcher/utils/FSHelper.o
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_STB_FONT -DHAVE_STB_VORBIS -DHAVE_LANGEXTRA -DHAVE_LIBRETRODB -DHAVE_NETWORKING
# DEFINES += -DWANT_IFADDRS
# DEFINES += -DHAVE_FREETYPE
DEFINES += -DHAVE_XMB -DHAVE_MATERIALUI
else
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_RGUI = 1
HAVE_ZLIB = 1
HAVE_7ZIP = 1
HAVE_BUILTINZLIB = 1
HAVE_KEYMAPPER = 1
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 1
HAVE_STB_FONT = 1
# HAVE_FREETYPE = 1
HAVE_LANGEXTRA = 1
HAVE_LIBRETRODB = 1
HAVE_NETWORKING = 1
HAVE_CHEEVOS = 1
# WANT_IFADDRS = 1
include Makefile.common
BLACKLIST :=
BLACKLIST += input/input_overlay.o
BLACKLIST += tasks/task_overlay.o
BLACKLIST += $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += gfx/drivers/wiiu_gfx.o
OBJ += gfx/drivers_font/wiiu_font.o
OBJ += menu/drivers_display/menu_display_wiiu.o
OBJ += 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
ifeq ($(WIIU_LOG_RPX),1)
defines += -DWIIU_LOG_RPX
endif
DEFINES += -DHAVE_KEYMAPPER
ifeq ($(WIIU_HID),1)
DEFINES += -DWIIU_HID
OBJ += input/drivers_joypad/wiiu/hidpad_driver.o
OBJ += input/drivers_hid/wiiu_hid.o
OBJ += input/connect/joypad_connection.o \
input/common/hid/hid_device_driver.o \
input/common/hid/device_wiiu_gca.o \
input/common/hid/device_ds3.o \
input/common/hid/device_ds4.o \
input/common/hid/device_null.o
endif
ifeq ($(SALAMANDER_BUILD),1)
DEFINES += -DRARCH_CONSOLE -DIS_SALAMANDER
OBJ += frontend/frontend_salamander.o
OBJ += frontend/frontend_driver.o
OBJ += frontend/drivers/platform_wiiu.o
OBJ += frontend/drivers/platform_null.o
OBJ += libretro-common/encodings/encoding_utf.o
OBJ += libretro-common/compat/compat_strcasestr.o
OBJ += libretro-common/file/file_path.o
OBJ += libretro-common/string/stdstring.o
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/vfs/vfs_implementation.o
OBJ += libretro-common/hash/rhash.o
OBJ += file_path_str.o
OBJ += verbosity.o
else
DEFINES += -DRARCH_INTERNAL
DEFINES += -DHAVE_KEYMAPPER
DEFINES += -DHAVE_UPDATE_ASSETS
DEFINES += -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_SLANG
DEFINES += -DHAVE_SHADERPIPELINE
ifeq ($(HAVE_RUNAHEAD),1)
DEFINES += -DHAVE_RUNAHEAD
endif
OBJ += wiiu/shader_utils.o
OBJ += gfx/drivers/gx2_shaders/tex.o
OBJ += gfx/drivers/gx2_shaders/sprite.o
OBJ += gfx/drivers/gx2_shaders/frame.o
OBJ += gfx/drivers/gx2_shaders/ribbon.o
OBJ += gfx/drivers/gx2_shaders/ribbon_simple.o
OBJ += gfx/drivers/gx2_shaders/bokeh.o
OBJ += gfx/drivers/gx2_shaders/snow.o
OBJ += gfx/drivers/gx2_shaders/snow_simple.o
OBJ += gfx/drivers/gx2_shaders/snowflake.o
OBJ += gfx/drivers_shader/slang_preprocess.o
OBJ += gfx/drivers_shader/glslang_util.o
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_STB_FONT -DHAVE_STB_VORBIS -DHAVE_LANGEXTRA -DHAVE_LIBRETRODB -DHAVE_NETWORKING
# DEFINES += -DWANT_IFADDRS
# DEFINES += -DHAVE_FREETYPE
DEFINES += -DHAVE_XMB -DHAVE_MATERIALUI
else
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_RGUI = 1
HAVE_ZLIB = 1
HAVE_7ZIP = 1
HAVE_BUILTINZLIB = 0
HAVE_LIBRETRODB = 1
HAVE_ZARCH = 0
HAVE_MATERIALUI = 1
HAVE_XMB = 1
HAVE_STB_FONT = 1
# HAVE_FREETYPE = 1
HAVE_LANGEXTRA = 1
HAVE_LIBRETRODB = 1
HAVE_NETWORKING = 1
HAVE_CHEEVOS = 1
# WANT_IFADDRS = 1
HAVE_OVERLAY = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
WANT_LIBFAT = 1
WANT_IOSUHAX = 1
include Makefile.common
BLACKLIST := $(LIBRETRO_COMM_DIR)/net/net_ifinfo.o
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
OBJ += gfx/drivers/gx2_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 += input/drivers_joypad/wiiu/wpad_driver.o
OBJ += input/drivers_joypad/wiiu/kpad_driver.o
OBJ += input/drivers_joypad/wiiu/pad_functions.o
OBJ += audio/drivers/wiiu_audio.o
OBJ += frontend/drivers/platform_wiiu.o
endif
endif
OBJ := $(addprefix $(BUILD_DIR)/,$(OBJ))
#todo: remove -DWIIU and use the built-in macros instead (HW_WUP or __wiiu__).
DEFINES += -DWIIU -DMSB_FIRST -D__WUT__
#DEFINES += -D_GNU_SOURCE
DEFINES += -DHAVE_MAIN
DEFINES += -DRARCH_CONSOLE
ifneq ($(PC_DEVELOPMENT_TCP_PORT),)
DEFINES += -DPC_DEVELOPMENT_TCP_PORT=$(PC_DEVELOPMENT_TCP_PORT)
endif
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
@@ -133,8 +194,16 @@ else
ELF2RPL := $(ELF2RPL).exe
endif
INCDIRS := -I. -Ideps -Ideps/stb -Ideps/libz -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
INCDIRS := -I.
INCDIRS += -Ideps
INCDIRS += -Ideps/stb
INCDIRS += -Ideps/libz
INCDIRS += -Ideps/7zip
INCDIRS += -Ilibretro-common/include
INCDIRS += -Iinput/include
INCDIRS += -Iwiiu
INCDIRS += -Iwiiu/include
INCDIRS += -I$(DEVKITPRO)/portlibs/ppc/include
LIBDIRS := -L. -L$(DEVKITPRO)/portlibs/ppc/lib
CFLAGS := -mwup -mcpu=750 -meabi -mhard-float
@@ -145,6 +214,7 @@ ifeq ($(DEBUG), 1)
else
CFLAGS += -O3
endif
LDFLAGS := $(CFLAGS)
ASFLAGS := $(CFLAGS) -mregnames
@@ -153,34 +223,28 @@ 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 += -DHAVE_UPDATE_ASSETS
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 -D_GNU_SOURCE
CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
LDFLAGS += -Wl,--gc-sections
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm -lfat -liosuhax
LIBS := $(WHOLE_START) -lretro_wiiu $(WHOLE_END) -lm -lpng -lz
ifneq ($(WANT_LIBFAT), 1)
LIBS += -lfat
endif
ifneq ($(WANT_IOSUHAX), 1)
LIBS += -liosuhax
endif
RPX_OBJ = wiiu/system/stubs_rpl.o
HBL_ELF_OBJ = wiiu/system/dynamic.o wiiu/system/stubs_elf.o
RPX_OBJ = $(BUILD_DIR)/wiiu/system/stubs_rpl.o
HBL_ELF_OBJ = $(BUILD_DIR)/wiiu/system/dynamic.o $(BUILD_DIR)/wiiu/system/stubs_elf.o
RPX_LDFLAGS := -pie -fPIE
RPX_LDFLAGS += -z common-page-size=64 -z max-page-size=64
@@ -198,64 +262,67 @@ ifeq ($(BUILD_HBL_ELF), 1)
TARGETS += $(TARGET).elf
endif
DEPFLAGS = -MT $@ -MMD -MP -MF $*.Tdepend
POSTCOMPILE = mv -f $*.Tdepend $*.depend
DEPFLAGS = -MT $@ -MMD -MP -MF $(BUILD_DIR)/$*.depend
all: $(TARGETS)
%.o: %.cpp
%.o: %.cpp %.depend
%: $(BUILD_DIR)/%
cp $< $@
$(BUILD_DIR)/%.o: %.cpp %.depend
@$(if $(Q), echo CXX $<,)
$(Q)$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
@mkdir -p $(dir $@)
$(Q)$(CXX) -c -o $@ $< $(CXXFLAGS) $(DEFINES) $(INCDIRS) $(DEPFLAGS)
%.o: %.c
%.o: %.c %.depend
$(BUILD_DIR)/%.o: %.c %.depend
@$(if $(Q), echo CC $<,)
$(Q)$(CC) -c -o $@ $< $(CFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
@mkdir -p $(dir $@)
$(Q)$(CC) -c -o $@ $< $(CFLAGS) $(DEFINES) $(INCDIRS) $(DEPFLAGS)
%.o: %.S
%.o: %.S %.depend
$(BUILD_DIR)/%.o: %.S %.depend
@$(if $(Q), echo AS $<,)
$(Q)$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
@mkdir -p $(dir $@)
$(Q)$(CC) -c -o $@ $< $(ASFLAGS) $(DEFINES) $(INCDIRS) $(DEPFLAGS)
%.o: %.s
%.o: %.s %.depend
$(BUILD_DIR)/%.o: %.s %.depend
@$(if $(Q), echo AS $<,)
@mkdir -p $(dir $@)
$(Q)$(CC) -c -o $@ $< $(ASFLAGS) $(INCDIRS) $(DEPFLAGS)
$(Q)$(POSTCOMPILE)
%.a:
@$(if $(Q), echo AR $<,)
@mkdir -p $(dir $@)
$(Q)$(AR) -rc $@ $^
%.depend: ;
%.last: ;
$(ELF2RPL):
@$(if $(Q), echo MAKE $@,)
$(Q)$(MAKE) -C wiiu/wut/elf2rpl/
$(TARGET).elf: $(OBJ) $(HBL_ELF_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(BUILD_DIR)/$(TARGET).elf: $(OBJ) $(HBL_ELF_OBJ) libretro_wiiu.a wiiu/link_elf.ld .$(TARGET).elf.last
@$(if $(Q), echo LD $@,)
@touch .$(TARGET).elf.last
$(Q)$(LD) $(OBJ) $(HBL_ELF_OBJ) $(LDFLAGS) $(HBL_ELF_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx.elf: $(OBJ) $(RPX_OBJ) libretro_wiiu.a wiiu/link_elf.ld
$(BUILD_DIR)/$(TARGET).rpx.elf: $(OBJ) $(RPX_OBJ) libretro_wiiu.a wiiu/link_elf.ld
@$(if $(Q), echo LD $@,)
$(Q)$(LD) $(OBJ) $(RPX_OBJ) $(LDFLAGS) $(RPX_LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
$(TARGET).rpx: $(TARGET).rpx.elf $(ELF2RPL)
$(BUILD_DIR)/$(TARGET).rpx: $(BUILD_DIR)/$(TARGET).rpx.elf $(ELF2RPL) .$(TARGET).rpx.last
@$(if $(Q), echo ELF2RPL $@,)
$(Q)-$(ELF2RPL) $(TARGET).rpx.elf $@
@touch .$(TARGET).rpx.last
$(Q)-$(ELF2RPL) $< $@
clean:
rm -f $(OBJ) $(RPX_OBJ) $(HBL_ELF_OBJ) $(TARGET).elf $(TARGET).rpx.elf $(TARGET).rpx
rm -f $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).rpx.elf $(BUILD_DIR)/$(TARGET).rpx
rm -f .$(TARGET).elf.last .$(TARGET).rpx.elf.last .$(TARGET).rpx.last
rm -f $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
.PHONY: clean all
.PRECIOUS: %.depend
.PRECIOUS: %.depend %.last
-include $(OBJ:.o=.depend) $(RPX_OBJ:.o=.depend) $(HBL_ELF_OBJ:.o=.depend)
-176
View File
@@ -1,176 +0,0 @@
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/encodings/encoding_utf.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/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/libz -Ideps/7zip -Ilibretro-common/include -Iwiiu -Iwiiu/include -I$(DEVKITPRO)/portlibs/ppc/include
LIBDIRS := -L. -L$(DEVKITPRO)/portlibs/ppc/lib
CFLAGS := -mwup -mcpu=750 -meabi -mhard-float
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
View File
@@ -18,6 +18,7 @@ HAVE_PYTHON = 0
DYNAMIC = 1
HAVE_XINPUT = 1
HAVE_WINMM = 1
HAVE_SDL := 0
HAVE_SDL2 := 0
+138 -18
View File
@@ -4,7 +4,7 @@
# RetroArch
RetroArch is the reference frontend for the libretro API.
Popular examples of implementations for this API includes videogame system emulators and game engines, but also
Popular examples of implementations for this API includes video game system emulators and game engines as well as
more generalized 3D programs.
These programs are instantiated as dynamic libraries. We refer to these as "libretro cores".
@@ -18,7 +18,7 @@ These programs are instantiated as dynamic libraries. We refer to these as "libr
[libretro](http://libretro.com) is an API that exposes generic audio/video/input callbacks.
A frontend for libretro (such as RetroArch) handles video output, audio output, input and application lifecycle.
A libretro core written in portable C or C++ can run seamlessly on many platforms with very little/no porting effort.
A libretro core written in portable C or C++ can run seamlessly on many platforms with very little to no porting effort.
While RetroArch is the reference frontend for libretro, several other projects have used the libretro
interface to include support for emulators and/or game engines. libretro is completely open and free for anyone to use.
@@ -27,12 +27,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 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/),
or visit our IRC channel: #retroarch @ irc.freenode.org.
To reach developers, either make an issue here on GitHub, make a thread on the [forum](http://www.libretro.com/forums/), chat on [Discord](https://discord.gg/C4amCeV), or visit our IRC channel: #retroarch @ irc.freenode.org.
## Documentation
@@ -49,32 +48,41 @@ More developer-centric stuff is found [here](https://github.com/libretro/libretr
## Philosophy
RetroArch attempts to be small and lean,
RetroArch attempts to be small and lean
while still having all the useful core features expected from an emulator.
It is designed to be very portable and features a gamepad-centric UI.
It is designed to be very portable and features a gamepad-centric and touchscreen UI.
It also has a full-featured command-line interface.
In some areas, RetroArch goes beyond and emphasizes on not-so-common technical features such as multi-pass shader support,
real-time rewind (Braid-style), video recording (using FFmpeg), etc.
real-time rewind (Braid-style), video recording (using FFmpeg), run-ahead input latency removal, etc.
RetroArch also emphasizes on being easy to integrate into various launcher frontends.
RetroArch also emphasizes being easy to integrate into various launcher frontends.
## Platforms
RetroArch has been ported to the following platforms:
- DOS
- Windows
- Linux
- Emscripten (WebAssembly and JavaScript)
- FreeBSD
- NetBSD
- MacOS
- OpenBSD
- Haiku
- Solaris
- macOS (PPC, x86-32 and x86-64)
- PlayStation 3
- PlayStation Portable
- Original Xbox
- Xbox 360 (Libxenon/XeXDK)
- Wii, GameCube (Libogc)
- WiiU
- PlayStation Vita
- Original Microsoft Xbox
- Microsoft Xbox 360 (Libxenon/XeXDK)
- Nintendo GameCube
- Nintendo Wii
- Nintendo Wii U
- Nintendo 3DS
- Nintendo Switch
- Nintendo NES/SNES Classic Edition
- Raspberry Pi
- Android
- iOS
@@ -114,7 +122,7 @@ RetroArch needs at least one of these audio driver libraries:
- DirectSound (Win32, Xbox 1)
- CoreAudio (OSX, iOS)
To run properly, RetroArch requires a libretro implementation present, however, as it's typically loaded
To run properly, RetroArch requires a libretro implementation present; however, as it's typically loaded
dynamically, it's not required at build time.
## Dependencies (Console ports, mobile)
@@ -124,12 +132,12 @@ anything other than what the respective SDKs provide.
## Configuring
The default configuration is defined in config.def.h.
The default configuration is defined in `config.def.h`.
It is not recommended to change this unless you know what you're doing.
These can later be tweaked by using a config file.
A sample configuration file is installed to /etc/retroarch.cfg. This is the system-wide config file.
A sample configuration file is installed to `/etc/retroarch.cfg`. This is the system-wide config file.
RetroArch will on startup create a config file in $XDG\_CONFIG\_HOME/retroarch/retroarch.cfg if doesn't exist.
RetroArch will on startup create a config file in `$XDG\_CONFIG\_HOME/retroarch/retroarch.cfg` if it does not 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 `retroarch-joyconfig` command-line tool.
@@ -137,3 +145,115 @@ To configure joypads, use the built-in menu or the `retroarch-joyconfig` command
## Compiling and installing
Instructions for compiling and installing RetroArch can be found in the [Libretro/RetroArch Documentation Center](https://docs.libretro.com/).
## CRT 15Khz Resolution Switching
CRT SwitchRes will turn on, on the fly. However, you will need to restart RetroArch to disable it. With CRT SwitchRes enable RetroArch will start in 2560 x 480 @ 60.
If you are running Windows, before enabling the CRT SwitchRes options please make sure you have installed CRTEmudriver and installed some modelines. The minimum modelines for all games to switch correctly are:
- 2560 x 192 @ 60.000000
- 2560 x 200 @ 60.000000
- 2560 x 240 @ 60.000000
- 2560 x 224 @ 60.000000
- 2560 x 237 @ 60.000000
- 2560 x 256 @ 50.000000
- 2560 x 254 @ 55.000000
- 2560 x 448 @ 60.000000
- 2560 x 480 @ 60.000000
Install these modelines replacing 2560 with your desired super resolution. The above resolutions are NTSC only so if you would be playing any PAL content please add PAL modelines:
- 2560 x 192 @ 50.000000
- 2560 x 200 @ 50.000000
- 2560 x 240 @ 50.000000
- 2560 x 224 @ 50.000000
- 2560 x 288 @ 50.000000
- 2560 x 237 @ 50.000000
- 2560 x 254 @ 55.000000
- 2560 x 448 @ 50.000000
- 2560 x 480 @ 50.000000
Some games will require higher PAL resolutions which should also be installed:
- 2560 x 512 @ 50.000000
- 2560 x 576 @ 50.000000
Ideally install all these modelines and everything will work great.
## Super Resolutions
The default super resolution is 2560. It is displayed just under the CRT switch option, which can be found in video settings. This can be changed within the retroarch.cfg. The only compatible resolutions are 1920, 2560 and 3840. Any other resolutions will be ignored and native switching will be activated.
## Native Resolutions
If native resolutions are activated you will need a whole new set of modelines:
- 512 x 240 @ 50.006977 SNESpal
- 512 x 224 @ 50.006977 SNESpal
- 512 x 448 @ 50.006977 SNESpal
- 512 x 240 @ 60.098812 SNESntsc
- 512 x 224 @ 60.098812 SNESntsc
- 512 x 448 @ 60.098812 SNESntsc
- 256 x 240 @ 50.006977 SNESpal
- 256 x 448 @ 50.006977 SNESpal
- 256 x 240 @ 60.098812 SNESntsc
- 256 x 448 @ 60.098812 SNESntsc
- 320 x 240 @ 59.922745 MDntsc
- 320 x 448 @ 59.922745 MDntp
- 320 x 480 @ 59.922745 MDntsc
- 256 x 192 @ 59.922745 MDntsc
- 320 x 224 @ 59.922745 MDntsc
- 256 x 224 @ 59.922745 MDntsc
- 320 x 288 @ 49.701458 MDpal
- 320 x 576 @ 49.701458 MDpal
- 256 x 192 @ 49.701458 MDpal
- 320 x 224 @ 49.701458 MDpal
- 320 x 240 @ 49.701458 MDpal
- 320 x 448 @ 49.701458 MDpal
- 320 x 480 @ 49.701458 MDpal
- 256 x 224 @ 49.701458 MDpal
- 256 x 288 @ 49.701458 MSYSpal
- 256 x 240 @ 60.098812 NESntsc
- 256 x 240 @ 50.006977 NESpal
- 640 x 480 @ 60.130001 N64ntsc
- 640 x 237 @ 60.130001 N64ntsc
- 640 x 240 @ 60.130001 N64ntsc
- 640 x 480 @ 50.000000 N64pal
- 640 x 576 @ 50.000000 n64pal
- 640 x 288 @ 50.000000 n64pal
- 256 x 252 @ 49.759998 PSXpal
- 384 x 252 @ 49.759998 PSXpal
- 640 x 540 @ 49.759998 PSXpal
- 320 x 252 @ 49.759998 PSXpal
- 640 x 252 @ 49.759998 PSXpal
- 384 x 240 @ 59.941002 PSXntsc
- 256 x 480 @ 59.941002 PSXntsc
- 352 x 240 @ 59.820000 Saturn/SGFX_NTSCp
- 704 x 240 @ 59.820000 SaturnNTSCp
- 352 x 480 @ 59.820000 SaturnNTSCi
- 704 x 480 @ 59.820000 SaturnNTSCi
- 352 x 288 @ 49.701458 SaturnPALp
- 704 x 288 @ 49.701458 SaturnPALp
- 352 x 576 @ 49.701458 SaturnPALi
- 704 x 576 @ 49.701458 SaturnPALi
- 240 x 160 @ 59.730000 GBA
- 320 x 200 @ 60.000000 Doom
// Arcade
- 400 x 254 @ 54.706841 MK
- 384 x 224 @ 59.637405 CPS1
These modelines are more accurate giving exact hz. However, some games may have unwanted results. This is due to mid-scanline resolution changes on the original hardware. For the best results super resolutions are the way to go.
## CRT resolution switching & MAME
Some arcade resolutions can be very different from consumer CRTs. There is resolution detection to ensure MAME games will be displayed in the closest available resolution but drawn at their native resolution within this resolution. Meaning that the MAME game will look just like the original hardware.
MAME ROMs that run in a vertical aspect like DoDonPachi need to be rotated within MAME before resolution switching and aspect correction will work. Do this before enabling CRT SwitchRes so that RetroArch will run in your desktop resolution. Once you have rotated any games that may need it turn CRT SwitchRes on.
+456 -170
View File
File diff suppressed because it is too large. Load diff
+73 -11
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -23,6 +23,7 @@
#include <boolean.h>
#include <audio/audio_mixer.h>
#include <audio/audio_resampler.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
@@ -34,6 +35,8 @@ RETRO_BEGIN_DECLS
#define AUDIO_MAX_RATIO 16
#define AUDIO_MIXER_MAX_STREAMS 16
enum audio_action
{
AUDIO_ACTION_NONE = 0,
@@ -45,6 +48,36 @@ enum audio_action
AUDIO_ACTION_MIXER
};
enum audio_mixer_state
{
AUDIO_STREAM_STATE_NONE = 0,
AUDIO_STREAM_STATE_STOPPED,
AUDIO_STREAM_STATE_PLAYING,
AUDIO_STREAM_STATE_PLAYING_LOOPED,
AUDIO_STREAM_STATE_PLAYING_SEQUENTIAL
};
typedef struct audio_mixer_stream
{
audio_mixer_sound_t *handle;
audio_mixer_voice_t *voice;
audio_mixer_stop_cb_t stop_cb;
enum audio_mixer_state state;
float volume;
void *buf;
char *name;
size_t bufsize;
} audio_mixer_stream_t;
typedef struct audio_statistics
{
float average_buffer_saturation;
float std_deviation_percentage;
float close_to_underrun;
float close_to_blocking;
unsigned samples;
} audio_statistics_t;
typedef struct audio_driver
{
/* Creates and initializes handle to audio driver.
@@ -90,7 +123,7 @@ typedef struct audio_driver
/* Is the audio driver currently running? */
bool (*alive)(void *data);
/* Should we care about blocking in audio thread? Fast forwarding.
/* Should we care about blocking in audio thread? Fast forwarding.
*
* If state is true, nonblocking operation is assumed.
* This is typically used for fast-forwarding. If driver cannot
@@ -103,7 +136,7 @@ typedef struct audio_driver
void (*free)(void *data);
/* Defines if driver will take standard floating point samples,
* or int16_t samples.
* or int16_t samples.
*
* If true is returned, the audio driver is capable of using
* floating point data. This will likely increase performance as the
@@ -127,20 +160,13 @@ typedef struct audio_driver
size_t (*buffer_size)(void *data);
} audio_driver_t;
enum audio_mixer_state
{
AUDIO_STREAM_STATE_NONE = 0,
AUDIO_STREAM_STATE_STOPPED,
AUDIO_STREAM_STATE_PLAYING,
AUDIO_STREAM_STATE_PLAYING_LOOPED
};
typedef struct audio_mixer_stream_params
{
float volume;
enum audio_mixer_type type;
enum audio_mixer_state state;
void *buf;
char *basename;
size_t bufsize;
audio_mixer_stop_cb_t cb;
} audio_mixer_stream_params_t;
@@ -151,8 +177,16 @@ void audio_driver_set_own_driver(void);
void audio_driver_unset_own_driver(void);
void audio_driver_suspend(void);
bool audio_driver_is_suspended(void);
void audio_driver_resume(void);
void audio_driver_set_active(void);
bool audio_driver_is_active(void);
void audio_driver_destroy(void);
void audio_driver_deinit_resampler(void);
@@ -253,8 +287,34 @@ bool audio_driver_deinit(void);
bool audio_driver_init(void);
void audio_driver_menu_sample(void);
audio_mixer_stream_t *audio_driver_mixer_get_stream(unsigned i);
bool audio_driver_mixer_add_stream(audio_mixer_stream_params_t *params);
void audio_driver_mixer_play_stream(unsigned i);
void audio_driver_mixer_play_stream_sequential(unsigned i);
void audio_driver_mixer_play_stream_looped(unsigned i);
void audio_driver_mixer_stop_stream(unsigned i);
float audio_driver_mixer_get_stream_volume(unsigned i);
void audio_driver_mixer_set_stream_volume(unsigned i, float vol);
void audio_driver_mixer_remove_stream(unsigned i);
enum resampler_quality audio_driver_get_resampler_quality(void);
enum audio_mixer_state audio_driver_mixer_get_stream_state(unsigned i);
const char *audio_driver_mixer_get_stream_name(unsigned i);
bool compute_audio_buffer_statistics(audio_statistics_t *stats);
extern audio_driver_t audio_rsound;
extern audio_driver_t audio_oss;
extern audio_driver_t audio_alsa;
@@ -277,6 +337,8 @@ 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;
extern audio_driver_t audio_switch;
extern audio_driver_t audio_switch_thread;
extern audio_driver_t audio_rwebaudio;
extern audio_driver_t audio_null;
+5 -5
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -56,7 +56,7 @@ static void audio_thread_loop(void *data)
return;
RARCH_LOG("[Audio Thread]: Initializing audio driver.\n");
thr->driver_data = thr->driver->init(thr->device, thr->out_rate, thr->latency,
thr->driver_data = thr->driver->init(thr->device, thr->out_rate, thr->latency,
thr->block_frames, thr->new_rate);
slock_lock(thr->lock);
thr->inited = thr->driver_data ? 1 : -1;
@@ -68,7 +68,7 @@ static void audio_thread_loop(void *data)
if (thr->inited < 0)
return;
/* Wait until we start to avoid calling
/* Wait until we start to avoid calling
* stop immediately after initialization. */
slock_lock(thr->lock);
while (thr->stopped)
@@ -188,7 +188,7 @@ static bool audio_thread_stop(void *data)
audio_thread_t *thr = (audio_thread_t*)data;
if (!thr)
return false;
return false;
audio_thread_block(thr);
thr->is_paused = true;
@@ -274,7 +274,7 @@ static const audio_driver_t audio_thread = {
*
* Starts a audio driver in a new thread.
* Access to audio driver will be mediated through this driver.
* This driver interfaces with audio callback and is
* This driver interfaces with audio callback and is
* only used in that case.
*
* Returns: true (1) if successful, otherwise false (0).
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+3 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -121,7 +121,7 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
if (snd_pcm_hw_params(alsa->pcm, params) < 0)
goto error;
/* Shouldn't have to bother with this,
/* Shouldn't have to bother with this,
* but some drivers are apparently broken. */
if (snd_pcm_hw_params_get_period_size(params, &buffer_size, NULL))
snd_pcm_hw_params_get_period_size_min(params, &buffer_size, NULL);
@@ -370,7 +370,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || (string_is_equal_fast(io, "Output", 6)))
if (!io || (string_is_equal(io, "Output")))
string_list_append(s, name, attr);
if (name)
+5 -5
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -231,7 +231,7 @@ static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size)
if (avail_write)
{
memcpy(alsa->buffer[alsa->buffer_index] +
memcpy(alsa->buffer[alsa->buffer_index] +
alsa->buffer_ptr, buf, avail_write);
alsa->buffer_ptr += avail_write;
@@ -355,8 +355,8 @@ static void alsa_qsa_free(void *data)
static size_t alsa_qsa_write_avail(void *data)
{
alsa_t *alsa = (alsa_t*)data;
size_t avail = (alsa->buf_count -
(int)alsa->buffered_blocks - 1) * alsa->buf_size +
size_t avail = (alsa->buf_count -
(int)alsa->buffered_blocks - 1) * alsa->buf_size +
(alsa->buf_size - (int)alsa->buffer_ptr);
return avail;
}
@@ -364,7 +364,7 @@ static size_t alsa_qsa_write_avail(void *data)
static size_t alsa_qsa_buffer_size(void *data)
{
alsa_t *alsa = (alsa_t*)data;
return alsa->buf_size * alsa->buf_count;
return alsa->buf_size * alsa->buf_count;
}
audio_driver_t audio_alsa = {
+4 -4
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -77,7 +77,7 @@ static void alsa_worker_thread(void *data)
frames = snd_pcm_writei(alsa->pcm, buf, alsa->period_frames);
if (frames == -EPIPE || frames == -EINTR ||
if (frames == -EPIPE || frames == -EINTR ||
frames == -ESTRPIPE)
{
if (snd_pcm_recover(alsa->pcm, frames, 1) < 0)
@@ -192,7 +192,7 @@ static void *alsa_thread_init(const char *device,
TRY_ALSA(snd_pcm_hw_params(alsa->pcm, params));
/* Shouldn't have to bother with this,
/* Shouldn't have to bother with this,
* but some drivers are apparently broken. */
if (snd_pcm_hw_params_get_period_size(params, &alsa->period_frames, NULL))
snd_pcm_hw_params_get_period_size_min(
@@ -370,7 +370,7 @@ static void *alsa_device_list_new(void *data)
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || (string_is_equal_fast(io,"Output", 6)))
if (!io || string_is_equal(io,"Output"))
string_list_append(s, name, attr);
if (name)
+10 -10
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2014 - Chris Moeller
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -112,7 +112,7 @@ static OSStatus audio_write_cb(void *userdata,
slock_unlock(dev->lock);
/* Technically possible to deadlock without. */
scond_signal(dev->cond);
scond_signal(dev->cond);
return noErr;
}
@@ -169,10 +169,10 @@ static void choose_output_device(coreaudio_t *dev, const char* device)
size = 1024;
if (AudioObjectGetPropertyData(devices[i],
&propaddr, 0, 0, &size, device_name) == noErr
&propaddr, 0, 0, &size, device_name) == noErr
&& string_is_equal(device_name, device))
{
AudioUnitSetProperty(dev->dev, kAudioOutputUnitProperty_CurrentDevice,
AudioUnitSetProperty(dev->dev, kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global, 0, &devices[i], sizeof(AudioDeviceID));
goto done;
}
@@ -244,7 +244,7 @@ static void *coreaudio_init(const char *device,
#endif
if (comp == NULL)
goto error;
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
component_unavailable = (OpenAComponent(comp, &dev->dev) != noErr);
#else
@@ -269,17 +269,17 @@ static void *coreaudio_init(const char *device,
stream_desc.mBytesPerFrame = 2 * sizeof(float);
stream_desc.mFramesPerPacket = 1;
stream_desc.mFormatID = kAudioFormatLinearPCM;
stream_desc.mFormatFlags = kAudioFormatFlagIsFloat |
kAudioFormatFlagIsPacked | (is_little_endian() ?
stream_desc.mFormatFlags = kAudioFormatFlagIsFloat |
kAudioFormatFlagIsPacked | (is_little_endian() ?
0 : kAudioFormatFlagIsBigEndian);
if (AudioUnitSetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, 0, &stream_desc, sizeof(stream_desc)) != noErr)
goto error;
/* Check returned audio format. */
i_size = sizeof(real_desc);
if (AudioUnitGetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
if (AudioUnitGetProperty(dev->dev, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, 0, &real_desc, &i_size) != noErr)
goto error;
+3 -3
View File
@@ -49,7 +49,7 @@ typedef struct
static void ctr_csnd_audio_update_playpos(ctr_csnd_audio_t* ctr)
{
uint64_t current_tick = svcGetSystemTick();
uint32_t samples_played = (current_tick - ctr->cpu_ticks_last)
uint32_t samples_played = (current_tick - ctr->cpu_ticks_last)
/ CTR_CSND_CPU_TICKS_PER_SAMPLE;
ctr->playpos = (ctr->playpos + samples_played) & CTR_CSND_AUDIO_COUNT_MASK;
@@ -94,7 +94,7 @@ Result csndPlaySound_custom(int chn, u32 flags, float vol, float pan,
if (loopMode == CSND_LOOPMODE_NORMAL && paddr1 > paddr0)
{
/* Now that the first block is playing,
/* Now that the first block is playing,
* configure the size of the subsequent blocks */
size -= paddr1 - paddr0;
CSND_SetBlock(chn, 1, paddr1, size);
@@ -209,7 +209,7 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
}
static bool ctr_csnd_audio_stop(void *data)
{
{
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
/* using SetPlayState would make tracking the playback
+35 -9
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -21,8 +21,8 @@
#ifndef _XBOX
#include <windows.h>
#include <mmreg.h>
#include <mmsystem.h>
#include <mmreg.h>
#endif
#include <dsound.h>
@@ -32,7 +32,9 @@
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <retro_timers.h>
#ifdef HAVE_THREADS
#include <rthreads/rthreads.h>
#endif
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
@@ -59,7 +61,11 @@ typedef struct dsound
CRITICAL_SECTION crit;
HANDLE event;
#ifdef HAVE_THREADS
sthread_t *thread;
#else
HANDLE thread;
#endif
unsigned buffer_size;
@@ -93,7 +99,7 @@ static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
struct audio_lock *region)
{
const char *err = NULL;
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region->chunk1, &region->size1, &region->chunk2, &region->size2, 0);
if (res == DSERR_BUFFERLOST)
@@ -137,7 +143,11 @@ static INLINE void release_region(dsound_t *ds, const struct audio_lock *region)
region->size1, region->chunk2, region->size2);
}
#ifdef HAVE_THREADS
static void dsound_thread(void *data)
#else
static DWORD CALLBACK dsound_thread(PVOID data)
#endif
{
DWORD write_ptr;
dsound_t *ds = (dsound_t*)data;
@@ -152,7 +162,7 @@ static void dsound_thread(void *data)
struct audio_lock region;
DWORD read_ptr, avail, fifo_avail;
get_positions(ds, &read_ptr, NULL);
avail = write_avail(read_ptr, write_ptr, ds->buffer_size);
EnterCriticalSection(&ds->crit);
@@ -161,12 +171,12 @@ static void dsound_thread(void *data)
if (avail < CHUNK_SIZE || ((fifo_avail < CHUNK_SIZE) && (avail < ds->buffer_size / 2)))
{
/* No space to write, or we don't have data in our fifo,
/* No space to write, or we don't have data in our fifo,
* but we can wait some time before it underruns ... */
/* We could opt for using the notification interface,
* but it is not guaranteed to work, so use high
* but it is not guaranteed to work, so use high
* priority sleeping patterns.
*/
retro_sleep(1);
@@ -182,7 +192,7 @@ static void dsound_thread(void *data)
if (fifo_avail < CHUNK_SIZE)
{
/* Got space to write, but nothing in FIFO (underrun),
/* Got space to write, but nothing in FIFO (underrun),
* fill block with silence. */
memset(region.chunk1, 0, region.size1);
@@ -191,7 +201,7 @@ static void dsound_thread(void *data)
release_region(ds, &region);
write_ptr = (write_ptr + region.size1 + region.size2) % ds->buffer_size;
}
else
else
{
/* All is good. Pull from it and notify FIFO. */
@@ -219,7 +229,13 @@ static void dsound_stop_thread(dsound_t *ds)
ds->thread_alive = false;
#ifdef HAVE_THREADS
sthread_join(ds->thread);
#else
WaitForSingleObject(ds->thread, INFINITE);
CloseHandle(ds->thread);
#endif
ds->thread = NULL;
}
@@ -228,7 +244,12 @@ static bool dsound_start_thread(dsound_t *ds)
if (!ds->thread)
{
ds->thread_alive = true;
ds->thread = sthread_create(dsound_thread, ds);
#ifdef HAVE_THREADS
ds->thread = sthread_create(dsound_thread, ds);
#else
ds->thread = CreateThread(NULL, 0, dsound_thread, ds, 0, NULL);
#endif
if (!ds->thread)
return false;
}
@@ -261,7 +282,12 @@ static void dsound_free(void *data)
if (ds->thread)
{
ds->thread_alive = false;
#ifdef HAVE_THREADS
sthread_join(ds->thread);
#else
WaitForSingleObject(ds->thread, INFINITE);
CloseHandle(ds->thread);
#endif
}
DeleteCriticalSection(&ds->crit);
+6 -5
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -83,12 +83,13 @@ static void *gx_audio_init(const char *device,
AIInit(NULL);
AIRegisterDMACallback(dma_callback);
if (rate < 33000)
//ranges 0-32000 (default low) and 40000-47999 (in settings going down from 48000) -> set to 32000 hz
if (rate <= 32000 || (rate >= 40000 && rate < 48000))
{
AISetDSPSampleRate(AI_SAMPLERATE_32KHZ);
*new_rate = 32000;
}
else
else //ranges 32001-39999 (in settings going up from 32000) and 48000-max (default high) -> set to 48000 hz
{
AISetDSPSampleRate(AI_SAMPLERATE_48KHZ);
*new_rate = 48000;
@@ -129,9 +130,9 @@ static ssize_t gx_audio_write(void *data, const void *buf_, size_t size)
if (frames < to_write)
to_write = frames;
/* FIXME: Nonblocking audio should break out of loop
/* FIXME: Nonblocking audio should break out of loop
* when it has nothing to write. */
while ((wa->dma_write == wa->dma_next ||
while ((wa->dma_write == wa->dma_next ||
wa->dma_write == wa->dma_busy) && !wa->nonblock)
OSSleepThread(wa->cond);
+3 -3
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -181,7 +181,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
RARCH_ERR("[JACK]: Failed to register ports.\n");
goto error;
}
jports = jack_get_ports(jd->client, NULL, NULL, JackPortIsPhysical | JackPortIsInput);
if (jports == NULL)
{
@@ -222,7 +222,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
for (i = 0; i < parsed; i++)
free(dest_ports[i]);
jack_free(jports);
return jd;
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+5 -2
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -133,6 +133,9 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency,
sl->buf_count = (latency * 4 * rate + 500) / 1000;
sl->buf_count = (sl->buf_count + sl->buf_size / 2) / sl->buf_size;
if (sl->buf_count < 2)
sl->buf_count = 2;
sl->buffer = (uint8_t**)calloc(sizeof(uint8_t*), sl->buf_count);
if (!sl->buffer)
goto error;
@@ -200,7 +203,7 @@ error:
static bool sl_stop(void *data)
{
sl_t *sl = (sl_t*)data;
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
sl->is_paused = (SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_STOPPED)
== SL_RESULT_SUCCESS) ? true : false;
return sl->is_paused ? true : false;
+2 -2
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -51,7 +51,7 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency,
int frags, frag, channels, format, new_rate;
int *fd = (int*)calloc(1, sizeof(int));
const char *oss_device = device ? device : DEFAULT_OSS_DEV;
if (!fd)
return NULL;
+3 -3
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -110,11 +110,11 @@ static void *ps3_audio_init(const char *device,
return NULL;
}
data->buffer = fifo_new(CELL_AUDIO_BLOCK_SAMPLES *
data->buffer = fifo_new(CELL_AUDIO_BLOCK_SAMPLES *
AUDIO_CHANNELS * AUDIO_BLOCKS * sizeof(float));
#ifdef __PSL1GHT__
sys_lwmutex_attr_t lock_attr =
sys_lwmutex_attr_t lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
sys_lwmutex_attr_t cond_lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
+72 -105
View File
@@ -20,6 +20,9 @@
#include <stdio.h>
#include <string.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
#ifdef VITA
#include <psp2/kernel/processmgr.h>
#include <psp2/kernel/threadmgr.h>
@@ -46,27 +49,21 @@ typedef struct psp_audio
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
sthread_t *worker_thread;
slock_t *fifo_lock;
scond_t *cond;
slock_t *cond_lock;
} psp_audio_t;
#define AUDIO_OUT_COUNT 512u
#define AUDIO_BUFFER_SIZE (1u<<13u)
#define AUDIO_BUFFER_SIZE_MASK (AUDIO_BUFFER_SIZE-1)
#ifdef VITA
#define PSP_THREAD_STOPPED SCE_THREAD_STOPPED
#else
#define SceKernelThreadInfo SceKernelThreadRunStatus
#define sceKernelGetThreadInfo sceKernelReferThreadRunStatus
#endif
static int audioMainLoop(SceSize args, void* argp)
static void audioMainLoop(void *data)
{
psp_audio_t* psp = *((psp_audio_t**)argp);
psp_audio_t* psp = (psp_audio_t*)data;
#ifdef VITA
int port = sceAudioOutOpenPort(
SCE_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
@@ -81,17 +78,11 @@ static int audioMainLoop(SceSize args, void* argp)
uint16_t read_pos = psp->read_pos;
uint16_t read_pos_2 = psp->read_pos;
#ifdef VITA
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
#endif
slock_lock(psp->fifo_lock);
cond = ((uint16_t)(psp->write_pos - read_pos) & AUDIO_BUFFER_SIZE_MASK)
< (AUDIO_OUT_COUNT * 2);
#ifndef VITA
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos));
#endif
if (!cond)
{
read_pos += AUDIO_OUT_COUNT;
@@ -99,13 +90,18 @@ static int audioMainLoop(SceSize args, void* argp)
psp->read_pos = read_pos;
}
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
sceKernelSignalLwCond((struct SceKernelLwCondWork*)&psp->cond);
slock_unlock(psp->fifo_lock);
slock_lock(psp->cond_lock);
scond_signal(psp->cond);
slock_unlock(psp->cond_lock);
#ifdef VITA
sceAudioOutOutput(port,
cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos_2));
#else
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
: (psp->buffer + read_pos));
#endif
}
@@ -113,9 +109,9 @@ static int audioMainLoop(SceSize args, void* argp)
sceAudioOutReleasePort(port);
#else
sceAudioSRCChRelease();
sceKernelExitThread(0);
#endif
return 0;
return;
}
static void *psp_audio_init(const char *device,
@@ -131,7 +127,6 @@ 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));
@@ -143,68 +138,67 @@ static void *psp_audio_init(const char *device,
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->fifo_lock = slock_new();
psp->cond_lock = slock_new();
psp->cond = scond_new();
psp->nonblocking = false;
psp->running = true;
sceKernelStartThread(psp->thread, sizeof(psp_audio_t*), &psp);
psp->worker_thread = sthread_create(audioMainLoop, psp);
return psp;
}
static void psp_audio_free(void *data)
{
SceUInt timeout = 100000;
psp_audio_t* psp = (psp_audio_t*)data;
if(!psp)
return;
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
if(psp->running){
if (psp->worker_thread)
{
psp->running = false;
sthread_join(psp->worker_thread);
}
if (psp->cond)
scond_free(psp->cond);
if (psp->fifo_lock)
slock_free(psp->fifo_lock);
if (psp->cond_lock)
slock_free(psp->cond_lock);
}
free(psp->buffer);
sceKernelDeleteThread(psp->thread);
psp->worker_thread = NULL;
free(psp->zeroBuffer);
free(psp);
}
static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
{
psp_audio_t* psp = (psp_audio_t*)data;
psp_audio_t* psp = (psp_audio_t*)data;
uint16_t write_pos = psp->write_pos;
uint16_t sampleCount = size / sizeof(uint32_t);
if (!psp->running)
return -1;
if (psp->nonblocking)
{
if (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
return 0;
return 0;
}
#ifdef VITA
slock_lock(psp->cond_lock);
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);
#endif
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
scond_wait(psp->cond, psp->cond_lock);
slock_unlock(psp->cond_lock);
slock_lock(psp->fifo_lock);
if((write_pos + sampleCount) > AUDIO_BUFFER_SIZE)
{
memcpy(psp->buffer + write_pos, buf,
@@ -220,13 +214,10 @@ static ssize_t psp_audio_write(void *data, const void *buf, size_t size)
write_pos &= AUDIO_BUFFER_SIZE_MASK;
psp->write_pos = write_pos;
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
slock_unlock(psp->fifo_lock);
return size;
return size;
#else
return sampleCount;
#endif
}
static bool psp_audio_alive(void *data)
@@ -240,51 +231,32 @@ static bool psp_audio_alive(void *data)
static bool psp_audio_stop(void *data)
{
SceKernelThreadInfo info;
SceUInt timeout = 100000;
psp_audio_t* psp = (psp_audio_t*)data;
if(psp && !psp->running)
if (psp){
psp->running = false;
if (!psp->worker_thread)
return true;
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(
psp->thread, &info) < 0) /* Error */
return false;
if (info.status == PSP_THREAD_STOPPED)
return false;
psp->running = false;
#if defined(VITA)
sceKernelWaitThreadEnd(psp->thread, NULL, &timeout);
#else
sceKernelWaitThreadEnd(psp->thread, &timeout);
#endif
sthread_join(psp->worker_thread);
psp->worker_thread = NULL;
}
return true;
}
static bool psp_audio_start(void *data, bool is_shutdown)
{
SceKernelThreadInfo info;
psp_audio_t* psp = (psp_audio_t*)data;
if(psp && psp->running)
if(psp && psp->running)
return true;
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(
psp->thread, &info) < 0) /* Error */
return false;
if (info.status != PSP_THREAD_STOPPED)
return false;
psp->running = true;
sceKernelStartThread(psp->thread, sizeof(psp_audio_t*), &psp);
if (!psp->worker_thread)
{
psp->running = true;
psp->worker_thread = sthread_create(audioMainLoop, psp);
}
return true;
}
@@ -307,17 +279,12 @@ static size_t psp_write_avail(void *data)
size_t val;
psp_audio_t* psp = (psp_audio_t*)data;
#ifdef VITA
sceKernelLockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1, 0);
#endif
if (!psp||!psp->running)
return 0;
slock_lock(psp->fifo_lock);
val = AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK);
#ifdef VITA
sceKernelUnlockLwMutex((struct SceKernelLwMutexWork*)&psp->lock, 1);
#endif
slock_unlock(psp->fifo_lock);
return val;
}
+7 -6
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -20,6 +20,7 @@
#include <pulse/pulseaudio.h>
#include <boolean.h>
#include <retro_miscellaneous.h>
#include <retro_endianness.h>
#include "../audio_driver.h"
@@ -88,7 +89,7 @@ static void context_state_cb(pa_context *c, void *data)
}
}
static void stream_state_cb(pa_stream *s, void *data)
static void stream_state_cb(pa_stream *s, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -104,7 +105,7 @@ static void stream_state_cb(pa_stream *s, void *data)
}
}
static void stream_request_cb(pa_stream *s, size_t length, void *data)
static void stream_request_cb(pa_stream *s, size_t length, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -114,7 +115,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *data)
pa_threaded_mainloop_signal(pa->mainloop, 0);
}
static void stream_latency_update_cb(pa_stream *s, void *data)
static void stream_latency_update_cb(pa_stream *s, void *data)
{
pa_t *pa = (pa_t*)data;
@@ -149,7 +150,7 @@ static void buffer_attr_cb(pa_stream *s, void *data)
}
static void *pulse_init(const char *device, unsigned rate,
unsigned latency,
unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
@@ -232,7 +233,7 @@ static void *pulse_init(const char *device, unsigned rate,
unlock_error:
pa_threaded_mainloop_unlock(pa->mainloop);
error:
pulse_free(pa);
pulse_free(pa);
return NULL;
}
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+36 -36
View File
@@ -1,6 +1,6 @@
/* RSound - A PCM audio client/server
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
*
*
* RSound is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -43,7 +43,7 @@ RETRO_BEGIN_DECLS
#endif
/* Feature tests */
#define RSD_SAMPLERATE RSD_SAMPLERATE
#define RSD_SAMPLERATE RSD_SAMPLERATE
#define RSD_CHANNELS RSD_CHANNELS
#define RSD_HOST RSD_HOST
#define RSD_PORT RSD_PORT
@@ -125,7 +125,7 @@ enum rsd_settings
/* Audio callback for rsd_set_callback. Return -1 to trigger an error in the stream. */
typedef ssize_t (*rsd_audio_callback_t)(void *data, size_t bytes, void *userdata);
/* Error callback. Signals caller that stream has been stopped,
/* Error callback. Signals caller that stream has been stopped,
* either by audio callback returning -1 or stream was hung up. */
typedef void (*rsd_error_callback_t)(void *userdata);
@@ -144,7 +144,7 @@ typedef struct rsound
int conn_type;
volatile int buffer_pointer; /* Obsolete, but kept for backwards header compatibility. */
size_t buffer_size;
size_t buffer_size;
fifo_buffer_t *fifo_buffer;
volatile int thread_active;
@@ -196,13 +196,13 @@ typedef struct rsound
rsd_set_param(rd, RSD_HOST, "foohost");
*sets more params*
rsd_start(rd);
rsd_write(rd, buf, size);
rsd_write(rd, buf, size);
rsd_stop(rd);
rsd_free(rd);
*/
int rsd_init (rsound_t **rd);
/* This is a simpler function that initializes an rsound struct, sets params as given,
/* This is a simpler function that initializes an rsound struct, sets params as given,
and starts the stream. Should this function fail, the structure will stay uninitialized.
Should NULL be passed in either host, port or ident, defaults will be used. */
@@ -211,29 +211,29 @@ int rsd_simple_start (rsound_t **rd, const char* host, const char* port, const c
/* Sets params associated with an rsound_t. These options (int options) include:
RSD_HOST: Server to connect to. Expects (char *) in param.
If not set, will default to environmental variable RSD_SERVER or "localhost".
RSD_HOST: Server to connect to. Expects (char *) in param.
If not set, will default to environmental variable RSD_SERVER or "localhost".
RSD_PORT: Set port. Expects (char *) in param.
RSD_PORT: Set port. Expects (char *) in param.
If not set, will default to environmental variable RSD_PORT or "12345".
RSD_CHANNELS: Set number of audio channels. Expects (int *) in param. Mandatory.
RSD_SAMPLERATE: Set samplerate of audio stream. Expects (int *) in param. Mandatory.
RSD_BUFSIZE: Sets internal buffersize for the stream.
Might be overridden if too small.
RSD_BUFSIZE: Sets internal buffersize for the stream.
Might be overridden if too small.
Expects (int *) in param. Optional.
RSD_LATENCY: Sets maximum audio latency in milliseconds,
(must be used with rsd_delay_wait() or this will have no effect).
Most applications do not need this.
Might be overridden if too small.
RSD_LATENCY: Sets maximum audio latency in milliseconds,
(must be used with rsd_delay_wait() or this will have no effect).
Most applications do not need this.
Might be overridden if too small.
Expects (int *) in param. Optional.
RSD_FORMAT: Sets sample format.
It defaults to S16_LE, so you probably will not use this.
Expects (int *) in param, with available values found in the format enum.
RSD_FORMAT: Sets sample format.
It defaults to S16_LE, so you probably will not use this.
Expects (int *) in param, with available values found in the format enum.
If invalid format is given, param might be changed to reflect the sample format the library will use.
RSD_IDENTITY: Sets an identity string associated with the client.
@@ -244,14 +244,14 @@ Will be truncated if longer than 256 bytes.
int rsd_set_param (rsound_t *rd, enum rsd_settings option, void* param);
/* Enables use of the callback interface. This must be set when stream is not active.
When callback is active, use of the blocking interface is disabled.
Only valid functions to call after rsd_start() is stopping the stream with either rsd_pause() or rsd_stop(). Calling any other function is undefined.
The callback is called at regular intervals and is asynchronous, so thread safety must be ensured by the caller.
If not enough data can be given to the callback, librsound will fill the rest of the callback data with silence.
/* Enables use of the callback interface. This must be set when stream is not active.
When callback is active, use of the blocking interface is disabled.
Only valid functions to call after rsd_start() is stopping the stream with either rsd_pause() or rsd_stop(). Calling any other function is undefined.
The callback is called at regular intervals and is asynchronous, so thread safety must be ensured by the caller.
If not enough data can be given to the callback, librsound will fill the rest of the callback data with silence.
librsound will attempt to obey latency information given with RSD_LATENCY as given before calling rsd_start().
max_size signifies the maximum size that will ever be requested by librsound. Set this to 0 to let librsound decide the maximum size.
Should an error occur to the stream, err_callback will be called, and the stream will be stopped. The stream can be started again.
Should an error occur to the stream, err_callback will be called, and the stream will be stopped. The stream can be started again.
Callbacks can be disabled by setting callbacks to NULL. */
@@ -260,37 +260,37 @@ void rsd_set_callback (rsound_t *rd, rsd_audio_callback_t callback, rsd_error_ca
/* Lock and unlock the callback. When the callback lock is aquired, the callback is guaranteed to not be executing.
The lock has to be unlocked afterwards.
Attemping to call several rsd_callback_lock() in succession might cause a deadlock.
The lock should be held for as short period as possible.
The lock should be held for as short period as possible.
Try to avoid calling code that may block when holding the lock. */
void rsd_callback_lock (rsound_t *rd);
void rsd_callback_unlock (rsound_t *rd);
/* Establishes connection to server. Might fail if connection can't be established or that one of
/* Establishes connection to server. Might fail if connection can't be established or that one of
the mandatory options isn't set in rsd_set_param(). This needs to be called after params have been set
with rsd_set_param(), and before rsd_write(). */
with rsd_set_param(), and before rsd_write(). */
int rsd_start (rsound_t *rd);
/* Shuts down the rsound data structures, but returns the file descriptor associated with the connection.
The control socket will be shut down. If this function returns a negative number, the exec failed,
but the data structures will not be teared down.
The control socket will be shut down. If this function returns a negative number, the exec failed,
but the data structures will not be teared down.
Should a valid file descriptor be returned, it will always be blocking.
This call will block until all internal buffers have been sent to the network. */
int rsd_exec (rsound_t *rd);
/* Disconnects from server. All audio data still in network buffer and other buffers will be dropped.
/* Disconnects from server. All audio data still in network buffer and other buffers will be dropped.
To continue playing, you will need to rsd_start() again. */
int rsd_stop (rsound_t *rd);
/* Writes from buf to the internal buffer. Might fail if no connection is established,
/* Writes from buf to the internal buffer. Might fail if no connection is established,
or there was an unexpected error. This function will block until all data has
been written to the buffer. This function will return the number of bytes written to the buffer,
or 0 should it fail (disconnection from server). You will have to restart the stream again should this occur. */
size_t rsd_write (rsound_t *rd, const void* buf, size_t size);
/* Gets the position of the buffer pointer.
Not really interesting for normal applications.
Might be useful for implementing rsound on top of other blocking APIs.
/* Gets the position of the buffer pointer.
Not really interesting for normal applications.
Might be useful for implementing rsound on top of other blocking APIs.
*NOTE* This function is deprecated, it should not be used in new applications. */
size_t rsd_pointer (rsound_t *rd);
@@ -306,12 +306,12 @@ size_t rsd_delay_ms (rsound_t *rd);
/* Returns bytes per sample */
int rsd_samplesize(rsound_t *rd);
/* Will sleep until latency of stream reaches maximum allowed latency defined earlier by rsd_set_param - RSD_LATENCY
/* Will sleep until latency of stream reaches maximum allowed latency defined earlier by rsd_set_param - RSD_LATENCY
Useful for hard headed blocking I/O design where user defined latency is needed. If rsd_set_param hasn't been set
with RSD_LATENCY, this function will do nothing. */
void rsd_delay_wait(rsound_t *rd);
/* Pauses or unpauses a stream. pause -> enable = 1
/* Pauses or unpauses a stream. pause -> enable = 1
This function essentially calls on start() and stop(). This behavior might be changed later. */
int rsd_pause (rsound_t *rd, int enable);
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+11 -11
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -14,14 +14,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include "SDL_audio.h"
#include <boolean.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_queue.h>
@@ -31,6 +23,14 @@
#include "../audio_driver.h"
#include "../../verbosity.h"
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include "SDL_audio.h"
typedef struct sdl_audio
{
bool nonblock;
@@ -93,7 +93,7 @@ static void *sdl_audio_init(const char *device,
if (!sdl)
return NULL;
/* We have to buffer up some data ourselves, so we let SDL
/* We have to buffer up some data ourselves, so we let SDL
* carry approximately half of the latency.
*
* SDL double buffers audio and we do as well. */
@@ -119,7 +119,7 @@ static void *sdl_audio_init(const char *device,
sdl->cond = scond_new();
#endif
RARCH_LOG("[SDL audio]: Requested %u ms latency, got %d ms\n",
RARCH_LOG("[SDL audio]: Requested %u ms latency, got %d ms\n",
latency, (int)(out.samples * 4 * 1000 / (*new_rate)));
/* Create a buffer twice as big as needed and prefill the buffer. */
+366
View File
@@ -0,0 +1,366 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2018 - misson20000
* Copyright (C) 2018 - m4xw
*
* 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 <string.h>
#include <malloc.h>
#include <stdint.h>
#include "switch_audio_compat.h"
#include "../audio_driver.h"
#include "../../verbosity.h"
#ifdef HAVE_LIBNX
#define BUFFER_COUNT 5
#else
#define BUFFER_COUNT 3
#endif
static const int sample_rate = 48000;
static const int max_num_samples = sample_rate;
static const int num_channels = 2;
static const size_t sample_buffer_size = ((max_num_samples * num_channels * sizeof(uint16_t)) + 0xfff) & ~0xfff;
typedef struct
{
bool blocking;
bool is_paused;
uint64_t last_append;
unsigned latency;
compat_audio_out_buffer buffers[BUFFER_COUNT];
compat_audio_out_buffer *current_buffer;
#ifndef HAVE_LIBNX
audio_output_t output;
handle_t event;
#endif
} switch_audio_t;
static uint32_t switch_audio_data_size(void)
{
#ifdef HAVE_LIBNX
static const int framerate = 1000 / 30;
static const int samplecount = (sample_rate / framerate);
return (samplecount * num_channels * sizeof(uint16_t));
#else
return sample_buffer_size;
#endif
}
static size_t switch_audio_buffer_size(void *data)
{
(void) data;
#ifdef HAVE_LIBNX
return (switch_audio_data_size() + 0xfff) & ~0xfff;
#else
return sample_buffer_size;
#endif
}
static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
{
size_t to_write = size;
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa)
return -1;
if (!swa->current_buffer)
{
uint32_t num;
if (switch_audio_ipc_output_get_released_buffer(swa, num) != 0)
{
RARCH_LOG("Failed to get released buffer?\n");
return -1;
}
if (num < 1)
swa->current_buffer = NULL;
if (!swa->current_buffer)
{
if (swa->blocking)
{
RARCH_LOG("No buffer, blocking...\n");
while(swa->current_buffer == NULL)
{
uint32_t handle_idx = 0;
num = 0;
#ifdef HAVE_LIBNX
if (audoutWaitPlayFinish(&swa->current_buffer, &num, U64_MAX) != 0) { }
#else
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
if (switch_audio_ipc_output_get_released_buffer(swa, num) != 0)
return -1;
#endif
}
}
else
/* no buffer, nonblocking... */
return 0;
}
swa->current_buffer->data_size = 0;
}
if (to_write > switch_audio_buffer_size(NULL) - swa->current_buffer->data_size)
to_write = switch_audio_buffer_size(NULL) - swa->current_buffer->data_size;
#ifndef HAVE_LIBNX
memcpy(((uint8_t*) swa->current_buffer->sample_data) + swa->current_buffer->data_size, buf, to_write);
#else
memcpy(((uint8_t*) swa->current_buffer->buffer) + swa->current_buffer->data_size, buf, to_write);
#endif
swa->current_buffer->data_size += to_write;
swa->current_buffer->buffer_size = switch_audio_buffer_size(NULL);
if (swa->current_buffer->data_size > (48000 * swa->latency) / 1000)
{
if (switch_audio_ipc_output_append_buffer(swa, swa->current_buffer) != 0)
return -1;
swa->current_buffer = NULL;
}
swa->last_append = svcGetSystemTick();
return to_write;
}
static bool switch_audio_stop(void *data)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa)
return false;
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
if (!swa->is_paused)
if (switch_audio_ipc_output_stop(swa) != 0)
return false;
swa->is_paused = true;
#endif
return true;
}
static bool switch_audio_start(void *data, bool is_shutdown)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa)
return false;
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
if (swa->is_paused)
if (switch_audio_ipc_output_start(swa) != 0)
return false;
swa->is_paused = false;
#endif
return true;
}
static bool switch_audio_alive(void *data)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa)
return false;
return !swa->is_paused;
}
static void switch_audio_free(void *data)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa)
return;
#ifdef HAVE_LIBNX
if (!swa->is_paused)
audoutStopAudioOut();
audoutExit();
int i;
for (i = 0; i < BUFFER_COUNT; i++)
free(swa->buffers[i].buffer);
#else
audio_ipc_output_close(&swa->output);
audio_ipc_finalize();
#endif
free(swa);
}
static bool switch_audio_use_float(void *data)
{
(void) data;
return false; /* force INT16 */
}
static size_t switch_audio_write_avail(void *data)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (!swa || !swa->current_buffer)
return 0;
return swa->current_buffer->buffer_size;
}
static void switch_audio_set_nonblock_state(void *data, bool state)
{
switch_audio_t *swa = (switch_audio_t*) data;
if (swa)
swa->blocking = !state;
}
static void *switch_audio_init(const char *device,
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
unsigned i;
char names[8][0x20];
uint32_t num_names = 0;
switch_audio_t *swa = (switch_audio_t*) calloc(1, sizeof(*swa));
if (!swa)
return NULL;
if (switch_audio_ipc_init() != 0)
goto fail;
#ifdef HAVE_LIBNX
if (audoutStartAudioOut() != 0)
goto fail;
#else
if (audio_ipc_list_outputs(&names[0], 8, &num_names) != 0)
goto fail_audio_ipc;
if (num_names != 1)
{
RARCH_ERR("got back more than one AudioOut\n");
goto fail_audio_ipc;
}
if (audio_ipc_open_output(names[0], &swa->output) != 0)
goto fail_audio_ipc;
if (swa->output.sample_rate != sample_rate)
{
RARCH_ERR("expected sample rate of %d, got sample rate of %d\n",
sample_rate, swa->output.sample_rate);
goto fail_audio_output;
}
if (swa->output.num_channels != num_channels)
{
RARCH_ERR("expected %d channels, got %d\n", num_channels,
swa->output.num_channels);
goto fail_audio_output;
}
if (swa->output.sample_format != PCM_INT16)
{
RARCH_ERR("expected PCM_INT16, got %d\n", swa->output.sample_format);
goto fail_audio_output;
}
if (audio_ipc_output_register_buffer_event(&swa->output, &swa->event) != 0)
goto fail_audio_output;
#endif
for (i = 0; i < BUFFER_COUNT; i++)
{
swa->buffers[i].buffer_size = switch_audio_buffer_size(NULL);
swa->buffers[i].data_size = switch_audio_data_size();
#ifdef HAVE_LIBNX
swa->buffers[i].next = NULL; /* Unused */
swa->buffers[i].data_offset = 0;
swa->buffers[i].buffer = memalign(0x1000, switch_audio_buffer_size(NULL));
if (swa->buffers[i].buffer == NULL)
goto fail_audio_output;
memset(swa->buffers[i].buffer, 0, switch_audio_buffer_size(NULL));
#else
swa->buffers[i].ptr = &swa->buffers[i].sample_data;
swa->buffers[i].unknown = 0;
swa->buffers[i].sample_data = alloc_pages(sample_buffer_size, switch_audio_buffer_size(NULL), NULL);
if (swa->buffers[i].sample_data == NULL)
goto fail_audio_output;
#endif
if (switch_audio_ipc_output_append_buffer(swa, &swa->buffers[i]) != 0)
goto fail_audio_output;
}
#ifdef HAVE_LIBNX
*new_rate = audoutGetSampleRate();
#else
*new_rate = swa->output.sample_rate;
#endif
swa->current_buffer = NULL;
swa->latency = latency;
swa->last_append = svcGetSystemTick();
swa->blocking = block_frames;
swa->is_paused = true;
RARCH_LOG("[Audio]: Audio initialized\n");
return swa;
fail_audio_output:
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
audio_ipc_output_close(&swa->output);
#endif
fail_audio_ipc:
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
audio_ipc_finalize();
#endif
fail:
if (swa)
free(swa);
return NULL;
}
audio_driver_t audio_switch = {
switch_audio_init,
switch_audio_write,
switch_audio_stop,
switch_audio_start,
switch_audio_alive,
switch_audio_set_nonblock_state,
switch_audio_free,
switch_audio_use_float,
"switch",
NULL, /* device_list_new */
NULL, /* device_list_free */
switch_audio_write_avail,
switch_audio_buffer_size, /* buffer_size */
};
+93
View File
@@ -0,0 +1,93 @@
#ifndef _SWITCH_AUDIO_COMPAT_H
#define _SWITCH_AUDIO_COMPAT_H
#ifdef HAVE_LIBNX
#include <switch.h>
#else
#include <libtransistor/nx.h>
#endif
#ifdef HAVE_LIBNX
/* libnx definitions */
/* threading */
typedef Mutex compat_mutex;
typedef Thread compat_thread;
typedef CondVar compat_condvar;
#define compat_thread_create(thread, func, data, stack_size, prio, cpu) \
threadCreate(thread, func, data, stack_size, prio, cpu)
#define compat_thread_start(thread) \
threadStart(thread)
#define compat_thread_join(thread) \
threadWaitForExit(thread)
#define compat_thread_close(thread) \
threadClose(thread)
#define compat_mutex_create(mutex) \
mutexInit(mutex)
#define compat_mutex_lock(mutex) \
mutexLock(mutex)
#define compat_mutex_unlock(mutex) \
mutexUnlock(mutex)
#define compat_condvar_create(condvar) \
condvarInit(condvar)
#define compat_condvar_wait(condvar, mutex) \
condvarWait(condvar, mutex)
#define compat_condvar_wake_all(condvar) \
condvarWakeAll(condvar)
/* audio */
typedef AudioOutBuffer compat_audio_out_buffer;
#define switch_audio_ipc_init audoutInitialize
#define switch_audio_ipc_finalize audoutExit
#define switch_audio_ipc_output_get_released_buffer(a, b) audoutGetReleasedAudioOutBuffer(&a->current_buffer, &b)
#define switch_audio_ipc_output_append_buffer(a, b) audoutAppendAudioOutBuffer(b)
#define switch_audio_ipc_output_stop(a) audoutStopAudioOut()
#define switch_audio_ipc_output_start(a) audoutStartAudioOut()
#else
/* libtransistor definitions */
typedef result_t Result;
#define R_FAILED(r) ((r) != RESULT_OK)
/* threading */
typedef trn_mutex_t compat_mutex;
typedef trn_thread_t compat_thread;
typedef trn_condvar_t compat_condvar;
#define compat_thread_create(thread, func, data, stack_size, prio, cpu) \
trn_thread_create(thread, func, data, prio, cpu, stack_size, NULL)
#define compat_thread_start(thread) \
trn_thread_start(thread)
#define compat_thread_join(thread) \
trn_thread_join(thread, -1)
#define compat_thread_close(thread) \
trn_thread_destroy(thread)
#define compat_mutex_create(mutex) \
trn_mutex_create(mutex)
#define compat_mutex_lock(mutex) \
trn_mutex_lock(mutex)
#define compat_mutex_unlock(mutex) \
trn_mutex_unlock(mutex)
#define compat_condvar_create(condvar) \
trn_condvar_create(condvar)
#define compat_condvar_wait(condvar, mutex) \
trn_condvar_wait(condvar, mutex, -1)
#define compat_condvar_wake_all(condvar) \
trn_condvar_signal(condvar, -1)
/* audio */
typedef audio_output_buffer_t compat_audio_out_buffer;
#define switch_audio_ipc_init audio_ipc_init
#define switch_audio_ipc_finalize audio_ipc_finalize
#define switch_audio_ipc_output_get_released_buffer(a, b) audio_ipc_output_get_released_buffer(&a->output, &b, &a->current_buffer)
#define switch_audio_ipc_output_append_buffer(a, b) audio_ipc_output_append_buffer(&a->output, b)
#define switch_audio_ipc_output_stop(a) audio_ipc_output_stop(&a->output)
#define switch_audio_ipc_output_start(a) audio_ipc_output_start(&a->output)
#endif
#endif
+448
View File
@@ -0,0 +1,448 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2018 - misson20000
* Copyright (C) 2018 - m4xw
* Copyright (C) 2018 - lifajucejo
*
* 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 <string.h>
#include <malloc.h>
#include <stdint.h>
#include <sys/unistd.h>
#ifdef HAVE_LIBNX
#include <switch.h>
#else
#include <libtransistor/nx.h>
#endif
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../verbosity.h"
#include "../../tasks/tasks_internal.h"
#include "switch_audio_compat.h"
static const size_t thread_stack_size = 1024 * 8;
static const int thread_preferred_cpu = 2;
static const int channel_count = 2;
static const size_t sample_size = sizeof(uint16_t);
static const size_t frame_size = channel_count * sample_size;
#define AUDIO_BUFFER_COUNT 2
typedef struct
{
fifo_buffer_t* fifo;
compat_mutex fifoLock;
compat_condvar cond;
compat_mutex condLock;
size_t fifoSize;
volatile bool running;
bool nonblocking;
bool is_paused;
compat_audio_out_buffer buffers[AUDIO_BUFFER_COUNT];
compat_thread thread;
unsigned latency;
uint32_t sampleRate;
#ifndef HAVE_LIBNX
audio_output_t output;
handle_t event;
#endif
} switch_thread_audio_t;
static void mainLoop(void* data)
{
Result rc;
uint32_t released_out_count = 0;
compat_audio_out_buffer *released_out_buffer = NULL;
switch_thread_audio_t *swa = (switch_thread_audio_t*)data;
if (!swa)
return;
RARCH_LOG("[Audio]: start mainLoop cpu %u tid %u\n", svcGetCurrentProcessorNumber(), swa->thread.handle);
while (swa->running)
{
size_t buf_avail, avail, to_write;
if (!released_out_buffer)
{
#ifdef HAVE_LIBNX
rc = audoutWaitPlayFinish(&released_out_buffer, &released_out_count, U64_MAX);
#else
uint32_t handle_idx = 0;
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
rc = audio_ipc_output_get_released_buffer(&swa->output, &released_out_count, &released_out_buffer);
#endif
if (R_FAILED(rc))
{
swa->running = false;
RARCH_LOG("[Audio]: audoutGetReleasedAudioOutBuffer failed: %d\n", (int)rc);
break;
}
released_out_buffer->data_size = 0;
}
buf_avail = released_out_buffer->buffer_size - released_out_buffer->data_size;
compat_mutex_lock(&swa->fifoLock);
avail = fifo_read_avail(swa->fifo);
to_write = MIN(avail, buf_avail);
if (to_write > 0)
{
uint8_t *base;
#ifdef HAVE_LIBNX
base = (uint8_t*) released_out_buffer->buffer;
#else
base = (uint8_t*) released_out_buffer->sample_data;
#endif
fifo_read(swa->fifo, base + released_out_buffer->data_size, to_write);
}
compat_mutex_unlock(&swa->fifoLock);
compat_condvar_wake_all(&swa->cond);
released_out_buffer->data_size += to_write;
if (released_out_buffer->data_size >= released_out_buffer->buffer_size / 2)
{
rc = switch_audio_ipc_output_append_buffer(swa, released_out_buffer);
if (R_FAILED(rc))
{
RARCH_LOG("[Audio]: audoutAppendAudioOutBuffer failed: %d\n", (int)rc);
}
released_out_buffer = NULL;
}
else
svcSleepThread(16000000); /* 16ms */
}
}
static void *switch_thread_audio_init(const char *device, unsigned rate, unsigned latency, unsigned block_frames, unsigned *new_rate)
{
Result rc;
unsigned i;
uint32_t prio;
char names[8][0x20];
uint32_t num_names = 0;
switch_thread_audio_t *swa = (switch_thread_audio_t *)calloc(1, sizeof(*swa));
if (!swa)
return NULL;
swa->running = true;
swa->nonblocking = true;
swa->is_paused = true;
swa->latency = MAX(latency, 8);
rc = switch_audio_ipc_init();
if (R_FAILED(rc))
{
RARCH_LOG("[Audio]: audio init failed %d\n", (int)rc);
free(swa);
return NULL;
}
#ifdef HAVE_LIBNX
rc = audoutStartAudioOut();
if (R_FAILED(rc))
{
RARCH_LOG("[Audio]: audio start init failed: %d\n", (int)rc);
goto fail_audio_ipc;
}
swa->sampleRate = audoutGetSampleRate();
#else
if (audio_ipc_list_outputs(&names[0], 8, &num_names) != RESULT_OK)
goto fail_audio_ipc;
if (num_names != 1)
{
RARCH_ERR("[Audio]: got back more than one AudioOut\n");
goto fail_audio_ipc;
}
if (audio_ipc_open_output(names[0], &swa->output) != RESULT_OK)
goto fail_audio_ipc;
swa->sampleRate = swa->output.sample_rate;
if (swa->output.num_channels != 2)
{
RARCH_ERR("expected %d channels, got %d\n", 2,
swa->output.num_channels);
goto fail_audio_output;
}
if (swa->output.sample_format != PCM_INT16)
{
RARCH_ERR("expected PCM_INT16, got %d\n", swa->output.sample_format);
goto fail_audio_output;
}
if (audio_ipc_output_register_buffer_event(&swa->output, &swa->event) != 0)
goto fail_audio_output;
#endif
*new_rate = swa->sampleRate;
swa->fifoSize = (swa->sampleRate * sample_size * swa->latency) / 1000;
for (i = 0; i < AUDIO_BUFFER_COUNT; i++)
{
#ifdef HAVE_LIBNX
swa->buffers[i].next = NULL; /* Unused */
swa->buffers[i].data_offset = 0;
swa->buffers[i].buffer_size = swa->fifoSize;
swa->buffers[i].data_size = swa->buffers[i].buffer_size;
swa->buffers[i].buffer = memalign(0x1000, swa->buffers[i].buffer_size);
if (swa->buffers[i].buffer == NULL)
goto fail;
memset(swa->buffers[i].buffer, 0, swa->buffers[i].buffer_size);
#else
swa->buffers[i].ptr = &swa->buffers[i].sample_data;
swa->buffers[i].unknown = 0;
swa->buffers[i].buffer_size = swa->fifoSize;
swa->buffers[i].data_size = swa->buffers[i].buffer_size;
swa->buffers[i].sample_data = alloc_pages(swa->buffers[i].buffer_size, swa->buffers[i].buffer_size, NULL);
if (swa->buffers[i].sample_data == NULL)
goto fail_audio_output;
memset(swa->buffers[i].sample_data, 0, swa->buffers[i].buffer_size);
#endif
if (switch_audio_ipc_output_append_buffer(swa, &swa->buffers[i]) != 0)
goto fail_audio_output;
}
compat_mutex_create(&swa->fifoLock);
swa->fifo = fifo_new(swa->fifoSize);
compat_condvar_create(&swa->cond);
RARCH_LOG("[Audio]: switch_thread_audio_init device %s requested rate %hu rate %hu latency %hu block_frames %hu fifoSize %lu\n",
device, rate, swa->sampleRate, swa->latency, block_frames, swa->fifoSize);
svcGetThreadPriority(&prio, 0xffff8000);
rc = compat_thread_create(&swa->thread, &mainLoop, (void*)swa, thread_stack_size, prio - 1, thread_preferred_cpu);
if (R_FAILED(rc))
{
RARCH_LOG("[Audio]: thread creation failed create %u\n", swa->thread.handle);
swa->running = false;
return NULL;
}
if (R_FAILED(compat_thread_start(&swa->thread)))
{
RARCH_LOG("[Audio]: thread creation failed start %u\n", swa->thread.handle);
compat_thread_close(&swa->thread);
swa->running = false;
return NULL;
}
return swa;
fail_audio_output:
#ifndef HAVE_LIBNX
audio_ipc_output_close(&swa->output);
#endif
fail_audio_ipc:
switch_audio_ipc_finalize();
fail:
free(swa); // freeing a null ptr is valid
return NULL;
}
static bool switch_thread_audio_start(void *data, bool is_shutdown)
{
/* RARCH_LOG("[Audio]: switch_thread_audio_start\n"); */
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (!swa)
return false;
swa->is_paused = false;
return true;
}
static bool switch_thread_audio_stop(void *data)
{
switch_thread_audio_t* swa = (switch_thread_audio_t*)data;
if (!swa)
return false;
swa->is_paused = true;
return true;
}
static void switch_thread_audio_free(void *data)
{
unsigned i;
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (!swa)
return;
if (swa->running)
{
swa->running = false;
compat_thread_join(&swa->thread);
compat_thread_close(&swa->thread);
}
switch_audio_ipc_output_stop(swa);
switch_audio_ipc_finalize();
if (swa->fifo)
{
fifo_free(swa->fifo);
swa->fifo = NULL;
}
for (i = 0; i < ARRAY_SIZE(swa->buffers); i++)
{
#ifdef HAVE_LIBNX
free(swa->buffers[i].buffer);
#else
free_pages(swa->buffers[i].sample_data);
#endif
}
free(swa);
swa = NULL;
}
static ssize_t switch_thread_audio_write(void *data, const void *buf, size_t size)
{
size_t avail, written;
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (!swa || !swa->running)
return 0;
if (swa->nonblocking)
{
compat_mutex_lock(&swa->fifoLock);
avail = fifo_write_avail(swa->fifo);
written = MIN(avail, size);
if (written > 0)
fifo_write(swa->fifo, buf, written);
compat_mutex_unlock(&swa->fifoLock);
}
else
{
written = 0;
while (written < size && swa->running)
{
compat_mutex_lock(&swa->fifoLock);
avail = fifo_write_avail(swa->fifo);
if (avail == 0)
{
compat_mutex_unlock(&swa->fifoLock);
compat_mutex_lock(&swa->condLock);
if (swa->running)
compat_condvar_wait(&swa->cond, &swa->condLock);
compat_mutex_unlock(&swa->condLock);
}
else
{
size_t write_amt = MIN(size - written, avail);
fifo_write(swa->fifo, (const char*)buf + written, write_amt);
compat_mutex_unlock(&swa->fifoLock);
written += write_amt;
}
}
}
return written;
}
static bool switch_thread_audio_alive(void *data)
{
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (!swa)
return false;
return !swa->is_paused;
}
static void switch_thread_audio_set_nonblock_state(void *data, bool state)
{
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (swa)
swa->nonblocking = state;
}
static bool switch_thread_audio_use_float(void *data)
{
(void)data;
return false;
}
static size_t switch_thread_audio_write_avail(void *data)
{
size_t val;
switch_thread_audio_t* swa = (switch_thread_audio_t*)data;
compat_mutex_lock(&swa->fifoLock);
val = fifo_write_avail(swa->fifo);
compat_mutex_unlock(&swa->fifoLock);
return val;
}
size_t switch_thread_audio_buffer_size(void *data)
{
switch_thread_audio_t *swa = (switch_thread_audio_t *)data;
if (!swa)
return 0;
return swa->fifoSize;
}
audio_driver_t audio_switch_thread = {
switch_thread_audio_init,
switch_thread_audio_write,
switch_thread_audio_stop,
switch_thread_audio_start,
switch_thread_audio_alive,
switch_thread_audio_set_nonblock_state,
switch_thread_audio_free,
switch_thread_audio_use_float,
"switch_thread",
NULL, /* device_list_new */
NULL, /* device_list_free */
switch_thread_audio_write_avail,
switch_thread_audio_buffer_size
};
/* vim: set ts=3 sw=3 */
+7 -7
View File
@@ -30,7 +30,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2017 - Charlton Head
*
*
* 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.
@@ -508,7 +508,7 @@ struct snd_pcm_sw_params
struct snd_pcm_hw_params
{
unsigned int flags;
struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
struct snd_mask mres[5]; /* reserved masks */
struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL -
@@ -753,9 +753,9 @@ struct pcm
/** Flags that were passed to @ref pcm_open */
unsigned int flags;
/** Whether the PCM is running or not */
int running:1;
unsigned int running:1;
/** Whether or not the PCM has been prepared */
int prepared:1;
unsigned int prepared:1;
/** The number of underruns that have occured */
int underruns;
/** Size of the buffer */
@@ -2320,7 +2320,7 @@ tinyalsa_write(void *data, const void *buf_, size_t size_)
}
}
return written;
return written;
}
@@ -2366,7 +2366,7 @@ tinyalsa_start(void *data, bool is_shutdown)
RARCH_ERR("[TINYALSA]: Failed to unpause.\n");
return false;
}
tinyalsa->is_paused = false;
}
@@ -2414,7 +2414,7 @@ static size_t tinyalsa_write_avail(void *data)
static size_t tinyalsa_buffer_size(void *data)
{
tinyalsa_t *tinyalsa = (tinyalsa_t*)data;
return tinyalsa->buffer_size;
}
+15 -14
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -15,7 +15,7 @@
#include <stdlib.h>
#ifdef _WIN32_WINNT
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0600
@@ -23,11 +23,11 @@
#include <windows.h>
#include <winerror.h>
#include <propidl.h>
#include <initguid.h>
#include <mmdeviceapi.h>
#include <mmreg.h>
#include <audioclient.h>
#include <propidl.h>
#include <lists/string_list.h>
#include <queues/fifo_queue.h>
@@ -40,7 +40,7 @@ DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0
#ifdef __cplusplus
#define _IMMDeviceCollection_Item(This,nDevice,ppdevice) (This)->Item(nDevice,ppdevice)
#define _IAudioClient_Start(This) ( (This)->Start() )
#define _IAudioClient_Start(This) ( (This)->Start() )
#define _IAudioClient_Stop(This) ( (This)->Stop() )
#define _IAudioClient_GetCurrentPadding(This,pNumPaddingFrames) \
( (This)->GetCurrentPadding(pNumPaddingFrames) )
@@ -62,7 +62,7 @@ DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0
#define _IMMDeviceCollection_GetCount(This,cProps) ( (This)->GetCount(cProps) )
#else
#define _IMMDeviceCollection_Item(This,nDevice,ppdevice) (This)->lpVtbl->Item(This,nDevice,ppdevice)
#define _IAudioClient_Start(This) ( (This)->lpVtbl -> Start(This) )
#define _IAudioClient_Start(This) ( (This)->lpVtbl -> Start(This) )
#define _IAudioClient_Stop(This) ( (This)->lpVtbl -> Stop(This) )
#define _IAudioClient_GetCurrentPadding(This,pNumPaddingFrames) \
( (This)->lpVtbl -> GetCurrentPadding(This,pNumPaddingFrames) )
@@ -163,7 +163,7 @@ static bool wasapi_check_device_id(IMMDevice *device, const char *id)
id_length = MultiByteToWideChar(CP_ACP, 0, id, -1, dev_cmp_id, id_length);
WASAPI_SR_CHECK(id_length > 0, "MultiByteToWideChar", goto error);
hr = _IMMDevice_GetId(device, &dev_id);
WASAPI_HR_CHECK(hr, "IMMDevice::GetId", goto error);
@@ -306,7 +306,7 @@ static IAudioClient *wasapi_init_client_sh(IMMDevice *device,
bool float_fmt_res = *float_fmt;
unsigned rate_res = *rate;
HRESULT hr = _IMMDevice_Activate(device,
IID_IAudioClient,
IID_IAudioClient,
CLSCTX_ALL, NULL, (void**)&client);
WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);
@@ -336,9 +336,10 @@ static IAudioClient *wasapi_init_client_sh(IMMDevice *device,
if (hr == AUDCLNT_E_ALREADY_INITIALIZED)
{
HRESULT hr;
WASAPI_RELEASE(client);
HRESULT hr = _IMMDevice_Activate(device,
IID_IAudioClient,
hr = _IMMDevice_Activate(device,
IID_IAudioClient,
CLSCTX_ALL, NULL, (void**)&client);
WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);
@@ -390,7 +391,7 @@ static IAudioClient *wasapi_init_client_ex(IMMDevice *device,
REFERENCE_TIME buffer_duration = 0;
UINT32 buffer_length = 0;
HRESULT hr = _IMMDevice_Activate(device,
IID_IAudioClient,
IID_IAudioClient,
CLSCTX_ALL, NULL, (void**)&client);
WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);
@@ -432,7 +433,7 @@ static IAudioClient *wasapi_init_client_ex(IMMDevice *device,
WASAPI_RELEASE(client);
hr = _IMMDevice_Activate(device,
IID_IAudioClient,
IID_IAudioClient,
CLSCTX_ALL, NULL, (void**)&client);
WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);
@@ -451,7 +452,7 @@ static IAudioClient *wasapi_init_client_ex(IMMDevice *device,
{
WASAPI_RELEASE(client);
hr = _IMMDevice_Activate(device,
IID_IAudioClient,
IID_IAudioClient,
CLSCTX_ALL, NULL, (void**)&client);
WASAPI_HR_CHECK(hr, "IMMDevice::Activate", return NULL);
@@ -668,7 +669,7 @@ static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
error:
WASAPI_RELEASE(w->renderer);
WASAPI_RELEASE(w->client);
WASAPI_RELEASE(w->client);
WASAPI_RELEASE(w->device);
if (w->write_event)
CloseHandle(w->write_event);
@@ -1044,7 +1045,7 @@ static size_t wasapi_write_avail(void *wh)
hr = _IAudioClient_GetCurrentPadding(w->client, &padding);
WASAPI_HR_CHECK(hr, "IAudioClient::GetCurrentPadding", return 0);
return w->engine_buffer_size - padding * w->frame_size;
}
+1 -1
View File
@@ -84,7 +84,7 @@ static void* ax_audio_init(const char* device, unsigned rate, unsigned latency,
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};
AXVoiceVeData ve = {0x8000, 0};
ax_audio_t* ax = (ax_audio_t*)calloc(1, sizeof(ax_audio_t));
if (!ax)
+42 -46
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -45,6 +45,12 @@ typedef struct xaudio2 xaudio2_t;
#define MAX_BUFFERS_MASK (MAX_BUFFERS - 1)
#ifndef COINIT_MULTITHREADED
#define COINIT_MULTITHREADED 0x00
#endif
#define XAUDIO2_WRITE_AVAILABLE(handle) ((handle)->bufsize * (MAX_BUFFERS - (handle)->buffers - 1))
typedef struct
{
xaudio2_t *xa;
@@ -53,13 +59,13 @@ typedef struct
size_t bufsize;
} xa_t;
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
struct xaudio2 : public IXAudio2VoiceCallback
#else
struct xaudio2
#endif
{
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
xaudio2() :
buf(0), pXAudio2(0), pMasterVoice(0),
pSourceVoice(0), hEvent(0), buffers(0), bufsize(0),
@@ -69,7 +75,7 @@ struct xaudio2
virtual ~xaudio2() {}
STDMETHOD_(void, OnBufferStart) (void *) {}
STDMETHOD_(void, OnBufferEnd) (void *)
STDMETHOD_(void, OnBufferEnd) (void *)
{
InterlockedDecrement((LONG volatile*)&buffers);
SetEvent(hEvent);
@@ -95,28 +101,28 @@ struct xaudio2
unsigned write_buffer;
};
#ifndef __cplusplus
static void WINAPI voice_on_buffer_end(void *handle_, void *data)
{
xaudio2_t *handle = (xaudio2_t*)handle_;
(void)data;
InterlockedDecrement((LONG volatile*)&handle->buffers);
SetEvent(handle->hEvent);
}
#if !defined(__cplusplus) || defined(CINTERFACE)
static void WINAPI voice_on_buffer_end(IXAudio2VoiceCallback *handle_, void *data)
{
xaudio2_t *handle = (xaudio2_t*)handle_;
(void)data;
InterlockedDecrement((LONG volatile*)&handle->buffers);
SetEvent(handle->hEvent);
}
static void WINAPI dummy_voidp(void *handle, void *data) { (void)handle; (void)data; }
static void WINAPI dummy_nil(void *handle) { (void)handle; }
static void WINAPI dummy_uint32(void *handle, UINT32 dummy) { (void)handle; (void)dummy; }
static void WINAPI dummy_voidp_hresult(void *handle, void *data, HRESULT dummy) { (void)handle; (void)data; (void)dummy; }
static void WINAPI dummy_voidp(IXAudio2VoiceCallback *handle, void *data) { (void)handle; (void)data; }
static void WINAPI dummy_nil(IXAudio2VoiceCallback *handle) { (void)handle; }
static void WINAPI dummy_uint32(IXAudio2VoiceCallback *handle, UINT32 dummy) { (void)handle; (void)dummy; }
static void WINAPI dummy_voidp_hresult(IXAudio2VoiceCallback *handle, void *data, HRESULT dummy) { (void)handle; (void)data; (void)dummy; }
const struct IXAudio2VoiceCallbackVtbl voice_vtable = {
dummy_uint32,
dummy_nil,
dummy_nil,
dummy_voidp,
voice_on_buffer_end,
dummy_voidp,
dummy_voidp_hresult,
const struct IXAudio2VoiceCallbackVtbl voice_vtable = {
dummy_uint32,
dummy_nil,
dummy_nil,
dummy_voidp,
voice_on_buffer_end,
dummy_voidp,
dummy_voidp_hresult,
};
#endif
@@ -183,17 +189,13 @@ static void xaudio2_free(xaudio2_t *handle)
free(handle->buf);
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
delete handle;
#else
free(handle);
#endif
}
#ifndef COINIT_MULTITHREADED
#define COINIT_MULTITHREADED 0x00
#endif
static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
size_t size, unsigned device)
{
@@ -204,7 +206,7 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
CoInitializeEx(0, COINIT_MULTITHREADED);
#endif
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
handle = new xaudio2;
#else
handle = (xaudio2_t*)calloc(1, sizeof(*handle));
@@ -213,7 +215,7 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
if (!handle)
goto error;
#ifndef __cplusplus
#if !defined(__cplusplus) || defined(CINTERFACE)
handle->lpVtbl = &voice_vtable;
#endif
@@ -225,9 +227,9 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
xaudio2_set_wavefmt(&wfx, channels, samplerate);
if (FAILED(IXAudio2_CreateSourceVoice(handle->pXAudio2,
&handle->pSourceVoice, &wfx,
XAUDIO2_VOICE_NOSRC, XAUDIO2_DEFAULT_FREQ_RATIO,
if (FAILED(IXAudio2_CreateSourceVoice(handle->pXAudio2,
&handle->pSourceVoice, &wfx,
XAUDIO2_VOICE_NOSRC, XAUDIO2_DEFAULT_FREQ_RATIO,
(IXAudio2VoiceCallback*)handle, 0, 0)))
goto error;
@@ -240,7 +242,7 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
if (!handle->buf)
goto error;
if (FAILED(IXAudio2SourceVoice_Start(handle->pSourceVoice, 0,
if (FAILED(IXAudio2SourceVoice_Start(handle->pSourceVoice, 0,
XAUDIO2_COMMIT_NOW)))
goto error;
@@ -251,21 +253,15 @@ error:
return NULL;
}
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 uint8_t *buffer, size_t bytes_)
{
unsigned bytes = bytes_;
const uint8_t *buffer = (const uint8_t*)buf;
while (bytes)
{
unsigned need = MIN(bytes, handle->bufsize - handle->bufptr);
memcpy(handle->buf + handle->write_buffer *
memcpy(handle->buf + handle->write_buffer *
handle->bufsize + handle->bufptr,
buffer, need);
@@ -344,7 +340,7 @@ static ssize_t xa_write(void *data, const void *buf, size_t size)
if (xa->nonblock)
{
size_t avail = xaudio2_write_avail(xa->xa);
size_t avail = XAUDIO2_WRITE_AVAILABLE(xa->xa);
if (avail == 0)
return 0;
@@ -352,7 +348,7 @@ static ssize_t xa_write(void *data, const void *buf, size_t size)
size = avail;
}
ret = xaudio2_write(xa->xa, buf, size);
ret = xaudio2_write(xa->xa, (const uint8_t*)buf, size);
if (ret == 0 && size > 0)
return -1;
return ret;
@@ -408,7 +404,7 @@ static void xa_free(void *data)
static size_t xa_write_avail(void *data)
{
xa_t *xa = (xa_t*)data;
return xaudio2_write_avail(xa->xa);
return XAUDIO2_WRITE_AVAILABLE(xa->xa);
}
static size_t xa_buffer_size(void *data)
+41 -34
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2010-2014 - OV2
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -26,7 +26,7 @@
/* All structures defined in this file use tight field packing */
#pragma pack(push, 1)
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
#define X2DEFAULT(x) = (x)
#else
#define X2DEFAULT(x)
@@ -58,7 +58,7 @@ DEFINE_IID(IXAudio2, 8bcf1f58, 9fe7, 4583, 8a, c6, e2, ad, c4, 65, c8, bb);
#include <mmreg.h>
#ifndef __cplusplus
#undef OPAQUE
#undef OPAQUE
#define OPAQUE struct
#endif
@@ -131,7 +131,7 @@ typedef enum XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER
typedef enum XAUDIO2_FILTER_TYPE {
LowPassFilter,
BandPassFilter,
HighPassFilter
HighPassFilter
} XAUDIO2_FILTER_TYPE;
typedef struct XAUDIO2_DEVICE_DETAILS
@@ -183,6 +183,9 @@ typedef struct XAUDIO2_BUFFER
void *pContext;
} XAUDIO2_BUFFER;
#undef INTERFACE
#define INTERFACE IXAudio2VoiceCallback
DECLARE_INTERFACE(IXAudio2VoiceCallback)
{
STDMETHOD_(void, OnVoiceProcessingPassStart) (THIS_ UINT32 BytesRequired) PURE;
@@ -194,6 +197,9 @@ DECLARE_INTERFACE(IXAudio2VoiceCallback)
STDMETHOD_(void, OnVoiceError) (THIS_ void *pBufferContext, HRESULT Error) PURE;
};
#undef INTERFACE
#define INTERFACE IXAudio2Voice
DECLARE_INTERFACE(IXAudio2Voice)
{
#define Declare_IXAudio2Voice_Methods() \
@@ -235,11 +241,17 @@ DECLARE_INTERFACE(IXAudio2Voice)
Declare_IXAudio2Voice_Methods();
};
#undef INTERFACE
#define INTERFACE IXAudio2MasteringVoice
DECLARE_INTERFACE_(IXAudio2MasteringVoice, IXAudio2Voice)
{
Declare_IXAudio2Voice_Methods();
};
#undef INTERFACE
#define INTERFACE IXAudio2SourceVoice
DECLARE_INTERFACE_(IXAudio2SourceVoice, IXAudio2Voice)
{
Declare_IXAudio2Voice_Methods();
@@ -255,6 +267,8 @@ DECLARE_INTERFACE_(IXAudio2SourceVoice, IXAudio2Voice)
STDMETHOD_(void, GetFrequencyRatio) (THIS_ float* pRatio) PURE;
};
#undef INTERFACE
#define INTERFACE IXAudio2
DECLARE_INTERFACE_(IXAudio2, IUnknown)
{
@@ -292,30 +306,30 @@ DECLARE_INTERFACE_(IXAudio2, IUnknown)
void *pReserved X2DEFAULT(NULL)) PURE;
};
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(CINTERFACE)
/* C++ hooks */
#define IXAudio2_Initialize(handle,a,b) handle->Initialize(a, b)
#define IXAudio2SourceVoice_SubmitSourceBuffer(handle, a, b) handle->SubmitSourceBuffer(a, b)
#define IXAudio2SourceVoice_Stop(handle, a, b) handle->Stop(a, b)
#define IXAudio2SourceVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2MasteringVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2_Release(handle) handle->Release()
#define IXAudio2_CreateSourceVoice(handle, a, b, c, d, e, f, g) handle->CreateSourceVoice(a, b, c, d, e, f, g)
#define IXAudio2_CreateMasteringVoice(handle, a, b, c, d, e, f) handle->CreateMasteringVoice(a, b, c, d, e, f)
#define IXAudio2SourceVoice_Start(handle, a, b) handle->Start(a, b)
#define IXAudio2_Initialize(handle,a,b) handle->Initialize(a, b)
#define IXAudio2SourceVoice_SubmitSourceBuffer(handle, a, b) handle->SubmitSourceBuffer(a, b)
#define IXAudio2SourceVoice_Stop(handle, a, b) handle->Stop(a, b)
#define IXAudio2SourceVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2MasteringVoice_DestroyVoice(handle) handle->DestroyVoice()
#define IXAudio2_Release(handle) handle->Release()
#define IXAudio2_CreateSourceVoice(handle, a, b, c, d, e, f, g) handle->CreateSourceVoice(a, b, c, d, e, f, g)
#define IXAudio2_CreateMasteringVoice(handle, a, b, c, d, e, f) handle->CreateMasteringVoice(a, b, c, d, e, f)
#define IXAudio2SourceVoice_Start(handle, a, b) handle->Start(a, b)
#else
/* C hooks */
#define IXAudio2_Initialize(THIS,a,b) (THIS)->lpVtbl->Initialize(THIS, a, b)
#define IXAudio2_Release(THIS) (THIS)->lpVtbl->Release(THIS)
#define IXAudio2_CreateSourceVoice(THIS,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (THIS)->lpVtbl->CreateSourceVoice(THIS, ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
#define IXAudio2_CreateMasteringVoice(THIS,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (THIS)->lpVtbl->CreateMasteringVoice(THIS, ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
#define IXAudio2_GetDeviceCount(THIS, puCount) (THIS)->lpVtbl->GetDeviceCount(THIS, puCount)
#define IXAudio2_GetDeviceDetails(THIS, Index,pDeviceDetails) (THIS)->lpVtbl->GetDeviceDetails(THIS, Index, pDeviceDetails)
#define IXAudio2SourceVoice_Start(THIS, Flags, OperationSet) (THIS)->lpVtbl->Start(THIS, Flags, OperationSet)
#define IXAudio2SourceVoice_Stop(THIS, Flags, OperationSet) (THIS)->lpVtbl->Stop(THIS, Flags, OperationSet)
#define IXAudio2SourceVoice_SubmitSourceBuffer(THIS, pBuffer, pBufferWMA) (THIS)->lpVtbl->SubmitSourceBuffer(THIS, pBuffer, pBufferWMA)
#define IXAudio2SourceVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS)
#define IXAudio2MasteringVoice_DestroyVoice(THIS) (THIS)->lpVtbl->DestroyVoice(THIS)
#define IXAudio2_Initialize(handle,a,b) (handle)->lpVtbl->Initialize(handle, a, b)
#define IXAudio2_Release(handle) (handle)->lpVtbl->Release(handle)
#define IXAudio2_CreateSourceVoice(handle,ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain) (handle)->lpVtbl->CreateSourceVoice(handle, ppSourceVoice,pSourceFormat,Flags,MaxFrequencyRatio,pCallback,pSendList,pEffectChain)
#define IXAudio2_CreateMasteringVoice(handle,ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain) (handle)->lpVtbl->CreateMasteringVoice(handle, ppMasteringVoice,InputChannels,InputSampleRate,Flags,DeviceIndex,pEffectChain)
#define IXAudio2_GetDeviceCount(handle, puCount) (handle)->lpVtbl->GetDeviceCount(handle, puCount)
#define IXAudio2_GetDeviceDetails(handle, Index,pDeviceDetails) (handle)->lpVtbl->GetDeviceDetails(handle, Index, pDeviceDetails)
#define IXAudio2SourceVoice_Start(handle, Flags, OperationSet) (handle)->lpVtbl->Start(handle, Flags, OperationSet)
#define IXAudio2SourceVoice_Stop(handle, Flags, OperationSet) (handle)->lpVtbl->Stop(handle, Flags, OperationSet)
#define IXAudio2SourceVoice_SubmitSourceBuffer(handle, pBuffer, pBufferWMA) (handle)->lpVtbl->SubmitSourceBuffer(handle, pBuffer, pBufferWMA)
#define IXAudio2SourceVoice_DestroyVoice(handle) (handle)->lpVtbl->DestroyVoice(handle)
#define IXAudio2MasteringVoice_DestroyVoice(handle) (handle)->lpVtbl->DestroyVoice(handle)
#endif
#ifdef _XBOX
@@ -324,16 +338,11 @@ STDAPI XAudio2Create(__deref_out IXAudio2** ppXAudio2, UINT32 Flags X2DEFAULT(0)
#else
static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_PROCESSOR proc)
{
HRESULT hr;
IXAudio2 *pXAudio2 = NULL;
(void)flags;
(void)proc;
#ifdef __cplusplus
hr = CoCreateInstance(CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, IID_IXAudio2, (void**)&pXAudio2);
HRESULT hr = CoCreateInstance(CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, IID_IXAudio2, (void**)&pXAudio2);
#else
hr = CoCreateInstance(&CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, &IID_IXAudio2, (void**)&pXAudio2);
HRESULT hr = CoCreateInstance(&CLSID_XAudio2, NULL, CLSCTX_INPROC_SERVER, &IID_IXAudio2, (void**)&pXAudio2);
#endif
if (SUCCEEDED(hr))
@@ -342,9 +351,7 @@ static INLINE HRESULT XAudio2Create(IXAudio2 **ppXAudio2, UINT32 flags, XAUDIO2_
if (SUCCEEDED(hr))
*ppXAudio2 = pXAudio2;
else
{
IXAudio2_Release(pXAudio2);
}
}
return hr;
}
+2 -2
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -70,7 +70,7 @@ static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size)
{
while (xenon_sound_get_unplayed() >= MAX_BUFFER)
{
/* libxenon doesn't have proper
/* libxenon doesn't have proper
* synchronization primitives for this... */
udelay(50);
}
+8 -4
View File
@@ -151,7 +151,9 @@ done:
}
static void *resampler_CC_init(const struct resampler_config *config,
double bandwidth_mod, resampler_simd_mask_t mask)
double bandwidth_mod,
enum resampler_quality quality,
resampler_simd_mask_t mask)
{
(void)mask;
(void)bandwidth_mod;
@@ -492,18 +494,20 @@ static void resampler_CC_process(void *re_, struct resampler_data *data)
static void *resampler_CC_init(const struct resampler_config *config,
double bandwidth_mod, resampler_simd_mask_t mask)
double bandwidth_mod,
enum resampler_quality quality,
resampler_simd_mask_t mask)
{
int i;
rarch_CC_resampler_t *re = (rarch_CC_resampler_t*)
memalign_alloc(32, sizeof(rarch_CC_resampler_t));
/* TODO: lookup if NEON support can be detected at
/* TODO: lookup if NEON support can be detected at
* runtime and a funcptr set at runtime for either
* C codepath or NEON codepath. This will help out
* Android. */
(void)mask;
(void)config;
(void)config;
if (!re)
return NULL;
+20 -20
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -16,7 +16,7 @@
/* RSound - A PCM audio client/server
* Copyright (C) 2010 - Hans-Kristian Arntzen
*
*
* RSound is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -67,7 +67,7 @@
#include <string.h>
#include <stdarg.h>
#include <time.h>
#include <errno.h>
#include <errno.h>
#include <compat/strl.h>
#include <retro_inline.h>
@@ -75,8 +75,8 @@
#include <retro_miscellaneous.h>
#include <retro_timers.h>
/*
****************************************************************************
/*
****************************************************************************
Naming convention. Functions for use in API are called rsd_*(), *
internal function are called rsnd_*() *
****************************************************************************
@@ -251,7 +251,7 @@ static int rsnd_connect_server( rsound_t *rd )
if ( rd->conn.ctl_socket < 0 )
goto error;
/* Uses non-blocking IO since it performed more deterministic with poll()/send() */
/* Uses non-blocking IO since it performed more deterministic with poll()/send() */
#ifdef __CELLOS_LV2__
setsockopt(rd->conn.socket, SOL_SOCKET, SO_NBIO, &i, sizeof(int));
@@ -302,7 +302,7 @@ static int rsnd_send_header_info(rsound_t *rd)
uint16_t temp16;
uint32_t temp32;
/* These magic numbers represent the position of the elements in the wave header.
/* These magic numbers represent the position of the elements in the wave header.
We can't simply send a wave struct over the network since the compiler is allowed to
pad our structs as they like, so sizeof(waveheader) might not be similar on two different
systems. */
@@ -353,7 +353,7 @@ static int rsnd_send_header_info(rsound_t *rd)
}
/* Since the values in the wave header we are interested in, are little endian (>_<), we need
to determine whether we're running it or not, so we can byte swap accordingly.
to determine whether we're running it or not, so we can byte swap accordingly.
Could determine this compile time, but it was simpler to do it this way. */
// Fancy macros for embedding little endian values into the header.
@@ -501,7 +501,7 @@ static int rsnd_get_backend_info ( rsound_t *rd )
// Can we read the last 8 bytes so we can use the protocol interface?
// This is non-blocking.
if ( rsnd_recv_chunk(rd->conn.socket, rsnd_header, RSND_HEADER_SIZE, 0) == RSND_HEADER_SIZE )
rd->conn_type |= RSD_CONN_PROTO;
rd->conn_type |= RSD_CONN_PROTO;
else
{ RSD_DEBUG("[RSound] Failed to get new proto.\n"); }
@@ -515,7 +515,7 @@ static int rsnd_get_backend_info ( rsound_t *rd )
return 0;
}
/* Makes sure that we're connected and done with wave header handshaking. Returns -1 on error, and 0 on success.
/* Makes sure that we're connected and done with wave header handshaking. Returns -1 on error, and 0 on success.
This goes for all other functions in use. */
static int rsnd_create_connection(rsound_t *rd)
{
@@ -750,7 +750,7 @@ static int64_t rsnd_get_time_usec(void)
/* Calculates how many bytes there are in total in the virtual buffer. This is calculated client side.
It should be accurate enough unless we have big problems with buffer underruns.
This function is called by rsd_delay() to determine the latency.
This function is called by rsd_delay() to determine the latency.
This function might be changed in the future to correctly determine latency from server. */
static void rsnd_drain(rsound_t *rd)
{
@@ -777,7 +777,7 @@ static void rsnd_drain(rsound_t *rd)
}
/* Tries to fill the buffer. Uses signals to determine when the buffer is ready to be filled. Should the thread not be active
it will treat this as an error. Crude implementation of a blocking FIFO. */
it will treat this as an error. Crude implementation of a blocking FIFO. */
static size_t rsnd_fill_buffer(rsound_t *rd, const char *buf, size_t size)
{
@@ -851,7 +851,7 @@ static int rsnd_stop_thread(rsound_t *rd)
sthread_join(rd->thread.thread);
RSD_DEBUG("[RSound] Thread joined successfully.\n");
return 0;
}
else
@@ -981,7 +981,7 @@ static int rsnd_close_ctl(rsound_t *rd)
}
// Sends delay info request to server on the ctl socket. This code section isn't critical, and will work if it works.
// Sends delay info request to server on the ctl socket. This code section isn't critical, and will work if it works.
// It will never block.
static int rsnd_send_info_query(rsound_t *rd)
{
@@ -1111,7 +1111,7 @@ static void rsnd_thread ( void * thread_data )
// We only bother to check after 1 sec of audio has been played, as it might be quite inaccurate in the start of the stream.
if ( (rd->conn_type & RSD_CONN_PROTO) && (rd->total_written > rd->channels * rd->rate * rd->samplesize) )
{
rsnd_send_info_query(rd);
rsnd_send_info_query(rd);
rsnd_update_server_info(rd);
}
@@ -1263,7 +1263,7 @@ static void rsnd_cb_thread(void *thread_data)
if ( (rd->conn_type & RSD_CONN_PROTO) && (rd->total_written > rd->channels * rd->rate * rd->samplesize) )
{
rsnd_send_info_query(rd);
rsnd_send_info_query(rd);
rsnd_update_server_info(rd);
}
@@ -1304,7 +1304,7 @@ int rsd_stop(rsound_t *rd)
const char buf[] = "RSD 5 STOP";
// Do not really care about errors here.
// Do not really care about errors here.
// The socket will be closed down in any case in rsnd_reset().
rsnd_send_chunk(rd->conn.ctl_socket, buf, strlen(buf), 0);
@@ -1325,7 +1325,7 @@ size_t rsd_write( rsound_t *rsound, const void* buf, size_t size)
while ( written < size )
{
size_t write_size = (size - written) > max_write ? max_write : (size - written);
size_t write_size = (size - written) > max_write ? max_write : (size - written);
size_t result = rsnd_fill_buffer(rsound, (const char*)buf + written, write_size);
if (result == 0)
@@ -1454,7 +1454,7 @@ int rsd_set_param(rsound_t *rd, enum rsd_settings option, void* param)
rd->max_latency = *((int*)param);
break;
// Checks if format is valid.
// Checks if format is valid.
case RSD_FORMAT:
rd->format = (uint16_t)(*((int*)param));
rd->samplesize = rsnd_format_to_samplesize(rd->format);
@@ -1509,7 +1509,7 @@ size_t rsd_pointer(rsound_t *rsound)
retro_assert(rsound != NULL);
int ptr;
ptr = rsnd_get_ptr(rsound);
ptr = rsnd_get_ptr(rsound);
return ptr;
}
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+1 -1
View File
@@ -14,7 +14,7 @@ USE_KERNEL_LIBC=1
USE_KERNEL_LIBS=1
LIBDIR =
LDFLAGS = -mno-crt0 -nostartfiles
LDFLAGS = -nostartfiles
LIBS = -lpspdebug -lpspge -lpspsdk -lc -lpspuser
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
+5 -4
View File
@@ -55,9 +55,10 @@ void exitspawn_kernel(const char *fileName, SceSize args, void *argp)
game_param.unk4 = 0;
game_param.unk5 = 0x10000;
pspSdkSetK1(0);
sceKernelSuspendAllUserThreads();
sceKernelLoadExecVSHMs2(fileName, &game_param);
int k1 = pspSdkSetK1(0);
//sceKernelSuspendAllUserThreads();
int ret = sceKernelLoadExecVSHMs2(fileName, &game_param);
pspSdkSetK1(k1);
}
int module_start(SceSize args, void *argp)
@@ -66,7 +67,7 @@ int module_start(SceSize args, void *argp)
(void)argp;
buttons = 0;
thread_active = 0;
thread_active = 0;
main_thread_id = sceKernelCreateThread("main Thread", main_thread, 0x11, 0x200, 0, NULL);
if (main_thread >= 0)
+5 -5
View File
@@ -34,7 +34,7 @@ int __vita_delete_thread_reent(int thid)
// We only need to cleanup if reent is allocated, i.e. if it's on our TLS
// We also don't need to clean up the global reent
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
@@ -141,16 +141,16 @@ struct _reent *__getreent_for_thread(int thid) {
// A pointer to our reent should be on the TLS
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
on_tls = TLS_REENT_THID_PTR(thid);
on_tls = TLS_REENT_THID_PTR(thid);
if (*on_tls) {
return *on_tls;
}
sceKernelLockMutex(_newlib_reent_mutex, 1, 0);
// If it's not on the TLS this means the thread doesn't have a reent allocated yet
+17 -14
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -139,7 +139,7 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
case RARCH_CAMERA_CTL_OWNS_DRIVER:
return camera_driver_data_own;
case RARCH_CAMERA_CTL_SET_ACTIVE:
camera_driver_active = true;
camera_driver_active = true;
break;
case RARCH_CAMERA_CTL_FIND_DRIVER:
{
@@ -157,14 +157,17 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
camera_driver = (const camera_driver_t*)camera_driver_find_handle(i);
else
{
unsigned d;
RARCH_ERR("Couldn't find any camera driver named \"%s\"\n",
settings->arrays.camera_driver);
RARCH_LOG_OUTPUT("Available camera drivers are:\n");
for (d = 0; camera_driver_find_handle(d); d++)
RARCH_LOG_OUTPUT("\t%s\n", camera_driver_find_ident(d));
if (verbosity_is_enabled())
{
unsigned d;
RARCH_ERR("Couldn't find any camera driver named \"%s\"\n",
settings->arrays.camera_driver);
RARCH_LOG_OUTPUT("Available camera drivers are:\n");
for (d = 0; camera_driver_find_handle(d); d++)
RARCH_LOG_OUTPUT("\t%s\n", camera_driver_find_ident(d));
RARCH_WARN("Going to default to first camera driver...\n");
RARCH_WARN("Going to default to first camera driver...\n");
}
camera_driver = (const camera_driver_t*)camera_driver_find_handle(0);
@@ -174,10 +177,10 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
}
break;
case RARCH_CAMERA_CTL_UNSET_ACTIVE:
camera_driver_active = false;
camera_driver_active = false;
break;
case RARCH_CAMERA_CTL_IS_ACTIVE:
return camera_driver_active;
return camera_driver_active;
case RARCH_CAMERA_CTL_DEINIT:
if (camera_data && camera_driver)
{
@@ -191,8 +194,8 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
camera_data = NULL;
break;
case RARCH_CAMERA_CTL_STOP:
if ( camera_driver
&& camera_driver->stop
if ( camera_driver
&& camera_driver->stop
&& camera_data)
camera_driver->stop(camera_data);
break;
@@ -243,6 +246,6 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
default:
break;
}
return true;
}
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+4 -4
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -152,7 +152,7 @@ static void android_camera_stop(void *data)
CALL_VOID_METHOD(env, android_app->activity->clazz,
androidcamera->onCameraStop);
if (androidcamera->tex)
video_driver_texture_unload((uintptr_t*)&androidcamera->tex);
}
@@ -171,12 +171,12 @@ static bool android_camera_poll(void *data,
(void)frame_raw_cb;
CALL_BOOLEAN_METHOD(env, newFrame, android_app->activity->clazz,
CALL_BOOLEAN_METHOD(env, newFrame, android_app->activity->clazz,
androidcamera->onCameraPoll);
if (newFrame)
{
/* FIXME: Identity for now. Use proper texture matrix as
/* FIXME: Identity for now. Use proper texture matrix as
* returned by Android Camera. */
static const float affine[] = {
1.0f, 0.0f, 0.0f,
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2012-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+1 -1
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2012-2015 - Michael Lelli
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
+10 -10
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -70,7 +70,7 @@ typedef struct video4linux
char dev_name[255];
} video4linux_t;
static int xioctl(int fd, int request, void *args)
static int xioctl(int fd, unsigned long request, void *args)
{
int r;
@@ -91,7 +91,7 @@ static bool init_mmap(void *data)
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.memory = V4L2_MEMORY_MMAP;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_REQBUFS, &req) == -1)
if (xioctl(v4l->fd, VIDIOC_REQBUFS, &req) == -1)
{
if (errno == EINVAL)
RARCH_ERR("[V4L2]: %s does not support memory mapping.\n", v4l->dev_name);
@@ -122,7 +122,7 @@ static bool init_mmap(void *data)
buf.memory = V4L2_MEMORY_MMAP;
buf.index = v4l->n_buffers;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYBUF, &buf) == -1)
if (xioctl(v4l->fd, VIDIOC_QUERYBUF, &buf) == -1)
{
RARCH_ERR("[V4L2]: Error - xioctl VIDIOC_QUERYBUF.\n");
return false;
@@ -152,7 +152,7 @@ static bool init_device(void *data)
struct v4l2_cropcap cropcap = {0};
video4linux_t *v4l = (video4linux_t*)data;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QUERYCAP, &cap) < 0)
if (xioctl(v4l->fd, VIDIOC_QUERYCAP, &cap) < 0)
{
if (errno == EINVAL)
RARCH_ERR("[V4L2]: %s is no V4L2 device.\n", v4l->dev_name);
@@ -176,7 +176,7 @@ static bool init_device(void *data)
cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_CROPCAP, &cropcap) == 0)
if (xioctl(v4l->fd, VIDIOC_CROPCAP, &cropcap) == 0)
{
crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
crop.c = cropcap.defrect;
@@ -190,7 +190,7 @@ static bool init_device(void *data)
fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV;
fmt.fmt.pix.field = V4L2_FIELD_NONE;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_S_FMT, &fmt) < 0)
if (xioctl(v4l->fd, VIDIOC_S_FMT, &fmt) < 0)
{
RARCH_ERR("[V4L2]: Error - VIDIOC_S_FMT\n");
return false;
@@ -248,7 +248,7 @@ static bool v4l_start(void *data)
buf.memory = V4L2_MEMORY_MMAP;
buf.index = i;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QBUF, &buf) == -1)
if (xioctl(v4l->fd, VIDIOC_QBUF, &buf) == -1)
{
RARCH_ERR("[V4L2]: Error - VIDIOC_QBUF.\n");
return false;
@@ -364,7 +364,7 @@ static bool preprocess_image(void *data)
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_DQBUF, &buf) == -1)
if (xioctl(v4l->fd, VIDIOC_DQBUF, &buf) == -1)
{
switch (errno)
{
@@ -384,7 +384,7 @@ static bool preprocess_image(void *data)
scaler_ctx_scale_direct(ctx, v4l->buffer_output, (const uint8_t*)v4l->buffers[buf.index].start);
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QBUF, &buf) == -1)
if (xioctl(v4l->fd, VIDIOC_QBUF, &buf) == -1)
RARCH_ERR("[V4L2]: VIDIOC_QBUF\n");
return true;
+59
View File
@@ -0,0 +1,59 @@
#include <file/file_path.h>
#include <string/stdstring.h>
#include <streams/file_stream.h>
#ifdef HAVE_MENU
#include "../menu/menu_driver.h"
#endif
#include "../file_path_special.h"
#include "../configuration.h"
#include "../verbosity.h"
#include "../network/net_http_special.h"
#include "badges.h"
badges_ctx_t badges_ctx;
bool badge_exists(const char* filepath)
{
return filestream_exists(filepath);
}
void set_badge_menu_texture(badges_ctx_t * badges, int i)
{
char badge_file[16];
char fullpath[PATH_MAX_LENGTH];
snprintf(badge_file, sizeof(badge_file), "%s%s", badges->badge_id_list[i],
badges->badge_locked[i] ? "_lock.png" : ".png");
fill_pathname_application_special(fullpath,
PATH_MAX_LENGTH * sizeof(char),
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
#ifdef HAVE_MENU
menu_display_reset_textures_list(badge_file, fullpath,
&badges->menu_texture_list[i],TEXTURE_FILTER_MIPMAP_LINEAR);
#endif
}
void set_badge_info (badges_ctx_t *badge_struct, int id,
const char *badge_id, bool active)
{
if (!badge_struct)
return;
badge_struct->badge_id_list[id] = badge_id;
badge_struct->badge_locked[id] = active;
set_badge_menu_texture(badge_struct, id);
}
menu_texture_item get_badge_texture(int id)
{
settings_t *settings = config_get_ptr();
if (!settings || !settings->bools.cheevos_badges_enable)
return (menu_texture_item)NULL;
return badges_ctx.menu_texture_list[id];
}
+29
View File
@@ -0,0 +1,29 @@
#ifndef __RARCH_BADGE_H
#define __RARCH_BADGE_H
#include "../menu/menu_driver.h"
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
#define CHEEVOS_BADGE_LIMIT 256
typedef struct
{
bool badge_locked[CHEEVOS_BADGE_LIMIT];
const char * badge_id_list[CHEEVOS_BADGE_LIMIT];
menu_texture_item menu_texture_list[CHEEVOS_BADGE_LIMIT];
} badges_ctx_t;
bool badge_exists(const char* filepath);
void set_badge_menu_texture(badges_ctx_t * badges, int i);
extern void set_badge_info (badges_ctx_t *badge_struct, int id, const char *badge_id, bool active);
extern menu_texture_item get_badge_texture(int id);
extern badges_ctx_t badges_ctx;
static badges_ctx_t new_badges_ctx;
RETRO_END_DECLS
#endif
+1535 -1265
View File
File diff suppressed because it is too large. Load diff
+20 -3
View File
@@ -38,6 +38,20 @@ End of setup
#define CHEEVOS_TAG "[CHEEVOS]: "
#ifdef CHEEVOS_VERBOSE
#define CHEEVOS_LOG RARCH_LOG
#define CHEEVOS_ERR RARCH_ERR
#else
void cheevos_log(const char *fmt, ...);
#define CHEEVOS_LOG cheevos_log
#define CHEEVOS_ERR cheevos_log
#endif
typedef struct cheevos_ctx_desc
{
unsigned idx;
@@ -47,6 +61,7 @@ typedef struct cheevos_ctx_desc
typedef enum
{
CHEEVOS_CONSOLE_NONE = 0,
/* Don't change those, the values match the console IDs
* at retroachievements.org. */
CHEEVOS_CONSOLE_MEGA_DRIVE = 1,
@@ -62,8 +77,8 @@ typedef enum
CHEEVOS_CONSOLE_MASTER_SYSTEM = 11,
CHEEVOS_CONSOLE_PLAYSTATION = 12,
CHEEVOS_CONSOLE_ATARI_LYNX = 13,
CHEEVOS_CONSOLE_NEOGEO = 14,
CHEEVOS_CONSOLE_XBOX_360 = 15,
CHEEVOS_CONSOLE_NEOGEO_POCKET = 14,
CHEEVOS_CONSOLE_GAME_GEAR = 15,
CHEEVOS_CONSOLE_GAMECUBE = 16,
CHEEVOS_CONSOLE_ATARI_JAGUAR = 17,
CHEEVOS_CONSOLE_NINTENDO_DS = 18,
@@ -117,7 +132,7 @@ bool cheevos_load(const void *data);
void cheevos_reset_game(void);
void cheevos_populate_menu(void *data, bool hardcore);
void cheevos_populate_menu(void *data);
bool cheevos_get_description(cheevos_ctx_desc_t *desc);
@@ -138,6 +153,8 @@ bool cheevos_get_support_cheevos(void);
cheevos_console_t cheevos_get_console(void);
extern bool cheevos_loaded;
extern bool cheevos_hardcore_active;
extern bool cheevos_hardcore_paused;
extern int cheats_are_enabled;
extern int cheats_were_enabled;
+1 -4
View File
@@ -65,7 +65,7 @@ static cheevos_cond_op_t cheevos_cond_parse_operator(const char** memaddr)
}
else
{
RARCH_ERR(CHEEVOS_TAG "unknown operator %c\n.", *str);
CHEEVOS_ERR(CHEEVOS_TAG "unknown operator %c\n.", *str);
op = CHEEVOS_COND_OP_EQUALS;
}
@@ -168,9 +168,6 @@ void cheevos_cond_parse_in_set(cheevos_cond_t* cond, const char* memaddr, unsign
if (index == which)
{
cheevos_cond_parse(cond, &memaddr);
#ifdef CHEEVOS_VERBOSE
/*cheevos_log_cond(cond);*/
#endif
cond++;
}
else
+1
View File
@@ -47,6 +47,7 @@ typedef struct
cheevos_cond_type_t type;
unsigned req_hits;
unsigned curr_hits;
char pause;
cheevos_var_t source;
cheevos_cond_op_t op;
+14 -22
View File
@@ -18,8 +18,7 @@ Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
/* Use at the end of the coroutine */
#define CORO_LEAVE() \
} \
} \
} } \
do { return 0; } while ( 0 )
/* Go to the x label */
@@ -30,7 +29,6 @@ Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
} while ( 0 )
/* Go to a subroutine, execution continues until the subroutine returns via RET */
/* x is the subroutine label, y and z are the A and B arguments */
#define CORO_GOSUB( x ) \
do { \
coro->stack[ coro->sp++ ] = __LINE__; \
@@ -54,30 +52,24 @@ Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
case __LINE__: ; \
} while ( 0 )
/* The coroutine entry point, never use 0 as a label */
#define CORO_BEGIN 0
/* Sets up the coroutine */
#define CORO_SETUP() \
do { \
coro->step = CORO_BEGIN; \
coro->sp = 0; \
} while ( 0 )
#define CORO_STOP() \
do { \
return 0; \
} while ( 0 )
/* The coroutine entry point, never use 0 as a label */
#define CORO_BEGIN 0
/* Sets up a coroutine, x is a pointer to coro_t */
#define CORO_SETUP( x ) \
do { \
( x )->step = CORO_BEGIN; \
( x )->sp = 0; \
} while ( 0 )
#define CORO_VAR( x ) ( coro->x )
/* A coroutine */
typedef struct
{
CORO_VARS
int step, sp;
/* Add this macro to your coro_t structure containing the variables for the coroutine */
#define CORO_FIELDS \
int step, sp; \
int stack[ 8 ];
}
coro_t;
#endif /* CORO_H */
+3 -9
View File
@@ -24,12 +24,6 @@
#include "../core.h"
#include "../verbosity.h"
#ifdef CHEEVOS_VERBOSE
#define CHEEVOS_LOG RARCH_LOG
#else
#define CHEEVOS_LOG(...)
#endif
/*****************************************************************************
Parsing
*****************************************************************************/
@@ -251,7 +245,7 @@ void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console)
else
{
unsigned i;
for (i = 0; i < 4; i++)
{
retro_ctx_memory_info_t meminfo;
@@ -322,7 +316,7 @@ uint8_t* cheevos_var_get_memory(const cheevos_var_t* var)
meminfo.id = RETRO_MEMORY_RTC;
break;
default:
RARCH_ERR(CHEEVOS_TAG "invalid bank id: %s\n", var->bank_id);
CHEEVOS_ERR(CHEEVOS_TAG "invalid bank id: %s\n", var->bank_id);
break;
}
@@ -347,7 +341,7 @@ unsigned cheevos_var_get_value(cheevos_var_t* var)
case CHEEVOS_VAR_TYPE_VALUE_COMP:
value = var->value;
break;
case CHEEVOS_VAR_TYPE_ADDRESS:
case CHEEVOS_VAR_TYPE_DELTA_MEM:
memory = cheevos_var_get_memory(var);
+431 -207
View File
File diff suppressed because it is too large. Load diff
+32 -4
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2016 - Brad Parker
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -27,6 +27,8 @@
#include "config.h"
#endif
#include "playlist.h"
RETRO_BEGIN_DECLS
typedef struct command command_t;
@@ -61,6 +63,8 @@ enum event_command
/* Quits RetroArch. */
CMD_EVENT_QUIT,
/* Reinitialize all drivers. */
CMD_EVENT_REINIT_FROM_TOGGLE,
/* Reinitialize all drivers. */
CMD_EVENT_REINIT,
/* Toggles cheevos hardcore mode. */
CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE,
@@ -136,6 +140,8 @@ enum event_command
CMD_EVENT_RESUME,
/* Add a playlist entry to favorites. */
CMD_EVENT_ADD_TO_FAVORITES,
/* Reset playlist entry associated core to DETECT */
CMD_EVENT_RESET_CORE_ASSOCIATION,
/* Toggles pause. */
CMD_EVENT_PAUSE_TOGGLE,
/* Pauses RetroArch. */
@@ -145,6 +151,7 @@ enum event_command
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_CONTENT_DIR,
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_GAME,
CMD_EVENT_MENU_SAVE_CONFIG,
CMD_EVENT_MENU_PAUSE_LIBRETRO,
@@ -153,6 +160,8 @@ enum event_command
CMD_EVENT_MENU_REFRESH,
/* Applies shader changes. */
CMD_EVENT_SHADERS_APPLY_CHANGES,
/* A new shader preset has been loaded */
CMD_EVENT_SHADER_PRESET_LOADED,
/* Initializes shader directory. */
CMD_EVENT_SHADER_DIR_INIT,
/* Deinitializes shader directory. */
@@ -177,8 +186,6 @@ enum event_command
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. */
@@ -216,6 +223,8 @@ enum event_command
CMD_EVENT_GRAB_MOUSE_TOGGLE,
/* Toggles game focus. */
CMD_EVENT_GAME_FOCUS_TOGGLE,
/* Toggles desktop menu. */
CMD_EVENT_UI_COMPANION_TOGGLE,
/* Toggles fullscreen mode. */
CMD_EVENT_FULLSCREEN_TOGGLE,
CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG,
@@ -226,7 +235,9 @@ enum event_command
CMD_EVENT_DISABLE_OVERRIDES,
CMD_EVENT_RESTORE_REMAPS,
CMD_EVENT_RESTORE_DEFAULT_SHADER_PRESET,
CMD_EVENT_LIBUI_TEST
CMD_EVENT_DISCORD_INIT,
CMD_EVENT_DISCORD_DEINIT,
CMD_EVENT_DISCORD_UPDATE
};
bool command_set_shader(const char *arg);
@@ -259,6 +270,23 @@ bool command_free(command_t *handle);
**/
bool command_event(enum event_command action, void *data);
void command_playlist_push_write(
playlist_t *playlist,
const char *path,
const char *label,
const char *core_path,
const char *core_name);
void command_playlist_update_write(
playlist_t *playlist,
size_t idx,
const char *path,
const char *label,
const char *core_path,
const char *core_display_name,
const char *crc32,
const char *db_name);
RETRO_END_DECLS
#endif
+161 -50
View File
@@ -19,6 +19,8 @@
#define __CONFIG_DEF_H
#include <boolean.h>
#include <audio/audio_resampler.h>
#include "configuration.h"
#include "gfx/video_defines.h"
#include "input/input_driver.h"
@@ -26,6 +28,10 @@
#include "config.h"
#endif
#ifdef HAVE_NETWORKING
#include "network/netplay/netplay.h"
#endif
#if defined(HW_RVL)
#define MAX_GAMMA_SETTING 30
#elif defined(GEKKO)
@@ -62,13 +68,17 @@ static bool bundle_assets_extract_enable = false;
static bool materialui_icons_enable = true;
#endif
static const bool def_history_list_enable = true;
static const bool def_playlist_entry_remove = true;
static const bool def_playlist_entry_rename = true;
static const unsigned crt_switch_resolution = CRT_SWITCH_NONE;
static const int crt_switch_resolution_super = 2560;
static const int crt_switch_center_adjust = 0;
static const unsigned int def_user_language = 0;
static const bool def_history_list_enable = true;
static const bool def_playlist_entry_remove = true;
static const bool def_playlist_entry_rename = true;
#if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS))
static const unsigned int def_user_language = 0;
#if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS)) || defined(EMSCRIPTEN)
static const bool def_mouse_enable = true;
#else
static const bool def_mouse_enable = false;
@@ -115,6 +125,14 @@ static const unsigned window_y = 0;
static const unsigned fullscreen_x = 0;
static const unsigned fullscreen_y = 0;
/* Amount of transparency to use for the main window.
* 1 is the most transparent while 100 is opaque.
*/
static const unsigned window_opacity = 100;
/* Whether to show the usual window decorations like border, titlebar etc. */
static const bool window_decorations = true;
#if defined(RARCH_CONSOLE) || defined(__APPLE__)
static const bool load_dummy_on_core_shutdown = false;
#else
@@ -164,7 +182,7 @@ static unsigned swap_interval = 1;
static const bool video_threaded = false;
#if defined(HAVE_THREADS)
#if defined(GEKKO) || defined(PSP) || defined(_3DS) || defined(_XBOX1)
#if defined(GEKKO) || defined(PSP)
/* For single-core consoles right now it's better to have this be disabled. */
static const bool threaded_data_runloop_enable = false;
#else
@@ -231,22 +249,32 @@ static const bool overlay_hide_in_menu = true;
static const bool display_keyboard_overlay = false;
#ifdef HAKCHI
static const float default_input_overlay_opacity = 0.5f;
#else
static const float default_input_overlay_opacity = 0.7f;
#endif
#ifdef HAVE_MENU
#include "menu/menu_driver.h"
static bool default_block_config_read = true;
static bool quick_menu_show_take_screenshot = true;
static bool quick_menu_show_save_load_state = true;
static bool quick_menu_show_undo_save_load_state = true;
static bool quick_menu_show_add_to_favorites = true;
static bool quick_menu_show_options = true;
static bool quick_menu_show_controls = true;
static bool quick_menu_show_cheats = true;
static bool quick_menu_show_shaders = true;
static bool quick_menu_show_save_core_overrides = true;
static bool quick_menu_show_save_game_overrides = true;
static bool quick_menu_show_information = true;
static bool quick_menu_show_take_screenshot = true;
static bool quick_menu_show_save_load_state = true;
static bool quick_menu_show_undo_save_load_state = true;
static bool quick_menu_show_add_to_favorites = true;
static bool quick_menu_show_options = true;
static bool quick_menu_show_controls = true;
static bool quick_menu_show_cheats = true;
static bool quick_menu_show_shaders = true;
static bool quick_menu_show_information = true;
static bool quick_menu_show_recording = true;
static bool quick_menu_show_streaming = true;
static bool quick_menu_show_save_core_overrides = true;
static bool quick_menu_show_save_game_overrides = true;
static bool quick_menu_show_save_content_dir_overrides = true;
static bool kiosk_mode_enable = false;
@@ -258,41 +286,49 @@ static bool menu_show_configurations = true;
static bool menu_show_help = true;
static bool menu_show_quit_retroarch = true;
static bool menu_show_reboot = true;
#if defined(HAVE_LAKKA) || defined(VITA)
static bool menu_show_shutdown = true;
#if defined(HAVE_LAKKA) || defined(VITA) || defined(_3DS)
static bool menu_show_core_updater = false;
#else
static bool menu_show_core_updater = true;
#endif
static bool content_show_settings = true;
static bool content_show_favorites = true;
#ifdef HAVE_IMAGEVIEWER
static bool content_show_images = true;
#endif
static bool content_show_music = true;
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
static bool content_show_video = true;
#endif
#ifdef HAVE_NETWORKING
static bool content_show_netplay = true;
#endif
static bool content_show_history = true;
#ifdef HAVE_LIBRETRODB
static bool content_show_add = true;
#endif
static bool content_show_playlists = true;
#ifdef HAVE_XMB
static unsigned xmb_scale_factor = 100;
static unsigned xmb_alpha_factor = 75;
static unsigned menu_font_color_red = 255;
static unsigned menu_font_color_green = 255;
static unsigned menu_font_color_blue = 255;
static unsigned xmb_menu_layout = 0;
static unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME;
static unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
#ifdef HAVE_LAKKA
#if defined(HAVE_LAKKA) || defined(__arm__) || defined(__PPC64__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__)
static bool xmb_shadows_enable = false;
#else
static bool xmb_shadows_enable = true;
#endif
static bool xmb_show_settings = true;
static bool xmb_show_favorites = true;
#ifdef HAVE_IMAGEVIEWER
static bool xmb_show_images = true;
#endif
static bool xmb_show_music = true;
#ifdef HAVE_FFMPEG
static bool xmb_show_video = true;
#endif
#ifdef HAVE_NETWORKING
static bool xmb_show_netplay = true;
#endif
static bool xmb_show_history = true;
#ifdef HAVE_LIBRETRODB
static bool xmb_show_add = true;
#endif
#endif
static bool automatically_add_content_to_playlist = false;
static float menu_framebuffer_opacity = 0.900;
static float menu_wallpaper_opacity = 0.300;
@@ -314,6 +350,7 @@ static const uint32_t menu_title_color = 0xff64ff64;
#else
static bool default_block_config_read = false;
static bool automatically_add_content_to_playlist = false;
#endif
static bool default_game_specific_options = true;
@@ -333,6 +370,8 @@ static bool default_screenshots_in_content_dir = false;
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;
#elif defined(SWITCH)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_START_SELECT;
#else
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_NONE;
#endif
@@ -388,6 +427,9 @@ static const bool post_filter_record = false;
/* Screenshots post-shaded GPU output if available. */
static const bool gpu_screenshot = true;
/* Watch shader files for changes and auto-apply as necessary. */
static const bool video_shader_watch_files = false;
/* Screenshots named automatically. */
static const bool auto_screenshot_filename = true;
@@ -408,9 +450,11 @@ static const bool font_enable = true;
* If your monitor does not run at 60Hz, or something close to it,
* disable VSync, and leave this at its default. */
#ifdef _3DS
static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
static const float crt_refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
#else
static const float refresh_rate = 60/1.001;
static const float refresh_rate = 60/1.001;
static const float crt_refresh_rate = 60/1.001;
#endif
/* Allow games to set rotation. If false, rotation requests are
@@ -487,10 +531,19 @@ static const bool framecount_show = true;
* depending on the save state buffer. */
static const bool rewind_enable = false;
/* When set, any time a cheat is toggled it is immediately applied. */
static const bool apply_cheats_after_toggle = false;
/* When set, all enabled cheats are auto-applied when a game is loaded. */
static const bool apply_cheats_after_load = false;
/* The buffer size for the rewind buffer. This needs to be about
* 15-20MB per minute. Very game dependant. */
static const unsigned rewind_buffer_size = 20 << 20; /* 20MiB */
/* The amount of MB to increase/decrease the rewind_buffer_size when it is changed via the UI. */
static const unsigned rewind_buffer_size_step = 10; /* 10MB */
/* How many frames to rewind at a time. */
static const unsigned rewind_granularity = 1;
@@ -532,6 +585,14 @@ static const int netplay_check_frames = 600;
static const bool netplay_use_mitm_server = false;
static const char *netplay_mitm_server = "nyc";
#ifdef HAVE_NETWORKING
static const unsigned netplay_share_digital = RARCH_NETPLAY_SHARE_DIGITAL_NO_PREFERENCE;
static const unsigned netplay_share_analog = RARCH_NETPLAY_SHARE_ANALOG_NO_PREFERENCE;
#endif
/* On save state load, block SRAM from being overwritten.
* This could potentially lead to buggy games. */
static const bool block_sram_overwrite = false;
@@ -557,6 +618,18 @@ static const float slowmotion_ratio = 3.0;
/* Maximum fast forward ratio. */
static const float fastforward_ratio = 0.0;
/* Enable runloop for variable refresh rate screens. Force x1 speed while handling fast forward too. */
static const bool vrr_runloop_enable = false;
/* Run core logic one or more frames ahead then load the state back to reduce perceived input lag. */
static const unsigned run_ahead_frames = 1;
/* When using the Run Ahead feature, use a secondary instance of the core. */
static const bool run_ahead_secondary_instance = true;
/* Hide warning messages when using the Run Ahead feature. */
static const bool run_ahead_hide_warnings = false;
/* Enable stdin/network command interface. */
static const bool network_cmd_enable = false;
static const uint16_t network_cmd_port = 55355;
@@ -569,11 +642,7 @@ static const unsigned default_content_history_size = 100;
/* Show Menu start-up screen on boot. */
static const bool default_menu_show_start_screen = true;
#ifdef RARCH_MOBILE
static const bool menu_dpi_override_enable = false;
#else
static const bool menu_dpi_override_enable = true;
#endif
#ifdef RARCH_MOBILE
static const unsigned menu_dpi_override_value = 72;
@@ -590,6 +659,10 @@ static const unsigned libretro_log_level = 1;
#define RARCH_DEFAULT_PORT 55435
#endif
#ifndef RARCH_STREAM_DEFAULT_PORT
#define RARCH_STREAM_DEFAULT_PORT 56400
#endif
/* KEYBINDS, JOYPAD */
/* Axis threshold (between 0.0 and 1.0)
@@ -616,8 +689,14 @@ static const unsigned input_poll_type_behavior = 2;
static const unsigned input_bind_timeout = 5;
static const unsigned input_bind_hold = 2;
static const unsigned menu_thumbnails_default = 3;
static const unsigned menu_left_thumbnails_default = 0;
static const bool xmb_vertical_thumbnails = false;
#ifdef IOS
static const bool ui_companion_start_on_boot = false;
#else
@@ -626,13 +705,41 @@ static const bool ui_companion_start_on_boot = true;
static const bool ui_companion_enable = false;
#if defined(ANDROID)
#if defined(ANDROID_ARM)
/* Currently only used to show the WIMP UI on startup */
static const bool ui_companion_toggle = false;
/* Only init the WIMP UI for this session if this is enabled */
static const bool desktop_menu_enable = true;
#if defined(__QNX__) || defined(_XBOX1) || defined(_XBOX360) || defined(__CELLOS_LV2__) || (defined(__MACH__) && defined(IOS)) || defined(ANDROID) || defined(WIIU) || defined(HAVE_NEON) || defined(GEKKO) || defined(__ARM_NEON__)
static enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWER;
#elif defined(PSP) || defined(_3DS) || defined(VITA)
static enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWEST;
#else
static enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_NORMAL;
#endif
/* MIDI */
static const char *midi_input = "Off";
static const char *midi_output = "Off";
static const unsigned midi_volume = 100;
/* Only applies to Android 7.0 (API 24) and up */
static const bool sustained_performance_mode = false;
#if defined(HAKCHI)
static char buildbot_server_url[] = "http://hakchicloud.com/Libretro_Cores/";
#elif defined(ANDROID)
#if defined(ANDROID_ARM_V7)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
#elif defined(ANDROID_ARM)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi/";
#elif defined(ANDROID_AARCH64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/arm64-v8a/";
#elif defined(ANDROID_X86)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86/";
#elif defined(ANDROID_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86_64/";
#else
static char buildbot_server_url[] = "";
#endif
@@ -650,19 +757,17 @@ static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/
#endif
#elif defined(_WIN32) && !defined(_XBOX)
#if _MSC_VER == 1600
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2010/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2010/x86/latest/";
#endif
#elif _MSC_VER == 1400
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2005/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/";
#endif
#elif _MSC_VER == 1310
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/";
#else
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows/x86_64/latest/";
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows/x86/latest/";
@@ -680,6 +785,12 @@ static char buildbot_server_url[] = "";
#endif
#elif defined(WIIU)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/";
#elif defined(__CELLOS_LV2__) && defined(DEX_BUILD)
static char buildbot_server_url[] = "http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/dex-ps3/";
#elif defined(__CELLOS_LV2__) && defined(CEX_BUILD)
static char buildbot_server_url[] = "http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/cex-ps3/";
#elif defined(__CELLOS_LV2__) && defined(ODE_BUILD)
static char buildbot_server_url[] = "http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/ode-ps3/";
#else
static char buildbot_server_url[] = "";
#endif
+186 -145
View File
@@ -22,163 +22,204 @@
/* User 1 */
static const struct retro_keybind retro_keybinds_1[] = {
/* | RetroPad button | enum | keyboard key | js btn | js axis | */
/* | RetroPad button | enum | keyboard key | m-btn | js btn | js axis | */
#ifdef __QNX__
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_k, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_i, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_v, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_b, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_e, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_s, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_w, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_d, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_l, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_o, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_f, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_j, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_r, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_u, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_g, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_h, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_k, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_i, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_v, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_b, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_e, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_s, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_w, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_d, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_l, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_o, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_f, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_j, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_r, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_u, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_g, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_h, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_HOLD_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_BSV_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_BSV_RECORD_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_UI_COMPANION_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_UI_COMPANION_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_SPACE, NO_BTN, NO_BTN, 0, AXIS_NONE },
#else
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_z, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_a, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_RETURN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UP, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_x, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_s, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_q, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_w, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_z, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_a, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_RSHIFT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_RETURN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UP, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_x, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_s, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_q, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_w, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_F4, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_F2, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_ESCAPE, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_r, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MOVIE_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MOVIE_RECORD_TOGGLE, RETROK_o, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_p, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_k, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_h, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_m, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_n, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_u, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_F8, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_F9, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_F12, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_FLIP, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_FLIP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_i, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION, RETROK_e, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_SCROLLOCK, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_F1, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_SPACE, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FAST_FORWARD_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_HOLD_KEY,RETROK_l, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SLOWMOTION_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, RETROK_e, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_F4, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_F2, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY,RETROK_f, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_ESCAPE, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_r, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_BSV_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_BSV_RECORD_TOGGLE, RETROK_o, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_p, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_k, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_h, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_m, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_n, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_y, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_t, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_u, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_F8, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_F9, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_F12, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_i, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_KP_PLUS, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_KP_MINUS,NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_F11, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_SCROLLOCK, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_UI_COMPANION_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_UI_COMPANION_TOGGLE, RETROK_F5, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_F1, NO_BTN, NO_BTN, 0, AXIS_NONE },
#endif
};
/* Users 2 to MAX_USERS */
static const struct retro_keybind retro_keybinds_rest[] = {
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
/* | RetroPad button | desc | keyboard key | js btn | js axis | */
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE },
};
#endif
+12
View File
@@ -80,6 +80,12 @@ static const bool _vulkan_supp = true;
static const bool _vulkan_supp = false;
#endif
#ifdef HAVE_METAL
static const bool _metal_supp = true;
#else
static const bool _metal_supp = false;
#endif
#if defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2)
static const bool _opengles_supp = true;
#else
@@ -272,6 +278,12 @@ static const bool _ffmpeg_supp = true;
static const bool _ffmpeg_supp = false;
#endif
#ifdef HAVE_MPV
static const bool _mpv_supp = true;
#else
static const bool _mpv_supp = false;
#endif
#ifdef HAVE_FREETYPE
static const bool _freetype_supp = true;
#else
+840 -304
View File
File diff suppressed because it is too large. Load diff
+107 -18
View File
@@ -27,28 +27,44 @@
#include "gfx/video_driver.h"
#include "input/input_defines.h"
#include "led/led_defines.h"
#define configuration_set_float(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar
var = newvar; \
}
#define configuration_set_bool(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar
var = newvar; \
}
#define configuration_set_uint(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar
var = newvar; \
}
#define configuration_set_int(settings, var, newvar) \
{ \
settings->modified = true; \
var = newvar
var = newvar; \
}
enum crt_switch_type
{
CRT_SWITCH_NONE = 0,
CRT_SWITCH_15KHZ,
CRT_SWITCH_31KHZ
};
enum override_type
{
OVERRIDE_NONE = 0,
OVERRIDE_CORE,
OVERRIDE_CONTENT_DIR,
OVERRIDE_GAME
};
@@ -64,6 +80,7 @@ typedef struct settings
bool video_fullscreen;
bool video_windowed_fullscreen;
bool video_vsync;
bool video_adaptive_vsync;
bool video_hard_sync;
bool video_black_frame_insertion;
bool video_vfilter;
@@ -73,6 +90,7 @@ typedef struct settings
bool video_aspect_ratio_auto;
bool video_scale_integer;
bool video_shader_enable;
bool video_shader_watch_files;
bool video_threaded;
bool video_font_enable;
bool video_disable_composition;
@@ -83,11 +101,13 @@ typedef struct settings
bool video_shared_context;
bool video_force_srgb_disable;
bool video_fps_show;
bool video_statistics_show;
bool video_framecount_show;
bool video_msg_bgcolor_enable;
/* Audio */
bool audio_enable;
bool audio_enable_menu;
bool audio_sync;
bool audio_rate_control;
bool audio_wasapi_exclusive_mode;
@@ -136,16 +156,25 @@ typedef struct settings
bool menu_show_help;
bool menu_show_quit_retroarch;
bool menu_show_reboot;
bool menu_show_shutdown;
bool menu_show_latency;
bool menu_show_rewind;
bool menu_show_overlays;
bool menu_materialui_icons_enable;
bool menu_rgui_background_filler_thickness_enable;
bool menu_rgui_border_filler_thickness_enable;
bool menu_rgui_border_filler_enable;
bool menu_xmb_shadows_enable;
bool menu_xmb_show_settings;
bool menu_xmb_show_favorites;
bool menu_xmb_show_images;
bool menu_xmb_show_music;
bool menu_xmb_show_video;
bool menu_xmb_show_netplay;
bool menu_xmb_show_history;
bool menu_xmb_show_add;
bool menu_xmb_vertical_thumbnails;
bool menu_content_show_settings;
bool menu_content_show_favorites;
bool menu_content_show_images;
bool menu_content_show_music;
bool menu_content_show_video;
bool menu_content_show_netplay;
bool menu_content_show_history;
bool menu_content_show_add;
bool menu_content_show_playlists;
bool menu_unified_controls;
bool quick_menu_show_take_screenshot;
bool quick_menu_show_save_load_state;
@@ -157,18 +186,23 @@ typedef struct settings
bool quick_menu_show_shaders;
bool quick_menu_show_save_core_overrides;
bool quick_menu_show_save_game_overrides;
bool quick_menu_show_save_content_dir_overrides;
bool quick_menu_show_information;
bool quick_menu_show_recording;
bool quick_menu_show_streaming;
bool kiosk_mode_enable;
bool crt_switch_custom_refresh_enable;
/* Netplay */
bool netplay_public_announce;
bool netplay_start_as_spectator;
bool netplay_allow_slaves;
bool netplay_require_slaves;
bool netplay_stateless_mode;
bool netplay_swap_input;
bool netplay_nat_traversal;
bool netplay_use_mitm_server;
bool netplay_request_devices[MAX_USERS];
/* Network */
bool network_buildbot_auto_extract_archive;
@@ -178,13 +212,17 @@ typedef struct settings
bool ui_suspend_screensaver_enable;
bool ui_companion_start_on_boot;
bool ui_companion_enable;
bool ui_companion_toggle;
bool desktop_menu_enable;
/* Cheevos */
bool cheevos_enable;
bool cheevos_test_unofficial;
bool cheevos_hardcore_mode_enable;
bool cheevos_leaderboards_enable;
bool cheevos_badges_enable;
bool cheevos_verbose_enable;
bool cheevos_auto_screenshot;
/* Camera */
bool camera_allow;
@@ -204,6 +242,7 @@ typedef struct settings
bool bundle_assets_extract_enable;
/* Misc. */
bool discord_enable;
bool threaded_data_runloop_enable;
bool set_supports_no_game_enable;
bool auto_screenshot_filename;
@@ -211,6 +250,12 @@ typedef struct settings
bool playlist_entry_remove;
bool playlist_entry_rename;
bool rewind_enable;
bool vrr_runloop_enable;
bool apply_cheats_after_toggle;
bool apply_cheats_after_load;
bool run_ahead_enabled;
bool run_ahead_secondary_instance;
bool run_ahead_hide_warnings;
bool pause_nonactive;
bool block_sram_overwrite;
bool savestate_auto_index;
@@ -242,6 +287,11 @@ typedef struct settings
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
bool automatically_add_content_to_playlist;
bool video_window_show_decorations;
bool sustained_performance_mode;
} bools;
struct
@@ -250,6 +300,7 @@ typedef struct settings
float video_scale;
float video_aspect_ratio;
float video_refresh_rate;
float crt_video_refresh_rate;
float video_font_size;
float video_msg_pos_x;
float video_msg_pos_y;
@@ -282,6 +333,7 @@ typedef struct settings
int location_update_interval_distance;
int state_slot;
int audio_wasapi_sh_buffer_length;
int crt_switch_center_adjust;
} ints;
struct
@@ -291,12 +343,13 @@ typedef struct settings
unsigned audio_block_frames;
unsigned audio_latency;
unsigned audio_resampler_quality;
unsigned input_turbo_period;
unsigned input_turbo_duty_cycle;
unsigned input_bind_timeout;
unsigned input_bind_hold;
unsigned input_menu_toggle_gamepad_combo;
unsigned input_keyboard_gamepad_mapping_type;
@@ -304,17 +357,23 @@ typedef struct settings
unsigned netplay_port;
unsigned netplay_input_latency_frames_min;
unsigned netplay_input_latency_frames_range;
unsigned netplay_share_digital;
unsigned netplay_share_analog;
unsigned bundle_assets_extract_version_current;
unsigned bundle_assets_extract_last_version;
unsigned content_history_size;
unsigned libretro_log_level;
unsigned rewind_granularity;
unsigned rewind_buffer_size_step;
unsigned autosave_interval;
unsigned network_cmd_port;
unsigned network_remote_base_port;
unsigned keymapper_port;
unsigned video_window_x;
unsigned video_window_y;
unsigned video_window_opacity;
unsigned crt_switch_resolution;
unsigned crt_switch_resolution_super;
unsigned video_monitor_index;
unsigned video_fullscreen_x;
unsigned video_fullscreen_y;
@@ -328,18 +387,24 @@ typedef struct settings
unsigned video_msg_bgcolor_red;
unsigned video_msg_bgcolor_green;
unsigned video_msg_bgcolor_blue;
unsigned video_stream_port;
unsigned menu_thumbnails;
unsigned menu_left_thumbnails;
unsigned menu_dpi_override_value;
unsigned menu_entry_normal_color;
unsigned menu_entry_hover_color;
unsigned menu_title_color;
unsigned menu_xmb_layout;
unsigned menu_xmb_shader_pipeline;
unsigned menu_xmb_scale_factor;
unsigned menu_xmb_alpha_factor;
unsigned menu_xmb_theme;
unsigned menu_xmb_color_theme;
unsigned menu_materialui_color_theme;
unsigned menu_font_color_red;
unsigned menu_font_color_green;
unsigned menu_font_color_blue;
unsigned camera_width;
unsigned camera_height;
@@ -354,11 +419,23 @@ typedef struct settings
unsigned input_libretro_device[MAX_USERS];
unsigned input_analog_dpad_mode[MAX_USERS];
unsigned input_keymapper_ids[RARCH_CUSTOM_BIND_LIST_END];
unsigned input_keymapper_ids[MAX_USERS][RARCH_CUSTOM_BIND_LIST_END];
unsigned input_remap_ids[MAX_USERS][RARCH_CUSTOM_BIND_LIST_END];
unsigned led_map[MAX_LEDS];
unsigned run_ahead_frames;
unsigned midi_volume;
} uints;
struct
{
size_t placeholder;
size_t rewind_buffer_size;
} sizes;
struct
{
char placeholder;
@@ -367,15 +444,18 @@ typedef struct settings
char record_driver[32];
char camera_driver[32];
char wifi_driver[32];
char led_driver[32];
char location_driver[32];
char menu_driver[32];
char cheevos_username[32];
char cheevos_password[32];
char cheevos_token[32];
char video_context_driver[32];
char audio_driver[32];
char audio_resampler[32];
char input_driver[32];
char input_joypad_driver[32];
char midi_driver[32];
char input_keyboard_layout[64];
@@ -387,6 +467,11 @@ typedef struct settings
char bundle_assets_src[PATH_MAX_LENGTH];
char bundle_assets_dst[PATH_MAX_LENGTH];
char bundle_assets_dst_subdir[PATH_MAX_LENGTH];
char netplay_mitm_server[255];
char midi_input[32];
char midi_output[32];
} arrays;
struct
@@ -402,11 +487,14 @@ typedef struct settings
char browse_url[4096];
char path_menu_xmb_font[PATH_MAX_LENGTH];
char menu_xmb_show_settings_password[PATH_MAX_LENGTH];
char menu_content_show_settings_password[PATH_MAX_LENGTH];
char kiosk_mode_password[PATH_MAX_LENGTH];
char path_cheat_database[PATH_MAX_LENGTH];
char path_content_database[PATH_MAX_LENGTH];
char path_overlay[PATH_MAX_LENGTH];
char path_record_config[PATH_MAX_LENGTH];
char path_stream_config[PATH_MAX_LENGTH];
char path_stream_url[PATH_MAX_LENGTH];
char path_menu_wallpaper[PATH_MAX_LENGTH];
char path_audio_dsp_plugin[PATH_MAX_LENGTH];
char path_softfilter_plugin[PATH_MAX_LENGTH];
@@ -421,7 +509,6 @@ typedef struct settings
char path_shader[PATH_MAX_LENGTH];
char path_font[PATH_MAX_LENGTH];
char directory_audio_filter[PATH_MAX_LENGTH];
char directory_autoconfig[PATH_MAX_LENGTH];
char directory_video_filter[PATH_MAX_LENGTH];
@@ -449,7 +536,6 @@ typedef struct settings
video_viewport_t video_viewport_custom;
size_t rewind_buffer_size;
} settings_t;
/**
@@ -533,6 +619,9 @@ const char *config_get_default_joypad(void);
**/
const char *config_get_default_menu(void);
const char *config_get_default_midi(void);
const char *config_get_midi_driver_options(void);
const char *config_get_default_record(void);
/**
+22
View File
@@ -25,6 +25,7 @@
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_miscellaneous.h>
#include "frontend/frontend_driver.h"
@@ -81,6 +82,27 @@ bool content_reset_savestate_backups(void);
bool content_undo_load_buf_is_empty(void);
bool content_undo_save_buf_is_empty(void);
/* Clears the pending subsystem rom buffer*/
bool content_is_subsystem_pending_load(void);
/* Clears the pending subsystem rom buffer*/
void content_clear_subsystem(void);
/* Set the current subsystem*/
void content_set_subsystem(unsigned subsystem);
/* Get the current subsystem*/
int content_get_subsystem(void);
/* Add a rom to the subsystem rom buffer */
void content_add_subsystem(const char* path);
/* Get the current subsystem rom id */
unsigned content_get_subsystem_rom_id(void);
/* Set environment variables before a subsystem load */
void content_set_subsystem_info(void);
RETRO_END_DECLS
#endif
+7 -4
View File
@@ -30,14 +30,14 @@ RETRO_BEGIN_DECLS
enum
{
/* Polling is performed before
/* Polling is performed before
* call to retro_run. */
POLL_TYPE_EARLY = 0,
/* Polling is performed when requested. */
POLL_TYPE_NORMAL,
/* Polling is performed on first call to
/* Polling is performed on first call to
* retro_input_state per frame. */
POLL_TYPE_LATE
};
@@ -65,7 +65,7 @@ typedef struct rarch_system_info
const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
char valid_extensions[255];
struct retro_disk_control_callback disk_control_cb;
struct retro_disk_control_callback disk_control_cb;
struct retro_location_callback location_cb;
struct
@@ -79,7 +79,7 @@ typedef struct rarch_system_info
struct retro_controller_info *data;
unsigned size;
} ports;
rarch_memory_map_t mmaps;
} rarch_system_info_t;
@@ -170,6 +170,9 @@ bool core_set_poll_type(unsigned *type);
/* Runs the core for one frame. */
bool core_run(void);
/* Runs the core for one frame, but does not trigger any input polling */
bool core_run_no_input_polling(void);
bool core_init(void);
bool core_deinit(void *data);
+36 -1
View File
@@ -43,6 +43,12 @@
#include "verbosity.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
#include "tasks/tasks_internal.h"
#ifdef HAVE_RUNAHEAD
#include "runahead/copy_load_info.h"
#include "runahead/secondary_core.h"
#endif
struct retro_callbacks retro_ctx;
struct retro_core_t current_core;
@@ -262,6 +268,11 @@ bool core_set_controller_port_device(retro_ctx_controller_info_t *pad)
{
if (!pad)
return false;
#ifdef HAVE_RUNAHEAD
remember_controller_port_device(pad->port, pad->device);
#endif
current_core.retro_set_controller_port_device(pad->port, pad->device);
return true;
}
@@ -280,7 +291,15 @@ bool core_load_game(retro_ctx_load_content_info_t *load_info)
bool contentless = false;
bool is_inited = false;
video_driver_set_cached_frame_ptr(NULL);
#ifdef HAVE_RUNAHEAD
set_load_content_info(load_info);
clear_controller_port_map();
#endif
content_get_status(&contentless, &is_inited);
set_save_state_in_background(false);
if (load_info && load_info->special)
current_core.game_loaded = current_core.retro_load_game_special(
@@ -358,12 +377,16 @@ bool core_get_system_av_info(struct retro_system_av_info *av_info)
bool core_reset(void)
{
video_driver_set_cached_frame_ptr(NULL);
current_core.retro_reset();
return true;
}
bool core_init(void)
{
video_driver_set_cached_frame_ptr(NULL);
current_core.retro_init();
current_core.inited = true;
return true;
@@ -371,6 +394,8 @@ bool core_init(void)
bool core_unload(void)
{
video_driver_set_cached_frame_ptr(NULL);
current_core.retro_deinit();
return true;
}
@@ -379,11 +404,15 @@ bool core_unload(void)
bool core_unload_game(void)
{
video_driver_free_hw_context();
audio_driver_stop();
video_driver_set_cached_frame_ptr(NULL);
current_core.retro_unload_game();
current_core.game_loaded = false;
audio_driver_stop();
return true;
}
@@ -424,6 +453,12 @@ bool core_run(void)
return true;
}
bool core_run_no_input_polling(void)
{
current_core.retro_run();
return true;
}
bool core_load(unsigned poll_type_behavior)
{
current_core.poll_type = poll_type_behavior;
+93 -73
View File
@@ -17,22 +17,20 @@
#include <compat/strl.h>
#include <string/stdstring.h>
#include <file/config_file.h>
#include <file/file_path.h>
#include <lists/dir_list.h>
#include <file/archive_file.h>
#include <streams/file_stream.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "retroarch.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;
@@ -151,8 +149,10 @@ static void core_info_list_free(core_info_list_t *core_info_list)
free(info->path);
free(info->core_name);
free(info->systemname);
free(info->system_id);
free(info->system_manufacturer);
free(info->display_name);
free(info->display_version);
free(info->supported_extensions);
free(info->authors);
free(info->permissions);
@@ -184,22 +184,25 @@ static void core_info_list_free(core_info_list_t *core_info_list)
static bool core_info_list_iterate(
char *s, size_t len,
const char *path_basedir,
struct string_list *contents, size_t i)
{
size_t info_path_base_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path_base = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA))
char *info_path_base = NULL;
char *substr = NULL;
#endif
settings_t *settings = config_get_ptr();
const char *current_path = contents ? contents->elems[i].data : NULL;
if (!contents || !contents->elems[i].data)
goto error;
(void)substr;
if (!current_path)
return false;
info_path_base = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
info_path_base[0] = '\0';
fill_pathname_base_noext(info_path_base,
contents->elems[i].data,
current_path,
info_path_base_size);
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP) && !defined(_3DS) && !defined(VITA) && !defined(HW_WUP))
@@ -213,27 +216,27 @@ static bool core_info_list_iterate(
info_path_base_size);
fill_pathname_join(s,
(!string_is_empty(settings->paths.path_libretro_info)) ?
settings->paths.path_libretro_info :
settings->paths.directory_libretro,
path_basedir,
info_path_base, len);
free(info_path_base);
return true;
error:
free(info_path_base);
return false;
}
static core_info_list_t *core_info_list_new(const char *path)
static core_info_list_t *core_info_list_new(const char *path,
const char *libretro_info_dir,
const char *exts,
bool show_hidden_files)
{
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(
path, DIR_LIST_CORES, NULL);
const char *path_basedir = libretro_info_dir;
struct string_list *contents = dir_list_new(
path, exts,
false,
show_hidden_files,
false, false);
if (!contents)
return NULL;
@@ -255,9 +258,9 @@ static core_info_list_t *core_info_list_new(const char *path)
info_path[0] = '\0';
if (
if (
core_info_list_iterate(info_path, info_path_size,
contents, i)
path_basedir, contents, i)
&& path_is_valid(info_path))
{
char *tmp = NULL;
@@ -270,14 +273,21 @@ static core_info_list_t *core_info_list_new(const char *path)
if (!conf)
continue;
if (config_get_string(conf, "display_name", &tmp)
if (config_get_string(conf, "display_name", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].display_name = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "corename", &tmp)
if (config_get_string(conf, "display_version", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].display_version = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "corename", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].core_name = strdup(tmp);
@@ -285,7 +295,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "systemname", &tmp)
if (config_get_string(conf, "systemname", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].systemname = strdup(tmp);
@@ -293,7 +303,15 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "manufacturer", &tmp)
if (config_get_string(conf, "systemid", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].system_id = strdup(tmp);
free(tmp);
tmp = NULL;
}
if (config_get_string(conf, "manufacturer", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].system_manufacturer = strdup(tmp);
@@ -305,7 +323,7 @@ static core_info_list_t *core_info_list_new(const char *path)
core_info[i].firmware_count = count;
if (config_get_string(conf, "supported_extensions", &tmp)
if (config_get_string(conf, "supported_extensions", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].supported_extensions = strdup(tmp);
@@ -316,7 +334,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "authors", &tmp)
if (config_get_string(conf, "authors", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].authors = strdup(tmp);
@@ -327,7 +345,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "permissions", &tmp)
if (config_get_string(conf, "permissions", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].permissions = strdup(tmp);
@@ -338,7 +356,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "license", &tmp)
if (config_get_string(conf, "license", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].licenses = strdup(tmp);
@@ -349,7 +367,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "categories", &tmp)
if (config_get_string(conf, "categories", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].categories = strdup(tmp);
@@ -360,7 +378,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "database", &tmp)
if (config_get_string(conf, "database", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].databases = strdup(tmp);
@@ -371,7 +389,7 @@ static core_info_list_t *core_info_list_new(const char *path)
tmp = NULL;
}
if (config_get_string(conf, "notes", &tmp)
if (config_get_string(conf, "notes", &tmp)
&& !string_is_empty(tmp))
{
core_info[i].notes = strdup(tmp);
@@ -516,23 +534,25 @@ static core_info_t *core_info_find_internal(
static bool core_info_list_update_missing_firmware_internal(
core_info_list_t *core_info_list,
const char *core,
const char *systemdir)
const char *systemdir,
bool *set_missing_bios)
{
size_t i;
core_info_t *info = NULL;
char *path = NULL;
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
if (!core_info_list || !core)
goto error;
return false;
path[0] = '\0';
info = core_info_find_internal(core_info_list, core);
info = core_info_find_internal(core_info_list, core);
if (!info)
goto error;
return false;
path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
path[0] = '\0';
rarch_ctl(RARCH_CTL_UNSET_MISSING_BIOS, NULL);
for (i = 0; i < info->firmware_count; i++)
{
if (string_is_empty(info->firmware[i].path))
@@ -540,20 +560,16 @@ static bool core_info_list_update_missing_firmware_internal(
fill_pathname_join(path, systemdir,
info->firmware[i].path, path_size);
info->firmware[i].missing = !path_file_exists(path);
info->firmware[i].missing = !filestream_exists(path);
if (info->firmware[i].missing && !info->firmware[i].optional)
{
rarch_ctl(RARCH_CTL_SET_MISSING_BIOS, NULL);
*set_missing_bios = true;
RARCH_WARN("Firmware missing: %s\n", info->firmware[i].path);
}
}
free(path);
return true;
error:
free(path);
return false;
}
#if 0
@@ -596,7 +612,7 @@ static void core_info_list_get_missing_firmware(
{
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
info->firmware[i].missing = !filestream_exists(path);
*num_firmware += info->firmware[i].missing;
}
@@ -635,14 +651,13 @@ void core_info_deinit_list(void)
core_info_curr_list = NULL;
}
bool core_info_init_list(void)
bool core_info_init_list(const char *path_info, const char *dir_cores,
const char *exts, bool show_hidden_files)
{
settings_t *settings = config_get_ptr();
if (settings)
core_info_curr_list = core_info_list_new(settings->paths.directory_libretro);
if (!core_info_curr_list)
if (!(core_info_curr_list = core_info_list_new(dir_cores,
!string_is_empty(path_info) ? path_info : dir_cores,
exts,
show_hidden_files)))
return false;
return true;
}
@@ -655,13 +670,15 @@ bool core_info_get_list(core_info_list_t **core)
return true;
}
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info)
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info,
bool *set_missing_bios)
{
if (!info)
return false;
return core_info_list_update_missing_firmware_internal(
core_info_curr_list,
info->path, info->directory.system);
info->path, info->directory.system,
set_missing_bios);
}
bool core_info_load(core_info_ctx_find_t *info)
@@ -671,6 +688,9 @@ bool core_info_load(core_info_ctx_find_t *info)
if (!info)
return false;
if (!core_info_current)
core_info_init_current_core();
core_info_get_current_core(&core_info);
if (!core_info_curr_list)
@@ -751,41 +771,41 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
*num_infos = supported;
}
void core_info_get_name(const char *path, char *s, size_t len)
void core_info_get_name(const char *path, char *s, size_t len,
const char *path_info, const char *dir_cores,
const char *exts, bool show_hidden_files)
{
size_t i;
settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(
settings->paths.directory_libretro,
DIR_LIST_CORES, NULL);
const char *path_basedir = !string_is_empty(path_info) ?
path_info : dir_cores;
struct string_list *contents = dir_list_new(
dir_cores, exts, false, show_hidden_files, false, false);
if (!contents)
return;
for (i = 0; i < contents->size; i++)
{
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *info_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
char *info_path = NULL;
config_file_t *conf = NULL;
char *new_core_name = NULL;
const char *current_path = contents->elems[i].data;
if (!string_is_equal(current_path, path))
continue;
info_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
info_path[0] = '\0';
if (!string_is_equal(contents->elems[i].data, path))
{
free(info_path);
continue;
}
if (!core_info_list_iterate(info_path,
path_size, contents, i)
path_size, path_basedir, contents, i)
&& path_is_valid(info_path))
{
free(info_path);
continue;
}
conf = config_file_new(info_path);
conf = config_file_new(info_path);
if (!conf)
{
+10 -4
View File
@@ -2,7 +2,7 @@
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2016-2017 - Brad Parker
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -43,9 +43,11 @@ typedef struct
char *path;
void *config_data;
char *display_name;
char *display_version;
char *core_name;
char *system_manufacturer;
char *systemname;
char *system_id;
char *supported_extensions;
char *authors;
char *permissions;
@@ -97,7 +99,9 @@ bool core_info_list_get_display_name(core_info_list_t *list,
bool core_info_get_display_name(const char *path, char *s, size_t len);
void core_info_get_name(const char *path, char *s, size_t len);
void core_info_get_name(const char *path, char *s, size_t len,
const char *path_info, const char *dir_cores,
const char *exts, bool show_hidden_files);
core_info_t *core_info_get(core_info_list_t *list, size_t i);
@@ -109,11 +113,13 @@ bool core_info_get_current_core(core_info_t **core);
void core_info_deinit_list(void);
bool core_info_init_list(void);
bool core_info_init_list(const char *path_info, const char *dir_cores,
const char *exts, bool show_hidden_files);
bool core_info_get_list(core_info_list_t **core);
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info);
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info,
bool *set_missing_bios);
bool core_info_find(core_info_ctx_find_t *info, const char *name);
+3 -2
View File
@@ -1,6 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - Daniel De Matteis
*
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -16,11 +16,12 @@
#ifndef __CORE_TYPE_H
#define __CORE_TYPE_H
enum rarch_core_type
enum rarch_core_type
{
CORE_TYPE_PLAIN = 0,
CORE_TYPE_DUMMY,
CORE_TYPE_FFMPEG,
CORE_TYPE_MPV,
CORE_TYPE_IMAGEVIEWER,
CORE_TYPE_NETRETROPAD,
CORE_TYPE_VIDEO_PROCESSOR
Loaded 100 of 5407 files, more files were not shown because too many files have changed in this diff. Show more