Compare commits

...
2535 Commits
Author SHA1 Message Date
Barry Rowe fca7bc52ed Fixed accessibility for menu start actions. 2020-04-04 11:47:19 -07:00
Barry Rowe 159190cc14 Merge branch 'ozone_accessibility' into SAPI_NVDA_auto 2020-04-03 18:09:49 -07:00
Barry Rowe 984c3a22a3 Added in fixes for ozone and glui accessibility. 2020-04-03 10:39:28 -07:00
Autechre 1d7cae2ceb Merge pull request #10383 from myfreeweb/monotonic
features_cpu: synchronize ifdefs for CLOCK_MONOTONIC
2020-04-03 01:50:12 +02:00
Autechre 1f2e42cdc2 Merge pull request #10384 from myfreeweb/bsd-qt
Use -fPIC with Qt on *BSD like on Linux
2020-04-03 01:49:52 +02:00
Autechre 2cb67d1172 Merge pull request #10387 from yo6snap/master
[FIXES]GPU capture on Metal/OSX/NVidia
2020-04-03 01:49:25 +02:00
Olivier PARRA 5813228c6c [FIXES]GPU capture on Metal/OSX/NVidia
[FIX]RetroArch CRASH on Metal internal assert
_validateGetBytes:39: failed assertion `texture must not be a
framebufferOnly texture.' GPU Capture were done on a
framebufferOnly texture. Fix it by setting framebufferOnly
CAMetalLayer property to NO. Subsequent MTLTexture inherits from
this property.

[FIX]Capture black frames. Resulting PNG screenshots were black.
Since GPU texture where not sync with CPU,
getBytes:bytesPerRow:fromRegion:mipmapLevel: behavior is undefined
Fix it by adding synchronizeResource command to blitCommandEncoder
In order to keep performances, syncing is done ONLY when a GPU
Capture is requested.

[FIX]Corrupted image due to incorrect viewport copy
Modify code in charge of copying MTLTexture bytes to 24bits PNG
buffer.
2020-04-02 23:01:48 +02:00
Autechre dea5b5347d Merge pull request #10385 from jdgleaver/playlist-strlen-fix
(playlist.c) Prevent possible NULL pointer dereferences when calling strlen()
2020-04-02 16:05:17 +02:00
jdgleaver f39e554586 (playlist.c) Prevent possible NULL pointer dereferences when calling strlen() 2020-04-02 14:19:35 +01:00
Greg V f646fea03f Use -fPIC with Qt on *BSD like on Linux
Required on FreeBSD at least.
2020-04-02 15:24:54 +03:00
Greg V f9ae48c3f6 features_cpu: synchronize ifdefs for CLOCK_MONOTONIC
The ifdef in cpu_features_get_time_usec was more portable
than the one in cpu_features_get_perf_counter.

Make them the same to avoid 'undefined reference to __mftb'
on FreeBSD/powerpc64.
2020-04-02 15:09:49 +03:00
Barry Rowe 1e11cbf6b4 Got gamepad commands to work with paused emulation. 2020-04-01 16:40:41 -07:00
twinaphex ecebcf8215 Add HAVE_NVDA switch 2020-04-01 16:40:41 -07:00
Barry Rowe 8f7646ded8 Bug fix with ai service state dictionary. 2020-04-01 16:40:41 -07:00
Barry Rowe b96fd5933c Added in gamepad override access to the AI Service. 2020-04-01 16:40:41 -07:00
Barry Rowe 03676061b4 Adding some nvda stuff. 2020-04-01 16:40:41 -07:00
Barry Rowe 777ba7c5c3 Added in auto-translate support. 2020-04-01 16:40:41 -07:00
Barry Rowe bfb5f58b90 Added in SAPI option for windows narrator. 2020-04-01 16:40:41 -07:00
Autechre 2004545f96 Update CHANGES.md 2020-04-01 21:00:15 +02:00
Autechre e80fb4f386 Merge pull request #10375 from jdgleaver/font-fixes
Enable correct vertical alignment of text (+ font rendering fixes)
2020-04-01 20:59:51 +02:00
Autechre 83958a4402 Merge pull request #10378 from phcoder/qnx-rb
Several fixes for QNX/Blackberry10
2020-04-01 20:46:59 +02:00
Twinaphex 8292f31ea0 Fix unused variable warning 2020-04-01 20:43:03 +02:00
Twinaphex d0a9de01a3 (GL) Fix unused variable setting 2020-04-01 20:41:38 +02:00
Vladimir Serbinenko c809ecd623 Add qnx packaging
Put your cores into pkg/qnx/pkg/assets/cores and info into
pkg/qnx/pkg/assets/info.

set QNX_DEBUGTOKEN to your debug token. Then:

make -f Makefile.griffin platform=qnx clean retroarch-dev.bar

To install:

blackberry-deploy -installApp DEVICEIP  retroarch-dev.bar -password YOURPASSWORD
2020-04-01 16:49:44 +02:00
Vladimir Serbinenko 2ff9bfb24d qnx: support analog sticks 2020-04-01 16:49:44 +02:00
Vladimir Serbinenko ab34a0a34f Handle errors in qnx_input
I had errors with null driver. While this setup is not really usable,
we shouldn't crash on it
2020-04-01 16:49:44 +02:00
Vladimir Serbinenko c5e2099dd9 Add makefile for qnx
Usage:
make -f Makefile.griffin platform=qnx clean all
2020-04-01 16:49:44 +02:00
Vladimir Serbinenko 5a2e4237c4 Fix qnx compilation 2020-04-01 16:49:44 +02:00
Autechre 9d0585a280 Update CHANGES.md 2020-03-31 20:17:09 +02:00
Autechre f0ef3904d5 Merge pull request #10376 from Jamiras/bad_chd_header
don't ignore errors from decompress_v5_map
2020-03-31 20:16:35 +02:00
Jamiras 7fe952ddeb don't ignore errors from decompress_v5_map 2020-03-31 11:08:35 -06:00
jdgleaver 73bcd7a692 Enable correct vertical alignment of text (+ font rendering fixes) 2020-03-31 16:55:22 +01:00
Autechre 316c07c226 Merge pull request #10372 from WeedyWeedSmoker/French-translation-update
French: Add drm_go2_ctx for odroidgo2
2020-03-30 19:01:48 +02:00
Weedy Weed Smoker 2a579f4418 French: Add drm_go2_ctx for odroidgo2 2020-03-30 22:00:25 +07:00
Autechre 8f8fbab4f9 Update CHANGES.md 2020-03-30 08:43:19 +02:00
Autechre 411ff301c7 Merge pull request #10370 from phcoder/psl1ght_s2
PSL1GHT port
2020-03-30 08:42:21 +02:00
Vladimir Serbinenko 2fb7ba22e5 PSL1GHT port
Working:

* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video

Not working:

* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse

Not tested:

* A lot
2020-03-30 05:39:22 +02:00
Autechre 761a17ccd8 Merge pull request #10365 from trioan/fixes
msvc 2017 -- HAVE_ODROIDGO2 compile fixes
2020-03-29 06:00:18 +02:00
trioan f466cc5143 msvc 2017 -- HAVE_ODROIDGO2 compile fixes 2020-03-29 03:20:34 +00:00
Autechre 47067b691e Update CHANGES.md 2020-03-29 04:42:21 +02:00
Autechre 83a262ceae Update CHANGES.md 2020-03-29 04:41:54 +02:00
Autechre 15c661a374 Merge pull request #10262 from valadaa48/odroidgo2_drm_ctx_hw_scaling
Add drm_go2_ctx for odroidgo2
2020-03-29 04:40:57 +02:00
Autechre 43d24114b3 Merge pull request #10362 from WeedyWeedSmoker/French-translation-update
French: Add "Cheat File (Append)"
2020-03-28 15:17:58 +01:00
Autechre e4a3946998 Merge pull request #10361 from valadaa48/oga_signal_handler
Register signal handler for oga video driver
2020-03-28 15:17:36 +01:00
Weedy Weed Smoker 0087928aa5 French: Add "Cheat File (Append)" 2020-03-28 17:58:16 +07:00
valadaa48 2d2bd625c6 Register signal handler for oga video driver 2020-03-28 04:54:33 +00:00
valadaa48 6e4228b054 Add drm_go2_ctx for odroidgo2
- Revert odroidgo changes to drm_ctx
- Introduce new drm_go2_ctx specifically for odroidgo2 (and libgo2)
- Add hw_scaling option to mitigate builtin gl scaling/filtering and to
use libgo2 and rga's hw scaling and bicubic filtering via librga. The
quality of the image is improved by this and should be a bit faster.

Credits to CrashOverride for the initial libgo2 port and
commit to RA. And to natinusala for the initial cleanup/commit in the original
drm_ctx driver. NOirBRight for finding this setting and testing.
2020-03-28 03:30:28 +00:00
twinaphex 5972ed9cc6 (gfx_widgets) Cleanups 2020-03-28 03:53:51 +01:00
twinaphex 2dc0fdcfee (gfx drivers_display) Cleanups 2020-03-28 03:47:05 +01:00
twinaphex 4fd3cac319 (Menu) remove ident 2020-03-28 01:59:15 +01:00
twinaphex 66eed86ccf Get rid of the hash generation in menu_cbs.c 2020-03-27 19:09:50 +01:00
twinaphex 79dc998a7b Get rid of the remaining hashes 2020-03-27 19:05:54 +01:00
twinaphex 75a33b3662 (Menu cbs OK) Get rid of label hashes 2020-03-27 18:35:10 +01:00
twinaphex ac72d19f5c Update msg_hash_us.h 2020-03-27 18:04:36 +01:00
twinaphex 49e584c6f6 (Deferred push) Remove hashes 2020-03-27 18:00:26 +01:00
twinaphex d30d2abe10 Fix title regression with playlist entries 2020-03-27 16:41:10 +01:00
Autechre 637266be03 Merge pull request #10357 from jdgleaver/runtime-file-config-cleanup
(runtime_file) Remove settings pointer dependency
2020-03-27 14:57:48 +01:00
jdgleaver 05744bb69f (runtime_file) Remove settings pointer dependency 2020-03-27 11:12:32 +00:00
twinaphex 7531223846 (Menu) Fix ELSPA label 2020-03-27 05:43:44 +01:00
twinaphex 7ba551864b Fix input overlay title label 2020-03-27 04:43:42 +01:00
Autechre 0988f7fb8a Merge pull request #10356 from justinweiss/always-define-rgui-reset
Always define rgui_context_reset and rgui_context_destroy
2020-03-27 02:34:44 +01:00
Justin Weiss d016a0929b Always define rgui_context_reset and rgui_context_destroy
RetroArch will log an error if `menu_driver_ctx->context_reset` isn't
defined. The function should always be defined, and should skip the
platform-specific code inside the function instead.
2020-03-26 17:22:45 -07:00
Autechre b01ae6b366 Update CHANGES.md 2020-03-27 00:15:45 +01:00
Autechre 309af5d526 Merge pull request #10354 from johanbcn/bugfix/android-chd-scanning
Include WANT_SUBCODE and WANT_RAW_DATA_SECTOR defines on Android's JNI makefile
2020-03-27 00:15:00 +01:00
Joan Coll Cerdán 66d98af48b Include WANT_SUBCODE and WANT_RAW_DATA_SECTOR defines on Android's JNI
makefile in order to properly support CHD scanning.
2020-03-26 23:37:46 +01:00
twinaphex 97ee822f35 Fix some titles 2020-03-26 17:47:31 +01:00
twinaphex 4646da6df8 Get rid of label hashes in menu_cbs_title.c 2020-03-26 17:36:05 +01:00
twinaphex 6f6a4e59df (Title) Cleanup more hashes 2020-03-26 17:22:36 +01:00
twinaphex 4a95cb7b54 Cleanups 2020-03-26 16:46:49 +01:00
twinaphex e81e53bdf6 (Menu cbs OK) Rewrite this into a loop 2020-03-26 16:44:16 +01:00
twinaphex ae48da5ebf Cleanups 2020-03-26 14:57:02 +01:00
twinaphex 3d24439276 (Menu cbs ok) Get rid of unused hashes 2020-03-26 14:54:09 +01:00
Autechre 6b0a46d5d2 Update CHANGES.md 2020-03-26 14:06:57 +01:00
Autechre 456346e0c6 Merge pull request #10352 from jdgleaver/texture-slice-fix
Fix 'gfx_display_draw_texture_slice()' (i.e. prevent glitches when rendering Ozone's selection cursor)
2020-03-26 14:06:01 +01:00
jdgleaver 1440b46eb0 Fix 'gfx_display_draw_texture_slice()' (i.e. prevent glitches when rendering Ozone's selection cursor) 2020-03-26 11:45:28 +00:00
twinaphex 9f7e55e59d (intl) Remove HAVE_VIDEO_LAYOUT ifdefs 2020-03-26 03:05:21 +01:00
Autechre ef13fc1b9e Merge pull request #10346 from DEX357/patch-52
Update msg_hash_pl.h
2020-03-26 01:27:56 +01:00
hizzlekizzle 513dcdc502 Merge pull request #10348 from WeedyWeedSmoker/French-translation-update
French: (Manual content scanner/playlist cleaner)
2020-03-25 16:14:49 -05:00
Weedy Weed Smoker b17e274ff6 French: (Manual content scanner/playlist cleaner)
Prevent redundant playlist entries when handling M3U content
2020-03-26 02:54:33 +07:00
DEX357 29774bd84a Update msg_hash_pl.h 2020-03-25 15:50:30 +01:00
hizzlekizzle 95f0b6e0b8 Merge pull request #10344 from phcoder/3ds6
3ds: Add ID for ThePowderToy
2020-03-24 19:19:40 -05:00
Vladimir Serbinenko ab8af924c0 3ds: Add ID for ThePowderToy 2020-03-24 23:22:39 +01:00
Autechre a0e12fecde Update CHANGES.md 2020-03-24 18:24:55 +01:00
Autechre af52212e6d Merge pull request #10310 from Ryunam/lastplayed-timedate
Update timedate style options for Last Played sublabel metadata
2020-03-24 18:16:12 +01:00
Autechre ff7f56e996 Merge pull request #10314 from jdgleaver/m3u-scan
(Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content
2020-03-24 18:15:24 +01:00
Autechre 261adaf100 Merge pull request #10339 from jdgleaver/input-notification-port
Use correct port index in input device configured/disconnected notifications
2020-03-24 18:15:06 +01:00
Autechre b9c32276bf Merge pull request #10340 from jdgleaver/ozone-theme-setting
(Ozone) Hide 'Menu Color Theme' setting when 'Use preferred system color theme' is enabled
2020-03-24 18:14:49 +01:00
Autechre e639d2b09a Merge pull request #10342 from jdgleaver/thumb-swap-fix
(XMB/Ozone) Fix thumbnail switching via 'scan' button functionality
2020-03-24 18:13:46 +01:00
Autechre 2cc841a6cb Merge pull request #10343 from jdgleaver/font-segfault-fix
(Menu) Prevent font-related segfaults when using extremely small scales/window sizes
2020-03-24 18:13:32 +01:00
jdgleaver 9194a3b24d (Menu) Prevent font-related segfaults when using extremely small scales/window sizes 2020-03-24 16:14:53 +00:00
jdgleaver b5d9ed60e7 (XMB/Ozone) Fix thumbnail switching via 'scan' button functionality 2020-03-24 14:28:01 +00:00
jdgleaver 7a1e97f8c0 (Ozone) Hide 'Menu Color Theme' setting when 'Use preferred system color theme' is enabled + ensure default theme is applied consistently 2020-03-24 12:06:30 +00:00
jdgleaver fb7b1ec1a0 Use correct port index in input device configured/disconnected notifications 2020-03-24 11:18:54 +00:00
hizzlekizzle 9729b5a917 Merge pull request #10322 from valadaa48/video_oga
Video oga
2020-03-23 13:30:51 -05:00
valadaa48 53fffbd670 Add "oga" graphics driver for odroid go advance
libgo2 improvements

- Expose rga scale mode as param for future use
- Cleanup whitespace
- Add option to disable managed surfaces and allow direct posting to drm
  driver

oga graphics driver

- Uses direct framebuffers in libgo2
- Bitmap font only supported for now
- Uses built-in bicubic filtering: graphics quality better than gl + bilinear
- Support for rotation
2020-03-22 23:35:22 -04:00
Autechre 8643cb22dd Merge pull request #10327 from phcoder/3ds5
3ds: Add ID for crocods
2020-03-22 22:00:57 +01:00
Vladimir Serbinenko 47582ffa41 3ds: Add ID for crocods 2020-03-22 15:03:28 +01:00
Autechre f48c668447 Update CHANGES.md 2020-03-20 17:35:42 +01:00
Autechre 8bcd74bf42 Merge pull request #10311 from altiereslima/master
Update Portuguese Brazilian Translation
2020-03-20 17:34:45 +01:00
Autechre 92f6c33d34 Merge pull request #10312 from natinusala/vc-fix
Fix VG and VC EGL
2020-03-20 17:34:33 +01:00
jdgleaver c61f6aafc1 (m3u_file.c) Replace tab indents with spaces 2020-03-20 14:53:53 +00:00
jdgleaver e24274a314 (Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content 2020-03-20 14:26:08 +00:00
natinusala 00590f2077 Fix VG and VC EGL 2020-03-20 09:19:06 +01:00
altiereslima 353ca34a49 Update msg_hash_pt_br.h 2020-03-19 21:40:51 -03:00
altiereslima bc01a94f07 Update msg_hash_pt_br.h 2020-03-19 21:18:43 -03:00
Ryunam 5a8106308e Update timedate style options for Last Played sublabel metadata 2020-03-19 18:47:42 +01:00
Autechre 532fd88e2f Merge pull request #10308 from martinezjavier/master
(GL) Fix NULL pointer dereference in gl2_init()
2020-03-19 06:48:17 +01:00
Javier Martinez Canillas 42e8890c91 (GL) Fix NULL pointer dereference in gl2_init()
Commit 10df615d14 ("add "Send Debug Info" option under Help") added some
debug information that contains the GL_VENDOR, GL_RENDERER and GL_VERSION
strings that are returned by the glGetString() function, and is used by
algorithms to recognize the platform.

But in some GL contexts, these may be NULL which leads to a NULL pointer
dereference when trying to copy the returned strings. Commit 97247dbaec
("gl1: check for vender/renderer was in the wrong place") later fixed it
for the GL1 driver, but it missed doing the same for the GL driver.

For example, on an Exynos Odroid XU4 with a mali-fdev GL context I get:

$ retroarch -v
[INFO] RetroArch 1.8.5 (Git 8d3f25f)
[INFO] === Build =======================================
[INFO] Capabilities:  NEON VFPv3 VFPv4
[INFO] Built: Mar 18 2020
[INFO] Version: 1.8.5
[INFO] Git: 8d3f25f
[INFO] =================================================
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 960x720
[INFO] [EGL] Falling back to eglGetDisplay
[INFO] [EGL]: EGL version: 1.4
[INFO] [GL]: Found GL context: mali-fbdev
[INFO] [GL]: Detecting screen resolution 0x0.
[INFO] [EGL]: Current context: 0xf08e20.
[INFO] [GL]: Vendor: (null), Renderer: (null).
[INFO] [GL]: Version: (null).
Segmentation fault (core dumped)
2020-03-18 23:44:50 +01:00
Autechre 8d3f25f20f Update Makefile.libnx 2020-03-18 14:23:38 +01:00
Autechre fe03ba76f9 Update CHANGES.md 2020-03-17 22:44:46 +01:00
Autechre 9b9e0a03fa Merge pull request #10290 from Ryunam/master
Add European timedate style (DD/MM/YYYY) and reorder timedate options
2020-03-17 22:43:35 +01:00
Autechre d078a7131f Merge pull request #10303 from natinusala/split-widgets
gfx_widgets: move libretro message widget into its own file
2020-03-17 22:42:59 +01:00
Autechre be1b97c7c0 Merge pull request #10306 from phcoder/3ds4
Add ID for chailove
2020-03-17 22:42:21 +01:00
Autechre 249c0f4fb5 Merge pull request #10305 from Tatsuya79/patch-1
qt: add scroll acceleration option
2020-03-17 22:42:06 +01:00
Vladimir Serbinenko 3a1510ca88 Add ID for chailove 2020-03-17 22:38:14 +01:00
Tatsuya79 19331636bd qt: add scroll acceleration option 2020-03-17 22:32:12 +01:00
natinusala 997136c029 gfx_widgets: move libretro message widget into its own file 2020-03-17 17:16:21 +01:00
Autechre 3c4a959b83 Merge pull request #10293 from Crestwave/haiku
(Haiku) Use GL1 video driver by default
2020-03-17 06:57:08 +01:00
Autechre 157260d05d Merge pull request #10301 from libretro/revert-10088-travis-ccache
Revert "(Travis) Use ccache for caching compilation"
2020-03-17 02:33:29 +01:00
Autechre f65fefb462 Revert "(Travis) Use ccache for caching compilation (#10088)"
This reverts commit 7e6fc5ab4d.
2020-03-17 02:33:18 +01:00
Autechre 3180cbd103 Merge pull request #10296 from FmT0/patch-1
(Vita) Prefer Front Touch option fix
2020-03-17 02:31:47 +01:00
Autechre c0c9caec22 Merge pull request #10300 from phcoder/3ds3
3ds: Add ID for tic80
2020-03-17 02:31:01 +01:00
Vladimir Serbinenko 4d79396cc3 Add ID for tic80 2020-03-17 01:37:49 +01:00
Autechre 7c5cca2dba Merge pull request #10297 from jdgleaver/3ds-prboom
(3DS) Restore missing PrBoom assets
2020-03-16 12:20:51 +01:00
jdgleaver 1e0c74e818 (3DS) Restore missing PrBoom assets 2020-03-16 11:13:41 +00:00
FmT0 f0faedddf9 Update psp_joypad.c
Fix "Prefer Front Touch" option from Input menu for Vita toggle menu input
2020-03-16 20:07:10 +09:00
Autechre b4aca85a0c Merge pull request #10292 from phcoder/3ds2
(3DS) Add IDs for hatari, lutro and tyrquake
2020-03-16 08:37:36 +01:00
Autechre e12655915d Merge pull request #10295 from libretro/RobLoach/travis-xcode-allow-failure
(Travis) Allow OSX to fail until we fix xcode11.2
2020-03-16 08:37:26 +01:00
twinaphex 58e7355942 (Android) Buildfix 2020-03-16 08:16:03 +01:00
Rob Loach cfbc3d4317 (Docs) Use HTTPS URL for libretro.com link (#10274)
Fixes #10272
2020-03-16 02:49:18 -04:00
Rob Loach 7e6fc5ab4d (Travis) Use ccache for caching compilation (#10088)
This aims to speed up the Travis builds. Fixes #9961
2020-03-16 02:47:38 -04:00
Rob Loach 8b6c330253 (Travis) Allow OSX to fail until we fix xcode11.2
Xcode 11.2 has been failing for a while through the following error. This change ignores that failure until we can fix it properly...

```
0.03s$ echo $OSX_CERT | base64 --decode > dev.p12
The command "echo $OSX_CERT | base64 --decode > dev.p12" exited with 0.
0.04s$ security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign
security: SecKeychainItemImport: One or more parameters passed to a function were not valid.
The command "security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign" exited with 1.
0.01s$ rm dev.p12
The command "rm dev.p12" exited with 0.
0.05s$ security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain
security: SecItemCopyMatching: The specified item could not be found in the keychain.
The command "security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain" exited with 1.
4.39s$ xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
note: Using new build system
note: Planning build
note: Constructing build description
error: No signing certificate "Developer ID Application" found: No "Developer ID Application" signing certificate matching team ID "ZE9XE938Z2" with a private key was found. (in target 'RetroArchQt' from project 'RetroArch_Metal')
** BUILD FAILED **
The command "xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj" exited with 65.
```
2020-03-15 23:48:00 -04:00
Crestwave ef78f5b3c3 (Haiku) Use GL1 video driver by default 2020-03-16 08:52:11 +08:00
Vladimir Serbinenko a8a88efcb2 Add ID for lutro 2020-03-15 23:56:04 +01:00
Vladimir Serbinenko e93857cd9b Add ID for tyrquake 2020-03-15 16:25:13 +01:00
Ryunam 0310f6dafd Add European timedate style (DD/MM/YYYY) and reorder timedate options 2020-03-15 16:00:03 +01:00
Vladimir Serbinenko 9c06b1a0fb ID for hatari 2020-03-15 13:48:09 +01:00
Autechre 7c57124aed Merge pull request #10288 from fjtrujy/vita/AudioMixer
[Vita] Add audio mixer to vita
2020-03-15 12:21:48 +01:00
Francisco Javier Trujillo Mata 856eb3df89 Add audio mixer to vita 2020-03-15 11:26:29 +01:00
Autechre e7f5423d53 Merge pull request #10285 from phcoder/xrick3ds
Add ID for xrick
2020-03-15 02:20:59 +01:00
Autechre 442101e7ae Merge pull request #10286 from WeedyWeedSmoker/French-translation-update
French: qt: expose dropped thumbnal size limit
2020-03-15 02:20:52 +01:00
Autechre 0d8c4ce3ae Merge pull request #10287 from phcoder/pocketcdg
Add ID for PocketCDG
2020-03-15 02:20:43 +01:00
Vladimir Serbinenko 1197104b60 Add ID for PocketCDG 2020-03-15 02:17:42 +01:00
Weedy Weed Smoker ab5bb981df French: qt: expose dropped thumbnal size limit 2020-03-15 06:14:33 +07:00
Vladimir Serbinenko 2509d8e88f Add ID for xrick 2020-03-14 22:43:18 +01:00
twinaphex a33353399f Attempt to fix https://github.com/libretro/RetroArch/issues/10276 2020-03-14 21:54:14 +01:00
Autechre c4a98a62d3 Merge pull request #10283 from phcoder/gme
Add ID for GME
2020-03-14 21:02:02 +01:00
Autechre 497180e506 Merge pull request #10284 from fjtrujy/pspsAudioMixer
Add Audio Mixer support to PSP
2020-03-14 21:01:51 +01:00
Francisco Javier Trujillo Mata f0e1ab37cc Add Audio Mixer support to PSP 2020-03-14 18:38:24 +01:00
Vladimir Serbinenko 53194e10b5 Add ID for GME 2020-03-14 13:03:36 +01:00
Autechre 25231d5c92 Merge pull request #10280 from phcoder/3dsboom
3ds: Add ID for mrboom
2020-03-14 10:44:12 +01:00
Vladimir Serbinenko 400f97a163 3ds: Add ID for mrboom 2020-03-14 03:10:14 +01:00
Autechre d857fb3234 Update FUNDING.yml 2020-03-14 02:53:46 +01:00
Autechre 5dc3f40451 Merge pull request #10277 from Tatsuya79/master
qt: expose dropped thumbnail size limit
2020-03-14 02:40:01 +01:00
Autechre e138bfbfaf Merge pull request #10275 from natinusala/split-widgets
gfx_widgets: move generic message to its own file
2020-03-14 02:39:46 +01:00
Autechre c9b39a41e9 Merge pull request #10278 from phcoder/3ds
3DS: Add IDs for 8-bit computers
2020-03-14 02:39:26 +01:00
Autechre cf0f16596c Merge pull request #10279 from phcoder/prboom3ds
Fix prboom smdh
2020-03-14 01:33:00 +01:00
Vladimir Serbinenko 8b138d8bb1 Fix prboom smdh 2020-03-14 01:22:35 +01:00
Vladimir Serbinenko 320d4917bd Add IDs for 8-bit computers 2020-03-14 00:50:35 +01:00
Tatsuya79 a780755af7 qt: expose dropped thumbnal size limit 2020-03-13 22:46:46 +01:00
natinusala 7246d0d053 gfx_widgets: move generic message to its own file 2020-03-13 17:13:56 +01:00
Rob Loach 8794360b65 Merge pull request #10273 from WeedyWeedSmoker/French-translation-update
French: Rename menu widgets to display widgets
2020-03-13 08:19:38 -04:00
Weedy Weed Smoker 6b9f8be3fb French: Rename menu widgets to display widgets 2020-03-13 19:03:14 +07:00
Autechre bae318dbc2 Merge pull request #10271 from phcoder/3ds
3ds: Add ids for ffmpeg and freechaf
2020-03-13 10:04:33 +01:00
Vladimir Serbinenko 11ece8b373 3ds: Add ids for ffmpeg and freechaf 2020-03-13 09:56:53 +01:00
twinaphex efb0b87c1d (Menu cbs title) Take out more hash labels 2020-03-13 06:25:43 +01:00
twinaphex 7986561598 Rename menu widgets to display widgets 2020-03-13 03:58:33 +01:00
Autechre 0aecf033b6 Update CHANGES.md 2020-03-13 02:22:53 +01:00
Autechre 3c6bea1113 Merge pull request #10270 from libretro/RobLoach/database-psp-korea
(Database) Add support for scanning PSP Korean
2020-03-13 02:22:21 +01:00
twinaphex 7f8c13ae09 (GDI/Win32) Refactor code - handle doubleclick press on title bar
inside DInput driver
2020-03-13 02:20:31 +01:00
Rob Loach 7403b3de8a (Database) Add support for scanning PSP Korean
This adds support for scanning PlayStation Portable Korean region.

Found by @pkos, and fixes #10268
2020-03-12 21:19:32 -04:00
twinaphex 925ec7bc82 (MSVC 2010) Buildfix 2020-03-13 01:03:48 +01:00
twinaphex 30e8ec6543 (win32_common.c) Put g_win32_resized into struct 2020-03-13 00:15:51 +01:00
twinaphex 91fd05133b C89_BUILD fix 2020-03-13 00:11:43 +01:00
twinaphex c796f3268b (win32_common.c) Cleanups 2020-03-13 00:11:21 +01:00
twinaphex b4da4940eb Revert "(Win32) Move global state to struct"
This reverts commit dfa1288988.
2020-03-12 22:10:24 +01:00
twinaphex 26bb0105c0 (Vita) Buildfix 2020-03-12 20:54:38 +01:00
Autechre 2e215c4efd Merge pull request #10267 from WeedyWeedSmoker/French-translation-update
French: small cosmetic changes/improvements
2020-03-12 20:29:02 +01:00
Weedy Weed Smoker d9dccf0c78 French: small cosmetic improvement 2020-03-13 00:27:09 +07:00
Weedy Weed Smoker 6b279a2581 French: small cosmetic changes/improvements 2020-03-13 00:16:59 +07:00
Autechre 66f621f810 Merge pull request #10266 from WeedyWeedSmoker/French-translation-update
French: Fix 'remap file loaded' notification msg
2020-03-12 17:48:17 +01:00
twinaphex dfa1288988 (Win32) Move global state to struct 2020-03-12 17:47:49 +01:00
Weedy Weed Smoker fdad03e878 French: Fix 'remap file loaded' notification msg 2020-03-12 23:39:13 +07:00
Autechre ee92c6d679 Update CHANGES.md 2020-03-12 17:18:45 +01:00
Autechre 4ccff43919 Merge pull request #10265 from jdgleaver/glui-scroll-fix
(GLUI) Fix ragged/broken scrolling when navigating at very high speed via gamepad/keyboard/mouse wheel
2020-03-12 17:17:49 +01:00
jdgleaver 050ac1e9cf (GLUI) Fix ragged/broken scrolling when navigating at very high speed via gamepad/keyboard/mouse wheel 2020-03-12 16:04:22 +00:00
twinaphex 28eec1489a Every global has to be named uniquely for Griffin targets 2020-03-12 17:00:13 +01:00
Autechre 76f0c14289 Merge pull request #10263 from jdgleaver/widget-scale-setting-cleanup
Use single 'Widgets Scale Override' setting on console and mobile platforms
2020-03-12 16:38:38 +01:00
Autechre c20e83e50a Merge pull request #10256 from jdgleaver/threaded-video-show-mouse
(Threaded Video) Enable proper mouse cursor show/hide functionality
2020-03-12 16:09:09 +01:00
Autechre e1debd6f11 Merge pull request #10252 from natinusala/split-widgets
gfx_widgets: move volume into its own file
2020-03-12 15:46:21 +01:00
Autechre 932d12a684 Merge pull request #10264 from jdgleaver/remap-msg-fix
Fix 'remap file loaded' notification message
2020-03-12 15:45:39 +01:00
Autechre a9bb8d08f2 Update CHANGES.md 2020-03-12 15:45:23 +01:00
jdgleaver 927d801463 Fix 'remap file loaded' notification message 2020-03-12 12:16:23 +00:00
jdgleaver 018209d6c2 Use single 'Widgets Scale Override' setting on console and mobile platforms 2020-03-12 11:29:53 +00:00
natinusala 375621394c gfx_widgets: move volume into its own file 2020-03-12 09:31:05 +01:00
natinusala 37a5e7ff08 gfx_widgets: cleanup 2020-03-12 09:29:04 +01:00
twinaphex 7fb7d4e74c Buildfix 2020-03-12 08:05:44 +01:00
twinaphex 649aee49ba (task_content.c) Cleanups 2020-03-12 07:29:04 +01:00
twinaphex 67ea016c09 (task_content.c) cleanups 2020-03-12 07:14:44 +01:00
twinaphex 38135c505b Rearrange struct members based on size 2020-03-12 06:59:07 +01:00
twinaphex f13a4b10ee (task_content.c) Move global variables to struct 2020-03-12 06:45:17 +01:00
twinaphex 0611581b28 (Win32) Remove this - hopefully it sets Ozone to default 2020-03-12 03:52:56 +01:00
Autechre 3bfd6ababd Merge pull request #10261 from valadaa48/odroidgo2_conf_extra
Change some defaults for odroidgo2
2020-03-12 02:22:35 +01:00
valadaa48 ea53d4ab38 Change some defaults for odroidgo2 2020-03-12 01:15:05 +00:00
Twinaphex 4a533447a1 Merge pull request #10258 from WeedyWeedSmoker/French-translation-update
French: Add Menu scroll acceleration
2020-03-11 19:58:10 +01:00
Weedy Weed Smoker 16d62001e0 French: Add Menu scroll acceleration 2020-03-12 01:36:41 +07:00
Twinaphex 00577b8950 Merge pull request #10255 from jdgleaver/widget-persistence
Enable widget persistence across drivers_init()/driver_uninit() events
2020-03-11 19:21:27 +01:00
jdgleaver 27ab57bc05 (Threaded Video) Enable proper mouse cursor show/hide functionality 2020-03-11 16:26:17 +00:00
jdgleaver b92dcd1334 (gfx_widgets) reorder internal status updates 2020-03-11 14:28:15 +00:00
jdgleaver 086c68bca7 Enable widget persistence across drivers_init()/driver_uninit() events 2020-03-11 11:47:13 +00:00
Twinaphex 2a0833378d Merge pull request #10239 from parport0/master
(Menu) Add Menu Scroll Acceleration option
2020-03-10 21:33:51 +01:00
twinaphex c4dfa1e12a (Gfx drivers) Cleanups 2020-03-10 19:52:05 +01:00
twinaphex ae18fc808d Cleanups 2020-03-10 19:32:21 +01:00
twinaphex 92b09a9f60 (Video layout) Get rid of video_frame_info dependency 2020-03-10 19:10:02 +01:00
twinaphex abcfe03059 (Metal) Simplification 2020-03-10 19:03:34 +01:00
Twinaphex 9e8dd390b2 Update CHANGES.md 2020-03-10 15:17:41 +01:00
Twinaphex ee5e7f8034 Merge pull request #10246 from jdgleaver/thread-status-fix
Ensure proper detection of 'threaded video' state when calling 'drivers_init()'
2020-03-10 15:16:00 +01:00
jdgleaver 3b3eaa1e24 Ensure proper detection of 'threaded video' state when calling 'drivers_init()' 2020-03-10 12:17:38 +00:00
parport0 1e315bb61b Rename PSP-style scroll to Menu scroll acceleration 2020-03-10 13:10:09 +01:00
Twinaphex e2a703896f Update CHANGES.md 2020-03-10 06:42:24 +01:00
Twinaphex d2f3af69f4 Merge pull request #10243 from libretro/RobLoach/database-korea-asia-discs
database: Add scanning Korea and Asia discs
2020-03-10 06:41:05 +01:00
Rob Loach 84eb05c917 database: Add scanning Korea and Asia discs
This change adds support for scanning Korean and Asian media discs to task_database_cue.c.

Found by @pkos, and fixes #10241 .
2020-03-09 22:46:30 -04:00
twinaphex bbe688cd05 Updates 2020-03-10 03:38:45 +01:00
Twinaphex d81e756fa7 (Metal) Buildfix 2020-03-10 03:37:48 +01:00
twinaphex 8a4e8f4ae9 (Stripes) Cleanups 2020-03-10 03:35:10 +01:00
twinaphex f4c5036c3c Get rid of video_frame_info dep for fonts 2020-03-10 03:24:59 +01:00
Twinaphex 35a528a3e0 (Metal raster font) Remove dependency on video_info 2020-03-10 03:02:37 +01:00
Twinaphex 783f16b198 Updates 2020-03-10 02:48:01 +01:00
Twinaphex 238d72d187 Buildfix 2020-03-10 02:38:23 +01:00
Twinaphex dde5f67962 Revert "(Metal raster font) remove video_frame_info dep"
This reverts commit f2df63e246.
2020-03-10 02:07:10 +01:00
twinaphex f2df63e246 (Metal raster font) remove video_frame_info dep 2020-03-10 02:02:19 +01:00
twinaphex 083a0453c6 (PS2) Buildfix 2020-03-10 01:07:29 +01:00
twinaphex 1a854021a4 (Metal raster font) More simplifications 2020-03-09 22:47:40 +01:00
twinaphex 2da2dd3b0b (Metal raster font) Simplify code 2020-03-09 22:44:01 +01:00
twinaphex c77861126f remove video_info deps 2020-03-09 22:35:25 +01:00
twinaphex 867bdad010 Get rid of unimplemented FPGA font driver 2020-03-09 22:13:17 +01:00
twinaphex a395bf9355 (Drivers font) Start getting rid of video_frame_info dependency 2020-03-09 21:56:03 +01:00
twinaphex 43feea3496 (Drivers font) Add parameter 2020-03-09 21:34:14 +01:00
twinaphex 0ee8119459 (widgets) Nits 2020-03-09 19:35:49 +01:00
Twinaphex adfef2a503 Merge pull request #10240 from natinusala/split-widgets
gfx_widgets: start moving widgets into their own file
2020-03-09 19:14:26 +01:00
twinaphex 252bb3a905 (GLX) Fixes fastforwarding issues 2020-03-09 19:13:43 +01:00
twinaphex c007b68e6b (GLX) GLX OML was unstable with threaded video - remove it -
also put SwapInterval first instead of SwapIntervalEXT - this
makes fastforwarding work on Intel iGPUs
2020-03-09 18:37:20 +01:00
twinaphex 4e6f26d2e4 (Video drivers) Cleanups 2020-03-09 16:24:20 +01:00
twinaphex 9e9ad8d5eb (video_thread_wrapper) Remove unused CMD_POKE_SET_OSD_MSG 2020-03-09 16:19:07 +01:00
twinaphex b7da58b40b (Gfx) Video driver cleanups 2020-03-09 16:15:53 +01:00
natinusala 7dc961bdd9 griffin: add screenshot widget 2020-03-09 16:10:53 +01:00
twinaphex 17bb6f7354 (D3D10) Cleanups 2020-03-09 15:55:37 +01:00
twinaphex 68678987c4 (Vulkan) Cleanups 2020-03-09 15:48:15 +01:00
twinaphex cd152399a3 (GL) Cleanups 2020-03-09 15:40:14 +01:00
twinaphex a4cced8fde (Stripes) Updates - no longer compiles 2020-03-09 15:25:02 +01:00
twinaphex 9786e08228 (Ozone) Cleanups 2020-03-09 15:10:28 +01:00
twinaphex 448b988e62 (Ozone) Cleanups 2020-03-09 15:03:21 +01:00
twinaphex 92054bcd09 (Ozone) Cleanups 2020-03-09 14:53:54 +01:00
twinaphex 540f0d2646 (Menu) Cleanups 2020-03-09 14:46:23 +01:00
natinusala b4ea5d3cd5 gfx_widgets: move screenshot widget into its own file 2020-03-09 14:40:31 +01:00
natinusala 8e3ef34c1f gfx_widgets: pipe all functions to the widgets 2020-03-09 14:40:31 +01:00
natinusala 3c1e9372ab gfx_widgets: add gfx_widget struct 2020-03-09 14:40:31 +01:00
twinaphex 82b327420d (XMB) Cleanups 2020-03-09 14:35:03 +01:00
parport0 fb5f557d91 Add PSP-style menu scroll option 2020-03-09 14:34:51 +01:00
twinaphex b3d5551ad2 (Menu) Cleanups 2020-03-09 14:22:16 +01:00
twinaphex 999f862a6d Fix for cursor conditional 2020-03-09 14:14:11 +01:00
twinaphex ee2f25b1dc (Gfx drivers) Cleanups 2020-03-09 05:18:02 +01:00
twinaphex 006735395c (MaterialUI) Cleanups 2020-03-09 04:59:53 +01:00
twinaphex cdbae18ae5 Cleanups 2020-03-09 04:13:41 +01:00
twinaphex 07416f1a0e Cleanups 2020-03-09 02:59:42 +01:00
twinaphex 7c7fe66dfc Cleanups 2020-03-09 02:58:31 +01:00
twinaphex 87bf32e889 Cleanups 2020-03-09 02:38:13 +01:00
twinaphex 43e608760a Cleanups 2020-03-09 02:22:19 +01:00
twinaphex 7d4e5b8ce5 No more video_info_frame dependency in gfx_thumbnail.c 2020-03-09 02:15:44 +01:00
twinaphex 6a0a68f8df (XMB) Cleanups 2020-03-09 01:36:49 +01:00
twinaphex 7f958862fe cleanups 2020-03-09 01:32:05 +01:00
twinaphex e08689ed98 (Menu) Cleanups 2020-03-09 01:26:43 +01:00
twinaphex c3be8f45fc (Metal) Buildfix 2020-03-09 01:18:01 +01:00
twinaphex e5ab0f33d1 Cleanups 2020-03-09 01:07:35 +01:00
twinaphex 2413c1b8d5 (Menu) Cleanups 2020-03-09 00:58:04 +01:00
twinaphex ba73bebf3d (XMB) Cleanups 2020-03-09 00:43:43 +01:00
twinaphex d91800038d (Ozone) Cleanups 2020-03-09 00:38:18 +01:00
twinaphex a0446f778c Cleanups 2020-03-09 00:34:31 +01:00
twinaphex 5388448cf3 (gfx_widgets.c) Cleanups 2020-03-09 00:25:28 +01:00
twinaphex 8c39c804ee (gfx_widgets.c) Cleanups 2020-03-09 00:18:38 +01:00
twinaphex 13249f6011 Cleanups 2020-03-09 00:08:18 +01:00
twinaphex d72596142e gfx_display_draw_quad - no longer dependent on video_frame_info 2020-03-08 23:56:22 +01:00
twinaphex b24d1f06aa gfx_display_scissor_begin/end - get rid of video_frame_info dependency 2020-03-08 22:58:17 +01:00
twinaphex 044619281c gfx_display_draw - remove video_frame_info dependency 2020-03-08 22:52:02 +01:00
twinaphex d42a76dec1 Simplify conditional and fix clear_color call 2020-03-08 22:36:51 +01:00
twinaphex 6cb6f76add gfx_display_rotate_z - get rid of video_frame_info dependency 2020-03-08 22:33:11 +01:00
twinaphex e4aa0fd544 (gfx display) Get rid of video_frame_info dependency for
blend_begin/blend_end
2020-03-08 22:28:42 +01:00
twinaphex c16568cf32 (gfx drivers display) No more video_frame_info dependency 2020-03-08 22:06:08 +01:00
twinaphex 7a9684b6ea (Gfx display) scissor_begin/scissor_end - drop video_frame_info dependency 2020-03-08 22:06:08 +01:00
Twinaphex 7efe1160e1 Merge pull request #10237 from libretro/revert-10224-metal-entitlements
Revert "(macOS Metal) Add entitlements file"
2020-03-08 21:14:23 +01:00
Twinaphex df0f334b97 Revert "(macOS Metal) Add entitlements file" 2020-03-08 21:14:10 +01:00
Twinaphex e7cbc2cd5c Merge pull request #10236 from libretro/revert-10226-metal-buildfix
Revert "(macOS Metal) Buildfix"
2020-03-08 21:13:53 +01:00
Twinaphex 436fc6706b Revert "(macOS Metal) Buildfix" 2020-03-08 21:13:39 +01:00
twinaphex 591bb36e03 (gfx display) blend_begin/blend_end - no more dependency on
video_frame_info
2020-03-08 21:02:03 +01:00
twinaphex 809e22ec1a (gfx display) set_viewport - no longer dependent on video_frame_info 2020-03-08 20:23:39 +01:00
twinaphex 874510152e (drivers_display) Get rid of video_frame_info argument for
get_default_mvp
2020-03-08 19:59:03 +01:00
twinaphex 3e706fe5b2 (D3D9 renderchain) Take out video_frame_info dependencies 2020-03-08 19:03:57 +01:00
Twinaphex c465fda58a Merge pull request #10234 from MrHuu/patch-4
(3DS) Update Makefile.cores
2020-03-08 18:53:06 +01:00
twinaphex 7c7eeff0fb Move display_server code into retroarch.c 2020-03-08 18:48:15 +01:00
twinaphex 2497ac4584 (video_crt_switch.c) Move static global variables to struct 2020-03-08 18:48:15 +01:00
MrHuu b8b2a2dae4 (3DS) Update Makefile.cores
Fix target for building XMillenium.

'x1_libretro.cia'
2020-03-08 14:01:36 +01:00
Twinaphex 3cb73ccd03 Merge pull request #10231 from altiereslima/master
Update msg_hash_pt_br.h
2020-03-08 01:54:35 +01:00
altiereslima f5c5b872db Update msg_hash_pt_br.h 2020-03-07 21:53:45 -03:00
twinaphex c32cb51755 Cleanups 2020-03-08 01:45:29 +01:00
twinaphex cfa90a4a36 (gfx/drivers_display) cleanups 2020-03-08 01:28:15 +01:00
twinaphex f0bf2df92f Get rid of stale PERF_START/PERF_STOP macros in d3d files 2020-03-07 23:16:25 +01:00
twinaphex 935393b391 Cleanups 2020-03-07 23:12:02 +01:00
twinaphex 212f32e2fd Get rid of the static asserts 2020-03-07 22:54:57 +01:00
twinaphex ead6c2b0dc Cleanups 2020-03-07 22:41:10 +01:00
twinaphex a8a2294f27 (Menu) Cache video_info->width/video_info->height into local
variables
2020-03-07 21:42:49 +01:00
Ömercan Kömür f9c81f358a (Docs) Update README.md latest RetroArch changes (#10092)
* 1.8.4 images && official links
* Update README.md
* Update README.md
* Update README.md
* new location
* images moved to docs folder
* Update README.md
* Update README.md
* Links have changed to markdown format
* Update README.md
* docs: Use https on libretro.com link
Co-Authored-By: Margen67 <[email protected]>
Co-authored-by: Rob Loach <[email protected]>
2020-03-07 15:26:28 -05:00
twinaphex 9b76446b48 Cache video_info->width/video_info->height into local variables
and use them throughout code
2020-03-07 21:18:12 +01:00
twinaphex 9b0ff1fd0d (gfx_display.c) Cleanup 2020-03-07 20:53:39 +01:00
twinaphex 6505080d64 (gfx drivers font) Get rid of as many video_frame_info
dependencies as possible
2020-03-07 20:48:26 +01:00
twinaphex be861cf55d (gfx drivers font) Reduce dependency on video_frame_info 2020-03-07 20:11:39 +01:00
Twinaphex 681443cc45 Merge pull request #10228 from phcoder/audiocb
Return failure on set_audio_callback without threads
2020-03-07 19:58:20 +01:00
twinaphex 4c92d43fe2 (Gfx drivers) More cleanups 2020-03-07 19:54:58 +01:00
twinaphex 9e31c2de34 Remove this for now until this gets reintroduced in some way 2020-03-07 19:34:24 +01:00
twinaphex 83ac24e7f1 (VGA) Move static global variables to struct 2020-03-07 19:33:03 +01:00
twinaphex 9ae4031d13 Cleanups 2020-03-07 19:14:45 +01:00
twinaphex 20366f3d3c (RGUI) Move some static global variables to struct 2020-03-07 18:59:33 +01:00
Vladimir Serbinenko 000eaf712a Return failure on set_audio_callback without threads
Current code returns success even though it's actually a failure
2020-03-07 18:53:06 +01:00
twinaphex 888a4bfe37 Add TODO/FIXME note 2020-03-07 18:51:34 +01:00
twinaphex 4ad03e6553 Buildfix - have to rearrange scan_settings too 2020-03-07 18:45:32 +01:00
twinaphex 5a147fe46f (manual_content_scan.c) Rearrange struct members
(verbosity.c) Add TODO/FIXME
2020-03-07 18:41:39 +01:00
twinaphex 577e254e9e (playlist.c) Rearrange struct members 2020-03-07 18:38:37 +01:00
twinaphex c5fc9cf5ce (X ctx) Move two static global variables to struct 2020-03-07 18:28:53 +01:00
twinaphex 0d543baa4b (Drivers context) Move more static global state to structs 2020-03-07 18:21:49 +01:00
twinaphex 3aa8afd60d (gfx/drivers) Further cleanups 2020-03-07 18:05:50 +01:00
twinaphex 1aa95f6cc4 (GX) Cleanups 2020-03-07 17:53:47 +01:00
twinaphex daea169e5d (GL1) Move static global variables into struct 2020-03-07 17:47:26 +01:00
twinaphex b1337d0a21 (GL) Move shared_context_use into struct 2020-03-07 17:34:35 +01:00
twinaphex 8ec6447b18 (FPGA) Move regOp to struct too 2020-03-07 17:30:56 +01:00
twinaphex 87f34eb12f Add missing header 2020-03-07 17:29:08 +01:00
twinaphex 788ae60d12 (FPGA) Put static global variables into struct 2020-03-07 17:28:42 +01:00
twinaphex 3e35fb8672 (D3D8/D3D9) Move static global to struct 2020-03-07 17:04:06 +01:00
twinaphex d63daacdf9 (GDI) Put gdi_menu_frame into struct 2020-03-07 16:50:25 +01:00
twinaphex efe72dea94 (Caca) Put everything into the struct 2020-03-07 16:42:12 +01:00
twinaphex a7dd320653 (CACA) Cleanups 2020-03-07 16:34:12 +01:00
twinaphex 203b4d7f80 (GDI) Move these variables to struct 2020-03-07 16:31:04 +01:00
twinaphex 2b0164f551 (GDI) Get rid of gdi_video_width static globals 2020-03-07 16:23:34 +01:00
twinaphex 31263970ad Fix include path 2020-03-07 06:50:43 +01:00
twinaphex 7be7815933 (libnx) Buildfix 2020-03-07 06:49:10 +01:00
twinaphex bdc31234d5 (Caca) Move caca global state to struct 2020-03-07 06:03:32 +01:00
twinaphex e8ff0fddca (drivers_font) More untangling of video_info 2020-03-07 05:48:21 +01:00
twinaphex f3c6799b4e (drivers_font) switch_font - cleanups 2020-03-07 05:25:28 +01:00
twinaphex 3e891c6237 (drivers font) Start making the code independent of video_frame_info 2020-03-07 04:45:27 +01:00
twinaphex f588e7f646 Buildfix 2020-03-07 04:22:20 +01:00
twinaphex b4b758466f (gx_display_gl) Simplifications 2020-03-07 01:47:44 +01:00
Twinaphex d4d19555e0 Merge pull request #10226 from CatGreen90/metal-buildfix
(macOS Metal) Buildfix
2020-03-07 01:41:25 +01:00
twinaphex ee9c6ef5ba (Font driver) Get rid of more video_frame_info dependencies 2020-03-07 01:41:00 +01:00
twinaphex 267800abaa (GL) Start reducing dependency on video_frame_info 2020-03-07 00:58:06 +01:00
CatGreen90 5c25cf1ad6 Buildfix 2020-03-06 18:43:41 -05:00
twinaphex 4598f186a8 Get rid of video_frame_info dependency 2020-03-07 00:39:06 +01:00
twinaphex 83b815df17 (XEGL) Buildfix 2020-03-07 00:26:44 +01:00
twinaphex 7f75bcfcb5 (DRM) Buildfix 2020-03-07 00:06:34 +01:00
twinaphex 4f27a740ba Revert "(menu_setting.c) Stop using settings->arrays.menu_driver to"
This reverts commit e75e2ede92.
2020-03-06 23:36:16 +01:00
twinaphex 250468a1ba drm_get_connector - cleanup 2020-03-06 23:18:22 +01:00
twinaphex 304cd05dc6 (X11) Buildfix 2020-03-06 23:00:06 +01:00
twinaphex 4d7b627421 Get rid of video_info dependency for set_video_mode 2020-03-06 22:58:12 +01:00
twinaphex e20151a048 Get rid of video_info struct for swap_buffers too 2020-03-06 22:29:51 +01:00
twinaphex 68664fdf1d update_title - we don't need video_info 2020-03-06 22:11:44 +01:00
twinaphex 8b43e1b4ef Can get rid of IS_SHUTDOWN 2020-03-06 20:32:22 +01:00
twinaphex 4aae293e3d Remove is_shutdown from check_window 2020-03-06 20:29:31 +01:00
Twinaphex 3de0bf27d2 Merge pull request #10224 from CatGreen90/metal-entitlements
(macOS Metal) Add entitlements file
2020-03-06 19:51:40 +01:00
CatGreen90 49e07b3e82 Add entitlements file to project.pbxproj 2020-03-06 13:37:37 -05:00
CatGreen90 c1b5860320 Add entitlements file 2020-03-06 13:15:24 -05:00
Twinaphex 801fa3459c Merge pull request #10221 from jdgleaver/qt-history-thumbs
(QT) Populate 'db_name' and 'crc32' fields when adding entries to content history
2020-03-06 18:54:59 +01:00
twinaphex 05cf2ee8ba (core_info.c) Move globals to single struct 2020-03-06 18:13:36 +01:00
twinaphex ad725cefc2 (discord.c) Move globals to single struct 2020-03-06 17:55:15 +01:00
Twinaphex b99838b06b Merge pull request #10220 from phcoder/3bs-bk
Add bk id for 3ds
2020-03-06 17:52:48 +01:00
twinaphex dcf1138040 (menu_dialog.c) Cleanups 2020-03-06 17:27:42 +01:00
twinaphex 869a8cfcba (menu_dialog.c) Move globals to single struct 2020-03-06 17:19:53 +01:00
twinaphex 26f6e0bccf (ozone_theme.c) Add TODO/FIXME notes 2020-03-06 17:14:41 +01:00
Twinaphex 9a78994fe2 Merge pull request #10223 from jdgleaver/gfx-thumbnail-struct
(gfx_thumbnail) Move globals to a single struct
2020-03-06 17:06:17 +01:00
twinaphex 1f553ac1c4 Get rid of menu_shader_set_modified - instead, add a single
'modified' variable to video_shader struct
2020-03-06 17:05:20 +01:00
twinaphex 814835aa8f (menu_input_bind_dialog.c) Put port into menu input bind dialog
global state
2020-03-06 16:51:39 +01:00
jdgleaver 5b59f0dcda (gfx_thumbnail) Move globals to a single struct 2020-03-06 15:48:07 +00:00
twinaphex 544df2f03c Create global state for gfx_display 2020-03-06 16:33:34 +01:00
twinaphex a6995c0336 (gfx_display.c) Cleanup video coord array 2020-03-06 16:12:24 +01:00
twinaphex e06a6b62c8 (gfx_display.c) Change some of the naming conventions to make it
clear this is no longer code bound to the menu
2020-03-06 16:06:44 +01:00
twinaphex fb04376722 (gfx_display.c) Cleanups 2020-03-06 16:01:45 +01:00
twinaphex d1276258ea Add TODO/FIXME note 2020-03-06 15:55:22 +01:00
Twinaphex ffca8af2c6 Merge pull request #10222 from libretro/refactors
Refactors
2020-03-06 15:49:18 +01:00
twinaphex e678b39de6 Cleanup 2020-03-06 15:40:45 +01:00
twinaphex 9d9c24f94b (gfx_animation.c) Move all global state into the struct 2020-03-06 15:37:16 +01:00
jdgleaver 7873b5f044 (QT) Populate 'db_name' and 'crc32' fields when adding entries to content history 2020-03-06 14:00:04 +00:00
twinaphex 69b84d9d02 Settings cleanups 2020-03-06 04:33:56 +01:00
twinaphex bdc999ca45 Settings cleanups 2020-03-06 03:53:10 +01:00
twinaphex d5985c35ae Settings cleanups 2020-03-06 03:39:33 +01:00
Vladimir Serbinenko ddd12aab36 Add bk id for 3ds 2020-03-06 03:15:13 +01:00
twinaphex 8f65c2cf72 Settings updates 2020-03-06 03:10:55 +01:00
twinaphex f581260daa (video thread wrapper) Add TODO/FIXME notes 2020-03-06 03:05:45 +01:00
twinaphex 62bd4960e1 Fix MSVC include paths 2020-03-06 03:01:47 +01:00
twinaphex bd5f151077 Settings cleanups 2020-03-06 02:52:21 +01:00
twinaphex 70d0c1ce6f Fix IOS build 2020-03-06 02:39:54 +01:00
twinaphex 18a90d81d2 Setting needs to be re-set again 2020-03-06 02:28:37 +01:00
twinaphex 6fd784375a Update 2020-03-06 02:25:28 +01:00
twinaphex 6ad38b4140 Revert "Try to avoid concurrent data access to"
This reverts commit 8fd43c0927.
2020-03-05 22:21:13 +01:00
twinaphex 8fd43c0927 Try to avoid concurrent data access to
video_driver_width/video_driver_height
2020-03-05 22:18:59 +01:00
twinaphex 534f09373e Get rid of video_driver_height dependency 2020-03-05 22:03:58 +01:00
twinaphex 52fae101e8 (GL) Get rid of video_driver_build_info dependency 2020-03-05 21:45:02 +01:00
twinaphex 8d5d91a5a4 (GL1/GLCore) Only video_info dependency now is 'height' 2020-03-05 20:32:58 +01:00
twinaphex e65c816ed0 (GL) Will have to rework set_viewport for the GL drivers -
video drivers should not be calling video_driver_build_info as
they could be on a separate thread
2020-03-05 20:29:51 +01:00
twinaphex a7d679d391 Rename WndProcGL to WndProcWGL 2020-03-05 18:45:41 +01:00
twinaphex c5cb509f1b Change function signatures 2020-03-05 18:32:26 +01:00
Twinaphex c6f3b4a6da Merge pull request #10217 from phcoder/3ds_2
3ds: Add id for bluemsx
2020-03-05 18:31:23 +01:00
twinaphex be39981ba3 (MSVC 2003 Debug) Fix build 2020-03-05 18:29:48 +01:00
Vladimir Serbinenko da1ace4668 3ds: Add id for bluemsx 2020-03-05 17:43:04 +01:00
twinaphex ca4ce9f136 Add this nasty workaround for a suspected MSVC2010 bug 2020-03-05 17:39:43 +01:00
twinaphex dd6cbce0eb Silence these MSVC warnings - warning C4047: '=' : 'unsigned char' differs in levels of indirection from 'char *' 2020-03-05 16:32:15 +01:00
twinaphex e75e2ede92 (menu_setting.c) Stop using settings->arrays.menu_driver to
identify the menu driver
2020-03-05 16:27:35 +01:00
twinaphex 5f8020b32e (libretro-common samples udp test) Rewrite while (1) to for (;;) 2020-03-05 15:52:02 +01:00
twinaphex 860f94e914 (CTR) Stylistic cleanups 2020-03-05 15:50:39 +01:00
twinaphex dc24530382 Cleanups 2020-03-05 15:38:10 +01:00
twinaphex 84f04ae984 (Ozone) Cleanup this confusing code 2020-03-05 15:34:54 +01:00
twinaphex 48ffe8dac3 Do not rely on settings->arrays.menu_driver anymore to check
which menu driver is active
2020-03-05 15:33:18 +01:00
Twinaphex 1c302f26b3 Prevent warning 2020-03-05 15:20:16 +01:00
twinaphex dfe64e3735 Merge branch 'master' of https://github.com/libretro/RetroArch 2020-03-05 15:13:00 +01:00
Twinaphex d7ddeeb40c Update CHANGES.md 2020-03-05 15:12:16 +01:00
Twinaphex 1215f4eb59 Merge pull request #10216 from Tatsuya79/patch-9
don't flush on override/remap messages
2020-03-05 15:11:19 +01:00
Tatsuya79 10ec720686 don't flush on override/remap messages 2020-03-05 14:59:40 +01:00
twinaphex 6d5fc4a36b Buildfix 2020-03-05 14:49:35 +01:00
twinaphex 4933b89736 Buildfix 2020-03-05 14:18:41 +01:00
Twinaphex 3958235c89 Merge pull request #10215 from jdgleaver/widget-osd-fix
Prevent improper display of (old style) OSD text when widgets are enabled
2020-03-05 14:14:25 +01:00
twinaphex d3bc82d2c3 Header cleanups 2020-03-05 14:12:20 +01:00
twinaphex da60c1bb96 Header cleanups 2020-03-05 14:06:04 +01:00
twinaphex 2e034c1574 (gfx/drivers_font) header cleanups 2020-03-05 14:01:34 +01:00
twinaphex 35001e64c2 Header cleanups 2020-03-05 13:53:49 +01:00
twinaphex bdfd6d3175 Cleanups 2020-03-05 13:50:50 +01:00
twinaphex 7841b639ec (Ozone) Header cleanups 2020-03-05 13:35:55 +01:00
jdgleaver 35977efe43 Prevent improper display of (old style) OSD text when widgets are enabled 2020-03-05 12:28:38 +00:00
twinaphex b5c87aaef8 (menu_driver.c) Go through wrapper 2020-03-05 13:26:36 +01:00
twinaphex c66b4249ca More settings cleanups 2020-03-05 13:24:59 +01:00
Twinaphex a451d6927a Merge pull request #10214 from WeedyWeedSmoker/French-translation-update
French translation update
2020-03-05 13:09:49 +01:00
twinaphex 178e4e7d29 (menu_setting.c) Settings cleanups 2020-03-05 13:09:08 +01:00
twinaphex d592959be8 When settings struct gets modified, go through macros to set
the modified flag
2020-03-05 13:00:43 +01:00
twinaphex f87bd0c190 Settings cleanups - make sure things that modify the settings
struct go through the wrapper function so that the 'modified'
bit gets set
2020-03-05 12:22:58 +01:00
Weedy Weed Smoker 3c9664f099 French translation update 2020-03-05 18:11:17 +07:00
twinaphex 43b65be030 Arrange array members based on size 2020-03-05 11:27:25 +01:00
twinaphex 899c21257c (Video layout) move init_string and set_string to stdstring -
rename them - cleanup strcmp usage in video layout and other
code cleanups
2020-03-05 11:19:44 +01:00
twinaphex 1bda81560e Get rid of remnant 2020-03-05 01:04:50 +01:00
twinaphex 09f595e0a8 Settings cleanups 2020-03-05 01:03:55 +01:00
Twinaphex 2333b7f31a Update CHANGES.md 2020-03-05 00:54:34 +01:00
Twinaphex 8f42e5f9a7 Update CHANGES.md 2020-03-05 00:53:54 +01:00
Twinaphex a18b29743e Merge pull request #10212 from Jamiras/cheevos_rp_buffer_overflow
(cheevos) prevent buffer overflow when encountering an unknown macro
2020-03-05 00:53:28 +01:00
Jamiras 8baf0f6340 prevent buffer overflow when encountering an unknown macro 2020-03-04 16:37:59 -07:00
twinaphex a1951b51b6 Cleanup menu_dialog.c 2020-03-05 00:29:48 +01:00
twinaphex 8bad0b6b7e Cleanup some comments 2020-03-04 23:22:51 +01:00
twinaphex a03d4485b0 Cleanup retroarch_validate_per_core_options 2020-03-04 22:41:58 +01:00
twinaphex c0e088ca07 Add TODO/FIXME 2020-03-04 22:30:17 +01:00
Twinaphex 97d8db7aae Remove unused variables 2020-03-04 22:27:37 +01:00
twinaphex bea4f8aad3 (menu_dialog.c) Cleanups 2020-03-04 22:21:18 +01:00
twinaphex 8d3b22091c Get rid of menu_dialog_is_push_pending 2020-03-04 22:12:42 +01:00
Twinaphex cbeb8944eb Merge pull request #10211 from Tatsuya79/patch-8
qt: update osd options
2020-03-04 20:55:07 +01:00
twinaphex dcfa8cc7ba (cheevos) Cleanup 2020-03-04 20:53:23 +01:00
twinaphex 32e4aea068 Start making the other code safe that is dependent on menu driver
ident checking
2020-03-04 20:47:39 +01:00
twinaphex 2f25db03ba (Menu) Fix bug - if you were in XMB and you would set menu driver to
RGUI, you could no longer go to the left or right tab
2020-03-04 19:51:36 +01:00
Tatsuya79 570884dc2b qt: update osd options 2020-03-04 19:36:07 +01:00
twinaphex 70602487be Cleanup 2020-03-04 19:23:18 +01:00
twinaphex 2077ffa2ca Simplify menu_dialog.c 2020-03-04 19:21:24 +01:00
twinaphex 2637bd648b Cleanups 2020-03-04 19:13:30 +01:00
Twinaphex ee4d86237f Update CHANGES.md 2020-03-04 19:06:49 +01:00
Twinaphex 55bc96e00b Merge pull request #10210 from jdgleaver/widget-scaling-windowed
Add independent widget scale override settings for fullscreen/windowed modes
2020-03-04 19:05:40 +01:00
jdgleaver 29f8189d0e Add independent widget scale override settings for fullscreen/windowed modes 2020-03-04 17:10:49 +00:00
Twinaphex e10ae3dca1 Update CHANGES.md 2020-03-04 17:32:38 +01:00
Twinaphex d74398b262 Merge pull request #10198 from altiereslima/master
Update Portuguese Brazilian Translation
2020-03-04 17:29:40 +01:00
Twinaphex a1fe704d22 Merge pull request #10207 from jdgleaver/arcade-dat-filter
(Manual content scanner) Add 'Arcade DAT Filter' Option
2020-03-04 17:29:33 +01:00
Twinaphex b96bdeeed7 Merge pull request #10208 from jdgleaver/drop-down-auto-select
Automatically select currently checked item when opening drop-down lists
2020-03-04 17:29:22 +01:00
Twinaphex 9678b1f9ed Merge pull request #10209 from jdgleaver/rgui-flux
(RGUI) Enable 'Flux' theme
2020-03-04 17:23:13 +01:00
jdgleaver a10c7e3ac2 (RGUI) Enable 'Flux' theme 2020-03-04 14:09:07 +00:00
jdgleaver f7217702e2 Automatically select currently checked item when opening drop-down lists 2020-03-04 13:24:25 +00:00
jdgleaver 9d59fcaded (Manual content scanner) Add 'Arcade DAT Filter' Option 2020-03-04 11:52:20 +00:00
Twinaphex e2378680ef Merge pull request #10202 from WeedyWeedSmoker/French-translation-update
French update — (GLUI) Add navigation bar option
2020-03-03 19:58:43 +01:00
Twinaphex e7d6c63863 Merge pull request #10204 from jdgleaver/volume-widget-fix
Fix volume widget scaling
2020-03-03 19:45:11 +01:00
jdgleaver 9954ae57a9 Fix volume widget scaling 2020-03-03 17:08:37 +00:00
Twinaphex f61621f753 Merge pull request #10203 from jdgleaver/line-ticker-fix
Fix smooth (vertical) line ticker scroll speed
2020-03-03 17:01:36 +01:00
jdgleaver c02f922c10 Fix smooth (vertical) line ticker scroll speed 2020-03-03 14:33:26 +00:00
Weedy Weed Smoker a62ec9217f French update — (GLUI) Add navigation bar option 2020-03-03 21:11:18 +07:00
twinaphex 6232e0abd3 Buildfix 2020-03-03 11:08:16 +01:00
twinaphex d5f7839d12 Cleanups 2020-03-03 10:58:04 +01:00
twinaphex d1ebb58580 Cleanups - change function signature of compile_spirv to const char * 2020-03-03 10:49:47 +01:00
Twinaphex 67d00f4772 Merge pull request #10199 from orbea/glslang
griffin: Fix the glslang path.
2020-03-03 10:34:12 +01:00
orbea 0138398f0c griffin: Fix the glslang path. 2020-03-02 18:13:26 -08:00
altiereslima 040ded3443 Update msg_hash_pt_br.h 2020-03-02 21:38:33 -03:00
altiereslima 09d8cce474 Update msg_hash_pt_br.h 2020-03-02 21:21:07 -03:00
twinaphex 09df109531 Silence warning 2020-03-03 00:53:43 +01:00
twinaphex e895b9f101 (GX) Buildfix 2020-03-03 00:52:48 +01:00
Twinaphex f74126ec77 Merge pull request #10195 from MrHuu/patch-3
(3DS) Remove duplicate ECWolf ID
2020-03-02 23:39:03 +01:00
Twinaphex ae21ebddc8 Merge pull request #10196 from orbea/deps2
Fix the header paths with the system glslang.
2020-03-02 23:38:52 +01:00
orbea def374c2b9 Fix the header paths with the system glslang. 2020-03-02 14:20:18 -08:00
twinaphex f638fff16d (discord.c) Cleanups 2020-03-02 20:59:27 +01:00
twinaphex 4f5b16b245 Fix some TODO/FIXME notes 2020-03-02 20:52:29 +01:00
twinaphex 1167a06a5a Settings Cleanups 2020-03-02 20:34:31 +01:00
twinaphex 80991a00f0 Settings cleanups 2020-03-02 20:24:00 +01:00
twinaphex 0ef1b342e4 settings Cleanups 2020-03-02 20:10:24 +01:00
MrHuu 13ed047e13 (3DS) Remove duplicate ECWolf ID
ECWolf entry has been duplicated.

https://github.com/libretro/RetroArch/commit/0bd8629baa1b222838fb8363a218ab3352b53ddd#diff-780fd17e8e9be633670c6de3b589c992

https://github.com/libretro/RetroArch/commit/8dc2ea114f620ab7dd9e90e541317257fc4cb6f5#diff-780fd17e8e9be633670c6de3b589c992
2020-03-02 18:42:35 +01:00
Twinaphex 50c3673dfc Update CHANGES.md 2020-03-02 18:15:41 +01:00
Twinaphex 670cbc8903 Merge pull request #10191 from Jamiras/cheevos_lboard_retry
(cheevos) add delayed retries to leaderboard submissions
2020-03-02 18:15:26 +01:00
Twinaphex 96f2f24ce3 Update CHANGES.md 2020-03-02 18:14:38 +01:00
Twinaphex d4c9768138 Merge pull request #10175 from Jamiras/multi_popup
(cheevos) queue multiple popups
2020-03-02 18:13:33 +01:00
Twinaphex 254dacb66b Merge pull request #10194 from jdgleaver/glui-hide-nav-bar
(GLUI) Add option to remove navigation bar
2020-03-02 18:12:20 +01:00
Twinaphex 92bd0fc47a Merge pull request #10193 from phcoder/3ds
3ds: Add ids for ecwolf and xmillenium
2020-03-02 18:12:00 +01:00
jdgleaver 4d3507097a (GLUI) Add option to remove navigation bar 2020-03-02 16:13:53 +00:00
Vladimir Serbinenko 8dc2ea114f 3ds: Add ids for ecwolf and xmillenium
I don't have banners or icons though
2020-03-02 14:11:59 +01:00
Jamiras db5358f70f add delay retries to leaderboard submits 2020-03-01 17:19:50 -07:00
Twinaphex ccb8b98008 Update msg_hash_fr.h 2020-03-01 22:06:44 +01:00
Twinaphex 795be81f4a Merge pull request #10189 from WeedyWeedSmoker/French-update
French update — XMB themes added
2020-03-01 22:06:12 +01:00
twinaphex cc50cefd30 Cleanups 2020-03-01 21:58:09 +01:00
Twinaphex 5b2ed8a08d Update msg_hash_us.h 2020-03-01 20:37:49 +01:00
Twinaphex adbd442448 Merge pull request #10190 from libretro/revert-10188-turkish-language
Revert "Turkish Language updates"
2020-03-01 20:36:35 +01:00
Twinaphex f642066f05 Revert "Turkish Language updates" 2020-03-01 20:36:24 +01:00
Weedy Weed Smoker b1d0fec02e French update — XMB themes added 2020-03-02 01:13:51 +07:00
Twinaphex a4ca31e197 Merge pull request #10188 from fpscan/turkish-language
Turkish Language updates
2020-03-01 18:57:13 +01:00
Ömercan Kömür 40b17e4875 Turkish Language updates 2020-03-01 20:56:25 +03:00
twinaphex b99501d5d7 Simplify netplay_driver_ctl 2020-03-01 18:22:58 +01:00
twinaphex 0c1568c4ab Merge netplay_frontend.c into retroarch.c -
This should be the last file we have to roll into retroarch.c
2020-03-01 18:02:55 +01:00
twinaphex 45b02df36b Put HAVE_NETWORKING ifdefs around this code 2020-03-01 17:41:46 +01:00
twinaphex 182afe9561 Style nit 2020-03-01 17:30:42 +01:00
Twinaphex 38bbb2b3e1 Merge pull request #10183 from MrHuu/patch-2
(3DS) Update Makefile.cores
2020-03-01 16:28:35 +01:00
twinaphex 177d2a5903 (netplay_frontend.c) Settings cleanups 2020-03-01 16:24:06 +01:00
twinaphex 29d954bab2 Cleanups 2020-03-01 16:08:49 +01:00
twinaphex 69ffcf5648 (netplay_frontend.c) Simplify code 2020-03-01 15:58:17 +01:00
twinaphex 360fdfedbc (netplay_frontend.c) Cleanups 2020-03-01 15:33:17 +01:00
Twinaphex cd495a09f1 Merge pull request #10186 from JKoppel93/master
New XMB themes
2020-03-01 14:34:45 +01:00
JKoppel93 4914a41c2c minor tweaking 2020-03-01 04:58:59 -05:00
JKoppel93 105bfcafe5 XMB themes added
XMB themes added
2020-03-01 04:39:45 -05:00
MrHuu 0bd8629baa (3DS) Update Makefile.cores
Add id's for ECWolf / SMSplus / VitaQuake2 cores.
2020-02-29 22:21:01 +01:00
twinaphex 81ab6d575a Cleanups 2020-02-29 18:06:06 +01:00
Jamiras daad8bcca0 queue multiple popups 2020-02-29 09:30:22 -07:00
twinaphex 0524d4ae49 (retroarch.c) Settings cleanups 2020-02-29 17:18:25 +01:00
twinaphex 63b7d74272 Cut down get_time_usec calls - pass current_time around instead 2020-02-29 16:52:56 +01:00
twinaphex 42d3dd68ed (menu_cbs_deferred_push) Cleanups 2020-02-29 16:38:53 +01:00
twinaphex ca6b07cc47 Get rid of hash 2020-02-29 15:05:01 +01:00
twinaphex 22ada33990 Cleanups - get rid of label hash 2020-02-29 15:01:10 +01:00
twinaphex c4583a62fb Cleanups 2020-02-29 14:37:52 +01:00
twinaphex a326be71f3 Simplify remap_load_file 2020-02-29 14:33:53 +01:00
twinaphex 212318f95b Cleanups 2020-02-29 14:16:58 +01:00
twinaphex 8ce4ed7164 Cleanups 2020-02-29 12:55:33 +01:00
twinaphex 9dcc941ec5 Reduce get_time_usec calls 2020-02-29 12:51:42 +01:00
twinaphex 6802fa1324 Buildfix - add missing HAVE_CHEEVOS ifdef 2020-02-29 12:28:23 +01:00
Twinaphex 341cd0da36 Update CHANGES.md 2020-02-29 08:46:48 +01:00
Twinaphex 8476fd0559 Merge pull request #10177 from altiereslima/master
LOCALIZATION: Update Portuguese Brazilian translation
2020-02-29 08:46:26 +01:00
Twinaphex 6c8d87ac04 Update CHANGES.md 2020-02-29 08:17:43 +01:00
Twinaphex a438d4f4da Update CHANGES.md 2020-02-29 08:15:25 +01:00
Twinaphex b03f1d4c7f Update CHANGES.md 2020-02-29 08:14:46 +01:00
Twinaphex a4bad00133 Merge pull request #10180 from justinweiss/keep-bottom-screen-hidden-on-wake
[3DS] Keep the bottom screen hidden on sleep/wakeup
2020-02-29 08:14:13 +01:00
twinaphex b1fa971d35 Do check outside of rarch_perf_log 2020-02-29 08:05:49 +01:00
Justin Weiss a96be2cdce [3DS] Keep the bottom screen hidden on sleep/wakeup
When the 3DS wakes back up after being closed, the bottom screen needs
to be reinitialized. Adding the condition here will cause the screen
to be turned on or off based on the state of
ctr_bottom_screen_enabled, as you'd expect.
2020-02-28 23:01:22 -08:00
twinaphex 160d90f22a (performance counters) Get rid of other duplicate functions 2020-02-29 08:00:38 +01:00
twinaphex 3a1c59d461 rarch_timer_begin_new_time is an unnecessary function 2020-02-29 07:53:42 +01:00
twinaphex 7d908da30f Address TODO/FIXME 2020-02-29 07:45:17 +01:00
twinaphex add0cedc48 * Reduce the amount of cpu_features_get_time_usec calls
* Put code behind menu ifdefs
2020-02-29 07:41:05 +01:00
Twinaphex fe51b44d98 Merge pull request #10174 from Alcaro/patch-2
Fix tautological comparison
2020-02-29 06:35:56 +01:00
Twinaphex 7effd2171c Merge pull request #10179 from Jamiras/cheevos_measured
(cheevos) display measured progress on locked achievements
2020-02-29 06:34:29 +01:00
Jamiras 1557b15c40 display measured progress on locked achievements 2020-02-28 21:23:04 -07:00
altiereslima 897809cc75 LOCALIZATION: Update Portuguese Brazilian translation 2020-02-28 22:14:37 -03:00
hizzlekizzle ad03277e3c Merge pull request #10173 from Alcaro/patch-1
Avoid overflow when calculating multiplying performance counter
2020-02-28 18:30:13 -06:00
Alcaro ad523ebae0 Fix tautological comparison 2020-02-28 18:46:50 +01:00
Alcaro 472fe9a991 Avoid overflow when calculating multiplying performance counter 2020-02-28 18:07:00 +01:00
Twinaphex a10db7c280 Merge pull request #10171 from gordon-fish/patch-1
Fix to correctly set header.metadata_offset
2020-02-28 16:59:49 +01:00
gordon-fish 71c12aab32 Fix to correctly set header.metadata_offset
This fix will correctly set ``header.metadata_offset`` in ``libretrodb_create`` instead of always setting it to zero.

The main problem was using ``filestream_seek`` when ``filestream_tell`` should be used to get the actual offset.

See issue #10140
2020-02-28 07:46:07 -08:00
Twinaphex 385b0b71e7 Update CHANGES.md 2020-02-28 14:23:04 +01:00
Twinaphex 0913849b87 Update CHANGES.md 2020-02-28 14:22:17 +01:00
Twinaphex d67666f9fa Merge pull request #10170 from jdgleaver/core-list-hang-fix
Core updater tasks: Prevent hang when fetching core list if HTTP transfer fails
2020-02-28 14:21:18 +01:00
jdgleaver 5128237228 Core updater tasks: Prevent hang when fetching core list if HTTP transfer fails 2020-02-28 11:57:13 +00:00
twinaphex 5bb85ee5d5 (GX) Buildfix 2020-02-27 23:32:18 +01:00
Twinaphex 227a4585af Merge pull request #10166 from natinusala/odroidgo2-skeleton
ODROID-GO Advance rotation support
2020-02-27 23:30:00 +01:00
Twinaphex 172f49437f Merge pull request #10165 from jdgleaver/ozone-entry-height-fix
(Ozone) Fix entry height calculation
2020-02-27 23:29:05 +01:00
natinusala deb1151f04 odroidgo2: add zlib as dependency of libpng 2020-02-27 19:55:04 +01:00
natinusala b6a79462d5 odroidgo2: add libpng as libgo2 dependency 2020-02-27 19:45:25 +01:00
jdgleaver 4c9e2d98c1 (Ozone) Fix entry height calculation 2020-02-27 17:13:20 +00:00
twinaphex 55a1837494 menu_input_driver_toggle_on - turn function static 2020-02-27 15:34:47 +01:00
twinaphex 74547c0a81 (netplay) Cleanups 2020-02-27 12:02:55 +01:00
natinusala f00fb6d1ea odroidgo2: patched DRM driver 2020-02-27 10:22:51 +01:00
natinusala a75059f94b odroidgo2: add skeleton 2020-02-27 10:22:51 +01:00
twinaphex 765f8d4c8c Cleanup menu_keys_pressed 2020-02-27 10:03:21 +01:00
twinaphex 602623dc50 Remove RARCH_CTL_CORE_OPTIONS_INTL_INIT 2020-02-27 08:51:03 +01:00
twinaphex fb223ac377 Refactor input_keys_pressed 2020-02-27 08:08:38 +01:00
twinaphex 26b3ccf2e5 Don't pass joypad_info by value 2020-02-27 07:33:14 +01:00
twinaphex c2ed8783ee (pkg) Remove font / xui files 2020-02-27 01:34:42 +01:00
twinaphex 94cefaf1c5 Remove xui/fonts 2020-02-27 01:33:26 +01:00
twinaphex cd29beb00d Remove MENU_XUI 2020-02-26 22:05:11 +01:00
twinaphex 0ae51061f6 Fix build 2020-02-26 22:00:59 +01:00
twinaphex a6c9bb95f0 Remove HAVE_XUI 2020-02-26 19:09:00 +01:00
twinaphex fd7bc416ce Get rid of header include 2020-02-26 09:24:20 +01:00
twinaphex f5bc061b26 Merge menu_generic.c into menu_driver.c 2020-02-26 09:22:48 +01:00
twinaphex 3a76aac226 Get rid of unneeded header include 2020-02-26 08:25:56 +01:00
twinaphex b23863ae85 Reduce more cpu_features_get_time_usec calls 2020-02-26 08:17:51 +01:00
twinaphex d19dd12b30 Start calling cpu_features_get_time_usec less per frame iteration 2020-02-26 08:09:20 +01:00
twinaphex 795801b1f5 Reduce amount of calls to input_event_get_osk_ptr 2020-02-26 05:58:11 +01:00
twinaphex 01a65fa5ba Rename menu_osk.c to input_osk.c 2020-02-26 05:49:23 +01:00
Twinaphex e43f34376d Merge pull request #10163 from Tatsuya79/patch-7
qt: move gfx widget option to OSD
2020-02-25 20:16:12 +01:00
Tatsuya79 58fc9ce9ca Update ui.cpp 2020-02-25 19:20:27 +01:00
Tatsuya79 dc5afdccf9 qt: move gfx widget option to OSD 2020-02-25 19:18:57 +01:00
twinaphex a7e4bfe479 Cleanups 2020-02-25 08:11:45 +01:00
Twinaphex 010b2cb109 Merge pull request #10161 from altiereslima/master
(Translation) Update Portuguese Brazilian
2020-02-25 07:45:50 +01:00
Twinaphex 283c95399c Merge pull request #10162 from WeedyWeedSmoker/French-update
French update
2020-02-25 07:45:29 +01:00
Weedy Weed Smoker dd07038e14 (Ozone) Add 'Nord' and 'Gruvbox Dark' themes 2020-02-25 13:25:20 +07:00
twinaphex a5a0437bda (Ozone) Implement menu sublabels 2020-02-25 04:10:05 +01:00
altiereslima 314de68297 (Translation) Update Portuguese Brazilian 2020-02-24 21:22:23 -03:00
Twinaphex bdc159f0b4 Update CHANGES.md 2020-02-24 20:34:45 +01:00
Twinaphex 2d99847529 Merge pull request #10160 from jdgleaver/ozone-themes
(Ozone) Add 'Nord' and 'Gruvbox Dark' themes
2020-02-24 20:34:06 +01:00
jdgleaver 02a6243718 (Ozone) Add 'Nord' and 'Gruvbox Dark' themes 2020-02-24 17:53:07 +00:00
Twinaphex d7e6152d45 Merge pull request #10159 from jdgleaver/playlist-sublabel-fix
Fix playlist sublabels
2020-02-24 11:36:01 +01:00
jdgleaver 27c5ffeb76 Fix playlist sublabels 2020-02-24 10:22:44 +00:00
Twinaphex 0c17faa78f Merge pull request #10081 from felinben/patch
Add French comment
2020-02-24 10:11:08 +01:00
Twinaphex d4e9abe363 Merge pull request #10154 from Jamiras/cheevos_badges
(cheevos) simplify badge handling; remember enablement if XMB not available
2020-02-24 00:59:25 +01:00
Jamiras 5ecc426741 simplify badge handling; remember enablement if XMB not available 2020-02-23 15:55:41 -07:00
Twinaphex f671c37a0d Update CHANGES.md 2020-02-23 19:16:14 +01:00
Twinaphex 1933bc1eaf Merge pull request #10153 from Jamiras/cheevos_user_change
(cheevos) reset token when username or password changes
2020-02-23 19:15:13 +01:00
altiereslima c356e71b0a (Translation) Update Portuguese Brazilian (#10127)
* Update Portuguese Brazilian translation

* updates

* Update msg_hash_pt_br.h

* Update msg_hash_pt_br.h

* update

* finish
2020-02-23 12:26:50 -05:00
Rob Loach a3eef7442f (Translation) Update retroarch.desktop for French 2020-02-23 12:24:11 -05:00
Rob Loach d3419e7490 Merge pull request #10152 from natinusala/connmanctl-fix
connmanctl: fix build
2020-02-23 12:22:39 -05:00
Jamiras 4e27394b87 reset token when username or password changes 2020-02-23 08:10:26 -07:00
natinusala f21412ab59 connmanctl: fix build 2020-02-23 12:02:11 +01:00
twinaphex b89663e213 Inline file_list_get_userdata_at_offset 2020-02-23 11:13:48 +01:00
twinaphex 8ae08cf23d (Gfx widgets) Put AI service overlay code behind HAVE_TRANSLATE
ifdefs
2020-02-23 11:03:38 +01:00
twinaphex 6c82a3802e Remove more hashes 2020-02-23 10:20:29 +01:00
Rob Loach 387cb8bf8b Merge pull request #10132 from WeedyWeedSmoker/French-translation-update
(Translation) Update French translation
2020-02-23 03:30:06 -05:00
twinaphex 19f9ffc99f Get rid of more hashes 2020-02-23 09:22:30 +01:00
twinaphex 65d2c53bfe (Menu) Start getting rid of label hashes 2020-02-23 08:06:42 +01:00
twinaphex 976b659e2b (Ozone/MaterialUI) Settings cleanups 2020-02-23 07:53:19 +01:00
twinaphex 3b207990ce Cleanups 2020-02-23 06:34:41 +01:00
twinaphex 0ec3a8a449 (Input) Settings cleanups 2020-02-23 06:05:23 +01:00
twinaphex 8b11d9f039 Cleanups 2020-02-23 05:55:15 +01:00
twinaphex 3be4eac555 (msg_hash) Settings cleanups 2020-02-23 05:51:45 +01:00
twinaphex a2a5ca0d01 Move this struct over to rhash.c 2020-02-23 05:22:11 +01:00
twinaphex 79536a4767 (Darwin) Remove hashing 2020-02-23 04:58:08 +01:00
twinaphex 8fe2fe7b62 (UNIX) Remove hashing dependency 2020-02-23 04:52:27 +01:00
Twinaphex 41230c05b1 Merge pull request #10150 from valadaa48/battery_match
Add match on "battery" instead of just "BAT" to appease some unices
2020-02-23 04:41:56 +01:00
valadaa48 2dbb13d8dd Add match on "battery" instead of just "BAT" to appease some unices
- required for odroid go advance
2020-02-22 22:16:57 -05:00
twinaphex 8d6c7d6753 Cleanup 2020-02-23 00:02:56 +01:00
Twinaphex 8525b9e9cb Merge pull request #10143 from Jamiras/task_schedule
(cheevos) delay subsequent unlock attempts on failure
2020-02-22 21:59:43 +01:00
Jamiras c8c05306a3 add comments 2020-02-22 13:01:07 -07:00
Twinaphex 0f06e44b90 Merge pull request #10144 from Tatsuya79/patch-6
qt: fix ui "views" menu for drivers without kiosk mode
2020-02-22 18:29:13 +01:00
Tatsuya79 cb3d4ac722 qt: fix ui "views" menu for drivers without kiosk mode 2020-02-22 18:21:15 +01:00
Jamiras e00449c410 delay subsequent unlock attempts on failure 2020-02-22 07:11:01 -07:00
twinaphex 3ee89a16ef (Menu) Settings cleanups 2020-02-22 07:21:35 +01:00
twinaphex 4f50b2c698 Bump up to 1.8.5 2020-02-22 00:25:53 +01:00
twinaphex 428b3a8cc0 (Settings) Cleanups 2020-02-22 00:19:05 +01:00
twinaphex d8b3132a3c Cleanups 2020-02-21 23:57:42 +01:00
Twinaphex c2ca8b3a2d Update CHANGES.md 2020-02-21 21:57:13 +01:00
twinaphex a4c19457ce Found one instance where userdata was not implicitly set to NULL 2020-02-21 20:48:11 +01:00
Twinaphex 22dda9f398 Silence warnings 2020-02-21 20:40:23 +01:00
twinaphex d3e62c62f2 Make Ozone the new default for platforms that previously defaulted
to XMB
2020-02-21 20:19:13 +01:00
Twinaphex cee58b354d Merge pull request #10139 from jdgleaver/ozone-pointer
(Ozone) Add rudimentary pointer support
2020-02-21 19:46:30 +01:00
jdgleaver 92f93e9e4f (Ozone) Fix touchscreen sidebar scroll acceleration 2020-02-21 17:38:45 +00:00
jdgleaver d79b6e8574 (Ozone) Add rudimentary pointer support 2020-02-21 14:00:38 +00:00
twinaphex 1b0ab1c05f Cleanups 2020-02-21 07:34:53 +01:00
twinaphex 391a02fe45 Cleanups 2020-02-21 06:40:00 +01:00
twinaphex 2ec6d189ff Cleanups 2020-02-21 06:23:49 +01:00
twinaphex 903668aecf CXX_BUILD buildfix 2020-02-21 05:00:08 +01:00
twinaphex 47dc7e3db8 Cleanups 2020-02-21 04:01:21 +01:00
twinaphex 23d521935f Cleanups 2020-02-21 03:31:04 +01:00
twinaphex 6b7f794494 Cleanups 2020-02-21 03:28:23 +01:00
twinaphex 573fb445c4 CXX_BUILD buildfix 2020-02-20 01:06:00 +01:00
twinaphex 90ad9c567b CXX_BUILD buildfix 2020-02-19 23:50:26 +01:00
twinaphex b1db052bea (XMB) Cleanups 2020-02-19 23:30:08 +01:00
twinaphex c182916554 (Cheevos) Cleanups 2020-02-19 22:20:24 +01:00
twinaphex 068529929b Cleanups 2020-02-19 22:06:21 +01:00
twinaphex b3d3e5dd06 Cleanups 2020-02-19 21:05:38 +01:00
twinaphex 85c672a0f6 Settings pointer cleanups 2020-02-19 20:57:02 +01:00
twinaphex ab94af68c1 Cut down on settings access 2020-02-19 19:31:00 +01:00
twinaphex 682462fb20 Cleanups 2020-02-19 19:23:10 +01:00
twinaphex 75eef8a2c9 (drivers shader slang) Put logging behind DEBUG ifdef - and
turn some conditionals into a switch
2020-02-19 16:25:41 +01:00
Weedy Weed Smoker 0cb791ad5b Rename Menu Widgets to Graphics Widgets 2020-02-19 13:51:37 +07:00
twinaphex c6bd3da1c3 (drivers_shader) Cleanups 2020-02-19 03:23:30 +01:00
twinaphex 5280286415 (shader_vulkan.cpp) Cleanup 2020-02-19 03:11:45 +01:00
twinaphex 08f26eb097 (MSVC 2010) Add HAVE_GFX_WIDGETS 2020-02-19 02:59:19 +01:00
twinaphex d36941b81d (CTR) Buildfix 2020-02-19 00:23:45 +01:00
twinaphex 3ea96c2587 (GX) Buildfix 2020-02-19 00:23:45 +01:00
Twinaphex 51b9854a19 Merge pull request #10134 from jdgleaver/ozone-bg-opacity
(Ozone) Enable configuration of background opacity when content is running
2020-02-18 19:52:59 +01:00
jdgleaver 72b2da20e8 (Ozone) Enable configuration of background opacity when content is running 2020-02-18 17:12:39 +00:00
twinaphex 7f2d8742c2 Cleanups 2020-02-18 15:30:47 +01:00
twinaphex 3a94c52426 (gfx drivers) Start reducing settings pointer usage 2020-02-18 14:51:40 +01:00
twinaphex 9af520fa54 Cleanup 2020-02-18 13:40:01 +01:00
twinaphex c1a5bf944a Cleanups 2020-02-18 13:26:43 +01:00
twinaphex d7113372cb Rename Menu Widgets to Graphics Widgets; move setting to
Onscreen Notifications
2020-02-18 13:22:35 +01:00
twinaphex 46cacfc60e (gfx_display.c) Cleanups 2020-02-18 13:04:12 +01:00
Weedy Weed Smoker d3aae85014 French translation update
thanks to crowdin, I could find the last strings I forgot to translate!
2020-02-18 12:59:06 +07:00
twinaphex 2ba45d0acb (GL1) Fixes crash on MSVC2005 2020-02-18 05:51:23 +01:00
twinaphex cf8f2ac56c (menu_filebrowser.c) No more dependencies on settings_t 2020-02-18 05:43:13 +01:00
twinaphex 2ed50d2579 (MSVC 2010) x64 - update 2020-02-18 05:15:11 +01:00
twinaphex 6d09d29093 Be more safe with these functions - this was causing crashes on
MSVC 2005
2020-02-18 04:18:31 +01:00
twinaphex bd63d28b0f (MSVC) Add HAVE_OZONE 2020-02-18 02:55:33 +01:00
twinaphex 1a55b37046 (MSVC 2005) Add HAVE_OZONE 2020-02-18 02:53:28 +01:00
twinaphex 63a0f7a637 Get rid of fill_pathname_slash here 2020-02-18 02:42:41 +01:00
twinaphex 49b908e3c6 (MSVC2008) Add HAVE_OZONE 2020-02-18 02:35:52 +01:00
twinaphex 6609a749a3 (MSVC 2008) Add HAVE_GFX_WIDGETS 2020-02-18 02:15:41 +01:00
twinaphex 4224900f47 Fix memory leak 2020-02-18 02:02:22 +01:00
twinaphex 71d5f120a9 (Apple PPC) Add HAVE_GFX_WIDGETS 2020-02-17 23:03:10 +01:00
twinaphex 5684c72e35 (Ozone) Add two TODO/FIXMEs 2020-02-17 22:45:13 +01:00
twinaphex 53356fe61a Get rid of menu_texture_item 2020-02-17 22:28:21 +01:00
twinaphex 898044933a (MSVC 2005) Add HAVE_GFX_WIDGETS 2020-02-17 22:23:33 +01:00
twinaphex f4dd0f27ed MSVC2010 buildfix 2020-02-17 22:19:22 +01:00
twinaphex e3af337a78 Buildfix 2020-02-17 21:48:15 +01:00
twinaphex ebc335319e Cleanups 2020-02-17 21:47:09 +01:00
twinaphex 7c7d0f596a HAVE_MENU_WIDGETS now decoupled from HAVE_MENU 2020-02-17 21:28:42 +01:00
twinaphex 561012c3ba (gfx_widgets) Set all values to initial state 2020-02-17 20:49:56 +01:00
Twinaphex 7a37476b9a Update CHANGES.md 2020-02-17 16:44:33 +01:00
Twinaphex 65564b415d Merge pull request #10130 from ToKe79/lakka_ssid_length
connmanctl: display more chars from SSID
2020-02-17 16:44:05 +01:00
Twinaphex 25d428fde0 Update CHANGES.md 2020-02-17 16:43:45 +01:00
Twinaphex f7675bb48a Merge pull request #10131 from jdgleaver/double-input-fix
Prevent double input when using 'return' key (hardware) to close on-screen keyboard
2020-02-17 16:43:26 +01:00
twinaphex 10d09eaed3 gfx_widgets_init - move content of error path to retroarch.c 2020-02-17 16:42:17 +01:00
twinaphex 4d148ff078 Roll gfx_widgets_context_destroy into gfx_widgets_free 2020-02-17 16:35:19 +01:00
jdgleaver b10d4e9412 Prevent double input when using 'return' key (hardware) to close on-screen keyboard 2020-02-17 15:13:18 +00:00
twinaphex 166c0c2311 Cleanups 2020-02-17 16:07:37 +01:00
Tomas Kelemen (vudiq) d5cd51644e connmanctl: display more chars from SSID 2020-02-17 15:57:16 +01:00
Twinaphex 903648f1fe Update Makefile.cores 2020-02-17 14:16:03 +01:00
Twinaphex 3cc0c5a60a Merge pull request #10129 from jdgleaver/dos2unix
gfx_display.h/c: Fix line endings
2020-02-17 13:06:15 +01:00
Twinaphex 97627559a6 Merge pull request #10128 from jdgleaver/scaling-fix
Ensure menu ID is set before initialising menu driver
2020-02-17 13:06:04 +01:00
jdgleaver e497b8f534 gfx_display.h/c: Fix line endings 2020-02-17 12:01:14 +00:00
jdgleaver 12cd9e5c88 Ensure menu ID is set before initialising menu driver (fixes first-frame scaling bug) 2020-02-17 11:51:01 +00:00
twinaphex cec672a71d Buildfix 2020-02-17 12:27:08 +01:00
twinaphex cccf8a9870 Move hex32_to_rgba_normalized to materialui.c 2020-02-17 04:01:58 +01:00
twinaphex a0f3010159 Cleanup 2020-02-17 03:59:12 +01:00
hizzlekizzle 4e5509e206 Merge pull request #10123 from WeedyWeedSmoker/French-translation-update
French translation update
2020-02-16 20:37:42 -06:00
twinaphex c855eb38d8 Move enums to related header 2020-02-17 03:06:07 +01:00
twinaphex a59eec01e1 Cleanups 2020-02-17 02:40:37 +01:00
twinaphex 6e880ef686 osk_dark no longer a global 2020-02-17 02:31:14 +01:00
twinaphex 8980d92efa Cleanup 2020-02-17 02:08:40 +01:00
twinaphex 43561dc389 (Xvideo) Buildfix 2020-02-17 01:54:25 +01:00
twinaphex b00bf17153 Move menu_widgets to gfx/ and call it gfx_widgets 2020-02-17 01:54:07 +01:00
twinaphex b229f267e4 Rename menu_widgets to gfx_widgets 2020-02-17 01:43:40 +01:00
twinaphex 6b82089d6c Move menu_display code to gfx_display 2020-02-17 00:42:49 +01:00
twinaphex 550e8fff6b Move menu DPI scaling code to menu_widgets 2020-02-17 00:17:36 +01:00
twinaphex 633277ddd0 Refactor menu_widgets_iterate 2020-02-16 23:38:24 +01:00
twinaphex 5d5200d20b (Menu widgets) Refactor 2020-02-16 23:34:49 +01:00
Twinaphex 31a7e5628c Update CHANGES.md 2020-02-16 22:27:28 +01:00
Twinaphex 481e970424 Merge pull request #10126 from hcvcastro/master
avoid crash when running retroarch
2020-02-16 22:27:01 +01:00
twinaphex ec302bc4fc video_set_nonblock_state - remove settings dependency 2020-02-16 22:26:07 +01:00
twinaphex 47af95469a (font_driver.c) Remove configuration.h dependency 2020-02-16 21:59:03 +01:00
Henry Castro 4ac25e09ce avoid crash when running retroarch
Avoid NULL deref when running in GNU/Linux Debian
2020-02-16 16:52:07 -04:00
twinaphex 4493ece2f2 Cleanup 2020-02-16 20:27:22 +01:00
twinaphex 26dea23b5d Add DEBUG ifdefs 2020-02-16 20:21:54 +01:00
twinaphex 1cea12bf57 Cleanups 2020-02-16 20:03:57 +01:00
twinaphex 05dd4bbb51 No longer menu-specific 2020-02-16 19:49:02 +01:00
twinaphex 09da302b8d Try to make it more portable for BSD 2020-02-16 19:37:59 +01:00
twinaphex 95286408ed Buildfixes 2020-02-16 18:45:28 +01:00
twinaphex 26543a3636 Cleanups 2020-02-16 18:29:34 +01:00
twinaphex 7bf5da8de4 (gfx_animation.c) Remove remaining menu namespace conventions 2020-02-16 18:24:45 +01:00
twinaphex e7149effa7 (Menu widgets) Add HAVE_CHEEVOS ifdefs
(retroarch.c) command_reply is now still used regardless of HAVE_CHEEVOS
being defined or not
2020-02-16 18:11:50 +01:00
twinaphex 808a54e217 Cleanups 2020-02-16 17:40:06 +01:00
twinaphex bb2251a7b2 (display server) Cleanup 2020-02-16 17:34:26 +01:00
twinaphex 2f525187a1 (gfx_display.c) Get rid of more header includes 2020-02-16 17:18:13 +01:00
twinaphex 13ea2ceaa6 Get rid of some header includes 2020-02-16 17:09:52 +01:00
twinaphex 5c15b306d6 Header include cleanups 2020-02-16 16:58:38 +01:00
twinaphex b7ced5763b Get rid of header include 2020-02-16 16:54:58 +01:00
twinaphex f74225721d menu_thumbnail and menu_thumbnail_path now decoupled from menu
system
2020-02-16 16:38:17 +01:00
twinaphex f0bdb61fd8 gfx_display and gfx_animation no longer tied to HAVE_MENU 2020-02-16 15:51:58 +01:00
twinaphex 9a6ab81739 MOve gfx_display and gfx_animation to gfx/ 2020-02-16 15:26:58 +01:00
twinaphex c71469c715 Rename menu_display to gfx_display 2020-02-16 15:10:07 +01:00
twinaphex e6d64f72ec Start preparing menu_widgets.c to become independent of menu code 2020-02-16 14:17:33 +01:00
twinaphex fc9edda0ef Turn menu_animation.c into gfx_animation.c 2020-02-16 14:01:34 +01:00
twinaphex 084bad5aaa Every menu driver can set its own callback 2020-02-16 13:40:18 +01:00
twinaphex 98227a886b menu_animation_update_time - cleanups 2020-02-16 02:16:27 +01:00
twinaphex 3a1abbed4c Cleanup 2020-02-15 17:28:29 +01:00
twinaphex 45a012eb71 Cleanups 2020-02-15 17:25:20 +01:00
twinaphex 980058ea4c Cleanup dir_init_shader 2020-02-15 15:43:26 +01:00
Twinaphex 8e59430f93 Merge pull request #10122 from Jamiras/rcheevos_rp
default rich presence on; better handling of special characters
2020-02-15 13:23:13 +01:00
Weedy Weed Smoker 4f91a12f73 French translation update 2020-02-15 13:37:33 +07:00
Jamiras 4b8f3ec5b5 default rich presence on; better handling of special characters 2020-02-14 20:12:49 -07:00
Twinaphex bba8d9cd30 Update CHANGES.md 2020-02-15 02:43:54 +01:00
Twinaphex 46d876d607 Merge pull request #10121 from WeedyWeedSmoker/French-translation-update
French translation update
2020-02-15 02:43:12 +01:00
Twinaphex 205eb10f43 Merge pull request #9971 from sinusinu/master
Update korean translation
2020-02-15 02:42:37 +01:00
twinaphex 01e01f480e Add crowdin.yaml 2020-02-15 02:41:29 +01:00
Twinaphex 1c031466fc Merge pull request #9513 from guoyunhe/translation-update-script
Add translation update scripts to integrate with localization platforms
2020-02-15 02:39:31 +01:00
twinaphex ff96d914f4 Use M_PI from retro_math.h 2020-02-15 01:54:44 +01:00
Weedy Weed Smoker 278498da48 Latest additions to the french translation 2020-02-15 04:10:16 +07:00
Twinaphex b030f044f4 Update CHANGES.md 2020-02-14 22:05:29 +01:00
twinaphex 1d86fc07b1 Buildfix 2020-02-14 22:01:28 +01:00
twinaphex 5d56d09b8d Merge branch 'celerizer-test' 2020-02-14 21:56:31 +01:00
twinaphex 386199e422 Merge branch 'master' of git://github.com/celerizer/RetroArch into celerizer-test 2020-02-14 21:56:14 +01:00
Twinaphex 851ee94c5c Merge pull request #10120 from libretro/celerizer-master
Cleanups
2020-02-14 21:54:41 +01:00
Weedy Weed Smoker 9526e3f14b French translation update 2020-02-15 03:54:25 +07:00
twinaphex d86eb46f15 Cleanups 2020-02-14 21:53:45 +01:00
Twinaphex 2992cbd261 Merge pull request #10119 from Tatsuya79/patch-5
qt: add menu widget scaling new settings
2020-02-14 21:48:10 +01:00
Tatsuya79 914e330ef2 qt: add menu widget scaling new settings 2020-02-14 21:44:35 +01:00
twinaphex f320eb45d8 (menu_animation.c) Need to find a different way to remove this
dependency
2020-02-14 21:26:13 +01:00
twinaphex 60f335cf02 Split up menu display code into separate file 2020-02-14 21:07:15 +01:00
Guo Yunhe 1b395e664f Merge branch 'master' into translation-update-script 2020-02-14 21:06:03 +02:00
twinaphex 8040e7d168 (PS2) Buildfix 2020-02-14 19:04:12 +01:00
Twinaphex 9d5d7edf9a Update CHANGES.md 2020-02-14 19:00:59 +01:00
Twinaphex 136163ba4f Merge pull request #10114 from jdgleaver/widget-scaling
(Menu Widgets) Add scaling
2020-02-14 18:53:43 +01:00
jdgleaver 23c9b86f64 (Menu Widgets) Enable scaling of widgets independently from menu scale 2020-02-14 17:10:39 +00:00
twinaphex afb2a4abbf (Wii) Style nits 2020-02-14 17:43:58 +01:00
twinaphex c4f69b1eb7 (PS2) Cleanups 2020-02-14 17:43:00 +01:00
Twinaphex d6e7ae3769 Merge pull request #10118 from orbea/menu_null
Fix a segfault when starting the qt menu with the null menu driver.
2020-02-14 17:19:52 +01:00
orbea 0ea75894c1 Fix a segfault when starting the qt menu with the null menu driver. 2020-02-14 07:47:34 -08:00
twinaphex 0278e78989 Replace strcmp with string_is_equal 2020-02-14 16:46:09 +01:00
twinaphex 3b977c8747 Cleanups 2020-02-14 16:32:31 +01:00
twinaphex 789db436bb (conmanctl) Cleanups 2020-02-14 14:38:26 +01:00
twinaphex 2be5ffe4e9 Improve ifdef - should be compiled in only if HAVE_OZONE is defined 2020-02-14 14:31:02 +01:00
twinaphex 369348ebaf (Managers) Get rid of settings_t dependencies 2020-02-14 14:24:38 +01:00
twinaphex dad077adf3 Cleanups 2020-02-14 14:11:25 +01:00
twinaphex 3b2a3c1277 (led_driver) Take out settings_t dependency
(menu cbs sublabel) Add HAVE_MATERIALUI ifdefs
2020-02-14 14:05:35 +01:00
twinaphex e5674b146d (PSP) Buildfix 2020-02-14 13:33:27 +01:00
twinaphex ebd3e65f46 (ps2 compat files) Cleanups 2020-02-14 13:16:21 +01:00
twinaphex 2d946d0d95 (PS2 gfx) Cleanups 2020-02-14 13:06:56 +01:00
twinaphex cb0c145e3d Cleanups 2020-02-14 12:55:36 +01:00
twinaphex de604a79ab dir_list_new_special - no more dependency on settings_t 2020-02-14 12:12:59 +01:00
Twinaphex 172f75e5c0 (OSX) Buildfix 2020-02-14 00:24:03 +01:00
twinaphex df62b6d78f Buildfix 2020-02-14 00:19:54 +01:00
twinaphex 2d274f1369 Move accessibility features to platform frontend driver 2020-02-14 00:17:55 +01:00
twinaphex e47b7526bc (gfx) Cleanups 2020-02-13 23:24:51 +01:00
twinaphex 310bf3328e (UI) Cleanups 2020-02-13 22:39:29 +01:00
twinaphex 4467f811e0 ui_companion_driver_toggle - turn into static function 2020-02-13 22:33:09 +01:00
Twinaphex 637ff87e3f Merge pull request #10115 from orbea/cxx_linker
Add CXX_LINKER to the builtin glslang.
2020-02-13 22:26:49 +01:00
orbea c9c50f286c Add CXX_LINKER to the builtin glslang.
Fixes https://github.com/libretro/RetroArch/issues/10112.
2020-02-13 13:20:14 -08:00
twinaphex 59d6ad6b05 (platform_win32.c) Cleanup 2020-02-13 21:53:31 +01:00
twinaphex 950f6bb752 (record_ffmpeg) No more settings_t dependency 2020-02-13 21:48:52 +01:00
twinaphex 9c37356267 (record_ffmpeg.c) Start reducing settings_t usage 2020-02-13 21:41:29 +01:00
twinaphex 835acec8f3 (record_ffmpeg.c) Cleanups 2020-02-13 21:39:24 +01:00
twinaphex a6d64696e3 (menu_animation.c) Cleanups 2020-02-13 21:24:02 +01:00
twinaphex f4d93587a3 Remove unnecessary strings 2020-02-13 21:17:46 +01:00
twinaphex d0c40e3295 Remove duplicate English strings 2020-02-13 21:15:23 +01:00
twinaphex a92943d66c Buildfix for --disable-menu 2020-02-13 20:23:41 +01:00
jdgleaver 3f34f5072f (Menu Widgets) Add comment notifying that OZONE_SIDEBAR_WIDTH must be kept in sync between menu_widgets.c and ozone.h 2020-02-13 18:20:49 +00:00
twinaphex bf35c1faf5 Cleanup 2020-02-13 18:42:11 +01:00
twinaphex 108643473d (Intl Ja) Remove duplicate Japanese strings 2020-02-13 18:34:40 +01:00
jdgleaver e8a2a39d72 (Menu Widgets) Add scaling 2020-02-13 17:28:32 +00:00
Twinaphex e0cfa01e99 Merge pull request #10099 from WeedyWeedSmoker/French-translation-update
French translation update
2020-02-13 18:24:28 +01:00
twinaphex d645478f89 Cleanups 2020-02-13 18:19:04 +01:00
twinaphex a0ab7ab6fc (Menu) Cleanups 2020-02-13 18:13:21 +01:00
twinaphex 7090de541a - Merge runahead/mylist.c into retroarch.c
- General cleanups
2020-02-13 17:26:11 +01:00
twinaphex 5cb7d29c17 Style nits 2020-02-13 17:11:57 +01:00
twinaphex 2f64329c98 Cleanups 2020-02-13 17:04:49 +01:00
twinaphex 732fe2e996 Simplify menu_shader_manager_set_preset 2020-02-13 17:01:06 +01:00
twinaphex d02dbcfedd Update CHANGES.md 2020-02-13 14:18:30 +01:00
Twinaphex a97557f2e4 Merge pull request #10111 from jdgleaver/ozone-scaling
(Ozone) Add DPI-based scaling
2020-02-13 14:16:34 +01:00
twinaphex b004202cbf Revert "Reduce dependency on settings in menu_widgets.c"
This reverts commit ec53a400a7.
2020-02-13 14:11:52 +01:00
twinaphex 2e0f921ded Cleanups 2020-02-13 02:18:38 +01:00
twinaphex b7a17442d9 (menu_shader.c) Remove configuration.h dependency 2020-02-13 02:04:35 +01:00
twinaphex 699a21fa87 Cleanups 2020-02-13 01:09:27 +01:00
twinaphex 4c95d1af4e (network) Turn some functions into static functions 2020-02-12 20:06:21 +01:00
twinaphex 013117318c (network) Get rid of all the settings pointer grabbing 2020-02-12 20:01:48 +01:00
twinaphex e93244e0cb Cleanups 2020-02-12 17:26:54 +01:00
twinaphex 71030e4d81 Cleanup 2020-02-12 17:18:14 +01:00
twinaphex 7eb41e7057 (JACK) Get rid of configuration.h dependency 2020-02-12 17:13:47 +01:00
twinaphex ec53a400a7 Reduce dependency on settings in menu_widgets.c 2020-02-12 17:06:53 +01:00
twinaphex bb0840956f (menu_osk) Cleanup - take out configuration.h dependencies 2020-02-12 16:45:50 +01:00
twinaphex dd01ae8ebc menu_animation.c - no more dependency on configuration.h 2020-02-12 16:31:15 +01:00
twinaphex 1105d1019d Reduce some configuration dependencies 2020-02-12 16:13:28 +01:00
twinaphex d918c1791a Get rid of some configuration.h dependencies 2020-02-12 16:09:30 +01:00
jdgleaver b1773cc73b (Switch) Report correct (approximate) DPI in 'docked' mode 2020-02-12 14:25:49 +00:00
twinaphex 83a03b6679 Silence this warning 2020-02-12 14:16:09 +01:00
Twinaphex f3b3fc3935 Merge pull request #10102 from Jamiras/cheevos_unsupported_core
(cheevos) if the core says it's exposing SYSTEM_RAM, give it the benefit of the doubt
2020-02-12 13:38:46 +01:00
jdgleaver fff9a4f0c5 (Ozone) Add DPI-based scaling 2020-02-11 17:03:54 +00:00
twinaphex 1f6b90a4f9 Prevent warnings 2020-02-10 20:45:17 +01:00
twinaphex bc5349061f Missing prototype 2020-02-10 20:39:53 +01:00
twinaphex 70e3ddb224 Cleanups 2020-02-10 17:19:49 +01:00
twinaphex 5e20a7ef5e Rework some of the config.def.h variables 2020-02-10 15:33:32 +01:00
twinaphex 0fd00ca82f Cleanup 2020-02-10 15:24:14 +01:00
twinaphex 1fafdb2843 Style nits 2020-02-10 13:18:27 +01:00
twinaphex c142ee19ba Cleanups 2020-02-10 13:12:26 +01:00
twinaphex 880391d0c5 (libnx) Try to silence warnings 2020-02-10 12:36:11 +01:00
twinaphex 9dbad614a5 Prevent warnings 2020-02-10 11:54:05 +01:00
twinaphex 0c6bb6660a Cleanups 2020-02-10 11:49:50 +01:00
Guo Yunhe a4bb8f130b Merge branch 'master' into translation-update-script 2020-02-07 10:59:36 +02:00
twinaphex dce610747b Update audio resampler 2020-02-07 07:53:23 +01:00
Twinaphex 84e6c2a185 Merge pull request #10095 from eadmaster/patch-2
added GET_CONFIG_PARAM and SHOW_MSG network commands
2020-02-06 19:57:15 +01:00
Jamiras 446e44cb09 if the core says it's exposing SYSTEM_RAM, give it the benefit of the doubt 2020-02-05 18:16:34 -07:00
Twinaphex eb58b8c0b5 Update opensl.c 2020-02-05 18:53:11 +01:00
Twinaphex 51964eee20 Remove unused variable 2020-02-05 07:17:25 +01:00
Twinaphex 8bda4553ed Update CHANGES.md 2020-02-05 02:33:17 +01:00
Twinaphex b8951b9934 Update CHANGES.md 2020-02-05 02:31:32 +01:00
Twinaphex 0b7edbad28 Merge pull request #10100 from hasenbanck/fix-ffmpeg-seek
Fix crash on seeking when using HW decoding in some cases.
2020-02-05 02:31:06 +01:00
Nils Hasenbanck baf065b789 Fix crash on seeking when using HW decoding in some cases.
This fix makes sure that we don't de-allocate the video buffer before
while the decoding thread is still working. We also don't throw
an misleading error when the decoding threads flushed the buffers
on seeking.
2020-02-04 21:29:35 +01:00
Weedy Weed Smoker 609dde0988 Another small change to the french translation 2020-02-05 03:15:03 +07:00
Weedy Weed Smoker 41b5387203 Small change to the french translation 2020-02-05 03:06:06 +07:00
Weedy Weed Smoker 2311936580 French translation update
and small typo fix for the english file…
2020-02-05 02:59:48 +07:00
Twinaphex ed4558fadd Merge pull request #10096 from jdgleaver/disk-control-notification-labels
(Disk Control) Add disk labels to 'disk inserted' notifications
2020-02-04 20:10:18 +01:00
Twinaphex b1d56207e3 Merge pull request #10097 from jdgleaver/widget-width
(Menu Widgets) Allow notifications to use full screen width when not displaying menu
2020-02-04 19:38:21 +01:00
jdgleaver 0d5a8c6aaa (Menu Widgets) Allow notifications to use full screen width when not displaying menu 2020-02-04 16:07:06 +00:00
jdgleaver 9de9a79925 (Disk Control) Add disk labels to 'disk inserted' notifications 2020-02-04 15:45:00 +00:00
eadmaster ed0a624b12 added GET_CONFIG_PARAM and SHOW_MSG network commands 2020-02-04 08:57:45 +01:00
twinaphex 8627d638e1 Cleanups 2020-02-04 06:05:00 +01:00
twinaphex 3990254a7c Cleanups 2020-02-04 05:54:00 +01:00
twinaphex 51290457dd Cleanups 2020-02-04 05:01:03 +01:00
twinaphex 2c2ab2a7b9 Revert "Cleanups"
This reverts commit 110dda6e48.
2020-02-04 04:49:25 +01:00
twinaphex a7f21e6cea (config.def.h) Cleanups 2020-02-04 04:21:31 +01:00
twinaphex 309dbacb67 Cleanup 2020-02-04 03:11:57 +01:00
twinaphex 110dda6e48 Cleanups 2020-02-04 03:10:58 +01:00
twinaphex 58457ef16c Cleanups 2020-02-04 02:57:16 +01:00
twinaphex 55e7c16dea Cleanups 2020-02-04 02:50:12 +01:00
twinaphex 51bc64559b Revert "(Config file) Don't save 'nul' entries in config file anymore -"
This reverts commit 4c6d46137c.
2020-02-04 01:02:40 +01:00
twinaphex 4c6d46137c (Config file) Don't save 'nul' entries in config file anymore -
config file size goes from 100KB to 20KB
2020-02-04 00:05:11 +01:00
twinaphex debbd9f15b Remove unused menu_display_pixel_get_scale 2020-02-03 22:47:26 +01:00
twinaphex 712910dec0 Cleanups 2020-02-03 22:05:11 +01:00
twinaphex 8999235373 Cleanups 2020-02-03 21:45:55 +01:00
twinaphex 8c2fe0a9ae Cleanup 2020-02-03 21:17:17 +01:00
Twinaphex 9651299e79 Merge pull request #10094 from IlDucci/master
Updating Spanish translation with latest changes.
2020-02-03 21:16:59 +01:00
twinaphex fdb7f972a6 Update Makefile.griffin 2020-02-03 18:14:15 +01:00
twinaphex 12e82baeb3 Update - add HAVE_CONFIGFILE to Makefile.griffin 2020-02-03 18:12:43 +01:00
IlDucci a41ee25518 Updating Spanish translation with latest changes. 2020-02-03 15:30:30 +01:00
twinaphex cd20966fc8 Remove more settings_t dependencies 2020-02-03 08:00:08 +01:00
twinaphex d3e0d03301 Cleanups 2020-02-03 07:44:00 +01:00
twinaphex 2cb6416572 Cleanup 2020-02-03 07:39:14 +01:00
twinaphex 3fd40c03bf (tasks/task_core_updater.c) get Rid of some settings dependencies 2020-02-03 07:37:05 +01:00
twinaphex e5b236898f Cleanup 2020-02-03 07:22:30 +01:00
twinaphex 67cfff2520 Remove the menu display null drivers 2020-02-03 07:04:06 +01:00
twinaphex 68467da7ac Remove menu_display_ctx_vga - is identical to menu display null 2020-02-03 06:55:15 +01:00
twinaphex 6b0a62d6ff Null video driver should work now 2020-02-03 06:49:59 +01:00
twinaphex 5ff4ee96e4 (Resampler) More buildfixes 2020-02-03 03:33:50 +01:00
twinaphex e1603c0f44 (Resampler) Cleanups 2020-02-03 01:59:24 +01:00
twinaphex 5ceb73c1cf More casts 2020-02-03 00:29:34 +01:00
twinaphex 5f631b3499 Cast this 2020-02-03 00:24:24 +01:00
twinaphex 076fddd9d9 (Resampler) Turn this void 2020-02-03 00:16:16 +01:00
twinaphex bcfa6d7e0e Cleanup 2020-02-02 23:45:11 +01:00
twinaphex 2c37fb1f5e Add HAVE_CONFIGFILE ifdefs 2020-02-02 23:41:17 +01:00
twinaphex e0fdd8d39e Add back HAVE_CONFIGFILE ifdef - will strip out remaps and overrides
support as well
2020-02-02 21:27:38 +01:00
twinaphex cb48ae6989 Updates 2020-02-02 17:37:16 +01:00
twinaphex cde2d7c18c Looks like unnecessary logic 2020-02-02 17:32:14 +01:00
twinaphex 28b2a34191 Remove duplicate prototype 2020-02-02 08:07:59 +01:00
Twinaphex 07a2dc5aa9 Merge pull request #10089 from orbea/vulkan_warning
Silence warning with clang-9.0.1.
2020-02-02 04:08:24 +01:00
Twinaphex bfbbd858fb Merge pull request #10090 from orbea/glslang
Add HAVE_BUILTINGLSLANG to other build systems.
2020-02-02 04:07:57 +01:00
twinaphex 564a4758de Cleanups 2020-02-02 03:45:42 +01:00
orbea f1b9b8cb73 Add HAVE_BUILTINGLSLANG to other build systems. 2020-02-01 18:36:41 -08:00
twinaphex 5bb084c32b Cleanups 2020-02-02 03:00:51 +01:00
twinaphex 97beb90b8f Remove unused RARCH_CTL_IS_BLOCK_CONFIG_READ 2020-02-02 02:26:54 +01:00
twinaphex 8eca1a0459 Refactor this 2020-02-02 02:16:19 +01:00
twinaphex e7e7a284f5 Cleanups 2020-02-02 02:16:19 +01:00
orbea baf7013941 Silence warning with clang-9.0.1.
gfx/drivers_shader/shader_vulkan.cpp:2372:4: warning: field 'device' will be initialized after field 'size' [-Wreorder]
   device(device),
   ^
1 warning generated.
2020-02-01 16:52:00 -08:00
Twinaphex 7bf6bac63f Merge pull request #10087 from orbea/glslang
qb: Support building with a system version of glslang.
2020-02-02 01:23:31 +01:00
orbea 74a09844c2 qb: Support building with a system version of glslang. 2020-02-01 16:12:54 -08:00
orbea 65e071e470 qb: Add c++ support for check_header. 2020-02-01 15:40:43 -08:00
twinaphex e005044f64 Remove retro_main_log_file function 2020-02-01 23:56:51 +01:00
Twinaphex d788531ae5 Update CHANGES.md 2020-02-01 23:50:09 +01:00
Twinaphex 5ed63521b1 Merge pull request #10085 from Jamiras/cheevos_hash_info
(cheevos) show RetroAchievements Hash in content information list
2020-02-01 23:49:46 +01:00
twinaphex 3b492142db Add CDROM_DEBUG ifdefs around this 2020-02-01 19:39:44 +01:00
twinaphex 6b99e07043 Can remove retroarch_get_launch_arguments function now 2020-02-01 17:46:01 +01:00
twinaphex 85d64602ff Move retroarch_get_launch_arguments() function call outside
of frontend driver - should be called by Salamander too which
has no conception of RetroArch launch arguments
2020-02-01 17:42:18 +01:00
twinaphex c2852bdefe Get rid of useless return 2020-02-01 17:26:32 +01:00
twinaphex e5ffeff36e Turn two more functions static 2020-02-01 17:24:27 +01:00
twinaphex bece92abb2 Turn command_set_shader private 2020-02-01 17:17:36 +01:00
Jamiras 79b51595a5 show RetroAchievements hash in content information list 2020-02-01 08:10:22 -07:00
twinaphex d89fb0e7c4 (shader_slang.cpp) Simplify usage of functions that are only
ever used as C-strings
2020-02-01 07:04:27 +01:00
twinaphex ca83be1db4 Cleanups 2020-02-01 04:19:22 +01:00
twinaphex 64c515bac4 Turn while (true) into for (;;) for easier MSVC backwards compatibility 2020-02-01 04:15:22 +01:00
twinaphex ff6d79b2cc Get rid of more RARCH_CTL_ enums 2020-02-01 03:32:24 +01:00
twinaphex 96018412c0 Cleanups 2020-02-01 03:27:58 +01:00
twinaphex 35b8c4cb05 Cleanup 2020-02-01 02:02:50 +01:00
Twinaphex 063e1a5d33 Update CHANGES.md 2020-02-01 01:52:22 +01:00
Twinaphex f54cd38f2e Update CHANGES.md 2020-02-01 01:51:59 +01:00
Twinaphex 04a5cbab4f Update CHANGES.md 2020-02-01 01:51:18 +01:00
Twinaphex 823f6b1047 Merge pull request #10084 from hasenbanck/override-netplay-fix
Save netplay settings which have a CLI override.
2020-02-01 01:50:47 +01:00
twinaphex 2db0d1f518 Cleanups 2020-02-01 01:50:01 +01:00
twinaphex cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
Nils Hasenbanck ec254f817d Save netplay settings which have a CLI override.
Currently the CLI overrides should not be saved when creating a confi-
guration file. But because of a bug, the user can never save netplay
settings which have an override.

This change prevents the frontend to set the "override flag" for these
options when setting the setting manually via the settings menu.

This enables toe saving of the affected settings again.
2020-01-31 15:21:20 +01:00
twinaphex 84251b02bd verbosity.c - add necessary header 2020-01-31 15:06:50 +01:00
twinaphex f0e889b552 Change prototype of video_driver_set_size 2020-01-31 15:06:50 +01:00
Twinaphex b490c774bf Update compat_ifaddrs.c 2020-01-31 07:48:32 +01:00
twinaphex 9f66968d1b Update verbosity.c 2020-01-31 02:34:16 +01:00
twinaphex 12da79730f Merge runahead/mem_util.c into retroarch.c 2020-01-31 02:32:49 +01:00
twinaphex 982e35db45 Use strlcat instead of strcat 2020-01-30 22:20:18 +01:00
twinaphex 941b5f83f3 Prefer to use strlcpy/strlcat instead of strcpy/strcat 2020-01-30 22:14:50 +01:00
twinaphex 3fc8aa7071 Cleanup 2020-01-30 22:03:49 +01:00
twinaphex 8c76e82e2f Simplify copy_core_to_temp_file 2020-01-30 21:55:38 +01:00
twinaphex 5ef559f6d8 Simplify copy_core_to_temp_file 2020-01-30 21:45:43 +01:00
twinaphex 0421d463f8 JUst use strdup instead of strcpy_alloc 2020-01-30 21:26:54 +01:00
twinaphex bb3e7fad66 - Make strcpy_alloc a static function of mem_util.c
- Make sure we avoid strcpy as much as possible - preferring
to use strlcpy instead
2020-01-30 20:16:20 +01:00
twinaphex d7c2eba4fd Simplify get_temp_directory_alloc 2020-01-30 20:05:44 +01:00
twinaphex e31ba43b5a Don't need to use verbosity_get_ptr for this 2020-01-30 19:47:03 +01:00
twinaphex 5d428d471c Move logging code over to verbosity.c 2020-01-30 19:22:57 +01:00
twinaphex a934e13309 Move variables into function 2020-01-30 19:13:17 +01:00
twinaphex d631da7d11 Start taking settings dependencies out of rarch_log_file_init
function
2020-01-30 19:04:05 +01:00
twinaphex 08239ead20 Remove duplicate English strings 2020-01-30 18:26:44 +01:00
twinaphex 7c0e80a415 (RPNG) Fix test compilation, currently fails though 2020-01-30 17:52:32 +01:00
twinaphex 0ff69ec3df Move test over to samples 2020-01-30 17:47:15 +01:00
twinaphex cad21249e0 Move crc32.c to samples 2020-01-30 17:44:29 +01:00
twinaphex acfe7ab16d Updates to samples/utils 2020-01-30 17:41:38 +01:00
twinaphex 652923d056 Move files around 2020-01-30 17:31:49 +01:00
twinaphex 4d18f3e9b7 Create more tests 2020-01-30 17:25:58 +01:00
twinaphex df06a0effe Fix names 2020-01-30 17:14:45 +01:00
twinaphex e13ffc7507 Add missing samples 2020-01-30 17:13:44 +01:00
twinaphex 12ec690044 Add samples test file for config_file 2020-01-30 17:02:52 +01:00
twinaphex 7f4139c427 Get rid of wrong double ';;' 2020-01-30 16:53:20 +01:00
twinaphex 74cd84399f Cleanups - Replace '== NULL' 2020-01-30 16:47:33 +01:00
Twinaphex f762ea6412 Update CHANGES.md 2020-01-30 16:39:25 +01:00
Twinaphex 46e26d9682 Update CHANGES.md 2020-01-30 16:37:57 +01:00
Twinaphex 057e57e0b6 Update CHANGES.md 2020-01-30 16:37:38 +01:00
Twinaphex 7f6b9fb31a Merge pull request #10080 from Jamiras/cheevos_unsupported_core
(cheevos) don't block sameboy core because it only exposes some memory
2020-01-30 16:36:52 +01:00
twinaphex a034909ae9 Cleanups 2020-01-30 16:35:59 +01:00
twinaphex f785e4b045 Replace while (1) with for (;;) - avoids MSVC warnings 2020-01-30 16:15:52 +01:00
twinaphex 8870632918 Get rid of unused RARCH_CTL_SET_FRAME_TIME_LAST 2020-01-30 04:39:22 +01:00
Jamiras 3ff13783fa workaround for sameboy only exposing RAM 2020-01-29 07:30:28 -07:00
Benoit Felix 54c7109cee Add French comment 2020-01-29 13:55:34 +00:00
twinaphex fe98aab910 Buildfix 2020-01-29 14:17:39 +01:00
twinaphex 260be59c9e C89_BUILD buildfix 2020-01-29 13:24:11 +01:00
twinaphex 2688805872 (retroarch.c) move variables to top 2020-01-29 03:48:09 +01:00
twinaphex ed84fd73a3 Cleanups 2020-01-29 03:46:25 +01:00
Twinaphex 255790b664 Merge pull request #10073 from eadmaster/patch-1
added GET_STATUS network command
2020-01-28 23:57:01 +01:00
eadmaster 491c0457a6 added detection of paused state 2020-01-28 21:40:56 +01:00
twinaphex 764990bb59 Revert "Aggressively simplify netplay_handshake - this function was very"
This reverts commit 096f992cc0.
2020-01-28 19:15:12 +01:00
twinaphex ac72ba5af8 Revert "(Netplay) Cleanups"
This reverts commit 646eba5a92.
2020-01-28 19:15:05 +01:00
twinaphex 846d9ed391 Revert "Cleanups"
This reverts commit 399f039b9e.
2020-01-28 19:14:37 +01:00
twinaphex 21381ff990 Revert "(netplay_frontend.c) Cleanups"
This reverts commit d0a2315098.
2020-01-28 19:14:22 +01:00
Twinaphex f43d7cc2d4 Merge pull request #10077 from phcoder/pixelbook2
Pixelbook fixes part 2
2020-01-28 17:50:37 +01:00
Vladimir Serbinenko 193d40bae4 Cleanup AMotionEvent_getAxisValue check
I though it was a weak loading but in fact it's explicit so
loading with some define magic, so we need to check for p_AMotionEvent_getAxisValue
to be clean. Binary code is actually the same

Tested by reverting path fix
2020-01-28 17:32:38 +01:00
Vladimir Serbinenko 6d8cbd2c4b Fix so file for x64 android
In particular it affects Pixelbook which implements x64 Android
2020-01-28 17:23:46 +01:00
Vladimir Serbinenko 14c24e1fab Remove unnecessarry check for AMotionEvent_getX
Unlike getAxis getX is always present and doesn't need to be checked
2020-01-28 17:04:32 +01:00
twinaphex d0a2315098 (netplay_frontend.c) Cleanups 2020-01-28 15:42:55 +01:00
Twinaphex 3d510bcaba Merge pull request #10075 from jdgleaver/netplay-rooms
Prevent out-of-bounds array indexing when displaying/selecting netplay rooms in menus
2020-01-28 15:38:03 +01:00
Twinaphex f75b588b0f Merge pull request #10076 from phcoder/pixelbook
Fix crash on Pixelbook
2020-01-28 15:32:56 +01:00
twinaphex 399f039b9e Cleanups 2020-01-28 15:14:29 +01:00
Vladimir Serbinenko e290e9193d Fix crash on Pixelbook
AMotionEvent_getAxisValue is a weak symbol and we need
to check for its presence before calling it.
2020-01-28 15:03:16 +01:00
twinaphex 646eba5a92 (Netplay) Cleanups 2020-01-28 14:56:05 +01:00
twinaphex 096f992cc0 Aggressively simplify netplay_handshake - this function was very
weird - the conditional was never triggered because all instances
of connection->mode being greater than or equal to
NETPLAY_CONNECTION_CONNECTED would already early return anyway
2020-01-28 14:29:30 +01:00
jdgleaver f538e04fd2 Prevent out-of-bounds array indexing when displaying/selecting netplay rooms in menus 2020-01-28 12:42:26 +00:00
twinaphex f72e127f5f Remove 'Send Debug Info' 2020-01-28 02:18:34 +01:00
eadmaster 7e7429cadd fixed comments style 2020-01-27 23:35:11 +01:00
twinaphex 4d36f0d356 Remove rarch_get_cpu_architecture_string - don't have two
functions that do more or less the same thing
2020-01-27 22:51:20 +01:00
eadmaster 7867b09a0e added GET_STATUS network command (#9483)
will return a string with the name of the current core running, the content name and crc32
2020-01-27 20:10:35 +01:00
twinaphex eb4e365820 (libretro-common) Cleanups 2020-01-27 17:00:18 +01:00
twinaphex f57ca1abba (netplay_room_parse) Fix namespacing of variable 2020-01-27 16:47:11 +01:00
twinaphex e8bc606c20 Move netplay_get_architecture to frontend_driver.c 2020-01-27 16:39:36 +01:00
twinaphex 9f9191819d (netplay_frontend.c) Cleanups 2020-01-27 16:27:51 +01:00
twinaphex 17cdbc305c Cleanups 2020-01-27 16:03:30 +01:00
Rob Loach a0faec186d intl: Remove AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST 2020-01-27 09:29:25 -05:00
Rob Loach 6b4b5ec2a1 Merge branch 'master' into master 2020-01-27 09:07:06 -05:00
Twinaphex 4a931c3bef Merge pull request #10062 from trioan/fixes
fix vulkan_framebuffer_generate_mips (msvc2017)
2020-01-26 15:08:06 +01:00
trioan 0e20be17cc fix vulkan_framebuffer_generate_mips (msvc2017)
{0} initializer
2020-01-25 21:14:28 -05:00
twinaphex 36cbcb12b2 Update CHANGELOG 2020-01-25 17:51:38 +01:00
twinaphex e54e12876b Header cleanups 2020-01-25 17:51:07 +01:00
twinaphex d198bef37b task_decompress.c - get rid of logging
task_autodetect_blissbox.c - get rid of logging
2020-01-25 17:22:24 +01:00
twinaphex cfcce71392 - Add HAVE_BLISSBOX
- Do not use logging functions inside internal task functions - should
always be done outside at end handler function
2020-01-25 17:17:53 +01:00
twinaphex 571eafd149 Get rid of send debug info in a more safe way that won't mess
with people's existing configs
2020-01-25 15:58:22 +01:00
twinaphex 3f598a0f9c Revert "Get rid of send debug info - if we ever bring this back, needs to be"
This reverts commit c0482ff2ea.
2020-01-25 15:55:11 +01:00
twinaphex c0482ff2ea Get rid of send debug info - if we ever bring this back, needs to be
reimplemented according to new infra
2020-01-25 14:53:04 +01:00
Twinaphex 3952761812 Merge pull request #10049 from Jamiras/http_port
allow characters other than / to follow port
2020-01-25 04:28:47 +01:00
hizzlekizzle f8ac94353a Merge pull request #9710 from hunterk/master
switch to nearest neighbor scaling as default
2020-01-24 15:56:03 -06:00
Jamiras d0d1c5bb37 allow characters other than / to follow port 2020-01-23 07:00:50 -07:00
Guo Yunhe 24aa0f7fe6 Merge branch 'master' into translation-update-script 2020-01-23 12:04:19 +02:00
twinaphex 60e087b8e7 (Discord) Add header include 2020-01-23 04:49:51 +01:00
twinaphex 9ddd8417c8 Replace some more auto variables 2020-01-23 04:49:51 +01:00
Twinaphex 363e7294b6 Update CHANGES.md 2020-01-23 01:59:39 +01:00
Twinaphex b0aa447d5f Merge pull request #10048 from Jamiras/http_task_progress_div_zero
prevent divide by zero error when calculating http transfer percentage
2020-01-23 01:57:15 +01:00
Jamiras a96672c0fc improve accuracy of progress for smaller payloads; prevent divide by zero for very small payloads 2020-01-22 17:42:55 -07:00
twinaphex bf5d3437f0 Merge branch 'master' of https://github.com/libretro/RetroArch 2020-01-22 20:09:33 +01:00
Twinaphex 689805ecbb Merge pull request #10045 from jdgleaver/disk-control-restore-index
(Disk Control Interface) Add support for saving/restoring last used disk in playlists + code overhaul
2020-01-22 20:09:14 +01:00
twinaphex a4564b8939 Move C oriented code from slang_reflection.cpp to glslang_util.c 2020-01-22 19:36:49 +01:00
twinaphex ff9701685f Remove some auto variables 2020-01-22 19:07:10 +01:00
twinaphex 528edf7e82 (Discord) Cleanups - we might want to do a clean implementation of all
this someday as Discord RPC is deprecated anyway
2020-01-22 18:53:54 +01:00
jdgleaver 00397a33f0 (Disk Control Interface) Add support for saving/restoring last used disk in playlists + code overhaul 2020-01-22 17:09:12 +00:00
twinaphex 276b7a03f1 Remove 'automatically add content to playlist' option - causes
memory corruption; not worth it for now
2020-01-22 17:08:02 +01:00
twinaphex 6d0286efbd Turn video_shader_parse_type into macro 2020-01-22 14:30:55 +01:00
twinaphex 920e89a506 Move pass set texture to vulkan_common.c 2020-01-22 14:27:24 +01:00
twinaphex 8f1aa8c2c3 (shader_gl_core.cpp) Cleanups 2020-01-22 13:52:14 +01:00
twinaphex 376ad6d61d move more C functions over to gl_core.c 2020-01-22 13:12:00 +01:00
twinaphex 90874b434e (shader_vulkan.cpp) Move more C code to vulkan_common.c 2020-01-22 12:09:08 +01:00
twinaphex bcf8ff3d0a (shader_gl_core) Get rid of ConfigDeleter - move C code to gl_core.c 2020-01-22 11:57:06 +01:00
twinaphex c8227c95dd (shader_gl_core) get rid of ConfigDeleter 2020-01-22 11:35:00 +01:00
twinaphex b8cd37aef7 (shader_vulkan.cpp) Get rid of ConfigDeleter 2020-01-22 11:29:40 +01:00
twinaphex f853632260 Move framebuffer generate_mips function to vulkan_common.c 2020-01-22 10:52:20 +01:00
twinaphex e9c73bd9a6 (Vulkan) Move more C code to vulkan_common.c 2020-01-22 10:41:38 +01:00
twinaphex ef27a660a7 (shader vulkan) Cleanups - moving C code out of the C++ file 2020-01-22 10:11:42 +01:00
twinaphex d4a1f2ef85 Cleanups 2020-01-20 05:06:51 +01:00
twinaphex 60faeffde0 (task_patch.c) Cleanups 2020-01-20 04:44:45 +01:00
twinaphex 481f31fe8f Turn task_patch.c into separately compiled file 2020-01-20 04:31:32 +01:00
twinaphex 8a989b65ee Cleanup 2020-01-19 13:19:25 +01:00
twinaphex 826b2245ec WndProcCommon - small optimization 2020-01-19 12:17:26 +01:00
twinaphex 61c6dc5a70 (msg_hash_pl.h) Buildfix 2020-01-19 07:49:27 +01:00
Twinaphex bfc46120bb Update CHANGES.md 2020-01-19 07:36:38 +01:00
Twinaphex b63387ca4f Merge pull request #10029 from DEX357/patch-51
New PL strings
2020-01-19 07:36:21 +01:00
Twinaphex 4e2f2e0458 Merge pull request #10031 from yoshisuga/tvos-fix-compiler-flag
tvOS: fix preprocessor flag; update version in Info.plist
2020-01-19 07:12:06 +01:00
Yoshi Sugawara 72a6e71e72 tvOS: fix preprocessor flag; update version in Info.plist 2020-01-18 20:01:41 -10:00
twinaphex 7748ac207c Split up blissbox code into separate file
tasks/task_autodetect_blissbox.c
2020-01-19 06:40:07 +01:00
twinaphex f852209040 Silence some unused variable warnings on some targets 2020-01-19 06:04:37 +01:00
twinaphex 32c62a7fe1 Get rid of header include 2020-01-19 05:00:35 +01:00
twinaphex 51d6b467d6 (Win32) Buildfix 2020-01-19 04:56:12 +01:00
twinaphex 638b65c828 (platform_switch.c) Cleanups 2020-01-19 04:23:07 +01:00
Twinaphex 4e7a8a6478 Update CHANGES.md 2020-01-19 04:16:41 +01:00
Twinaphex 17153b4aae Update CHANGES.md 2020-01-19 04:16:08 +01:00
Twinaphex ee95aa401d Merge pull request #10017 from Jamiras/cheevos_segacd_ext_mem
(cheevos) support for extended sega cd memory
2020-01-19 04:15:41 +01:00
Twinaphex ff81118ffc Update CHANGES.md 2020-01-19 04:15:25 +01:00
Twinaphex fdac368153 Merge pull request #10028 from ToadKing/emscripten-input-fix
emscripten: recreate input event listeners properly
2020-01-19 04:15:06 +01:00
Twinaphex 7f3bf75788 Update CHANGES.md 2020-01-19 04:14:47 +01:00
Twinaphex 506b524db0 Merge pull request #10027 from ToadKing/fix-mouse-capture
fix mouse capture hotkey not working
2020-01-19 04:14:23 +01:00
DEX357 21b8ae9e52 New PL strings 2020-01-18 20:29:49 +01:00
Toad King 14c67fde7f emscripten: recreate input event listeners properly
There's a new (undocumented -_-) API for removing event listeners in emscripten
now, so use that when recreating input listeners. Fixes mouse events breaking
when loading cores.
2020-01-18 12:51:21 -06:00
Toad King 7ca666a0e9 fix mouse capture hotkey not working
There's a normal binding for this set in your configs/`grab_mouse_toggle`, but
there's a second place where it's hardcoded to check the F11 key. Because F11
is the default key, both of these codepaths will run which immediately captures
and then uncaptures the mouse cursor, effectively breaking it.

Tested and this fixes the behavior on Linux and Emscripten
2020-01-18 12:49:08 -06:00
twinaphex c26c9483ec Cleanup WNDPROC functions 2020-01-18 11:34:50 +01:00
twinaphex a01e6652df Replace ZeroMemory with memset 2020-01-18 10:46:25 +01:00
twinaphex 57c00e7e26 Cleanup 2020-01-18 10:41:26 +01:00
twinaphex a67896ab2b Cleanup 2020-01-18 09:37:16 +01:00
twinaphex 142503d3b5 move win32_menu_loop and win32_browser to win32_common 2020-01-18 09:28:46 +01:00
twinaphex fe9022afe0 More CXX_BUILD fixes 2020-01-18 05:48:19 +01:00
twinaphex 64d3408188 (ffmpeg) Fixups 2020-01-18 05:40:11 +01:00
Twinaphex ffd9b1bede Merge pull request #10022 from Jamiras/http_transfer_file
add task_push_http_transfer_file
2020-01-18 04:59:14 +01:00
Twinaphex daf52cb32e Merge pull request #10023 from Jamiras/http_port
fix parsing of port in net_http_connection_done
2020-01-18 04:57:11 +01:00
Jamiras 92d572285e add missing header 2020-01-17 20:36:28 -07:00
Jamiras 59302e816c fix parsing of port in net_http_connection_done 2020-01-17 20:22:49 -07:00
Jamiras 7325147d83 add task_push_http_transfer_file 2020-01-17 19:48:40 -07:00
Twinaphex d6592b6b0a Merge pull request #10021 from Jamiras/cheevos_coro_fix
(cheevos) attempt to fix corrupted User-Agent string
2020-01-18 03:38:45 +01:00
Jamiras 3460214467 buffer doesn't survive across CORO boundary 2020-01-17 18:52:48 -07:00
Twinaphex 38b486eb6b Merge pull request #10019 from jdgleaver/extended-disk-control
Add disk control interface API extension
2020-01-17 18:09:15 +01:00
jdgleaver a2e1d622e1 Add disk control interface API extension 2020-01-17 16:34:05 +00:00
Guo Yunhe c6139b7285 Merge branch 'master' into translation-update-script 2020-01-17 17:14:11 +02:00
Twinaphex dbe0705880 Merge pull request #10014 from orbea/unused
qb: Improve the NOUNUSED checks.
2020-01-17 08:19:05 +01:00
Jamiras 4b471a6e01 support for extended sega cd memory 2020-01-16 19:44:14 -07:00
orbea a87192f8d0 qb: Improve the NOUNUSED checks. 2020-01-15 11:05:38 -08:00
Twinaphex f425d8dc8b Update CHANGES.md 2020-01-15 19:29:14 +01:00
Twinaphex 9e25601a56 Merge pull request #10012 from orbea/c99
qb: Improve the gnu99 compiler check.
2020-01-15 19:18:29 +01:00
Twinaphex fca5af7ac3 Merge pull request #10011 from orbea/qb-fix
qb: Don't set cc_works in test_compiler.
2020-01-15 19:18:20 +01:00
Twinaphex 1af0ede1a6 Merge pull request #10013 from jdgleaver/clean-playlists
(Playlist Management) Add 'Clean Playlist' option
2020-01-15 19:17:50 +01:00
jdgleaver e7733abc40 (Playlist Management) Add 'Clean Playlist' option 2020-01-15 18:00:51 +00:00
orbea 4171c93bff qb: Improve the gnu99 compiler check. 2020-01-15 09:55:27 -08:00
orbea dd2c9c911b qb: Don't set cc_works in test_compiler. 2020-01-15 09:23:49 -08:00
Twinaphex de052537ec Update AndroidManifest.xml 2020-01-15 17:18:05 +01:00
Twinaphex 68bc6b37ae Update AndroidManifest.xml 2020-01-15 17:17:43 +01:00
Twinaphex 548d1bae9e Update retroarch-sailfishos.spec 2020-01-15 17:12:35 +01:00
Twinaphex c89e557158 Update bar-descriptor.xml 2020-01-15 17:12:15 +01:00
Twinaphex 62dda5fdbf Update Info.plist 2020-01-15 17:09:26 +01:00
Twinaphex 22f24bd48f Update Info_Metal.plist 2020-01-15 17:09:10 +01:00
Twinaphex eeb0c65b6e Update Info.plist 2020-01-15 17:08:02 +01:00
Twinaphex b23fcf238b Update RetroArch_iOS9-Info.plist 2020-01-15 17:07:00 +01:00
Twinaphex 79698981ad Update version.dtd 2020-01-15 17:06:00 +01:00
Twinaphex ab4e3e8c75 Update version.all 2020-01-15 17:05:43 +01:00
Twinaphex 4bee4429aa Update CHANGES.md 2020-01-15 17:05:04 +01:00
Twinaphex 269ee7e672 Merge pull request #10010 from orbea/uname
Don't use uname -a.
2020-01-15 16:17:20 +01:00
orbea 8d6b70c22c Don't use uname -a. 2020-01-15 06:27:42 -08:00
twinaphex e786059506 frontend_ctx_null - add missing function pointer 2020-01-15 09:11:17 +01:00
twinaphex d48d4385d9 (Wayland) Silence warning 2020-01-15 08:48:13 +01:00
Twinaphex 1521be8acb Merge pull request #10007 from orbea/eval
qb: Move BUILD_DIRS to the correct function.
2020-01-15 08:21:05 +01:00
Twinaphex 76c97bbfad Merge pull request #10009 from orbea/qb-win
qb: Clean up.
2020-01-15 07:52:30 +01:00
Twinaphex 1b931dd410 Merge pull request #10008 from orbea/qt-fix
qb: Fix the qt configure check with older compilers.
2020-01-15 07:51:52 +01:00
orbea 77baa1c930 qb: Clean up. 2020-01-14 22:12:22 -08:00
orbea d41b7770c4 qb: Fix the qt configure check with older compilers. 2020-01-14 21:01:50 -08:00
Twinaphex 4f145a4f4f Update CHANGES.md 2020-01-15 05:29:50 +01:00
twinaphex fc7dc3cef7 (Camera) Add stub null camera driver 2020-01-15 05:20:01 +01:00
orbea 0dbfd721b3 qb: Move BUILD_DIRS to the correct function. 2020-01-14 20:06:09 -08:00
Twinaphex 243505b7cb Merge pull request #10006 from orbea/eval
qb: Remove potentially unsafe uses of eval.
2020-01-15 00:43:09 +01:00
orbea 04af898fe5 qb: Remove potentially unsafe uses of eval. 2020-01-14 14:30:28 -08:00
Twinaphex 9e1c5747f6 Merge pull request #10004 from orbea/exists
qb: Update the exists function.
2020-01-14 22:33:47 +01:00
twinaphex ab49806a5f add another ifdef 2020-01-14 22:09:00 +01:00
twinaphex e24934d5ea Improve compile time checks for determining if ffmpeg
version supports hardware decoder
2020-01-14 21:41:26 +01:00
Twinaphex 8ab162ffb1 Update CHANGES.md 2020-01-14 20:28:41 +01:00
Twinaphex 614e5bc44f Update CHANGES.md 2020-01-14 20:28:23 +01:00
twinaphex c1137ee3fa CoreAudio - Put g_interrupted behind IOS ifdefs 2020-01-14 20:22:06 +01:00
twinaphex 6cfe0ea77c (Audio) Update 2020-01-14 20:20:54 +01:00
orbea d89b7f93b2 qb: Update the exists function. 2020-01-14 10:20:35 -08:00
Twinaphex a6b114e423 Merge pull request #10000 from orbea/comp
qb: Allow multi argument CC and CXX.
2020-01-14 19:01:14 +01:00
Twinaphex 90f2ebeac1 Update CHANGES.md 2020-01-14 18:51:40 +01:00
Twinaphex 60cca4d9d2 Merge pull request #10003 from jdgleaver/disk-control-tweaks
Disk control interface improvements
2020-01-14 18:48:57 +01:00
hizzlekizzle 9b2752ff07 Merge pull request #9896 from m4tsa/update-libnx
fix breaking changes from the 3.0.0 libnx release
2020-01-14 08:32:47 -06:00
jdgleaver 16c4035e1c DISABLE_MENU=1 build fix 2020-01-14 14:04:34 +00:00
jdgleaver b5eba22aaf Disk control interface improvements 2020-01-14 12:30:08 +00:00
twinaphex 98b572d17a (FFmpeg) Add more ffmpeg_sw_decoder_threads options 2020-01-14 06:56:14 +01:00
Twinaphex 76c6e01534 Update CHANGES.md 2020-01-13 19:34:17 +01:00
Twinaphex 15b1281075 Update CHANGES.md 2020-01-13 19:34:05 +01:00
twinaphex e4ef930b47 (Android) Prevent crash when Android device is minimized and you go back to
the app
2020-01-13 19:21:24 +01:00
orbea 19e86a2b19 qb: Allow multi argument CC and CXX. 2020-01-13 09:41:14 -08:00
twinaphex 46b62b4a63 Update Makefile 2020-01-13 08:28:26 +01:00
twinaphex 7874d179da Simplify create_win32_process 2020-01-13 00:01:28 +01:00
twinaphex 341a4d50ea Buildfix 2020-01-12 23:56:08 +01:00
twinaphex b8328a9fdf (Accessibility) Cleanups 2020-01-12 22:04:31 +01:00
twinaphex 5b8411fe77 Silence implicit definition warnings 2020-01-12 21:46:28 +01:00
twinaphex 682d8f23e9 Strip out accessibility settings in menu if HAVE_ACCESSIBILITY
is not defined
2020-01-12 21:38:30 +01:00
twinaphex 34a9224334 Add accessibility.h 2020-01-12 21:34:31 +01:00
twinaphex 88ee7cbfa8 Add HAVE_ACCESSIBILITY switch 2020-01-12 21:33:00 +01:00
twinaphex 70e472e9e2 (menu widgets) Minor variable cleanups; shouldn't affect anything 2020-01-12 21:11:26 +01:00
twinaphex e9adb44c4a Avoid two warnings 2020-01-12 00:07:41 +01:00
twinaphex 81f8cae52a (RGUI) Prevent 'potential uninitialized reference to variables'
in load_custom_theme
2020-01-11 23:22:54 +01:00
twinaphex 36e67108fb Cleanups 2020-01-11 23:22:54 +01:00
Twinaphex f0bad7b091 Merge pull request #9988 from hasenbanck/fix-brackets
Fix brackets in buffer logic of the ffmpeg core.
2020-01-11 23:15:28 +01:00
Nils Hasenbanck 354c50039b Fix brackets in buffer logic of the ffmpeg core. 2020-01-11 15:01:21 +01:00
twinaphex b9c69e24a9 Cleanups 2020-01-11 05:06:38 +01:00
twinaphex 6319262b9c (RGUI) Prevent warning 2020-01-11 05:03:27 +01:00
twinaphex 78e02bf3dd Avoid warnings when HAVE_RUNAHEAD is not defined 2020-01-11 05:02:46 +01:00
twinaphex 3492ba5fd6 (libretro-common) Prevent warning 2020-01-11 04:48:33 +01:00
twinaphex f9ed6cbbfe Prevent another warning 2020-01-11 04:27:38 +01:00
twinaphex 98a573033d Prevent another warning 2020-01-11 04:26:31 +01:00
twinaphex 066089873b Prevent warning when HAVE_NETWORKING is not defined 2020-01-11 04:13:05 +01:00
twinaphex 8032ff6e19 (RCheevos) Cleanups 2020-01-11 03:07:54 +01:00
twinaphex 99d5dba6ae Add signal.h check for linux/unix 2020-01-10 15:19:29 +01:00
Twinaphex 0b0455975b Update CHANGES.md 2020-01-10 15:09:37 +01:00
Twinaphex 4b34894b59 Merge pull request #9978 from dev-0x7C6/master
Added additional CI test for passing sysroot flags via CC and CXX.
2020-01-10 15:07:20 +01:00
Twinaphex 311ee2db62 Update build.gradle 2020-01-10 15:06:00 +01:00
Twinaphex dfafcb0513 Update AndroidManifest.xml 2020-01-10 15:05:34 +01:00
Twinaphex 28520af599 Merge pull request #9979 from hasenbanck/better-buffer-logic
Fix the ffmpeg core packet buffer logic.
2020-01-10 15:04:31 +01:00
Twinaphex 207795abfd Merge pull request #9981 from jdgleaver/thumb-task-cleanup
Thumbnail downloader clean-ups
2020-01-10 15:04:11 +01:00
jdgleaver 495ad41741 Thumbnail downloader clean-ups 2020-01-10 11:08:36 +00:00
Nils Hasenbanck d591529e7a Fix the ffmpeg core packet buffer logic.
The logic for when to consider to decode a buffered packet did
had used a "magic number" when considering when the current packet
should be decoded when compared to the reference packet.
This change uses the media fps so that we never "overshoot" our target
and don't need to rely on a "magic number".
2020-01-10 08:23:18 +01:00
twinaphex 3a5dace583 (WiiU) fix build 2020-01-10 01:16:42 +01:00
Bartłomiej Burdukiewicz e2952586d1 Added additional CI test for passing sysroot flags via CC and CXX. 2020-01-09 23:14:50 +01:00
Twinaphex 16f25c2e06 Update AndroidManifest.xml 2020-01-09 21:36:38 +01:00
Twinaphex 8fea733a1f Update AndroidManifest.xml 2020-01-09 21:36:23 +01:00
Twinaphex bbb09f7557 Update AndroidManifest.xml 2020-01-09 21:36:14 +01:00
Twinaphex 1fc1acd3d0 Update CHANGES.md 2020-01-09 19:54:04 +01:00
twinaphex 0923985516 (GL/WGL) This regression caused cores that required GL to fail
because it would try to erroneously load GLESv2.dll instead of
OpenGL32.dll
2020-01-09 19:26:53 +01:00
twinaphex 2b1d1bc8cb (MaterialUI) Add icons for rooms 2020-01-09 18:21:25 +01:00
twinaphex 38e3cc2087 Update CHANGES.md 2020-01-09 18:11:00 +01:00
twinaphex be3acb902b (Discord) use fill_pathname_application_path 2020-01-09 17:19:00 +01:00
twinaphex 617940fb8d Move midi_null driver to retroarch.c 2020-01-09 17:00:46 +01:00
twinaphex a96ae6e987 (Playlists) Make sure history list can be set to 1 as a bare minimum -
bump up default to 200 for history and favorites lists
2020-01-09 16:49:52 +01:00
twinaphex a65396ba56 Add title for sideload core setting 2020-01-09 16:44:04 +01:00
twinaphex 61c4e3a5e4 Update Makefile.ctr.salamander 2020-01-09 15:49:24 +01:00
twinaphex df8f93e9d5 Split up VFS file_path code into separate file 2020-01-09 15:44:48 +01:00
twinaphex 577e1bd693 Merge branch 'master' of https://github.com/libretro/RetroArch 2020-01-09 15:28:30 +01:00
Twinaphex 1012d07e7f Merge pull request #9973 from jdgleaver/sideload-core-fix
Fix manual core installation
2020-01-09 15:26:53 +01:00
jdgleaver edec9448c4 Fix manual core installation 2020-01-09 14:13:21 +00:00
Woohyun Shin 5f456d067e Update korean translation 2020-01-09 15:00:42 +09:00
twinaphex 19ea50843c Merge branch 'master' of https://github.com/libretro/RetroArch 2020-01-09 01:43:12 +01:00
Twinaphex e9db190baa Merge pull request #9970 from hasenbanck/packet-buffer
Implement the packet buffer for the FFMPEG core
2020-01-08 22:06:19 +01:00
twinaphex fd5d9a0710 Merge branch 'packet-buffer' of git://github.com/hasenbanck/RetroArch 2020-01-08 21:56:31 +01:00
Nils Hasenbanck 1f673be3c8 Fixed the video decoder deadlock when using HW decoding. 2020-01-08 21:51:22 +01:00
Nils Hasenbanck a82582e859 Remove an unused struct variable. 2020-01-08 21:06:28 +01:00
Nils Hasenbanck 40ecfbcdfa Fix memory leak in ffmpeg core packet_buffer 2020-01-08 21:02:23 +01:00
Nils Hasenbanck 1e54379141 Implemented the packet buffer.
Simply use two packet_buffers that are double-linked lists of
AVPacket structs. This way we can control which packets to feed
to the decoders at the right time.

This solves the playback problem with the MP4 files.
2020-01-08 20:44:00 +01:00
twinaphex 291012d2a9 (libretro-common) Updates 2020-01-08 19:47:23 +01:00
Twinaphex 5296f4aebd Merge pull request #9968 from fjtrujy/psp/DevelopmentImprovements
Put new makefile options after the commons for PSP
2020-01-08 17:29:46 +01:00
Francisco Javier Trujillo Mata c86de916cb Put new makefile options after the commons for PSP 2020-01-08 16:53:42 +01:00
Twinaphex c014fc20a1 Update Makefile.psp1 2020-01-08 16:42:10 +01:00
Twinaphex 39f089f374 Merge pull request #9967 from jdgleaver/widget-title-fix
(Menu Widgets) Prevent 'looping' of task title text
2020-01-08 16:38:24 +01:00
jdgleaver 1fe7898add (Menu Widgets) Prevent 'looping' of task title text 2020-01-08 14:19:10 +00:00
twinaphex 3b2ec53100 (libretro-common) Update 2020-01-08 04:26:49 +01:00
twinaphex 3a8f12dff3 Update libretro-common 2020-01-08 01:44:58 +01:00
twinaphex 02d1eeb400 (VFS UWP) Get rid of verbosity.h dependency 2020-01-08 00:28:30 +01:00
twinaphex 261f1b72d4 Remove separate null_resampler.c file and move it into audio_resampler.c 2020-01-07 23:03:23 +01:00
Twinaphex 15f7ba4d99 Merge pull request #9963 from natinusala/master
libnx: fix swkbd indefinitely showing up
2020-01-07 21:06:20 +01:00
Twinaphex ea49348db2 Merge pull request #9964 from fjtrujy/psp/DevelopmentImprovements
[Psp] Development improvements
2020-01-07 20:20:04 +01:00
Francisco Javier Trujillo Mata af6208be29 Improve Makefile to make easier Debug in PSP 2020-01-07 20:07:24 +01:00
Francisco Javier Trujillo Mata 5f81200067 Include new action inside of the launch.json 2020-01-07 20:06:47 +01:00
Francisco Javier Trujillo Mata 3901c2d63a Add in libretro-common the psp1 implementation 2020-01-07 20:06:47 +01:00
natinusala b1ad6014f0 libnx: fix swkbd indefinitely showing up 2020-01-07 20:06:20 +01:00
Twinaphex 572611f1ca Merge pull request #9959 from dev-0x7C6/master
Fixed more compiler invokes in configure stage.
2020-01-07 18:52:09 +01:00
Twinaphex 6d4b1b69e5 Merge pull request #9962 from ToadKing/patch-1
fix null check in video_display_server
2020-01-07 16:47:00 +01:00
Michael Lelli dcb6bae868 fix null check in video_display_server 2020-01-07 09:36:32 -06:00
Twinaphex 69208d0fca Update CHANGES.md 2020-01-07 16:27:08 +01:00
Twinaphex 60c8edd39c Merge pull request #9960 from jdgleaver/core-updater-status
Display number of cores updated when updating installed cores
2020-01-07 16:26:46 +01:00
jdgleaver d2e2c289a6 Display number of cores updated when updating installed cores 2020-01-07 14:59:46 +00:00
Bartłomiej Burdukiewicz 562bf11946 Fixed more compiler invokes in configure stage. 2020-01-07 15:38:15 +01:00
twinaphex 3d80838754 Fix display server crashing on some platforms 2020-01-07 11:35:32 +01:00
Twinaphex 85f25574fb Merge pull request #9956 from ToadKing/fix-fullscreen
fix fullscreen button in packaged emscripten build
2020-01-07 11:33:29 +01:00
Twinaphex 2986e9ff37 Merge pull request #9954 from Derynect/fix_dispserv_null
fix null pointer deref in new dispserv_null code
2020-01-07 11:33:04 +01:00
Twinaphex 9b87456d3e Merge pull request #9955 from Derynect/dingux_flag_fix
Fixed flags for dingux target
2020-01-07 11:32:47 +01:00
Michael Lelli 8a64df5763 fix fullscreen button in packaged emscripten build 2020-01-06 21:36:44 -06:00
jovonna 376547044c fix null pointer deref in new dispserv_null code 2020-01-06 21:52:13 -05:00
jovonna 2b22eaa7e6 Fixed flags for dingux target 2020-01-06 21:33:53 -05:00
twinaphex da4c95531e Bump up version 2020-01-06 21:17:17 +01:00
Twinaphex 707aafa1e6 Update CHANGES.md 2020-01-06 20:36:52 +01:00
twinaphex e5169eee71 Remove menu/drivers/null.c - move it into menu/menu_driver.c 2020-01-06 20:23:58 +01:00
twinaphex 665b98bd28 (CTR) Buildfix 2020-01-06 20:09:59 +01:00
Twinaphex 0817fb3d18 Update CHANGES.md 2020-01-06 20:08:36 +01:00
Twinaphex 29e9546b7d Merge pull request #9949 from theheroGAC/patch-46
Update msg_hash_it.h
2020-01-06 20:08:16 +01:00
twinaphex 2653a9bed3 Update CHANGES.md 2020-01-06 19:05:28 +01:00
Twinaphex 72a44078ce Merge pull request #9950 from hasenbanck/sao-paulo
Add Brazil relay server in Sao Paulo.
2020-01-06 18:40:03 +01:00
twinaphex 501954c6f6 Forgot to bump this before 2020-01-06 18:32:58 +01:00
twinaphex fa7859ad13 (Gfx drivers context) Cleanup EGL calls 2020-01-06 18:27:18 +01:00
Nils Hasenbanck 600776012d Add Brazil relay server in Sao Paulo. 2020-01-06 18:14:59 +01:00
theheroGAC 37044dd387 Update msg_hash_it.h 2020-01-06 18:13:20 +01:00
twinaphex a11d955dd8 (INTL) Remove more duplicate English strings 2020-01-06 17:59:13 +01:00
theheroGAC c0daf56963 Update msg_hash_it.h 2020-01-06 17:54:16 +01:00
theheroGAC bbdf586f18 Update msg_hash_it.h 2020-01-06 17:34:12 +01:00
twinaphex 4a93cb2007 (Metal) Update pbxproj 2020-01-06 17:33:20 +01:00
twinaphex 203bea3fe6 (MIDI) Turn bunch of functions static
(Menu) Remove menu_display_null driver
2020-01-06 17:30:09 +01:00
twinaphex 641662d77c Remove led_null.c 2020-01-06 16:29:25 +01:00
twinaphex 2ad394148a Revert "Remove led_null.c"
This reverts commit bef72a19d0.
2020-01-06 16:22:11 +01:00
twinaphex bbd1e6a6a5 Get rid of separate null midi driver file and display server file 2020-01-06 16:06:42 +01:00
twinaphex bef72a19d0 Remove led_null.c 2020-01-06 16:01:05 +01:00
twinaphex 3efa83a646 Get rid of record null file 2020-01-06 15:59:03 +01:00
twinaphex 1d2150cb45 Remove drivers_hid/null_hid.c 2020-01-06 15:52:35 +01:00
twinaphex 56236f7372 Get rid of platform_null.c file 2020-01-06 15:35:35 +01:00
twinaphex 246863279a Get rid of null input and null joypad driver files 2020-01-06 15:28:11 +01:00
twinaphex a986b71947 Remove separate audio / video null driver files 2020-01-06 15:22:21 +01:00
Twinaphex 3eba8da4e9 Update CHANGES.md 2020-01-06 15:09:00 +01:00
Twinaphex 94261da70a Update CHANGES.md 2020-01-06 15:07:54 +01:00
twinaphex 5dcdee5faa Get rid of null camera file and null location file - and buildfix 2020-01-06 14:57:02 +01:00
twinaphex 8386c06e07 Fix issue #9368 on Linux - 'Show desktop menu on startup' does not
launch qt-ui
2020-01-06 14:48:41 +01:00
twinaphex 85d11eac30 Revert "(INTL) Remove duplicate English strings"
This reverts commit 755cc94489.
2020-01-06 14:09:07 +01:00
twinaphex 755cc94489 (INTL) Remove duplicate English strings 2020-01-06 14:06:34 +01:00
Mats A ef2ddf6912 fix breaking changes from the 3.0.0 libnx release 2020-01-06 13:12:00 +01:00
U-DESKTOP-LII42QK\andre 05c1f9c9aa Squashed commit of the following:
commit 830a69818c6a9496d950def3f68f59c7d3affcab
Author: celerizer <[email protected]>
Date:   Sun Jan 5 17:43:47 2020 -0600

    remove unneeded pointer

commit 034cc521004dd95816af69c9d02eec6b3db62d95
Author: celerizer <[email protected]>
Date:   Sun Jan 5 17:39:45 2020 -0600

    cleanup

commit 4317b9d04d3f86f215d9df8d41ac22a6a2705420
Author: celerizer <[email protected]>
Date:   Thu Jan 2 18:52:06 2020 -0600

    needs a lot of cleanup
2020-01-05 17:53:59 -06:00
twinaphex f97e557194 (DRM/EGL) Buildfix 2020-01-06 00:33:28 +01:00
twinaphex 0029598822 (ANGLE) Add MINGW32/MINGW64 detection 2020-01-05 21:46:19 +01:00
twinaphex e23cd0e7e7 (Dingux) Build/warning fix 2020-01-05 20:09:30 +01:00
twinaphex 4c9ae245a4 (ANGLE) Add x64 mingw DLLs for libEGL.dll/libGLESv2.dll 2020-01-05 20:03:15 +01:00
twinaphex 4380b73ca6 Add HAVE_DYNAMIC_EGL option 2020-01-05 19:14:47 +01:00
twinaphex fa2a748631 (DSound) Create dsound_set_wavefmt 2020-01-05 17:16:55 +01:00
twinaphex bdc866d6d5 (DSound/WASAPI) Cleanups 2020-01-05 17:08:50 +01:00
Guo Yunhe 0c2fbd178d Synchronize translations 2020-01-04 21:56:20 +02:00
Guo Yunhe 85814137ea Use JSON as format to connect with translation tools 2020-01-04 21:56:20 +02:00
Guo Yunhe 34792a3493 Fix C98 build error 2020-01-04 21:56:20 +02:00
Guo Yunhe 148e15bca0 Detect duplicated keys 2020-01-04 21:56:20 +02:00
Guo Yunhe a3806194ee Handle exceptions in intl/template.py 2020-01-04 21:56:20 +02:00
Guo Yunhe c4c8778017 Rebase 2020-01-04 21:56:20 +02:00
Guo Yunhe ecd117d80d Add translation update script 2020-01-04 21:56:19 +02:00
Twinaphex 554bbb5fd0 Update CHANGES.md 2020-01-04 20:12:49 +01:00
twinaphex 6e0971fc61 (EGL) Call EGL common calls 2020-01-04 19:58:57 +01:00
twinaphex d5cdfbb7ba Move all EGL functions to egl_common.c file 2020-01-04 19:22:02 +01:00
twinaphex 063986a4b3 (ANGLE) Angle gets separate EXE name 2020-01-04 19:05:23 +01:00
Twinaphex fdb859276b Update CHANGES.md 2020-01-04 18:55:07 +01:00
Twinaphex 9a14c28056 Merge pull request #9944 from dev-0x7C6/master
Fixed compiler invoke in configure stage.
2020-01-04 18:53:59 +01:00
Twinaphex 210833006f Merge pull request #9943 from Derynect/dingux
Initial port to dingux platform
2020-01-04 18:53:05 +01:00
Bartłomiej Burdukiewicz 4ca5af4ac9 Fixed compiler invoke in configure stage. 2020-01-04 18:27:58 +01:00
jovonna decd374c15 Initial port to dingux platform 2020-01-04 12:20:03 -05:00
twinaphex 1216c3ef6d (OSX/Metal) Buildfix 2020-01-04 17:44:33 +01:00
Twinaphex 0f72a07b9e Update CHANGES.md 2020-01-04 16:43:08 +01:00
Twinaphex c4fafaebec Merge pull request #9941 from graciborski/pl_translation_input_names
update Polish translations for input configuration
2020-01-04 16:42:20 +01:00
Twinaphex c0160095fa Merge pull request #9942 from libretro/fix_video_filters
Only use threads when the number > 1
2020-01-04 16:42:12 +01:00
Francisco José García García f559e931cf Only use threads when the number > 1 2020-01-04 16:36:54 +01:00
twinaphex f92a507a9b Change function signature of font_driver_render_msg 2020-01-04 16:24:14 +01:00
Grzegorz Raciborski be7e074856 update Polish translations for input configuration 2020-01-04 16:00:56 +01:00
twinaphex 3e1f56d57f Change function signature of win32_has_focus 2020-01-04 15:49:23 +01:00
Twinaphex aae2e6fd7d Merge pull request #9940 from jdgleaver/xmb-ozone-quick-menu-fix
(XMB/Ozone) Fix 'quick menu' detection
2020-01-04 15:40:27 +01:00
twinaphex 91baea201a Change function signature of win32_show_cursor 2020-01-04 15:40:02 +01:00
jdgleaver cf58c09d6e (XMB/Ozone) Fix 'quick menu' detection 2020-01-04 14:28:30 +00:00
twinaphex 53dbd69751 (EGL) Create egl_bind_api 2020-01-04 15:09:42 +01:00
twinaphex 3d950b2324 Optimize audio_mix_volume_SSE 2020-01-04 14:40:37 +01:00
twinaphex 96395f7d39 (Xenon) Update sound driver 2020-01-04 13:47:50 +01:00
twinaphex e4eb5a9bb9 (menu_networking) remove configuration.h dependency 2020-01-04 13:14:53 +01:00
twinaphex 27c45b1b7a (Menu_thumbnail) Get rid of settings_t dependency 2020-01-04 12:38:33 +01:00
twinaphex 278dc75285 (tasks) Fix samples 2020-01-04 12:07:58 +01:00
twinaphex 9c6c10da22 (Playlist) Get rid of settings_t dependency 2020-01-04 12:04:00 +01:00
twinaphex 1d6f547e7f (Audio) Cleanups 2020-01-04 10:39:33 +01:00
twinaphex ee7051891b (Audio) Update audio drivers to make them more uniform 2020-01-04 10:32:03 +01:00
twinaphex 22b789cca6 (OpenSL) Move nonblock conditional outside of loop 2020-01-04 09:52:10 +01:00
twinaphex 40a6c978ce (DSound) Optimize codepaths
(CoreAudio) Only iOS uses g_interrupted flag, put it behind ifdefs
2020-01-04 09:46:27 +01:00
twinaphex 688629d108 (WASAPI) Get rid of one unnecessary function 2020-01-04 09:09:04 +01:00
twinaphex 65e8b28d02 (WASAPI) Optimize -
- turn blocking variable into nonblocking in line with other audio drivers
- blocking codepath would do numerous conditional checks on
w->buffer, w->exclusive, w->blocking during a loop iteration - get rid
of this
2020-01-04 08:58:27 +01:00
Twinaphex 1561ed8022 Merge pull request #9938 from ToadKing/fix-indexer-permissions
fix file permissions on `indexer` script for emscripten
2020-01-04 00:25:35 +01:00
Michael Lelli 1630affbdd fix file permissions on indexer script for emscripten 2020-01-03 16:41:52 -06:00
twinaphex d88e37a2f1 (Audio resampler/Sinc) Don't do kaiser window check inside hot loop 2020-01-03 22:12:11 +01:00
twinaphex fa00cdba20 (Audio) Update 2020-01-03 21:54:09 +01:00
twinaphex 6c97a7514c (Vulkan) turn superfluous functions in vulkan_common.c into macros
to avoid unnecessary function overhead
2020-01-03 20:20:59 +01:00
Twinaphex 83057301c2 Merge pull request #9934 from ToadKing/fix-emscripten-images
fix images not loading in menu in emscripten
2020-01-03 18:42:59 +01:00
twinaphex 6e6fbc5ad3 (Dsound) Split up dsound_write
(XAudio) Optimize xa_write_nonblock
2020-01-03 14:19:31 +01:00
twinaphex d567b0ca25 (WASAPI) Split up write function - set up the write callback dynamically
based on whether exclusive and blocking is set to true or not
2020-01-03 13:56:45 +01:00
twinaphex 3667690027 Revert "Integer scale fix for windowed mode"
This reverts commit 4ec9fe5a57.
2020-01-03 13:56:44 +01:00
Twinaphex 2936b1940a Update CHANGES.md 2020-01-03 13:36:38 +01:00
Twinaphex 07700d77bd Merge pull request #9933 from driver1998/angle
Win32/UWP: D3D driver get_metrics support, D3D11 -> GL failback
2020-01-03 13:16:50 +01:00
Toad King 776568a429 fix images not loading in menu in emscripten
add changes to work with latest emscripten SDK
2020-01-02 21:29:25 -06:00
GH Cao 8f39fb2adf UWP: Use D3D11 driver by default 2020-01-03 09:46:27 +08:00
GH Cao 91ee8c8ee6 D3D11: Block 9_3 devices, implement gl failback 2020-01-03 09:44:24 +08:00
GH Cao a4e810795c D3D: Add get_metrics 2020-01-03 09:40:41 +08:00
GH Cao 0418e49757 Win32 MSVC2017: Disable ANGLE 2020-01-03 09:29:12 +08:00
Twinaphex 0096b9e6f0 Merge pull request #9929 from theheroGAC/patch-45
Update msg_hash_it.h
2020-01-03 01:55:12 +01:00
Twinaphex 47e1f0f2b1 Merge pull request #9932 from driver1998/angle
UWP: Save config on exit
2020-01-03 01:25:39 +01:00
GH Cao f2a64aa8e7 UWP: Save config on exit 2020-01-03 08:21:58 +08:00
Twinaphex c25e3ab3f9 Merge pull request #9931 from driver1998/angle
UWP: ANGLE prebuilt binaries, copy ANGLE in deployment / packaging
2020-01-02 23:24:07 +01:00
GH Cao b6d01ce448 UWP: Enable ANGLE for all platforms, copy ANGLE on deployment 2020-01-03 06:15:02 +08:00
GH Cao 090919490a UWP: Remove uwp_egl_create_surface
Because of 0e2265, this is not doing anything special anymore.
Remove it entirely and use common EGL surface creation instead.
2020-01-03 06:07:05 +08:00
GH Cao 2ba1f3547c UWP: Add ANGLE prebuilt binaries 2020-01-03 06:04:24 +08:00
theheroGAC 556fa9a499 Update msg_hash_it.h 2020-01-02 22:48:40 +01:00
theheroGAC ec3ab80da8 Update msg_hash_it.h 2020-01-02 22:33:40 +01:00
twinaphex 41e32ea949 (XAudio) If xa->nonblock is true - point write callback to
specialized version of the function
2020-01-02 20:33:21 +01:00
twinaphex 42c3072ff9 (Menu) Cleanups - rewrite code dependent on settings pointer
grabbing
2020-01-02 19:39:37 +01:00
Twinaphex 0b0ac03bed Merge pull request #9928 from Tatsuya79/patch-4
menu_setting increase run ahead frames range
2020-01-02 19:24:03 +01:00
Tatsuya79 ef8427cc23 menu_setting increase run ahead frames range 2020-01-02 19:12:58 +01:00
twinaphex c73daa6a1c (Discord) Remove settings_t dependency 2020-01-02 18:29:30 +01:00
twinaphex 6b6233944b Cleanups 2020-01-02 18:25:37 +01:00
twinaphex a6245185b9 (menu_driver.c) Cleanups 2020-01-02 18:21:43 +01:00
twinaphex bfd283e2a6 (INTL) CHT - Remove duplicate English strings 2020-01-02 18:11:19 +01:00
twinaphex 54675938ce (INTL) VN - Remove duplicate English strings 2020-01-02 18:05:28 +01:00
twinaphex 758a6c76ae Reduce dependence on settings_t struct 2020-01-02 17:52:37 +01:00
twinaphex 05d71ebb67 Start reducing dependency on settings struct 2020-01-02 17:41:52 +01:00
twinaphex 19406af87f Cleanups 2020-01-02 17:17:18 +01:00
twinaphex fa328c1590 (Netplay) Cleanups 2020-01-02 17:07:03 +01:00
twinaphex c4e04a6d09 Cleanups 2020-01-02 16:35:55 +01:00
Twinaphex b1579dd8d9 Update CHANGES.md 2020-01-02 15:41:15 +01:00
twinaphex 6ca24c412d (INTL) EL - Get rid of duplicate English strings 2020-01-02 15:36:31 +01:00
twinaphex fc4a5ad691 Revert "Configurable lobby URL"
This reverts commit cc0b7c42d1.
2020-01-02 15:30:50 +01:00
Twinaphex 4b183f84b2 Merge pull request #9926 from jdgleaver/3ds-race-assets
(3DS) Add build assets for RACE core
2020-01-02 14:23:36 +01:00
jdgleaver bf01a2d6e5 (3DS) Add build assets for RACE core 2020-01-02 12:57:56 +00:00
Twinaphex 4c38228359 Update CHANGES.md 2020-01-02 11:15:15 +01:00
Twinaphex ef9501a40d Merge pull request #9925 from jdgleaver/core-info-init
Ensure core info is always initialised when calling 'drivers_init()'
2020-01-02 11:09:54 +01:00
jdgleaver 195c9f6ab6 Ensure core info is always initialised when calling 'drivers_init()' 2020-01-02 09:49:05 +00:00
twinaphex cc0b7c42d1 Configurable lobby URL 2020-01-02 10:15:21 +01:00
twinaphex 4ec9fe5a57 Integer scale fix for windowed mode 2020-01-02 10:05:18 +01:00
twinaphex 643b3a73a4 (INTL) AR - Remove duplicate English strings 2020-01-02 09:48:55 +01:00
twinaphex dcd5dd6492 (INTL) JP - remove duplicate English strings 2020-01-02 09:41:07 +01:00
twinaphex 39db52b4f4 (Intl) Cleanup duplicate English strings 2020-01-02 09:36:38 +01:00
twinaphex 3955009b08 (Intl) Stat removing duplicate English text 2020-01-02 09:20:53 +01:00
twinaphex f1dc0b6d8e Update Disk Management labels 2020-01-02 08:57:10 +01:00
twinaphex a30e53d911 (Menu) Add password settings to Netplay Hosting submenu 2020-01-02 07:00:27 +01:00
twinaphex 568c55aca2 (Menu) Rearrange Recording settings 2020-01-02 06:58:23 +01:00
Twinaphex 62af393cd8 Update build.gradle 2020-01-02 03:16:32 +01:00
Twinaphex 7ed61ca766 Update build.gradle 2020-01-02 03:16:19 +01:00
twinaphex f9580c245d (Android) Add .ra64 2020-01-01 15:16:23 +01:00
twinaphex 88b28b6458 Add ANGLE UWP x64 DLLs 2020-01-01 11:59:16 +01:00
twinaphex 7c63889b26 Move static inline functions over to input_bind_dialog.c - were
not used elsewhere
2020-01-01 10:53:36 +01:00
twinaphex 55de2803a4 Turn some input functions static 2020-01-01 10:22:29 +01:00
twinaphex 4de34a53e7 Turn input_driver_grab_mouse/input_driver_ungrab_mouse static 2020-01-01 09:22:23 +01:00
twinaphex 0e22651c48 (UWP) Not setting EGLRenderResolutionScaleProperty fixes DPI scaling issues 2020-01-01 00:21:06 +01:00
twinaphex fa6ce5bc68 Add ANGLE UWP x64 libEGL/libGLESv2 static libs 2019-12-31 19:25:58 +01:00
Twinaphex db7431f3fa Merge pull request #9921 from libretro/revert-9898-kivutar/fixprs
Revert "Don't try to import secret certificates during PRs"
2019-12-31 18:29:10 +01:00
Twinaphex 7747e3a6b4 Revert "Don't try to import secret certificates during PRs" 2019-12-31 18:28:59 +01:00
Twinaphex 0d2d8f4d41 Merge pull request #9919 from Stevoisiak/patch-1
Remove unnecessary escape character
2019-12-31 18:16:41 +01:00
Stevoisiak f4f339c4d5 Remove unnecessary escape character
http://eslint.org/docs/rules/no-useless-escape
2019-12-31 12:13:40 -05:00
Twinaphex 48fddcb7bd Merge pull request #9918 from Stevoisiak/posix-undefined-brackets
Replace [[ ]] with [ ] for POSIX compatibility
2019-12-31 17:39:33 +01:00
Stevoisiak 0a6f6cb281 Replace [[ ]] with [ ] for POSIX compatibility
Double brackets are not compatible with all POSIX compliant shells. Replaced with single brackets.

http://mywiki.wooledge.org/BashFAQ/031
2019-12-31 11:31:55 -05:00
Twinaphex eb51b0c383 Update CHANGES.md 2019-12-31 13:47:15 +01:00
Twinaphex 5f1fcf51a6 Merge pull request #9916 from jdgleaver/filebrowser-fix
(Filebrowser) Fix file selection issues when starting from (or navigating to) the top level directory
2019-12-31 13:46:27 +01:00
jdgleaver 569014c5d2 (Filebrowser) Fix file selection issues when starting from (or navigating to) the top level directory 2019-12-31 12:34:03 +00:00
twinaphex 1d6ebacfaa (MSVC 2017 UWP) Start adding separate configurations for ANGLE 2019-12-31 13:21:09 +01:00
Twinaphex 80f494b961 Update CHANGES.md 2019-12-30 17:09:11 +01:00
Twinaphex f4d1732137 Merge pull request #9915 from Jamiras/cheevos_unsupported_core
(cheevos) don't count unsupported achievements as unlocked
2019-12-30 17:08:50 +01:00
Twinaphex 2fc3a6fc1a Update CHANGES.md 2019-12-30 16:56:11 +01:00
Twinaphex dc8f8cd401 Update CHANGES.md 2019-12-30 16:34:26 +01:00
twinaphex 88c331ea99 (Menu) Add missing textures 2019-12-30 15:05:23 +01:00
Twinaphex 9d16264ba1 Merge pull request #9914 from jdgleaver/3ds-buildfix
(3DS) Theodore buildfix
2019-12-30 14:03:04 +01:00
twinaphex d809cc6a31 Buildfix for non-networking targets 2019-12-30 14:02:41 +01:00
jdgleaver 5c0cca9783 (3DS) Theodore buildfix 2019-12-30 12:57:57 +00:00
twinaphex a0e7fe19af (MSVC 2010) Buildfix 2019-12-30 09:47:58 +01:00
Twinaphex 960ff23843 Remove unused variable 2019-12-30 08:27:39 +01:00
twinaphex 0996e13352 Add subsystem settings list to menu_displaylist_build_list 2019-12-30 08:05:14 +01:00
twinaphex 81972149fc Submenu system is now properly hidden 2019-12-30 08:02:13 +01:00
twinaphex 48af253a06 (Menu) This macro is no longer used 2019-12-30 07:48:55 +01:00
twinaphex 1e45692f0b Create HAS_SET_SUBSYSTEMS for rarch_ctl 2019-12-30 07:46:33 +01:00
twinaphex 096a420e7b Update CHANGES.md 2019-12-30 07:04:42 +01:00
twinaphex ecb3301b19 (hosting submenu) Set include_everything to false 2019-12-30 07:01:24 +01:00
twinaphex ad397671a7 Add warning about globals 2019-12-30 06:50:25 +01:00
twinaphex 8b5db9fdaf Add return value to menu_displaylist_netplay_refresh_rooms 2019-12-30 06:48:10 +01:00
twinaphex 4137273002 Move netplay_refresh_rooms_menu to menu_displaylist.c and rename
it menu_displaylist_netplay_refresh_rooms
2019-12-30 06:44:14 +01:00
twinaphex f6db9ce04d Move menu_subsystem_populate to menu_displaylist.c 2019-12-30 05:57:32 +01:00
twinaphex 106c912eb5 (Netplay hosting)
- Remove clear
- Use index offset variable
2019-12-30 05:49:45 +01:00
twinaphex 3fe8806018 (Subsystem Settings) Create separate subsystem settings list - will
be selectively hidden later based on whether subsystems are implemented
for the core
2019-12-30 05:43:48 +01:00
twinaphex f3742a101c Change function signature on subsystem function 2019-12-30 05:17:31 +01:00
Jamiras b09a22360c don't count unsupported achievements as unlocked 2019-12-29 20:50:55 -07:00
Twinaphex f01afe72c6 Update msg_hash_ru.h 2019-12-30 04:47:38 +01:00
twinaphex a2fd581dad Add HAVE_NETWORKING ifdef 2019-12-30 04:43:42 +01:00
twinaphex 2169a25b0a Create Netplay Hosting submenu 2019-12-30 03:01:52 +01:00
twinaphex fdd4915718 Add Network Settings to Netplay tab 2019-12-30 02:22:23 +01:00
Twinaphex 9e9fa1f7df Update CHANGES.md 2019-12-29 22:44:05 +01:00
Twinaphex 5e8ab7b287 Update CHANGES.md 2019-12-29 22:43:40 +01:00
Twinaphex 0e47f4efb8 Update CHANGES.md 2019-12-29 19:17:40 +01:00
Twinaphex 080b3ea184 Update CHANGES.md 2019-12-29 19:17:05 +01:00
Twinaphex 13d44720e0 Update CHANGES.md 2019-12-29 19:16:38 +01:00
Twinaphex 57f5d04126 Merge pull request #9911 from jdgleaver/vulkan-font-fix
(Vulkan) Fix font driver 'vulkan_get_message_width()' function
2019-12-29 17:32:39 +01:00
Twinaphex 463d68163e Merge pull request #9680 from IlDucci/master
Additional revision of the Spanish translation
2019-12-29 17:32:31 +01:00
jdgleaver 7ad4becedb (Vulkan) Fix font driver 'vulkan_get_message_width()' function 2019-12-29 14:44:07 +00:00
Francisco José García García 7fa6247770 (VITA) Re-add online updater 2019-12-29 14:24:17 +01:00
Twinaphex 17c827adfb Merge pull request #9898 from libretro/kivutar/fixprs
Don't try to import secret certificates during PRs
2019-12-29 04:53:56 +01:00
Twinaphex a30a53f12a Update CHANGES.md 2019-12-28 09:53:01 +01:00
Twinaphex 7e83f4a531 Merge pull request #9905 from Jamiras/cheevos_invalid_reset
don't reset triggers/lboards that failed to load
2019-12-28 09:50:58 +01:00
Jamiras 3c3e6978b8 don't reset triggers/lboards that failed to load 2019-12-27 19:03:40 -07:00
Twinaphex 19f53d96a2 Update CHANGES.md 2019-12-27 19:47:35 +01:00
Twinaphex 98618c052b Merge pull request #9900 from CheezeCake/fix-double-free
fix potential double free error
2019-12-27 19:47:08 +01:00
Emmanuel Nicolet 69e5e97bdf fix potential double free error 2019-12-27 12:04:01 +01:00
Twinaphex 99850df96e Update Makefile.vita 2019-12-27 09:39:31 +01:00
Jean-André Santoni dd658a05b4 Don't try to import secret certificates during PRs 2019-12-27 10:16:04 +07:00
Twinaphex 3ce38ffe91 Update CHANGES.md 2019-12-26 18:57:20 +01:00
Twinaphex 89b04d255e Merge pull request #9895 from Jamiras/cheevos_invalid_addaddr
(cheevos) don't disable achievement when AddAddress generates an out-of-range address
2019-12-26 18:56:48 +01:00
Jamiras 410e94aa89 don't disable achievement when AddAddress generates an out-of-range address 2019-12-26 10:15:36 -07:00
Twinaphex 7c8d831497 Merge pull request #9892 from hizzlekizzle/master
make build all/uninstall scripts work with TARGET renaming
2019-12-26 04:59:05 +01:00
hunterk c84d02830c make build all/uninstall scripts work with TARGET renaming 2019-12-25 21:54:34 -06:00
twinaphex b3e8d6e9ca Remove this check - hope it solves the PNG inversion color issues with
VideoCore GPUs
2019-12-26 04:05:51 +01:00
Twinaphex cf97f39cac Update .travis.yml 2019-12-25 21:26:17 +01:00
IlDucci 96fd6f8617 Translated the latest additions to US language into Spanish. 2019-12-25 12:19:10 +01:00
IlDucci cde4ecd08b Update msg_hash_es.h according to the latest changes on the US file. 2019-12-25 12:08:31 +01:00
IlDucci a05ebd4bbc Updating msg_hash_es.h with the latest changes on the US equivalent. 2019-12-25 12:08:31 +01:00
IlDucci 9e749ee63a Update msg_hash_es.h 2019-12-25 12:08:31 +01:00
IlDucci e785bff78d Update msg_hash_es.h
- Added a missing string.
 - Moved the Sunbeam title to the corresponding place.
2019-12-25 12:08:30 +01:00
IlDucci 3aedbe6989 Additional revision of the Spanish translation
- Decided that all instances of "Refresh rate" will be translated as "frecuencia de actualización", not "tasa de refresco". Used Windows' official translation as a reference.
 - Minor typo corrections and tweaks.
 - Unified certain phrasings in the Settings sublabels.
2019-12-25 12:08:30 +01:00
Twinaphex b6a45645d8 Update AndroidManifest.xml 2019-12-25 09:33:43 +01:00
Twinaphex 3d3c848ba7 Update AndroidManifest.xml 2019-12-25 09:33:27 +01:00
twinaphex c98dc7ef34 Update CHANGES.md 2019-12-25 09:15:46 +01:00
twinaphex 586f54a0f7 Fix C89_BUILD 2019-12-25 09:08:50 +01:00
twinaphex 75f3a79aa6 (MaterialUI) Add icons 2019-12-25 08:49:52 +01:00
Twinaphex 27c3c1f684 Update CHANGES.md 2019-12-25 08:37:01 +01:00
Twinaphex 5ee803682f Update CHANGES.md 2019-12-25 08:36:46 +01:00
Twinaphex e52daa8602 - use MIN macro instead of min for portability
- remove unused variable
2019-12-25 08:31:18 +01:00
twinaphex 65cddce865 (OSX/iOS) Forcibly disable Threaded Video until UIWindow/NSWindow
concurrency issues are fixed
2019-12-25 08:28:43 +01:00
twinaphex 973ae36fe5 (MaterialUI) Add missing icons 2019-12-25 08:24:08 +01:00
Twinaphex 7b1819e988 Update CHANGES.md 2019-12-25 07:43:45 +01:00
twinaphex 538f0c534f Backport Added alternate Turbo-Mode 'Single Button' -
For systems supporting only a single button, the turbo-button will toggle firing that button without the need to hold it.
When holding the button turbo will be suspended and resumed when the button is released. Holding the button may have a different function to just tapping it, e.g. charging the beam in R-Type on C64/Amiga.
The original implementation in RA is named 'Classic' because I have no
idea where it originates from.
2019-12-25 07:13:01 +01:00
twinaphex 921e470b05 Bump up to 1.8.2 2019-12-25 07:00:45 +01:00
Twinaphex ea4e5ab9ef Merge pull request #9889 from fpscan/turkish
Turkish language updates
2019-12-24 23:25:04 +01:00
Ömercan Kömür 96d0de4e7c Update msg_hash_tr.h
update for 1.8.2
2019-12-25 00:44:45 +03:00
Ömercan Kömür 04bd684258 Merge pull request #2 from libretro/master
updates
2019-12-25 00:27:33 +03:00
twinaphex 58852ec9bb (Menu) Selectively hide 'Disallow Non-Slave Mode Clients' if 'Allow SLave-Mode
Clients' is disabled
2019-12-24 17:38:07 +01:00
twinaphex e4fcce118c (Menu) Hide 'Show desktop menu on startup' if 'Desktop menu' setting
itself is disabled
2019-12-24 17:24:48 +01:00
twinaphex ef149605cd (Menu) Reimplement Quick Menu - > Shaders -> Watch shader files for
changes - can now be turned on/off through touch
2019-12-24 17:19:23 +01:00
Twinaphex c240449b10 Merge pull request #9888 from hasenbanck/ass-fix
Fix ASS rendering assertion on seeking.
2019-12-24 16:56:32 +01:00
twinaphex 8d63faa74d C89_BUILD fix 2019-12-24 16:53:13 +01:00
Nils Hasenbanck 226f2d52ff Fix ASS rendering assertion on seeking.
ASS needs some locking.
2019-12-24 12:16:52 +01:00
twinaphex 1165f8dfe9 (Menu) Remove duplicates 2019-12-24 08:29:06 +01:00
twinaphex 4e34611d1d (Menu) Add title for Remap Binds Port 2019-12-24 08:10:20 +01:00
twinaphex 0df043aff1 (Menu) Refactor Quick Menu - Controls - each port now has its own
submenu
2019-12-24 07:36:01 +01:00
twinaphex 9573b53390 Put ifdefs around core_updater_list_free_cached for targets
that don't define HAVE_NETWORKING
2019-12-24 05:36:54 +01:00
twinaphex ca0edad8c2 (Menu) don't hide logging settings anymore 2019-12-24 05:29:15 +01:00
twinaphex f47b07e35a (Menu) Quick Menu - Cheats - Delete All no longer requires five
right button presses - this should fix this functionality for mobile
touch users too
2019-12-24 05:13:24 +01:00
Twinaphex 45db2122c9 Merge pull request #9887 from WeedyWeedSmoker/French-update
French update - core updater newest additions!
2019-12-24 04:58:38 +01:00
twinaphex d33624c623 (Menu) Hide Refresh Rate options when Threaded Video is enabled -
these settings do nothing with Threaded Video
2019-12-24 04:29:12 +01:00
twinaphex abb1b28e96 Hide Logging Verbosity levels behind Logging Verbosity 2019-12-24 04:18:38 +01:00
twinaphex a19da4bf22 (Menu) No longer hide Logging behind Advanced 2019-12-24 04:09:34 +01:00
Weedy Weed Smoker 347cb15722 French update - core updater newest additions! 2019-12-24 09:53:57 +07:00
twinaphex 20f3b8d404 Buildfix for non-shader targets 2019-12-24 03:15:51 +01:00
twinaphex 31a7f2b4d9 Add missing ifdef 2019-12-24 02:17:48 +01:00
twinaphex e5a6517897 (MSVC UWP) Generate new pfx key 2019-12-23 23:04:56 +01:00
twinaphex 80f3f99845 Merge branch 'master' of https://github.com/libretro/RetroArch 2019-12-23 20:18:35 +01:00
Twinaphex 4322d0c3fe Merge pull request #9885 from jdgleaver/core-update
(Core Updater) Only download when new core is available + add option to update all installed cores
2019-12-23 20:02:43 +01:00
twinaphex 764f1d846e Merge branch 'master' of https://github.com/libretro/RetroArch 2019-12-23 19:58:42 +01:00
Twinaphex 1d0be580c5 (Menu) Remove unused variables 2019-12-23 19:43:09 +01:00
twinaphex 44f2986665 Merge branch 'master' of https://github.com/libretro/RetroArch 2019-12-23 19:19:26 +01:00
Twinaphex 9d6490e38a Merge pull request #9881 from hasenbanck/no-video-fifo
Remove video fifo in ffmpeg core.
2019-12-23 19:18:59 +01:00
twinaphex 7aa914fde7 Merge branch 'no-video-fifo' of git://github.com/hasenbanck/RetroArch 2019-12-23 19:04:54 +01:00
Twinaphex 0930cd29fb Merge pull request #9884 from WeedyWeedSmoker/French-update
French translation - Latest additions!
2019-12-23 18:56:12 +01:00
jdgleaver 695749f155 (Core Updater) Only download when new core is available + add option to update all installed cores 2019-12-23 17:34:44 +00:00
Weedy Weed Smoker 3ca8623b29 French translation - Latest additions! 2019-12-23 22:41:49 +07:00
Nils Hasenbanck c6309d963d Remove video fifo in ffmpeg core.
The video fifo can be removed, since we have a ring buffer in it's
place. This removes unneeded copy operations and as a positive side
improves overall decoding speed.

Makes 8k60p SW and 4k60p HW decoding possible on my system.

For now the ring buffer is 32 images deep. This limitation will
be removed, once audio and video decoder have their own
packet handling.
2019-12-23 16:07:34 +01:00
twinaphex 305aee2c33 (Menu) Get rid of 'Port Number' label for Port Binds screen 2019-12-23 08:21:44 +01:00
twinaphex cbcdfa572a (Mobile) Should no longer crash when clicking on a cheat entry 2019-12-23 07:49:29 +01:00
twinaphex 2512365012 (Menu) Displaylist - Get rid of global 2019-12-23 06:34:58 +01:00
twinaphex 9988bae6f4 (Shader) Implement shader parameter action OK callbacks 2019-12-23 05:39:10 +01:00
twinaphex 18f2b9c63e Reimplement shader preset parameter functions 2019-12-22 22:45:08 +01:00
twinaphex b5cc71720c (Menu) Move FORCE_SRGB_DISABLE to Video Output 2019-12-22 22:10:45 +01:00
twinaphex 6eed40f80c More warning fixes for non-shader target platforms 2019-12-22 08:18:00 +01:00
twinaphex e93d90bc45 Fix build on platforms that don't have shader support 2019-12-22 08:12:42 +01:00
twinaphex d057d2a202 (Menu) Implement action OK callback for Quick Menu -> Shaders -> Passes 2019-12-22 07:14:20 +01:00
twinaphex cb67ace703 (Menu) Hide Windowed Mode settings selectively 2019-12-22 06:26:42 +01:00
twinaphex 759724facb (Menu) Hide Fullscreen Mode settings if windowed mode is not supported
by context driver
2019-12-22 06:22:05 +01:00
twinaphex 3033491f3d Turn HAVE_EASTEREGG into HAVE_GONG 2019-12-22 03:08:02 +01:00
twinaphex 751ff8f72c (Menu) Selectively hide Network Command Port 2019-12-21 21:08:37 +01:00
twinaphex d6d76a53b9 (Menu) Selectively hide Relay Server Location 2019-12-21 19:56:33 +01:00
twinaphex 3224eefdf1 (Menu) Selectively hide Video Layout 2019-12-21 18:39:34 +01:00
twinaphex 776ae626a6 (Menu) User Interface - selectively hide Kiosk Mode Password 2019-12-21 18:23:25 +01:00
twinaphex 8ad44acc5d (Menu) Action start callback - do a refresh at the end 2019-12-21 18:13:01 +01:00
twinaphex ecbbf1e3bb (Menu) Selectively hide Settings -> Accessibility 2019-12-21 17:59:56 +01:00
twinaphex 2d31377ba8 (Menu) User Interface -> Appearance - Selectively hide XMB Horizontal
Animation setting
2019-12-21 17:49:39 +01:00
twinaphex e55692d74f (Desktop Menu) Prevent hidden settings for desktop menu -
add third parameter that when set to true, will include everything
in the list - this way we can show greyed out settings
2019-12-21 17:33:50 +01:00
twinaphex 6164e33b07 (Menu) Settings -> Playlists - more selective hiding 2019-12-21 17:22:43 +01:00
twinaphex 4850cc0f97 (Menu) Aspect Ratio - implement dropdown box again 2019-12-21 16:54:42 +01:00
twinaphex 5674c46f38 (Menu) Don't hide Config Aspect Ratio for advanced 2019-12-21 16:44:47 +01:00
twinaphex a33280b08e (Menu) Implement touch/OK callbacks 2019-12-21 07:00:27 +01:00
twinaphex 48799b73d5 Standardize function signature for action_select 2019-12-21 06:01:38 +01:00
twinaphex 7c028596fb (Menu) Selectively hide Overlay Settings and Rewind 2019-12-21 05:35:46 +01:00
twinaphex d93200d2eb (Menu) Selectively hide 'Rewind' settings 2019-12-21 05:27:42 +01:00
twinaphex aafee65238 (Menu) Selectively hide 'FPS Update Interval' 2019-12-21 05:22:18 +01:00
twinaphex f5a7504c38 (Menu) Selectively hide Onscreen Notifications BG Color Settings 2019-12-21 05:10:22 +01:00
twinaphex ef4d24600e (Menu) Settings -> Logging - Hide 'Log To File Timestamp' if 'Log To File' is disabled 2019-12-21 04:49:30 +01:00
twinaphex 28ec64e200 (Menu) Video -> Scaling - Hide Custom Viewport X/Y when Integer
Scale is enabled as description indicates
2019-12-21 04:32:56 +01:00
twinaphex 1fcded67ef (Menu) Achievement submenu - selectively hide 2019-12-21 03:10:15 +01:00
twinaphex 3be60539ce (Menu) Aspect ratio - selectively hide/show values based on whether
you have Custom or Config selected
2019-12-21 01:27:28 +01:00
twinaphex 779c0a01d3 Selectively hide Hard Sync 2019-12-21 00:39:30 +01:00
twinaphex e1a5b80ae1 (Menu) Implement selective hiding for VSync and Hard Sync 2019-12-21 00:24:29 +01:00
twinaphex 021102c62d (Menu) Runahead global setting now hides the related options 2019-12-20 23:10:35 +01:00
twinaphex de1e66f7a9 (Menu) Add Input -> Haptic Feedback submenu 2019-12-20 20:49:30 +01:00
twinaphex 13793885f3 (Menu) Add Input -> Menu Controls settings submenu 2019-12-20 19:24:35 +01:00
twinaphex cdeef9dc95 (Menu) Implement action OK for Bind Hold, Turbo Period and Duty Cycle 2019-12-20 15:29:15 +01:00
twinaphex 55400e9b42 (Menu) Max Swapchain Images - implement action OK callback 2019-12-20 15:18:44 +01:00
twinaphex 110bc5abbe (Menu) Settings - Implement action OK callback for custom viewport width/height 2019-12-20 15:14:13 +01:00
twinaphex 21ffbc0cca (Menu) Netplay submenu - don't show 'No Settings found'
(Menu/Misc) Some more icons
2019-12-20 14:37:44 +01:00
twinaphex 559c6df0c3 (Desktop Menu) Cleanups 2019-12-20 14:19:11 +01:00
twinaphex b7b0348c3c (Desktop Menu) Input -> Hotkey Binds refactor 2019-12-20 14:17:16 +01:00
twinaphex 779b8b32cf Move 'Press Quit Twice' and 'Menu Toggle Gamepad Combo' to Input ->
Hotkey Binds
2019-12-20 13:56:31 +01:00
twinaphex a73555f672 (Menu) Add sublabel for Video Output submenu 2019-12-20 13:50:20 +01:00
twinaphex 03d0e0d799 (MaterialUI) Add icons for submenus 2019-12-20 13:48:38 +01:00
twinaphex 64597e47c6 (Menu Usability) If 'Favorites Tab' is disabled, don't show
'Add To Favorites' option in Quick Menu/Playlist menu
2019-12-20 07:21:15 +01:00
twinaphex 6713c6ebed (Menu) If On-Demand Thumbnail Downloader is enabled, hide
'Download Thumbnails' from playlist menu screen
2019-12-20 07:15:04 +01:00
twinaphex 051342cc8b Rewrite win32_get_video_output 2019-12-20 07:15:03 +01:00
Twinaphex 94cf920751 Merge pull request #9879 from Jamiras/cdfs_track_start
proper calculation of offset to track 2 when sector sizes vary
2019-12-20 04:02:53 +01:00
twinaphex dcac9de58b Add Audio Driver setting to Audio -> Output 2019-12-20 02:30:05 +01:00
twinaphex 23ce202d38 (Menu) Add Audio -> Resampler settings 2019-12-20 02:16:31 +01:00
Twinaphex 362dd7241a Merge pull request #9878 from Jamiras/cheevos_segacd_bin_hash
(cheevos) fix hashing of raw bin file for Sega CD
2019-12-20 01:19:13 +01:00
twinaphex 94907678eb (Menu) Add Audio -> output and Audio -> Synchronization 2019-12-20 01:18:28 +01:00
Jamiras 9cb94e00b0 fix hashing of raw bin file for sega cd 2019-12-19 13:19:43 -07:00
Jamiras 3b4e55d0e5 proper calculation of offset to track 2 when sector sizes vary 2019-12-19 13:17:32 -07:00
Twinaphex 8779151fef Merge pull request #9877 from DEX357/patch-49
Update msg_hash_pl.h
2019-12-19 21:04:38 +01:00
twinaphex 923c19356b (ffmpeg) - Fix CXX_BUILD errors - see
https://github.com/ZoneMinder/zoneminder/blob/master/src/zm_ffmpeg.h
(comment on av_err2str)
2019-12-19 20:43:59 +01:00
DEX357 3d95f3c7b1 Update msg_hash_pl.h
Please fix the displayed translations
2019-12-19 20:37:30 +01:00
twinaphex 6f6bd95a84 move Crop Overscan to Video Scaling; add Sync to Exact Content Framerate
option to Video Synchronization
2019-12-19 20:00:19 +01:00
twinaphex aa537310ad (Menu) Create Video -> Synchronization 2019-12-19 19:39:02 +01:00
twinaphex 39ebd6e8d1 (Settings) Add Video -> Output 2019-12-19 19:15:57 +01:00
twinaphex faf8c83f54 (Menu) Set video submenu titles 2019-12-19 19:01:32 +01:00
twinaphex e8babede53 (Menu) Create Settings -> Video -> Fullscreen and Windowed submenus 2019-12-19 18:53:51 +01:00
twinaphex 36af159991 (Menu) Settings - Video - Add Scaling subsection 2019-12-19 18:22:22 +01:00
twinaphex 7150d6ef59 Bind start callback for playlist entries in Playlist Screen 2019-12-19 16:37:39 +01:00
twinaphex 2a500baaca Change start callback signatuer to OK callback signature 2019-12-19 16:30:53 +01:00
twinaphex cb85b3e8dd Put this behind ifdef 2019-12-19 13:24:39 +01:00
Twinaphex ea9d5e3a5e Merge pull request #9875 from negativeExponent/patch-1
Fix heap-use-after-free found when using asan
2019-12-18 23:31:56 +01:00
negativeExponent d96409ff37 Fix heap-use-after-free found when using asan
Fix https://github.com/libretro/RetroArch/issues/9871
2019-12-19 04:44:34 +08:00
Twinaphex 95e11234a7 Merge pull request #9874 from fpscan/3ds-missing-images
3ds missing images
2019-12-18 19:07:41 +01:00
Ömercan Kömür 97329367e4 Merge pull request #1 from fpscan/master
Add files via upload
2019-12-18 20:59:51 +03:00
Ömercan Kömür 4217369709 Add files via upload
@SpardaXV works.
2019-12-18 20:58:03 +03:00
Ömercan Kömür 09832d09fb Update Makefile.cores 2019-12-18 20:56:59 +03:00
twinaphex 168395af74 (libretro-common) Update 2019-12-18 18:25:54 +01:00
twinaphex 60b182b821 Promote tpool as libretro-common component 2019-12-18 18:21:03 +01:00
twinaphex 587a56026e Disable HAVE_UPDATE_CORES for Steam too 2019-12-18 18:13:05 +01:00
twinaphex 3e8e6d35d6 (tpool.c) Code style nits 2019-12-18 18:11:18 +01:00
twinaphex 9a7a8efb39 Hide this setting behind HAVE_UPDATE_CORES 2019-12-18 17:45:14 +01:00
Twinaphex 4db4d5e8bc Merge pull request #9869 from hasenbanck/frame-conversion
FFMPEG core frame based color conversion
2019-12-18 15:55:24 +01:00
Nils Hasenbanck d046594591 Fix ffmpeg core memory leak when using pthreads. 2019-12-18 15:05:01 +01:00
Nils Hasenbanck 417d1b7de7 Color space conversion using frame based MT.
Using a ordered ring buffer and a thread pool, the color space
conversion is not multi-threaded based on frames. I tried
to implement slice based threading, but libswscale did produced
highly distorted pictures without obvious reason.

This approach introduces some more "lag" when decoding and skipping,
but shouldn't be affect the user negatively, since movie
watching is not lag sensitive, as long as the A/V is synchronized.

Change default to software decoding.

SW decoding is the most robust and fasted method of decoding right now.
Users should enable hw based decoding if their system requires it
and it's actually beneficial for them.

Fix deadlocks when seeking and decrease RAM usage.

Decrease memory allocation by reusing AVFrames.
2019-12-18 11:46:49 +01:00
Twinaphex a88e6f4e1f Merge pull request #9867 from jdgleaver/ozone-fullscreen-thumbs
(Ozone) Add fullscreen thumbnail viewer
2019-12-17 22:24:17 +01:00
Hans-Kristian Arntzen 96723c6f70 Vulkan/Android: Workaround weird WSI return codes in landscape mode.
Android WSI wants you to use preTransform, and if it is not used
correctly, Android 10 will return VK_SUBOPTIMAL_KHR, and we would create
a new swapchain every frame.

This workaround just ignores this error, since it's not really an error.
A more "proper" fix is to use prerotate and modify the MVP matrices,
which might help certain devices with crummy display processors.
2019-12-17 19:08:20 +01:00
Twinaphex 5062374c72 Merge pull request #9868 from jdgleaver/database-fix
Fix database entry display
2019-12-17 15:25:26 +01:00
jdgleaver 76bb0031cb Fix database entry display 2019-12-17 14:07:35 +00:00
jdgleaver 8ba17dd985 (Ozone) Add fullscreen thumbnail viewer 2019-12-17 11:41:01 +00:00
Hans-Kristian Arntzen 4437cd1eac Attempt to workaround odd crashes in glslang.
I accidentally managed to reproduce an issue which has been plaguing
users for a while, where glslang throws an assert after closing a game
(and starting a new one).

pthread_setspecific was somehow failing with an EINVAL call, despite the
key never having been freed. I suspect some kind of corruption happening
when dynamic libraries are unloaded, but I doubt this is a bug in either
RetroArch or glslang per-se.

My workaround here is to tear down all TLS use in glslang after we're
done compiling. Somehow this works around the problem for me, and I
don't really see another viable fix. Valgrind does not say anything about the
issue, so doubt it's memory corruption either.

I had to fix a minor TLS leak in glslang as DetachProcess does not free
the PoolIndex TLS.
2019-12-16 22:27:13 +01:00
Twinaphex 3cfed7ba01 Merge pull request #9677 from orbea/travis
travis: Log configure arguments + use before_script.
2019-12-16 14:40:17 +01:00
Twinaphex e9a264217a Merge pull request #9860 from Themaister/master
Android/Vulkan: Recreate swapchain on orientation change.
2019-12-15 16:51:55 +01:00
Themaister 15ffffa835 Android/Vulkan: Recreate swapchain on orientation change.
ANativeWindow getWidth/Height does not detect any changes when using
Vulkan, so use the old onContentRectChanged callback to get notified
when size changed. Use those values instead when figuring out how large
swapchain to create.

Tested trivially on Galaxy S9+ Exynos model.
2019-12-15 16:46:41 +01:00
twinaphex 79ce997156 Fix potential bug with analog deadzones - should be fabs 2019-12-15 16:21:27 +01:00
Twinaphex 15838c2850 Merge pull request #9858 from ToadKing/emscripten-upgrades
fix bug in emscripten input code
2019-12-15 15:40:00 +01:00
Francisco José García García 0545c42db9 (Vita) Fix duplicate symbols with some cores 2019-12-15 11:05:22 +01:00
Toad King f3001c9bba fix bug in emscripten input code 2019-12-14 20:57:10 -06:00
Twinaphex 42aa83b2a5 Merge pull request #9857 from ToadKing/emscripten-upgrades
changes to support upgraded emscripten SDK
2019-12-15 03:32:13 +01:00
Toad King 15e8be4074 changes to support upgraded emscripten SDK 2019-12-14 20:24:41 -06:00
ThePhxRises 3c27300a4e [VITA] Enable touch regardless of MiniVitaTV 2019-12-14 20:50:17 +01:00
ThePhxRises 65f406a39e [VITA] MiniVitaTV Support
Set kernel model manually with sceCtrlIsMultiControllerSupported()
2019-12-14 20:50:17 +01:00
Twinaphex 0d06dfa948 Merge pull request #9854 from frangarcj/upstream
(VITA) Fixes for non working cores and VITA2D (GXM) Improvements
2019-12-14 16:07:03 +01:00
Francisco José García García b4be7b0c74 (Vita) Several improvements to vita2d driver 2019-12-14 14:11:47 +01:00
Francisco José García García 9ad874eef8 (Vita) Add new function to draw textured arrays of vertices 2019-12-14 14:11:47 +01:00
Francisco José García García d52f3ba3e9 (Vita) Fix clipping and reduce number of calls 2019-12-14 14:11:46 +01:00
Francisco José García García 3d44faf6c3 (Vita) New set viewport function 2019-12-14 14:11:46 +01:00
Francisco José García García 8ad3cb14f8 (Vita) Changes for new tint shaders 2019-12-14 14:11:46 +01:00
Francisco José García García 0be7e96437 (Vita) Disable lto 2019-12-14 14:11:46 +01:00
Francisco José García García d1aa7dbedc Disable not compilable sqrtfv_neon 2019-12-14 14:11:46 +01:00
Francisco José García García eef7611cf1 Fix for duplicated error symbol 2019-12-14 14:11:46 +01:00
Francisco José García García 758b3ad2cc (VITA) Make VITA2D the default driver 2019-12-14 14:11:46 +01:00
hizzlekizzle b468aa8c01 Merge pull request #9852 from realnc/swap-interval-drc
Support DRC even when using a vsync swap interval higher than 1
2019-12-13 22:16:25 -06:00
Nikos Chantziaras 31d86e6e78 Update CHANGES.md 2019-12-13 23:29:43 +02:00
Nikos Chantziaras 1617cd7e2a Support DRC even when using a vsync swap interval higher than 1 2019-12-13 23:27:23 +02:00
Twinaphex ac318f2c8c Merge pull request #9851 from rsn8887/master
Fix radial analog deadzone scaling
2019-12-13 20:32:41 +01:00
rsn8887 42d02565af Fix radial analog deadzone scaling 2019-12-13 13:29:28 -06:00
Twinaphex 18d3eba614 Merge pull request #9842 from rsn8887/master
Implement proper analog button deadzone
2019-12-13 19:15:52 +01:00
Twinaphex 3171c71639 Merge pull request #9850 from jdgleaver/dropdown-list-fix
Fix 'currently selected item' indicator in dropdown lists
2019-12-13 12:11:10 +01:00
jdgleaver 32444f8188 Fix 'currently selected item' indicator in dropdown lists 2019-12-13 10:49:52 +00:00
Twinaphex 73729e7a33 Merge pull request #9848 from BarryJRowe/master
Fixed a segfault and an issue with AI Service overlay's image mode.
2019-12-13 07:04:25 +01:00
Barry Rowe c6f55eeb94 Fixed a segfault and an issue with AI Service overlay's image mode. 2019-12-12 16:31:18 -08:00
Twinaphex 5e156b9d73 Merge pull request #9847 from jdgleaver/xmb-fullscreen-thumbs
(XMB) Add fullscreen thumbnail viewer
2019-12-12 20:08:20 +01:00
jdgleaver 004d100ed8 (XMB) Add fullscreen thumbnail viewer 2019-12-12 17:01:37 +00:00
Twinaphex 1f866dbad4 Merge pull request #9844 from Jamiras/cheevos_pce_cd_memory
support for extended PC-Engine memory map
2019-12-11 21:08:46 +01:00
Twinaphex 127e07c210 Merge pull request #9845 from jdgleaver/ozone-thumb-tweaks
(Ozone) Minor thumbnail optimisations
2019-12-11 21:08:34 +01:00
rsn8887 745fb4b40c Implement proper analog button deadzone 2019-12-11 10:06:08 -06:00
Jamiras a96ea2492d support for extended PC-Engine memory map 2019-12-11 08:53:06 -07:00
jdgleaver 3b8e3c613f (Ozone) Minor thumbnail optimisations 2019-12-11 13:44:59 +00:00
Twinaphex f7445bcc98 Merge pull request #9843 from DEX357/patch-48
Update msg_hash_pl.h
2019-12-11 06:19:46 +01:00
DEX357 0fd2cfbab6 Update msg_hash_pl.h 2019-12-10 21:26:19 +01:00
Twinaphex d5d643ca28 Merge pull request #9841 from jdgleaver/xmb-thumbnails
(XMB) Use new 'menu_thumbnail' library for loading/rendering thumbnails
2019-12-10 20:04:54 +01:00
jdgleaver 2dc9616509 (XMB) Use new 'menu_thumbnail' library for loading/rendering thumbnails 2019-12-10 17:03:47 +00:00
Twinaphex 739f7b47fe Update CHANGES.md 2019-12-10 06:12:48 +01:00
Twinaphex 82df0c3aa3 Merge pull request #9838 from dobyrch/master
(Menu) Analog stick controls menu even if autoconfig disabled
2019-12-10 06:12:18 +01:00
twinaphex 3e22d7bbd5 (UWP) Cleanups/build fixes 2019-12-10 06:03:25 +01:00
Douglas Christman b67894586f (Menu) Analog stick controls menu even if autoconfig disabled
Fixes #9089 and #8192
2019-12-09 23:14:47 +08:00
Twinaphex 5e20d16ef8 Merge pull request #9837 from jdgleaver/glui-accessibility-icon
(GLUI) Use default icon for 'Accessibility' settings menu entry
2019-12-09 11:28:29 +01:00
jdgleaver 83235dc484 (GLUI) Use default icon for 'Accessibility' settings menu entry 2019-12-09 10:12:19 +00:00
Twinaphex bd0d8fd8ea Merge pull request #9836 from BarryJRowe/master
Fixed MacOSX defines for accessibility.
2019-12-09 00:47:24 +01:00
Barry Rowe ec7faddd26 Fixed MacOSX defines for accessibility. 2019-12-08 11:12:16 -08:00
twinaphex 6591844b3e (ANGLE) Don't need to link against GLESv2 explicitly 2019-12-07 21:14:37 +01:00
twinaphex 14c5825769 (Qb) Add ANGLE build option - currently requires you to put the required
libs in angle-x64 dir and then have the shared libs inside the main root
dir - after this, we want to try static linking
2019-12-07 21:01:44 +01:00
Twinaphex dfda4f3519 Merge pull request #9830 from WeedyWeedSmoker/french-translation-update
French translation update…
2019-12-07 20:58:12 +01:00
Twinaphex 7117cb8f8e Merge pull request #9833 from hasenbanck/ffmpeg-sw-mt
ffmpeg core implements MT for SW decoding.
2019-12-07 18:39:35 +01:00
Nils Hasenbanck 00f755a822 ffmpeg core implements MT for SW decoding.
This change will activate multi-threading for software based
decoder. Color conversion is still single threaded and also not
being performed by OpenGL.

Since the way ffmpeg inits the HW decoding, we can't 100% valdiate
if a hw decoder will play a file or not. Since we need to know
before calling avcodec_open2() if we want to either multi-thread via
software or HW decode, we will only run single-threaded in case of a
late fallback.

This happens for example in off cases when my AMD vega based graphic
card reports that it could HW decode VP9 video but in reality can't
(which is catched in callback get_format() and after avcodec_open2(().

There is currently no good solution in sight, since we can't
reconfigure the decoding context at that point of time.
2019-12-07 17:45:41 +01:00
twinaphex 328d5bf648 For ANGLE, point the EGL include dir to our copied files on
the repo
2019-12-07 10:52:14 +01:00
twinaphex 7f1c1db651 Now that we can build with ANGLE, we have to take this out 2019-12-07 10:30:28 +01:00
twinaphex b90bd91731 Bake out accessibility for iOS 2019-12-07 09:51:51 +01:00
twinaphex 5aa87c1734 Add HAVE_ANGLE switch 2019-12-07 08:16:00 +01:00
twinaphex 1fd6d024eb More buildfixes for ANGLE 2019-12-07 07:24:20 +01:00
twinaphex c6b325e4d6 Add more headers 2019-12-07 07:17:21 +01:00
twinaphex df588ca422 (ANGLE) Move headers to gfx/include/ANGLE 2019-12-07 07:09:49 +01:00
twinaphex 17a161afa2 Add missing header 2019-12-07 07:04:26 +01:00
Twinaphex 5628d3ba91 Merge pull request #9832 from libretro/angle-headers
Add more required headers
2019-12-07 07:01:45 +01:00
twinaphex 94f82ece4e Add more required headers 2019-12-07 07:01:11 +01:00
Twinaphex 6b2ac3afcd Merge pull request #9831 from libretro/angle-headers
Add EGL headers
2019-12-07 06:55:50 +01:00
twinaphex 1aaf933a1a Add EGL headers 2019-12-07 06:55:16 +01:00
Weedy Weed Smoker 3af86cab07 French update last minute typo…
Now ready to merge!
2019-12-07 12:38:37 +07:00
Weedy Weed Smoker d0ed4e90b3 Style unification for the US file…
Unifies the last lines with the style used throughout the US file
2019-12-07 12:35:32 +07:00
Weedy Weed Smoker 355aaac73a Minor update to french file 2019-12-07 12:31:09 +07:00
Weedy Weed Smoker fbd973147b French translation update…
Implements all the latest additions from the english file!
2019-12-07 12:19:42 +07:00
Twinaphex 6d2b81c6b3 Merge pull request #9828 from BarryJRowe/master
Fixed narrator speed on mac.
2019-12-07 04:08:44 +01:00
Barry Rowe b01b4de91d Fixed narrator speed on mac. 2019-12-06 13:16:30 -08:00
Twinaphex 36e7cc4bbd Merge pull request #9826 from jdgleaver/show-playlists
Enable playlist/add content functionality on platforms without database support
2019-12-06 14:26:39 +01:00
Twinaphex 7429124cd4 Update CHANGES.md 2019-12-06 14:24:40 +01:00
Twinaphex e3658cbc7b Merge pull request #9823 from driver1998/angle
[Win32 & UWP] ANGLE OpenGL ES support
2019-12-06 14:23:53 +01:00
jdgleaver 3031556e73 Enable playlist/add content functionality on platforms without database support 2019-12-06 10:49:27 +00:00
driver1998 105fadd668 [ANGLE] Add HAVE_ANGLE 2019-12-06 15:43:19 +08:00
driver1998 a8a4e60171 [ANGLE] Cleanup 2019-12-06 13:59:22 +08:00
driver1998 bfe167fae8 [UWP] Add ANGLE context 2019-12-06 13:24:18 +08:00
driver1998 7cbdd845ad [Win32] Add ANGLE context 2019-12-06 13:24:17 +08:00
driver1998 de203390be [Windows] Add ANGLE support 2019-12-06 13:24:17 +08:00
Twinaphex 55916a40ab Update CHANGES.md 2019-12-05 23:59:11 +01:00
Twinaphex 002f2ab6e7 Merge pull request #9801 from cmitu/kms-video-mode-selection
KMSDRM: better detection for the current video mode
2019-12-05 23:39:02 +01:00
Twinaphex e61fc4e427 Merge pull request #9822 from driver1998/uwp-fixes
Multiple UWP Fixes
2019-12-05 23:38:47 +01:00
Twinaphex c198c0737a Merge pull request #9825 from hasenbanck/ffmpeg-deps
Fix ffmpeg core build under linux.
2019-12-05 23:37:01 +01:00
Nils Hasenbanck 03b18dbfc4 Disable HW acceleration with ffmpeg 3.4. 2019-12-05 20:11:29 +01:00
Nils Hasenbanck c88f2b31ee Fix ffmpeg core build under linux.
Libass is optional again. This build will also compile with
ffmpeg 3.4 again, but HW acceleration is not guaranteed to work,
since it hasn't been tested well enough.
2019-12-05 19:39:56 +01:00
Twinaphex a01e99aa63 Update .travis.yml 2019-12-05 10:29:32 +01:00
Twinaphex 1ea82b8b5d Merge pull request #9821 from BarryJRowe/master
Removed narrator for emscripten case.
2019-12-05 10:27:04 +01:00
driver1998 4b393eb22a [UWP] Enable menu touch input 2019-12-05 17:15:27 +08:00
driver1998 bb6f13a725 [UWP] Fix keyboard input hang 2019-12-05 17:15:02 +08:00
driver1998 7519d3562b [UWP] Use GLUI on Windows 10 Mobile 2019-12-05 16:32:38 +08:00
driver1998 0f924bd083 [UWP] expand custom.ini to absolute path, prevent crashing 2019-12-05 16:32:38 +08:00
driver1998 004d782323 [UWP] Mouse fix on high DPI, multi touch support 2019-12-05 16:32:38 +08:00
driver1998 1bd9d503f0 [UWP] Add trailing backsplash to default dirs 2019-12-05 16:32:38 +08:00
driver1998 918b08e910 [UWP] Add ARM64 detection in get_os 2019-12-05 16:32:38 +08:00
driver1998 83cb526153 [UWP] Add get_user_language and get_cpu_model_name 2019-12-05 16:32:38 +08:00
driver1998 aa19d5180b [UWP] Move RunAsync out of VFS implementation 2019-12-05 16:32:38 +08:00
Barry Rowe d44d1537d9 Removed narrator for emscripten case. 2019-12-04 22:51:59 -08:00
Twinaphex 1392143d14 Merge pull request #9820 from BarryJRowe/master
Fix to audiomixer ifdef.
2019-12-05 07:47:40 +01:00
Barry Rowe ca03491e63 Fix to audiomixer. 2019-12-04 21:05:44 -08:00
Twinaphex 25fb69a7a5 Update CONTRIBUTING.md 2019-12-05 06:00:02 +01:00
twinaphex c1717fc028 Cleanups 2019-12-05 05:53:36 +01:00
twinaphex 49fb0d7909 Fix --disable-audiomixer 2019-12-05 05:48:26 +01:00
twinaphex 28e88c95ec Fix --disable-menu 2019-12-05 05:44:26 +01:00
Twinaphex 4c198a7cb3 Merge pull request #9819 from BarryJRowe/master
More build fixes.
2019-12-05 05:36:28 +01:00
Barry Rowe e1f8b66c05 More build fixes. 2019-12-04 20:11:02 -08:00
Twinaphex f03f6d6a63 Update CHANGES.md 2019-12-05 04:05:42 +01:00
Twinaphex b06314cda3 Merge pull request #9681 from fpscan/flux
New RGUI theme: Flux
2019-12-05 04:05:03 +01:00
Twinaphex fc6580200a Update CHANGES.md 2019-12-05 04:02:57 +01:00
Twinaphex ed20c14f23 Merge pull request #9816 from jdgleaver/manual-scan-arcade-dat
(Manual Content Scanner) Enable automatic naming of arcade content via DAT files
2019-12-05 04:02:15 +01:00
Twinaphex cbe46dfd99 Merge pull request #9818 from BarryJRowe/master
Removed C99 styled literals.
2019-12-05 03:58:45 +01:00
Barry Rowe 1223f74f5c Removed C99 styled literals. 2019-12-04 16:38:25 -08:00
twinaphex 8c2135f2bb Buildfix 2019-12-04 23:53:02 +01:00
Twinaphex d20dc01aff Merge pull request #9817 from BarryJRowe/master
Accessibility settings and narrator speed.
2019-12-04 23:30:15 +01:00
Barry Rowe cd29485d6e Removed extra prototypes. 2019-12-04 14:19:54 -08:00
Barry Rowe a8430acd66 Merge remote-tracking branch 'upstream/master' 2019-12-04 13:23:08 -08:00
Barry Rowe 3a67e072bb Added in fixes for accessibility feature. 2019-12-04 10:51:50 -08:00
twinaphex 535f2f23f3 Implement remaining accessibility settings 2019-12-04 18:11:25 +01:00
jdgleaver a27ee73622 Manual content scan arcade DAT files: Add support for MAME 'Software List' XML format 2019-12-04 16:19:32 +00:00
jdgleaver 9b012e907a (Manual Content Scanner) Enable automatic naming of arcade content via DAT files 2019-12-04 12:46:04 +00:00
twinaphex ebe9f1861e Implement more settings for Accessibility 2019-12-04 09:24:27 +01:00
twinaphex 9462fd301a (Accessibility) Add the two new Accessibility settings 2019-12-04 08:57:10 +01:00
twinaphex 6992f580e8 (Accessibility) Implement Narrator mode setting 2019-12-04 08:46:51 +01:00
twinaphex 6dd7f65322 (Accessibility) Update 2019-12-04 08:41:20 +01:00
twinaphex 72e6601702 C89 buildfix 2019-12-04 08:25:54 +01:00
twinaphex cab8663713 (Accessibility) Start adding Accessibility settings - empty for now 2019-12-04 08:25:24 +01:00
twinaphex 8d9419128e Add TODO/FIXME comment 2019-12-04 07:35:05 +01:00
twinaphex e3bf70dc10 Fix Linux build 2019-12-04 07:33:33 +01:00
twinaphex 0647e0d2c2 (Cheevos) Turn strncpy functions into strlcpy
(Translation/Accessibility) Turn functions static
2019-12-04 06:21:16 +01:00
twinaphex 2f43a1b5f4 Remove unused variable 2019-12-04 05:20:52 +01:00
twinaphex 831e33739e Replace some usage of strcpy and strcat 2019-12-04 05:17:53 +01:00
twinaphex 90008242eb Put this behind HAVE_TRANSLATE ifdef 2019-12-04 05:12:30 +01:00
twinaphex 43017cb65b Fix targets that don't have HAVE_NETWORKING 2019-12-04 05:10:56 +01:00
Twinaphex 2f17cbaef3 Merge pull request #9768 from BarryJRowe/master
Added in accessibility. (DO NOT MERGE)
2019-12-04 04:06:39 +01:00
twinaphex 688acb1e41 Refactor build_list 2019-12-03 03:26:54 +01:00
twinaphex 7b2d7a9ec7 Cleanups 2019-12-03 03:14:39 +01:00
twinaphex 01e62efb72 move more code to build_list 2019-12-03 02:17:43 +01:00
twinaphex 82391b6ac1 move more code to build_list 2019-12-03 02:09:55 +01:00
twinaphex 2ad2983b25 Move HELP_SCREEN_LIST to build_list 2019-12-03 01:53:00 +01:00
twinaphex 5df0516318 Move these to build_list 2019-12-03 01:50:14 +01:00
twinaphex 56014a6bf7 Change the sublabel for User Binds / Port Binds as well 2019-12-03 00:49:12 +01:00
twinaphex dd923d55f2 Change 'User % Binds' To 'Port % Binds' 2019-12-03 00:37:11 +01:00
twinaphex 3c2d30c510 Move DISPLAYLIST_OPTIONS_REMAPPINGS to build_list 2019-12-03 00:26:39 +01:00
twinaphex a4982cd460 (Menu displaylist) Cleanup 2019-12-02 23:45:21 +01:00
twinaphex e6a3785b01 Cleanups 2019-12-02 23:39:46 +01:00
twinaphex d09ae22147 Fix return values 2019-12-02 23:16:35 +01:00
twinaphex d2e83df498 Refactor menu_displaylist_parse_load_content_settings - should now
properly report count
2019-12-02 22:50:33 +01:00
twinaphex c490b06fe9 (menu_displaylist) build_list - add more entries 2019-12-02 22:35:02 +01:00
twinaphex c9a97d255c (menu_cbs_title) Cleanups 2019-12-02 22:20:36 +01:00
Twinaphex f0a9f4e6a4 Merge pull request #9812 from libretro/menu-actionok-refactors
Menu actionok refactors
2019-12-02 21:11:33 +01:00
twinaphex 177ca956f1 Code de-duplication 2019-12-02 21:08:21 +01:00
twinaphex e13febc82b (menu cbs ok) Code de-duplication 2019-12-02 21:05:04 +01:00
twinaphex 04ee55f202 Add NOTE/TODO about globals 2019-12-02 20:52:23 +01:00
twinaphex ee6c2393c1 (menu_cbs_ok.c) Cut down on some code duplication 2019-12-02 20:47:50 +01:00
Twinaphex 52fe3d2c7d Merge pull request #9810 from hasenbanck/ffmpeg-version
ffmpeg core prints out the ffmpeg library version
2019-12-02 19:41:00 +01:00
Nils Hasenbanck 1dbc7cdc9a ffmpeg core prints out the ffmpeg library version
For better debugging and supporting of the users, we will print
out the library versions that the ffmpeg core is currently using.
2019-12-02 18:50:44 +01:00
twinaphex 07f3abfda1 (madmonkey) Proposed fix for Mali GPUs 2019-12-02 16:28:35 +01:00
Twinaphex a2c7b17cd3 Update CHANGES.md 2019-12-02 16:25:55 +01:00
Twinaphex 56393bd253 Merge pull request #9808 from jdgleaver/manual-scan-archives
(Manual Content Scanner) Add option to scan inside archives
2019-12-02 16:25:27 +01:00
jdgleaver 3d52d7a8f6 (Manual Content Scanner) Add option to scan inside archives 2019-12-02 11:49:41 +00:00
Twinaphex b5958359d2 Update CHANGES.md 2019-12-02 09:27:57 +01:00
Twinaphex e7257c1855 Update CHANGES.md 2019-12-02 07:35:44 +01:00
Twinaphex 6329b28e4a Update CHANGES.md 2019-12-02 07:35:12 +01:00
twinaphex c3743a74f6 Refactor menu_cbs_sublabel.c 2019-12-02 07:20:01 +01:00
twinaphex e7d2e7ebcb Refactor menu_cbs_get_value.c 2019-12-02 06:47:51 +01:00
Twinaphex 71f4ff6b84 Merge pull request #9777 from DEX357/patch-47
FIXME Update msg_hash_pl.h
2019-12-02 06:17:47 +01:00
Twinaphex bfe00ac6f3 Merge pull request #9807 from libretro/deferred-refactors-pt2
(menu_cbs_ok) Cleanups
2019-12-02 06:17:30 +01:00
Twinaphex 2b2d6742e0 Merge pull request #9805 from libretro/deferred-refactors-pt2
Deferred refactors pt2
2019-12-02 06:16:48 +01:00
Twinaphex aa9934a722 Merge pull request #9806 from libretro/revert-9561-patch-6
Revert "iOS - Bump GCC Optimization level to-0s for Release Builds. "
2019-12-02 06:16:38 +01:00
Twinaphex ec4ecb5d34 Revert "iOS - Bump GCC Optimization level to-0s for Release Builds. " 2019-12-02 06:16:28 +01:00
twinaphex 8551d175ab (menu_cbs_ok) Cleanups 2019-12-02 06:10:32 +01:00
twinaphex d0bce8bc9f Refactor menu_cbs_title 2019-12-02 05:50:32 +01:00
Twinaphex 12ae92ef66 Merge pull request #9786 from hasenbanck/ffmpeg-amf
Implement ffmpeg send/receive encoding API
2019-12-02 05:35:37 +01:00
Twinaphex c1a2dd81c7 Merge pull request #9798 from libretro/kivutar/makeosx
[WIP] Allow building using make on OSX
2019-12-02 05:24:29 +01:00
Twinaphex a4d8ecf2b8 Merge pull request #9561 from mrjschulte/patch-6
iOS - Bump GCC Optimization level to-0s for Release Builds.
2019-12-02 05:24:07 +01:00
twinaphex c80d18c446 Refactor DEFERRED_RECORDING_SETTINGS_LIST 2019-12-02 02:33:09 +01:00
twinaphex 2a41f1fb99 Change type to enum - should silence C89 build errors 2019-12-02 01:21:42 +01:00
Twinaphex 901932a8e1 Merge pull request #9804 from libretro/deferred-push-refactor
Refactor deferred push callbacks
2019-12-01 23:23:23 +01:00
Twinaphex e57e4dbf57 Merge branch 'master' into deferred-push-refactor 2019-12-01 23:22:18 +01:00
Twinaphex 00ca7297f3 Merge pull request #9795 from jdgleaver/manual-scan
Add manual content scanner
2019-12-01 23:11:45 +01:00
twinaphex cfc2a15d41 Refactor the other entries as well 2019-12-01 22:57:18 +01:00
twinaphex e8f55e8b24 Refactor deferred push callbacks 2019-12-01 22:38:53 +01:00
Twinaphex c09c4299ba Merge pull request #9803 from libretro/flowchart-controls
Change 'User' terminology to 'Port' for input binding stuff
2019-12-01 21:40:17 +01:00
Twinaphex dda12da672 Merge pull request #9799 from hasenbanck/ffmpeg-hw
FFMPEG Core HW accelerated decoding
2019-12-01 20:32:50 +01:00
Twinaphex 96b6789855 Merge pull request #9800 from Tatsuya79/patch-3
fix dock titles getting cut off
2019-12-01 19:52:58 +01:00
Nils Hasenbanck 17107a1563 Fix decoder switching and context re-usage.
The re-usage of the decoder context is not properly implemented.
Restart options will only be applied when the core is started.
2019-12-01 12:49:37 +01:00
Nils Hasenbanck c3c2f5bfb6 Implement HW based decoding for the ffmpeg core.
The ffmpeg core not support the usage of HW based video decoders.

Core options to configure the HW decoder to use is provided.
Proper fallback to the SW based decoder is implemented.

Currently the decoder loop in single threaded and is limited by
the color conversion that is done in software.
The frame based threading provided by ffmpeg also currently doesn't
seem to provide any benefits in configuring it.
2019-12-01 12:11:14 +01:00
cmitu 3953659901 KMSDRM: better detection for the current video mode 2019-12-01 06:45:43 +00:00
DEX357 c3f2469832 Update msg_hash_pl.h 2019-11-30 22:25:23 +01:00
Tatsuya79 2e0c1daf1b fix dock titles getting cut off 2019-11-30 19:06:59 +01:00
Jean-André Santoni 93df88a5d6 Typo 2019-11-30 14:24:38 +07:00
Jean-André Santoni 3ed2cf7812 CI 2019-11-30 13:01:43 +07:00
Jean-André Santoni c0dfcd2adf Fix Metal build 2019-11-30 12:49:52 +07:00
Jean-André Santoni f349784bd6 Fix the xcode build 2019-11-30 12:43:38 +07:00
Jean-André Santoni ba2c870d95 Allow building using make on OSX 2019-11-30 12:37:58 +07:00
Twinaphex b382ea2a33 Merge pull request #9797 from Tatsuya79/patch-2
fix search dock title
2019-11-29 23:25:45 +01:00
Tatsuya79 b6094d6f3b fix search dock title 2019-11-29 22:48:18 +01:00
jdgleaver 170397456c Add manual content scanner 2019-11-29 17:14:46 +00:00
Twinaphex 944485b9ae Update Makefile.libnx 2019-11-29 05:23:00 +01:00
Twinaphex c8adaaaab2 Merge pull request #9789 from jdgleaver/ozone-thumbnails
(Ozone) Use new 'menu_thumbnail' library for loading/rendering thumbnails
2019-11-28 18:06:06 +01:00
Twinaphex d8ba2839c4 Merge pull request #9794 from Jamiras/cheevos_unsupported_core_hardcore_pause
(cheevos) pause hardcore if core doesn't support achievements
2019-11-28 18:05:53 +01:00
DEX357 576213b048 FIXME 2019-11-27 19:41:17 +01:00
Jamiras 1f97d31f2a pause hardcore if core doesn't support achievements 2019-11-27 07:38:41 -07:00
Barry Rowe 1e6e7a698f Added in accessibility. 2019-11-26 15:19:21 -08:00
jdgleaver 9170bca9b3 (Ozone) Use new 'menu_thumbnail' library for loading/rendering thumbnails 2019-11-25 13:14:25 +00:00
twinaphex 388879da38 Change 'User' terminology to 'Port' for input binding stuff 2019-11-24 20:11:49 +01:00
DEX357 4476d3e971 Update msg_hash_pl.h 2019-11-24 18:32:59 +01:00
Nils Hasenbanck 4e4802e5c6 Implement ffmpeg send/receive encoding API
This is implementing the send/receive encoding API of ffmpeg in the
ffmpeg record backend.

Newer encoder do need the client to use this API to use them (for
example h264_amf and hvec_amf). "Old" encoders should work fine
(Tested x264 and webm profiles).

The biggest change is the handling of the encoded packets, since
the API can return multiple packets in it's queue. As a positive
side-effect the code for flushing is much more easier.
2019-11-24 17:41:22 +01:00
Twinaphex 203a80aeaa Merge pull request #9785 from Jamiras/nds_hash
(cheevos) add hashing for Nintendo DS
2019-11-24 16:59:04 +01:00
Twinaphex 50a50b8519 Merge pull request #9784 from jdgleaver/thumbnail-upscaling-settings-fix
Fix 'Thumbnail Upscaling Threshold' setting drop-down list
2019-11-24 16:58:35 +01:00
DEX357 4203b4fb78 Update msg_hash_pl.h 2019-11-24 16:05:09 +01:00
Jamiras a990c0bca4 add hashing for Nintendo DS 2019-11-24 07:59:59 -07:00
jdgleaver 4eec21b4d1 Fix 'Thumbnail Upscaling Threshold' setting drop-down list 2019-11-24 14:39:08 +00:00
DEX357 6625eff3d8 Update msg_hash_pl.h 2019-11-24 03:56:11 +01:00
DEX357 677f13a2fe Update msg_hash_pl.h 2019-11-24 03:15:54 +01:00
twinaphex ba74747860 (ffmpeg core) Update Makefile 2019-11-23 22:39:50 +01:00
Twinaphex de3ac2c549 Merge pull request #9775 from Jamiras/chd_pregap
(cheevos) fix hash calculation for some PCEngine CHD files
2019-11-23 21:08:47 +01:00
Twinaphex ccaba7d465 Merge pull request #9776 from fjtrujy/psp/PThread
[PSP] Solving issue Exiting RetroArch by HOME button
2019-11-23 12:59:14 +01:00
Francisco Javier Trujillo Mata e553e19996 Call pthread_terminate is if it is NO SALAMANDER 2019-11-23 12:54:45 +01:00
twinaphex ce9ba045ff This can be unreverted after we bake in the pthreads implementation for PSP and Vita
Revert "Call to the terminate function for the pthread on the deinit of the PSP platform"

This reverts commit 1671f16b0c.
2019-11-23 12:36:31 +01:00
Jamiras c69a11a219 better detection of pregap data in file 2019-11-22 19:36:38 -07:00
Twinaphex 4aa936ce33 Merge pull request #9772 from DuMOHsmol/xbox_one_bluetooth_fix
Get rid of 128 byte device name limit for XInput device discover
2019-11-22 19:50:58 +01:00
Twinaphex f09561026a Merge pull request #9771 from jdgleaver/pointer-msgbox-inhibit
(Menu) Ensure pointer input is handled correctly when showing message boxes
2019-11-22 19:50:13 +01:00
Dmitry Sergeenkov 5cdef89b86 Get rid of 128 byte device name limit for XInput device discover 2019-11-22 21:15:58 +03:00
jdgleaver b1d5542d77 (Menu) Ensure pointer input is handled correctly when showing message boxes 2019-11-22 15:10:28 +00:00
Francisco Javier Trujillo Mata 1671f16b0c Call to the terminate function for the pthread on the deinit of the PSP platform 2019-11-21 19:25:02 +01:00
Francisco Javier Trujillo Mata 5a5640155a Call to the terminate function for the pthread on the deinit of the PSP platform 2019-11-21 19:13:33 +01:00
Twinaphex 822eb3bb86 Merge pull request #9759 from Jamiras/rcheevos_81
(cheevos) update rcheevos to v8.1
2019-11-21 16:39:58 +01:00
Twinaphex 3e55d598db Merge pull request #9762 from gblues/gblues/default-asset-directory
Gblues/default asset directory
2019-11-21 15:45:17 +01:00
Twinaphex def1e352d4 Merge pull request #9763 from jdgleaver/glui-fs-thumbs-enable-select
(GLUI) Enable pass-through of [RetroPad A]/[Keyboard Return key] when viewing fullscreen thumbnails
2019-11-21 15:34:30 +01:00
jdgleaver 34b744aff6 (GLUI) Enable pass-through of [RetroPad A]/[Keyboard Return key] when viewing fullscreen thumbnails 2019-11-21 12:45:03 +00:00
Nathan Strong bff8e8204d Automatically rename asset directory
== DETAILS
For users upgrading--particularly via the online updater--we should
smoothly migrate them to the new name. If the "media" directory
exists and the "assets" directory doesn't, then rename "media" to
"assets".

== TESTING
none yet
2019-11-20 23:33:20 -08:00
Nathan Strong 4cd3934610 Change the default asset directory
On every other platform, retroarch uses "assets" but wiiu got stuck with "media"
and it's never been fixed.

So I'm fixing it.
2019-11-20 23:33:20 -08:00
Jean-André Santoni 33206b8847 Wait longer for the notarization server 2019-11-21 11:12:54 +07:00
Jamiras b26fa714a8 more descriptive error string 2019-11-20 18:19:35 -07:00
Jamiras 9983976ddb update rcheevos to v8.1 2019-11-20 14:40:34 -07:00
Twinaphex d3ed02dd87 Update Makefile.common 2019-11-20 20:38:28 +01:00
jdgleaver d392d90a6e (GLUI) Add fullscreen thumbnail viewer (#9758) 2019-11-20 19:09:02 +01:00
Francisco José García García c8067ba0c0 (VITA) Baked math-neon and vitaGL (#9757)
* Squashed 'deps/math-neon/' content from commit 0050735

git-subtree-dir: deps/math-neon
git-subtree-split: 0050735ae8f18281c1e6fbe2dc80546e402b7fc5

* Squashed 'deps/vitaGL/' content from commit 694b387

git-subtree-dir: deps/vitaGL
git-subtree-split: 694b387a6eacf7e179f07ff621e5772ae4253315

* (Vita) Add baked math-neon and vitaGL
2019-11-20 12:13:33 +01:00
Twinaphex 932071952d (OSX) Buildfix 2019-11-20 11:19:18 +01:00
Twinaphex f081cfa314 Merge pull request #9756 from libretro/iosfix
Revert code in hopes iOS works again
2019-11-20 11:11:23 +01:00
twinaphex 861379d8e3 Revert code in hopes iOS works again 2019-11-20 06:25:40 +01:00
Twinaphex 64b23937d3 Merge pull request #9690 from libretro/kivutar/codesign
Code sign OSX release
2019-11-20 05:44:23 +01:00
Jean-André Santoni 11a4a4cffb Code cleaning 2019-11-20 10:45:14 +07:00
Jean-André Santoni 8da54e2349 Uncomment stuff 2019-11-20 10:09:24 +07:00
Jean-André Santoni 87cc90741d Deep sign 2019-11-20 09:59:34 +07:00
Jean-André Santoni 27da1c94f2 Enable hardened runtime for the Qt build 2019-11-20 09:09:27 +07:00
Twinaphex d2d240ecf5 (iOS) Should fix iOS build problems 2019-11-20 02:58:17 +01:00
Twinaphex 540edd7b5d (iOS) Buildfix #1 2019-11-20 02:51:18 +01:00
Twinaphex 81c020d300 Replace g_instance with CocoaView get 2019-11-20 02:24:03 +01:00
twinaphex e3506ed06b Move nsview_get_ptr to cocoa_common 2019-11-20 02:24:03 +01:00
Twinaphex 387e18b528 cocoagl_gfx_ctx_set_video_mode - go through [CocoaView get] here 2019-11-20 02:24:03 +01:00
Twinaphex bac58c99c4 Buildfix 2019-11-20 02:24:03 +01:00
twinaphex 964fcda79a Move glkitview_init to cocoa_common.m 2019-11-20 02:24:02 +01:00
Twinaphex b241b5769b Merge pull request #9754 from realnc/fix-null-deref
Fix null pointer deref
2019-11-19 23:58:23 +01:00
Nikos Chantziaras 376598a6e0 Fix null pointer deref 2019-11-20 00:41:38 +02:00
twinaphex ed8e440b0d Revert "Move update_window_title to main thread - this should resolve some"
This reverts commit 442608981d.
2019-11-19 22:48:35 +01:00
twinaphex 442608981d Move update_window_title to main thread - this should resolve some
concurrency issues on OSX as well
2019-11-19 22:13:51 +01:00
Jean-André Santoni 8191f2775f Add Qt back 2019-11-19 17:46:35 +07:00
Jean-André Santoni f142caea11 Disable some other builds for now 2019-11-19 17:40:01 +07:00
Jean-André Santoni d2f381d121 Try to take qt5 out 2019-11-19 17:39:19 +07:00
Jean-André Santoni 90b56fb487 Move back code signing to travis 2019-11-19 17:38:19 +07:00
Jean-André Santoni 8533512a82 Revert "Remove project changes"
This reverts commit f5dac2859ff029c7e836264cccf6cb28b146c308.
2019-11-19 17:38:19 +07:00
Jean-André Santoni dbe4be7e7f Remove project changes 2019-11-19 17:38:19 +07:00
Jean-André Santoni 912ab4ff00 Fix QT build 2019-11-19 17:38:19 +07:00
Jean-André Santoni 460cfc9efd Fix QT build 2019-11-19 17:38:19 +07:00
Jean-André Santoni 309045e0ac Move the logic to the shell script 2019-11-19 17:38:18 +07:00
Jean-André Santoni 944e89bdc8 Enable hardened runtime 2019-11-19 17:38:18 +07:00
Jean-André Santoni 885eb4f15b Fix signing conflict 2019-11-19 17:38:18 +07:00
Jean-André Santoni 27ecc119e0 Try to set the team ID there 2019-11-19 17:38:18 +07:00
Jean-André Santoni ded406984f Don't codesign this way 2019-11-19 17:38:18 +07:00
Jean-André Santoni 2a7b76249c Use xcode 11.2 and attempt to notarize the .app 2019-11-19 17:38:18 +07:00
Jean-André Santoni e49d505254 Code sign OSX release 2019-11-19 17:38:11 +07:00
twinaphex 79c336b6fd Update dist-cores.sh 2019-11-19 10:04:45 +01:00
Jean-André Santoni 249c73d68c Revert "Try xcode 11.1"
This reverts commit ffda27c8a7.
2019-11-19 15:21:08 +07:00
twinaphex 5d8c566dbc (cores/ffmpeg) Resync 2019-11-19 09:09:52 +01:00
Twinaphex aa2348823c Merge pull request #9749 from libretro/kivutar/removeuselessifdef
Remove useless HAVE_COCOA_METAL ifdef
2019-11-19 09:04:20 +01:00
twinaphex 10a234908f Update libretro-ffmpeg Makefile 2019-11-19 09:01:46 +01:00
twinaphex 6d5104f6d7 (Windows/ffmpeg) Standalone Makefile - Don't set it explicitly to gcc/g++ 2019-11-19 08:55:04 +01:00
twinaphex fbdc53f926 Update ffmpeg Makefile.common - see if it changes anything 2019-11-19 08:54:19 +01:00
Jean-André Santoni 8e028f4db3 Remove useless HAVE_COCOA_METAL ifdef 2019-11-19 14:50:21 +07:00
twinaphex 29ced2a72f Simplify cocoagl_gfx_ctx_get_video_size somewhat 2019-11-19 08:26:12 +01:00
twinaphex 77b05d6078 Add this for OSX 10.7 solution 2019-11-19 08:10:12 +01:00
Twinaphex b351fac466 Merge pull request #9748 from libretro/kivutar/xcode111
Try xcode 11.1
2019-11-19 07:54:11 +01:00
Jean-André Santoni ffda27c8a7 Try xcode 11.1 2019-11-19 13:42:06 +07:00
Twinaphex 72601103ba Merge pull request #9747 from libretro/kivutar/travispr
Prevent duplicate travis jobs
2019-11-19 07:32:14 +01:00
twinaphex 4736bef77b (Apple) Add HAVE_ONLINE_UPDATER 2019-11-19 07:18:16 +01:00
Jean-André Santoni 1581d23a6c Prevent deplicate travis jobs 2019-11-19 13:17:10 +07:00
Twinaphex 15b6da2a17 Merge pull request #9745 from libretro/kivutar/osxmake
Fix building with make on OSX
2019-11-19 07:12:07 +01:00
twinaphex f0784351c4 Update header include - should look in system dir 2019-11-19 06:19:09 +01:00
Twinaphex 9df2a6fd99 Merge pull request #9676 from orbea/qb3
Some minor qb changes.
2019-11-19 06:15:55 +01:00
Twinaphex 8518b4f50b Merge pull request #9673 from orbea/deprecate
qb: Remove deprecated arguments.
2019-11-19 06:15:40 +01:00
Twinaphex 53b7fb2ba2 Remove unused variables 2019-11-19 06:08:54 +01:00
Twinaphex 6a541125aa Silence two issues 2019-11-19 06:01:11 +01:00
Jean-André Santoni 947e15f34f Move WindowListener around 2019-11-19 12:00:24 +07:00
Twinaphex c7ce2c7053 Fix Xcode issue 2019-11-19 05:54:01 +01:00
Jean-André Santoni d5a5380e6d Fix building with make on OSX 2019-11-19 11:38:27 +07:00
Twinaphex 496104005b Merge pull request #9744 from realnc/fix-aspect-ratio-change
Don't omit AR changes when not reinitting video in SET_SYSTEM_AV_INFO
2019-11-19 04:11:46 +01:00
Nikos Chantziaras 33ab147514 Don't omit AR changes when not reinitting video in SET_SYSTEM_AV_INFO 2019-11-19 04:37:03 +02:00
Twinaphex c0bc8d2df2 Update CHANGES.md 2019-11-18 08:22:50 +01:00
Twinaphex d2a1d96f59 Update CHANGES.md 2019-11-18 08:21:29 +01:00
twinaphex 9d0356dd73 Add HAVE_STEAM switch 2019-11-18 08:04:29 +01:00
twinaphex a46027bed7 Remove MENU_LABEL_ONLINE_UPDATER 2019-11-18 07:51:57 +01:00
twinaphex a68e9b5014 Start passing global struct to configuration.c functions 2019-11-18 07:32:01 +01:00
twinaphex 88d4ae6790 Buildfix for Android - this header should not be done as a system
header include
2019-11-18 06:48:15 +01:00
twinaphex 48cca00d91 Revert "(retroarch.c) Cleanups"
This reverts commit db9a067e64.
2019-11-18 06:43:30 +01:00
twinaphex 9555f70440 Cleanup some RARCH_CTL_ actions 2019-11-18 06:32:23 +01:00
twinaphex db9a067e64 (retroarch.c) Cleanups 2019-11-18 06:20:47 +01:00
twinaphex 0aa9bd9c22 (retroarch.c) Cleanups - start getting rid of driver_find_ident
functions
2019-11-18 06:06:59 +01:00
twinaphex aba96fbf03 (Menu) Small cleanups 2019-11-18 04:20:40 +01:00
Twinaphex 2a72d90e8a Merge pull request #9715 from realnc/no-video-reinit
Do not reinit video driver on SET_SYSTEM_AV_INFO unless needed
2019-11-18 00:41:30 +01:00
Twinaphex 479ba58042 Update CHANGES.md 2019-11-17 23:16:44 +01:00
Twinaphex 9c0028c1d1 Merge pull request #9739 from Jamiras/cheevos_init_load_state
(cheevos) prevent loading state while achievements are still being fetched from server
2019-11-17 23:16:21 +01:00
Twinaphex 53d18cf95e Merge pull request #9713 from Rinnegatamante/vitagl
Added gl1 video driver support to Vita build
2019-11-17 23:14:29 +01:00
twinaphex 63e437d58f Rename get_rotation to retroarch_get_rotation 2019-11-17 22:58:52 +01:00
Twinaphex ddd9fbf6ae Merge pull request #9734 from Aethyrion/rotation_fixing
Rotation fixing
2019-11-17 22:53:12 +01:00
Twinaphex 68719ac8d4 Merge pull request #9741 from Jamiras/cheevos_lbl_cleanup
(cheevos) remove unused menu labels
2019-11-17 22:44:36 +01:00
twinaphex 934697b0da Buildfix for no menu 2019-11-17 22:42:15 +01:00
twinaphex cbe68cbf88 Turn the find_handle/find_ident functions static 2019-11-17 22:31:57 +01:00
Jamiras 9e547699c6 remove CHEEVOS_UNLOCKED_ACHIEVEMENTS, CHEEVOS_LOCKED_ACHIEVEMENTS, and CHEEVOS_OLD_ENABLE menu labels 2019-11-17 13:09:55 -07:00
twinaphex f9bc57bcf8 Merge list_special.c into retroarch.c 2019-11-17 21:07:56 +01:00
twinaphex 09b7202c54 Do a fall-through here 2019-11-17 21:01:46 +01:00
twinaphex 8c799f978b Merge paths.c - this is one of the last file we merge - not long after this
we can start splitting up retroarch.c into several files
2019-11-17 21:00:15 +01:00
Rémi 34125a6d14 Remove // comments 2019-11-17 20:46:51 +01:00
twinaphex c252cbe9e0 Strip out rxml and yxml if HAVE_VIDEO_LAYOUT is not defined 2019-11-17 20:43:26 +01:00
Twinaphex 8e6e30370d Merge pull request #9729 from huwpascoe/rxml-fix
Fixed xml parsing
2019-11-17 20:23:07 +01:00
Rémi 154c2d388d Fix CI compilation issues 2019-11-17 20:18:42 +01:00
Nikos Chantziaras e8c027cbc3 Do not reinit video driver on SET_SYSTEM_AV_INFO unless needed
Video reinit causes the core to freeze momentarily, freezing audio and
flashing the window. Cores like dosbox-svn need to change fps quite often
(some DOS games even change fps mid-gameplay) and the video reinit becomes
very annoying.

Change this to not reinit the video driver unless CRT SwitchRes is enabled
or a max width/height change was requested.
2019-11-17 20:29:42 +02:00
Rémi e3a8e28edc Using MAX macro. 2019-11-17 18:34:19 +01:00
Rémi 1c9d0dbf48 Refactoring (still trying to fix CI compilation issue) 2019-11-17 18:03:57 +01:00
Jamiras 939770929f hardcore mode is not dependent on having achievement data 2019-11-17 09:36:39 -07:00
Rémi 756b4636f6 Update Aspect Ratio (1:1 PAR and Custom) when rotating from menu 2019-11-17 17:22:10 +01:00
Twinaphex 80e49531b1 Merge pull request #9738 from libretro/revert-9714-master
Revert "Refactor RetroArch input polling settings"
2019-11-17 16:45:54 +01:00
Twinaphex b6aa9f2fd1 Revert "Refactor RetroArch input polling settings" 2019-11-17 16:45:40 +01:00
Rémi 09a9b7d254 CI compilation issue 2019-11-17 16:26:29 +01:00
Rémi f804e0738f Fix Integer Scaling when rotating 2019-11-17 13:52:28 +01:00
Rémi a28e57e42d Fixing Integer Scaling for Custom Viewport (when rotating) 2019-11-17 13:21:50 +01:00
Rémi 7088281b52 Fixing 1:1 PAR for 270 degree rotation 2019-11-16 23:18:56 +01:00
Rémi ba183cf7a6 Refactoring (get_rotation) 2019-11-16 23:03:15 +01:00
Rémi 9df755bdb4 Fixing 1:1 PAR aspect ratio when video rotated 2019-11-16 22:13:12 +01:00
Huw Pascoe 4eebfa237b Fixed xml parsing 2019-11-16 20:56:12 +00:00
Rémi cc99b9f949 Merge branch 'rotation_fixing' of https://github.com/Aethyrion/RetroArch into rotation_fixing 2019-11-16 19:52:52 +01:00
Rémi 6c47f02bdf Fixing OpenGL shader rotation 2019-11-16 19:52:47 +01:00
Rémi 30f36a30f2 Remove empty line 2019-11-16 19:50:35 +01:00
Rémi b6dc887d52 Fixing OpenGL shader rotation 2019-11-16 19:45:04 +01:00
Twinaphex 9b192dc3c1 Update CHANGES.md 2019-11-16 17:28:09 +01:00
Twinaphex 686a0ce199 Update CHANGES.md 2019-11-16 17:27:01 +01:00
Twinaphex 27f88abb02 Merge pull request #9733 from Jamiras/psx_exe_hash
(cheevos) use PSX.EXE if SYSTEM.CNF cannot be found
2019-11-16 17:26:35 +01:00
Jamiras 3b0cbc1e41 use PSX.EXE if SYSTEM.CNF cannot be found 2019-11-16 08:36:13 -07:00
Twinaphex 0d284c42bc Merge pull request #9714 from rz5/master
Refactor RetroArch input polling settings
2019-11-15 17:18:30 +01:00
Twinaphex 11f054e646 Merge pull request #9725 from guoyunhe/patch-1
Fix comment in freetype.c
2019-11-15 17:16:26 +01:00
Twinaphex 6ec7eddfc9 Merge pull request #9728 from jdgleaver/glui-navigation
(GLUI) Navigation improvements
2019-11-15 16:31:19 +01:00
jdgleaver 7eefec6945 (GLUI) Navigation improvements 2019-11-15 14:53:00 +00:00
Guo Yunhe 95dede9039 Fix comment in freetype.c 2019-11-15 10:18:05 +02:00
rz5 82898ea194 Cast arg to rarch_set_in_put from what it is to enum rarch_poll_type.
Might fix building under clang 6.0
2019-11-15 00:47:46 +00:00
Twinaphex 666ebb0ae1 Update CHANGES.md 2019-11-15 00:59:17 +01:00
Twinaphex 8548771025 Merge pull request #9682 from fpscan/turkish-translation
Update msg_hash_tr.h
2019-11-15 00:58:51 +01:00
Twinaphex 6adfff6995 Update CHANGES.md 2019-11-15 00:56:51 +01:00
Twinaphex 724865a8fc Update freetype.c 2019-11-15 00:53:17 +01:00
Twinaphex eab80384ab Update CHANGES.md 2019-11-15 00:52:11 +01:00
Twinaphex cbf0bc9cfc Merge pull request #9721 from guoyunhe/fix-chinese-font-linux
Correct Droid Sans Fallback font path in Linux
2019-11-15 00:51:07 +01:00
Twinaphex 474110b818 Merge pull request #9720 from Rinnegatamante/master
Some improvements to Italian translation.
2019-11-15 00:50:27 +01:00
Guo Yunhe 52b3a4fe17 Correct Droid Sans Fallback font path 2019-11-14 18:01:46 +02:00
Rinnegatamante 2f7a6fa394 Some improvements to Italian translation. 2019-11-14 13:14:46 +01:00
Rinnegatamante 2a77dc5600 Make code C89 compliant. 2019-11-13 21:44:59 +01:00
Twinaphex d84dfee044 Merge pull request #9711 from WeedyWeedSmoker/French-update
Update french language with the latest additions
2019-11-13 18:31:23 +01:00
Rinnegatamante 616759ed8c [VITA] Implement check_window. 2019-11-13 11:19:51 +01:00
Rinnegatamante 637319c938 [VITA] Implement swap_interval in vita video driver context. 2019-11-13 09:57:03 +01:00
Rinnegatamante d7572399cc [VITA] Make (for now) vita2d renderer the default one. 2019-11-13 09:05:57 +01:00
rz5 2678789bd8 Refactor RetroArch input polling settings
* Refactored the way RetroArch sets the input state/poll callbacks, hopefully it's clearer now.

* The unnamed enum of poll type behaviors in core.h was moved to retroarch.h and is now named rarch_poll_type.
It represents polling behaviors implemented specifically by RetroArch.
First element starts at 1 to match the data encoding of RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE.

* Created rarch_set_input_cbs - sets different input state/poll callbacks based on a
rarch_poll_type parameter.

* Replaced the static variable core_poll_type_override in retroarch.c with a poll_type_lock flag
inside global_t's menu struct;
RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE will now call rarch_set_input_cbs and set poll_type_lock,
which blocks the user from changing behaviors from the menu.

* To follow the RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE spec, we now set poll_type_lock and call
rarch_set_input_cbs after calling unload_game.

* core_set/unset_netplay_callbacks will now set/unset poll_type_lock, preventing the
poll type from being changed by the user;

* The MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR action will now call rarch_set_input_cbs if poll_type_lock
isn't set, which means poll type is changed on-the-fly.
2019-11-13 00:11:05 +00:00
Rinnegatamante 96845f4a7e [VITA] Removing a no more used ifndef. 2019-11-13 00:45:48 +01:00
Twinaphex baaf27c268 Merge pull request #9712 from julianaito/master
OpenBSD/powerpc: fix "undefined reference to __mftb"
2019-11-12 23:11:17 +01:00
Charlène 3038e9e1ce OpenBSD/powerpc: fix "undefined reference to __mftb" 2019-11-12 22:24:35 +01:00
Rinnegatamante a30f7dc79f [VITA/PSP] Fix logging to file not working. 2019-11-12 19:46:37 +01:00
Rinnegatamante 2b20c8d350 [GL1] Fixed core frame renderer. 2019-11-12 19:46:37 +01:00
radius 3f88a49bdc linux frontend: add proper drives 2019-11-12 19:11:51 +01:00
Rinnegatamante bed9847b48 [VITA] Hijacking wrong positioning for UI elements. 2019-11-12 19:06:18 +01:00
Rinnegatamante 66bdf711f4 [VITA] Back to GL_LUMINANCE_ALPHA usage. 2019-11-12 16:33:47 +01:00
Rinnegatamante f3ca57e6f0 [VITA] Add vita video driver context. 2019-11-12 16:33:36 +01:00
Rinnegatamante 6b7673f806 [VITA] Fixing gl1 video driver crashes. 2019-11-12 15:37:37 +01:00
twinaphex 312f143253 Update dist-cores.sh 2019-11-12 14:55:37 +01:00
twinaphex 3a552e08ff Fix dist-cores.sh 2019-11-12 14:54:21 +01:00
Rinnegatamante 1533d618e5 [VITA] Allow usage of null context with gl1. 2019-11-12 13:50:14 +01:00
Rinnegatamante 6394342b9c [VITA] Add gl1 video driver support through vitaGL. 2019-11-12 11:54:00 +01:00
Weedy Weed Smoker 9c27f0e7c3 Update french language with the latest additions 2019-11-12 12:06:25 +07:00
twinaphex a0486c3cd7 Revert "Simplify slang_process.cpp"
This reverts commit 25a417cdd7.
2019-11-12 01:34:03 +01:00
Twinaphex 4cca0c1eb7 Merge pull request #9709 from Tatsuya79/patch-1
French translation fix
2019-11-11 19:58:40 +01:00
hunterk b142a44fd0 keep bilinear filtering for low-res targets 2019-11-11 12:56:55 -06:00
hunterk ed4aae2d18 switch to nearest neighbor scaling as default 2019-11-11 12:48:13 -06:00
Tatsuya79 a75491375c French translation fix 2019-11-11 19:34:36 +01:00
Twinaphex d31dcbed81 Merge pull request #9708 from jdgleaver/glui-thumb-tweaks
(GLUI) Minor thumbnail improvements
2019-11-11 19:20:35 +01:00
twinaphex 25a417cdd7 Simplify slang_process.cpp 2019-11-11 18:55:33 +01:00
jdgleaver df6d65e061 (GLUI) Minor thumbnail improvements 2019-11-11 16:30:42 +00:00
Twinaphex 95f68b0625 Update CHANGES.md 2019-11-11 15:47:53 +01:00
Twinaphex f9f7092370 Update CHANGES.md 2019-11-11 15:47:44 +01:00
Twinaphex 9e2ac1100c Merge pull request #9701 from WeedyWeedSmoker/French-translation-update
Update the french translation
2019-11-11 15:46:16 +01:00
twinaphex 8f492adac3 Fix some errors 2019-11-11 15:05:18 +01:00
twinaphex 0a4795f6d5 Rewrite dist-cores.sh - make it so that we don't exit out of the entire
script when a core fails to compile
2019-11-11 15:03:49 +01:00
Twinaphex 8a26931622 Update CHANGES.md 2019-11-11 14:20:07 +01:00
Twinaphex 52db3779c7 Merge pull request #9706 from Jamiras/cheevos_unsupported
(cheevos) display Unofficial and Unsupported achievement states
2019-11-11 14:19:36 +01:00
Jamiras 84de1ce2f2 display Unofficial and Unsupported achievement states 2019-11-10 19:48:46 -07:00
twinaphex 6443169bac Desktop Menu - hide 'Online Updater' if HAVE_ONLINE_UPDATER is not
defined
2019-11-11 02:06:33 +01:00
twinaphex 08ce33eed0 Add HAVE_ONLINE_UPDATER 2019-11-11 00:22:03 +01:00
Weedy Weed Smoker 1fc1a48bfe Ready to merge! 2019-11-11 06:21:49 +07:00
Weedy Weed Smoker e4bcfa6a2a Missed one translation! Done... 2019-11-11 06:15:31 +07:00
twinaphex cf586b7273 Hide Core Updater properly 2019-11-10 18:12:23 +01:00
twinaphex bc657778fe Add HAVE_UPDATE_CORES - by running ./configure --disable-update_cores
you can strip out the Online Core Updater
2019-11-10 15:55:39 +01:00
Weedy Weed Smoker ad5874b94d Clarify a sublabel... 2019-11-10 04:01:09 +07:00
Weedy Weed Smoker 0e6f33103a Add the new dual-thumbnail option from the US file 2019-11-10 03:54:07 +07:00
twinaphex 455982da91 Silence warning 2019-11-09 18:01:13 +01:00
twinaphex 0c83d2a7cf (Libnx) RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT - return false for libnx 2019-11-09 17:29:49 +01:00
twinaphex dbd1e70410 RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT - turn this off for now
for Switch
2019-11-09 17:16:29 +01:00
Twinaphex c62af7dc49 Merge pull request #9700 from jdgleaver/glui-dual-thumbs
(GLUI) Add dual thumbnail support
2019-11-09 15:19:21 +01:00
Weedy Weed Smoker 946713100a Add english back to the "cutie" color themes 2019-11-09 12:28:19 +07:00
Weedy Weed Smoker a3aef0f3f5 Use the "cutie" reference instead of a translation 2019-11-09 12:26:26 +07:00
Weedy Weed Smoker f3506054a1 Add a plural for the thumbnails... 2019-11-09 07:04:25 +07:00
Weedy Weed Smoker a5f1e9f817 Add a translation for "sunbeam"... 2019-11-09 01:28:59 +07:00
Weedy Weed Smoker ff03272e07 Update the french translation
with the latest additions in the US file!
2019-11-09 01:22:32 +07:00
jdgleaver bba454207e (GLUI) Add dual thumbnail support 2019-11-08 16:45:46 +00:00
Twinaphex f2898f4404 Merge pull request #9697 from BarryJRowe/master
Added fix for ai service overlay still showing when opening the menu.
2019-11-07 23:29:41 +01:00
Barry Rowe a247ee14cd Added fix for ai service overlay still showing when opening the menu. 2019-11-06 09:52:26 -08:00
Ömercan Kömür 42a85938e7 Update msg_hash_tr.h 2019-11-05 23:37:15 +03:00
Twinaphex 4d6555d58b Update CHANGES.md 2019-11-05 17:42:23 +01:00
Twinaphex 0493ecc7a6 Merge pull request #9687 from Jamiras/cheevos_user_agent
(cheevos) pass RetroArch and core versions through User-Agent HTTP header
2019-11-05 17:42:05 +01:00
Twinaphex 44219c00aa Update CHANGES.md 2019-11-05 17:41:33 +01:00
Twinaphex 545996f52e Merge pull request #9693 from altiereslima/master
Update Portuguese Brazilian translation
2019-11-05 17:41:04 +01:00
Twinaphex 16e7fe41dc Update CHANGES.md 2019-11-05 17:40:43 +01:00
Twinaphex 4a4b76111f Merge pull request #9692 from jdgleaver/glui-scroll-fix
(GLUI) Halt scrolling when pointer is pressed/stationary
2019-11-05 17:40:16 +01:00
Twinaphex 38716b518c Merge pull request #9688 from yoshisuga/ios_tvos_update_1_8_1
iOS/tvOS: update default assets.zip to show functional UI on startup;…
2019-11-05 17:02:51 +01:00
altiereslima a28bbf5d14 Update Portuguese Brazilian translation 2019-11-05 11:26:30 -03:00
jdgleaver 6afd684ae5 (GLUI) Halt scrolling when pointer is pressed/stationary 2019-11-05 12:23:09 +00:00
Ömercan Kömür ab56aca3ef Update msg_hash_tr.h
missing text added and translated
missing texts translated
2019-11-05 04:13:34 +03:00
Yoshi Sugawara 7e6ce4e279 iOS/tvOS: update default assets.zip to show functional UI on startup; update version to 1.8.1 2019-11-03 13:40:14 -10:00
Jamiras 67e9fba9d7 generate User-Agent for retroachievement API calls 2019-11-02 21:52:30 -06:00
Ömercan Kömür d326828fd6 Update msg_hash_tr.h
Missing texts translated to Turkish language
2019-11-02 18:00:29 +03:00
Ömercan Kömür 82b31c12c1 Flux
New RGUI Theme
2019-11-02 17:33:51 +03:00
twinaphex bfdc8e6a62 Bump up to 1.8.1 2019-11-02 12:17:03 +01:00
Twinaphex 078961648f Update CHANGES.md 2019-11-02 12:12:00 +01:00
Twinaphex 044851f608 Merge pull request #9616 from fpscan/master
New XMB Menu Color Theme: Sunbeam
2019-11-02 12:07:35 +01:00
Twinaphex dc696ab112 Merge pull request #9679 from IlDucci/master
Small typo correction and adding latest changes on msg_hash_es.h
2019-11-02 10:19:02 +01:00
IlDucci ec4f49d860 Fixed formatting issues with rgui
- Major formatting proofread to ensure no help screen goes past the hard character limits of rgui UI.
 - Tweaked the writing of some dialogues.
2019-11-02 00:00:27 +01:00
IlDucci 73e3620d20 Update msg_hash_es.h
- Fixed a missing accent in "English" language.
 - Translated the latest additions for the thumbnail views.
 - Replaced "landscape" and "portrait" with the extended translation in Spanish: "horizontal" and "vertical".
2019-11-01 22:31:02 +01:00
Twinaphex 112483e824 Turn on 'network on demand thumbnails' for Android/iOS 2019-11-01 20:29:22 +01:00
Twinaphex 36f13e0520 Update CHANGES.md 2019-11-01 20:20:21 +01:00
Twinaphex f0aafce88b Update CHANGES.md 2019-11-01 20:17:16 +01:00
Twinaphex e9643d189b Merge pull request #9659 from DEX357/patch-45
Update msg_hash_pl.h
2019-11-01 20:13:59 +01:00
Twinaphex 79b2b098b1 Update CHANGES.md 2019-11-01 20:13:19 +01:00
Twinaphex e60f72388e Merge pull request #9662 from IlDucci/master
Spanish language revision and update
2019-11-01 20:12:19 +01:00
Twinaphex 26f1e8be95 Merge pull request #9678 from jdgleaver/glui-scroll-position
(GLUI) Fix scroll position calculation
2019-11-01 19:04:27 +01:00
jdgleaver 697d16dd01 (GLUI) Fix scroll position calculation 2019-11-01 17:04:49 +00:00
orbea 841b3d620f travis: Log configure arguments + use before_script. 2019-11-01 09:41:38 -07:00
orbea b427f44908 qb: Update configure checks to print the check before the result.
This is very helpful for debugging in case the check just exits or hangs
unexpectingly.
2019-11-01 09:02:01 -07:00
orbea 98de418b7a qb: Improve the windres check. 2019-11-01 09:01:38 -07:00
orbea 8fc4a788e1 qb: Make the pkgconfig check more simple pt. 2: 2019-11-01 08:38:52 -07:00
orbea b590d0a219 qb: Print ... earlier.
Its better if the ... is printed before the check in case of unexpected
errors where it will look better.
2019-11-01 08:37:27 -07:00
Twinaphex eb2a881d55 Merge pull request #9675 from jdgleaver/glui-thumb-fix
(GLUI) Fix node height bug when showing thumbnails + set new default thumbnail view modes
2019-11-01 12:49:13 +01:00
jdgleaver b8d6e1d2c3 (GLUI) Fix node height bug when showing thumbnails + set new default thumbnail view modes 2019-11-01 11:13:34 +00:00
Twinaphex 72d416d5f2 Merge pull request #9672 from orbea/pkgconf
qb: Make the pkgconfig check more simple.
2019-11-01 11:21:48 +01:00
orbea 98b04b99dc qb: Remove deprecated arguments.
Please use --bindir, --mandir and --sysconfdir now.
2019-10-31 22:53:52 -07:00
orbea 14e159decf qb: Make the pkgconfig check more simple. 2019-10-31 22:36:04 -07:00
Twinaphex 8809932b49 Merge pull request #9670 from jdgleaver/glui-thumbs
(GLUI) Add initial thumbnail support
2019-11-01 01:55:35 +01:00
Twinaphex 5a9f435863 Update CHANGES.md 2019-10-31 18:40:49 +01:00
Twinaphex 72a087384b Merge pull request #9667 from Rinnegatamante/master
[VITA] Added accelerometer and gyroscope support.
2019-10-31 18:40:12 +01:00
jdgleaver c356969c3a (GLUI) Add initial thumbnail support 2019-10-31 17:25:55 +00:00
IlDucci 9ba48d8a4e Fixed some nesting problems. 2019-10-31 18:09:45 +01:00
IlDucci 01bf1c9710 Removing some unknown leftover. I'm not sure what else is left to do. 2019-10-31 17:28:33 +01:00
IlDucci 370c28f0d4 Added a missing component for the C89 workarounds. 2019-10-31 15:20:57 +01:00
IlDucci c10175030f Update msg_hash_es.c 2019-10-31 15:11:46 +01:00
IlDucci 3a8e58ada4 Copypasted fixes from French to solve two strings being too long for the C89 compiler.
Also tweaked some spaces before the "\n" code.
2019-10-31 15:11:31 +01:00
IlDucci d915787c9c Update msg_hash_es.c
Removing an extra "%s" in the virtual controller overlay.
2019-10-31 14:43:13 +01:00
IlDucci 7d5e24806c Adding first batch of fixes 2019-10-31 14:31:17 +01:00
IlDucci ee39d62031 Update to the Spanish revision/overhaul
- Fixed an instance where the term "peer" wasn't using the extended term (cliente).
 - Fixed the ordering of Dynamic Audio Rate Control.
 - Added a translation for the term "frame time".
 - Added the missing revision/proofread of the help messages.
 - Translated the missing help messages.
 - Did a quick cleanup of unneeded line jumps.
2019-10-31 13:59:36 +01:00
Rinnegatamante 064f821cf0 [VITA] Added accelerometer and gyroscope support. 2019-10-31 09:33:16 +01:00
Ömercan Kömür 9a3512df31 Revert "Delete msg_hash_fr.h"
This reverts commit fad8a0f29c.
2019-10-31 04:34:56 +03:00
Ömercan Kömür fad8a0f29c Delete msg_hash_fr.h 2019-10-31 04:23:16 +03:00
Ömercan Kömür 7021a4909e Merge branch 'master' into master 2019-10-31 04:22:33 +03:00
twinaphex d4b7be4ae4 Update libretro-common 2019-10-31 01:25:27 +01:00
twinaphex eb77d84716 Update libretro-common 2019-10-31 01:02:01 +01:00
hizzlekizzle 5639b3ebbd Merge pull request #9664 from alphanu1/master
Fixes for RPI
2019-10-30 14:33:07 -05:00
twinaphex d215d3ff44 Add HAVE_LIBNX conditional 2019-10-30 13:28:04 +01:00
alphanu1 a488876a6a Added missing argument to function (#2) 2019-10-30 08:43:51 +00:00
alphanu1 9c0f4c737e Fixes for RPI (#1)
New Raspberry Pi porch and aspect ratio generation. Added code to fix X offset for Raspberry Pi.
2019-10-30 08:34:02 +00:00
IlDucci 1f56d944ae Spanish language revision and update
Hello there, this is a large update and proofread for RetroArch's Spanish translation.

I have done the following changes:
 - Translated the new strings.
 - Unified the tenses being used for menu entry labels and sublabels (There was a mix of tenses all over the place, so I've decided for now to use infinitive for labels and present's second person in singular for starting sublabels).
 - Unified many terms that were translated in more than one way (frames, for example, had frames and fotogramas all around).
 - Added many missing trailing periods at sublabels and what I think are OSD notifications.
 - Fixed a metric ton of missing accents.
 - Added rewrites on some translations.
 - Updated translations wherever the English texts had substantial changes.

There's one thing that I might have mixed, and that's the Spanish region that the line's being directed. Back when I started this translation, I followed the European Spanish expressions and verbal tenses, but it seems there's been a deviation since then into Latin American Spanish's expressions and verbal usage (video/indice instead of vídeo/índice, encontró instead of ha encontrado... Not sure if it's actually an attempt to do Neutral Spanish).

A decision has to be made about this (Either try to go with Neutral or split the translation into European Spanish and Latin American. I'd personally go with the latter).
2019-10-29 23:12:06 +01:00
twinaphex 7dbd46c978 Add missing header 2019-10-29 21:21:48 +01:00
Twinaphex b854201bc1 Merge pull request #9649 from BarryJRowe/master
AI Service overlay.
2019-10-29 20:53:57 +01:00
Twinaphex 0719f9861c Merge pull request #9657 from p-sam/switch-input-sensor
(Switch) input driver sensor
2019-10-29 20:53:44 +01:00
hizzlekizzle d15f8e0dc5 Merge pull request #9654 from Tatsuya79/master
Cutie, Virtual Boy themes for glui.
2019-10-29 12:02:29 -05:00
DEX357 86a7e500e9 Update msg_hash_pl.h 2019-10-29 16:40:46 +01:00
Barry Rowe d641e67876 AI Service overlay. 2019-10-28 16:48:05 -07:00
Tatsuya79 eb72061b27 Cutie, Virtual Boy themes for glui. 2019-10-29 00:24:34 +01:00
Twinaphex b64289bd5f Merge pull request #9638 from Jamiras/cheevos_pce_cd
(cheevos) update PCEngine-CD hash algorithm
2019-10-28 20:54:05 +01:00
Twinaphex b3df81e791 Update CHANGES.md 2019-10-28 20:53:59 +01:00
Twinaphex eae8470dce Merge pull request #9631 from DEX357/patch-43
Update msg_hash_pl.h
2019-10-28 20:52:12 +01:00
Twinaphex 6456b5dcb1 Merge pull request #9647 from DEX357/patch-44
Update msg_hash_pl.h
2019-10-28 20:49:42 +01:00
Twinaphex 2ebf1a2c67 Merge pull request #9642 from WeedyWeedSmoker/French-translation-update
Update french translation and unifies formatting
2019-10-28 20:22:02 +01:00
Twinaphex 640a2b8991 Merge pull request #9653 from jdgleaver/mali-rotation-fix
Fix menu rendering with Mali GPUs after changing video dimensions
2019-10-28 20:21:49 +01:00
jdgleaver 6b4d76fc26 (GLUI) Minor bug fixes (#9646) 2019-10-28 20:21:37 +01:00
p-sam 49b87724eb (Switch) Implement driver sensor interface 2019-10-28 16:36:46 +00:00
p-sam f7f0499601 Fix mixed indentation 2019-10-28 16:36:46 +00:00
p-sam 0e79aa80d9 wip: merge libretro-common 2019-10-28 16:36:46 +00:00
jdgleaver c9b8164b0c Fix menu rendering with Mali GPUs after changing video dimensions 2019-10-28 14:42:48 +00:00
DEX357 1436dcfb30 Update msg_hash_pl.h 2019-10-27 17:17:54 +01:00
Weedy Weed Smoker 1ccd4d56fa Last typo fixed 2019-10-27 02:05:35 +01:00
Weedy Weed Smoker a4f0176089 Last typos fixed 2019-10-27 02:04:15 +01:00
Weedy Weed Smoker 4a76399583 Remove 2 duplicate entries, this can now be merged 2019-10-27 02:50:00 +02:00
Weedy Weed Smoker 5e2f0428c7 Delete remaining trailing spaces 2019-10-27 02:38:30 +02:00
Weedy Weed Smoker 8d4d69e218 Update french translation and unifies formatting
Update french translation on par with the english files, and unifies formatting...
2019-10-27 02:07:27 +02:00
twinaphex 14f8ee1e40 Update CHANGES.md 2019-10-26 22:03:48 +02:00
Jamiras 0615d655af fix travis error 2019-10-25 20:20:00 -06:00
jdgleaver 45deb2c218 (GLUI) Improve tab icon colours for 'Dark Blue' theme (#9636) 2019-10-25 18:58:45 +02:00
jdgleaver 1194b29c12 (GLUI) Navigation bar improvements (#9635) 2019-10-25 18:28:36 +02:00
Twinaphex b56551e978 Update version.all 2019-10-25 17:09:25 +02:00
twinaphex 32c2ae8278 Bump up version 2019-10-25 16:32:55 +02:00
Jamiras 0b92224c36 update PCEngine-CD hash algorithm; pregap cdfs support for CUE and CHD files 2019-10-24 18:46:43 -06:00
rz5 a723a833a8 (video_driver_frame) Cache frame before converting 0RGB1555 (#9629)
* (video_driver_frame) Don't convert 0RGB1555 when menu is active

Fixes the color cycling that happens when the menu is up and the core's internal pixel format is 0RGB1555.

This happened because video_driver_scaler would keep converting from 0RGB1555 to RGB565, even when the core was paused.

* Update retroarch.c

* Update retroarch.c
2019-10-25 02:15:07 +02:00
twinaphex c78a0da045 Disable this setting 2019-10-24 02:45:05 +02:00
Twinaphex bf122a33e6 Merge pull request #9630 from jdgleaver/glui-updates
(GLUI) Menu improvements (Round 3)
2019-10-24 02:03:26 +02:00
DEX357 37ea3d0cee Update msg_hash_pl.h 2019-10-23 19:43:18 +02:00
jdgleaver 3734ccbcc0 (GLUI) Menu improvements (Round 3) 2019-10-23 15:46:28 +01:00
twinaphex 362b76fd74 Update sthread_get_current_thread_id 2019-10-21 14:01:09 +02:00
twinaphex e968dd85e2 Implement sthread_get_thread_id (functional equivalent for
SDL_GetThreadId) and sthread_get_current_thread_id (functional
equivalent
for SDL_ThreadID)
2019-10-20 23:55:19 +02:00
twinaphex d51b32f662 Implement AI Service Pause 2019-10-19 20:53:17 +02:00
twinaphex 4e78375340 Update AI Service Mode sublabel 2019-10-19 20:39:54 +02:00
twinaphex 1bab26dc3d Add sublabel 2019-10-19 18:58:34 +02:00
twinaphex f678a06b95 Remove xbox 360 fonts 2019-10-19 16:42:39 +02:00
Ömercan Kömür ef464d9785 New XMB Menu Color Theme: Sunbeam 2019-10-19 14:50:58 +03:00
Twinaphex 682775ba83 Merge pull request #9614 from Rinnegatamante/videodrivers_yet_another
Implement the driver switch enable setting.
2019-10-19 00:29:20 +02:00
Rinnegatamante 24c798f550 Implement the driver switch enable setting. 2019-10-18 23:39:13 +02:00
twinaphex 73c853def4 Add setting 'Driver Switch Enable' - not hooked up yet 2019-10-18 23:03:29 +02:00
Twinaphex 38600f4cf3 Merge pull request #9611 from Rinnegatamante/videodrivers4
Re-initializing menu display driver even when widgets are not supported.
2019-10-18 20:54:29 +02:00
Ömercan Kömür e24ee95558 Merge pull request #1 from libretro/master
updates
2019-10-18 21:22:17 +03:00
Rinnegatamante 3cfde6cc45 Re-initializing menu display driver even when widgets are not supported. 2019-10-18 19:58:37 +02:00
Twinaphex 1c8d147d7c Merge pull request #9610 from jdgleaver/glui-refactors
(GLUI) Menu improvements (Round 2)
2019-10-18 19:27:11 +02:00
jdgleaver 37d12c3859 (GLUI) Menu improvements (Round 2) 2019-10-18 17:56:43 +01:00
Twinaphex 8283092367 Merge pull request #9609 from Tatsuya79/master
Add Ozone Dark theme to glui.
2019-10-18 12:53:33 +02:00
Tatsuya79 ed7c3dcff4 Add Ozone Dark theme to glui. 2019-10-17 18:14:48 +02:00
twinaphex 836fb17d0d (libretro-common) Update libretro-common 2019-10-17 01:48:41 +02:00
Twinaphex 564eb6a4a0 Update CHANGES.md 2019-10-17 01:19:25 +02:00
twinaphex 969ed176d6 Update CHANGES.md 2019-10-17 01:11:04 +02:00
twinaphex 8e2be92c72 Fix crash when setting thumbnail directory 2019-10-17 01:07:19 +02:00
Twinaphex f9d9dc8adb Merge pull request #9605 from p-sam/libnx-audren-default
(Switch) Make the audren threaded audio driver default
2019-10-16 20:22:37 +02:00
Twinaphex a127d2bf48 Merge pull request #9607 from jdgleaver/glui-colours
(GLUI) Menu improvements (Round 1)
2019-10-16 19:06:00 +02:00
Twinaphex 5fca67974d Merge pull request #9606 from Rinnegatamante/xrevert
Revert to old x context.
2019-10-16 18:54:45 +02:00
Rinnegatamante 02c35441d6 Revert to old x context. 2019-10-16 18:29:17 +02:00
jdgleaver 10d652a9f7 (GLUI) Menu improvements (round 1) 2019-10-16 17:17:49 +01:00
p-sam 77069b7299 (Switch) Make the audren threaded audio driver default 2019-10-16 15:43:26 +00:00
Twinaphex e34fdedfb4 Merge pull request #9601 from orbea/qb_die
qb: Update the die function.
2019-10-16 15:08:17 +02:00
Twinaphex dea603dcc1 Merge pull request #9602 from Rinnegatamante/videodrivers3
Fix for cached driver not restoring back with vulkan override
2019-10-16 15:08:03 +02:00
Rinnegatamante 011078f991 Fix for cached driver not restoring back to old one with vulkan override. 2019-10-16 14:31:56 +02:00
orbea d0442f4468 qb: Update the die function. 2019-10-15 19:29:29 -07:00
Twinaphex 615c581cd2 Merge pull request #9600 from fjtrujy/psp/CleanUp
PSP1 Some improvements
2019-10-16 01:06:49 +02:00
Francisco Javier Trujillo Mata fd75ae487e Disable the duplication FPS in PSP 2019-10-16 00:46:29 +02:00
Francisco Javier Trujillo Mata c2c3ed6a76 Make logs works again for PSP 2019-10-16 00:46:14 +02:00
Twinaphex 4ac264b1d0 Merge pull request #9591 from Rinnegatamante/videodrivers2
Graceful switching between videodrivers #2.
2019-10-15 22:49:17 +02:00
Twinaphex 65935696c3 Merge pull request #9598 from orbea/travis
travis: Try to fix xcode10.1.
2019-10-15 21:20:47 +02:00
Rinnegatamante 4d9fb951df Make code C90 compliant. 2019-10-15 19:31:27 +02:00
Twinaphex 836aa69f9c Merge pull request #9597 from orbea/wayland
Fix build when SDL2 is not built against wayland.
2019-10-15 19:28:00 +02:00
orbea 253f770259 travis: Try to fix xcode10.1.
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in `<top (required)>'
	from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
	from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `<main>'

The command "brew install --force-bottle qt5" exited with 1.

Source: https://stackoverflow.com/questions/54888582/ruby-cannot-load-such-file-active-support-core-ext-object-blank
2019-10-15 09:48:07 -07:00
Twinaphex 50fbf04df5 Merge pull request #9596 from orbea/networking
Remove redundant conditionals.
2019-10-15 18:36:38 +02:00
orbea 55d123d95a Fix build when SDL2 is not built against wayland.
Fixes https://github.com/libretro/RetroArch/issues/9583.
2019-10-15 09:10:18 -07:00
Rinnegatamante 7fee4ad11b Update libretro-common. 2019-10-15 17:43:50 +02:00
orbea 14308e0b98 Remove redundant conditionals.
HAVE_NETWORK_CMD should never be true when HAVE_NETWORKING is
false.
2019-10-15 08:15:37 -07:00
Twinaphex 6b93b77d0d Merge pull request #9595 from orbea/networking
qb: Fix --disable-networking.
2019-10-15 16:52:44 +02:00
orbea 70fd455b13 qb: Fix --disable-networking.
Fixes https://github.com/libretro/RetroArch/issues/9580.
2019-10-15 07:37:24 -07:00
Rinnegatamante 839747f420 Added RETRO_ENVIRONMENT_GET_PREFERRED_HW_RENDER. 2019-10-15 14:53:10 +02:00
Rinnegatamante d1a74e1b96 Fix for crash on Linux. 2019-10-15 09:07:15 +02:00
twinaphex 89e9bdc413 Buildfix 2019-10-14 01:35:04 +02:00
Twinaphex 87d0bce799 Update FUNDING.yml 2019-10-14 01:33:37 +02:00
twinaphex b29fbbb587 Update CHANGES.md and add another travis target 2019-10-14 00:38:47 +02:00
twinaphex f983519589 Enable HAVE_VIDEO_LAYOUT for OSX/Switch/iOS/Android 2019-10-14 00:36:58 +02:00
twinaphex 4fbf823707 Enable HAVE_VIDEO_LAYOUT by default 2019-10-14 00:31:44 +02:00
Rinnegatamante 26b0bc771d Add vulkan context logging. 2019-10-13 17:47:08 +02:00
Twinaphex 0eff23eeed Update CHANGES.md 2019-10-12 14:54:04 +02:00
Twinaphex 97f0357407 Update CHANGES.md 2019-10-12 14:52:33 +02:00
Twinaphex 92272fe01e Merge pull request #9556 from ToKe79/lakka_wifi_ap
[Lakka] Wi-Fi Access Point in RetroArch Settings
2019-10-12 14:52:12 +02:00
Twinaphex 52c73e6382 Update CHANGES.md 2019-10-12 14:50:22 +02:00
Twinaphex b26a031ca8 Update CHANGES.md 2019-10-12 14:49:18 +02:00
Twinaphex 5309036463 Update CHANGES.md 2019-10-12 14:48:29 +02:00
Twinaphex ca78e1c2bf Update CHANGES.md 2019-10-12 14:47:56 +02:00
Twinaphex 5340387164 Merge pull request #9584 from jdgleaver/menu-scaling
(GLUI) Menu scaling improvements
2019-10-12 14:46:36 +02:00
Twinaphex 912fb252c6 Merge pull request #9589 from Tatsuya79/patch-3
always show advanced sync options in Qt
2019-10-12 14:37:16 +02:00
Tatsuya79 1907deb8de show advanced latency options 2019-10-12 14:26:22 +02:00
Tatsuya79 042783af21 always show advanced sync options 2019-10-12 14:25:02 +02:00
Twinaphex 7bed40d17b Merge pull request #9547 from Rinnegatamante/videodrivers
Graceful switch between video drivers.
2019-10-12 14:21:33 +02:00
Rinnegatamante ff726d212c Fix for video driver config overwrite when video driver was forced by core on exit. 2019-10-11 15:15:18 +02:00
jdgleaver d6d0bb5e4e (GLUI) Add menu scaling workaround for Mac platforms (DPI requests currently cause crashes on Mac) 2019-10-11 13:31:00 +01:00
Twinaphex 2fe4cf6ca5 Merge pull request #9586 from JoeOsborn/patch-1
Fix BSV recording/playback
2019-10-11 13:54:13 +02:00
Joe Osborn ef0eba5c5f Fix BSV recording/playback
Inputs are 16-bit numbers, but the file writing routines were called with just one byte lengths.  This change fixes BSV recording and playback for me.
2019-10-11 07:37:58 -04:00
Rinnegatamante 77d185ba8b Fix video submenu not updating when a driver swap happens.
Thanks to jdgleaver for this.
2019-10-11 13:05:32 +02:00
jdgleaver e47e055508 (GLUI) Menu scaling improvements 2019-10-10 10:01:46 +01:00
Twinaphex 7afbd4632d Merge pull request #9582 from BarryJRowe/master
Added in fix for bmp returns to ai service.  Added in label passing to ai endpoint.
2019-10-09 22:58:23 +02:00
twinaphex cb576b1b95 Move include headers to rglgen_private_headers.h 2019-10-09 22:12:14 +02:00
Barry Rowe 778571e3d0 Added in fix for bmp returns to ai service. Added in label passing to
ai service call.
2019-10-09 12:41:31 -07:00
Twinaphex 9144583fdb Merge pull request #9576 from natinusala/fast-forward-osd
osd: fix fast forward indicator
2019-10-08 15:31:19 +02:00
natinusala e394b439a8 osd: fix fast forward indicator 2019-10-08 10:42:13 +02:00
Twinaphex b12d1d7d8a Merge pull request #9575 from RobLoach/fix/RobLoach/9514--title
Fix window title missing space
2019-10-08 04:26:04 +02:00
Rob Loach c41e2218f7 Fix minus character 2019-10-07 22:16:50 -04:00
Rob Loach f7dba5d331 Fix window title missing space 2019-10-07 22:15:07 -04:00
Twinaphex 4dcd7a0247 Update CHANGES.md 2019-10-07 05:29:59 +02:00
Twinaphex 956d08e9bc Update CHANGES.md 2019-10-07 05:29:19 +02:00
twinaphex 9fe72bfa7b Change this back to how it was before 2019-10-07 05:28:00 +02:00
Twinaphex b6eb048a12 Merge pull request #9560 from mrjschulte/patch-5
iOS - Update project.pbxproj to use 11.0 for all Deployment Targets.
2019-10-07 02:05:19 +02:00
Twinaphex 875ff0e28c Merge pull request #9563 from yoshisuga/fix-main-thread-call
iOS: #9562: wrap call to get app delegate around a gcd main thread async call
2019-10-07 02:05:01 +02:00
Yoshi Sugawara 2b415292c6 iOS: #9562: wrap call to get app delegate around a gcd main thread async call 2019-10-06 09:41:53 -10:00
Twinaphex 0f55f8f12b Silence warning 2019-10-06 21:24:41 +02:00
MrJs 41d3dfc591 Update project.pbxproj
Bump Optimization level to -0s for Release builds
2019-10-06 10:25:34 -07:00
MrJs a02245ade2 Update project.pbxproj
update remaining iOS deployment targets to 11.0
2019-10-06 10:18:49 -07:00
Twinaphex f0bfdbf209 Add header to prevent build failures 2019-10-06 03:43:49 +02:00
Twinaphex 2d769d4bfb Merge pull request #9558 from justinweiss/ctr-gfx-fix-flickering-with-osd
Fix 3DS screen flickering when OSD is enabled
2019-10-06 03:39:23 +02:00
Justin Weiss 64dc3dde40 Fix 3DS screen flickering when OSD is enabled
On the 3DS, for some cores, the screen will flicker if OSD is enabled,
and sometimes when going in and out of the menu.

As far as I can tell, this happens when a frame is dup'd, and we send
0x0 as the frame to the gfx driver. When that happens, we still draw
the OSD, using a vertex shader to transform and render it at the right
size.

When the frame is 0x0, though, the vertex shader uniforms are never
_reset_ to redraw the previous frame, so it's drawn with different
params, and gets drawn the wrong size. It will draw as the correct
size when the correct vertex shader uniforms are set, and the
incorrect size when the incorrect uniforms are set, causing
flickering.

At least, that's what I think is happening. Forcing the vertex shader
to be set regardless of whether the frame data is set fixes it, at
least during some light testing with PCSX.
2019-10-05 14:21:42 -07:00
Twinaphex 385dfdd33d Merge pull request #9557 from yoshisuga/ios-tvos-1-7-9
[iOS/tvOS]: Set version to 1.7.9, Xcode 11 project update
2019-10-05 22:48:58 +02:00
Yoshi Sugawara 777b0a33c3 Set version to 1.7.9, Xcode 11 project update 2019-10-05 10:19:18 -10:00
Twinaphex f8f29fbccf Update CHANGES.md 2019-10-05 19:31:43 +02:00
twinaphex fb6a2ef746 Turn menu_horizontal_animation into macro and actually use it for
default value
2019-10-05 19:11:59 +02:00
twinaphex 7969221919 Remove two unused variables 2019-10-05 19:08:57 +02:00
twinaphex 918b0619d0 (Travis) Add disable audio mixer target 2019-10-05 19:02:29 +02:00
twinaphex 0da68dacf5 Silence unused variable warning 2019-10-05 19:01:05 +02:00
twinaphex 4cf27651ba (Cocoa defines) Guarantee backwards compatibility 2019-10-05 18:58:15 +02:00
twinaphex 7e9e330e99 Add another HAVE_AUDIOMIXER ifdef - use string_is_equal instead
of strcmp
2019-10-05 18:50:28 +02:00
twinaphex 7175c3ec22 FIx another 'may be used uninitialized' warning 2019-10-05 18:43:25 +02:00
twinaphex 221df13250 Cleanups/warning fixes - compilation fix for OSX PPC 2019-10-05 18:38:17 +02:00
Tomas Kelemen (vudiq) 7b4c4efd11 Wi-Fi Access Point in RetroArch Settings
Adds an option to start wireless access point directly from RetroArch
settings menu (Services submenu). This wireless access point can be then
used for local netplay. If not defined in a specific config file
(LAKKA_LOCALAP_PATH), the arbitrary values for SSID/PassKey of the
created access point are LakkaAccessPoint/RetroArch. The menu/option is
added only in case when compiling with HAVE_LAKKA.
2019-10-05 13:18:15 +02:00
Rinnegatamante d18ae6dac6 Removed unused MSG_INCOMPATIBLE_CORE_FOR_VIDEO_DRIVER. 2019-10-05 10:16:48 +02:00
Rinnegatamante b6e6b78843 Properly changing video driver name in settings when a core forces one. 2019-10-04 19:45:49 +02:00
Rinnegatamante eed65a64b2 Removing no more required video context capabilities check at content_load time. 2019-10-04 19:25:05 +02:00
twinaphex 908974dfe4 (Android) Bump up version 2019-10-04 18:16:19 +02:00
Twinaphex 904f0e65e5 Update CHANGES.md 2019-10-04 18:14:45 +02:00
twinaphex 51722b628c Revert "Change detection around for coreaudio3"
This reverts commit 28ab397d60.
2019-10-04 18:13:58 +02:00
twinaphex 28ab397d60 Change detection around for coreaudio3 2019-10-04 18:10:50 +02:00
twinaphex 8a06263ba6 Fix regression with 'Set Core Association' and leave a TODO/FIXME note 2019-10-04 17:41:03 +02:00
Twinaphex 811138221a Fix unused variable warning 2019-10-04 17:34:46 +02:00
twinaphex daa30b1dc8 Use old DPI scaling for now on desktop until we have devised a good solution 2019-10-04 17:27:14 +02:00
Twinaphex d2ec1ba2cc Update CHANGES.md 2019-10-04 17:08:01 +02:00
Twinaphex 6467d24070 Merge pull request #9548 from fjtrujy/ps2MemoryLeaks
[PS2] Fix memory leaks in Font and GFX Driver
2019-10-04 17:07:35 +02:00
Francisco Javier Trujillo Mata eebe0eda48 Disable BUILD_FOR_PCSX2 by default 2019-10-04 16:12:43 +02:00
Twinaphex 419eb5a6c0 Remove unused variables 2019-10-04 16:06:34 +02:00
Twinaphex 0cd1843bc2 Merge pull request #9554 from Rinnegatamante/debug
[VITA] Added debug symbols usage.
2019-10-04 15:29:02 +02:00
Rinnegatamante 8066a6938f [VITA] Added debug symbols usage. 2019-10-04 15:21:37 +02:00
Twinaphex 16a5a69bae Update CHANGES.md 2019-10-04 14:41:47 +02:00
twinaphex eed44eea9c Cache this string too 2019-10-04 14:27:09 +02:00
twinaphex 1788042c9e (Android) dpi_get_density - cache one variable to avoid excessive
system_property_get querying
2019-10-04 14:22:10 +02:00
Twinaphex bf95fa34da Merge pull request #9552 from Rinnegatamante/mem
[VITA] Memory related improvements
2019-10-04 13:54:02 +02:00
Twinaphex 32f7d73835 Merge pull request #9553 from jdgleaver/overlay-auto-rotate
Add option to automatically rotate overlays
2019-10-04 13:53:55 +02:00
Twinaphex 88e56faafa Merge pull request #9551 from jdgleaver/glui-gestures
(GLUI) Add initial gesture support + bug fixes
2019-10-04 13:26:40 +02:00
jdgleaver 1df3e20bdd Add option to automatically rotate overlays 2019-10-04 12:15:57 +01:00
Rinnegatamante 6a5af218c7 [VITA] Implement get_mem_total/free for the frontend. 2019-10-04 12:12:14 +02:00
Rinnegatamante b3316fea35 [VITA] Make newlib heap allocation dynamic. 2019-10-04 12:11:52 +02:00
jdgleaver db030f6472 (GLUI) Add initial gesture support + bug fixes 2019-10-04 09:33:15 +01:00
Francisco Javier Trujillo Mata c48ccdb1fc Fix memory leak in the PS2 GFX and PS2 Font 2019-10-03 23:41:56 +02:00
Twinaphex 9ea18c433b Merge pull request #9545 from libretro/frangarcj-vita-memory
[VITA] More memory
2019-10-03 18:55:17 +02:00
Rinnegatamante 453781af9c Graceful switch between video drivers. 2019-10-03 17:45:59 +02:00
Francisco José García García a529b7b487 [VITA] Add 64Mb of memory 2019-10-03 14:33:33 +02:00
Francisco José García García 690670e2b5 [VITA] More memory 2019-10-03 13:58:23 +02:00
twinaphex 5351b56a0b Add this for Galaxy Store 2019-10-02 17:45:09 +02:00
Twinaphex b757304513 Merge pull request #9527 from monkeyman79/speedup-elf2rpl
Speed up elf2rpl by using maps
2019-10-02 09:40:26 +02:00
Twinaphex cc0ce43a57 Update CHANGES.md 2019-10-01 22:13:28 +02:00
Twinaphex 5904839bc6 Merge pull request #9541 from Rinnegatamante/master
[VITA] Add system language detection.
2019-10-01 20:35:31 +02:00
Rinnegatamante fffc7597fd [VITA] Add system language detection. 2019-10-01 19:55:43 +02:00
Twinaphex 4a7dfba6ee Merge pull request #9540 from SindenLightgun/master
Fixed bug with touchscreen/lightgun
2019-10-01 19:24:22 +02:00
Twinaphex addc75748b Merge pull request #9538 from jdgleaver/swipe-detection
(Menu Input) Re-work pointer 'swipe' detection
2019-10-01 14:14:03 +02:00
jdgleaver ece9851afb (Menu Input) Re-work pointer 'swipe' detection 2019-10-01 13:00:59 +01:00
SindenLightgun 2e480a37ea Fixed bug with touchscreen/
From my analysis I "believe" this is a development bug/typo and is causing issues with mouse and touchscreen input, that would affect touchscreen and lightgun APIs.
2019-10-01 12:26:13 +01:00
Twinaphex 890e076d20 Update CHANGES.md 2019-10-01 03:14:27 +02:00
twinaphex 547f8968aa (GL1) Buildfix + cleanups 2019-10-01 03:14:18 +02:00
Twinaphex b0b3abe775 Merge pull request #9535 from driver1998/gl1-gldirect
Support GLDirect (D3D9 to OGL1.1 wrapper) in gl1 driver
2019-10-01 02:19:45 +02:00
GH Cao 27d2877106 gl1: take care of const 2019-10-01 06:51:29 +08:00
GH Cao 897488862e gl1: adapt C89 2019-10-01 06:24:06 +08:00
driver1998 0212567d75 Support GLDirect (D3D9 to OGL1.1 wrapper) in gl1 driver 2019-10-01 06:02:30 +08:00
Twinaphex 109adf9739 Update CHANGES.md 2019-09-30 19:03:34 +02:00
Twinaphex ca2a4cdb27 Merge pull request #9532 from jdgleaver/pointer-input-updates
(Menu Input) Add mouse/touchscreen gesture support + full gesture support for XMB
2019-09-30 19:02:10 +02:00
jdgleaver 3057c31798 (Menu Input) Add mouse/touchscreen gesture support + full gesture support for XMB 2019-09-30 16:55:41 +01:00
Twinaphex 0a123e8215 Merge pull request #9530 from swingflip/master
Fixed bug with QB regarding lxcb
2019-09-29 23:02:16 +02:00
Twinaphex 1eaf6f54cc Merge pull request #9529 from swingflip/master
SEGA Mini/SNESC update
2019-09-29 22:47:27 +02:00
Ryan 'Swingflip' Hamlin 9be6d265b4 Fixed bug with QB. (Now doesn't look for the x11 client library headers (lxcb) if --disable-x11 is true) 2019-09-29 21:46:22 +01:00
Ryan 'Swingflip' Hamlin 8fff917341 add platform specific to classics 2019-09-29 21:44:58 +01:00
Ryan 'Swingflip' Hamlin adc3c9e36b SEGA Mini/SNESC update
- Replaced crap A7A7 make
- Added better targets and clean targets for Sega Mega Drive Mini and (S)NES Classic
2019-09-29 21:41:13 +01:00
Twinaphex da06dfca0d Update .travis.yml 2019-09-29 20:05:21 +02:00
Twinaphex 030231038c Update CHANGES.md 2019-09-29 19:49:59 +02:00
Twinaphex 38fe58e746 Merge pull request #9521 from Jamiras/segacd_cheevos
(cheevos) support for Sega CD/Saturn; reduce hash calls to server
2019-09-29 19:33:36 +02:00
twinaphex b80b9cd157 CXX_BUILD buildfix 2019-09-29 17:58:02 +02:00
Twinaphex 8a68c620ac Merge pull request #9526 from FreeShippingParty/delete_playlist
Add option to delete playlists
2019-09-29 17:52:00 +02:00
Tadek Kijkowski 4b73879369 Speed up elf2rpl by using maps 2019-09-29 17:36:39 +02:00
Jamiras 1ab81e5711 support for Sega CD/Saturn; reduce hash calls to server 2019-09-29 09:07:16 -06:00
FreeShippingParty 999887bda5 Add option to delete playlists 2019-09-29 10:48:46 -04:00
twinaphex b9a08520ff Move File Manager settings to Settings 2019-09-26 21:01:59 +02:00
twinaphex 1da7baa49d (Android) get_mem_free - different implementation for Android 2019-09-26 20:07:39 +02:00
twinaphex 1b8093513d Bump up to 1.7.9 2019-09-26 19:57:20 +02:00
Twinaphex 2061b465fb Update CHANGES.md 2019-09-26 19:53:46 +02:00
twinaphex 6dd46e6971 Fix database query regression 2019-09-26 13:37:58 +02:00
Twinaphex 6ac8b89601 Update CHANGES.md 2019-09-26 06:12:25 +02:00
Twinaphex 4b586b6496 Merge pull request #9516 from rsn8887/master
Switch/Vita: Set default aspect to core provided instead of 4:3
2019-09-26 06:11:49 +02:00
Twinaphex e8bd94aab8 Merge pull request #9517 from torarnv/improve-metal-debugging
Improve metal debugging
2019-09-26 06:10:17 +02:00
Tor Arne Vestbø b5cf9b639e metal: Improve shader debugging
Having the path to each shader is helpful when debugging the
rendering pipeline. The render command encoder label is limited
to just the filename of the shader, as the graphics debugging
UI in Xcode doesn't handle long names very well.

We don't encode the pass number into the string as the shaders
can be organized in a graph, not just a linked list, so an
indexed order can be misrepresenting the flow.
2019-09-25 22:36:40 +02:00
Tor Arne Vestbø 91caf28bfc metal: Add some missing debug labels and groups 2019-09-25 22:36:40 +02:00
rsn8887 2409831a14 Switch/Vita: Set default aspect to core provided instead of 4:3 2019-09-25 13:59:35 -05:00
Twinaphex bc52b952d7 Update CHANGES.md 2019-09-25 13:43:29 +02:00
Twinaphex 4428b545bb Merge pull request #9510 from jdgleaver/dropdown-list-fixes
Menu drop-down lists: Add proper titles, and remember last postion when navigating core options
2019-09-25 11:53:07 +02:00
Twinaphex fdf3a07b15 Merge pull request #9512 from rsn8887/master
[SWITCH] Fix Switch build
2019-09-25 00:20:30 +02:00
rsn8887 c8c5b69b5e [SWITCH] Fix memory free and memory total reporting 2019-09-24 17:18:23 -05:00
twinaphex 473400902c Buildfix - apparently Switch memory reporting cannot be implemented
correctly
2019-09-25 00:08:28 +02:00
jdgleaver 58ad81f063 Menu drop-down lists: Add proper titles, and remember last postion when navigating core options 2019-09-24 17:41:06 +01:00
twinaphex b01149f068 Cleanups 2019-09-24 16:22:20 +02:00
Twinaphex 89ae74fba6 (MaterialUI) Fix handle float cast overflow 2019-09-24 11:38:47 +02:00
Twinaphex a1f2c6197f Update CHANGES.md 2019-09-24 11:16:04 +02:00
twinaphex f4467d6595 Combine RARCH_LOG/RARCH_ERR messages 2019-09-24 08:24:19 +02:00
Twinaphex 688d1ef81c Merge pull request #9505 from jdgleaver/ozone-metadata-wrap
(Ozone) Add option to toggle between static and scrolling content metadata
2019-09-23 21:54:22 +02:00
Twinaphex 4f2ed12e4f Merge pull request #9504 from Wiimpathy/WiiFreeMem
Wii/GC: free memory instead of used memory
2019-09-23 21:27:32 +02:00
jdgleaver ef710442f1 (Ozone) Add option to toggle between static and scrolling content metadata 2019-09-23 15:33:20 +01:00
benoa 2bd71b55bc Wii/GC: free memory instead of used memory 2019-09-23 16:09:53 +02:00
Twinaphex c78dcbd382 Merge pull request #9488 from justinweiss/enable-luma-svchax
Enable svchax in 3dsx builds when running under Luma3DS 8.0+
2019-09-23 11:14:20 +02:00
Twinaphex 80b62fc635 Merge pull request #9501 from justinweiss/always-define-runtime-shader-preset
Ensure {set,unset}_runtime_shader_preset are always defined
2019-09-23 11:10:34 +02:00
Twinaphex 7d466c8177 Update CHANGES.md 2019-09-23 09:24:54 +02:00
Twinaphex 516bace3ca Update CHANGES.md 2019-09-23 09:24:34 +02:00
twinaphex 3307e65ad3 Fix FPS text in threaded video mode 2019-09-23 09:22:35 +02:00
twinaphex 01dc71f598 (menu_driver.c) Cleanups 2019-09-23 04:49:01 +02:00
twinaphex 17fb07cb85 (Menu) Simplify menu_entries_get_core_title 2019-09-23 04:44:22 +02:00
twinaphex 85d9eeb50d Should fix CXX_BUILD 2019-09-23 04:40:18 +02:00
twinaphex 0314921434 (menu_cbs_deferred_push.c) Cleanups 2019-09-23 04:31:12 +02:00
twinaphex dde7c28730 (menu_shader.c) Cleanups 2019-09-23 04:27:03 +02:00
twinaphex 682b403a9c menu_content.c - This file is no longer necessary 2019-09-23 04:24:00 +02:00
twinaphex 08d3fe8c04 Cleanups 2019-09-23 04:19:52 +02:00
twinaphex 82259a086e Make action_scan_directory safer - fill_pathname_join now doesn't
have the same variable for arguments 1 and 2
2019-09-23 04:14:10 +02:00
twinaphex d045484788 Cleanups of some strings 2019-09-23 02:41:19 +02:00
twinaphex dd522cdc6f Turn function static 2019-09-23 02:23:20 +02:00
Twinaphex ae7d956341 Silence warning 2019-09-23 01:44:53 +02:00
twinaphex b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
Justin Weiss 621c79dd3c Ensure {set,unset}_runtime_shader_preset are always defined
These functions are used elsewhere, so they need to be defined. (Or we
could guard every place they're called instead)
2019-09-22 14:39:27 -07:00
Twinaphex 21a2ba3f79 Update CHANGES.md 2019-09-22 23:06:05 +02:00
twinaphex 579c41535a (OSX/Metal) Only set CoreAudio driver as default for non-Metal build 2019-09-22 23:03:14 +02:00
Twinaphex 107b5eec44 (OSX) Simplify 2019-09-22 22:53:57 +02:00
twinaphex 882a66b49a C89_BUILD buildfix 2019-09-22 21:59:17 +02:00
Twinaphex b4e1ca8a2c Merge pull request #9499 from LazyBumHorse/fix_opti
fix path_relative_to()
2019-09-22 21:53:50 +02:00
LazyBumHorse f309c85f92 STRLCAT_CONST_INCR should be at most 1 statement, so single-line if, for etc work 2019-09-22 20:12:56 +02:00
LazyBumHorse db723df879 fix path_relative_to 2019-09-22 16:29:54 +02:00
twinaphex 5f87fa1aca CXX_BUILD buildfix 2019-09-22 14:04:02 +02:00
twinaphex f33264f7a6 (X11) XStoreName is a useless wrapper function around XChangeProperty 2019-09-22 13:00:44 +02:00
twinaphex c5b3428408 Add sdl2_common.c/.h 2019-09-22 12:40:40 +02:00
twinaphex efdc07ab10 (Wayland) update_title function - simplify this function a bit 2019-09-22 12:14:49 +02:00
twinaphex 920a20f060 (GX) Silence more warnings 2019-09-22 11:35:09 +02:00
Twinaphex 2414224df8 (Cocoa) It's only necessary to set the display server userdata for
set_video_mode
2019-09-22 11:29:58 +02:00
Twinaphex 511f43d5cf Move it to cocoa_gl_ctx.m 2019-09-22 11:26:06 +02:00
Twinaphex a6ec5a9831 Should now work 2019-09-22 11:19:54 +02:00
Twinaphex 6fe4559b8e Revert "(Cocoa) See if this works"
This reverts commit 1ddd7ee79d.
2019-09-22 10:54:11 +02:00
Twinaphex 83f1b28f98 Revert "(Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m"
This reverts commit 4f564360e7.
2019-09-22 10:54:01 +02:00
twinaphex 4f564360e7 (Cocoa) Move nsview_get_ptr and nsview_set_ptr to cocoa_gl_ctx.m 2019-09-22 10:48:23 +02:00
twinaphex 1ddd7ee79d (Cocoa) See if this works 2019-09-22 10:43:31 +02:00
Twinaphex 23bb1414ff (Metal) Buildfix 2019-09-22 10:30:59 +02:00
twinaphex ad1fb29092 (Metal) Refactor 2019-09-22 10:28:51 +02:00
Twinaphex 6a9feb7978 (OSX) Refactor this so that we always set the userdata
pointer so we can use the new set_title codepaths - will
have to check how to reduce the overhead in nsview_get_ptr
later
2019-09-22 10:19:03 +02:00
Twinaphex ae21bd98aa Update CHANGES.md 2019-09-22 09:23:08 +02:00
Twinaphex eadfb1398a Update CHANGES.md 2019-09-22 09:22:54 +02:00
Twinaphex bbb2bda20a Merge pull request #9497 from BarryJRowe/master
Added in rpng string streaming to ai service.
2019-09-22 09:16:47 +02:00
Barry Rowe 4e155dbc8e Added in rpng string streaming to ai service. 2019-09-21 23:57:59 -07:00
Twinaphex 9f0f53b1d7 (OSX) Correct userdata 2019-09-22 08:16:43 +02:00
twinaphex fbb8a9640c (OSX) Set pointer for HAVE_COCOA_METAL too 2019-09-22 08:00:39 +02:00
twinaphex 2135e86fc7 (Cocoa) Set video display driver userdata for Cocoa 2019-09-22 07:49:43 +02:00
Twinaphex 69a38f9b9f (Cocoa) Pass direct pointer to UI companion driver window title function 2019-09-22 07:41:56 +02:00
twinaphex c7fd375120 Create video_driver_display_userdata_{set/get} 2019-09-22 07:35:05 +02:00
twinaphex 464df18ac2 Add missing prototype 2019-09-22 05:56:04 +02:00
twinaphex 3a39a51f11 (CTR/3DS) Properly report free RAM 2019-09-22 04:42:20 +02:00
Twinaphex c2b26a3cd9 Remove unused variable 2019-09-22 04:40:01 +02:00
twinaphex ed29c6f59c Start going for consistent memory representation - instead of
'memory used' needs to become 'memory free'
2019-09-22 03:57:59 +02:00
Twinaphex a855447d11 Update CHANGES.md 2019-09-22 03:30:37 +02:00
twinaphex 111d666f85 Fix space 2019-09-22 03:30:04 +02:00
twinaphex d356f88fb5 Memory details can now be shown individually without FPS and
frame count
2019-09-22 03:21:36 +02:00
twinaphex 03bddff8e6 Cleanups of update_window_title functions 2019-09-22 03:05:06 +02:00
Twinaphex ccc2bea0c4 Merge pull request #9496 from monkeyman79/fix-elf2rpl
Fixed WiiU compilation randomly failing
2019-09-21 22:31:54 +02:00
Tadek Kijkowski c1504555ac Fixed WiiU compilation randomly failing
- Fixed elf2rpl referencing deleted symbols in relocations
- Added some diagnostics to elf2rpl (activated with -v switch)
2019-09-21 21:31:34 +02:00
Twinaphex 08393b1d0c Update CHANGES.md 2019-09-21 19:57:35 +02:00
Twinaphex 2fca06c994 Merge pull request #9495 from Jamiras/psx_cheevos_fixes
improve handling of line endings when calculating CD hashes for retroachievements
2019-09-21 19:57:12 +02:00
Twinaphex f4feda6323 Merge pull request #9494 from LazyBumHorse/fix_log
fix name of RetroArch's log file
2019-09-21 19:56:42 +02:00
Jamiras c5750da85a improve handling of line endings in m3u and cue files 2019-09-21 08:06:06 -06:00
LazyBumHorse c81d363a6e fix name of retroarch log file 2019-09-21 12:12:45 +02:00
twinaphex 302e2fdc53 Move show memory details outside of the video context driver and
into retroarch.c - avoid lots of code duplication
2019-09-21 07:49:33 +02:00
twinaphex f65e005d97 label_sanitization - change a bunch of functions to static 2019-09-21 03:55:20 +02:00
twinaphex 7cfd996802 Add return value to fill_pathname_noext 2019-09-21 01:41:56 +02:00
twinaphex 1ed38ddb2d Start using return values of fill_pathname_ functions 2019-09-21 00:22:40 +02:00
twinaphex 6d8bc91220 Start returning sizes for file_path functions 2019-09-21 00:01:09 +02:00
twinaphex 2f0a5f48aa Corect small log string 2019-09-20 23:36:29 +02:00
twinaphex 3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex 76f4cf5cc5 Start using STRLCAT_CONST/STRLCAT_CONST_INCR/STRLCPY_CONST 2019-09-20 20:39:34 +02:00
Twinaphex 99a3aa8ee1 Update CHANGES.md 2019-09-20 18:28:06 +02:00
Twinaphex 73c63d8768 (Cocoa) Add mouse down events 2019-09-20 18:22:14 +02:00
Twinaphex 3da84396b6 Remove unused variables 2019-09-20 17:34:35 +02:00
Justin Weiss 2e9a793519 Enable svchax in Luma3DS 8.0+ 2019-09-20 08:27:41 -07:00
Twinaphex bcb7e14d0f Merge pull request #9490 from jdgleaver/horiz-mouse-wheel-fix
Improve horizontal mouse wheel (tilt) navigation
2019-09-20 16:16:50 +02:00
Twinaphex 42818a2310 Merge pull request #9489 from jdgleaver/rgui-mouse-drag-fix
(RGUI) Ensure display is always refreshed when pointer input is active
2019-09-20 16:16:39 +02:00
jdgleaver eb72a2e7d2 Improve horizontal mouse wheel (tilt) navigation 2019-09-20 14:16:21 +01:00
jdgleaver dacf9e327a (RGUI) Ensure display is always refreshed when pointer input is active 2019-09-20 11:04:31 +01:00
twinaphex 2a8798b729 Cleanups 2019-09-20 09:31:18 +02:00
Twinaphex 2892abf155 Update CHANGES.md 2019-09-20 08:49:49 +02:00
Twinaphex 3bd585a94e Update CHANGES.md 2019-09-20 08:46:10 +02:00
Twinaphex 2d4236882f Update CHANGES.md 2019-09-20 08:45:29 +02:00
twinaphex ec4bfd7827 Silence some warnings - statement unreachable etc. 2019-09-20 06:17:40 +02:00
twinaphex 7173efe10f (Network/Relay Server Location) RetroArch crashed when pressing
left while Relay Server Location entry was selected - index offset
would set itself to -1 and cause a buffer overflow
2019-09-20 04:14:32 +02:00
twinaphex 43000d2e24 (Networking) Fix memory leak that could happen at exit after a network
operation has ran (menu_driver_data->core_buf gets allocated inside
cb_net_generic_menu and doesn't get freed until the function is ran
again
2019-09-20 04:08:03 +02:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
Twinaphex 72a9d77638 Merge pull request #9484 from Wiimpathy/GCfix
GameCube: Fix build
2019-09-19 20:45:05 +02:00
Twinaphex 36e5909057 Merge pull request #9485 from jdgleaver/input-update
Overhaul menu mouse/touchscreen input handling
2019-09-19 20:44:35 +02:00
jdgleaver 8655038601 Overhaul menu mouse/touchscreen input handling 2019-09-19 16:53:22 +01:00
benoa 9250f649db GameCube: Fix build 2019-09-19 15:13:22 +02:00
twinaphex 71cc43651a (Ozone) Fix regression with sidebar textures 2019-09-19 09:03:07 +02:00
twinaphex e7eb0e2b3e Combine two RARCH_LOGs into one 2019-09-19 09:00:05 +02:00
twinaphex 33353d5cd9 Fix C89_BUILD buildfix 2019-09-19 07:07:03 +02:00
Twinaphex 1149487fbd Update CHANGES.md 2019-09-19 06:27:55 +02:00
twinaphex f192e8618f (Win32) Call the log window 'Logging Console' 2019-09-19 06:23:31 +02:00
twinaphex 4eac009c27 Buffer more before we send text to be logged to stderr/stdout
and the logger interface for help/features/startup
2019-09-19 05:50:26 +02:00
twinaphex 15470596ad Remove 'puts' lines 2019-09-19 04:19:18 +02:00
twinaphex f4c6b06b49 (file_path.c) Remove some strlcpy/strlcat invocations 2019-09-19 03:45:18 +02:00
twinaphex 1d621c412c Add HW_RVL to this - won't compile on Gamecube otherwise 2019-09-19 02:15:18 +02:00
twinaphex 7dc2ca425f (RTGA) Further optimizations 2019-09-18 21:49:18 +02:00
twinaphex 1075522147 (RTGA) Cleanups 2019-09-18 21:13:46 +02:00
twinaphex 9a5b8f0475 (RBMP) Typo fix and some further cleanups 2019-09-18 20:30:39 +02:00
twinaphex bd39d72acd (RBMP) More optimizations 2019-09-18 20:25:15 +02:00
twinaphex b582f1c7c6 (RBMP/RJPEG) Cleanups + optimizations 2019-09-18 19:52:45 +02:00
twinaphex 1027762db5 Remove some trivial string_is_equal calls during parsing of buttons
in config_file
2019-09-18 18:22:31 +02:00
twinaphex ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
twinaphex 3a61cfe6ec Cleanup menu_displaylist_parse_content_information 2019-09-18 10:20:06 +02:00
Twinaphex d09362ed6f (OSX) Silence warnings for OSX 2019-09-18 10:04:21 +02:00
twinaphex 6eaf19533b (sublabels) Optimizations 2019-09-18 09:37:32 +02:00
twinaphex 8f8a9863ad Optimize sublabel_playlist_entry by removing snprintf 2019-09-18 09:28:37 +02:00
twinaphex c186747edc (video_shader_parse) avoid some more snprintfs 2019-09-18 09:11:32 +02:00
twinaphex 922680851a (features_cpu) noticed that the buffer wasn't actually being used,
so it can go
2019-09-18 08:37:35 +02:00
twinaphex 3fbeb0617b (glslang_util_cxx.cpp) Get rid of this strlcpy too 2019-09-18 08:03:49 +02:00
twinaphex 306d7f6f8a glsl_find_uniforms_frame - get rid of the remaining strlcats 2019-09-18 07:53:59 +02:00
twinaphex ab60005cdc (GLSL) Avoid snprintf, prefer strlcpy/strlcat where possible 2019-09-18 07:32:06 +02:00
twinaphex f663c64cd4 (MaterialUI/Ozone) Prevent more unnecessary strlcats 2019-09-18 06:43:01 +02:00
twinaphex a9ef8333eb Rewrite menu_entries_get_core_title 2019-09-18 06:35:21 +02:00
twinaphex 6d89bbfe61 (Menu animation) Avoid some strlcat usage here too 2019-09-18 05:54:32 +02:00
twinaphex b0a8f5d775 (menu displaylist) Some more cleanups 2019-09-18 05:40:06 +02:00
twinaphex ed77d46cc9 Cut down on some strlcat usage where not necessary 2019-09-18 04:58:52 +02:00
twinaphex 1ced1b3f73 (Platform unix) Updates 2019-09-18 03:37:25 +02:00
twinaphex 698387e762 (task_screenshot.c) Cleanups - don't use snprintf unless necessary 2019-09-18 02:31:02 +02:00
twinaphex 8928052863 (libretro-common) (VFS implementation) Cleanup 2019-09-18 02:23:25 +02:00
twinaphex 8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex 7dd3939a26 Update CHANGES.md 2019-09-17 08:20:01 +02:00
twinaphex b28c405377 Backport and rebase initial FPGA port that was done in 2017 (port
done for Z-Turn board) - has some outstanding issues such as
very slow framebuffer software rendering output that needs to
be overcome before this becomes usable - community help needed
2019-09-17 08:16:50 +02:00
twinaphex b6a6127509 Replace more snprintf usage 2019-09-17 07:30:29 +02:00
twinaphex 7d58bb9799 Avoid more snprintf usage 2019-09-17 06:34:00 +02:00
twinaphex 65aa939296 task_push_http_transfer_generic - rewrite snprintf usage 2019-09-17 06:10:15 +02:00
twinaphex c3c4638b22 Replace some snprintf usage where not necessary 2019-09-17 05:49:54 +02:00
twinaphex a36d5926d7 Cleanups 2019-09-17 05:30:07 +02:00
twinaphex 6f6b1a8333 (Net HTTP) Avoid unnecessary snprintf 2019-09-17 05:26:00 +02:00
twinaphex 861262ef3a (network gfx) Cleanup 2019-09-17 05:04:57 +02:00
Brad Parker c7c7d0988e initial network video driver, sends raw frames over TCP 2019-09-17 04:18:44 +02:00
twinaphex 712547cb2b C89_BUILD fix 2019-09-17 03:59:59 +02:00
twinaphex 5024b77492 Prevent more strlcats that are quite trivial 2019-09-17 02:43:40 +02:00
twinaphex d01ae6929d Don't use strlcat for basic concatenation of characters
except when absolutely necessary
2019-09-17 02:00:04 +02:00
twinaphex c2cad1f122 (platform_unix) Small cleanups 2019-09-17 01:33:54 +02:00
twinaphex 25f232616b input_config_get_bind_string_joyaxis - replace snprintf 2019-09-17 01:25:39 +02:00
twinaphex 4ea493c86c Turn cheat_manager_free into static function 2019-09-17 01:20:30 +02:00
Twinaphex d526530167 Merge pull request #9474 from yoshisuga/cheevos_fix_set_sublabel
(cheevos) Fix crash when setting sublabel of achievement
2019-09-17 00:26:42 +02:00
Yoshi Sugawara ae6e2f5df5 (cheevos) create a local string var to set the sublabel attribute when calling rcheevos_get_description. This prevents an unintended pointer reassignment and can cause a crash on strlcpy on some platforms 2019-09-16 12:54:03 -07:00
twinaphex 4354ad296d Revert "Cleanup - it shouldn't be necessary to call fill_pathname_slash"
This reverts commit 419fe62da8.
2019-09-16 20:40:08 +02:00
twinaphex 86839db417 set_label_shader_watch_for_changes - simplify 2019-09-16 20:02:49 +02:00
twinaphex b9e8e95498 use fill_pathname_join_delim at key places instead of snprintf 2019-09-16 19:58:56 +02:00
twinaphex 150f4f0f4b More efficient way of adding delimiting characters - proper spacing
as well in title bar
2019-09-16 19:20:03 +02:00
twinaphex 66794d2166 Rewrite input_config_set_device_path 2019-09-16 18:41:46 +02:00
twinaphex 81ec152f10 fill_pathname_slash only used now inside file_path.c 2019-09-16 18:25:02 +02:00
twinaphex 60574f04d2 We don't need the double char variable here 2019-09-16 17:44:14 +02:00
twinaphex 419fe62da8 Cleanup - it shouldn't be necessary to call fill_pathname_slash
after fill_pathname_join
2019-09-16 17:35:15 +02:00
twinaphex aacc544300 Turn cheat_manager_search into static function 2019-09-16 17:04:58 +02:00
twinaphex 9fd4ff7a8d (Cheat manager)
- Cleanups
- Functional improvement: don't attempt to create the 'core directory'
inside the cheats directory for game-specific cheats when we are only
trying to load the cheat - if we are loading and the directory doesn't
exist, that means the cheat file doesn't exist either
2019-09-16 16:57:50 +02:00
twinaphex 352be447df Update CHANGES.md 2019-09-16 16:35:23 +02:00
twinaphex 5ba77289d9 Merge branch 'master' of https://github.com/libretro/RetroArch 2019-09-16 16:32:50 +02:00
Twinaphex 497868ecaf Merge pull request #9473 from Tatsuya79/patch-2
fix gong crash
2019-09-16 16:29:17 +02:00
Tatsuya79 ef216d3010 fix gong crash 2019-09-16 16:27:34 +02:00
twinaphex d2add47f1e Merge branch 'master' of https://github.com/libretro/RetroArch 2019-09-16 05:17:22 +02:00
Twinaphex f45a1d797e Update CHANGES.md 2019-09-16 04:56:08 +02:00
Twinaphex 80311970cf Merge pull request #9469 from yoshisuga/ios_xcode_prep
(iOS/tvOS): Xcode project changes and small tweak
2019-09-16 04:49:45 +02:00
twinaphex 1040d3eedf Merge branch 'master' of https://github.com/libretro/RetroArch 2019-09-16 04:49:34 +02:00
Twinaphex 07c6b4c363 Merge pull request #9470 from Wiimpathy/WiiLightgun
Wii: Add wiimote lightgun support
2019-09-16 04:49:01 +02:00
Twinaphex 454b4ea715 Update CHANGES.md 2019-09-16 04:31:30 +02:00
Twinaphex 7c2d2246fe Update CHANGES.md 2019-09-16 04:30:27 +02:00
Twinaphex 725430994d Update CHANGES.md 2019-09-16 03:20:14 +02:00
Twinaphex ea7e682253 Update AndroidManifest.xml 2019-09-16 03:06:19 +02:00
Twinaphex 97d2be1ff3 Update CHANGES.md 2019-09-16 03:03:17 +02:00
Twinaphex d38dfa60f6 Update CHANGES.md 2019-09-16 03:02:27 +02:00
twinaphex b179dde1e7 Cleanups 2019-09-15 07:46:24 +02:00
twinaphex 4c7beacfe4 (RPNG) rpng_is_valid - cleanup 2019-09-15 07:40:02 +02:00
twinaphex b7fe19b6c8 (libretro-common) RPNG - Cleanup 2019-09-15 02:04:37 +02:00
benoa 744fac6777 Wii: Add wiimote lightgun support 2019-09-15 00:46:02 +02:00
Yoshi Sugawara f0adf90ec0 (iOS/tvOS): add references to some iOS specific source files to xcode project to make it easier to open and search source files; removed call to show native menu when going into the background 2019-09-14 14:16:23 -07:00
Yoshi Sugawara 70b573c951 added apple common ui files 2019-09-14 13:37:01 -07:00
Twinaphex e1a7b82b2e Merge pull request #9468 from yoshisuga/ios_build_fixes
(iOS/tvOS): IOS/tvOS build fixes
2019-09-14 22:05:50 +02:00
Yoshi Sugawara c24caa8f48 (iOS/tvOS): IOS/tvOS build fixes:
- change bundle identifier to match that used in the official releases
- remove code signature assignment
- add a minimal assets.zip so that one can build and run without having to be required to go thru the online updater
- add the tvOS core directory
2019-09-14 12:59:22 -07:00
Twinaphex 753be84ae0 (Apple) Silence some warnings 2019-09-14 17:15:30 +02:00
twinaphex 27ada9b7b2 Buildfixes for --disable-menu 2019-09-14 07:24:26 +02:00
twinaphex 785ed87117 (libnx/switch) Add HAVE_TRANSLATE 2019-09-12 17:59:06 +02:00
Twinaphex 85f07b6f27 Merge pull request #9405 from Jamiras/psx_cheevos_cdfs
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-09-11 23:38:23 +02:00
Twinaphex f004666674 Merge pull request #9456 from jdgleaver/date-format
Menu time/date: Add 12-hour versions of all formats + clean ups
2019-09-10 17:58:11 +02:00
Twinaphex eb012a353a Merge pull request #9460 from jdgleaver/build-fix
'CXX_BUILD=1' build fix
2019-09-10 17:58:01 +02:00
jdgleaver c645d43598 'CXX_BUILD=1' build fix 2019-09-10 16:49:07 +01:00
Twinaphex ef3c83da04 Merge pull request #9459 from jdgleaver/runtime-date-format
Enable customisation of runtime 'last played' display format
2019-09-10 17:35:20 +02:00
jdgleaver a0fd9d21d2 Enable customisation of runtime 'last played' display format 2019-09-10 16:14:38 +01:00
Twinaphex f6d1cbe6b9 Merge pull request #9447 from altiereslima/master
Update Brazilian Portuguese Translation
2019-09-10 06:38:03 +02:00
jdgleaver ac5c03c458 'DISABLE_MENU=1' build fix 2019-09-09 15:15:28 +01:00
jdgleaver 25006cadfe Menu time/date: Add 12-hour versions of all formats + clean ups 2019-09-09 14:06:49 +01:00
Twinaphex d00af57b4a Merge pull request #9451 from meepingsnesroms/master
Remove unfinished translation files
2019-09-09 14:36:03 +02:00
meepingsnesroms 85f46b9899 Remove unfinished translation files 2019-09-08 20:14:23 -07:00
altiereslima 50f2beb15b Update msg_hash_pt_br.h 2019-09-08 21:31:25 -03:00
Twinaphex 561a4cd4bf Update CHANGES.md 2019-09-09 01:22:19 +02:00
altiereslima 1b7e95b1bd Update msg_hash_pt_br.c 2019-09-08 14:05:50 -03:00
altiereslima f382589083 Update msg_hash_pt_br.h 2019-09-08 13:48:16 -03:00
altiereslima 7cdc5c8e93 Update Brazilian Portuguese Translation 2019-09-08 12:35:33 -03:00
Twinaphex 2179c16f60 Update main.cpp 2019-09-08 04:41:03 +02:00
Twinaphex fde7026ac2 Update Makefile 2019-09-08 04:19:58 +02:00
Twinaphex 8520a94b8f Update Makefile 2019-09-08 04:17:43 +02:00
Twinaphex e39f5d7143 Merge pull request #9443 from bmaupin/72-audio-crackles-on-psp
Fix PSP audio conversion code
2019-09-07 12:30:54 +02:00
bmaupin 3047c55121 Fix PSP audio conversion code
Fixes https://github.com/libretro/QuickNES_Core/issues/72
2019-09-06 21:02:37 -04:00
Twinaphex b875a69266 Merge pull request #9439 from jdgleaver/rgui-resize-2
(RGUI) Handle window resize event edge case
2019-09-06 16:26:41 +02:00
jdgleaver 518f1bae20 (RGUI) Handle window resize event edge case 2019-09-06 14:52:33 +01:00
Twinaphex 9edd5eeaeb Update CHANGES.md 2019-09-06 15:49:46 +02:00
Twinaphex b0cc504d7c Merge pull request #9438 from jdgleaver/rgui-resize
(RGUI) Correctly rescale menu when resizing window if aspect ratio lock is enabled
2019-09-06 15:49:20 +02:00
jdgleaver 5d5de8ce51 (RGUI) Ignore window resize events until next menu toggle after accessing video settings 2019-09-06 14:25:57 +01:00
jdgleaver a6ee786a4f (RGUI) Correctly rescale menu when resizing window if aspect ratio lock is enabled 2019-09-06 13:29:59 +01:00
twinaphex 48db589ed2 Update CHANGES.md 2019-09-06 14:11:38 +02:00
twinaphex dec30677d9 Should fix analog remap issues 2019-09-05 20:43:54 +02:00
Twinaphex c566b7eca5 Merge pull request #9432 from losernator/patch-2
Update Korean traslation
2019-09-05 16:44:34 +02:00
Joohan Lee e8df78f508 Update Korean traslation
Update Korean traslation
2019-09-05 16:18:04 +09:00
Twinaphex 7cca6ea394 Merge pull request #9423 from jdgleaver/rgui-glcore-fix
(glcore) Ensure correct scaling of menu texture (RGUI)
2019-09-03 19:58:26 +02:00
jdgleaver 3a680df733 (glcore) Ensure correct scaling of menu texture (RGUI) 2019-09-03 12:52:26 +01:00
Twinaphex 97d91a895c Merge pull request #9419 from torarnv/metal-draw-video-stats-over-overlay
metal: Draw video stats on top of overlay
2019-09-03 12:44:01 +02:00
Twinaphex f4aabd0226 Merge pull request #9404 from fpscan/master
Turkish Language Update for 1.7.8 changes
2019-09-02 20:52:24 +02:00
Tor Arne Vestbø af75ddd04a metal: Draw video stats on top of overlay 2019-09-02 20:02:16 +02:00
Twinaphex 5140bf9bd0 Merge pull request #9417 from torarnv/metal-draw-overlay-with-correct-viewport
Metal draw overlay with correct viewport
2019-09-02 20:01:39 +02:00
Tor Arne Vestbø 204407b64a metal: Set up correct viewport before rendering overlay 2019-09-02 18:02:30 +02:00
Tor Arne Vestbø 48d28aa734 metal: Split menu drawing out from core drawing 2019-09-02 18:02:30 +02:00
Twinaphex 7e50bedd07 Merge pull request #9416 from torarnv/remove-osx-suffix-in-window-title
Remove '_OSX' suffix from RetroArch window title
2019-09-02 15:54:55 +02:00
Twinaphex 7d267d124e Merge pull request #9415 from yoshisuga/tvos_13
(tvOS) tvOS 13 support: Update Xcode project to handle cores built using tvOS SDK
2019-09-02 14:18:09 +02:00
Twinaphex 8b3fcf7740 Merge pull request #9413 from torarnv/metal-use-correct-uniforms-when-blitting-menu-frame
Use correct uniforms when blitting menu frame with Metal
2019-09-02 13:42:17 +02:00
Tor Arne Vestbø 3ac29eb659 Remove '_OSX' suffix from RetroArch window title
There's no need for a platform-specific window title, and if there
was it should be macOS nowadays, not OS X.
2019-09-02 13:31:40 +02:00
Yoshi Sugawara a55a159fb9 (tvOS) Cores are now compiled using tvOS SDK and reside in a separate directory - required for iOS 13 support. Updated code sign script to handle tvOS cores 2019-09-02 01:24:29 -10:00
Tor Arne Vestbø e6227f9898 Use correct uniforms when blitting menu frame with Metal
Fixes broken rgui with the Metal video driver.
2019-09-02 13:01:42 +02:00
Twinaphex a52130e368 Update CHANGES.md 2019-09-02 02:44:23 +02:00
Twinaphex 350eeeebbf Merge pull request #9412 from brenodantas10/master
Soft-Patch any IPS size
2019-09-02 00:41:52 +02:00
brenodantas10 0ab26a1371 Soft-Patch any IPS size (put declarations at beginning) 2019-09-01 18:44:21 -03:00
brenodantas10 49032ae2f2 Soft-Patch any IPS size 2019-09-01 16:01:48 -03:00
Jamiras b1fb7a1c1e add hashing support for PSX cheevos (bin/cue, chd, or real CD) 2019-09-01 11:13:54 -06:00
Twinaphex 2997c26069 Merge pull request #9409 from torarnv/explicitly-invalidate-font-atlas-buffer
Explicitly invalidate atlas buffer when rendering text with Metal
2019-09-01 18:56:24 +02:00
Tor Arne Vestbø a7723ba13f Explicitly invalidate atlas buffer when rendering text with Metal
Fixes #9016
2019-09-01 18:46:26 +02:00
Ömercan Kömür 3fdd7a4b61 Turkish Language Update for 1.7.8 changes 2019-08-31 03:50:00 +03:00
1278 changed files with 144173 additions and 108795 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [libretro]
patreon: libretro
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
+45 -4
View File
@@ -1,3 +1,9 @@
# This setting is to prevent travis to launch duplicate builds on PRs
branches:
only:
- master
- /^v.*$/
# Use 'generic' to be able to override CC/CXX for clang
language: generic
@@ -26,6 +32,8 @@ matrix:
env: CXX_BUILD=1 CROSS_COMPILE=x86_64-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
- compiler: gcc
env: CC=gcc-8 CXX=g++-8
- compiler: gcc
env: CC="gcc-8 --sysroot=/" CXX="g++-8 --sysroot=/"
- compiler: gcc
env: C89_BUILD=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
@@ -36,6 +44,10 @@ matrix:
env: DISABLE_OVERLAY=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_CDROM=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_VIDEO_LAYOUT=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_AUDIOMIXER=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: ENABLE_GLES=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
@@ -48,14 +60,28 @@ matrix:
env: CXX_BUILD=1 CC=clang-6.0 CXX=clang++-6.0
- os: osx
env: CC=clang CXX=clang++
- name: OSX OpenGL Make
os: osx
osx_image: xcode11.2
script:
- ./configure --enable-opengl --disable-metal
- make
- os: osx
osx_image: xcode8
script:
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
- os: osx
osx_image: xcode10.1
osx_image: xcode11.2
script:
- brew update-reset
- brew install --force-bottle qt5
- security create-keychain -p travis build.keychain
- security default-keychain -s build.keychain
- security unlock-keychain -p travis build.keychain
- echo $OSX_CERT | base64 --decode > dev.p12
- security import dev.p12 -k build.keychain -P $OSX_CERT_PASS -T /usr/bin/codesign
- rm dev.p12
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k travis build.keychain
- xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
deploy:
skip_cleanup: true
@@ -79,9 +105,13 @@ matrix:
- cd pkg/android/phoenix
- ./gradlew assembleNormalRelease
jobs:
allow_failure:
- os: osx
before_install:
- |
if [ "$CC" = gcc-8 ]; then
if [[ "$CC" =~ ^gcc-8.* ]]; then
# Install a more recent gcc than the default
sudo apt-get install -y g++-8
elif [ "$CC" = clang-6.0 ]; then
@@ -93,7 +123,7 @@ before_install:
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
fi
script:
before_script:
- |
if [ -n "$CROSS_COMPILE" ]; then
ARGS="$ARGS --disable-d3d8 --disable-d3d9 --disable-d3d10 --disable-d3d11 --disable-d3d12"
@@ -110,6 +140,14 @@ script:
if [ -n "$DISABLE_CDROM" ]; then
ARGS="$ARGS --disable-cdrom"
fi
- |
if [ -n "$DISABLE_VIDEO_LAYOUT" ]; then
ARGS="$ARGS --disable-video_layout"
fi
- |
if [ -n "$DISABLE_AUDIOMIXER" ]; then
ARGS="$ARGS --disable-audiomixer"
fi
- |
if [ -n "$ENABLE_GLES" ]; then
ARGS="$ARGS --enable-opengles"
@@ -118,6 +156,9 @@ script:
if [ -n "$ENABLE_GLES3" ]; then
ARGS="$ARGS --enable-opengles3"
fi
- echo "Configure arguments = $ARGS"
script:
- ./configure $ARGS
- |
if [ -n "$C89_BUILD" ]; then
@@ -152,4 +193,4 @@ addons:
build_command: "make"
branch_pattern: coverity_scan
notifications:
email: false
email: true
+26 -1
View File
@@ -40,6 +40,31 @@
}
]
},
{
"name": "PSP-GDB Debugger",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/retroarchpsp.elf",
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"setupCommands": [
{
"text": "symbol-file ${workspaceFolder}/retroarchpsp.elf",
"description": "read symbols for elf file",
"ignoreFailures": true
},
{
"description": "Enable all-exceptions",
"text": "-exec \"catch throw\"",
"ignoreFailures": true
}
],
"showDisplayString": true,
"targetArchitecture": "mips",
"MIMode": "gdb",
"miDebuggerPath": "/usr/local/pspdev/bin/psp-gdb",
"miDebuggerServerAddress": "127.0.0.1:10001",
}
]
}
+2 -2
View File
@@ -42,7 +42,7 @@
"core_info.h": "c",
"thread": "c",
"xlocale": "c",
"menu_widgets.h": "c",
"gfx_widgets.h": "c",
"message_queue.h": "c",
"task_queue.h": "c",
"fifo_queue.h": "c",
@@ -52,7 +52,7 @@
"ozone_display.h": "c",
"verbosity.h": "c",
"retroarch.h": "c",
"menu_animation.h": "c",
"gfx_animation.h": "c",
"netplay.h": "c",
"scaler.h": "c",
"deque": "c",
+372 -1
View File
@@ -1,4 +1,374 @@
# 1.7.9 (future)
# Future
- AUTOCONFIG: Use correct port index in input device configured/disconnected notifications
- CHD: Fixes a crash caused by ignoring the return value from one of the CHD library functions.
- MENU: Prevent font-related segfaults when using extremely small scales/window sizes
- MENU: Fix 'gfx_display_draw_texture_slice()'
- MENU/FONT: Enable correct vertical alignment of text (+ font rendering fixes)
- MENU/OZONE: Update timedate style options for Last Played sublabel metadata
- MENU/OZONE: Hide 'Menu Color Theme' setting when 'Use preferred system color theme' is enabled
- MENU/OZONE: Fix thumbnail switching via 'scan' button functionality
- MENU/OZONE: Prevent glitches when rendering Ozone's selection cursor
- MENU/XMB: Fix thumbnail switching via 'scan' button functionality
- ODROID GO ADVANCE: Add DRM HW context driver
- PSL1GHT: Initial port
- SCANNER: Prevent redundant playlist entries when handling M3U content
- SCANNER/ANDROID: Fix content scanner being unable to identify certain games from CHD images (raw data sector/subcode)
# 1.8.5
- 3DS: Keep the bottom screen hidden on sleep/wakeup. When the 3DS wakes back up after being closed, the bottom screen needs to be reinitialized. Adding the condition here will cause the screen to be turned on or off based on the state of ctr_bottom_screen_enabled, as you'd expect
- ANDROID/CHROMEBOOK/CRASH: Fix Chromebook crashes (on x86 x64) when touching the screen
- BUGFIX: Prevent double input when using 'return' key (hardware) to close on-screen keyboard
- BUGFIX: Fix mouse capture hotkey not working
- BUGFIX: Avoid overflow when calculating multiplying performance counter
- BUGFIX: Retroarch overlay displaying "Game remap file loaded." on the overlay instead of "Core remap file loaded." when only a core remap file is present
- CHEEVOS/BUGFIX: Achievement triggers could cause Retroarch to Crash
- CHEEVOS: Don't block Sameboy core because it only exposes some memory
- CHEEVOS: Support for extended Sega CD memory
- CHEEVOS: Show RetroAchievements Hash in content information list
- CHEEVOS: If the core says it's exposing SYSTEM_RAM, give it the benefit of the doubt
- CHEEVOS: RetroAchievements rich presence for RA.org website/Discord
- CHEEVOS: Reset token when username or password changes
- CHEEVOS: Display measured progress on locked achievements
- CHEEVOS: Queue multiple popups
- CHEEVOS: Add delay retries to leaderboard submits
- CHEEVOS: Prevent buffer overflow when encountering an unknown macro
- CORE UPDATER: Prevent hang when fetching core list if HTTP transfer fails
- DISK CONTROL: Add disk labels to 'disk inserted' notifications
- EMSCRIPTEN: Recreate input event listeners properly
- FFMPEG CORE: Fix crash on seeking when using HW decoding in some cases
- LIBRETRO: Add disk control interface API extension
- LINUX: Avoid possible crash when running retroarch at startup
- LINUX/GLX: Fix threaded video crashes/instability because of GLX OML sync callbacks
- LOCALIZATION: Update French translation
- LOCALIZATION: Update Korean translation
- LOCALIZATION: Update Polish translation
- LOCALIZATION: Update Spanish translation
- LOCALIZATION: Update Portuguese Brazilian translation
- MENU: Add Menu Scroll Acceleration option
- MENU: Automatically select currently checked item when opening drop-down lists
- MENU: Fix smooth (vertical) line ticker scroll speed
- MENU: Don't flush on override/remap messages
- MENU/DATETIME: Adds some new timedate styles that follow the DD/MM/YYYY format, found in several European countries
- MENU/DATETIME: Modifies the existing translation files in order to accommodate the new options that are now available
- MENU/DATETIME: Reorders the timedate view options based on a decreasing order of the quantity of information displayed, so that they are more convenient to switch around and easily categorized
- MENU/BUGFIX: Fix bug - if you were in XMB and you would set menu driver to RGUI, you could no longer go to the left or right tab
- MENU/MATERIALUI: Add option to remove navigation bar
- MENU/OZONE: Add DPI-based scaling
- MENU/OZONE: Add rudimentary pointer support
- MENU/OZONE: Add 'Nord' and 'Gruvbox Dark' themes
- MENU/OZONE/POINTER: Pointer can be used to switch between sidebar and entries list
- MENU/OZONE/POINTER: Pointer can be used to select sidebar and entries list items
- MENU/OZONE/POINTER: Both sidebar and entries list can be scrolled by dragging
- MENU/OZONE/POINTER: Clicking/pressing the header or footer produces a 'cancel' action
- MENU/OZONE/POINTER: Cursor focus follows mouse pointer from sidebar to entries list (and vice versa)
- MENU/OZONE/POINTER: In entries list, item under cursor is automatically selected (with some fudging to ensure this doesn't break mouse wheel scrolling)
- MENU/OZONE/POINTER: In sidebar, item under cursor is not automatically selected (this is too jarring)
- MENU/RGUI: Add 'Flux' theme
- MENU/XMB: New color themes 'Cube Purple', 'Family Red', etc
- NETPLAY/MENU/BUGFIX: Fix Netplay Stateless Mode doesn't save. Affects other netplay settings which can be overridden by commandline option
- ODROID GO ADVANCE: Rotation support
- NETPLAY/ROOMS/BUGFIX: Prevent out-of-bounds array indexing when displaying/selecting netplay rooms in menus
- SCANNER: Add 'Arcade DAT Filter' Option
- SCANNER: Add scanning Korea and Asia PS1 discs
- SCANNER: Add support for scanning PSP Korean
- VIDEO: Set hardware 'Bilinear filtering' off by default
- VIDEO/WIDGETS: Widgets are now menu-independent
- VIDEO/WIDGETS: Allow notifications to use full screen width when not displaying menu
- VIDEO/WIDGETS: DPI-based scaling
- VIDEO/WIDGETS: Fix volume widget scaling
- VIDEO/WIDGETS: Add independent widget scale override settings for fullscreen/windowed modes
- VIDEO/WIDGETS/BUGFIX: Prevent improper display of (old style) OSD text when widgets are enabled
- VIDEO/WIDGETS/THREADED/BUGFIX: Fix issue - corruption of menu widgets when running some cores (e.g. VICE) with threaded video enabled
- WIFI/CONNMANCTL: Display more characters from SSID
# 1.8.4
- ANDROID/BUGFIX: Prevent crash when Android device is minimized and you go back to the app
- CAMERA/BUGFIX: Fix crash when a core requires the camera driver and the platform only has a null driver. This would crash mgba on Wii for example
- DISK CONTROL: Cycle Disk Tray now becomes Eject Disk or Insert Disk depending upon current drive state
- DISK CONTROL: Current Disk Index is only shown when the current disk has been ejected
- DISK CONTROL: The old Insert Disk entry has been changed to Load New Disk, and is only shown when a disk is currently inserted (this is because loading a new disk from the filesystem - i.e. bypassing the m3u playlist disk index interface - automatically ejects and inserts disks, and so cannot be done while the virtual drive is empty)
- DISK CONTROL: The Current Disk Index may now be set more easily via a drop-down list.
- DISK CONTROL: Selecting Eject Disk automatically moves the menu selection to the Current Disk Index entry
- DISK CONTROL: Selecting an index via the Current Disk Index drop-down list automatically moves the menu selection back to Insert Disk
- DISK CONTROL: The Disk Control entry sublabels have been changed for greater clarity
- DISK CONTROL: All of the horrendous notification spam has been removed. Notifications are now only shown in the event of an error, or when the menu itself does not provide sufficient visual feedback (note that using hotkeys to swap disks still produces the old style notifications, since this is typically only done while content is running - i.e. no menu). The duration of disk-related info notifications has also been reduced to a more sane level.
- DISK CONTROL: A new Resume content after changing disks option has been added under Settings > User Interface. When enabled (default setting), content is resumed automatically after selecting either Insert Disk or Load New Disk (when disabled, the menu remains open, obviously...)
- DISK CONTROL/BUGFIX: The Disk Control menu now has the correct title
- DISK CONTROL/BUGFIX: Selecting a disk via the Load New Disk file browser no longer flushes the user back to the top level menu (it now correctly returns to the Disk Control menu)
- LIBNX/SWITCH: Updated libnx integration to v3.0.0. This also cherry-picks libnx commit 583d6bb92dcbb33b6bb4a0fa1a9df6e3725d6ef6, which should fix the requirement having to turn rumble off and on in the system settings once per reboot
- PLAYLISTS: Add 'Clean Playlist' option
# 1.8.3
- ANDROID/BUGFIX: Fix 'Install or Restore Core' regression
- BUGFIX: Ensure core info is always initialised when calling 'drivers_init()'. This bug could prevent cores from doing content runtime logging
- BUGFIX/MENU: History size can only be set to 1 at a minimum
- BUGFIX/MENU: (XMB/OZONE) Fix 'quick menu' detection. XMB would not display savestate thumbnails in the quick menu if it was accessed via the main menu
- BUGFIX/CRASH/CORE UPDATER: Fix potential double free error
- BUGFIX/CRASH/OPENGL/WINDOWS: Fix regression in 1.8.2 that would cause GL-based cores to fail because it would try to erroneously load libGLESv2.dll instead of OpenGL32.dll (cores affected: VitaQuake 2/3/Dhewm3, possibly more)
- BUGFIX/MENU/DESKTOP UI: Show desktop menu on startup does not launch Qt UI on Linux
- BUGFIX: Entries in the Playlist Thumbnails Updater list were displaying improper sublabels. I have no idea when this broke... The issue is now fixed
- CHEEVOS: Don't disable achievement when AddAddress generates an out-of-range address
- CHEEVOS: Don't reset triggers/leaderboards that failed to load
- CHEEVOS: Don't count unsupported achievements as unlocked
- CORE UPDATER: Display number of cores updated when updating installed cores
- DINGUX: Initial port
- D3D11: Block FL9_3 devices from D3D11 driver because they don't work anyway (current D3D11 driver uses SM4.0 which requires FL10_0 and up)
- D3D11: Fallback to GL driver when D3D11 fails
- EMSCRIPTEN: Fix assets
- HISTORY/FAVORITES: Bump up default to 200 entries from 100
- FFMPEG CORE: Implement packet buffer, fixes MP4 video playback for many files
- LOCALIZATION: Update Italian translation
- LOCALIZATION: Update Polish translation
- LOCALIZATION: Update Russian translation
- LOCALIZATION: Update Spanish translation
- MENU: Added 'Hosting' menu under Netplay menu
- MENU: Added 'Subsystems' menu
- MENU/FILEBROWSER: Fix file selection issues when starting from (or navigating to) the top level directory
- MENU/WIDGETS: Prevent looping of task title text
- RASPBERRY PI: Fix BGRA8888 color inversion issues in the menu and elsewhere with VideoCore GL drivers
- NETPLAY/RELAY: Add Sao Paulo (Brazil) relay server
- NETPLAY/RELAY: Fix the “spectator” bug when using the relay server – When a player switches into the spectator mode (pressing “i”) while using the relay server, all players will disconnect.
- NETPLAY/RELAY: Overall stability has improved. Fixed a memory leak that would cause the relay server to become unresponsive after some time.
- NETPLAY/RELAY: Fixed critical bug that would cause all players to be disconnected from the relay server if one player was leaving the game. That bug had been open for one year and we were finally able to fix it.
- SWITCH/LIBNX/BUGFIX: Fix onscreen keyboard input regression
- THUMBNAIL UPDATER: When waiting for individual thumbnail file http transfers to complete, the task status checking is more accurate. This uses the same method as the new core updater - we now wait until the task is 'really' complete, instead of relying on the (slightly nebulous) 'task finished' state
- UWP: Add ANGLE support
- UWP: Wire up get_metrics to the fake context of D3D9/10/11/12 driver, enabling proper scaling and mouse/touch gestures
- VITA: Re-add Online Updater
- VULKAN: Fix font driver 'vulkan_get_message_width()' function
- VIDEO FILTERS: Only use threads when the number exceeds 1. Fixes race conditions with some CPU filters on Vita
- WINDOWS: Add ANGLE support for x64, separate binary (for now?)
# 1.8.2
- BUG/CRASH/GLSLANG: Fix glslang crashing error - managed to reproduce an issue which has been plaguing
users for a while, where glslang throws an assert after closing a game (and starting a new one). This would affect all video drivers that use Slang for shaders, such as D3D10/11/12/Vulkan/Metal
- CHEEVOS: Display Unofficial and Unsupported achievement states
- CHEEVOS: Pass RetroArch and core versions through User-Agent HTTP header
- CHEEVOS: Use PSX.EXE if SYSTEM.CNF cannot be found
- CHEEVOS: Prevent loading state while achievements are still being fetched from server
- CHEEVOS: Pause hardcore if core doesn't support achievements
- CHEEVOS/CRASH: Fix AddressSanitizer + CHD cause hard crash when Cheevos are enabled
- CORE UPDATER: Only download when new core is available
- CORE UPDATER: Add option to update all installed cores
- DRM/KMS: Better detection for the current video mode
- DYNAMIC RATE CONTROL: Support DRC even when using a vsync swap interval higher than 1
- EMSCRIPTEN: Fix bug in Emscripten input code
- EMSCRIPTEN: Changes to support upgraded emscripten SDK
- FFMPEG CORE: Hardware accelerated video decoding
- FFMPEG CORE: Implement send/receive encoding API, will allow for hardware accelerated AMD video encoding
- FFMPEG CORE: The video FIFO can be removed, since we have a ring buffer in its place. This removes unneeded copy operations and as a positive side improves overall decoding speed. Makes 8k60p SW and 4k60p HW decoding feasible on many systems. For now the ring buffer is 32 images deep. This limitation will be removed, once audio and video decoder have their own packet handling.
- INPUT: Fix 'Analog stick controls menu even if autoconfig disabled'
- INPUT/TURBO: Added alternate Turbo-Mode 'Single Button' - For systems supporting only a single button, the turbo-button will toggle firing that button without the need to hold it. When holding the button turbo will be suspended and resumed when the button is released. Holding the button may have a different function to just tapping it.
- IOS: Forcibly disable Threaded Video until UIWindow concurrency issues are fixed
- INPUT/ANALOG: Fix radial analog deadzone scaling
- INPUT/ANALOG: Implement proper analog button deadzone
- INPUT/MENU: Analog stick controls menu even if autoconfig disabled
- LOCALIZATION: Update Italian translation
- LOCALIZATION: Update French translation
- LOCALIZATION: Update Polish translation
- LOCALIZATION: Update Portuguese Brazilian Translation
- LOCALIZATION: Update Turkish translation
- LINUX/LOCALIZATION: Correct Droid Sans Fallback font path in Linux. This should fix Chinese/Korean font display issues on Fedora/RHEL/CentOS/openSUSE/SLE
- MENU/BUGFIX: When using a keyboard/gamepad/mouse wheel to navigate, the menu scroll position is always maintained and updated in a consistent (and expected) fashion
- MENU/BUGFIX: When resizing the window, or changing the orientation of a mobile device, the current scroll position is correctly preserved
- MENU/BUGFIX: All 'normal' pointer input is now inhibited when showing message boxes
- MENU/BUGFIX: The pointer actions 'select' and 'cancel' both now properly close a message box if it is currently being shown
- MENU/BUGFIX: Pointer 'select' and 'cancel' actions are now inhibited when an input bind dialog is active
- MENU/INPUT: Change 'User' terminology to 'Port' for input binding
- MENU/LINUX: Add proper drives to Load Content
- MENU/MATERIALUI: Halt scrolling when pointer is pressed/stationary
- MENU/MATERIALUI: Dual thumbnail view
- MENU/MATERIALUI: Fullscreen thumbnail viewer for boxart
- MENU/MATERIALUI: Scroll rapidly by press and holding the scrollbar
- MENU/RGUI: New theme 'Flux'
- MENU/OZONE: Thumbnails now have a fade-in animation
- MENU/OZONE: Fullscreen thumbnail viewer for boxart and pictures
- MENU/QT/WIMP: Fix dock titles getting cut off
- MENU/XMB: Fullscreen thumbnail viewer for boxart and pictures
- MENU/USABILITY: Selectively hide 'Disallow Non-Slave Mode Clients' if 'Allow Slave-Mode Clients' is disabled
- MENU/USABILITY: Hide 'Show desktop menu on startup' if 'Desktop menu' setting itself is disabled
- MENU/USABILITY: Reimplement Quick Menu - > Shaders -> Watch shader files for changes - can now be turned on/off through touch
- MENU/USABILITY: Refactor Quick Menu - Controls - each port now has its own submenu
- MENU/USABILITY: Quick Menu - Cheats - Delete All no longer requires five right button presses - this should fix this functionality for mobile touch users too
- MENU/USABILITY: Hide Refresh Rate options when Threaded Video is enabled - these settings do nothing with Threaded Video
- MENU/USABILITY: Hide Logging Verbosity levels behind Logging Verbosity
- MENU/USABILITY: Get rid of 'Port Number' label for Port Binds screen
- MENU/USABILITY/MOBILE: Should no longer crash when clicking on a cheat entry
- MENU/USABILITY: Shader parameters now have a dropdown list
- MENU/USABILITY: Shader passes now has a dropdown list
- MENU/USABILITY: Video - Hide Windowed Mode settings selectively
- MENU/USABILITY: Video - Hide Fullscreen Mode settings if windowed mode is not supported by context driver
- MENU/USABILITY: Selectively hide Network Command Port
- MENU/USABILITY: Selectively hide Relay Server Location
- MENU/USABILITY: User Interface -> Appearance - Selectively hide XMB Horizontal Animation setting
- MENU/USABILITY: Playlists - more selective hiding
- MENU/USABILITY: Selectively hide Rewind Settings
- MENU/USABILITY: Selectively hide Overlay Settings
- MENU/USABILITY: Selectively hide FPS Update Interval based on Display Framerate being enabled
- MENU/USABILITY: Selectively hide Onscreen Notifications BG Color Settings
- MENU/USABILITY: Settings -> Logging - Hide 'Log To File Timestamp' if 'Log To File' is disabled
- MENU/USABILITY: Video -> Scaling - Hide Custom Viewport X/Y when Integer Scale is enabled as description indicates
- MENU/USABILITY: Achievement submenu - selectively hide
- MENU/USABILITY: Settings -> Video -> Aspect ratio - selectively hide/show values based on whether you have Custom or Config selected
- MENU/USABILITY: Settings -> Video -> Selectively hide Hard Sync
- MENU/USABILITY: Settings -> Video -> Implement selective hiding for VSync and Hard Sync
- MENU/USABILITY: Selective hiding of Runahead settings based on global setting
- MENU/USABILITY: Add Input -> Haptic Feedback submenu
- MENU/USABILITY: Add Input -> Menu Controls submenu
- MENU/USABILITY: Settings -> Video -> Max Swapchain Images - Add OK action
- MENU/USABILITY: Input - Implement OK action for Bind Hold, Turbo Period and Duty Cycle
- MENU/USABILITY: Input - Hotkey Binds refactor
- MENU/USABILITY: Move 'Press Quit Twice' and 'Menu Toggle Gamepad Combo' to Input -> Hotkey Binds
- MENU/USABILITY: Video - Add sublabel for Video Output submenu
- MENU/USABILITY: If 'Favorites Tab' is disabled, don't show 'Add To Favorites' option in Quick Menu/Playlist menu
- MENU/USABILITY: If On-Demand Thumbnail Downloader is enabled, hide 'Download Thumbnails' from playlist menu screen
- MENU/USABILITY: Add Audio Driver setting to Audio -> Output
- MENU/USABILITY: Add Audio -> Resampler settings
- MENU/USABILITY: Add Audio -> Output and Audio -> Synchronization
- OPENGL: Shaders are now working properly (only in OpenGL) when rotating both from Core API rotation and from menu video rotation. The fix is clearly visible with crt-royale for example
- OPENGL: 1:1 PAR is now correct when rotating (both from Core API rotation and from menu video rotation, as you said, in the latter case you currently have to change Aspect Ratio after menu video rotation for it to work)
- OPENGL: When using Custom Aspect Ratio and rotation (both from Core API rotation and from menu video rotation), Integer Scaling is now working properly (correct multiples of internal resolution). Even when Integer Scaling is not activated, the Custom AR width / height are now correctly labeled using (1x), (2x), ... suffixes. You also have to activate Integer Scaling after menu video rotation for it to work
- OPENGL: For all other Aspect Ratio options, Integer Scaling and rotation (both from Core API rotation and from menu video rotation) are now working properly together (correct multiples of internal resolution). You also have to activate Integer Scaling after menu video rotation for it to work
- OPENBSD/POWERPC: Should build now on OpenBSD PowerPC
- PLAYLISTS: Pressing 'Start' or long touching a playlist will bring you to a Playlist submenu where you can set a default core, setup thumbnail view, delete the playlist, etc
- OSX: Forcibly disable Threaded Video until NSWindow concurrency issues are fixed
- PSP: Solving issue exiting RetroArch by HOME button
- SCANNER: Manual scanner, not dependent on database files
- SCANNER/MANUAL: Add option to scan inside archives
- SCANNER/MANUAL: Enable automatic naming of arcade content via DAT files. This is compatible with DAT files in either Logiqx XML or MAME List XML format.
- VIDEO: Do not reinit video driver on SET_SYSTEM_AV_INFO unless needed
- VIDEO: Support DRC even when using a vsync swap interval higher than 1
- VIDEO LAYOUT: Fixed XML parsing of attributes with spaces, should fix issues with several video layouts
- VITA: GL1 driver support
- VITA/VITA2D: Several improvements to Vita 2D driver - menu widgets implemented
- VITA/VITA2D: Fix clipping and reduce number of calls
- VULKAN/ANDROID: Workaround weird WSI return codes in landscape mode - Android WSI wants you to use preTransform, and if it is not used correctly, Android 10 will return VK_SUBOPTIMAL_KHR, and we would create a new swapchain every frame. This workaround just ignores this error, since it's not really an error. A more "proper" fix is to use prerotate and modify the MVP matrices,
which might help certain devices with crummy display processors
- VULKAN/ANDROID: Recreate swapchain on orientation change. ANativeWindow getWidth/Height does not detect any changes when using
Vulkan, so use the old onContentRectChanged callback to get notified when size changed. Use those values instead when figuring out how large swapchain to create
- WINDOWS/XINPUT: Get rid of 128 byte device name limit for XInput device discover - when device name was too long, it would not be picked up by the XInput driver and would instead fallback to DirectInput
- WINDOWS: ANGLE OpenGL ES 2 support
- UWP: Fix crashes on startup / prompt for folder permissions when trying to load custom.ini
- UWP: Fix - Mouse input is offset on high DPI monitors
- UWP: Fix - Keyboard input hangs sometimes
- UWP: Fix - Multi-touch support
- UWP: Fix - Enable menu touch input by default
- UWP: Fix - Get user language
- UWP: Fix - Get CPU model name
- UWP: Fix - Use GLUI instead of XMB on Windows Mobile 10
- UWP: ANGLE OpenGL ES 2 support
# (1.8.1)
- BUGFIX/MENU: Fix menu rendering with Mali GPUs after changing video dimensions
- CDROM: Adds pregap support to cdfs helper methods
- CHEEVOS: Provides the new PCEngine hashing algorithm for RetroAchievements
- LOCALIZATION: Update French translation
- LOCALIZATION: Update Polish translation
- LOCALIZATION: Update Spanish translation
- MENU/MATERIALUI: Initial thumbnail support
- MENU/MATERIALUI: Cutie / Virtual Boy theme added
- MENU/MATERIALUI: Bugfix - Under certain extreme circumstances, entries with very long sublabel strings could have their text prematurely 'clipped' as the entry is scrolled beyond the top of the screen
- MENU/MATERIALUI: Bugfix - Certain setting value strings were unnecessarily truncated (with a ...) when using smooth ticker text
- MENU/XMB: Sunbeam theme added
- SWITCH: Accelerometer, gyroscope and illuminance sensor support
- VITA: Accelerometer and gyroscope sensor support
# (1.8.0)
- AI SERVICE: Added in fix for BMP returns to AI service. Added in label passing to AI service call
- BSV: Fix BSV recording/playback
- BUGFIX: Fix crash when setting Thumbnail Directory
- BUGFIX/STABILITY: Set "Automatically Add Content to Playlist" to false by default, this was unstable on PS3 and Mac and other platforms potentially as well.
- COMMON: Graceful driver switching for Windows and Linux
- COMMON: Cache frame before converting 0RGB1555
- LAKKA: Wi-Fi Access Point settings
- MENU: Menu scaling improvements
- MENU/MATERIALUI: There are no longer any animation glitches when 'wraparound' scrolling from the last entry in a list to the first, or when performing horizontal swipe navigation gestures on certain settings-type entries
- MENU/MATERIALUI: List entries underneath the title and navigation bars are no longer highlighted when touching the title/navigation bars (this was only a cosmetic issue, but it was annoying...)
- MENU/MATERIALUI: The current menu list is no longer reloaded when pressing the currently active tab on the navigation bar
- MENU/MATERIALUI: The ticker text spacer has been set to a 'bullet' character (same as Ozone)
- MENU/MATERIALUI: The default colour theme has been set to 'Ozone Dark'
- MENU/MATERIALUI: Three new colour themes have been added.
- MENU/MATERIALUI: A new Menu Transition Animation option has been added under User Interface > Appearance. When this is enabled, menu transition events are animated
- MENU/MATERIALUI: The navigation bar is now shown at all times - i.e. it is an actual navigation tool, rather than a 'top-level-menu' curiosity
- MENU/MATERIALUI: Two new context-sensitive buttons have been added to the navigation bar - back button and resume button
- MENU/MATERIALUI: A new Auto-Rotate Navigation Bar option has been added under User Interface > Appearance. When enabled (this is the default setting), the navigation bar is moved to the right hand side of the screen when using landscape screen orientations.
- MENU/MATERIALUI: The playlists tab is now correctly hidden when User Interface > Views > Show Playlist Tabs is disabled
- MENU/MATERIALUI: Material UI now correctly readjusts its layout when screen orientation changes on mobile devices
- MENU/MATERIALUI: Material UI now resizes in real-time when the user manually sets the Menu Scale Factor (this never worked properly with the old DPI override)
- MENU/MATERIALUI: Material UI no longer leaks memory on 'context reset' (fonts were previously never free()'d)
- MENU/MATERIALUI: A new Android-style 'system bar' has been added. This shows current core name, clock and battery level
- MENU/MATERIALUI: A new search icon is shown on the title bar when viewing playlists and file browser lists. Pressing this launches the search interface
- MENU/MATERIALUI: The title bar now uses a larger font, and the sublabel font has also been enlarged a little, to more closely align with Material UI standards
- MENU/MATERIALUI: A number (quite a large number) of layout/spacing issues have been fixed
- MENU/MATERIALUI: The existing colour theme handling code is not fit for purpose, so the whole lot got ripped out and reimplemented. In doing so, also adjusted all the theme colours to better match Material UI standards - with a few liberties taken for aesthetic purposes.
- OSD: Fix fast forward indicator when not using menu widgets
- PSP1: Remove duplicated FPS indicator on the screen
- SWITCH: Make audren threaded audio driver the new default
- VIDEO LAYOUT: Add video layout mame overlay compatibility. Enabled for Windows/Linux/OSX/iOS/Android/libnx. Only works with GL driver for now, no glcore yet
# (1.7.9) (v2)
- 3DS: Fix 3DS screen flickering when OSD is enabled
- IOS: Fix crash that could happen at startup
- MENU/MATERIALUI: Change DPI scaling back to original - too many issues with current implementation, requires a redesign
# (1.7.9)
- AI SERVICE: Image mode is now much faster, it now saves the image in-memory in PNG format then passes it along to the translation service
- BUGFIX: Touch input - When using an overlay to toggle the quick menu on touchscreen devices, we no longer get 'phantom' menu input - i.e. the old bug of hitting the toggle and instantly resuming content (or performing a save state) is fixed
- BUGFIX: Networking - RetroArch crashed when pressing left while Relay Server Location entry was selected
- BUGFIX: Networking - fix memory leak that could happen at exit after a network
operation had run
- CHEEVOS: Improve handling of line endings when calculating CD hashes for retroachievements
- CHEEVOS: Add support for Sega CD/Saturn; reduce hash calls to server
- FPGA: Add initial FPGA port for Z-Turn boards - not really release-ready yet, will need community support to continue. Currently employs naive framebuffer approach, not fullspeed
- GL1: GLDirect (D3D9 to OGL1.1 wrapper) support
- GONG: Stability fixes
- LINUX/UDEV: Fix touchscreen/lightgun issues
- MENU/MATERIALUI: MaterialUI no longer 'forgets' its place when navigating backwards in menus, and navigation in general is 'cleaner'.
- MENU/MATERIALUI: Add initial gesture support
- MENU/MATERIALUI: Improved touch support
- MENU/MATERIALUI: Bugfix - Random' items are no longer automatically highlighted when performing standard up/down 'flick' scrolling through lists (items are only highlighted when you keep the pointer still for > 200 ms)
- MENU/MATERIALUI: Bugfix - The display no longer 'jerks' for one frame when navigating backwards through lists
- MENU/MATERIALUI: Bugfix - The Material UI scaling factor is now based upon the device-reported screen DPI value (previously it relied upon a hard-coded magic number, which was never correct)
- MENU/RGUI: Functional mouse/touchscreen support
- MENU/ONSCREEN KEYBOARD: On-screen keyboard entry via mouse/touchscreen has been tidied up - no more double inputs (or unwanted menu interaction in the background)
- MENU/MOUSE: Mouse wheel up/down is now a proper 'up/down', same as using cursor keys or a dpad
- MENU/MOUSE: Mouse wheel tilt left/right has been wired up to normal 'left/right' commands. Also further improved mouse wheel tilt
- MENU/OZONE: Add option to toggle between static and scrolling content metadata
- MENU/XMB: Add full gesture support
- MENU/OSX: Fixed mouse buttons - mouse down events were not hooked up
- MENU: When navigating backwards from a core options drop-down list (i.e. pressing select or cancel), the last menu position is remembered (instead of resetting back to the first core option item each time)
- MENU: Add mouse/touchscreen gesture support
- MENU: Add option to delete playlists (Settings > Playlists > Playlist Management)
- MOBILE (ANDROID/IOS): Add option to automatically rotate overlays when changing orientation
- OSD: Memory details should now be available on every platform (get_mem_total and get_mem_free need to be implemented in the frontend driver for it to work)
- OSD: Memory details can now be shown individually without FPS and frame count
- PS2: Fix memory leaks in font/video driver
- SWITCH: Set default aspect ratio to core provided instead of 4:3
- THREADED VIDEO: Fix FPS text in threaded video mode
- VITA: Set default aspect ratio to core provided instead of 4:3
- VITA: Add system language detection
- VITA: More memory support
- WIN32: Log window now has title 'Logging Console'
- WII: Add Wiimote lightgun support
# 1.7.8 (v4)
- COMMON: Enable customisation of runtime 'last played' display format.
- CHEEVOS: Add hashing support for PSX (bin/cue, chd, or real CD) (for real this time, got added in the CHANGELOG for v2 then reverted before it hit release)
- IOS: Update for iOS 13, fix the asset packaging issues
- LOCALIZATION: Update Portuguese Brazilian Translation
- MENU: Add 12-hour time/date versions of all formats
- SWITCH: Add 'AI Service' option to Switch (untested)
- SWITCH: Update to newest libnx
# 1.7.8 (v3)
- GLCORE: Ensure correct scaling of menu texture (with RGUI)
- IPS: Soft-Patch any IPS size
- METAL: Fix overlay issue - setup correct viewport before rendering overlay
- METAL/STB: Fix font driver issue with AMD GPUs on MacOS.
- MENU/RGUI: Correctly rescale menu when resizing window if aspect ratio lock is enabled.
- OSX: Remove OSX suffix in window title
- PSP: Fix audio conversion code
- REMAPS: Fix analog remapping regression -analog remapping would break controls
# 1.7.8 (v2)
- 3DS: Fix 3DS startup crash
@@ -880,3 +1250,4 @@ Skipped this one
# 1.4.1
+2 -2
View File
@@ -38,7 +38,7 @@ A pull request may be asked to fix the coding style before submission.
In other cases, a pull request may be followed up with a "style nit commit".
## Non-obvious things:
- Code should be both ISO C99 and ISO C++ compatible. This dual requirement is for XBox360 and MSVC in general. Think of it as a C++ compatible subset of C99.
- Code should be both C89 and ISO C++ compatible. This dual requirement is for XBox360 and MSVC in general. Think of it as a C++ compatible subset of C99.
- Warnings are not allowed (-Wall). Make sure your code is warning-free. Note that warning sensitivity differs a bit across compiler versions.
- Using deprecated APIs is discouraged.
@@ -55,4 +55,4 @@ We value discussing things in "real-time".
# Commit Access
Contributors who show a track record of making good pull requests over time will eventually get commit access to the repo.
This typically happens when the "overhead" of looking through pull requests over time becomes a burden.
This typically happens when the "overhead" of looking through pull requests over time becomes a burden.
+26 -29
View File
@@ -14,7 +14,11 @@ include config.mk
# (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
ifeq ($(HAVE_ANGLE), 1)
TARGET = retroarch_angle
else
TARGET = retroarch
endif
OBJ :=
LIBS :=
@@ -41,6 +45,8 @@ else
DEF_FLAGS += -ffast-math
endif
DEF_FLAGS += -Wall
ifneq ($(findstring BSD,$(OS)),)
DEF_FLAGS += -DBSD
LDFLAGS += -L/usr/local/lib
@@ -53,6 +59,10 @@ ifneq ($(findstring DOS,$(OS)),)
LDFLAGS += -lemu
endif
ifneq ($(findstring FPGA,$(OS)),)
DEFINES += -DHAVE_FPGA
endif
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -static-libgcc -lwinmm
endif
@@ -60,7 +70,7 @@ endif
include Makefile.common
ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang"),1)
DEFINES += -Wno-invalid-source-encoding -Wno-incompatible-ms-struct
DEF_FLAGS += -Wno-invalid-source-encoding -Wno-incompatible-ms-struct
endif
ifeq ($(shell $(CC) -v 2>&1 | grep -c "tcc"),1)
@@ -72,7 +82,7 @@ endif
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
ifeq ($(MISSING_DECLS), 1)
DEFINES += -Werror=missing-declarations
DEF_FLAGS += -Werror=missing-declarations
endif
ifeq ($(HAVE_DYLIB), 1)
@@ -98,10 +108,20 @@ ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
DEF_FLAGS += -Wall $(INCLUDE_DIRS) -I. -Ideps -Ideps/stb
ifneq ($(CXX_BUILD), 1)
ifneq ($(C89_BUILD),)
CFLAGS += -std=c89 -ansi -pedantic -Werror=pedantic -Wno-long-long
else ifeq ($(HAVE_C99), 1)
CFLAGS += $(C99_CFLAGS)
endif
CFLAGS += -D_GNU_SOURCE
endif
DEF_FLAGS += $(INCLUDE_DIRS) -I. -Ideps -Ideps/stb
CFLAGS += $(DEF_FLAGS)
CXXFLAGS += $(DEF_FLAGS) -std=c++11 -D__STDC_CONSTANT_MACROS
CXXFLAGS += $(DEF_FLAGS) -D__STDC_CONSTANT_MACROS
OBJCFLAGS := $(CFLAGS) -D__STDC_CONSTANT_MACROS
ifeq ($(HAVE_CXX), 1)
@@ -119,29 +139,6 @@ else
LINK = $(CC)
endif
ifneq ($(CXX_BUILD), 1)
ifneq ($(GNU90_BUILD), 1)
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE
else
CFLAGS += -std=gnu99 -D_GNU_SOURCE
endif
endif
ifneq ($(C89_BUILD),)
CFLAGS += -std=c89 -ansi -pedantic -Werror=pedantic -Wno-long-long
endif
endif
ifeq ($(NOUNUSED), yes)
CFLAGS += -Wno-unused-result
CXXFLAGS += -Wno-unused-result
endif
ifeq ($(NOUNUSED_VARIABLE), yes)
CFLAGS += -Wno-unused-variable
CXXFLAGS += -Wno-unused-variable
endif
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
ifneq ($(X86),)
@@ -199,7 +196,7 @@ endif
SYMBOL_MAP := -Wl,-Map=output.map
retroarch: $(RARCH_OBJ)
$(TARGET): $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
@@ -276,7 +273,7 @@ install: $(TARGET)
fi
uninstall:
rm -f $(DESTDIR)$(BIN_DIR)/retroarch
rm -f $(DESTDIR)$(BIN_DIR)/$(TARGET)
rm -f $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
rm -f $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
-92
View File
@@ -1,92 +0,0 @@
# This build was put together and is maintained by ModMyClassic.com for Libretro.
# The purpose is to give Libretro a proper "official" build platform for classic consoles.
# If you need any help in building for the classics or have any questions then please visit
# https://modmyclassic.com/comp and we will help in any way possible!
# Building Prerequisites ##############
# arm-linux-gnueabihf-strip
# patchelf
# bc
include version.all
# Classic Readme Variables ############
CLASSIC_ALT_VER := $(shell echo $(RARCH_VERSION) | tr . _)
CLASSIC_MODS_VER := Official_Retroarch_v$(CLASSIC_ALT_VER)
CLASSIC_MODS_NAME := RetroArch v$(RARCH_VERSION) (Official Optimised)
CLASSIC_VERSION := $(RARCH_VERSION)
MOD_CREATOR := Libretro + ModMyClassic
MOD_CATEGORY := RetroArch
GIT_COMMIT := $(shell echo "`git rev-parse --short HEAD``git diff-index --quiet HEAD -- || echo '-dirty'`")
# Platform dependant Variables ########
HAKCHI_DIR := RA_Platform-Hakchi
HAKCHI_GIT := https://github.com/Classicmods/RA_Platform-Hakchi
# General Shared Variables ############
TARGET := retroarch
# Libretro Defines ####################
#HAVE_CLASSIC = Classic Hook, disable some features
#HAVE_C_A7A7 = Classic Armv7 Cortex A7 optimisation override
#HAVE_HAKCHI = Hakchi Hook, change default configurations etc (TODO)
all: $(TARGET)
retroarch:
#Build the RetroArch Binary for cross platform classics (ARMv7 Cortex A7)
patchelf --version #Check if you have patchelf installed... (sudo apt-get install patchelf)
CFLAGS="-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" ./configure --host=arm-linux-gnueabihf --enable-mali_fbdev --disable-freetype --enable-opengles --enable-udev --enable-alsa --enable-neon --enable-floathard --disable-discord
make HAVE_CLASSIC=1 HAVE_C_A7A7=1 HAVE_HAKCHI=1 -j #Cook it
arm-linux-gnueabihf-strip -v retroarch
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...
#HAKCHI BUILD (NESC, SNESC)
#FYI this build was originally known as RetroArch 'Neo' for Hakchi.
@echo "** BUILDING CLASSIC_MODS HAKCHI - $(CLASSIC_MODS_VER) HMOD PACKAGE **"
rm -fr /tmp/$(HAKCHI_DIR)
cd /tmp/; git clone $(HAKCHI_GIT)
cp retroarch /tmp/$(HAKCHI_DIR)/bin/retroarch
echo $$(echo "Built by: " $$USER @ $$(date) \\\\\\ Git Commit: $(GIT_COMMIT)) > /tmp/$(HAKCHI_DIR)/etc/libretro/retroarch_version
cp /tmp/$(HAKCHI_DIR)/readme.md /tmp/$(HAKCHI_DIR)/readme_COPY.md
printf "%s\n" \
"---" \
"Name: $(CLASSIC_MODS_NAME)" \
"Creator: $(MOD_CREATOR)" \
"Category: $(MOD_CATEGORY)" \
"Version: $(CLASSIC_MODS_VER)" \
"Built on: $(shell date)" \
"Git commit: $(GIT_COMMIT)" \
"---" > /tmp/$(HAKCHI_DIR)/readme.md
cat /tmp/$(HAKCHI_DIR)/readme_COPY.md >> /tmp/$(HAKCHI_DIR)/readme.md
rm /tmp/$(HAKCHI_DIR)/readme_COPY.md
@echo "** COMPRESSING $(CLASSIC_MODS_VER) HMOD PACKAGE **"
cd /tmp/$(HAKCHI_DIR)/; tar -czvf "$(CLASSIC_MODS_VER).hmod" *
mv /tmp/$(HAKCHI_DIR)/$(CLASSIC_MODS_VER).hmod .
@echo "** BUILT CLASSIC_MODS HAKCHI - $(CLASSIC_MODS_VER) HMOD PACKAGE **"
rm -fr /tmp/$(HAKCHI_DIR) #clean up tmp
@echo "*********************************************************************"
@echo "*** Classic ARM7 Cortex A7 build and packages built successfully! ***"
@echo "*********************************************************************"
clean:
rm -rf obj-unix
rm -f *.d
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 $(CLASSIC_MODS_VER).hmod
+49
View File
@@ -0,0 +1,49 @@
# This build was put together and is maintained by ModMyClassic.com for Libretro.
# The purpose is to give Libretro a proper "official" build platform for classic consoles.
# If you need any help in building for the classics or have any questions then please visit
# https://modmyclassic.com and we will help in any way possible!
# Building Prerequisites ##############
# arm-linux-gnueabihf-strip
include version.all
# General Shared Variables ############
TARGET := retroarch
# Libretro Defines ####################
#HAVE_CLASSIC = Classic Hook, disable some features
#HAVE_C_A7A7 = Classic Armv7 Cortex A7 optimisation override
#HAVE_SEGAM = Sega Mini Hook, change default configurations etc (TODO)
all: $(TARGET)
retroarch:
#Build the RetroArch Binary for cross platform classics (ARMv7 Cortex A7)
patchelf --version #Check if you have patchelf installed... (sudo apt-get install patchelf)
CFLAGS="-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" ./configure --host=arm-linux-gnueabihf --disable-wayland --disable-x11 --disable-opengl --disable-opengl1 --disable-opengl_core --enable-mali_fbdev --disable-freetype --enable-opengles --enable-udev --enable-alsa --enable-neon --enable-floathard --disable-discord
make HAVE_CLASSIC=1 HAVE_C_A7A7=1 HAVE_SEGAM=1 -j #Cook it
arm-linux-gnueabihf-strip -v retroarch
@echo "*********************************************************************"
@echo "*** SEGA Mega Drive Mini RetroArch binary built successfully! ***"
@echo "*********************************************************************"
clean:
rm -rf obj-unix
rm -f *.d
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
+53
View File
@@ -0,0 +1,53 @@
# This build was put together and is maintained by ModMyClassic.com for Libretro.
# The purpose is to give Libretro a proper "official" build platform for classic consoles.
# If you need any help in building for the classics or have any questions then please visit
# https://modmyclassic.com and we will help in any way possible!
# INFO: THIS BUILD TARGET ALSO COVERS THE NESC!!!
# Building Prerequisites ##############
# arm-linux-gnueabihf-strip
# patchelf
include version.all
# General Shared Variables ############
TARGET := retroarch
# Libretro Defines ####################
#HAVE_CLASSIC = Classic Hook, disable some features
#HAVE_C_A7A7 = Classic Armv7 Cortex A7 optimisation override
#HAVE_HAKCHI = Hakchi Hook, change default configurations etc (TODO)
all: $(TARGET)
retroarch:
#Build the RetroArch Binary for cross platform classics (ARMv7 Cortex A7)
patchelf --version #Check if you have patchelf installed... (sudo apt-get install patchelf)
CFLAGS="-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard" ./configure --host=arm-linux-gnueabihf --disable-wayland --disable-x11 --disable-opengl --disable-opengl1 --disable-opengl_core --enable-mali_fbdev --disable-freetype --enable-opengles --enable-udev --enable-alsa --enable-neon --enable-floathard --disable-discord
make HAVE_CLASSIC=1 HAVE_C_A7A7=1 HAVE_HAKCHI=1 -j #Cook it
arm-linux-gnueabihf-strip -v retroarch
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...
@echo "*********************************************************************"
@echo "*** NES/SNES Classic RetroArch binary built successfully! ***"
@echo "*********************************************************************"
clean:
rm -rf obj-unix
rm -f *.d
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
+218 -125
View File
@@ -7,6 +7,18 @@ ifeq ($(HAVE_STACK_USAGE), 1)
DEF_FLAGS += -fstack-usage
endif
ifeq ($(HAVE_NOUNUSED), 1)
DEF_FLAGS += $(NOUNUSED_CFLAGS)
endif
ifeq ($(HAVE_NOUNUSED_VARIABLE), 1)
DEF_FLAGS += $(NOUNUSED_VARIABLE_CFLAGS)
endif
ifeq ($(HAVE_CXX11), 1)
CXXFLAGS += $(CXX11_CFLAGS)
endif
ifeq ($(HAVE_GL_CONTEXT),)
HAVE_GL_CONTEXT = 0
HAVE_GL_MODERN = 0
@@ -153,17 +165,17 @@ ifeq ($(HAVE_DR_MP3), 1)
endif
OBJ += frontend/frontend_driver.o \
frontend/drivers/platform_null.o \
retroarch.o \
paths.o \
msg_hash.o \
intl/msg_hash_us.o \
$(LIBRETRO_COMM_DIR)/queues/task_queue.o \
tasks/task_content.o \
tasks/task_patch.o \
tasks/task_save.o \
tasks/task_file_transfer.o \
tasks/task_image.o \
tasks/task_playlist_manager.o \
tasks/task_manual_content_scan.o \
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.o \
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.o \
$(LIBRETRO_COMM_DIR)/encodings/encoding_base64.o \
@@ -181,7 +193,6 @@ OBJ += frontend/frontend_driver.o \
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
$(LIBRETRO_COMM_DIR)/memmap/memalign.o \
list_special.o \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_stdio.o
ifneq ($(findstring Linux,$(OS)),)
@@ -203,16 +214,19 @@ endif
OBJ += \
$(LIBRETRO_COMM_DIR)/file/nbio/nbio_intf.o \
$(LIBRETRO_COMM_DIR)/file/file_path.o \
$(LIBRETRO_COMM_DIR)/file/file_path_io.o \
file_path_special.o \
file_path_str.o \
$(LIBRETRO_COMM_DIR)/hash/rhash.o \
input/common/input_hid_common.o \
input/input_mapper.o \
led/led_driver.o \
led/drivers/led_null.o \
gfx/video_coord_array.o \
gfx/video_display_server.o \
gfx/video_crt_switch.o \
gfx/gfx_display.o \
gfx/gfx_animation.o \
gfx/gfx_thumbnail_path.o \
gfx/gfx_thumbnail.o \
configuration.o \
$(LIBRETRO_COMM_DIR)/dynamic/dylib.o \
cores/dynamic_dummy.o \
@@ -222,7 +236,6 @@ OBJ += \
tasks/task_autodetect.o \
input/input_autodetect_builtin.o \
input/input_keymaps.o \
input/input_remapping.o \
$(LIBRETRO_COMM_DIR)/queues/fifo_queue.o \
$(LIBRETRO_COMM_DIR)/compat/compat_fnmatch.o \
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.o \
@@ -231,6 +244,7 @@ OBJ += \
$(LIBRETRO_COMM_DIR)/file/config_file.o \
$(LIBRETRO_COMM_DIR)/file/config_file_userdata.o \
runtime_file.o \
disk_index_file.o \
tasks/task_screenshot.o \
tasks/task_powerstate.o \
$(LIBRETRO_COMM_DIR)/gfx/scaler/scaler.o \
@@ -243,25 +257,24 @@ OBJ += \
$(LIBRETRO_COMM_DIR)/audio/dsp_filter.o \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/sinc_resampler.o \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/nearest_resampler.o \
$(LIBRETRO_COMM_DIR)/audio/resampler/drivers/null_resampler.o \
$(LIBRETRO_COMM_DIR)/utils/md5.o \
location/drivers/nulllocation.o \
camera/drivers/nullcamera.o \
wifi/drivers/nullwifi.o \
gfx/drivers/nullgfx.o \
gfx/display_servers/dispserv_null.o \
audio/drivers/nullaudio.o \
input/drivers/nullinput.o \
input/drivers_hid/null_hid.o \
input/drivers_joypad/null_joypad.o \
playlist.o \
record/drivers/record_null.o \
$(LIBRETRO_COMM_DIR)/features/features_cpu.o \
performance_counters.o \
verbosity.o \
midi/drivers/null_midi.o \
$(LIBRETRO_COMM_DIR)/playlists/label_sanitization.o
$(LIBRETRO_COMM_DIR)/playlists/label_sanitization.o \
manual_content_scan.o \
disk_control_interface.o
ifeq ($(HAVE_CONFIGFILE), 1)
DEFINES += -DHAVE_CONFIGFILE
OBJ += input/input_remapping.o
endif
ifeq ($(HAVE_BLISSBOX), 1)
DEFINES += -DHAVE_BLISSBOX
OBJ += tasks/task_autodetect_blissbox.o
endif
ifeq ($(HAVE_AUDIOMIXER), 1)
DEFINES += -DHAVE_AUDIOMIXER
@@ -272,8 +285,6 @@ endif
ifeq ($(HAVE_RUNAHEAD), 1)
DEFINES += -DHAVE_RUNAHEAD
OBJ += runahead/mem_util.o \
runahead/mylist.o
endif
ifeq ($(HAVE_CC_RESAMPLER), 1)
@@ -415,6 +426,8 @@ ifeq ($(HAVE_QT), 1)
ifneq ($(findstring Linux,$(OS)),)
DEF_FLAGS += -fPIC
else ifneq ($(findstring BSD,$(OS)),)
DEF_FLAGS += -fPIC
endif
endif
@@ -595,7 +608,9 @@ ifeq ($(HAVE_ALSA), 1)
OBJ += audio/drivers/alsa.o
ifneq ($(HAVE_HAKCHI), 1)
OBJ += midi/drivers/alsa_midi.o
ifneq ($(HAVE_SEGAM), 1)
OBJ += midi/drivers/alsa_midi.o
endif
endif
ifeq ($(HAVE_THREADS), 1)
@@ -746,8 +761,8 @@ ifeq ($(HAVE_MENU), 1)
DEFINES += -DHAVE_MENU
HAVE_MENU_COMMON = 1
ifeq ($(HAVE_MENU_WIDGETS), 1)
DEFINES += -DHAVE_MENU_WIDGETS
ifeq ($(HAVE_GFX_WIDGETS), 1)
DEFINES += -DHAVE_GFX_WIDGETS
endif
ifeq ($(HAVE_RGUI), 1)
@@ -799,12 +814,10 @@ endif
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/menu_driver.o \
menu/menu_content.o \
menu/menu_setting.o \
menu/widgets/menu_filebrowser.o \
menu/widgets/menu_dialog.o \
menu/widgets/menu_input_bind_dialog.o \
menu/widgets/menu_osk.o \
menu/menu_cbs.o \
menu/cbs/menu_cbs_ok.o \
menu/cbs/menu_cbs_cancel.o \
@@ -823,16 +836,17 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/cbs/menu_cbs_up.o \
menu/cbs/menu_cbs_down.o \
menu/cbs/menu_cbs_contentlist_switch.o \
menu/menu_displaylist.o \
menu/menu_animation.o \
menu/drivers/menu_generic.o \
menu/drivers/null.o \
menu/menu_thumbnail_path.o \
menu/drivers_display/menu_display_null.o
menu/menu_displaylist.o
endif
ifeq ($(HAVE_MENU_WIDGETS), 1)
OBJ += menu/widgets/menu_widgets.o
endif
OBJ += input/input_osk.o
ifeq ($(HAVE_GFX_WIDGETS), 1)
OBJ += gfx/gfx_widgets.o \
gfx/widgets/gfx_widget_screenshot.o \
gfx/widgets/gfx_widget_volume.o \
gfx/widgets/gfx_widget_generic_message.o \
gfx/widgets/gfx_widget_libretro_message.o
endif
ifeq ($(HAVE_OVERLAY), 1)
@@ -843,13 +857,14 @@ endif
ifeq ($(HAVE_VIDEO_LAYOUT), 1)
DEFINES += -DHAVE_VIDEO_LAYOUT
OBJ += gfx/video_layout.o \
gfx/video_layout/view.o \
gfx/video_layout/element.o \
gfx/video_layout/component.o \
gfx/video_layout/internal.o \
gfx/video_layout/scope.o \
gfx/video_layout/load.o
OBJ += \
gfx/video_layout.o \
gfx/video_layout/view.o \
gfx/video_layout/element.o \
gfx/video_layout/component.o \
gfx/video_layout/internal.o \
gfx/video_layout/scope.o \
gfx/video_layout/load.o
endif
ifeq ($(HAVE_STB_FONT), 1)
@@ -890,11 +905,10 @@ ifeq ($(HAVE_VITA2D), 1)
$(DEPS_DIR)/libvita2d/shader/color_f_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_v_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_f_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_tint_v_gxp.o \
$(DEPS_DIR)/libvita2d/shader/texture_tint_f_gxp.o
ifeq ($(HAVE_MENU_COMMON),1)
OBJ += menu/drivers_display/menu_display_vita2d.o
endif
OBJ += gfx/drivers_display/gfx_display_vita2d.o
OBJ += gfx/drivers/vita2d_gfx.o \
gfx/drivers_font/vita2d_font.o
@@ -904,7 +918,7 @@ endif
ifeq ($(TARGET), retroarch_3ds)
OBJ += gfx/drivers/ctr_gfx.o \
menu/drivers_display/menu_display_ctr.o \
gfx/drivers_display/gfx_display_ctr.o \
input/drivers/ctr_input.o \
input/drivers_joypad/ctr_joypad.o
endif
@@ -925,7 +939,7 @@ endif
ifeq ($(TARGET), retroarch_wiiu)
OBJ += gfx/drivers/gx2_gfx.o \
gfx/drivers_font/wiiu_font.o \
menu/drivers_display/menu_display_wiiu.o \
gfx/drivers_display/gfx_display_wiiu.o \
input/drivers/wiiu_input.o \
input/drivers_joypad/wiiu_joypad.o \
input/drivers_joypad/wiiu/wpad_driver.o \
@@ -950,7 +964,7 @@ endif
ifeq ($(TARGET), retroarch_switch)
ifeq ($(HAVE_LIBNX), 1)
OBJ += menu/drivers_display/menu_display_switch.o \
OBJ += gfx/drivers_display/gfx_display_switch.o \
gfx/drivers/switch_nx_gfx.o \
audio/drivers/switch_libnx_audren_audio.o \
audio/drivers/switch_libnx_audren_thread_audio.o
@@ -984,6 +998,12 @@ ifeq ($(HAVE_WAYLAND), 1)
endif
# XML
OBJ += \
$(LIBRETRO_COMM_DIR)/formats/xml/rxml.o \
$(LIBRETRO_COMM_DIR)/formats/logiqx_dat/logiqx_dat.o \
deps/yxml/yxml.o
#Input
ifeq ($(HAVE_DINPUT), 1)
@@ -1100,7 +1120,12 @@ OBJ += gfx/drivers_context/gfx_null_ctx.o
ifeq ($(HAVE_KMS), 1)
HAVE_AND_WILL_USE_DRM = 1
ifeq ($(HAVE_ODROIDGO2), 1)
OBJ += gfx/drivers_context/drm_go2_ctx.o
else
OBJ += gfx/drivers_context/drm_ctx.o
endif
DEF_FLAGS += $(GBM_CFLAGS) $(DRM_CFLAGS)
LIBS += $(GBM_LIBS) $(DRM_LIBS)
endif
@@ -1110,10 +1135,6 @@ ifeq ($(HAVE_CACA), 1)
OBJ += gfx/drivers/caca_gfx.o gfx/drivers_font/caca_font.o
LIBS += $(CACA_LIBS)
DEF_FLAGS += $(CACA_CFLAGS)
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_caca.o
endif
endif
ifeq ($(HAVE_SIXEL), 1)
@@ -1123,10 +1144,24 @@ ifeq ($(HAVE_SIXEL), 1)
gfx/drivers_context/sixel_ctx.o
LIBS += $(SIXEL_LIBS)
DEF_FLAGS += $(SIXEL_CFLAGS)
endif
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_sixel.o
ifeq ($(HAVE_NETWORK_VIDEO), 1)
ifneq ($(NETWORK_VIDEO_HOST),)
DEFINES += -DNETWORK_VIDEO_HOST=$(NETWORK_VIDEO_HOST)
else
DEFINES += -DNETWORK_VIDEO_HOST=127.0.0.1
endif
ifneq ($(NETWORK_VIDEO_PORT),)
DEFINES += -DNETWORK_VIDEO_PORT=$(NETWORK_VIDEO_PORT)
else
DEFINES += -DNETWORK_VIDEO_PORT=4953
endif
DEFINES += -DHAVE_NETWORK_VIDEO
OBJ += gfx/drivers/network_gfx.o \
gfx/drivers_context/network_ctx.o
endif
ifeq ($(HAVE_PLAIN_DRM), 1)
@@ -1135,12 +1170,21 @@ ifeq ($(HAVE_PLAIN_DRM), 1)
LIBS += -ldrm
endif
ifeq ($(HAVE_VITAGL), 1)
DEFINES += -DHAVE_OPENGL1
OBJ += gfx/drivers/gl1.o \
gfx/drivers_font/gl1_raster_font.o \
gfx/drivers_context/vita_ctx.o \
gfx/drivers_display/gfx_display_gl1.o
endif
ifeq ($(HAVE_GL_CONTEXT), 1)
ifeq ($(HAVE_GL_MODERN), 1)
DEFINES += -DHAVE_OPENGL
OBJ += gfx/drivers/gl.o \
$(LIBRETRO_COMM_DIR)/gfx/gl_capabilities.o \
gfx/drivers_font/gl_raster_font.o
gfx/drivers_font/gl_raster_font.o \
gfx/drivers_display/gfx_display_gl.o
endif
OBJ += $(LIBRETRO_COMM_DIR)/glsym/rglgen.o
@@ -1148,17 +1192,8 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
ifeq ($(HAVE_OPENGL1), 1)
DEFINES += -DHAVE_OPENGL1
OBJ += gfx/drivers/gl1.o \
gfx/drivers_font/gl1_raster_font.o
endif
ifeq ($(HAVE_MENU_COMMON), 1)
ifeq ($(HAVE_GL_MODERN), 1)
OBJ += menu/drivers_display/menu_display_gl.o
endif
ifeq ($(HAVE_OPENGL1), 1)
OBJ += menu/drivers_display/menu_display_gl1.o
endif
gfx/drivers_font/gl1_raster_font.o \
gfx/drivers_display/gfx_display_gl1.o
endif
ifeq ($(HAVE_VIDEOCORE), 1)
@@ -1206,11 +1241,8 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
gfx/common/metal/MenuDisplay.o \
gfx/common/metal_common.o \
gfx/drivers/metal.o \
gfx/drivers_font/metal_raster_font.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_metal.o
endif
gfx/drivers_font/metal_raster_font.o \
gfx/drivers_display/gfx_display_metal.o
endif
ifeq ($(HAVE_MPV), 1)
@@ -1249,13 +1281,20 @@ endif
ifeq ($(HAVE_EGL), 1)
DEFINES += -DHAVE_EGL
DEF_FLAGS += $(EGL_CFLAGS)
LIBS += $(EGL_LIBS)
OBJ += gfx/common/egl_common.o
ifeq ($(HAVE_DYNAMIC_EGL), 1)
DEFINES += -DHAVE_DYNAMIC_EGL
else
LIBS += $(EGL_LIBS)
endif
endif
ifeq ($(HAVE_SDL2), 1)
HAVE_SDL_COMMON = 1
OBJ += gfx/drivers/sdl2_gfx.o
OBJ += gfx/drivers/sdl2_gfx.o \
gfx/common/sdl2_common.o
DEF_FLAGS += $(SDL2_CFLAGS)
LIBS += $(SDL2_LIBS)
else ifeq ($(HAVE_SDL), 1)
@@ -1263,6 +1302,12 @@ else ifeq ($(HAVE_SDL), 1)
OBJ += gfx/drivers/sdl_gfx.o
DEF_FLAGS += $(SDL_CFLAGS)
LIBS += $(SDL_LIBS)
else ifeq ($(HAVE_SDL_DINGUX), 1)
HAVE_SDL_COMMON = 1
DEF_FLAGS += -DHAVE_SDL -DHAVE_SDL_DINGUX
OBJ += gfx/drivers/sdl_dingux_gfx.o
DEF_FLAGS += $(SDL_DINGUX_CFLAGS)
LIBS += $(SDL_DINGUX_LIBS)
endif
ifeq ($(HAVE_SDL_COMMON), 1)
@@ -1293,7 +1338,8 @@ ifeq ($(HAVE_VULKAN), 1)
OBJ += gfx/drivers/vulkan.o \
gfx/common/vulkan_common.o \
$(LIBRETRO_COMM_DIR)/vulkan/vulkan_symbol_wrapper.o \
gfx/drivers_font/vulkan_raster_font.o
gfx/drivers_font/vulkan_raster_font.o \
gfx/drivers_display/gfx_display_vulkan.o
ifeq ($(HAVE_SLANG), 1)
OBJ += gfx/drivers_shader/shader_vulkan.o
@@ -1302,9 +1348,6 @@ ifeq ($(HAVE_VULKAN), 1)
ifeq ($(HAVE_VULKAN_DISPLAY), 1)
OBJ += gfx/drivers_context/khr_display_ctx.o
endif
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_vulkan.o
endif
NEED_CXX_LINKER = 1
DEFINES += -DHAVE_VULKAN
INCLUDE_DIRS += -Igfx/include
@@ -1313,10 +1356,8 @@ endif
ifeq ($(HAVE_OPENGL_CORE), 1)
OBJ += gfx/drivers/gl_core.o \
gfx/drivers_font/gl_core_raster_font.o \
gfx/drivers_shader/shader_gl_core.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_gl_core.o
endif
gfx/drivers_shader/shader_gl_core.o \
gfx/drivers_display/gfx_display_gl_core.o
DEFINES += -DHAVE_OPENGL_CORE
NEED_CXX_LINKER = 1
@@ -1383,10 +1424,8 @@ ifeq ($(HAVE_D3D10), 1)
HAVE_D3D_COMMON = 1
OBJ += gfx/drivers/d3d10.o \
gfx/common/d3d10_common.o \
gfx/drivers_font/d3d10_font.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d10.o
endif
gfx/drivers_font/d3d10_font.o \
gfx/drivers_display/gfx_display_d3d10.o
DEFINES += -DHAVE_D3D10
endif
@@ -1394,10 +1433,8 @@ ifeq ($(HAVE_D3D11), 1)
HAVE_D3D_COMMON = 1
OBJ += gfx/drivers/d3d11.o \
gfx/common/d3d11_common.o \
gfx/drivers_font/d3d11_font.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d11.o
endif
gfx/drivers_font/d3d11_font.o \
gfx/drivers_display/gfx_display_d3d11.o
DEFINES += -DHAVE_D3D11
endif
@@ -1405,10 +1442,8 @@ ifeq ($(HAVE_D3D12), 1)
HAVE_D3D_COMMON = 1
OBJ += gfx/drivers/d3d12.o \
gfx/common/d3d12_common.o \
gfx/drivers_font/d3d12_font.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d12.o
endif
gfx/drivers_font/d3d12_font.o \
gfx/drivers_display/gfx_display_d3d12.o
DEFINES += -DHAVE_D3D12
endif
@@ -1446,20 +1481,14 @@ ifeq ($(HAVE_D3D8), 1)
DEFINES += -DHAVE_D3D8
OBJ += gfx/drivers/d3d8.o
OBJ += gfx/common/d3d8_common.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d8.o
endif
OBJ += gfx/drivers_display/gfx_display_d3d8.o
endif
ifeq ($(HAVE_D3D9), 1)
DEFINES += -DHAVE_D3D9
OBJ += gfx/drivers/d3d9.o
OBJ += gfx/common/d3d9_common.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d9.o
endif
OBJ += gfx/drivers_display/gfx_display_d3d9.o
endif
ifeq ($(HAVE_D3D_COMMON), 1)
@@ -1495,8 +1524,9 @@ ifeq ($(HAVE_SHADERS_COMMON), 1)
OBJ += gfx/video_shader_parse.o
endif
ifeq ($(HAVE_GLSLANG), 1)
DEFINES += -DHAVE_GLSLANG
ifeq ($(HAVE_BUILTINGLSLANG), 1)
NEED_CXX_LINKER = 1
HAVE_GLSLANG_COMMON = 1
ifneq ($(findstring Win32,$(OS)),)
GLSLANG_PLATFORM := Windows
@@ -1504,17 +1534,17 @@ ifeq ($(HAVE_GLSLANG), 1)
GLSLANG_PLATFORM := Unix
endif
DEFINES += -DHAVE_BUILTINGLSLANG
INCLUDE_DIRS += \
-I$(DEPS_DIR)/glslang/glslang/glslang/OSDependent/$(GLSLANG_PLATFORM) \
-I$(DEPS_DIR)/glslang/glslang/OGLCompilersDLL \
-I$(DEPS_DIR)/glslang/glslang \
-I$(DEPS_DIR)/glslang/glslang/glslang/MachineIndependent \
-I$(DEPS_DIR)/glslang/glslang/glslang/Public \
-I$(DEPS_DIR)/glslang/glslang/SPIRV \
-I$(DEPS_DIR)/glslang
-I$(DEPS_DIR)/glslang/glslang/SPIRV
GLSLANG_SOURCES := \
$(wildcard $(DEPS_DIR)/glslang/*.cpp) \
gfx/drivers_shader/glslang.cpp \
$(wildcard $(DEPS_DIR)/glslang/glslang/SPIRV/*.cpp) \
$(wildcard $(DEPS_DIR)/glslang/glslang/glslang/GenericCodeGen/*.cpp) \
$(wildcard $(DEPS_DIR)/glslang/glslang/OGLCompilersDLL/*.cpp) \
@@ -1526,7 +1556,22 @@ ifeq ($(HAVE_GLSLANG), 1)
DEFINES += -DENABLE_HLSL
GLSLANG_SOURCES += $(wildcard $(DEPS_DIR)/glslang/glslang/hlsl/*.cpp)
endif
else ifeq ($(HAVE_GLSLANG),1)
HAVE_GLSLANG_COMMON = 1
GLSLANG_SOURCES := gfx/drivers_shader/glslang.cpp
# The order of these libs are somewhat specific
LIBS += $(GLSLANG_LIBS) \
$(GLSLANG_OSDEPENDENT_LIBS) \
$(GLSLANG_OGLCOMPILER_LIBS) \
$(GLSLANG_HLSL_LIBS) \
$(GLSLANG_SPIRV_LIBS) \
$(GLSLANG_SPIRV_TOOLS_OPT_LIBS) \
$(GLSLANG_SPIRV_TOOLS_LIBS)
endif
ifeq ($(HAVE_GLSLANG_COMMON), 1)
DEFINES += -DHAVE_GLSLANG
OBJ += $(GLSLANG_SOURCES:.cpp=.o)
endif
@@ -1695,12 +1740,12 @@ endif
OBJ += $(LIBRETRO_COMM_DIR)/formats/bmp/rbmp_encode.o \
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax.o \
$(LIBRETRO_COMM_DIR)/formats/json/jsonsax_full.o \
$(LIBRETRO_COMM_DIR)/formats/xml/rxml.o \
$(LIBRETRO_COMM_DIR)/formats/image_transfer.o
$(LIBRETRO_COMM_DIR)/formats/image_transfer.o \
$(LIBRETRO_COMM_DIR)/formats/m3u/m3u_file.o
# Easter Egg
ifeq ($(HAVE_EASTEREGG),1)
DEFINES += -DHAVE_EASTEREGG
# Gong embedded core
ifeq ($(HAVE_GONG),1)
DEFINES += -DHAVE_GONG
OBJ += cores/libretro-gong/gong.o
endif
@@ -1716,6 +1761,17 @@ ifeq ($(HAVE_V4L2),1)
LIBS += $(V4L2_LIBS)
endif
# Accessibility
ifeq ($(HAVE_ACCESSIBILITY), 1)
DEFINES += -DHAVE_ACCESSIBILITY
ifneq ($(findstring Win32,$(OS)),)
LIBS += -lsapi
endif
endif
# Things that depend on network availability
ifeq ($(HAVE_NETWORKING), 1)
@@ -1725,16 +1781,19 @@ ifeq ($(HAVE_NETWORKING), 1)
$(LIBRETRO_COMM_DIR)/net/net_http_parse.o \
$(LIBRETRO_COMM_DIR)/net/net_socket.o \
$(LIBRETRO_COMM_DIR)/net/net_natt.o \
core_updater_list.o \
network/net_http_special.o \
tasks/task_http.o \
tasks/task_netplay_lan_scan.o \
tasks/task_netplay_nat_traversal.o \
tasks/task_wifi.o \
tasks/task_pl_thumbnail_download.o \
tasks/task_netplay_find_content.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += tasks/task_pl_thumbnail_download.o \
menu/menu_networking.o
OBJ += \
tasks/task_core_updater.o \
menu/menu_networking.o
endif
ifeq ($(HAVE_SSL), 1)
@@ -1757,7 +1816,6 @@ ifeq ($(HAVE_NETWORKING), 1)
# Netplay
DEFINES += -DHAVE_NETWORK_CMD
OBJ += network/netplay/netplay_delta.o \
network/netplay/netplay_frontend.o \
network/netplay/netplay_handshake.o \
network/netplay/netplay_init.o \
network/netplay/netplay_io.o \
@@ -1777,6 +1835,7 @@ ifeq ($(HAVE_NETWORKING), 1)
cheevos-new/fixup.o \
cheevos-new/parser.o \
cheevos-new/hash.o \
$(LIBRETRO_COMM_DIR)/formats/cdfs/cdfs.o \
deps/rcheevos/src/rcheevos/trigger.o \
deps/rcheevos/src/rcheevos/condset.o \
deps/rcheevos/src/rcheevos/condition.o \
@@ -1893,6 +1952,11 @@ ifeq ($(HAVE_NETWORKING), 1)
endif
endif
ifneq ($(findstring FPGA,$(OS)),)
OBJ += gfx/drivers/fpga_gfx.o \
gfx/drivers_context/fpga_ctx.o
endif
ifneq ($(findstring Win32,$(OS)),)
OBJ += media/rarch.o \
gfx/common/win32_common.o \
@@ -1902,20 +1966,26 @@ ifneq ($(findstring Win32,$(OS)),)
ifeq ($(HAVE_GDI), 1)
OBJ += gfx/drivers/gdi_gfx.o \
gfx/drivers_context/gdi_ctx.o \
gfx/drivers_font/gdi_font.o
gfx/drivers_font/gdi_font.o \
gfx/drivers_display/gfx_display_gdi.o
LIBS += -lmsimg32
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_gdi.o
endif
endif
LIBS += -lhid -lsetupapi
endif
ifeq ($(HAVE_ANGLE), 1)
OBJ += gfx/common/angle_common.o
DEFINES += -DHAVE_ANGLE
endif
# Record
ifeq ($(HAVE_FFMPEG), 1)
OBJ += record/drivers/record_ffmpeg.o \
cores/libretro-ffmpeg/ffmpeg_core.o
cores/libretro-ffmpeg/ffmpeg_core.o \
cores/libretro-ffmpeg/packet_buffer.o \
cores/libretro-ffmpeg/video_buffer.o \
$(LIBRETRO_COMM_DIR)/rthreads/tpool.o
LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS) $(SWRESAMPLE_LIBS) $(FFMPEG_LIBS)
DEFINES += -DHAVE_FFMPEG
@@ -1948,10 +2018,6 @@ ifneq ($(findstring DOS,$(OS)),)
input/drivers/dos_input.o \
input/drivers_joypad/dos_joypad.o \
frontend/drivers/platform_dos.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_vga.o
endif
endif
ifeq ($(HAVE_STATIC_VIDEO_FILTERS), 1)
@@ -2007,10 +2073,24 @@ ifeq ($(HAVE_RPILED), 1)
OBJ += led/drivers/led_rpi.o
endif
ifeq ($(HAVE_MATH_NEON), 1)
DEFINES += -DHAVE_MATH_NEON
INCLUDE_DIRS += -I$(DEPS_DIR)/math-neon/source
SOURCES := $(DEPS_DIR)/math-neon/source
OBJ += $(patsubst %.c,%.o,$(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c)))
endif
ifeq ($(HAVE_VITAGL), 1)
DEFINES += -DHAVE_VITAGL -DTRANSPOSE_MATRICES
INCLUDE_DIRS += -I$(DEPS_DIR)/vitaGL/source
SOURCES := $(DEPS_DIR)/vitaGL/source $(DEPS_DIR)/vitaGL/source/utils
OBJ += $(patsubst %.c,%.o,$(foreach dir,$(SOURCES), $(wildcard $(dir)/*.c)))
endif
##################################
### Classic Platform specifics ###
###############WIP################
# Help at https://modmyclassic.com/comp
# Help at https://modmyclassic.com
ifeq ($(HAVE_CLASSIC), 1)
DEFINES += -DHAVE_CLASSIC
@@ -2040,4 +2120,17 @@ endif
ifeq ($(HAVE_HAKCHI), 1)
DEFINES += -DHAVE_HAKCHI
endif
ifeq ($(HAVE_SEGAM), 1)
DEFINES += -DHAVE_SEGAM
endif
ifeq ($(HAVE_ODROIDGO2), 1)
DEFINES += -DHAVE_ODROIDGO2
LIBS += -lrga -lpng -lz
INCLUDE_DIRS += -I$(DEPS_DIR)/libgo2/include
OBJ += $(DEPS_DIR)/libgo2/src/display.o \
$(DEPS_DIR)/libgo2/src/queue.o \
gfx/drivers/oga_gfx.o
endif
##################################
+1 -1
View File
@@ -50,7 +50,7 @@ endif
DEFINES :=
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_GRIFFIN=1 -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA
#DEFINES += -DHAVE_NETWORKING -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_SOCKET_LEGACY -DHAVE_THREADS
#-DHAVE_SSL -DHAVE_BUILTINMBEDTLS -DMBEDTLS_SSL_DEBUG_ALL
+1 -1
View File
@@ -24,11 +24,11 @@ OBJ := ctr/ctr_system.o \
frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_ctr.o \
frontend/drivers/platform_null.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/compat/fopen_utf8.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
+189
View File
@@ -0,0 +1,189 @@
CC = /opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-gcc
CXX = /opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-g++
PACKAGE_NAME = retroarch
DEBUG ?= 0
HAVE_7ZIP = 1
HAVE_AL = 1
# this freezes when switching back from menu
HAVE_ALSA = 0
HAVE_BUILTINMBEDTLS = 1
HAVE_BUILTINZLIB = 1
HAVE_C99 = 1
HAVE_CC = 1
HAVE_CC_RESAMPLER = 1
HAVE_CHD = 1
HAVE_CHEEVOS = 1
HAVE_COMMAND = 1
HAVE_CXX = 1
HAVE_DR_MP3 = 1
HAVE_DYNAMIC = 1
HAVE_EGL = 1
HAVE_FREETYPE = 1
HAVE_GDI = 1
HAVE_GETADDRINFO = 1
HAVE_GETOPT_LONG = 1
HAVE_GLSL = 1
HAVE_HID = 1
HAVE_IBXM = 1
HAVE_IMAGEVIEWER = 1
HAVE_LANGEXTRA = 1
HAVE_LIBRETRODB = 1
HAVE_MENU = 1
HAVE_MENU_COMMON = 1
HAVE_GFX_WIDGETS = 1
HAVE_MMAP = 1
HAVE_NETWORKING = 1
HAVE_OPENDINGUX_FBDEV = 1
HAVE_OPENGL = 1
HAVE_OPENGL1 = 0
HAVE_OPENGLES = 1
HAVE_OPENGLES3 = 0
HAVE_OPENGL_CORE = 0
HAVE_OPENSSL = 1
HAVE_OVERLAY = 1
HAVE_RBMP = 1
HAVE_RJPEG = 1
HAVE_RPILED = 1
HAVE_RPNG = 1
HAVE_RUNAHEAD = 1
HAVE_SDL_DINGUX = 1
HAVE_SHADERPIPELINE = 1
HAVE_STB_FONT = 1
HAVE_STB_IMAGE = 1
HAVE_STB_VORBIS = 1
HAVE_STDIN_CMD = 1
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_TRANSLATE = 1
HAVE_UDEV = 1
HAVE_VIDEO_LAYOUT = 1
HAVE_XMB = 1
HAVE_ZLIB = 1
HAVE_CONFIGFILE = 1
OS = Linux
TARGET = retroarch
OPK_NAME = retroarch.opk
OBJ :=
LINK := $(CXX)
DEF_FLAGS := -march=mips32 -mtune=mips32r2 -mhard-float -ffast-math -fomit-frame-pointer -fdata-sections
DEF_FLAGS += -I. -Ideps -Ideps/stb -DDINGUX=1 -MMD
DEF_FLAGS += -Wall -Wno-unused-variable
DEF_FLAGS += -std=gnu99 -D_GNU_SOURCE
LIBS := -ldl -lz -lrt -lcrypto -lssl -ludev -pthread
CFLAGS :=
CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS
ASFLAGS :=
LDFLAGS := -flto
INCLUDE_DIRS = -I/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include
LIBRARY_DIRS = -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib
DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1 -DHAVE_OPENDINGUX_FBDEV=1
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
DEFINES += -DHAVE_AL=1
DEFINES += -DHAVE_ONLINE_UPDATER=1
DEFINES += -DHAVE_UPDATE_ASSETS=1
DEFINES += -DHAVE_UDEV=1
SDL_DINGUX_CFLAGS := $(shell /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config --cflags)
SDL_DINGUX_LIBS := $(shell /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config --libs)
FREETYPE_CFLAGS := $(shell /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/freetype-config --cflags)
FREETYPE_LIBS := $(shell /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/freetype-config --libs)
AL_LIBS := -lopenal
OPENGLES_CFLAGS := -DMESA_EGL_NO_X11_HEADERS
OPENGLES_LIBS := -lGLESv2 -lEGL
MMAP_LIBS = -lc
OBJDIR_BASE := obj-unix
ifeq ($(DEBUG), 1)
OBJDIR := $(OBJDIR_BASE)/debug
DEF_FLAGS += -O0 -g -DDEBUG -D_DEBUG
else
OBJDIR := $(OBJDIR_BASE)/release
DEF_FLAGS += -O2 -DNDEBUG
endif
include Makefile.common
DEF_FLAGS += $(INCLUDE_DIRS)
CFLAGS += $(DEF_FLAGS)
CXXFLAGS += $(DEF_FLAGS)
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
Q := @
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
define DESKTOP_ENTRY
[Desktop Entry]
Name=retroarch
Comment=Retroarch
Exec=retroarch
Terminal=false
Type=Application
StartupNotify=true
Icon=retroarch
Categories=emulators;
X-OD-NeedsDownscaling=true
endef
export DESKTOP_ENTRY
all: $(TARGET) opk
-include $(RARCH_OBJ:.o=.d)
SYMBOL_MAP := -Wl,-Map=output.map
$(TARGET): $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.m
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo OBJC $<),)
$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
.FORCE:
$(OBJDIR)/git_version.o: git_version.c .FORCE
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
$(CC) $(CFLAGS) $(ASFLAGS) $(DEFINES) -c -o $@ $<
clean:
rm -rf $(OBJDIR_BASE)
rm -f $(TARGET)
rm -f *.d
rm -rf $(OPK_NAME)
opk: $(TARGET)
echo "$$DESKTOP_ENTRY" > default.gcw0.desktop
rm -f $(OPK_NAME)
cp media/ico_src/icon32.png retroarch.png
mksquashfs retroarch default.gcw0.desktop retroarch.png $(OPK_NAME) -all-root -no-xattrs -noappend -no-exports
rm -f default.gcw0.desktop retroarch.png
.PHONY: all clean opk
print-%:
@echo '$*=$($*)'
+8 -7
View File
@@ -20,7 +20,7 @@ HAVE_RJPEG = 0
HAVE_RPNG = 1
HAVE_EMSCRIPTEN = 1
HAVE_MENU = 1
HAVE_MENU_WIDGETS = 1
HAVE_GFX_WIDGETS = 1
HAVE_RGUI = 1
HAVE_SDL = 0
HAVE_SDL2 = 0
@@ -29,8 +29,9 @@ HAVE_SHADERPIPELINE = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_STB_FONT = 1
HAVE_CONFIGFILE = 1
MEMORY = 536870912
MEMORY = 134217728
PRECISE_F32 = 1
@@ -39,8 +40,8 @@ OBJDIR := obj-emscripten
#if you compile with SDL2 flag add this Emscripten flag "-s USE_SDL=2" to LDFLAGS:
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 EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_load_state', '_cmd_take_screenshot']" \
LDFLAGS := -L. --no-heap-copy -s $(LIBS) -s TOTAL_MEMORY=$(MEMORY) -s NO_EXIT_RUNTIME=0 -s FULL_ES2=1 -s "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain']" \
-s ALLOW_MEMORY_GROWTH=1 -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_rwebcam.js \
--js-library emscripten/library_errno_codes.js
@@ -70,16 +71,16 @@ ifeq ($(DEBUG), 1)
LDFLAGS += -O0 -g
CFLAGS += -O0 -g
else
LDFLAGS += -O2 -s WASM=1
LDFLAGS += -O3 -s WASM=1
# WARNING: some optimizations can break some cores (ex: LTO breaks tyrquake)
LDFLAGS += -s PRECISE_F32=$(PRECISE_F32)
ifeq ($(LTO), 1)
LDFLAGS += --llvm-lto 3
endif
CFLAGS += -O2
CFLAGS += -O3
endif
CFLAGS += -DHAVE_RPNG -Wall -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
CFLAGS += -Wall -I. -Ilibretro-common/include -std=gnu99 $(LIBS) \
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_take_screenshot']"
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
+90 -12
View File
@@ -75,15 +75,22 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_END := -Wl,--no-whole-archive
endif
STATIC_BUILD = 1
ifneq (,$(findstring msvc,$(platform)))
LIBS := $(WHOLE_START) $(WHOLE_END)
else
STATIC_BUILD = 0
endif
ifneq (,$(findstring unix,$(platform)))
STATIC_BUILD = 0
endif
ifeq (qnx, $(platform))
STATIC_BUILD = 0
endif
ifeq ($(STATIC_BUILD), 0)
LIBS := $(WHOLE_START) $(WHOLE_END)
else
LIBS := $(WHOLE_START) -lretro_$(platform) $(WHOLE_END)
endif
endif
libogc_platform :=
@@ -93,7 +100,7 @@ else ifeq ($(platform), wii)
libogc_platform := 1
endif
HAVE_MENU_WIDGETS := 1
HAVE_GFX_WIDGETS := 1
# PS3
ifeq ($(platform), ps3)
@@ -197,6 +204,7 @@ else ifeq ($(libogc_platform), 1)
HAVE_VIDEO_LAYOUT := 0
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_CONFIGFILE := 1
RARCH_CONSOLE = 1
ifeq ($(platform), wii)
@@ -236,6 +244,7 @@ else ifeq ($(platform), xenon360)
HAVE_THREADS := 1
HAVE_GETOPT_LONG := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
# PSP
else ifeq ($(platform), psp1)
@@ -260,6 +269,7 @@ else ifeq ($(platform), psp1)
HAVE_KERNEL_PRX := 1
#HAVE_LANGEXTRA := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
ifeq ($(BUILD_PRX), 1)
LDFLAGS += $(addprefix -L,$(PSPSDK)/lib) -specs=$(PSPSDK)/lib/prxspecs -Wl,-q,-T$(PSPSDK)/lib/linkfile.prx $(LDFLAGS)
@@ -317,6 +327,7 @@ else ifeq ($(platform), vita)
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
else ifeq ($(platform), windows_msvc6_x86)
HAVE_RPNG := 1
HAVE_RJPEG := 1
@@ -340,6 +351,7 @@ else ifeq ($(platform), windows_msvc6_x86)
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -383,6 +395,7 @@ else ifeq ($(platform), windows_msvc2003_x86)
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -432,6 +445,7 @@ else ifeq ($(platform), windows_msvc2005_x86)
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -439,7 +453,7 @@ else ifeq ($(platform), windows_msvc2005_x86)
CXX = cl.exe
LD = link.exe
PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0410 -D__STDC_CONSTANT_MACROS -D_MBCS -DHAVE_EASTEREGG -D__MMX__ -D__SSE__ -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_SHADERPIPELINE -DHAVE_OZONE
PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0410 -D__STDC_CONSTANT_MACROS -D_MBCS -D__MMX__ -D__SSE__ -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_SHADERPIPELINE -DHAVE_OZONE
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib msimg32.lib
PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH)
@@ -483,6 +497,7 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -491,7 +506,7 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
LD = link.exe
PLATCFLAGS += -D_WIN32 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -D__i686__ -D__MMX__ -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 -DHAVE_EASTEREGG -DHAVE_CDROM
PLATCFLAGS += -D__i686__ -D__MMX__ -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_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DWIN32 -DHAVE_CDROM
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib msimg32.lib
PlatformSuffix = $(subst windows_msvc2010_,,$(platform))
@@ -557,6 +572,7 @@ else ifneq (,$(findstring windows_msvc2012,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -565,7 +581,7 @@ else ifneq (,$(findstring windows_msvc2012,$(platform)))
LD = link.exe
PLATCFLAGS += -D_WIN32 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -D__i686__ -D__MMX__ -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 -DHAVE_EASTEREGG -DHAVE_CDROM
PLATCFLAGS += -D__i686__ -D__MMX__ -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_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DWIN32 -DHAVE_CDROM
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib
PlatformSuffix = $(subst windows_msvc2012_,,$(platform))
@@ -635,6 +651,7 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -643,7 +660,7 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
LD = link.exe
PLATCFLAGS += -D_WIN32 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -D__i686__ -D__MMX__ -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 -DHAVE_EASTEREGG -DHAVE_CDROM
PLATCFLAGS += -D__i686__ -D__MMX__ -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_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DWIN32 -DHAVE_CDROM
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib
PlatformSuffix = $(subst windows_msvc2013_,,$(platform))
@@ -713,6 +730,7 @@ else ifneq (,$(findstring windows_msvc2015,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -722,7 +740,7 @@ else ifneq (,$(findstring windows_msvc2015,$(platform)))
PLATCFLAGS += -utf-8
PLATCFLAGS += -D_WIN32 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -D__i686__ -D__MMX__ -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 -DHAVE_EASTEREGG -DHAVE_CDROM
PLATCFLAGS += -D__i686__ -D__MMX__ -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_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DWIN32 -DHAVE_CDROM
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib
PlatformSuffix = $(subst windows_msvc2015_,,$(platform))
@@ -780,6 +798,44 @@ else ifneq (,$(findstring windows_msvc2015,$(platform)))
export INCLUDE := $(INCLUDE);libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB)
endif
else ifeq (qnx,$(platform))
HAVE_AUDIOMIXER := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_NETWORKING := 1
HAVE_NETWORK_CMD := 1
HAVE_NETPLAYDISCOVERY := 1
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
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 := 0
WANT_GLSLANG := 0
HAVE_CONFIGFILE := 1
CC=qcc -Vgcc_ntoarmv7le
CXX=QCC -Vgcc_ntoarmv7le
ifeq ($(DEBUG), 1)
LDFLAGS += -g
endif
PLATCFLAGS += -DHAVE_SHADERPIPELINE -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_OZONE -DHAVE_CC_RESAMPLER -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_FBO -DHAVE_GL_SYNC -DHAVE_GLSLANG -DHAVE_BUILTINGLSLANG -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA -DHAVE_RUNAHEAD -DHAVE_GFX_WIDGETS -DHAVE_CONFIGFILE -DHAVE_SPIRV_CROSS -DHAVE_STB_FONT -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_XMB -DRARCH_INTERNAL -DWANT_GLSLANG -DHAVE_XCB -DHAVE_EGL -DHAVE_BB10 -DHAVE_GLSL -DHAVE_AL -DRARCH_MOBILE
EXT_TARGET := $(TARGET_NAME)
EXT_INTER_TARGET := $(TARGET_NAME)
INCLUDE += -Ilibretro-common/include -Igfx/include -Ideps -Ideps/stb -Ideps/rcheevos/include -Ideps/SPIRV-Cross -Ideps/glslang -I.
LIBS += -lEGL -lbps -lscreen -lsocket -lm -lGLESv2 -lOpenAL
else ifneq (,$(findstring unix,$(platform)))
HAVE_AUDIOMIXER := 1
HAVE_RPNG := 1
@@ -804,9 +860,10 @@ else ifneq (,$(findstring unix,$(platform)))
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
WANT_GLSLANG := 1
WANT_GLSLANG := 1
HAVE_CONFIGFILE := 1
PLATCFLAGS += -DHAVE_EASTEREGG -D__MMX__ -D__SSE__ -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_SHADERPIPELINE -DHAVE_OZONE -DHAVE_CC_RESAMPLER -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_FBO -DHAVE_GL_SYNC -DHAVE_SLANG -DHAVE_GLSLANG -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA -DHAVE_RUNAHEAD -DHAVE_MENU_WIDGETS -DHAVE_SPIRV_CROSS -DHAVE_STB_FONT -DHAVE_UPDATE_ASSETS -DHAVE_VULKAN -DHAVE_XMB -DRARCH_INTERNAL -DWANT_GLSLANG -DHAVE_X11 -DHAVE_XCB -DHAVE_UDEV -DHAVE_PULSE
PLATCFLAGS += -D__MMX__ -D__SSE__ -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_SHADERPIPELINE -DHAVE_OZONE -DHAVE_CC_RESAMPLER -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_FBO -DHAVE_GL_SYNC -DHAVE_SLANG -DHAVE_GLSLANG -DHAVE_BUILTINGLSLANG -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA -DHAVE_RUNAHEAD -DHAVE_GFX_WIDGETS -DHAVE_CONFIGFILE -DHAVE_SPIRV_CROSS -DHAVE_STB_FONT -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_VULKAN -DHAVE_XMB -DRARCH_INTERNAL -DWANT_GLSLANG -DHAVE_X11 -DHAVE_XCB -DHAVE_UDEV -DHAVE_PULSE
EXT_TARGET := $(TARGET_NAME)
EXT_INTER_TARGET := $(TARGET_NAME)
INCLUDE += -Ilibretro-common/include -Igfx/include -Ideps -Ideps/stb -Ideps/rcheevos/include -Ideps/SPIRV-Cross -Ideps/glslang -I.
@@ -972,6 +1029,10 @@ ifeq ($(HAVE_THREADS), 1)
endif
endif
ifeq ($(HAVE_CONFIGFILE), 1)
CFLAGS += -DHAVE_CONFIGFILE
endif
ifeq ($(HAVE_RSOUND), 1)
CFLAGS += -DHAVE_RSOUND
endif
@@ -1080,7 +1141,12 @@ $(APP_BOOTER_DIR)/app_booter.bin:
$(MAKE) -C $(APP_BOOTER_DIR)
pkg: all
ifeq ($(platform), wii)
ifeq ($(platform), qnx)
mkdir -p pkg/qnx/pkg
cp -r $(EXT_TARGET) pkg/qnx/pkg/RetroArch
cp -r media/canvas.png pkg/qnx/pkg/canvas.png
cp -r media/retroarch-96x96.png pkg/qnx/pkg/retroarch-96x96.png
else ifeq ($(platform), wii)
cp -r $(EXT_TARGET) pkg/wii/CORE.dol
else ifeq ($(platform), ngc)
cp -r $(EXT_TARGET) pkg/ngc/CORE.dol
@@ -1088,6 +1154,18 @@ else ifeq ($(platform), psp1)
psp-fixup-imports$(EXT) $(EXT_TARGET)
endif
ifeq ($(platform), qnx)
retroarch-dev.bar: pkg
ifeq ($(QNX_DEBUGTOKEN),)
blackberry-nativepackager -package $@ -devMode pkg/qnx/bar-descriptor.xml -C pkg/qnx/pkg pkg/qnx/pkg/*
else
blackberry-nativepackager -package $@ -devMode -debugToken $(QNX_DEBUGTOKEN) pkg/qnx/bar-descriptor.xml -C pkg/qnx/pkg pkg/qnx/pkg/*
endif
retroarch-release.bar: pkg
blackberry-nativepackager -package $@ pkg/qnx/bar-descriptor.xml -C pkg/qnx/pkg pkg/qnx/pkg/*
endif
shaders-checkout:
@if test -d $(SHADER_CG_DIR); then \
echo "[SHADER CHECKOUT::] Git pulling common-shaders..."; \
+7 -4
View File
@@ -21,6 +21,8 @@ OBJ :=
DEFINES := -D__SWITCH__=1 -U__linux__ -U__linux -DGLM_FORCE_PURE=1 -DRARCH_CONSOLE -DRARCH_INTERNAL -DGLOBAL_CONFIG_DIR='"/switch"' -DHAVE_STB_VORBIS
HAVE_DR_MP3 = 1
HAVE_TRANSLATE = 1
HAVE_AUDIOMIXER = 1
HAVE_CC_RESAMPLER = 1
HAVE_MENU_COMMON = 1
@@ -34,6 +36,7 @@ HAVE_LIBRETRODB = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_MENU = 1
HAVE_CONFIGFILE = 1
HAVE_RUNAHEAD = 1
HAVE_NETWORKING = 1
HAVE_NETPLAYDISCOVERY = 1
@@ -50,7 +53,7 @@ HAVE_SWITCH = 1
HAVE_LIBNX = 1
HAVE_OPENGL = 1
HAVE_LANGEXTRA = 1
HAVE_MENU_WIDGETS = 1
HAVE_GFX_WIDGETS = 1
ifeq ($(HAVE_OPENGL), 1)
HAVE_EGL = 1
@@ -60,7 +63,7 @@ ifeq ($(HAVE_OPENGL), 1)
HAVE_XMB = 1
HAVE_OZONE = 1
HAVE_OVERLAY = 1
HAVE_VIDEO_LAYOUT = 0
HAVE_VIDEO_LAYOUT = 1
HAVE_GLSL = 1
else
HAVE_RGUI = 1
@@ -116,7 +119,7 @@ ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mcpu=cortex-a57+crc+fp
CFLAGS := -g -Wall -O3 -ffast-math -ffunction-sections \
$(ARCH) $(DEFINES) $(INCLUDE_DIRS) -I$(LIBNX)/include -I$(PORTLIBS)/include/ -include $(LIBNX)/include/switch.h #$(shell $(PORTLIBS)/bin/freetype-config --cflags)
CFLAGS += $(INCLUDE) -DSWITCH=1 -DHAVE_LIBNX=1 -DNXLINK=1 -DHAVE_SHADERPIPELINE -DHAVE_UPDATE_ASSETS -DHAVE_STB_FONT #-DHAVE_FREETYPE
CFLAGS += $(INCLUDE) -DSWITCH=1 -DHAVE_LIBNX=1 -DNXLINK=1 -DHAVE_SHADERPIPELINE -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_STB_FONT #-DHAVE_FREETYPE
ifeq ($(strip $(HAVE_STATIC_DUMMY)),1)
CFLAGS += -DHAVE_STATIC_DUMMY=1
@@ -130,7 +133,7 @@ LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs $(ARCH) -Wl,--allow-multiple-de
# add things from Makefile.common
CFLAGS += $(DEF_FLAGS)
LIBS := -lswresample -lavformat -lavcodec -lavutil -lswscale -lstdc++ -lbz2 -lpng -lz -lnx -lm
LIBS := -lswresample -lavformat -lavcodec -lavutil -lswscale -lstdc++ -lbz2 -lpng -lz -lnx -lvpx -lopus -llzma -lm
ifeq ($(HAVE_OPENGL), 1)
LIBS := -lEGL -lglapi -ldrm_nouveau $(LIBS)
+2 -1
View File
@@ -21,7 +21,7 @@ HAVE_D3D12 := 1
HAVE_CG := 1
HAVE_OPENGL := 1
HAVE_OPENGL1 := 1
HAVE_MENU_WIDGETS := 1
HAVE_GFX_WIDGETS := 1
HAVE_VULKAN := 1
HAVE_XAUDIO := 1
HAVE_XINPUT := 1
@@ -31,6 +31,7 @@ HAVE_WINMM := 1
HAVE_RPNG := 1
HAVE_ZLIB := 1
HAVE_CONFIGFILE := 1
HAVE_MENU := 1
HAVE_RGUI := 1
HAVE_XMB := 1
+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__ -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_OVERLAY -DHAVE_VIDEO_LAYOUT -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
DEFINES += -DHAVE_CONFIGFILE -D__ARM_ARCH_6__ -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_OVERLAY -DHAVE_VIDEO_LAYOUT -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
+3 -2
View File
@@ -16,7 +16,7 @@ DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1
DEFINES += -DHAVE_MENU -DHAVE_LIBRETRODB
DEFINES += -DHAVE_MENU -DHAVE_LIBRETRODB -DHAVE_CONFIGFILE
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_CC_RESAMPLER
ifeq ($(DEBUG), 1)
DEFINES += -DHAVE_NETLOGGER
@@ -34,13 +34,14 @@ else
HAVE_VIDEO_LAYOUT := 0
HAVE_7ZIP := 1
HAVE_EGL := 1
HAVE_MENU_WIDGETS := 1
HAVE_GFX_WIDGETS := 1
HAVE_GLSL := 1
HAVE_OPENGLES := 1
HAVE_NETWORKING := 0
HAVE_SOCKET_LEGACY := 0
HAVE_MENU := 1
HAVE_MENU_COMMON := 1
HAVE_CONFIGFILE := 1
HAVE_RGUI := 0
HAVE_MATERIALUI := 0
HAVE_XMB := 1
+5 -2
View File
@@ -1,4 +1,4 @@
BUILD_PRX = 0
BUILD_FOR_PCSX2 = 0
DEBUG = 0
HAVE_KERNEL_PRX = 0
HAVE_LOGGER = 0
@@ -38,13 +38,16 @@ CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -ffast-math -fsingle-precision-const
ASFLAGS = $(CFLAGS)
RARCH_DEFINES += -DPS2 -DUSE_IOP_CTYPE_MACRO -D_MIPS_ARCH_R5900 -DHAVE_ZLIB -DHAVE_NO_BUILTINZLIB -DHAVE_RPNG -DHAVE_RJPEG
RARCH_DEFINES += -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
RARCH_DEFINES += -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
LIBDIR =
LDFLAGS += -L$(PS2SDK)/ports/lib -L$(PS2DEV)/gsKit/lib -L$(PS2SDK)/ee/lib -L$(CDVD_DIR)/lib -L.
LIBS += -lretro_ps2 -lgskit -ldmakit -lgskit_toolkit -laudsrv -lmf -lpadx -lmtap -lmc -lhdd -lsdl -lfileXio -lz
LIBS += -lcdvdfs -lpatches -lpoweroff
ifeq ($(BUILD_FOR_PCSX2), 1)
RARCH_DEFINES += -DBUILD_FOR_PCSX2
endif
ifeq ($(HAVE_THREADS), 1)
RARCH_DEFINES += -DHAVE_THREADS
+3 -2
View File
@@ -69,8 +69,9 @@ endif
PPU_SRCS = griffin/griffin.c
#DEFINES += -DHAVE_VIDEO_LAYOUT
DEFINES += -DHAVE_MENU -DHAVE_MENU_WIDGETS -DHAVE_RGUI -DHAVE_XMB -DHAVE_OZONE -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
DEFINES += -DHAVE_VIDEO_LAYOUT
DEFINES += -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_GFX_WIDGETS -DHAVE_RGUI -DHAVE_XMB -DHAVE_OZONE -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
DEFINES += -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
+1 -1
View File
@@ -45,8 +45,8 @@ PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_SRCS = frontend/frontend_salamander.c \
frontend/frontend_driver.c \
frontend/drivers/platform_ps3.c \
frontend/drivers/platform_null.c \
libretro-common/file/file_path.c \
libretro-common/file/file_path_io.c \
libretro-common/lists/dir_list.c \
libretro-common/lists/string_list.c \
libretro-common/file/retro_dirent.c \
+31 -67
View File
@@ -1,29 +1,39 @@
#-------------------------------------------------------------------------------
# Clear the implicit built in rules
#-------------------------------------------------------------------------------
.SUFFIXES:
#-------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
endif
include $(PSL1GHT)/ppu_rules
include version.all
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_FILE_LOGGER = 1
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CC = $(PS3DEV)/ppu/bin/ppu-gcc
CXX = $(PS3DEV)/ppu/bin/ppu-g++
LD = $(PS3DEV)/ppu/bin/ppu-ld
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
CONTENTID = UP0001-SSNE10001_00-0000000000000001
APPID = SSNE10001
TITLE = Retroarch PSL1GHT
PACKAGE_BASENAME := retroarch_psl1ght
ELF_TARGET := retroarch_psl1ght.elf
EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
SELF_TARGET := $(ELF_TARGET:.elf=.self)
CORE_PATH = pkg/psl1ght/pkg/USRDIR/cores/CORE.SELF
INCLUDE := -I. -I$(PS3DEV)/ppu/include -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib
LIBDIRS := -L$(PS3DEV)/ppu/lib -L$(PS3DEV)/portlibs/ppu/lib -L.
INCLUDE += -I. -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude
LIBDIRS += -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__ -mcpu=cell
CFLAGS += -Wall $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP)
LIBS := -lrgl_ps3 -lretro_psl1ght -laudio -lrsx -lgcm_sys -lnet -lio -lsysutil -lsysmodule -lm -ljpgdec -lpngdec -llv2 -lnet -lnetctl
LIBS := -lretro_psl1ght -laudio -lrsx -lgcm_sys -lnet -lio -lsysutil -lsysmodule -lm -ljpgdec -lpngdec -llv2 -lnet -lnetctl
# system platform
system_platform = unix
@@ -38,46 +48,10 @@ endif
PKG_SCRIPT = tools/ps3/ps3py/pkg.py
ifeq ($(shell uname), Linux)
PKG_FINALIZE = package_finalize
MAKE_SELF_WC = make_self_wc
MAKE_SELF = make_self_npdrm
PYTHON2 = python2
GIT = git
else
PKG_FINALIZE = package_finalize.exe
MAKE_SELF_WC = make_self_wc.exe
MAKE_SELF = make_self_npdrm.exe
PYTHON2 = python2.exe
GIT = git.exe
endif
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
PKG_SCRIPT = tools/ps3/ps3py/pkg.py
ifeq ($(shell uname), Linux)
PKG_FINALIZE = package_finalize
MAKE_SELF_WC = make_self_wc
MAKE_SELF = make_self_npdrm
PYTHON2 = python2
GIT = git
else
PKG_FINALIZE = package_finalize.exe
MAKE_SELF_WC = make_self_wc.exe
MAKE_SELF = make_self_npdrm.exe
PYTHON2 = python2.exe
GIT = git.exe
endif
MAKE_FSELF_NPDRM = $(CELL_SDK)/host-win32/bin/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM = $(CELL_SDK)/host-win32/bin/make_package_npdrm.exe
OBJ = griffin/griffin.o
@@ -91,8 +65,8 @@ endif
SHARED_FLAGS :=
#SHARED_FLAGS += -DHAVE_VIDEO_LAYOUT
SHARED_FLAGS += -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_GCMGL -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_MOUSE -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_GRIFFIN=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts -DHAVE_CC_RESAMPLER
SHARED_FLAGS += -DHAVE_VIDEO_LAYOUT
SHARED_FLAGS += -DHAVE_MENU -DHAVE_CONFIGFILE -DRARCH_CONSOLE -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_GCMGL -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_MOUSE -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_GRIFFIN=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts -DHAVE_CC_RESAMPLER -DRARCH_INTERNAL -DHAVE_MULTIMAN -DHAVE_RGUI
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
@@ -103,28 +77,18 @@ else
CXXFLAGS += -03 -g
endif
all: $(ELF_TARGET)
all: $(SELF_TARGET)
$(ELF_TARGET): $(OBJ)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
create-core: $(SELF_TARGET)
cp $(SELF_TARGET) $(CORE_PATH)
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
create-npdrm-core:
$(MAKE_FSELF_NPDRM) $(ELF_TARGET) $(CORE_PATH)
create-core:
$(MAKE_SELF_WC) $(ELF_TARGET) $(CORE_PATH)
pkg: $(ELF_TARGET) create-npdrm-core
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf ps3/pkg
pkg-signed: $(ELF_TARGET) create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg: create-core
$(PKG) --contentid $(CONTENTID) pkg/psl1ght/pkg/ $(PACKAGE_BASENAME).pkg
# cp $(PACKAGE_BASENAME).pkg $(PACKAGE_BASENAME).gnpdrm.pkg
# $(PACKAGE_FINALIZE) $(PACKAGE_BASENAME).gnpdrm.pkg
clean:
rm -f $(ELF_TARGET)
+119
View File
@@ -0,0 +1,119 @@
#-------------------------------------------------------------------------------
# Clear the implicit built in rules
#-------------------------------------------------------------------------------
.SUFFIXES:
#-------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
endif
include $(PSL1GHT)/ppu_rules
include version.all
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 1
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CONTENTID = UP0001-SSNE10001_00-0000000000000001
APPID = SSNE10001
TITLE = Retroarch PSL1GHT
PACKAGE_BASENAME := retroarch_psl1ght
ELF_TARGET := retroarch_psl1ght_salamander.elf
ELF_TARGET_NONSTRIPPED := retroarch_psl1ght_salamander_nonstripped.elf
EBOOT_PATH = pkg/psl1ght/pkg/USRDIR/EBOOT.BIN
INCLUDE += -I. -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude
LIBDIRS += -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__ -mcpu=cell -mhard-float -fmodulo-sched -ffunction-sections -fdata-sections
CFLAGS += -Wall $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP)
LIBS := -lgcm_sys -lrsx -lsysutil -lio -lnet -lsysmodule -lrt -llv2 -lm
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
PKG_SCRIPT = tools/ps3/ps3py/pkg.py
ifeq ($(shell uname), Linux)
GIT = git
else
GIT = git.exe
endif
OBJ = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_ps3.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/lists/dir_list.o \
libretro-common/lists/string_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/hash/rhash.o \
libretro-common/string/stdstring.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/compat/fopen_utf8.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/file/config_file.o \
file_path_str.o \
verbosity.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
SHARED_FLAGS :=
SHARED_FLAGS += -DHAVE_VIDEO_LAYOUT
SHARED_FLAGS += -DHAVE_MENU -DHAVE_CONFIGFILE -DRARCH_CONSOLE -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_GCMGL -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_MOUSE -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_GRIFFIN=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -Wno-char-subscripts -DHAVE_CC_RESAMPLER -DHAVE_MULTIMAN -DHAVE_RGUI -DIS_SALAMANDER
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
else
CFLAGS += -O3 -g
CXXFLAGS += -03 -g
endif
all: create-salamander
$(ELF_TARGET_NONSTRIPPED): $(OBJ)
$(CXX) -o $@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(LIBS)
$(ELF_TARGET): $(ELF_TARGET_NONSTRIPPED)
$(STRIP) $< -o $@
$(SPRX) $@
create-salamander: $(ELF_TARGET)
$(SELF_NPDRM) $(ELF_TARGET) $(EBOOT_PATH) $(CONTENTID)
pkg: create-salamander
$(PKG) --contentid $(CONTENTID) pkg/psl1ght/pkg/ $(PACKAGE_BASENAME).pkg
# cp $(PACKAGE_BASENAME).pkg $(PACKAGE_BASENAME).gnpdrm.pkg
# $(PACKAGE_FINALIZE) $(PACKAGE_BASENAME).gnpdrm.pkg
clean:
rm -f $(ELF_TARGET)
rm -f $(OBJ)
.PHONY: clean
+16 -1
View File
@@ -25,7 +25,7 @@ INCDIR = deps deps/stb deps/7zip deps/pthreads deps/pthreads/platform/psp deps/p
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 -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_AUDIOMIXER -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
LIBDIR =
LDFLAGS =
@@ -58,3 +58,18 @@ OBJS = $(PSP_OBJECTS)
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
pspsh-debug:
pspsh -e reset
read -p "Start debugger in VSCode and press any key to continue... \n" -n1 -s
pspsh -e debug ./retroarchpsp.prx
pspsh
pspsh-run:
pspsh -e reset
pspsh -e ./retroarchpsp.prx
pspsh
debug: clean all pspsh-debug
run: clean all pspsh-run
+1 -1
View File
@@ -35,8 +35,8 @@ PSP_EBOOT_PIC1 = pkg/psp1/PIC1.PNG
OBJS = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_psp.o \
frontend/drivers/platform_null.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
+2
View File
@@ -13,6 +13,7 @@ ifeq ($(GRIFFIN_BUILD), 1)
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_NEON -DHAVE_MATERIALUI -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA
DEFINES += -DHAVE_RUNAHEAD -DHAVE_DYNAMIC
DEFINES += -DHAVE_CONFIGFILE
else
HAVE_AUDIOMIXER = 1
HAVE_CC_RESAMPLER = 1
@@ -30,6 +31,7 @@ else
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_MENU = 1
HAVE_CONFIGFILE = 1
HAVE_RUNAHEAD = 1
HAVE_DYNAMIC = 1
+19 -12
View File
@@ -11,21 +11,24 @@ PC_DEVELOPMENT_UDP_PORT =
OBJ :=
DEFINES :=
DEFINES := -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS
INCDIRS :=
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_KEYMAPPER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_CC_RESAMPLER -DHAVE_UPDATE_ASSETS
DEFINES += -DHAVE_NEON -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB DEFINES -DHAVE_KEYMAPPER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_CC_RESAMPLER
ifeq ($(DEBUG), 1)
DEFINES += -DHAVE_NETLOGGER
endif
INCDIRS += -I. -Ideps/7zip -Ilibretro-common/include -Ilibretro-common/include/compat/zlib -Ideps/stb
else
HAVE_UPDATE_ASSETS := 1
HAVE_ONLINE_UPDATER := 1
HAVE_NEON := 1
HAVE_MATH_NEON := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
@@ -35,10 +38,13 @@ else
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_VITA2D := 1
HAVE_VITAGL := 1
HAVE_NETWORKING := 1
HAVE_SOCKET_LEGACY := 1
HAVE_MENU := 1
HAVE_MENU_COMMON := 1
HAVE_GFX_WIDGETS := 1
HAVE_CONFIGFILE := 1
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
HAVE_MATERIALUI := 1
@@ -53,6 +59,7 @@ else
RARCH_CONSOLE := 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_AUDIOMIXER := 1
ifeq ($(DEBUG), 1)
HAVE_NETLOGGER = 1
@@ -85,18 +92,16 @@ LD := $(CXX)
LIBDIRS := -L.
ARCHFLAGS := -march=armv7-a -mfpu=neon -mfloat-abi=hard -DVITA
CFLAGS += $(ARCHFLAGS) -mword-relocations -fno-optimize-sibling-calls
CFLAGS += $(ARCHFLAGS) -mword-relocations -fno-optimize-sibling-calls -O2
ifeq ($(DEBUG), 1)
CFLAGS += -O2 -g
else
CFLAGS += -O3
CFLAGS += -g
endif
ASFLAGS := $(CFLAGS)
LDFLAGS := -Wl,-q
CFLAGS += -Wall -ffast-math
CFLAGS += -Wall -ffast-math -g
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
@@ -114,9 +119,9 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
endif
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
VITA_LIBS := -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub \
VITA_LIBS := -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub -lSceAppUtil_stub \
-lSceSysmodule_stub -lSceCtrl_stub -lSceHid_stub -lSceTouch_stub -lSceAudio_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub -lSceMotion_stub \
-lSceFiber_stub -lSceMotion_stub -lSceAppMgr_stub -lpthread -lpng -lz
LIBS := $(WHOLE_START) -lretro_vita $(WHOLE_END) $(VITA_LIBS) -lm -lc
@@ -154,17 +159,19 @@ $(TARGET).elf: $(OBJ) libretro_vita.a
$(LD) $(OBJ) $(LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
%.velf: %.elf
cp $< $<.unstripped.elf
$(PREFIX)strip -g $<
vita-elf-create $< $@
%.self: %.velf
vita-make-fself -c -s $< $@
%.vpk: %.self
vita-mksfoex -s TITLE_ID=$(VITA_TITLE_ID) "$(VITA_TITLE_NAME)" param.sfo
vita-mksfoex -s TITLE_ID=$(VITA_TITLE_ID) "$(VITA_TITLE_NAME)" -d ATTRIBUTE2=12 param.sfo
vita-pack-vpk -s param.sfo -b $< $@
clean:
rm -f $(OBJ) $(TARGET).elf $(TARGET).velf $(TARGET).self param.sfo $(TARGET).vpk
rm -f $(OBJ) $(TARGET).elf $(TARGET).elf.unstripped.elf $(TARGET).velf $(TARGET).self param.sfo $(TARGET).vpk
rm -f $(OBJ:.o=.depend)
# Useful for developers
+4 -4
View File
@@ -21,9 +21,9 @@ RARCH_DEFINES = -DVITA -DIS_SALAMANDER -DRARCH_CONSOLE
LIBDIR =
LDFLAGS =
LIBS = -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\
LIBS = -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub -lSceAppUtil_stub\
-lSceSysmodule_stub -lSceCtrl_stub -lSceHid_stub -lSceAudio_stub -lSceFiber_stub\
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub -lSceMotion_stub \
-lSceMotion_stub -lSceAppMgr_stub -lfreetype -lpng -lm -lc
ifeq ($(HAVE_FILE_LOGGER), 1)
@@ -35,8 +35,8 @@ CFLAGS += $(RARCH_DEFINES)
OBJS = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_psp.o \
frontend/drivers/platform_null.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
@@ -55,7 +55,7 @@ OBJS = frontend/frontend_salamander.o \
all: $(TARGET).vpk
%.vpk: eboot.bin
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "$(TARGET)" param.sfo
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "$(TARGET)" -d ATTRIBUTE2=12 param.sfo
vita-pack-vpk -s param.sfo -b eboot.bin $@
eboot.bin: $(TARGET).velf
+1 -1
View File
@@ -55,8 +55,8 @@ OBJ = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_gx.o \
frontend/drivers/platform_wii.o \
frontend/drivers/platform_null.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/hash/rhash.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
+5 -2
View File
@@ -53,11 +53,11 @@ ifeq ($(SALAMANDER_BUILD),1)
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/compat/fopen_utf8.o
OBJ += libretro-common/file/file_path.o
OBJ += libretro-common/file/file_path_io.o
OBJ += libretro-common/string/stdstring.o
OBJ += libretro-common/lists/string_list.o
OBJ += libretro-common/lists/dir_list.o
@@ -74,7 +74,9 @@ ifeq ($(SALAMANDER_BUILD),1)
else
DEFINES += -DRARCH_INTERNAL
DEFINES += -DHAVE_KEYMAPPER
DEFINES += -DHAVE_ONLINE_UPDATER
DEFINES += -DHAVE_UPDATE_ASSETS
DEFINES += -DHAVE_UPDATE_CORES
DEFINES += -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_SLANG
DEFINES += -DHAVE_SHADERPIPELINE
@@ -105,7 +107,7 @@ endif
INCDIRS += -Ideps/SPIRV-Cross
DEFINES += -DHAVE_AUDIOMIXER
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_RGUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_SPIRV_CROSS -DHAVE_SLANG
DEFINES += -DHAVE_STB_FONT -DHAVE_STB_VORBIS -DHAVE_LANGEXTRA -DHAVE_LIBRETRODB -DHAVE_NETWORKING -DHAVE_NETPLAYDISCOVERY
@@ -124,6 +126,7 @@ endif
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_CONFIGFILE = 1
HAVE_MENU = 1
HAVE_RGUI = 1
HAVE_7ZIP = 1
+1
View File
@@ -14,6 +14,7 @@ HAVE_STDIN_CMD = 1
HAVE_COMMAND = 1
HAVE_THREADS = 1
HAVE_MENU = 1
HAVE_CONFIGFILE = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 1
HAVE_7ZIP = 1
+30 -7
View File
@@ -8,15 +8,17 @@ Popular examples of implementations for this API includes video game system emul
more generalized 3D programs.
These programs are instantiated as dynamic libraries. We refer to these as "libretro cores".
![XMB menu driver](http://i.imgur.com/BMR1xxr.png "XMB menu driver")
![XMB menu driver](docs/XMB-main-menu.jpg "XMB menu driver")
![rgui menu driver](http://i.imgur.com/X3CbBKa.png "rgui menu driver")
![rgui menu driver](docs/rgui-main-menu.jpg "rgui menu driver")
![glui menu driver](http://i.imgur.com/ooqv8rw.png "glui menu driver")
![glui menu driver](docs/glui-main-menu.jpg "glui menu driver")
![ozone menu driver](docs/ozone-main-menu.jpg "ozone menu driver")
## libretro
[libretro](http://libretro.com) is an API that exposes generic audio/video/input callbacks.
[libretro](https://www.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 to no porting effort.
@@ -31,12 +33,12 @@ Latest binaries are currently hosted on the [buildbot](http://buildbot.libretro.
## Support
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.
To reach developers, either make an issue here on GitHub, make a thread on the [forum](https://www.libretro.com/forums/), chat on [discord](https://discord.gg/C4amCeV), or visit our IRC channel: #retroarch @ irc.freenode.org. You could create a post in [Reddit](https://www.reddit.com/r/RetroArch/) with *Technical Support* flair.
## Documentation
See our [Documentation Center](https://docs.libretro.com/). On Unix, man-pages are provided.
More developer-centric stuff is found [here](https://github.com/libretro/libretro.github.com/wiki/Documentation-devs).
More developer-centric stuff is found [here](https://docs.libretro.com/development/libretro-overview/).
## Related projects
@@ -72,6 +74,7 @@ RetroArch has been ported to the following platforms:
- Haiku
- Solaris
- macOS (PPC, x86-32 and x86-64)
- PlayStation 2
- PlayStation 3
- PlayStation Portable
- PlayStation Vita
@@ -80,7 +83,7 @@ RetroArch has been ported to the following platforms:
- Nintendo GameCube
- Nintendo Wii
- Nintendo Wii U
- Nintendo 3DS
- Nintendo 3DS/2DS
- Nintendo Switch
- Nintendo NES/SNES Classic Edition
- Raspberry Pi
@@ -256,3 +259,23 @@ These modelines are more accurate giving exact hz. However, some games may have
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.
## Socials
The links below belong to our official channels. Links other than this may have been created by fans, independent members or followers. We seriously recommend using our original resources.
- [Website](https://www.retroarch.com/)
- [Blog](https://libretro.com/)
- [Facebook](https://www.facebook.com/libretro)
- [Twitter](https://twitter.com/libretro)
- [Reddit](https://www.reddit.com/r/RetroArch/)
- [YouTube](https://www.youtube.com/Libretro)
- [Google Post](https://posts.google.com/share/55Nhs2jG)
- [Steam](https://store.steampowered.com/app/1118310/RetroArch/)
- [YouTube Topic](https://www.youtube.com/channel/UC5q007PYyQPgin0HHbzF0zQ)
- [Patreon](https://www.patreon.com/libretro)
- [BOUNTYSOURCE](https://www.bountysource.com/teams/libretro/issues)
- [Discord](https://discord.gg/27Xxm2h)
- [Teespring](https://teespring.com/stores/retroarch)
- [Documentation](https://docs.libretro.com/)
- [Forum](https://forums.libretro.com/)
+19 -15
View File
@@ -1,7 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2017 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
* 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-
@@ -15,24 +14,29 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MENU_GENERIC_H
#define _MENU_GENERIC_H
#ifndef __RETROARCH_ACCESSIBILITY_H
#define __RETROARCH_ACCESSIBILITY_H
#include <stdint.h>
#include <stddef.h>
#include <sys/types.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_inline.h>
#include <retro_common_api.h>
#include "../menu_driver.h"
#include "../menu_input.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
enum action_iterate_type
{
ITERATE_TYPE_DEFAULT = 0,
ITERATE_TYPE_HELP,
ITERATE_TYPE_INFO,
ITERATE_TYPE_BIND
};
int generic_menu_iterate(void *data, void *userdata, enum menu_action action);
RETRO_BEGIN_DECLS
bool generic_menu_init_list(void *data);
bool is_accessibility_enabled(void);
bool accessibility_speak_priority(const char* speak_text, int priority);
RETRO_END_DECLS
#endif
+1 -1
View File
@@ -372,7 +372,7 @@ static void *alsa_device_list_new(void *data)
n = hints;
while (*n != NULL)
while (*n)
{
char *name = snd_device_name_get_hint(*n, "NAME");
char *io = snd_device_name_get_hint(*n, "IOID");
+1 -1
View File
@@ -361,7 +361,7 @@ static void *alsa_thread_device_list_new(void *data)
n = hints;
while (*n != NULL)
while (*n)
{
char *name = snd_device_name_get_hint(*n, "NAME");
char *io = snd_device_name_get_hint(*n, "IOID");
+8 -2
View File
@@ -52,7 +52,9 @@ typedef struct coreaudio
size_t buffer_size;
} coreaudio_t;
#if TARGET_OS_IOS
static bool g_interrupted;
#endif
static void coreaudio_free(void *data)
{
@@ -243,7 +245,7 @@ static void *coreaudio_init(const char *device,
#else
comp = AudioComponentFindNext(NULL, &desc);
#endif
if (comp == NULL)
if (!comp)
goto error;
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
@@ -344,7 +346,11 @@ static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
const uint8_t *buf = (const uint8_t*)buf_;
size_t written = 0;
#if TARGET_OS_IOS
while (!g_interrupted && size > 0)
#else
while (size > 0)
#endif
{
size_t write_avail;
@@ -365,7 +371,7 @@ static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
break;
}
#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
if (write_avail == 0 && !scond_wait_timeout(
dev->cond, dev->lock, 3000000))
g_interrupted = true;
+4 -4
View File
@@ -23,7 +23,7 @@
typedef struct
{
bool nonblocking;
bool nonblock;
bool playing;
int16_t* l;
int16_t* r;
@@ -180,7 +180,7 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
(((ctr->pos - ctr->playpos ) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 4)) ||
(((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (size >> 2)))
{
if (ctr->nonblocking)
if (ctr->nonblock)
ctr->pos = (ctr->playpos + (CTR_CSND_AUDIO_COUNT >> 1)) & CTR_CSND_AUDIO_COUNT_MASK;
else
{
@@ -189,7 +189,7 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
retro_sleep(1);
ctr_csnd_audio_update_playpos(ctr);
}while (((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 1)
|| (((ctr->pos - ctr->playpos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 4)));
|| (((ctr->pos - ctr->playpos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 4)));
}
}
@@ -265,7 +265,7 @@ static void ctr_csnd_audio_set_nonblock_state(void *data, bool state)
{
ctr_csnd_audio_t* ctr = (ctr_csnd_audio_t*)data;
if (ctr)
ctr->nonblocking = state;
ctr->nonblock = state;
}
static bool ctr_csnd_audio_use_float(void *data)
+3 -3
View File
@@ -22,7 +22,7 @@
typedef struct
{
bool nonblocking;
bool nonblock;
bool playing;
int channel;
ndspWaveBuf dsp_buf;
@@ -102,7 +102,7 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
(((ctr->pos - sample_pos ) & CTR_DSP_AUDIO_COUNT_MASK) < (CTR_DSP_AUDIO_COUNT >> 4)) ||
(((sample_pos - ctr->pos) & CTR_DSP_AUDIO_COUNT_MASK) < (size >> 2)))
{
if (ctr->nonblocking)
if (ctr->nonblock)
ctr->pos = (sample_pos + (CTR_DSP_AUDIO_COUNT >> 1)) & CTR_DSP_AUDIO_COUNT_MASK;
else
{
@@ -173,7 +173,7 @@ static void ctr_dsp_audio_set_nonblock_state(void *data, bool state)
{
ctr_dsp_audio_t* ctr = (ctr_dsp_audio_t*)data;
if (ctr)
ctr->nonblocking = state;
ctr->nonblock = state;
}
static bool ctr_dsp_audio_use_float(void *data)
+66 -36
View File
@@ -94,30 +94,25 @@ struct audio_lock
DWORD size2;
};
static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
struct audio_lock *region)
static bool grab_region(dsound_t *ds, uint32_t write_ptr,
struct audio_lock *region, HRESULT res)
{
HRESULT res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region->chunk1, &region->size1, &region->chunk2, &region->size2, 0);
if (res == DSERR_BUFFERLOST)
{
#ifdef DEBUG
RARCH_WARN("[DirectSound error]: %s\n", "DSERR_BUFFERLOST");
#endif
if ((res = IDirectSoundBuffer_Restore(ds->dsb)) != DS_OK)
return false;
if ((res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region->chunk1, &region->size1, &region->chunk2, &region->size2, 0)) != DS_OK)
return false;
}
if (res == DS_OK)
return true;
}
#ifdef DEBUG
switch (res)
{
case DSERR_BUFFERLOST:
RARCH_WARN("[DirectSound error]: %s\n", "DSERR_BUFFERLOST");
break;
case DSERR_INVALIDCALL:
RARCH_WARN("[DirectSound error]: %s\n", "DSERR_INVALIDCALL");
break;
@@ -151,6 +146,7 @@ static DWORD CALLBACK dsound_thread(PVOID data)
while (ds->thread_alive)
{
HRESULT res;
bool is_pull = false;
struct audio_lock region;
DWORD read_ptr, avail, fifo_avail;
@@ -175,11 +171,15 @@ static DWORD CALLBACK dsound_thread(PVOID data)
continue;
}
if (!grab_region(ds, write_ptr, &region))
if ((res = IDirectSoundBuffer_Lock(ds->dsb, write_ptr, CHUNK_SIZE,
&region.chunk1, &region.size1, &region.chunk2, &region.size2, 0)) != DS_OK)
{
ds->thread_alive = false;
SetEvent(ds->event);
break;
if (!grab_region(ds, write_ptr, &region, res))
{
ds->thread_alive = false;
SetEvent(ds->event);
break;
}
}
if (fifo_avail < CHUNK_SIZE)
@@ -328,6 +328,19 @@ static BOOL CALLBACK enumerate_cb(LPGUID guid, LPCSTR desc, LPCSTR module, LPVOI
return TRUE;
}
static void dsound_set_wavefmt(WAVEFORMATEX *wfx,
unsigned channels, unsigned samplerate)
{
wfx->wFormatTag = WAVE_FORMAT_PCM;
wfx->nBlockAlign = channels * sizeof(int16_t);
wfx->wBitsPerSample = 16;
wfx->nChannels = channels;
wfx->nSamplesPerSec = samplerate;
wfx->nAvgBytesPerSec = wfx->nSamplesPerSec * wfx->nBlockAlign;
wfx->cbSize = 0;
}
static void *dsound_init(const char *dev, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
@@ -390,12 +403,7 @@ static void *dsound_init(const char *dev, unsigned rate, unsigned latency,
goto error;
#endif
wfx.wFormatTag = WAVE_FORMAT_PCM;
wfx.nChannels = 2;
wfx.nSamplesPerSec = rate;
wfx.wBitsPerSample = 16;
wfx.nBlockAlign = 2 * sizeof(int16_t);
wfx.nAvgBytesPerSec = rate * 2 * sizeof(int16_t);
dsound_set_wavefmt(&wfx, 2, rate);
ds->buffer_size = (latency * wfx.nAvgBytesPerSec) / 1000;
ds->buffer_size /= CHUNK_SIZE;
@@ -496,27 +504,49 @@ static ssize_t dsound_write(void *data, const void *buf_, size_t size)
if (!ds->thread_alive)
return -1;
while (size > 0)
if (ds->nonblock)
{
size_t avail;
if (size > 0)
{
size_t avail;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
if (avail > size)
avail = size;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
if (avail > size)
avail = size;
fifo_write(ds->buffer, buf, avail);
LeaveCriticalSection(&ds->crit);
fifo_write(ds->buffer, buf, avail);
LeaveCriticalSection(&ds->crit);
buf += avail;
size -= avail;
written += avail;
buf += avail;
size -= avail;
written += avail;
}
}
else
{
while (size > 0)
{
size_t avail;
if (ds->nonblock || !ds->thread_alive)
break;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
if (avail > size)
avail = size;
if (avail == 0)
WaitForSingleObject(ds->event, INFINITE);
fifo_write(ds->buffer, buf, avail);
LeaveCriticalSection(&ds->crit);
buf += avail;
size -= avail;
written += avail;
if (!ds->thread_alive)
break;
if (avail == 0)
WaitForSingleObject(ds->event, INFINITE);
}
}
return written;
+13 -13
View File
@@ -26,7 +26,6 @@
#include <rthreads/rthreads.h>
#include "../../retroarch.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#define FRAMES(x) (x / (sizeof(float) * 2))
@@ -97,13 +96,13 @@ static void shutdown_cb(void *data)
#endif
}
static int parse_ports(char **dest_ports, const char **jports)
static int parse_ports(const char *audio_device,
char **dest_ports, const char **jports)
{
int i;
char *save = NULL;
int parsed = 0;
settings_t *settings = config_get_ptr();
char *audio_device_cpy = strdup(settings->arrays.audio_device);
char *audio_device_cpy = strdup(audio_device);
const char *con = strtok_r(audio_device_cpy, ",", &save);
if (con)
@@ -146,7 +145,8 @@ static size_t find_buffersize(jack_t *jd, int latency, unsigned out_rate)
return buffer_frames * sizeof(jack_default_audio_sample_t);
}
static void *ja_init(const char *device, unsigned rate, unsigned latency,
static void *ja_init(const char *device,
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
@@ -166,7 +166,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
#endif
jd->client = jack_client_open("RetroArch", JackNullOption, NULL);
if (jd->client == NULL)
if (!jd->client)
goto error;
*new_rate = jack_get_sample_rate(jd->client);
@@ -176,14 +176,14 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
jd->ports[0] = jack_port_register(jd->client, "left", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
jd->ports[1] = jack_port_register(jd->client, "right", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
if (jd->ports[0] == NULL || jd->ports[1] == NULL)
if (!jd->ports[0] || !jd->ports[1])
{
RARCH_ERR("[JACK]: Failed to register ports.\n");
goto error;
}
jports = jack_get_ports(jd->client, NULL, NULL, JackPortIsPhysical | JackPortIsInput);
if (jports == NULL)
if (!jports)
{
RARCH_ERR("[JACK]: Failed to get ports.\n");
goto error;
@@ -196,14 +196,14 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
for (i = 0; i < 2; i++)
{
jd->buffer[i] = jack_ringbuffer_create(bufsize);
if (jd->buffer[i] == NULL)
if (!jd->buffer[i])
{
RARCH_ERR("[JACK]: Failed to create buffers.\n");
goto error;
}
}
parsed = parse_ports(dest_ports, jports);
parsed = parse_ports(device, dest_ports, jports);
if (jack_activate(jd->client) < 0)
{
@@ -229,7 +229,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency,
error:
for (i = 0; i < parsed; i++)
free(dest_ports[i]);
if (jports != NULL)
if (jports)
jack_free(jports);
free(jd);
return NULL;
@@ -334,14 +334,14 @@ static void ja_free(void *data)
jd->shutdown = true;
if (jd->client != NULL)
if (jd->client)
{
jack_deactivate(jd->client);
jack_client_close(jd->client);
}
for (i = 0; i < 2; i++)
if (jd->buffer[i] != NULL)
if (jd->buffer[i])
jack_ringbuffer_free(jd->buffer[i]);
#ifdef HAVE_THREADS
-96
View File
@@ -1,96 +0,0 @@
/* 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.
*
* 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 "../../retroarch.h"
#include "../../verbosity.h"
static void *null_audio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
RARCH_ERR("Using the null audio driver. RetroArch will be silent.\n");
(void)device;
(void)rate;
(void)latency;
(void)new_rate;
return (void*)-1;
}
static void null_audio_free(void *data)
{
(void)data;
}
static ssize_t null_audio_write(void *data, const void *buf, size_t size)
{
(void)data;
(void)buf;
return size;
}
static bool null_audio_stop(void *data)
{
(void)data;
return true;
}
static bool null_audio_alive(void *data)
{
(void)data;
return true;
}
static bool null_audio_start(void *data, bool is_shutdown)
{
(void)data;
return true;
}
static void null_audio_set_nonblock_state(void *data, bool state)
{
(void)data;
(void)state;
}
static bool null_audio_use_float(void *data)
{
(void)data;
return true;
}
static size_t null_audio_write_avail(void *data)
{
(void)data;
return 0;
}
audio_driver_t audio_null = {
null_audio_init,
null_audio_write,
null_audio_stop,
null_audio_start,
null_audio_alive,
null_audio_set_nonblock_state,
null_audio_free,
null_audio_use_float,
"null",
NULL,
NULL,
null_audio_write_avail,
NULL
};
+1 -1
View File
@@ -115,7 +115,7 @@ static void *al_init(const char *device, unsigned rate, unsigned latency,
al->buffers = (ALuint*)calloc(al->num_buffers, sizeof(ALuint));
al->res_buf = (ALuint*)calloc(al->num_buffers, sizeof(ALuint));
if (al->buffers == NULL || al->res_buf == NULL)
if (!al->buffers || !al->res_buf)
goto error;
alGenSources(1, &al->source);
+7 -9
View File
@@ -29,7 +29,8 @@
typedef struct ps2_audio
{
bool nonblocking;
/* TODO/FIXME - nonblock is not implemented */
bool nonblock;
bool running;
} ps2_audio_t;
@@ -39,11 +40,11 @@ static void audioConfigure(ps2_audio_t *ps2, unsigned rate)
int err;
struct audsrv_fmt_t format;
format.bits = AUDIO_BITS;
format.freq = rate;
format.bits = AUDIO_BITS;
format.freq = rate;
format.channels = AUDIO_CHANNELS;
err = audsrv_set_format(&format);
err = audsrv_set_format(&format);
if (err)
{
@@ -82,15 +83,12 @@ static void ps2_audio_free(void *data)
static ssize_t ps2_audio_write(void *data, const void *buf, size_t size)
{
int bytes_sent;
ps2_audio_t* ps2 = (ps2_audio_t*)data;
if (!ps2->running)
return -1;
bytes_sent = audsrv_play_audio(buf, size);
return bytes_sent;
return audsrv_play_audio(buf, size);
}
static bool ps2_audio_alive(void *data)
@@ -134,7 +132,7 @@ static void ps2_audio_set_nonblock_state(void *data, bool toggle)
ps2_audio_t* ps2 = (ps2_audio_t*)data;
if (ps2)
ps2->nonblocking = toggle;
ps2->nonblock = toggle;
}
static bool ps2_audio_use_float(void *data)
+3 -3
View File
@@ -29,7 +29,7 @@
typedef struct
{
uint32_t audio_port;
bool nonblocking;
bool nonblock;
bool started;
volatile bool quit_thread;
fifo_buffer_t *buffer;
@@ -150,7 +150,7 @@ static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
{
ps3_audio_t *aud = data;
if (aud->nonblocking)
if (aud->nonblock)
{
if (fifo_write_avail(aud->buffer) < size)
return 0;
@@ -200,7 +200,7 @@ static void ps3_audio_set_nonblock_state(void *data, bool toggle)
{
ps3_audio_t *aud = data;
if (aud)
aud->nonblocking = toggle;
aud->nonblock = toggle;
}
static void ps3_audio_free(void *data)
+7 -7
View File
@@ -44,7 +44,7 @@
typedef struct psp_audio
{
bool nonblocking;
bool nonblock;
uint32_t* buffer;
uint32_t* zeroBuffer;
@@ -167,7 +167,7 @@ static void *psp_audio_init(const char *device,
psp->cond_lock = slock_new();
psp->cond = scond_new();
psp->nonblocking = false;
psp->nonblock = false;
psp->running = true;
psp->worker_thread = sthread_create(audioMainLoop, psp);
@@ -202,18 +202,18 @@ static void psp_audio_free(void *data)
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 (psp->nonblock)
{
if (AUDIO_BUFFER_SIZE - ((uint16_t)
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
return 0;
(psp->write_pos - psp->read_pos) & AUDIO_BUFFER_SIZE_MASK) < size)
return 0;
}
slock_lock(psp->cond_lock);
@@ -287,7 +287,7 @@ static void psp_audio_set_nonblock_state(void *data, bool toggle)
{
psp_audio_t* psp = (psp_audio_t*)data;
if (psp)
psp->nonblocking = toggle;
psp->nonblock = toggle;
}
static bool psp_audio_use_float(void *data)
+1 -1
View File
@@ -45,7 +45,7 @@ static void *ra_init(const char *device, unsigned rate, unsigned latency,
(void)latency;
if ((vss = roar_vs_new_simple(device, "RetroArch", rate, 2, ROAR_CODEC_PCM_S, 16, ROAR_DIR_PLAY, &err)) == NULL)
if (!(vss = roar_vs_new_simple(device, "RetroArch", rate, 2, ROAR_CODEC_PCM_S, 16, ROAR_DIR_PLAY, &err)))
{
RARCH_ERR("RoarAudio: \"%s\"\n", roar_vs_strerr(err));
free(roar);
+1 -1
View File
@@ -165,7 +165,7 @@ static bool rs_stop(void *data)
static void rs_set_nonblock_state(void *data, bool state)
{
rsd_t *rsd = (rsd_t*)data;
rsd_t *rsd = (rsd_t*)data;
rsd->nonblock = state;
}
+22 -17
View File
@@ -32,7 +32,9 @@
static const int sample_rate = 48000;
static const int max_num_samples = sample_rate;
static const int num_channels = 2;
#ifndef HAVE_LIBNX
static const size_t sample_buffer_size = ((max_num_samples * num_channels * sizeof(uint16_t)) + 0xfff) & ~0xfff;
#endif
typedef struct
{
@@ -92,27 +94,27 @@ static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
if (!swa->current_buffer)
{
if (swa->blocking)
/* no buffer, nonblocking... */
if (!swa->blocking)
return 0;
while (!swa->current_buffer)
{
while(swa->current_buffer == NULL)
{
uint32_t handle_idx = 0;
num = 0;
#ifndef HAVE_LIBNX
uint32_t handle_idx = 0;
#endif
num = 0;
#ifdef HAVE_LIBNX
if (audoutWaitPlayFinish(&swa->current_buffer, &num, U64_MAX) != 0) { }
if (audoutWaitPlayFinish(&swa->current_buffer, &num, U64_MAX) != 0) { }
#else
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
if (switch_audio_ipc_output_get_released_buffer(swa, num) != 0)
return -1;
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;
@@ -238,7 +240,9 @@ static void *switch_audio_init(const char *device,
{
unsigned i;
char names[8][0x20];
#ifndef HAVE_LIBNX
uint32_t num_names = 0;
#endif
switch_audio_t *swa = (switch_audio_t*) calloc(1, sizeof(*swa));
if (!swa)
@@ -297,7 +301,7 @@ static void *switch_audio_init(const char *device,
swa->buffers[i].data_offset = 0;
swa->buffers[i].buffer = memalign(0x1000, switch_audio_buffer_size(NULL));
if (swa->buffers[i].buffer == NULL)
if (!swa->buffers[i].buffer)
goto fail_audio_output;
memset(swa->buffers[i].buffer, 0, switch_audio_buffer_size(NULL));
@@ -306,7 +310,7 @@ static void *switch_audio_init(const char *device,
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)
if (!swa->buffers[i].sample_data)
goto fail_audio_output;
#endif
@@ -335,8 +339,9 @@ fail_audio_output:
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
audio_ipc_output_close(&swa->output);
#endif
fail_audio_ipc:
#endif
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
audio_ipc_finalize();
+1 -1
View File
@@ -17,7 +17,7 @@ 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)
threadCreate(thread, func, data, NULL, stack_size, prio, cpu)
#define compat_thread_start(thread) \
threadStart(thread)
#define compat_thread_join(thread) \
+42 -35
View File
@@ -42,7 +42,8 @@ static const AudioRendererConfig audio_renderer_config =
.num_mix_buffers = 2,
};
typedef struct {
typedef struct
{
AudioDriver drv;
void* mempool;
AudioDriverWaveBuf wavebufs[BUFFER_COUNT];
@@ -52,10 +53,11 @@ typedef struct {
size_t buffer_size;
size_t samples;
Mutex update_lock;
bool nonblocking;
bool nonblock;
} libnx_audren_t;
static void *libnx_audren_audio_init(const char *device, unsigned rate, unsigned latency,
static void *libnx_audren_audio_init(
const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
@@ -79,14 +81,14 @@ static void *libnx_audren_audio_init(const char *device, unsigned rate, unsigned
real_latency = MAX(5, latency);
RARCH_LOG("[Audio]: real_latency is %u\n", real_latency);
aud->nonblocking = !block_frames;
aud->buffer_size = (real_latency * sample_rate / 1000);
aud->samples = (aud->buffer_size / num_channels / sizeof(int16_t));
aud->nonblock = !block_frames;
aud->buffer_size = (real_latency * sample_rate / 1000);
aud->samples = (aud->buffer_size / num_channels / sizeof(int16_t));
aud->current_size = 0;
*new_rate = sample_rate;
*new_rate = sample_rate;
mempool_size = (aud->buffer_size * BUFFER_COUNT + (AUDREN_MEMPOOL_ALIGNMENT-1)) &~ (AUDREN_MEMPOOL_ALIGNMENT-1);
aud->mempool = memalign(AUDREN_MEMPOOL_ALIGNMENT, mempool_size);
mempool_size = (aud->buffer_size * BUFFER_COUNT + (AUDREN_MEMPOOL_ALIGNMENT-1)) &~ (AUDREN_MEMPOOL_ALIGNMENT-1);
aud->mempool = memalign(AUDREN_MEMPOOL_ALIGNMENT, mempool_size);
if (!aud->mempool)
{
RARCH_ERR("[Audio]: mempool alloc failed\n");
@@ -94,14 +96,14 @@ static void *libnx_audren_audio_init(const char *device, unsigned rate, unsigned
}
rc = audrenInitialize(&audio_renderer_config);
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrenInitialize: %x\n", rc);
goto fail;
}
rc = audrvCreate(&aud->drv, &audio_renderer_config, num_channels);
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrvCreate: %x\n", rc);
goto fail_init;
@@ -123,7 +125,7 @@ static void *libnx_audren_audio_init(const char *device, unsigned rate, unsigned
audrvDeviceSinkAdd(&aud->drv, AUDREN_DEFAULT_DEVICE_NAME, num_channels, sink_channels);
rc = audrenStartAudioRenderer();
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrenStartAudioRenderer: %x\n", rc);
}
@@ -150,9 +152,7 @@ fail:
if (aud)
{
if (aud->mempool)
{
free(aud->mempool);
}
free(aud);
}
@@ -176,24 +176,25 @@ static ssize_t libnx_audren_audio_get_free_wavebuf_idx(libnx_audren_t* aud)
for (i = 0; i < BUFFER_COUNT; i++)
{
if (aud->wavebufs[i].state == AudioDriverWaveBufState_Free
if (
aud->wavebufs[i].state == AudioDriverWaveBufState_Free
|| aud->wavebufs[i].state == AudioDriverWaveBufState_Done)
{
return i;
}
}
return -1;
}
static size_t libnx_audren_audio_append(libnx_audren_t* aud, const void *buf, size_t size)
static size_t libnx_audren_audio_append(
libnx_audren_t* aud, const void *buf, size_t size)
{
void *dstbuf = NULL;
ssize_t free_idx = -1;
if(!aud->current_wavebuf)
if (!aud->current_wavebuf)
{
free_idx = libnx_audren_audio_get_free_wavebuf_idx(aud);
if(free_idx == -1)
if (free_idx == -1)
return 0;
aud->current_wavebuf = &aud->wavebufs[free_idx];
@@ -201,18 +202,16 @@ static size_t libnx_audren_audio_append(libnx_audren_t* aud, const void *buf, si
aud->current_size = 0;
}
if(size > aud->buffer_size - aud->current_size)
{
if (size > aud->buffer_size - aud->current_size)
size = aud->buffer_size - aud->current_size;
}
void *dstbuf = aud->current_pool_ptr + aud->current_size;
dstbuf = aud->current_pool_ptr + aud->current_size;
memcpy(dstbuf, buf, size);
armDCacheFlush(dstbuf, size);
aud->current_size += size;
if(aud->current_size == aud->buffer_size)
if (aud->current_size == aud->buffer_size)
{
audrvVoiceAddWaveBuf(&aud->drv, 0, aud->current_wavebuf);
@@ -231,24 +230,32 @@ static size_t libnx_audren_audio_append(libnx_audren_t* aud, const void *buf, si
return size;
}
static ssize_t libnx_audren_audio_write(void *data, const void *buf, size_t size)
static ssize_t libnx_audren_audio_write(void *data,
const void *buf, size_t size)
{
libnx_audren_t *aud = (libnx_audren_t*)data;
size_t written = 0;
size_t written = 0;
if (!aud)
return -1;
while(written < size)
if (aud->nonblock)
{
written += libnx_audren_audio_append(aud, buf + written, size - written);
if(written != size)
while(written < size)
{
if(aud->nonblocking)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
if (written != size)
break;
}
else
}
}
else
{
while(written < size)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
if (written != size)
{
mutexLock(&aud->update_lock);
audrvUpdate(&aud->drv);
@@ -341,7 +348,7 @@ static void libnx_audren_audio_set_nonblock_state(void *data, bool state)
if (!aud)
return;
aud->nonblocking = state;
aud->nonblock = state;
}
audio_driver_t audio_switch_libnx_audren = {
@@ -43,13 +43,14 @@ static const AudioRendererConfig audio_renderer_config =
.num_mix_buffers = 2,
};
typedef struct {
typedef struct
{
AudioDriver drv;
void* mempool;
AudioDriverWaveBuf wavebufs[BUFFER_COUNT];
size_t buffer_size;
size_t samples;
bool nonblocking;
bool nonblock;
fifo_buffer_t* fifo;
Mutex fifo_lock;
@@ -63,21 +64,21 @@ typedef struct {
static void thread_job(void* data)
{
libnx_audren_thread_t *aud = (libnx_audren_thread_t*)data;
size_t available = 0;
size_t current_size = 0;
size_t written_tmp = 0;
AudioDriverWaveBuf* current_wavebuf = NULL;
void* current_pool_ptr = NULL;
void* dstbuf = NULL;
unsigned i;
libnx_audren_thread_t *aud = (libnx_audren_thread_t*)data;
size_t available = 0;
size_t current_size = 0;
size_t written_tmp = 0;
AudioDriverWaveBuf* current_wavebuf = NULL;
void* current_pool_ptr = NULL;
void* dstbuf = NULL;
if (!aud)
return;
while(aud->running)
while (aud->running)
{
if(!current_wavebuf)
if (!current_wavebuf)
{
for (i = 0; i < BUFFER_COUNT; i++)
{
@@ -92,19 +93,17 @@ static void thread_job(void* data)
}
}
if(current_wavebuf)
if (current_wavebuf)
{
mutexLock(&aud->fifo_lock);
available = aud->paused ? 0 : fifo_read_avail(aud->fifo);
written_tmp = MIN(available, aud->buffer_size - current_size);
dstbuf = current_pool_ptr + current_size;
if(written_tmp > 0)
{
if (written_tmp > 0)
fifo_read(aud->fifo, dstbuf, written_tmp);
}
mutexUnlock(&aud->fifo_lock);
if(written_tmp > 0)
if (written_tmp > 0)
{
condvarWakeAll(&aud->fifo_condvar);
@@ -112,7 +111,7 @@ static void thread_job(void* data)
armDCacheFlush(dstbuf, written_tmp);
}
if(current_size == aud->buffer_size)
if (current_size == aud->buffer_size)
{
audrvVoiceAddWaveBuf(&aud->drv, 0, current_wavebuf);
@@ -157,17 +156,19 @@ static void *libnx_audren_thread_audio_init(const char *device, unsigned rate, u
goto fail;
}
real_latency = MAX(latency, 5);
real_latency = MAX(latency, 5);
RARCH_LOG("[Audio]: real_latency is %u\n", real_latency);
aud->running = true;
aud->paused = false;
aud->nonblocking = !block_frames;
aud->running = true;
aud->paused = false;
aud->nonblock = !block_frames;
aud->buffer_size = (real_latency * sample_rate / 1000);
aud->samples = (aud->buffer_size / num_channels / sizeof(int16_t));
aud->samples = (aud->buffer_size / num_channels / sizeof(int16_t));
mempool_size = (aud->buffer_size * BUFFER_COUNT +
(AUDREN_MEMPOOL_ALIGNMENT-1)) &~ (AUDREN_MEMPOOL_ALIGNMENT-1);
aud->mempool = memalign(AUDREN_MEMPOOL_ALIGNMENT, mempool_size);
mempool_size = (aud->buffer_size * BUFFER_COUNT + (AUDREN_MEMPOOL_ALIGNMENT-1)) &~ (AUDREN_MEMPOOL_ALIGNMENT-1);
aud->mempool = memalign(AUDREN_MEMPOOL_ALIGNMENT, mempool_size);
if (!aud->mempool)
{
RARCH_ERR("[Audio]: mempool alloc failed\n");
@@ -175,43 +176,44 @@ static void *libnx_audren_thread_audio_init(const char *device, unsigned rate, u
}
rc = audrenInitialize(&audio_renderer_config);
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrenInitialize: %x\n", rc);
goto fail;
}
rc = audrvCreate(&aud->drv, &audio_renderer_config, num_channels);
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrvCreate: %x\n", rc);
goto fail_init;
}
for(i = 0; i < BUFFER_COUNT; i++)
for (i = 0; i < BUFFER_COUNT; i++)
{
aud->wavebufs[i].data_raw = aud->mempool;
aud->wavebufs[i].size = mempool_size;
aud->wavebufs[i].data_raw = aud->mempool;
aud->wavebufs[i].size = mempool_size;
aud->wavebufs[i].start_sample_offset = i * aud->samples;
aud->wavebufs[i].end_sample_offset = aud->wavebufs[i].start_sample_offset + aud->samples;
aud->wavebufs[i].end_sample_offset = aud->wavebufs[i].start_sample_offset + aud->samples;
}
mpid = audrvMemPoolAdd(&aud->drv, aud->mempool, mempool_size);
audrvMemPoolAttach(&aud->drv, mpid);
audrvDeviceSinkAdd(&aud->drv, AUDREN_DEFAULT_DEVICE_NAME, num_channels, sink_channels);
audrvDeviceSinkAdd(&aud->drv, AUDREN_DEFAULT_DEVICE_NAME,
num_channels, sink_channels);
rc = audrenStartAudioRenderer();
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: audrenStartAudioRenderer: %x\n", rc);
}
audrvVoiceInit(&aud->drv, 0, num_channels, PcmFormat_Int16, sample_rate);
audrvVoiceSetDestinationMix(&aud->drv, 0, AUDREN_FINAL_MIX_ID);
for(i = 0; i < num_channels; i++)
for (i = 0; i < num_channels; i++)
{
for(j = 0; j < num_channels; j++)
for (j = 0; j < num_channels; j++)
{
audrvVoiceSetMixFactor(&aud->drv, 0, i == j ? 1.0f : 0.0f, i, j);
}
@@ -229,15 +231,17 @@ static void *libnx_audren_thread_audio_init(const char *device, unsigned rate, u
mutexInit(&aud->fifo_condlock);
svcGetThreadPriority(&thread_priority, CUR_THREAD_HANDLE);
rc = threadCreate(&aud->thread, &thread_job, (void*)aud, thread_stack_size, thread_priority - 1, thread_preferred_cpu);
if(R_FAILED(rc))
rc = threadCreate(&aud->thread, &thread_job,
(void*)aud, NULL, thread_stack_size,
thread_priority - 1, thread_preferred_cpu);
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: threadCreate: %x\n", rc);
goto fail_drv;
}
rc = threadStart(&aud->thread);
if(R_FAILED(rc))
if (R_FAILED(rc))
{
RARCH_ERR("[Audio]: threadStart: %x\n", rc);
threadClose(&aud->thread);
@@ -258,9 +262,7 @@ fail:
if (aud)
{
if (aud->mempool)
{
free(aud->mempool);
}
free(aud);
}
@@ -278,7 +280,8 @@ static size_t libnx_audren_thread_audio_buffer_size(void *data)
return aud->buffer_size;
}
static ssize_t libnx_audren_thread_audio_write(void *data, const void *buf, size_t size)
static ssize_t libnx_audren_thread_audio_write(void *data,
const void *buf, size_t size)
{
libnx_audren_thread_t *aud = (libnx_audren_thread_t*)data;
size_t available, written, written_tmp;
@@ -286,18 +289,16 @@ static ssize_t libnx_audren_thread_audio_write(void *data, const void *buf, size
if (!aud || !aud->running)
return -1;
if(aud->paused)
if (aud->paused)
return 0;
if(aud->nonblocking)
if (aud->nonblock)
{
mutexLock(&aud->fifo_lock);
available = fifo_write_avail(aud->fifo);
written = MIN(available, size);
if(written > 0)
{
if (written > 0)
fifo_write(aud->fifo, buf, written);
}
mutexUnlock(&aud->fifo_lock);
}
else
@@ -307,7 +308,7 @@ static ssize_t libnx_audren_thread_audio_write(void *data, const void *buf, size
{
mutexLock(&aud->fifo_lock);
available = fifo_write_avail(aud->fifo);
if(available)
if (available)
{
written_tmp = MIN(size - written, available);
fifo_write(aud->fifo, (const char*)buf + written, written_tmp);
@@ -419,7 +420,7 @@ static void libnx_audren_thread_audio_set_nonblock_state(void *data, bool state)
if (!aud)
return;
aud->nonblocking = state;
aud->nonblock = state;
}
audio_driver_t audio_switch_libnx_audren_thread = {
+8 -7
View File
@@ -39,7 +39,6 @@ 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
@@ -53,7 +52,7 @@ typedef struct
size_t fifoSize;
volatile bool running;
bool nonblocking;
bool nonblock;
bool is_paused;
compat_audio_out_buffer buffers[AUDIO_BUFFER_COUNT];
@@ -144,15 +143,17 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
Result rc;
unsigned i;
uint32_t prio;
#ifndef HAVE_LIBNX
char names[8][0x20];
uint32_t num_names = 0;
#endif
switch_thread_audio_t *swa = (switch_thread_audio_t *)calloc(1, sizeof(*swa));
if (!swa)
return NULL;
swa->running = true;
swa->nonblocking = true;
swa->nonblock = true;
swa->is_paused = true;
swa->latency = MAX(latency, 8);
@@ -217,7 +218,7 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
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)
if (!swa->buffers[i].buffer)
goto fail;
memset(swa->buffers[i].buffer, 0, swa->buffers[i].buffer_size);
@@ -228,7 +229,7 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
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)
if (!swa->buffers[i].sample_data)
goto fail_audio_output;
memset(swa->buffers[i].sample_data, 0, swa->buffers[i].buffer_size);
@@ -345,7 +346,7 @@ static ssize_t switch_thread_audio_write(void *data, const void *buf, size_t siz
if (!swa || !swa->running)
return 0;
if (swa->nonblocking)
if (swa->nonblock)
{
compat_mutex_lock(&swa->fifoLock);
avail = fifo_write_avail(swa->fifo);
@@ -397,7 +398,7 @@ 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;
swa->nonblock = state;
}
static bool switch_thread_audio_use_float(void *data)
+6 -6
View File
@@ -808,7 +808,7 @@ static unsigned int pcm_get_channels(const struct pcm *pcm)
* */
static const struct pcm_config * pcm_get_config(const struct pcm *pcm)
{
if (pcm == NULL)
if (!pcm)
return NULL;
return &pcm->config;
}
@@ -929,7 +929,7 @@ static int pcm_set_config(struct pcm *pcm, const struct pcm_config *config)
struct snd_pcm_sw_params sparams;
struct snd_pcm_hw_params params;
if (pcm == NULL)
if (!pcm)
return -EFAULT;
if (config)
@@ -1293,7 +1293,7 @@ static int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail,
*/
static int pcm_is_ready(const struct pcm *pcm)
{
if (pcm != NULL)
if (pcm)
return pcm->fd >= 0;
return 0;
}
@@ -1582,7 +1582,7 @@ static const struct pcm_mask *pcm_params_get_mask(const struct pcm_params *pcm_p
{
int p;
struct snd_pcm_hw_params *params = (struct snd_pcm_hw_params *)pcm_params;
if (params == NULL)
if (!params)
return NULL;
p = pcm_param_to_alsa(param);
@@ -2185,7 +2185,7 @@ static void * tinyalsa_init(const char *devicestr, unsigned rate,
RARCH_LOG("[TINYALSA]: Using card: %u, device: %u.\n", card, device);
tinyalsa->params = pcm_params_get(card, device, PCM_OUT);
if (tinyalsa->params == NULL)
if (!tinyalsa->params)
{
RARCH_ERR("[TINYALSA]: params: Cannot open audio device.\n");
goto error;
@@ -2224,7 +2224,7 @@ static void * tinyalsa_init(const char *devicestr, unsigned rate,
tinyalsa->pcm = pcm_open(card, device, PCM_OUT, &config);
if (tinyalsa->pcm == NULL)
if (!tinyalsa->pcm)
{
RARCH_ERR("[TINYALSA]: Failed to allocate memory for pcm.\n");
goto error;
+111 -65
View File
@@ -29,7 +29,7 @@
typedef struct
{
bool exclusive;
bool blocking;
bool nonblock;
bool running;
size_t frame_size; /* 4 or 8 only */
size_t engine_buffer_size;
@@ -491,13 +491,14 @@ static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
BYTE *dest = NULL;
settings_t *settings = config_get_ptr();
bool float_format = settings->bools.audio_wasapi_float_format;
bool exclusive_mode = settings->bools.audio_wasapi_exclusive_mode;
int sh_buffer_length = settings->ints.audio_wasapi_sh_buffer_length;
wasapi_t *w = (wasapi_t*)calloc(1, sizeof(wasapi_t));
if (!w)
return NULL;
w->exclusive = settings->bools.audio_wasapi_exclusive_mode;
w->exclusive = exclusive_mode;
w->device = wasapi_init_device(dev_id);
if (!w->device && dev_id)
w->device = wasapi_init_device(NULL);
@@ -575,7 +576,7 @@ static void *wasapi_init(const char *dev_id, unsigned rate, unsigned latency,
if (FAILED(hr))
goto error;
w->running = true;
w->blocking = settings->bools.audio_sync;
w->nonblock = !settings->bools.audio_sync;
return w;
@@ -596,16 +597,15 @@ static bool wasapi_flush(wasapi_t * w, const void * data, size_t size)
{
BYTE *dest = NULL;
UINT32 frame_count = size / w->frame_size;
HRESULT hr = _IAudioRenderClient_GetBuffer(
w->renderer, frame_count, &dest);
if (FAILED(hr))
if (FAILED(_IAudioRenderClient_GetBuffer(
w->renderer, frame_count, &dest)))
return false;
memcpy(dest, data, size);
hr = _IAudioRenderClient_ReleaseBuffer(
w->renderer, frame_count,
0);
if (FAILED(hr))
if (FAILED(_IAudioRenderClient_ReleaseBuffer(
w->renderer, frame_count,
0)))
return false;
return true;
@@ -615,25 +615,76 @@ static bool wasapi_flush_buffer(wasapi_t * w, size_t size)
{
BYTE *dest = NULL;
UINT32 frame_count = size / w->frame_size;
HRESULT hr = _IAudioRenderClient_GetBuffer(
w->renderer, frame_count, &dest);
if (FAILED(hr))
if (FAILED(_IAudioRenderClient_GetBuffer(
w->renderer, frame_count, &dest)))
return false;
fifo_read(w->buffer, dest, size);
hr = _IAudioRenderClient_ReleaseBuffer(
if (FAILED(_IAudioRenderClient_ReleaseBuffer(
w->renderer, frame_count,
0);
if (FAILED(hr))
0)))
return false;
return true;
}
static ssize_t wasapi_write_sh_buffer(wasapi_t *w, const void * data, size_t size)
{
ssize_t written = -1;
UINT32 padding = 0;
size_t write_avail = fifo_write_avail(w->buffer);
if (!write_avail)
{
size_t read_avail = 0;
if (!(WaitForSingleObject(w->write_event, INFINITE) == WAIT_OBJECT_0))
return -1;
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
read_avail = fifo_read_avail(w->buffer);
write_avail = w->engine_buffer_size - padding * w->frame_size;
written = read_avail < write_avail ? read_avail : write_avail;
if (written)
if (!wasapi_flush_buffer(w, written))
return -1;
}
write_avail = fifo_write_avail(w->buffer);
written = size < write_avail ? size : write_avail;
if (written)
fifo_write(w->buffer, data, written);
return written;
}
static ssize_t wasapi_write_sh(wasapi_t *w, const void * data, size_t size)
{
DWORD ir;
HRESULT hr;
size_t write_avail = 0;
ssize_t written = -1;
UINT32 padding = 0;
if (!(WaitForSingleObject(w->write_event, INFINITE) == WAIT_OBJECT_0))
return -1;
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
write_avail = w->engine_buffer_size - padding * w->frame_size;
if (!write_avail)
return 0;
written = size < write_avail ? size : write_avail;
if (written)
if (!wasapi_flush(w, data, written))
return -1;
return written;
}
static ssize_t wasapi_write_sh_nonblock(wasapi_t *w, const void * data, size_t size)
{
size_t write_avail = 0;
ssize_t written = -1;
UINT32 padding = 0;
@@ -644,16 +695,7 @@ static ssize_t wasapi_write_sh(wasapi_t *w, const void * data, size_t size)
if (!write_avail)
{
size_t read_avail = 0;
if (w->blocking)
{
ir = WaitForSingleObject(w->write_event, INFINITE);
if (!(ir == WAIT_OBJECT_0))
return -1;
}
hr = _IAudioClient_GetCurrentPadding(w->client, &padding);
if (FAILED(hr))
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
read_avail = fifo_read_avail(w->buffer);
@@ -671,19 +713,10 @@ static ssize_t wasapi_write_sh(wasapi_t *w, const void * data, size_t size)
}
else
{
if (w->blocking)
{
ir = WaitForSingleObject(w->write_event, INFINITE);
if (!(ir == WAIT_OBJECT_0))
return -1;
}
hr = _IAudioClient_GetCurrentPadding(w->client, &padding);
if (FAILED(hr))
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
write_avail = w->engine_buffer_size - padding * w->frame_size;
if (!write_avail)
if (!(write_avail = w->engine_buffer_size - padding * w->frame_size))
return 0;
written = size < write_avail ? size : write_avail;
@@ -695,21 +728,15 @@ static ssize_t wasapi_write_sh(wasapi_t *w, const void * data, size_t size)
return written;
}
static ssize_t wasapi_write_ex(wasapi_t *w, const void * data, size_t size)
static ssize_t wasapi_write_ex(wasapi_t *w, const void * data, size_t size, DWORD ms)
{
ssize_t written = 0;
size_t write_avail = fifo_write_avail(w->buffer);
if (!write_avail)
{
DWORD ir = WaitForSingleObject(
w->write_event, w->blocking ? INFINITE : 0);
if (ir != WAIT_OBJECT_0)
{
if (w->blocking)
return -1;
return 0;
}
if (WaitForSingleObject(w->write_event, ms) != WAIT_OBJECT_0)
return -1;
if (!wasapi_flush_buffer(w, w->engine_buffer_size))
return -1;
@@ -725,26 +752,48 @@ static ssize_t wasapi_write_ex(wasapi_t *w, const void * data, size_t size)
static ssize_t wasapi_write(void *wh, const void *data, size_t size)
{
size_t written;
wasapi_t *w = (wasapi_t*)wh;
size_t written = 0;
wasapi_t *w = (wasapi_t*)wh;
if (w->blocking)
if (w->nonblock)
{
if (w->exclusive)
return wasapi_write_ex(w, data, size, 0);
return wasapi_write_sh_nonblock(w, data, size);
}
if (w->exclusive)
{
ssize_t ir;
for (written = 0, ir = -1; written < size; written += ir)
for (ir = -1; written < size; written += ir)
{
if (w->exclusive)
ir = wasapi_write_ex(w, (char*)data + written, size - written);
else
ir = wasapi_write_sh(w, (char*)data + written, size - written);
ir = wasapi_write_ex(w, (char*)data + written, size - written, INFINITE);
if (ir == -1)
return -1;
}
}
else if (w->exclusive)
written = wasapi_write_ex(w, data, size);
else
written = wasapi_write_sh(w, data, size);
{
ssize_t ir;
if (w->buffer)
{
for (ir = -1; written < size; written += ir)
{
ir = wasapi_write_sh_buffer(w, (char*)data + written, size - written);
if (ir == -1)
return -1;
}
}
else
{
for (ir = -1; written < size; written += ir)
{
ir = wasapi_write_sh(w, (char*)data + written, size - written);
if (ir == -1)
return -1;
}
}
}
return written;
}
@@ -752,8 +801,7 @@ static ssize_t wasapi_write(void *wh, const void *data, size_t size)
static bool wasapi_stop(void *wh)
{
wasapi_t *w = (wasapi_t*)wh;
HRESULT hr = _IAudioClient_Stop(w->client);
if (FAILED(hr))
if (FAILED(_IAudioClient_Stop(w->client)))
return !w->running;
w->running = false;
@@ -790,7 +838,7 @@ static void wasapi_set_nonblock_state(void *wh, bool nonblock)
RARCH_LOG("[WASAPI]: Sync %s.\n", nonblock ? "off" : "on");
w->blocking = !nonblock;
w->nonblock = nonblock;
}
static void wasapi_free(void *wh)
@@ -838,15 +886,13 @@ static void wasapi_device_list_free(void *u, void *slp)
static size_t wasapi_write_avail(void *wh)
{
HRESULT hr;
wasapi_t *w = (wasapi_t*)wh;
UINT32 padding = 0;
if (w->buffer)
return fifo_write_avail(w->buffer);
hr = _IAudioClient_GetCurrentPadding(w->client, &padding);
if (FAILED(hr))
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return 0;
return w->engine_buffer_size - padding * w->frame_size;
+43 -39
View File
@@ -31,7 +31,7 @@ typedef struct
AXMVoice* mvoice;
uint16_t* buffer_l;
uint16_t* buffer_r;
bool nonblocking;
bool nonblock;
uint32_t pos;
uint32_t written;
@@ -56,17 +56,19 @@ typedef struct
static volatile ax_audio_t *wiiu_cb_ax = NULL;
void wiiu_ax_callback(void)
{
ax_audio_t *ax = NULL;
/*possibly called before unregister */
if(wiiu_cb_ax == NULL)
if (!wiiu_cb_ax)
return;
ax_audio_t *ax = (ax_audio_t*)wiiu_cb_ax;
if(AXIsMultiVoiceRunning(ax->mvoice))
ax = (ax_audio_t*)wiiu_cb_ax;
if (AXIsMultiVoiceRunning(ax->mvoice))
{
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
if (OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
{
/* Buffer underrun, stop playback to let it fill up */
if(ax->written < AX_AUDIO_SAMPLE_MIN)
if (ax->written < AX_AUDIO_SAMPLE_MIN)
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_STOPPED);
ax->written -= AX_AUDIO_SAMPLE_COUNT;
OSUninterruptibleSpinLock_Release(&ax->spinlock);
@@ -100,7 +102,7 @@ static void* ax_audio_init(const char* device, unsigned rate, unsigned latency,
return NULL;
}
ax->buffer_l = MEM1_alloc(AX_AUDIO_SIZE, 0x100);
ax->buffer_l = MEM1_alloc(AX_AUDIO_SIZE, 0x100);
ax->buffer_r = MEM1_alloc(AX_AUDIO_SIZE, 0x100);
memset(ax->buffer_l,0,AX_AUDIO_SIZE);
memset(ax->buffer_r,0,AX_AUDIO_SIZE);
@@ -166,9 +168,9 @@ static bool ax_audio_stop(void* data)
static int ax_audio_limit(int in)
{
if(in < 0)
if (in < 0)
in += AX_AUDIO_COUNT;
else if(in >= AX_AUDIO_COUNT)
else if (in >= AX_AUDIO_COUNT)
in -= AX_AUDIO_COUNT;
return in;
}
@@ -183,57 +185,58 @@ static bool ax_audio_start(void* data, bool is_shutdown)
return true;
/* Set back to playing on enough buffered data */
if(ax->written > AX_AUDIO_SAMPLE_LOAD)
if (ax->written > AX_AUDIO_SAMPLE_LOAD)
{
AXSetMultiVoiceCurrentOffset(ax->mvoice, ax_audio_limit(ax->pos - ax->written));
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_PLAYING);
}
return true;
}
static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
{
uint32_t i;
size_t countAvail = 0;
size_t count_avail = 0;
ax_audio_t* ax = (ax_audio_t*)data;
const uint16_t* src = buf;
size_t count = size >> 2;
if(!size || (size & 0x3))
if (!size || (size & 0x3))
return 0;
if(count > AX_AUDIO_MAX_FREE)
if (count > AX_AUDIO_MAX_FREE)
count = AX_AUDIO_MAX_FREE;
countAvail = ((ax->written > AX_AUDIO_MAX_FREE) ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
count_avail = ((ax->written > AX_AUDIO_MAX_FREE) ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
if (ax->nonblocking)
if (ax->nonblock)
{
/* Not enough available for 3ms of data */
if(countAvail < AX_AUDIO_SAMPLE_COUNT)
if (count_avail < AX_AUDIO_SAMPLE_COUNT)
count = 0;
}
else if(countAvail < count)
else if (count_avail < count)
{
/* Sync, wait for free memory */
while(AXIsMultiVoiceRunning(ax->mvoice) && (countAvail < count))
while(AXIsMultiVoiceRunning(ax->mvoice) && (count_avail < count))
{
OSYieldThread(); /* Gives threads with same priority time to run */
countAvail = (ax->written > AX_AUDIO_MAX_FREE ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
count_avail = (ax->written > AX_AUDIO_MAX_FREE ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
}
}
/* Over available space, do as much as possible */
if(count > countAvail)
count = countAvail;
if (count > count_avail)
count = count_avail;
/* make sure we have input size */
if(count > 0)
if (count > 0)
{
/* write in new data */
size_t startPos = ax->pos;
int flushP2needed = 0;
int flushP2 = 0;
size_t start_pos = ax->pos;
int flush_p2_needed = 0;
int flush_p2 = 0;
for (i = 0; i < (count << 1); i += 2)
{
@@ -242,30 +245,31 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
ax->pos = ax_audio_limit(ax->pos + 1);
/* wrapped around, make sure to store cache */
if(ax->pos == 0)
if (ax->pos == 0)
{
flushP2needed = 1;
flushP2 = ((count << 1) - i);
DCStoreRangeNoSync(ax->buffer_l+startPos, (AX_AUDIO_COUNT-startPos) << 1);
DCStoreRangeNoSync(ax->buffer_r+startPos, (AX_AUDIO_COUNT-startPos) << 1);
flush_p2_needed = 1;
flush_p2 = ((count << 1) - i);
DCStoreRangeNoSync(ax->buffer_l + start_pos,
(AX_AUDIO_COUNT - start_pos) << 1);
DCStoreRangeNoSync(ax->buffer_r + start_pos, (AX_AUDIO_COUNT - start_pos) << 1);
}
}
/* standard cache store case */
if(!flushP2needed)
if (!flush_p2_needed)
{
DCStoreRangeNoSync(ax->buffer_l+startPos, count << 1);
DCStoreRange(ax->buffer_r+startPos, count << 1);
DCStoreRangeNoSync(ax->buffer_l + start_pos, count << 1);
DCStoreRange(ax->buffer_r + start_pos, count << 1);
}
/* store the rest after wrap */
else if(flushP2 > 0)
else if (flush_p2 > 0)
{
DCStoreRangeNoSync(ax->buffer_l, flushP2);
DCStoreRange(ax->buffer_r, flushP2);
DCStoreRangeNoSync(ax->buffer_l, flush_p2);
DCStoreRange(ax->buffer_r, flush_p2);
}
/* add in new audio data */
if(OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
if (OSUninterruptibleSpinLock_Acquire(&ax->spinlock))
{
ax->written += count;
OSUninterruptibleSpinLock_Release(&ax->spinlock);
@@ -276,7 +280,7 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
*
* checks if it can be started
*/
if(!AXIsMultiVoiceRunning(ax->mvoice))
if (!AXIsMultiVoiceRunning(ax->mvoice))
ax_audio_start(ax, false);
/* return what was actually copied */
@@ -294,7 +298,7 @@ static void ax_audio_set_nonblock_state(void* data, bool state)
ax_audio_t* ax = (ax_audio_t*)data;
if (ax)
ax->nonblocking = state;
ax->nonblock = state;
}
static bool ax_audio_use_float(void* data)
-1
View File
@@ -20,7 +20,6 @@
#endif
#endif
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
+8 -7
View File
@@ -869,26 +869,27 @@ static INLINE HRESULT XAudio2Create(_Outptr_ IXAudio2** ppXAudio2,
typedef HRESULT(__stdcall *XAudio2CreateWithVersionInfoFunc)(_Outptr_ IXAudio2**, UINT32, XAUDIO2_PROCESSOR, DWORD);
typedef HRESULT(__stdcall *XAudio2CreateInfoFunc)(_Outptr_ IXAudio2**, UINT32, XAUDIO2_PROCESSOR);
static HMODULE s_dllInstance = NULL;
static XAudio2CreateWithVersionInfoFunc s_pfnAudio2CreateWithVersion = NULL;
static XAudio2CreateWithVersionInfoFunc
s_pfnAudio2CreateWithVersion = NULL;
static XAudio2CreateInfoFunc s_pfnAudio2Create = NULL;
static HMODULE s_dllInstance = NULL;
if (s_dllInstance == NULL)
if (!s_dllInstance)
{
s_dllInstance = LoadLibraryEx(XAUDIO2_DLL, NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (s_dllInstance == NULL)
if (!s_dllInstance)
return HRESULT_FROM_WIN32(GetLastError());
s_pfnAudio2CreateWithVersion = (XAudio2CreateWithVersionInfoFunc)(void*)GetProcAddress(s_dllInstance, "XAudio2CreateWithVersionInfo");
if (s_pfnAudio2CreateWithVersion == NULL)
if (!s_pfnAudio2CreateWithVersion)
{
s_pfnAudio2Create = (XAudio2CreateInfoFunc)(void*)GetProcAddress(s_dllInstance, "XAudio2Create");
if (s_pfnAudio2Create == NULL)
if (!s_pfnAudio2Create)
return HRESULT_FROM_WIN32(GetLastError());
}
}
if (s_pfnAudio2CreateWithVersion != NULL)
if (s_pfnAudio2CreateWithVersion)
return (*s_pfnAudio2CreateWithVersion)(ppXAudio2, Flags, XAudio2Processor, NTDDI_VERSION);
return (*s_pfnAudio2Create)(ppXAudio2, Flags, XAudio2Processor);
}
+9 -9
View File
@@ -66,7 +66,15 @@ static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size)
for (i = 0; i < (size >> 2); i++)
xa->buffer[i] = bswap_32(in_buf[i]);
if (!xa->nonblock)
if (xa->nonblock)
{
if (xenon_sound_get_unplayed() < MAX_BUFFER)
{
xenon_sound_submit(xa->buffer, size);
written = size;
}
}
else
{
while (xenon_sound_get_unplayed() >= MAX_BUFFER)
{
@@ -78,14 +86,6 @@ static ssize_t xenon360_audio_write(void *data, const void *buf, size_t size)
xenon_sound_submit(xa->buffer, size);
written = size;
}
else
{
if (xenon_sound_get_unplayed() < MAX_BUFFER)
{
xenon_sound_submit(xa->buffer, size);
written = size;
}
}
return written;
}
+7 -7
View File
@@ -234,7 +234,7 @@ static int rsnd_connect_server( rsound_t *rd )
if (!isdigit(rd->host[0]))
{
struct hostent *host = gethostbyname(rd->host);
if (host == NULL)
if (!host)
return -1;
addr.sin_addr.s_addr = inet_addr(host->h_addr_list[0]);
@@ -295,7 +295,7 @@ static int rsnd_send_header_info(rsound_t *rd)
/* Defines the size of a wave header */
#define HEADER_SIZE 44
char *header = calloc(1, HEADER_SIZE);
if (header == NULL)
if (!header)
{
RSD_ERR("[RSound] Could not allocate memory.");
return -1;
@@ -472,7 +472,7 @@ static int rsnd_get_backend_info ( rsound_t *rd )
if ( rd->fifo_buffer != NULL )
fifo_free(rd->fifo_buffer);
rd->fifo_buffer = fifo_new (rd->buffer_size);
if ( rd->fifo_buffer == NULL )
if (!rd->fifo_buffer)
{
RSD_ERR("[RSound] Failed to create FIFO buffer.\n");
return -1;
@@ -963,7 +963,7 @@ static int rsnd_close_ctl(rsound_t *rd)
return -1;
subchar = strrchr(buf, 'R');
if ( subchar == NULL )
if (!subchar)
index = 0;
else
{
@@ -1023,7 +1023,7 @@ static int rsnd_update_server_info(rsound_t *rd)
temp[RSD_PROTO_CHUNKSIZE] = '\0';
if ( (substr = strstr(temp, "RSD")) == NULL )
if (!(substr = strstr(temp, "RSD")))
return -1;
// Jump over "RSD" in header
@@ -1038,7 +1038,7 @@ static int rsnd_update_server_info(rsound_t *rd)
// We only bother if this is an INFO message.
substr = strstr(temp, "INFO");
if ( substr == NULL )
if (!substr)
continue;
// Jump over "INFO" in header
@@ -1548,7 +1548,7 @@ int rsd_pause(rsound_t* rsound, int enable)
int rsd_init(rsound_t** rsound)
{
*rsound = calloc(1, sizeof(rsound_t));
if ( *rsound == NULL )
if (*rsound == NULL)
return -1;
retro_assert(rsound != NULL);
+11 -4
View File
@@ -4,9 +4,11 @@
#include <psp2/kernel/sysmem.h>
#include <psp2/kernel/threadmgr.h>
static int _newlib_heap_memblock;
static unsigned _newlib_heap_size;
static char *_newlib_heap_base, *_newlib_heap_end, *_newlib_heap_cur;
#define RAM_THRESHOLD 0x1000000 // Memory left to the system for threads and other internal stuffs
int _newlib_heap_memblock;
unsigned _newlib_heap_size;
char *_newlib_heap_base, *_newlib_heap_end, *_newlib_heap_cur;
static char _newlib_sbrk_mutex[32] __attribute__ ((aligned (8)));
static int _newlib_vm_memblock;
@@ -50,11 +52,16 @@ void _init_vita_heap(void) {
if (sceKernelCreateLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, "sbrk mutex", 0, 0, 0) < 0) {
goto failure;
}
// Always allocating the max avaliable USER_RW mem on the system
SceKernelFreeMemorySizeInfo info;
info.size = sizeof(SceKernelFreeMemorySizeInfo);
sceKernelGetFreeMemorySize(&info);
if (&_newlib_heap_size_user != NULL) {
_newlib_heap_size = _newlib_heap_size_user;
}else{
_newlib_heap_size = 192 * 1024 * 1024;
_newlib_heap_size = info.size_user - RAM_THRESHOLD;
}
_newlib_heap_size -= _newlib_vm_size;
+1 -1
View File
@@ -57,7 +57,7 @@ static void *android_camera_init(const char *device, uint64_t caps,
goto dealloc;
GET_OBJECT_CLASS(env, class, android_app->activity->clazz);
if (class == NULL)
if (!class)
goto dealloc;
GET_METHOD_ID(env, androidcamera->onCameraInit, class,
-60
View File
@@ -1,60 +0,0 @@
/* 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.
*
* 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 "../../retroarch.h"
static void *nullcamera_init(const char *device, uint64_t caps,
unsigned width, unsigned height)
{
(void)device;
return (void*)-1;
}
static void nullcamera_free(void *data)
{
(void)data;
}
static bool nullcamera_start(void *data)
{
(void)data;
return true;
}
static void nullcamera_stop(void *data)
{
(void)data;
}
static bool nullcamera_poll(void *data,
retro_camera_frame_raw_framebuffer_t frame_raw_cb,
retro_camera_frame_opengl_texture_t frame_gl_cb)
{
(void)data;
(void)frame_raw_cb;
(void)frame_gl_cb;
return true;
}
camera_driver_t camera_null = {
nullcamera_init,
nullcamera_free,
nullcamera_start,
nullcamera_stop,
nullcamera_poll,
"null",
};
+51 -41
View File
@@ -14,60 +14,70 @@
*/
#include <file/file_path.h>
#include <string/stdstring.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 "../gfx/gfx_display.h"
#include "badges.h"
badges_ctx_t badges_ctx;
bool badge_exists(const char* filepath)
{
return path_is_valid(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, NULL, NULL);
#endif
}
void set_badge_info (badges_ctx_t *badge_struct, int id,
const char *badge_id, bool active)
#define CHEEVOS_MENU_BADGE_LIMIT 256
static uintptr_t cheevos_badge_menu_texture_list[CHEEVOS_MENU_BADGE_LIMIT] = { 0 };
void cheevos_reset_menu_badges(void)
{
if (!badge_struct)
return;
int index;
for (index = 0; index < CHEEVOS_MENU_BADGE_LIMIT; ++index)
{
if (cheevos_badge_menu_texture_list[index])
video_driver_texture_unload(&cheevos_badge_menu_texture_list[index]);
}
badge_struct->badge_id_list[id] = badge_id;
badge_struct->badge_locked[id] = active;
set_badge_menu_texture(badge_struct, id);
memset(&cheevos_badge_menu_texture_list, 0, sizeof(cheevos_badge_menu_texture_list));
}
menu_texture_item get_badge_texture(int id)
void cheevos_set_menu_badge(int index, const char *badge, bool locked)
{
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];
if (index >= CHEEVOS_MENU_BADGE_LIMIT)
return;
if (!settings || !settings->bools.cheevos_badges_enable)
cheevos_badge_menu_texture_list[index] = 0;
else
cheevos_badge_menu_texture_list[index] = cheevos_get_badge_texture(badge, locked);
}
uintptr_t cheevos_get_menu_badge_texture(int index)
{
if (index < CHEEVOS_MENU_BADGE_LIMIT)
return cheevos_badge_menu_texture_list[index];
return 0;
}
#endif
uintptr_t cheevos_get_badge_texture(const char *badge, bool locked)
{
char badge_file[24];
char fullpath[PATH_MAX_LENGTH];
uintptr_t tex;
if (!badge)
return 0;
snprintf(badge_file, sizeof(badge_file), "%s%s.png", badge, locked ? "_lock" : "");
fill_pathname_application_special(fullpath,
PATH_MAX_LENGTH * sizeof(char),
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
gfx_display_reset_textures_list(badge_file, fullpath,
&tex, TEXTURE_FILTER_MIPMAP_LINEAR, NULL, NULL);
return tex;
}
+8 -17
View File
@@ -16,28 +16,19 @@
#ifndef __RARCH_CHEEVOS_BADGE_H
#define __RARCH_CHEEVOS_BADGE_H
#include <stdint.h>
#include <retro_common_api.h>
#include "../menu/menu_driver.h"
#include <boolean.h>
RETRO_BEGIN_DECLS
#define CHEEVOS_BADGE_LIMIT 256
#ifdef HAVE_MENU
void cheevos_reset_menu_badges(void);
void cheevos_set_menu_badge(int index, const char *badge, bool locked);
uintptr_t cheevos_get_menu_badge_texture(int index);
#endif
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;
uintptr_t cheevos_get_badge_texture(const char* badge, bool locked);
RETRO_END_DECLS
+1369 -486
View File
File diff suppressed because it is too large. Load diff
+5
View File
@@ -45,6 +45,7 @@ bool rcheevos_load(const void *data);
void rcheevos_reset_game(void);
void rcheevos_populate_menu(void *data);
void rcheevos_get_achievement_state(unsigned index, char* buffer, size_t buffer_size);
bool rcheevos_get_description(rcheevos_ctx_desc_t *desc);
@@ -64,6 +65,10 @@ bool rcheevos_get_support_cheevos(void);
int rcheevos_get_console(void);
const char* rcheevos_get_hash(void);
const char *rcheevos_get_richpresence(void);
extern bool rcheevos_loaded;
extern bool rcheevos_hardcore_active;
extern bool rcheevos_hardcore_paused;
+46 -9
View File
@@ -124,6 +124,7 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console)
{
rarch_system_info_t* system = runloop_get_system_info();
const void* pointer = NULL;
unsigned original_address = address;
if (console == RC_CONSOLE_NINTENDO)
{
@@ -168,9 +169,30 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console)
}
else if (console == RC_CONSOLE_PC_ENGINE)
{
/* RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "PCE memory address %X adjusted to %X\n", address, address + 0x1f0000);
address += 0x1f0000;
if (address < 0x002000)
{
/* RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "PCE memory address %X adjusted to %X\n", address, address + 0x1f0000);
address += 0x1f0000;
}
else if (address < 0x012000)
{
/* CD-ROM RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "PCE memory address %X adjusted to %X\n", address, address + 0x100000 - 0x002000);
address += 0x100000 - 0x002000;
}
else if (address < 0x042000)
{
/* Super System Card RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "PCE memory address %X adjusted to %X\n", address, address + 0x0d0000 - 0x012000);
address += 0x0d0000 - 0x012000;
}
else
{
/* CD-ROM battery backed RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "PCE memory address %X adjusted to %X\n", address, address + 0x1ee000 - 0x042000);
address += 0x1ee000 - 0x042000;
}
}
else if (console == RC_CONSOLE_SUPER_NINTENDO)
{
@@ -187,6 +209,21 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console)
address += 0x006000 - 0x020000;
}
}
else if (console == RC_CONSOLE_SEGA_CD)
{
if (address < 0x010000)
{
/* Work RAM. */
address += 0xFF0000;
CHEEVOS_LOG(RCHEEVOS_TAG "Sega CD memory address %X adjusted to %X\n", original_address, address);
}
else
{
/* CD-ROM peripheral RAM - exposed at virtual address to avoid banking */
address += 0x80020000 - 0x010000;
CHEEVOS_LOG(RCHEEVOS_TAG "Sega CD memory address %X adjusted to %X\n", original_address, address);
}
}
desc = system->mmaps.descriptors;
end = desc + system->mmaps.num_descriptors;
@@ -195,19 +232,18 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console)
{
if (((desc->core.start ^ address) & desc->core.select) == 0)
{
unsigned addr = address;
pointer = desc->core.ptr;
pointer = desc->core.ptr;
address -= desc->core.start;
address = (unsigned)rcheevos_var_reduce(
(addr - desc->core.start) & desc->disconnect_mask,
desc->core.disconnect);
if (desc->disconnect_mask)
address = (unsigned)rcheevos_var_reduce(address & desc->disconnect_mask, desc->core.disconnect);
if (address >= desc->core.len)
address -= rcheevos_var_highest_bit(address);
address += desc->core.offset;
CHEEVOS_LOG(RCHEEVOS_TAG "address %X set to descriptor %d at offset %X\n", addr, (int)((desc - system->mmaps.descriptors) + 1), address);
CHEEVOS_LOG(RCHEEVOS_TAG "address %X set to descriptor %d at offset %X\n", original_address, (int)((desc - system->mmaps.descriptors) + 1), address);
break;
}
}
@@ -257,6 +293,7 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console)
if (pointer == NULL)
{
CHEEVOS_LOG(RCHEEVOS_TAG "address %X not supported\n", original_address);
return NULL;
}
+129 -21
View File
@@ -3,6 +3,7 @@
#include "hash.h"
#include "util.h"
#include <encodings/utf.h>
#include <formats/jsonsax.h>
#include <string/stdstring.h>
#include <compat/strl.h>
@@ -23,6 +24,7 @@
#define CHEEVOS_JSON_KEY_TOKEN 0x0e2dbd26U
#define CHEEVOS_JSON_KEY_FLAGS 0x0d2e96b2U
#define CHEEVOS_JSON_KEY_LEADERBOARDS 0xf1247d2dU
#define CHEEVOS_JSON_KEY_RICHPRESENCE 0xf18dd230U
#define CHEEVOS_JSON_KEY_MEM 0x0b8807e4U
#define CHEEVOS_JSON_KEY_FORMAT 0xb341208eU
#define CHEEVOS_JSON_KEY_SUCCESS 0x110461deU
@@ -139,7 +141,7 @@ static int rcheevos_get_value(const char* json, unsigned key_hash,
}
/*****************************************************************************
Returns the token of the error message
Returns the token or the error message
*****************************************************************************/
int rcheevos_get_token(const char* json, char* token, size_t length)
@@ -152,6 +154,11 @@ int rcheevos_get_token(const char* json, char* token, size_t length)
return rcheevos_get_value(json, CHEEVOS_JSON_KEY_TOKEN, token, length);
}
int rcheevos_get_json_error(const char* json, char* token, size_t length)
{
return rcheevos_get_value(json, CHEEVOS_JSON_KEY_ERROR, token, length);
}
/*****************************************************************************
Count number of achievements in a JSON file
*****************************************************************************/
@@ -160,6 +167,7 @@ typedef struct
{
int in_cheevos;
int in_lboards;
int has_error;
uint32_t field_hash;
unsigned core_count;
unsigned unofficial_count;
@@ -183,9 +191,11 @@ static int rcheevos_count_key(void* userdata,
ud->field_hash = rcheevos_djb2(name, length);
if (ud->field_hash == CHEEVOS_JSON_KEY_ACHIEVEMENTS)
ud->in_cheevos = 1;
ud->in_cheevos = 1;
else if (ud->field_hash == CHEEVOS_JSON_KEY_LEADERBOARDS)
ud->in_lboards = 1;
ud->in_lboards = 1;
else if (ud->field_hash == CHEEVOS_JSON_KEY_ERROR)
ud->has_error = 1;
return 0;
}
@@ -212,7 +222,7 @@ static int rcheevos_count_number(void* userdata,
static int rcheevos_count_cheevos(const char* json,
unsigned* core_count, unsigned* unofficial_count,
unsigned* lboard_count)
unsigned* lboard_count, int* has_error)
{
static const jsonsax_handlers_t handlers =
{
@@ -234,6 +244,7 @@ static int rcheevos_count_cheevos(const char* json,
rcheevos_countud_t ud;
ud.in_cheevos = 0;
ud.in_lboards = 0;
ud.has_error = 0;
ud.core_count = 0;
ud.unofficial_count = 0;
ud.lboard_count = 0;
@@ -243,6 +254,7 @@ static int rcheevos_count_cheevos(const char* json,
*core_count = ud.core_count;
*unofficial_count = ud.unofficial_count;
*lboard_count = ud.lboard_count;
*has_error = ud.has_error;
return res;
}
@@ -261,7 +273,10 @@ typedef struct
{
int in_cheevos;
int in_lboards;
int is_game_id;
int is_title;
int is_console_id;
int is_richpresence;
unsigned core_count;
unsigned unofficial_count;
unsigned lboard_count;
@@ -273,16 +288,77 @@ typedef struct
rcheevos_rapatchdata_t* patchdata;
} rcheevos_readud_t;
static const char* rcheevos_dupstr(const rcheevos_field_t* field)
static char* rcheevos_unescape_string(const char* string, size_t length)
{
char* string = (char*)malloc(field->length + 1);
const char* end = string + length;
char* buffer = (char*)malloc(length + 1);
char* buffer_it = buffer;
if (!string)
if (buffer == NULL)
return NULL;
memcpy((void*)string, (void*)field->string, field->length);
string[field->length] = 0;
return string;
while (string < end)
{
if (*string == '\\')
{
char escaped_char = string[1];
switch (escaped_char)
{
case 'r': /* Ignore carriage return */
string += 2;
break;
case 'n': /* Accept newlines */
*buffer_it++ = '\n';
string += 2;
break;
case 'u': /* Accept UTF-16 unicode characters */
{
#define MAX_SEQUENCES 16
uint16_t utf16[MAX_SEQUENCES];
char utf8[MAX_SEQUENCES * 4];
uint8_t i, j;
for (i = 1; i < MAX_SEQUENCES - 1; i++)
if (strncmp((string + 6 * i), "\\u", 2))
break;
/* Get escaped hex values and add them to the string */
for (j = 0; j < i; j++)
{
char temp[5];
string += 2;
memcpy(temp, string, 4);
temp[4] = '\0';
utf16[j] = string_hex_to_unsigned(temp);
string += 4;
}
utf16[j] = 0;
if (utf16_to_char_string(utf16, utf8, sizeof(utf8)))
{
memcpy(buffer_it, utf8, strlen(utf8));
buffer_it += strlen(utf8);
}
}
break;
default:
*buffer_it++ = escaped_char;
string += 2;
break;
};
}
else
{
*buffer_it++ = *string++;
}
}
*buffer_it = '\0';
return buffer;
}
static int rcheevos_new_cheevo(rcheevos_readud_t* ud)
@@ -297,10 +373,10 @@ static int rcheevos_new_cheevo(rcheevos_readud_t* ud)
else
return 0;
cheevo->title = rcheevos_dupstr(&ud->title);
cheevo->description = rcheevos_dupstr(&ud->desc);
cheevo->badge = rcheevos_dupstr(&ud->badge);
cheevo->memaddr = rcheevos_dupstr(&ud->memaddr);
cheevo->title = rcheevos_unescape_string(ud->title.string, ud->title.length);
cheevo->description = rcheevos_unescape_string(ud->desc.string, ud->desc.length);
cheevo->badge = rcheevos_unescape_string(ud->badge.string, ud->badge.length);
cheevo->memaddr = rcheevos_unescape_string(ud->memaddr.string, ud->memaddr.length);
cheevo->points = (unsigned)strtol(ud->points.string, NULL, 10);
cheevo->id = (unsigned)strtol(ud->id.string, NULL, 10);
@@ -323,11 +399,11 @@ static int rcheevos_new_lboard(rcheevos_readud_t* ud)
{
rcheevos_ralboard_t* lboard = ud->patchdata->lboards + ud->lboard_count++;
lboard->title = rcheevos_dupstr(&ud->title);
lboard->description = rcheevos_dupstr(&ud->desc);
lboard->format = rcheevos_dupstr(&ud->format);
lboard->mem = rcheevos_dupstr(&ud->memaddr);
lboard->id = (unsigned)strtol(ud->id.string, NULL, 10);
lboard->title = rcheevos_unescape_string(ud->title.string, ud->title.length);
lboard->description = rcheevos_unescape_string(ud->desc.string, ud->desc.length);
lboard->format = rcheevos_unescape_string(ud->format.string, ud->format.length);
lboard->mem = rcheevos_unescape_string(ud->memaddr.string, ud->memaddr.length);
lboard->id = (unsigned)strtol(ud->id.string, NULL, 10);
if ( !lboard->title
|| !lboard->description
@@ -386,9 +462,14 @@ static int rcheevos_read_key(void* userdata,
case CHEEVOS_JSON_KEY_CONSOLE_ID:
ud->is_console_id = 1;
break;
case CHEEVOS_JSON_KEY_RICHPRESENCE:
ud->is_richpresence = 1;
break;
case CHEEVOS_JSON_KEY_ID:
if (common)
ud->field = &ud->id;
else
ud->is_game_id = 1;
break;
case CHEEVOS_JSON_KEY_MEMADDR:
if (ud->in_cheevos)
@@ -401,6 +482,8 @@ static int rcheevos_read_key(void* userdata,
case CHEEVOS_JSON_KEY_TITLE:
if (common)
ud->field = &ud->title;
else
ud->is_title = 1;
break;
case CHEEVOS_JSON_KEY_DESCRIPTION:
if (common)
@@ -451,6 +534,16 @@ static int rcheevos_read_string(void* userdata,
ud->field->string = string;
ud->field->length = length;
}
else if (ud->is_title)
{
ud->patchdata->title = rcheevos_unescape_string(string, length);
ud->is_title = 0;
}
else if (ud->is_richpresence)
{
ud->patchdata->richpresence_script = rcheevos_unescape_string(string, length);
ud->is_richpresence = 0;
}
return 0;
}
@@ -465,6 +558,11 @@ static int rcheevos_read_number(void* userdata,
ud->field->string = number;
ud->field->length = length;
}
else if (ud->is_game_id)
{
ud->patchdata->game_id = (unsigned)strtol(number, NULL, 10);
ud->is_game_id = 0;
}
else if (ud->is_console_id)
{
ud->patchdata->console_id = (unsigned)strtol(number, NULL, 10);
@@ -494,12 +592,13 @@ int rcheevos_get_patchdata(const char* json, rcheevos_rapatchdata_t* patchdata)
rcheevos_readud_t ud;
int res;
int has_error;
/* Count the number of achievements in the JSON file. */
res = rcheevos_count_cheevos(json, &patchdata->core_count,
&patchdata->unofficial_count, &patchdata->lboard_count);
&patchdata->unofficial_count, &patchdata->lboard_count, &has_error);
if (res != JSONSAX_OK)
if (res != JSONSAX_OK || has_error)
return -1;
/* Allocate the achievements. */
@@ -524,10 +623,16 @@ int rcheevos_get_patchdata(const char* json, rcheevos_rapatchdata_t* patchdata)
return -1;
}
patchdata->richpresence_script = NULL;
patchdata->title = NULL;
/* Load the achievements. */
ud.in_cheevos = 0;
ud.in_lboards = 0;
ud.is_game_id = 0;
ud.is_title = 0;
ud.is_console_id = 0;
ud.is_richpresence = 0;
ud.field = NULL;
ud.core_count = 0;
ud.unofficial_count = 0;
@@ -586,7 +691,10 @@ void rcheevos_free_patchdata(rcheevos_rapatchdata_t* patchdata)
CHEEVOS_FREE(patchdata->core);
CHEEVOS_FREE(patchdata->unofficial);
CHEEVOS_FREE(patchdata->lboards);
CHEEVOS_FREE(patchdata->richpresence_script);
CHEEVOS_FREE(patchdata->title);
patchdata->game_id = 0;
patchdata->console_id = 0;
patchdata->core = NULL;
patchdata->unofficial = NULL;
+4
View File
@@ -42,11 +42,14 @@ typedef struct {
} rcheevos_ralboard_t;
typedef struct {
unsigned game_id;
unsigned console_id;
char* title;
rcheevos_racheevo_t* core;
rcheevos_racheevo_t* unofficial;
rcheevos_ralboard_t* lboards;
char* richpresence_script;
unsigned core_count;
unsigned unofficial_count;
@@ -55,6 +58,7 @@ typedef struct {
typedef void (*rcheevos_unlock_cb_t)(unsigned id, void* userdata);
int rcheevos_get_json_error(const char* json, char* token, size_t length);
int rcheevos_get_token(const char* json, char* token, size_t length);
int rcheevos_get_patchdata(const char* json, rcheevos_rapatchdata_t* patchdata);
+4 -3
View File
@@ -180,6 +180,8 @@ enum event_command
CMD_EVENT_DISK_NEXT,
/* Cycle to previous disk. */
CMD_EVENT_DISK_PREV,
/* Switch to specified disk index */
CMD_EVENT_DISK_INDEX,
/* Appends disk image to disk image list. */
CMD_EVENT_DISK_APPEND_IMAGE,
/* Stops rumbling. */
@@ -208,11 +210,10 @@ enum event_command
CMD_EVENT_CHEAT_INDEX_PLUS,
CMD_EVENT_CHEAT_INDEX_MINUS,
CMD_EVENT_CHEAT_TOGGLE,
CMD_EVENT_AI_SERVICE_CALL
CMD_EVENT_AI_SERVICE_CALL,
CMD_EVENT_SAVE_FILES
};
bool command_set_shader(const char *arg);
/**
* command_event:
* @cmd : Command index.
+294 -178
View File
@@ -89,11 +89,17 @@
#define DEFAULT_MAX_PADS 4
#elif defined(HAVE_XINPUT) && !defined(HAVE_DINPUT)
#define DEFAULT_MAX_PADS 4
#elif defined(DINGUX)
#define DEFAULT_MAX_PADS 2
#else
#define DEFAULT_MAX_PADS 16
#endif
#if defined(RARCH_MOBILE) || defined(HAVE_LIBNX)
#if defined(GEKKO)
#define DEFAULT_MOUSE_SCALE 1
#endif
#if defined(RARCH_MOBILE) || defined(HAVE_LIBNX) || defined(__WINRT__)
#define DEFAULT_POINTER_ENABLE true
#else
#define DEFAULT_POINTER_ENABLE false
@@ -110,9 +116,59 @@
#endif
#ifdef HAVE_MATERIALUI
/* Show icons to the left of each menu entry */
#define DEFAULT_MATERIALUI_ICONS_ENABLE true
#endif
/* Material UI colour theme */
#define DEFAULT_MATERIALUI_THEME MATERIALUI_THEME_OZONE_DARK
/* Type of animation to use when performing menu transitions
* > 'Auto' follows Material UI standards:
* - Slide when switching between parent menus (tabs)
* - Fade when changing levels in a menu
* Note: Not wrapping this with a HAVE_MATERIALUI ifdef
* because there's too much baggage involved... */
#define DEFAULT_MATERIALUI_TRANSITION_ANIM MATERIALUI_TRANSITION_ANIM_AUTO
/* Adjust menu padding etc. to better fit the
* screen when using landscape layouts */
#if defined(RARCH_MOBILE)
#define DEFAULT_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_DISABLED
#else
#define DEFAULT_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_ALWAYS
#endif
/* Show/hide navigation bar
* > When hidden, MaterialUI menu navigation
* behaves like RGUI */
#define DEFAULT_MATERIALUI_SHOW_NAV_BAR true
/* Reposition navigation bar to make better use
* of screen space when using landscape layouts */
#define DEFAULT_MATERIALUI_AUTO_ROTATE_NAV_BAR true
/* Default portrait/landscape playlist view modes
* (when thumbnails are enabled) */
#define DEFAULT_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_LIST_SMALL
#define DEFAULT_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_LIST_MEDIUM
/* Enable second thumbnail when using 'list view'
* thumbnail views
* Note: Second thumbnail will only be drawn if
* display has sufficient horizontal real estate */
#if defined(RARCH_MOBILE)
#define DEFAULT_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE false
#else
#define DEFAULT_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE true
#endif
/* Draw solid colour 4:3 background when rendering
* thumbnails
* > Helps to unify menu appearance when viewing
* thumbnails of different sizes */
#define DEFAULT_MATERIALUI_THUMBNAIL_BACKGROUND_ENABLE true
#define DEFAULT_CRT_SWITCH_RESOLUTION CRT_SWITCH_NONE
#define DEFAULT_CRT_SWITCH_RESOLUTION_SUPER 2560
@@ -123,6 +179,12 @@
#define DEFAULT_PLAYLIST_ENTRY_RENAME true
#define DEFAULT_ACCESSIBILITY_ENABLE false
#define DEFAULT_ACCESSIBILITY_NARRATOR_SPEECH_SPEED 5
#define DEFAULT_DRIVER_SWITCH_ENABLE true
#define DEFAULT_USER_LANGUAGE 0
#if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS)) || defined(EMSCRIPTEN)
@@ -152,7 +214,13 @@
/* Fullscreen */
/* To start in Fullscreen, or not. */
#ifdef HAVE_STEAM
/* Start in fullscreen mode for Steam build */
#define DEFAULT_FULLSCREEN true
#else
#define DEFAULT_FULLSCREEN false
#endif
/* To use windowed mode or not when going fullscreen. */
#define DEFAULT_WINDOWED_FULLSCREEN true
@@ -266,7 +334,14 @@
#endif
/* Smooths picture. */
#if defined(_3DS) || defined(GEKKO) || defined(HW_RVL) || defined(PSP) || defined(VITA) || defined(SN_TARGET_PSP2) || defined(PS2) || defined(_XBOX)
#define DEFAULT_VIDEO_SMOOTH true
#else
#define DEFAULT_VIDEO_SMOOTH false
#endif
/* Graphics context specific scaling */
#define DEFAULT_VIDEO_CTX_SCALING false
/* On resize and fullscreen, rendering area will stay 4:3 */
#define DEFAULT_FORCE_ASPECT true
@@ -293,12 +368,7 @@
#if defined(__CELLOS_LV2) || defined(_XBOX360)
#define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_16_9
#elif defined(PSP)
#define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_CORE
#elif defined(_3DS)
/* Previously defaulted to ASPECT_RATIO_4_3.
* Non-4:3 content looks dreadful when stretched
* to 4:3 on the 3DS screen... */
#elif defined(PSP) || defined(_3DS) || defined(HAVE_LIBNX) || defined(VITA)
#define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_CORE
#elif defined(RARCH_CONSOLE)
#define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_4_3
@@ -322,9 +392,15 @@
#define DEFAULT_INPUT_OVERLAY_OPACITY 0.7f
#endif
#if defined(RARCH_MOBILE)
#define DEFAULT_OVERLAY_AUTO_ROTATE true
#else
#define DEFAULT_OVERLAY_AUTO_ROTATE false
#endif
#include "runtime_file.h"
#ifdef HAVE_MENU
#include "menu/menu_driver.h"
#include "menu/menu_animation.h"
#ifdef HAVE_LIBNX
#define DEFAULT_MENU_USE_PREFERRED_SYSTEM_COLOR_THEME true
@@ -333,8 +409,11 @@
#endif
#ifdef HAVE_OZONE
/* Ozone colour theme: 1 == Basic Black */
#define DEFAULT_OZONE_COLOR_THEME 1
#define DEFAULT_OZONE_COLLAPSE_SIDEBAR false
#define DEFAULT_OZONE_TRUNCATE_PLAYLIST_NAME true
#define DEFAULT_OZONE_SCROLL_CONTENT_METADATA false
#endif
#define DEFAULT_SETTINGS_SHOW_DRIVERS true
@@ -383,91 +462,102 @@
#define DEFAULT_QUICK_MENU_SHOW_CLOSE_CONTENT 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_start_recording = true;
static bool quick_menu_show_start_streaming = true;
static bool quick_menu_show_set_core_association = true;
static bool quick_menu_show_reset_core_association = 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;
#define DEFAULT_QUICK_MENU_SHOW_TAKE_SCREENSHOT 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;
#define DEFAULT_QUICK_MENU_SHOW_SAVE_LOAD_STATE true
static bool quick_menu_show_download_thumbnails = true;
#define DEFAULT_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE true
static bool kiosk_mode_enable = false;
static const bool quick_menu_show_add_to_favorites = true;
static const bool quick_menu_show_start_recording = true;
static const bool quick_menu_show_start_streaming = true;
static const bool quick_menu_show_set_core_association = true;
static const bool quick_menu_show_reset_core_association = true;
static const bool quick_menu_show_options = true;
static const bool quick_menu_show_controls = true;
static const bool quick_menu_show_cheats = true;
static const bool quick_menu_show_shaders = true;
static const bool quick_menu_show_information = true;
static const bool quick_menu_show_recording = true;
static const bool quick_menu_show_streaming = true;
static bool menu_horizontal_animation = true;
static bool menu_show_online_updater = true;
static bool menu_show_load_core = true;
static bool menu_show_load_content = true;
static const bool quick_menu_show_save_core_overrides = true;
static const bool quick_menu_show_save_game_overrides = true;
static const bool quick_menu_show_save_content_dir_overrides = true;
#ifdef HAVE_NETWORKING
static const bool quick_menu_show_download_thumbnails = true;
#endif
#define DEFAULT_KIOSK_MODE_ENABLE false
#define DEFAULT_MENU_HORIZONTAL_ANIMATION true
static const bool menu_show_online_updater = true;
static const bool menu_show_load_core = true;
static const bool menu_show_load_content = true;
#ifdef HAVE_CDROM
static bool menu_show_load_disc = true;
static bool menu_show_dump_disc = true;
static const bool menu_show_load_disc = true;
static const bool menu_show_dump_disc = true;
#endif
static bool menu_show_information = true;
static bool menu_show_configurations = true;
static bool menu_show_help = true;
static bool menu_show_quit_retroarch = true;
static bool menu_show_restart_retroarch = true;
static bool menu_show_reboot = true;
static bool menu_show_shutdown = true;
static const bool menu_show_information = true;
static const bool menu_show_configurations = true;
static const bool menu_show_help = true;
static const bool menu_show_quit_retroarch = true;
static const bool menu_show_restart_retroarch = true;
static const bool menu_show_reboot = true;
static const bool menu_show_shutdown = true;
#if defined(HAVE_LAKKA) || defined(VITA) || defined(_3DS)
static bool menu_show_core_updater = false;
static const bool menu_show_core_updater = false;
#else
static bool menu_show_core_updater = true;
static const bool menu_show_core_updater = true;
#endif
static bool menu_show_legacy_thumbnail_updater = false;
static bool menu_show_sublabels = true;
static const bool menu_show_legacy_thumbnail_updater = false;
static const bool menu_show_sublabels = true;
static unsigned menu_ticker_type = TICKER_TYPE_BOUNCE;
static float menu_ticker_speed = 1.0f;
static const bool menu_scroll_fast = false;
#define DEFAULT_MENU_TICKER_TYPE (TICKER_TYPE_BOUNCE)
static const float menu_ticker_speed = 1.0f;
#define DEFAULT_MENU_TICKER_SMOOTH true
#if defined(HAVE_THREADS)
static bool menu_savestate_resume = true;
static const bool menu_savestate_resume = true;
#else
static bool menu_savestate_resume = false;
static const bool menu_savestate_resume = false;
#endif
static bool content_show_settings = true;
static bool content_show_favorites = true;
#define DEFAULT_MENU_INSERT_DISK_RESUME true
static const bool content_show_settings = true;
static const bool content_show_favorites = true;
#ifdef HAVE_IMAGEVIEWER
static bool content_show_images = true;
static const bool content_show_images = true;
#endif
static bool content_show_music = true;
static const bool content_show_music = true;
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
static bool content_show_video = true;
static const bool content_show_video = true;
#endif
#ifdef HAVE_NETWORKING
static bool content_show_netplay = true;
static const 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;
static const bool content_show_history = true;
static const bool content_show_add = true;
static const 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;
static const unsigned xmb_alpha_factor = 75;
static const unsigned menu_font_color_red = 255;
static const unsigned menu_font_color_green = 255;
static const unsigned menu_font_color_blue = 255;
#ifdef HAVE_ODROIDGO2
static const unsigned xmb_menu_layout = 2;
#else
static const unsigned xmb_menu_layout = 0;
#endif
static const unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME;
static const unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
#if defined(HAVE_LAKKA) || defined(__arm__) || defined(__PPC64__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__)
#define DEFAULT_XMB_SHADOWS_ENABLE false
@@ -476,13 +566,13 @@ static unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
#endif
#endif
static float menu_framebuffer_opacity = 0.900;
static const float menu_framebuffer_opacity = 0.900;
static float menu_wallpaper_opacity = 0.300;
static const float menu_wallpaper_opacity = 0.300;
static float menu_footer_opacity = 1.000;
static const float menu_footer_opacity = 1.000;
static float menu_header_opacity = 1.000;
static const float menu_header_opacity = 1.000;
#if defined(HAVE_OPENGLES2) || (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
#define DEFAULT_MENU_SHADER_PIPELINE 1
@@ -494,18 +584,18 @@ static float menu_header_opacity = 1.000;
#define DEFAULT_RGUI_COLOR_THEME RGUI_THEME_CLASSIC_GREEN
static bool rgui_inline_thumbnails = false;
static bool rgui_swap_thumbnails = false;
static unsigned rgui_thumbnail_downscaler = RGUI_THUMB_SCALE_POINT;
static unsigned rgui_thumbnail_delay = 0;
static unsigned rgui_internal_upscale_level = RGUI_UPSCALE_NONE;
static bool rgui_full_width_layout = true;
static unsigned rgui_aspect = RGUI_ASPECT_RATIO_4_3;
static unsigned rgui_aspect_lock = RGUI_ASPECT_RATIO_LOCK_NONE;
static bool rgui_shadows = false;
static unsigned rgui_particle_effect = RGUI_PARTICLE_EFFECT_NONE;
static const bool rgui_inline_thumbnails = false;
static const bool rgui_swap_thumbnails = false;
static const unsigned rgui_thumbnail_downscaler = RGUI_THUMB_SCALE_POINT;
static const unsigned rgui_thumbnail_delay = 0;
static const unsigned rgui_internal_upscale_level = RGUI_UPSCALE_NONE;
static const bool rgui_full_width_layout = true;
static const unsigned rgui_aspect = RGUI_ASPECT_RATIO_4_3;
static const unsigned rgui_aspect_lock = RGUI_ASPECT_RATIO_LOCK_NONE;
static const bool rgui_shadows = false;
static const unsigned rgui_particle_effect = RGUI_PARTICLE_EFFECT_NONE;
#define DEFAULT_RGUI_PARTICLE_EFFECT_SPEED 1.0f
static bool rgui_extended_ascii = false;
static const bool rgui_extended_ascii = false;
#endif
#ifdef HAVE_MENU
@@ -514,39 +604,40 @@ static bool rgui_extended_ascii = false;
#define DEFAULT_BLOCK_CONFIG_READ false
#endif
#define DEFAULT_AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST true
/* TODO/FIXME - this setting is thread-unsafe right now and can corrupt the stack - default to off */
#define DEFAULT_AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST false
static bool default_game_specific_options = true;
static bool default_auto_overrides_enable = true;
static bool default_auto_remaps_enable = true;
static bool default_global_core_options = true;
static bool default_auto_shaders_enable = true;
static const bool default_game_specific_options = true;
static const bool default_auto_overrides_enable = true;
static const bool default_auto_remaps_enable = true;
static const bool default_global_core_options = true;
static const bool default_auto_shaders_enable = true;
static bool default_sort_savefiles_enable = false;
static bool default_sort_savestates_enable = false;
static const bool default_sort_savefiles_enable = false;
static const bool default_sort_savestates_enable = false;
static bool default_savestates_in_content_dir = false;
static bool default_savefiles_in_content_dir = false;
static bool default_systemfiles_in_content_dir = false;
static bool default_screenshots_in_content_dir = false;
static const bool default_savestates_in_content_dir = false;
static const bool default_savefiles_in_content_dir = false;
static const bool default_systemfiles_in_content_dir = false;
static const bool default_screenshots_in_content_dir = false;
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L3_R3;
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360) || defined(DINGUX)
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L3_R3;
#elif defined(PS2) || defined(PSP)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_HOLD_START;
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_HOLD_START;
#elif defined(VITA)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L1_R1_START_SELECT;
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L1_R1_START_SELECT;
#elif defined(SWITCH) || defined(ORBIS)
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_START_SELECT;
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_START_SELECT;
#elif TARGET_OS_TV
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_DOWN_Y_L_R;
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_DOWN_Y_L_R;
#else
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_NONE;
static const unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_NONE;
#endif
#if defined(VITA)
static unsigned input_backtouch_enable = false;
static unsigned input_backtouch_toggle = false;
static const unsigned input_backtouch_enable = false;
static const unsigned input_backtouch_toggle = false;
#endif
#define DEFAULT_SHOW_PHYSICAL_INPUTS true
@@ -569,7 +660,12 @@ static unsigned input_backtouch_toggle = false;
#define DEFAULT_CROP_OVERSCAN true
/* Font size for on-screen messages. */
#if defined(DINGUX)
#define DEFAULT_FONT_SIZE 12
#else
#define DEFAULT_FONT_SIZE 32
#endif
/* Offset for where messages will be placed on-screen.
* Values are in range [0.0, 1.0]. */
@@ -648,7 +744,7 @@ static const bool audio_enable_menu_cancel = false;
static const bool audio_enable_menu_notice = false;
static const bool audio_enable_menu_bgm = false;
#ifdef HAVE_MENU_WIDGETS
#ifdef HAVE_GFX_WIDGETS
#define DEFAULT_MENU_ENABLE_WIDGETS true
#else
#define DEFAULT_MENU_ENABLE_WIDGETS false
@@ -701,9 +797,10 @@ static const bool audio_enable_menu_bgm = false;
#ifdef HAVE_WASAPI
/* WASAPI defaults */
static const bool wasapi_exclusive_mode = true;
static const bool wasapi_float_format = false;
static const int wasapi_sh_buffer_length = -16; /* auto */
#define DEFAULT_WASAPI_EXCLUSIVE_MODE true
#define DEFAULT_WASAPI_FLOAT_FORMAT false
/* auto */
#define DEFAULT_WASAPI_SH_BUFFER_LENGTH -16
#endif
/* MISC */
@@ -787,7 +884,7 @@ static const int netplay_check_frames = 600;
static const bool netplay_use_mitm_server = false;
static const char *netplay_mitm_server = "nyc";
#define DEFAULT_NETPLAY_MITM_SERVER "nyc"
#ifdef HAVE_NETWORKING
static const unsigned netplay_share_digital = RARCH_NETPLAY_SHARE_DIGITAL_NO_PREFERENCE;
@@ -827,10 +924,10 @@ static const bool savestate_thumbnail_enable = false;
#define DEFAULT_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;
#define DEFAULT_RUN_AHEAD_SECONDARY_INSTANCE true
/* Hide warning messages when using the Run Ahead feature. */
static const bool run_ahead_hide_warnings = false;
#define DEFAULT_RUN_AHEAD_HIDE_WARNINGS false
/* Enable stdin/network command interface. */
static const bool network_cmd_enable = false;
@@ -839,14 +936,18 @@ static const bool stdin_cmd_enable = false;
static const uint16_t network_remote_base_port = 55400;
#if defined(ANDROID) || defined(IOS)
static const bool network_on_demand_thumbnails = true;
#else
static const bool network_on_demand_thumbnails = false;
#endif
/* Number of entries that will be kept in content history playlist file. */
static const unsigned default_content_history_size = 100;
static const unsigned default_content_history_size = 200;
/* Number of entries that will be kept in content favorites playlist file.
* -1 == 'unlimited' (99999) */
static const int default_content_favorites_size = 100;
static const int default_content_favorites_size = 200;
/* Sort all playlists (apart from histories) alphabetically */
static const bool playlist_sort_alphabetical = true;
@@ -861,10 +962,13 @@ static const unsigned playlist_show_inline_core_name = PLAYLIST_INLINE_CORE_DISP
/* Specifies which runtime record to use on playlist sublabels */
static const unsigned playlist_sublabel_runtime_type = PLAYLIST_RUNTIME_PER_CORE;
/* Specifies time/date display format for runtime 'last played' data */
#define DEFAULT_PLAYLIST_SUBLABEL_LAST_PLAYED_STYLE PLAYLIST_LAST_PLAYED_STYLE_YMD_HMS
static const unsigned playlist_entry_remove_enable = PLAYLIST_ENTRY_REMOVE_ENABLE_ALL;
#endif
static const bool scan_without_core_match = false;
#define DEFAULT_SCAN_WITHOUT_CORE_MATCH false
#ifdef __WINRT__
/* Be paranoid about WinRT file I/O performance, and leave this disabled by
@@ -874,20 +978,23 @@ static const bool scan_without_core_match = false;
#define DEFAULT_PLAYLIST_SHOW_SUBLABELS true
#endif
static const bool playlist_fuzzy_archive_match = false;
#define DEFAULT_PLAYLIST_FUZZY_ARCHIVE_MATCH false
/* Show Menu start-up screen on boot. */
static const bool default_menu_show_start_screen = true;
#define DEFAULT_MENU_SHOW_START_SCREEN true
#define DEFAULT_MENU_DPI_OVERRIDE_ENABLE false
#ifdef RARCH_MOBILE
#define DEFAULT_MENU_DPI_OVERRIDE_VALUE 72
#elif defined(__CELLOS_LV2__)
#define DEFAULT_MENU_DPI_OVERRIDE_VALUE 360
#else
#define DEFAULT_MENU_DPI_OVERRIDE_VALUE 200
#endif
/* Default scale factor for non-frambuffer-based display
* drivers and display widgets */
#define DEFAULT_MENU_SCALE_FACTOR 1.0f
/* Specifies whether display widgets should be scaled
* automatically using the default menu scale factor */
#define DEFAULT_MENU_WIDGET_SCALE_AUTO true
/* Default scale factor for display widgets when widget
* auto scaling is disabled (fullscreen mode) */
#define DEFAULT_MENU_WIDGET_SCALE_FACTOR 1.0f
/* Default scale factor for display widgets when widget
* auto scaling is disabled (windowed mode) */
#define DEFAULT_MENU_WIDGET_SCALE_FACTOR_WINDOWED 1.0f
/* Log level for the frontend */
#define DEFAULT_FRONTEND_LOG_LEVEL 1
@@ -907,15 +1014,17 @@ static const bool default_menu_show_start_screen = true;
/* Axis threshold (between 0.0 and 1.0)
* How far an axis must be tilted to result in a button press. */
static const float axis_threshold = 0.5f;
#define DEFAULT_AXIS_THRESHOLD 0.5f
static const float analog_deadzone = 0.0f;
#define DEFAULT_ANALOG_DEADZONE 0.0f
static const float analog_sensitivity = 1.0f;
#define DEFAULT_ANALOG_SENSITIVITY 1.0f
/* Describes speed of which turbo-enabled buttons toggle. */
static const unsigned turbo_period = 6;
static const unsigned turbo_duty_cycle = 3;
static const unsigned turbo_mode = 0;
static const unsigned turbo_default_btn = RETRO_DEVICE_ID_JOYPAD_B;
/* Enable input auto-detection. Will attempt to autoconfigure
* gamepads, plug-and-play style. */
@@ -935,13 +1044,15 @@ static const unsigned input_bind_timeout = 5;
static const unsigned input_bind_hold = 2;
static const unsigned menu_thumbnails_default = 3;
static const unsigned gfx_thumbnails_default = 3;
static const unsigned menu_left_thumbnails_default = 0;
static const unsigned menu_thumbnail_upscale_threshold = 0;
static const unsigned gfx_thumbnail_upscale_threshold = 0;
static const unsigned menu_timedate_style = 5;
#ifdef HAVE_MENU
static const unsigned menu_timedate_style = MENU_TIMEDATE_STYLE_DDMM_HM;
#endif
static const bool xmb_vertical_thumbnails = false;
@@ -959,7 +1070,7 @@ static const bool ui_companion_enable = false;
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;
#define DEFAULT_DESKTOP_MENU_ENABLE true
/* Keep track of how long each core+content has been running for over time */
@@ -971,22 +1082,25 @@ static const bool desktop_menu_enable = true;
#define DEFAULT_CONTENT_RUNTIME_LOG true
#endif
/* Keep track of how long each content has been running for over time (ignores core) */
static const bool content_runtime_log_aggregate = false;
/* Keep track of how long each content has been running
* for over time (ignores core) */
#define DEFAULT_CONTENT_RUNTIME_LOG_AGGREGATE false
#define DEFAULT_UI_MENUBAR_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) || defined(PS2)
static enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWEST;
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWER;
#elif defined(PSP) || defined(_3DS) || defined(VITA) || defined(PS2) || defined(DINGUX)
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWEST;
#else
static enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_NORMAL;
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_NORMAL;
#endif
/* MIDI */
static const char *midi_input = "Off";
static const char *midi_output = "Off";
#define DEFAULT_MIDI_INPUT "Off"
#define DEFAULT_MIDI_OUTPUT "Off"
static const unsigned midi_volume = 100;
/* Only applies to Android 7.0 (API 24) and up */
@@ -1012,100 +1126,100 @@ static const bool enable_device_vibration = false;
#endif
#if defined(HAKCHI)
static char buildbot_server_url[] = "http://hakchicloud.com/Libretro_Cores/";
#define DEFAULT_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/";
#define DEFAULT_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/";
#define DEFAULT_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/";
#define DEFAULT_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/";
#define DEFAULT_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/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/android/latest/x86_64/"
#else
static char buildbot_server_url[] = "";
#define DEFAULT_BUILDBOT_SERVER_URL ""
#endif
#elif defined(__QNX__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/blackberry/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/blackberry/latest/"
#elif defined(IOS)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/ios/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/apple/ios/latest/"
#elif defined(OSX)
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/"
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
static char buildbot_server_url[] = "http://bot.libretro.com/nightly/apple/osx/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://bot.libretro.com/nightly/apple/osx/x86/latest/"
#else
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/"
#endif
#elif defined(_WIN32) && !defined(_XBOX)
#if _MSC_VER >= 1910
#ifndef __WINRT__
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/x64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/x64/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-msvc2017-desktop/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/x86/latest/"
#elif defined(__arm__) || defined(_M_ARM)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm/latest/"
#elif defined(__aarch64__) || defined(_M_ARM64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm64/latest/"
#endif
#else
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/x64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/x64/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-msvc2017-uwp/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/x86/latest/"
#elif defined(__arm__) || defined(_M_ARM)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm/latest/"
#elif defined(__aarch64__) || defined(_M_ARM64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm64/latest/"
#endif
#endif
#elif _MSC_VER == 1600
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2010/x86_64/latest/";
#define DEFAULT_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/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2010/x86/latest/"
#endif
#elif _MSC_VER == 1400
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/"
#elif _MSC_VER == 1310
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/"
#else
#if defined(__x86_64__) || defined(_M_X64)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/windows/x86_64/latest/";
#define DEFAULT_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/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/windows/x86/latest/"
#endif
#endif
#elif defined(__linux__)
#if defined(__x86_64__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/linux/x86_64/latest/"
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/linux/x86/latest/"
#elif defined(__arm__) && __ARM_ARCH == 7 && defined(__ARM_PCS_VFP)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/armhf/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/linux/armhf/latest/"
#else
static char buildbot_server_url[] = "";
#define DEFAULT_BUILDBOT_SERVER_URL ""
#endif
#elif defined(WIIU)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/"
#elif defined(HAVE_LIBNX)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/switch/libnx/latest/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://buildbot.libretro.com/nightly/nintendo/switch/libnx/latest/"
#elif defined(__CELLOS_LV2__) && defined(DEX_BUILD)
static char buildbot_server_url[] = "http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/dex-ps3/";
#define DEFAULT_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/";
#define DEFAULT_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/";
#define DEFAULT_BUILDBOT_SERVER_URL "http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/ode-ps3/"
#else
static char buildbot_server_url[] = "";
#define DEFAULT_BUILDBOT_SERVER_URL ""
#endif
static char buildbot_assets_server_url[] = "http://buildbot.libretro.com/assets/";
#define DEFAULT_BUILDBOT_ASSETS_SERVER_URL "http://buildbot.libretro.com/assets/"
static char default_discord_app_id[] = "475456035851599874";
#define DEFAULT_DISCORD_APP_ID "475456035851599874"
#define DEFAULT_AI_SERVICE_SOURCE_LANG 0
@@ -1113,6 +1227,8 @@ static char default_discord_app_id[] = "475456035851599874";
#define DEFAULT_AI_SERVICE_ENABLE true
#define DEFAULT_AI_SERVICE_PAUSE false
#define DEFAULT_AI_SERVICE_MODE 1
#define DEFAULT_AI_SERVICE_URL "http://localhost:4404/"
+90
View File
@@ -71,7 +71,11 @@ static const struct retro_keybind retro_keybinds_1[] = {
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#ifdef HAVE_LAKKA
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_RESTART_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#else
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#endif
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
@@ -105,6 +109,88 @@ static const struct retro_keybind retro_keybinds_1[] = {
{ true, RARCH_RECORDING_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_RECORDING_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STREAMING_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_STREAMING_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_AI_SERVICE, MENU_ENUM_LABEL_VALUE_INPUT_META_AI_SERVICE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#elif defined(DINGUX)
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_LALT, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_LSHIFT, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_SELECT, RETROK_ESCAPE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_START, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_START, RETROK_RETURN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_UP, RETROK_UP, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN, RETROK_DOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT, RETROK_LEFT, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_RIGHT, RETROK_RIGHT, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_A, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_A, RETROK_LCTRL, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_X, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_X, RETROK_SPACE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_L, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L, RETROK_TAB, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_R, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R, RETROK_BACKSPACE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_L2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L2, RETROK_PAGEUP, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_R2, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R2, RETROK_PAGEDOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_L3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_L3, RETROK_KP_DIVIDE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_R3, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_R3, RETROK_KP_PERIOD, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_LEFT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_LEFT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_LEFT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_LEFT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_LEFT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_RIGHT_X_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_RIGHT_X_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_X_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_RIGHT_Y_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ANALOG_RIGHT_Y_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_ANALOG_RIGHT_Y_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_TRIGGER, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_TRIGGER, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_RELOAD, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_RELOAD, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_AUX_A, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_A, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_AUX_B, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_B, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_AUX_C, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_AUX_C, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_START, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_START, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_SELECT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_SELECT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_DPAD_UP, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_DPAD_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_DPAD_LEFT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_LEFT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LIGHTGUN_DPAD_RIGHT, MENU_ENUM_LABEL_VALUE_INPUT_LIGHTGUN_DPAD_RIGHT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_TURBO_ENABLE, MENU_ENUM_LABEL_VALUE_INPUT_TURBO_ENABLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FAST_FORWARD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FAST_FORWARD_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ 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, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SLOWMOTION_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SLOWMOTION_HOLD_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SLOWMOTION_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_BSV_RECORD_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_BSV_RECORD_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_PAUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_PAUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FRAMEADVANCE, MENU_ENUM_LABEL_VALUE_INPUT_META_FRAMEADVANCE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_RESET, MENU_ENUM_LABEL_VALUE_INPUT_META_RESET, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SHADER_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SHADER_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_SHADER_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_CHEAT_INDEX_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_PLUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_CHEAT_INDEX_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_INDEX_MINUS, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_CHEAT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_CHEAT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SCREENSHOT, MENU_ENUM_LABEL_VALUE_INPUT_META_SCREENSHOT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_MUTE, MENU_ENUM_LABEL_VALUE_INPUT_META_MUTE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_OSK, MENU_ENUM_LABEL_VALUE_INPUT_META_OSK, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FPS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_FPS_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SEND_DEBUG_INFO, MENU_ENUM_LABEL_VALUE_INPUT_META_SEND_DEBUG_INFO, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_NETPLAY_HOST_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_HOST_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_NETPLAY_GAME_WATCH, MENU_ENUM_LABEL_VALUE_INPUT_META_NETPLAY_GAME_WATCH, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_ENABLE_HOTKEY, MENU_ENUM_LABEL_VALUE_INPUT_META_ENABLE_HOTKEY, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_VOLUME_UP, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_UP, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_VOLUME_DOWN, MENU_ENUM_LABEL_VALUE_INPUT_META_VOLUME_DOWN, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_OVERLAY_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_OVERLAY_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_DISK_EJECT_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_EJECT_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_DISK_NEXT, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_NEXT, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_DISK_PREV, MENU_ENUM_LABEL_VALUE_INPUT_META_DISK_PREV, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_GRAB_MOUSE_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GRAB_MOUSE_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_GAME_FOCUS_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_GAME_FOCUS_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_UI_COMPANION_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_UI_COMPANION_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_MENU_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_MENU_TOGGLE, RETROK_HOME, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_RECORDING_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_RECORDING_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STREAMING_TOGGLE, MENU_ENUM_LABEL_VALUE_INPUT_META_STREAMING_TOGGLE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_AI_SERVICE, MENU_ENUM_LABEL_VALUE_INPUT_META_AI_SERVICE, RETROK_UNKNOWN, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#else
{ true, RETRO_DEVICE_ID_JOYPAD_B, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_B, RETROK_z, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RETRO_DEVICE_ID_JOYPAD_Y, MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_Y, RETROK_a, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
@@ -153,7 +239,11 @@ static const struct retro_keybind retro_keybinds_1[] = {
{ true, RARCH_LOAD_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_LOAD_STATE_KEY, RETROK_F4, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_SAVE_STATE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_SAVE_STATE_KEY, RETROK_F2, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_FULLSCREEN_TOGGLE_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_FULLSCREEN_TOGGLE_KEY, RETROK_f, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#ifdef HAVE_LAKKA
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_RESTART_KEY, RETROK_ESCAPE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#else
{ true, RARCH_QUIT_KEY, MENU_ENUM_LABEL_VALUE_INPUT_META_QUIT_KEY, RETROK_ESCAPE, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
#endif
{ true, RARCH_STATE_SLOT_PLUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_PLUS, RETROK_F7, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_STATE_SLOT_MINUS, MENU_ENUM_LABEL_VALUE_INPUT_META_STATE_SLOT_MINUS, RETROK_F6, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
{ true, RARCH_REWIND, MENU_ENUM_LABEL_VALUE_INPUT_META_REWIND, RETROK_r, NO_BTN, NO_BTN, 0, AXIS_NONE, AXIS_NONE, AXIS_NONE, NULL, NULL },
+1 -1
View File
@@ -50,7 +50,7 @@
#define SUPPORTS_LIBUSB false
#endif
#ifdef HAVE_SDL
#if defined(HAVE_SDL)
#define SUPPORTS_SDL true
#else
#define SUPPORTS_SDL false
+349 -316
View File
File diff suppressed because it is too large. Load diff
+61 -27
View File
@@ -53,6 +53,12 @@
var = newvar; \
}
#define configuration_set_string(settings, var, newvar) \
{ \
settings->modified = true; \
strlcpy(var, newvar, sizeof(var)); \
}
enum crt_switch_type
{
CRT_SWITCH_NONE = 0,
@@ -85,6 +91,7 @@ typedef struct settings
bool video_black_frame_insertion;
bool video_vfilter;
bool video_smooth;
bool video_ctx_scaling;
bool video_force_aspect;
bool video_crop_overscan;
bool video_aspect_ratio_auto;
@@ -110,6 +117,9 @@ typedef struct settings
bool video_layout_enable;
#endif
/* Accessibility */
bool accessibility_enable;
/* Audio */
bool audio_enable;
bool audio_enable_menu;
@@ -130,6 +140,7 @@ typedef struct settings
bool input_overlay_hide_in_menu;
bool input_overlay_show_physical_inputs;
bool input_overlay_show_mouse_cursor;
bool input_overlay_auto_rotate;
bool input_descriptor_label_show;
bool input_descriptor_hide_unbound;
bool input_all_users_control_menu;
@@ -147,9 +158,11 @@ typedef struct settings
/* Menu */
bool filter_by_current_core;
bool menu_enable_widgets;
bool menu_widget_scale_auto;
bool menu_show_start_screen;
bool menu_pause_libretro;
bool menu_savestate_resume;
bool menu_insert_disk_resume;
bool menu_timedate_enable;
bool menu_battery_level_enable;
bool menu_core_enable;
@@ -160,11 +173,11 @@ typedef struct settings
bool menu_pointer_enable;
bool menu_navigation_wraparound_enable;
bool menu_navigation_browser_filter_supported_extensions_enable;
bool menu_dpi_override_enable;
bool menu_show_advanced_settings;
bool menu_throttle_framerate;
bool menu_linear_filter;
bool menu_horizontal_animation;
bool menu_scroll_fast;
bool menu_show_online_updater;
bool menu_show_core_updater;
bool menu_show_load_core;
@@ -186,6 +199,10 @@ typedef struct settings
bool menu_show_video_layout;
#endif
bool menu_materialui_icons_enable;
bool menu_materialui_show_nav_bar;
bool menu_materialui_auto_rotate_nav_bar;
bool menu_materialui_dual_thumbnail_list_view_enable;
bool menu_materialui_thumbnail_background_enable;
bool menu_rgui_background_filler_thickness_enable;
bool menu_rgui_border_filler_thickness_enable;
bool menu_rgui_border_filler_enable;
@@ -282,6 +299,7 @@ typedef struct settings
bool cheevos_test_unofficial;
bool cheevos_hardcore_mode_enable;
bool cheevos_leaderboards_enable;
bool cheevos_richpresence_enable;
bool cheevos_badges_enable;
bool cheevos_verbose_enable;
bool cheevos_auto_screenshot;
@@ -303,6 +321,9 @@ typedef struct settings
bool bundle_finished;
bool bundle_assets_extract_enable;
/* Driver */
bool driver_switch_enable;
/* Misc. */
bool discord_enable;
bool threaded_data_runloop_enable;
@@ -349,8 +370,8 @@ typedef struct settings
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
bool localap_enable;
bool automatically_add_content_to_playlist;
bool video_window_show_decorations;
bool video_window_save_positions;
@@ -368,6 +389,7 @@ typedef struct settings
bool enable_device_vibration;
bool ozone_collapse_sidebar;
bool ozone_truncate_playlist_name;
bool ozone_scroll_content_metadata;
bool log_to_file;
bool log_to_file_timestamp;
@@ -375,6 +397,7 @@ typedef struct settings
bool scan_without_core_match;
bool ai_service_enable;
bool ai_service_pause;
} bools;
struct
@@ -392,6 +415,9 @@ typedef struct settings
float video_msg_color_b;
float video_msg_bgcolor_opacity;
float menu_scale_factor;
float menu_widget_scale_factor;
float menu_widget_scale_factor_windowed;
float menu_wallpaper_opacity;
float menu_framebuffer_opacity;
float menu_footer_opacity;
@@ -451,10 +477,14 @@ typedef struct settings
unsigned input_turbo_period;
unsigned input_turbo_duty_cycle;
unsigned input_turbo_mode;
unsigned input_turbo_default_button;
unsigned input_bind_timeout;
unsigned input_bind_hold;
#ifdef GEKKO
unsigned input_mouse_scale;
#endif
unsigned input_menu_toggle_gamepad_combo;
unsigned input_keyboard_gamepad_mapping_type;
unsigned input_poll_type_behavior;
@@ -506,25 +536,30 @@ typedef struct settings
#endif
unsigned video_shader_delay;
/* Accessibility */
unsigned accessibility_narrator_speech_speed;
unsigned menu_timedate_style;
unsigned menu_thumbnails;
unsigned gfx_thumbnails;
unsigned menu_left_thumbnails;
unsigned menu_thumbnail_upscale_threshold;
unsigned gfx_thumbnail_upscale_threshold;
unsigned menu_rgui_thumbnail_downscaler;
unsigned menu_rgui_thumbnail_delay;
unsigned menu_dpi_override_value;
unsigned menu_rgui_color_theme;
unsigned menu_xmb_animation_opening_main_menu;
unsigned menu_xmb_animation_horizontal_highlight;
unsigned menu_xmb_animation_move_up_down;
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_xmb_thumbnail_scale_factor;
unsigned menu_materialui_color_theme;
unsigned menu_materialui_transition_animation;
unsigned menu_materialui_thumbnail_view_portrait;
unsigned menu_materialui_thumbnail_view_landscape;
unsigned menu_materialui_landscape_layout_optimization;
unsigned menu_ozone_color_theme;
unsigned menu_font_color_red;
unsigned menu_font_color_green;
@@ -538,6 +573,7 @@ typedef struct settings
unsigned playlist_entry_remove_enable;
unsigned playlist_show_inline_core_name;
unsigned playlist_sublabel_runtime_type;
unsigned playlist_sublabel_last_played_style;
unsigned camera_width;
unsigned camera_height;
@@ -603,26 +639,23 @@ typedef struct settings
char input_driver[32];
char input_joypad_driver[32];
char midi_driver[32];
char midi_input[32];
char midi_output[32];
char input_keyboard_layout[64];
char audio_device[255];
char camera_device[255];
char netplay_mitm_server[255];
char translation_service_url[2048];
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];
char youtube_stream_key[PATH_MAX_LENGTH];
char twitch_stream_key[PATH_MAX_LENGTH];
char discord_app_id[PATH_MAX_LENGTH];
char translation_service_url[2048];
char ai_service_url[PATH_MAX_LENGTH];
} arrays;
@@ -631,12 +664,16 @@ typedef struct settings
char placeholder;
char username[32];
char netplay_password[128];
char netplay_spectate_password[128];
char netplay_server[255];
char network_buildbot_url[255];
char network_buildbot_assets_url[255];
char browse_url[4096];
char path_stream_url[8192];
char path_menu_xmb_font[PATH_MAX_LENGTH];
@@ -786,14 +823,7 @@ const char *config_get_midi_driver_options(void);
const char *config_get_default_record(void);
/**
* config_parse_file:
*
* Loads a config file and reads all the values into memory.
*
*/
void config_parse_file(void);
#ifdef HAVE_CONFIGFILE
/**
* config_load_override:
*
@@ -804,7 +834,7 @@ void config_parse_file(void);
* Returns: false if there was an error or no action was performed.
*
*/
bool config_load_override(void);
bool config_load_override(void *data);
/**
* config_unload_override:
@@ -824,7 +854,8 @@ bool config_unload_override(void);
* Returns: false if there was an error or no action was performed.
*
*/
bool config_load_remap(const char *directory_input_remapping);
bool config_load_remap(const char *directory_input_remapping,
void *data);
/**
* config_save_autoconf_profile:
@@ -852,16 +883,19 @@ bool config_save_file(const char *path);
*
* Returns: true (1) on success, otherwise returns false (0).
**/
bool config_save_overrides(int override_type);
bool config_save_overrides(enum override_type type, void *data);
/* Replaces currently loaded configuration file with
* another one. Will load a dummy core to flush state
* properly. */
bool config_replace(bool config_save_on_exit, char *path);
#endif
bool config_overlay_enable_default(void);
void config_set_defaults(void);
void config_set_defaults(void *data);
void config_load(void *data);
settings_t *config_get_ptr(void);
+3 -2
View File
@@ -25,6 +25,7 @@
#include "core_type.h"
#include "input/input_defines.h"
#include "disk_control_interface.h"
RETRO_BEGIN_DECLS
@@ -67,8 +68,8 @@ typedef struct rarch_system_info
bool supports_vfs;
struct retro_disk_control_callback disk_control_cb;
struct retro_location_callback location_cb;
disk_control_interface_t disk_control;
struct retro_location_callback location_cb;
struct
{
+76 -55
View File
@@ -21,14 +21,12 @@
#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 "core_info.h"
#include "file_path_special.h"
@@ -37,16 +35,9 @@
#include "uwp/uwp_func.h"
#endif
#ifdef HAVE_COMPRESSION
static const struct string_list *core_info_tmp_list = NULL;
#endif
static const char *core_info_tmp_path = NULL;
static core_info_t *core_info_current = NULL;
static core_info_list_t *core_info_curr_list = NULL;
enum compare_op
{
COMPARE_OP_EQUAL,
COMPARE_OP_EQUAL = 0,
COMPARE_OP_NOT_EQUAL,
COMPARE_OP_LESS,
COMPARE_OP_LESS_EQUAL,
@@ -54,6 +45,25 @@ enum compare_op
COMPARE_OP_GREATER_EQUAL
};
struct core_info_state
{
#ifdef HAVE_COMPRESSION
const struct string_list *tmp_list;
#endif
const char *tmp_path;
core_info_t *current;
core_info_list_t *curr_list;
};
typedef struct core_info_state core_info_state_t;
static core_info_state_t core_info_st;
static core_info_state_t *coreinfo_get_ptr(void)
{
return &core_info_st;
}
static void core_info_list_resolve_all_extensions(
core_info_list_t *core_info_list)
{
@@ -228,9 +238,7 @@ static config_file_t *core_info_list_iterate(
}
#endif
strlcat(info_path_base,
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
info_path_base_size);
strlcat(info_path_base, ".info", info_path_base_size);
info_path = (char*)malloc(info_path_base_size);
fill_pathname_join(info_path,
@@ -541,15 +549,18 @@ static bool core_info_does_support_file(
static int core_info_qsort_cmp(const void *a_, const void *b_)
{
const core_info_t *a = (const core_info_t*)a_;
const core_info_t *b = (const core_info_t*)b_;
int support_a = core_info_does_support_file(a, core_info_tmp_path);
int support_b = core_info_does_support_file(b, core_info_tmp_path);
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
const core_info_t *a = (const core_info_t*)a_;
const core_info_t *b = (const core_info_t*)b_;
int support_a = core_info_does_support_file(a,
p_coreinfo->tmp_path);
int support_b = core_info_does_support_file(b,
p_coreinfo->tmp_path);
#ifdef HAVE_COMPRESSION
support_a = support_a ||
core_info_does_support_any_file(a, core_info_tmp_list);
core_info_does_support_any_file(a, p_coreinfo->tmp_list);
support_b = support_b ||
core_info_does_support_any_file(b, core_info_tmp_list);
core_info_does_support_any_file(b, p_coreinfo->tmp_list);
#endif
if (support_a != support_b)
@@ -612,10 +623,7 @@ static bool core_info_list_update_missing_firmware_internal(
info->firmware[i].path, path_size);
info->firmware[i].missing = !path_is_valid(path);
if (info->firmware[i].missing && !info->firmware[i].optional)
{
*set_missing_bios = true;
RARCH_WARN("Firmware missing: %s\n", info->firmware[i].path);
}
}
free(path);
@@ -624,38 +632,44 @@ static bool core_info_list_update_missing_firmware_internal(
void core_info_free_current_core(void)
{
if (core_info_current)
free(core_info_current);
core_info_current = NULL;
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (p_coreinfo->current)
free(p_coreinfo->current);
p_coreinfo->current = NULL;
}
bool core_info_init_current_core(void)
{
core_info_current = (core_info_t*)calloc(1, sizeof(core_info_t));
if (!core_info_current)
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
core_info_t *current = (core_info_t*)calloc(1, sizeof(*current));
if (!current)
return false;
p_coreinfo->current = current;
return true;
}
bool core_info_get_current_core(core_info_t **core)
{
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!core)
return false;
*core = core_info_current;
*core = p_coreinfo->current;
return true;
}
void core_info_deinit_list(void)
{
if (core_info_curr_list)
core_info_list_free(core_info_curr_list);
core_info_curr_list = NULL;
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (p_coreinfo->curr_list)
core_info_list_free(p_coreinfo->curr_list);
p_coreinfo->curr_list = NULL;
}
bool core_info_init_list(const char *path_info, const char *dir_cores,
const char *exts, bool dir_show_hidden_files)
{
if (!(core_info_curr_list = core_info_list_new(dir_cores,
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!(p_coreinfo->curr_list = core_info_list_new(dir_cores,
!string_is_empty(path_info) ? path_info : dir_cores,
exts,
dir_show_hidden_files)))
@@ -665,39 +679,42 @@ bool core_info_init_list(const char *path_info, const char *dir_cores,
bool core_info_get_list(core_info_list_t **core)
{
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!core)
return false;
*core = core_info_curr_list;
*core = p_coreinfo->curr_list;
return true;
}
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info,
bool *set_missing_bios)
{
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!info)
return false;
return core_info_list_update_missing_firmware_internal(
core_info_curr_list,
p_coreinfo->curr_list,
info->path, info->directory.system,
set_missing_bios);
}
bool core_info_load(core_info_ctx_find_t *info)
{
core_info_t *core_info = NULL;
core_info_t *core_info = NULL;
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!info)
return false;
if (!core_info_current)
if (!p_coreinfo->current)
core_info_init_current_core();
core_info_get_current_core(&core_info);
if (!core_info_curr_list)
if (!p_coreinfo->curr_list)
return false;
if (!core_info_list_get_info(core_info_curr_list,
if (!core_info_list_get_info(p_coreinfo->curr_list,
core_info, info->path))
return false;
@@ -706,9 +723,10 @@ bool core_info_load(core_info_ctx_find_t *info)
bool core_info_find(core_info_ctx_find_t *info, const char *core_path)
{
if (!info || !core_info_curr_list)
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!info || !p_coreinfo->curr_list)
return false;
info->inf = core_info_find_internal(core_info_curr_list, core_path);
info->inf = core_info_find_internal(p_coreinfo->curr_list, core_path);
if (!info->inf)
return false;
return true;
@@ -731,20 +749,21 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
const char *path, const core_info_t **infos, size_t *num_infos)
{
size_t i;
size_t supported = 0;
size_t supported = 0;
#ifdef HAVE_COMPRESSION
struct string_list *list = NULL;
struct string_list *list = NULL;
#endif
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (!core_info_list)
return;
core_info_tmp_path = path;
p_coreinfo->tmp_path = path;
#ifdef HAVE_COMPRESSION
if (path_is_compressed_file(path))
list = file_archive_get_file_list(path, NULL);
core_info_tmp_list = list;
p_coreinfo->tmp_list = list;
#endif
/* Let supported core come first in list so we can return
@@ -841,8 +860,9 @@ size_t core_info_list_num_info_files(core_info_list_t *core_info_list)
bool core_info_database_match_archive_member(const char *database_path)
{
char *database = NULL;
const char *new_path = path_basename(database_path);
char *database = NULL;
const char *new_path = path_basename(database_path);
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (string_is_empty(new_path))
return false;
@@ -854,13 +874,13 @@ bool core_info_database_match_archive_member(const char *database_path)
path_remove_extension(database);
if (core_info_curr_list)
if (p_coreinfo->curr_list)
{
size_t i;
for (i = 0; i < core_info_curr_list->count; i++)
for (i = 0; i < p_coreinfo->curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
const core_info_t *info = &p_coreinfo->curr_list->list[i];
if (!info->database_match_archive_member)
continue;
@@ -882,8 +902,9 @@ error:
bool core_info_database_supports_content_path(
const char *database_path, const char *path)
{
char *database = NULL;
const char *new_path = path_basename(database_path);
char *database = NULL;
const char *new_path = path_basename(database_path);
core_info_state_t *p_coreinfo = coreinfo_get_ptr();
if (string_is_empty(new_path))
return false;
@@ -895,13 +916,13 @@ bool core_info_database_supports_content_path(
path_remove_extension(database);
if (core_info_curr_list)
if (p_coreinfo->curr_list)
{
size_t i;
for (i = 0; i < core_info_curr_list->count; i++)
for (i = 0; i < p_coreinfo->curr_list->count; i++)
{
const core_info_t *info = &core_info_curr_list->list[i];
const core_info_t *info = &p_coreinfo->curr_list->list[i];
if (!string_list_find_elem(info->supported_extensions_list,
path_get_extension(path)))
@@ -1136,7 +1157,7 @@ bool core_info_hw_api_supported(core_info_t *info)
if (string_is_empty(cur_api))
continue;
cur_api_len = strlen(cur_api);
cur_api_len = (int)strlen(cur_api);
for (j = 0; j < cur_api_len; j++)
{
+797
View File
@@ -0,0 +1,797 @@
/* Copyright (C) 2010-2019 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (core_updater_list.c).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <file/file_path.h>
#include <string/stdstring.h>
#include <lists/string_list.h>
#include <net/net_http.h>
#include <retro_miscellaneous.h>
#include "file_path_special.h"
#include "core_info.h"
#include "core_updater_list.h"
/* Holds all entries in a core updater list */
struct core_updater_list
{
size_t size;
size_t capacity;
core_updater_list_entry_t *entries;
};
/* Cached ('global') core updater list */
static core_updater_list_t *core_list_cached = NULL;
/**************************************/
/* Initialisation / De-Initialisation */
/**************************************/
/* Frees contents of specified core updater
* list entry */
static void core_updater_list_free_entry(core_updater_list_entry_t *entry)
{
if (!entry)
return;
if (entry->remote_filename)
{
free(entry->remote_filename);
entry->remote_filename = NULL;
}
if (entry->remote_core_path)
{
free(entry->remote_core_path);
entry->remote_core_path = NULL;
}
if (entry->local_core_path)
{
free(entry->local_core_path);
entry->local_core_path = NULL;
}
if (entry->local_info_path)
{
free(entry->local_info_path);
entry->local_info_path = NULL;
}
if (entry->display_name)
{
free(entry->display_name);
entry->display_name = NULL;
}
}
/* Creates a new, empty core updater list.
* Returns a handle to a new core_updater_list_t object
* on success, otherwise returns NULL. */
core_updater_list_t *core_updater_list_init(size_t max_size)
{
core_updater_list_t *core_list = NULL;
core_updater_list_entry_t *entries = NULL;
/* Sanity check */
if (max_size < 1)
return NULL;
/* Create core updater list */
core_list = (core_updater_list_t*)calloc(1, sizeof(*core_list));
if (!core_list)
return NULL;
/* Create entries array */
entries = (core_updater_list_entry_t*)calloc(max_size, sizeof(*entries));
if (!entries)
{
free(core_list);
return NULL;
}
/* Initial configuration */
core_list->size = 0;
core_list->capacity = max_size;
core_list->entries = entries;
return core_list;
}
/* Resets (removes all entries of) specified core
* updater list */
void core_updater_list_reset(core_updater_list_t *core_list)
{
size_t i;
if (!core_list)
return;
for (i = 0; i < core_list->size; i++)
{
core_updater_list_entry_t *entry = &core_list->entries[i];
if (entry)
core_updater_list_free_entry(entry);
}
core_list->size = 0;
}
/* Frees specified core updater list */
void core_updater_list_free(core_updater_list_t *core_list)
{
size_t i;
if (!core_list)
return;
for (i = 0; i < core_list->size; i++)
{
core_updater_list_entry_t *entry = &core_list->entries[i];
if (entry)
core_updater_list_free_entry(entry);
}
free(core_list->entries);
core_list->entries = NULL;
free(core_list);
}
/***************/
/* Cached List */
/***************/
/* Creates a new, empty cached core updater list
* (i.e. 'global' list).
* Returns false in the event of an error. */
bool core_updater_list_init_cached(size_t max_size)
{
/* Free any existing cached core updater list */
if (core_list_cached)
{
core_updater_list_free(core_list_cached);
core_list_cached = NULL;
}
core_list_cached = core_updater_list_init(max_size);
if (!core_list_cached)
return false;
return true;
}
/* Fetches cached core updater list */
core_updater_list_t *core_updater_list_get_cached(void)
{
if (core_list_cached)
return core_list_cached;
return NULL;
}
/* Frees cached core updater list */
void core_updater_list_free_cached(void)
{
core_updater_list_free(core_list_cached);
core_list_cached = NULL;
}
/***********/
/* Getters */
/***********/
/* Returns number of entries in core updater list */
size_t core_updater_list_size(core_updater_list_t *core_list)
{
if (!core_list)
return 0;
return core_list->size;
}
/* Returns maximum allowed number of entries in core
* updater list */
size_t core_updater_list_capacity(core_updater_list_t *core_list)
{
if (!core_list)
return 0;
return core_list->capacity;
}
/* Fetches core updater list entry corresponding
* to the specified entry index.
* Returns false if index is invalid. */
bool core_updater_list_get_index(
core_updater_list_t *core_list,
size_t idx,
const core_updater_list_entry_t **entry)
{
if (!core_list || !entry)
return false;
if (idx >= core_list->size)
return false;
if (entry)
*entry = &core_list->entries[idx];
return true;
}
/* Fetches core updater list entry corresponding
* to the specified remote core filename.
* Returns false if core is not found. */
bool core_updater_list_get_filename(
core_updater_list_t *core_list,
const char *remote_filename,
const core_updater_list_entry_t **entry)
{
size_t i;
if (!core_list || string_is_empty(remote_filename))
return false;
if (core_list->size < 1)
return false;
/* Search for specified filename */
for (i = 0; i < core_list->size; i++)
{
core_updater_list_entry_t *current_entry = &core_list->entries[i];
if (string_is_empty(current_entry->remote_filename))
continue;
if (string_is_equal(remote_filename, current_entry->remote_filename))
{
if (entry)
*entry = current_entry;
return true;
}
}
return false;
}
/* Fetches core updater list entry corresponding
* to the specified core.
* Returns false if core is not found. */
bool core_updater_list_get_core(
core_updater_list_t *core_list,
const char *local_core_path,
const core_updater_list_entry_t **entry)
{
size_t i;
char real_core_path[PATH_MAX_LENGTH];
real_core_path[0] = '\0';
if (!core_list || !entry || string_is_empty(local_core_path))
return false;
if (core_list->size < 1)
return false;
/* Resolve absolute pathname of local_core_path */
strlcpy(real_core_path, local_core_path, sizeof(real_core_path));
path_resolve_realpath(real_core_path, sizeof(real_core_path), true);
if (string_is_empty(real_core_path))
return false;
/* Search for specified core */
for (i = 0; i < core_list->size; i++)
{
core_updater_list_entry_t *current_entry = &core_list->entries[i];
if (string_is_empty(current_entry->local_core_path))
continue;
#ifdef _WIN32
/* Handle case-insensitive operating systems*/
if (string_is_equal_noncase(real_core_path, current_entry->local_core_path))
{
#else
if (string_is_equal(real_core_path, current_entry->local_core_path))
{
#endif
if (entry)
*entry = current_entry;
return true;
}
}
return false;
}
/***********/
/* Setters */
/***********/
/* Parses date string and adds contents to
* specified core updater list entry */
static bool core_updater_list_set_date(
core_updater_list_entry_t *entry, const char *date_str)
{
struct string_list *date_list = NULL;
if (!entry || string_is_empty(date_str))
goto error;
/* Split date string into component values */
date_list = string_split(date_str, "-");
if (!date_list)
goto error;
/* Date string must have 3 values:
* [year] [month] [day] */
if (date_list->size < 3)
goto error;
/* Convert date string values */
entry->date.year = string_to_unsigned(date_list->elems[0].data);
entry->date.month = string_to_unsigned(date_list->elems[1].data);
entry->date.day = string_to_unsigned(date_list->elems[2].data);
/* Clean up */
string_list_free(date_list);
return true;
error:
if (date_list)
string_list_free(date_list);
return false;
}
/* Parses crc string and adds value to
* specified core updater list entry */
static bool core_updater_list_set_crc(
core_updater_list_entry_t *entry, const char *crc_str)
{
uint32_t crc;
if (!entry || string_is_empty(crc_str))
return false;
crc = (uint32_t)string_hex_to_unsigned(crc_str);
if (crc == 0)
return false;
entry->crc = crc;
return true;
}
/* Parses core filename string and adds all
* associated paths to the specified core
* updater list entry */
static bool core_updater_list_set_paths(
core_updater_list_entry_t *entry,
const char *path_dir_libretro,
const char *path_libretro_info,
const char *network_buildbot_url,
const char *filename_str)
{
char *last_underscore = NULL;
char *tmp_url = NULL;
char remote_core_path[PATH_MAX_LENGTH];
char local_core_path[PATH_MAX_LENGTH];
char local_info_path[PATH_MAX_LENGTH];
char display_name[255];
bool is_archive;
remote_core_path[0] = '\0';
local_core_path[0] = '\0';
local_info_path[0] = '\0';
display_name[0] = '\0';
if (!entry || string_is_empty(filename_str))
return false;
if (string_is_empty(path_dir_libretro) ||
string_is_empty(path_libretro_info) ||
string_is_empty(network_buildbot_url))
return false;
/* Check whether remote file is an archive */
is_archive = path_is_compressed_file(filename_str);
/* remote_filename */
if (entry->remote_filename)
{
free(entry->remote_filename);
entry->remote_filename = NULL;
}
entry->remote_filename = strdup(filename_str);
/* remote_core_path */
fill_pathname_join(
remote_core_path,
network_buildbot_url,
filename_str,
sizeof(remote_core_path));
/* > Apply proper URL encoding (messy...) */
tmp_url = strdup(remote_core_path);
remote_core_path[0] = '\0';
net_http_urlencode_full(
remote_core_path, tmp_url, sizeof(remote_core_path));
if (tmp_url)
free(tmp_url);
if (entry->remote_core_path)
{
free(entry->remote_core_path);
entry->remote_core_path = NULL;
}
entry->remote_core_path = strdup(remote_core_path);
/* local_core_path */
fill_pathname_join(
local_core_path,
path_dir_libretro,
filename_str,
sizeof(local_core_path));
if (is_archive)
path_remove_extension(local_core_path);
path_resolve_realpath(local_core_path, sizeof(local_core_path), true);
if (entry->local_core_path)
{
free(entry->local_core_path);
entry->local_core_path = NULL;
}
entry->local_core_path = strdup(local_core_path);
/* local_info_path */
fill_pathname_join_noext(
local_info_path,
path_libretro_info,
filename_str,
sizeof(local_info_path));
if (is_archive)
path_remove_extension(local_info_path);
/* > Remove any non-standard core filename
* additions (i.e. info files end with
* '_libretro' but core files may have
* a platform specific addendum,
* e.g. '_android')*/
last_underscore = (char*)strrchr(local_info_path, '_');
if (!string_is_empty(last_underscore))
{
if (string_is_not_equal_fast(last_underscore, "_libretro", 9))
*last_underscore = '\0';
}
/* > Add proper file extension */
strlcat(
local_info_path,
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
sizeof(local_info_path));
if (entry->local_info_path)
{
free(entry->local_info_path);
entry->local_info_path = NULL;
}
entry->local_info_path = strdup(local_info_path);
/* display_name
* > Note: It's a bit rubbish that we have to
* read the actual core info files here...
* Would be better to cache this globally
* (at present, we only cache info for
* *installed* cores...) */
if (path_is_valid(local_info_path))
if (!core_info_get_display_name(
local_info_path, display_name, sizeof(display_name)))
display_name[0] = '\0';
/* > If info file does not exist, just use
* core filename */
if (string_is_empty(display_name))
strlcpy(display_name, filename_str, sizeof(display_name));
if (entry->display_name)
{
free(entry->display_name);
entry->display_name = NULL;
}
entry->display_name = strdup(display_name);
return true;
}
/* Adds entry to the end of the specified core
* updater list
* NOTE: Entry string values are passed by
* reference - *do not free the entry passed
* to this function* */
static bool core_updater_list_push_entry(
core_updater_list_t *core_list, core_updater_list_entry_t *entry)
{
core_updater_list_entry_t *list_entry = NULL;
if (!core_list || !entry)
return false;
/* Ensure there is enough space for the new entry */
if (core_list->capacity <= core_list->size)
return false;
/* Get handle of new entry inside list */
list_entry = &core_list->entries[core_list->size];
if (!list_entry)
return false;
/* Ensure list entry is empty */
core_updater_list_free_entry(list_entry);
/* Assign paths */
list_entry->remote_filename = entry->remote_filename;
list_entry->remote_core_path = entry->remote_core_path;
list_entry->local_core_path = entry->local_core_path;
list_entry->local_info_path = entry->local_info_path;
list_entry->display_name = entry->display_name;
/* Copy crc */
list_entry->crc = entry->crc;
/* Copy date */
memcpy(&list_entry->date, &entry->date, sizeof(core_updater_list_date_t));
/* Increment list size */
core_list->size++;
return true;
}
/* Parses the contents of a single buildbot
* core listing and adds it to the specified
* core updater list */
static void core_updater_list_add_entry(
core_updater_list_t *core_list,
const char *path_dir_libretro,
const char *path_libretro_info,
const char *network_buildbot_url,
struct string_list *network_core_entry_list)
{
const char *date_str = NULL;
const char *crc_str = NULL;
const char *filename_str = NULL;
core_updater_list_entry_t entry = {0};
if (!core_list || !network_core_entry_list)
goto error;
/* > Listings must have 3 entries:
* [date] [crc] [filename] */
if (network_core_entry_list->size < 3)
goto error;
/* Get handles of the individual listing strings */
date_str = network_core_entry_list->elems[0].data;
crc_str = network_core_entry_list->elems[1].data;
filename_str = network_core_entry_list->elems[2].data;
if (string_is_empty(date_str) ||
string_is_empty(crc_str) ||
string_is_empty(filename_str))
goto error;
/* Check whether core file is already included
* in the list (this is *not* an error condition,
* it just means we can skip the current listing) */
if (core_updater_list_get_filename(core_list, filename_str, NULL))
goto error;
/* Parse individual listing strings */
if (!core_updater_list_set_date(&entry, date_str))
goto error;
if (!core_updater_list_set_crc(&entry, crc_str))
goto error;
if (!core_updater_list_set_paths(
&entry,
path_dir_libretro,
path_libretro_info,
network_buildbot_url,
filename_str))
goto error;
/* Add entry to list */
if (!core_updater_list_push_entry(core_list, &entry))
goto error;
return;
error:
/* This is not a *fatal* error - it just
* means one of the following:
* - The current line of entry text received
* from the buildbot is broken somehow
* (could be the case that the network buffer
* wasn't large enough to cache the entire
* string, so the last line was truncated)
* - The core updater list struct is at capacity
* In either case, the current entry is discarded
* and we move on to the next one
* (network transfers are fishy business, so we
* choose to ignore this sort of error - don't
* want the whole fetch to fail because of a
* trivial glitch...) */
core_updater_list_free_entry(&entry);
}
/* Core updater list qsort helper function */
static int core_updater_list_qsort_func(
const core_updater_list_entry_t *a, const core_updater_list_entry_t *b)
{
if (!a || !b)
return 0;
if (string_is_empty(a->display_name) || string_is_empty(b->display_name))
return 0;
return strcasecmp(a->display_name, b->display_name);
}
/* Sorts core updater list into alphabetical order */
static void core_updater_list_qsort(core_updater_list_t *core_list)
{
if (!core_list)
return;
if (core_list->size < 2)
return;
qsort(
core_list->entries,
core_list->size,
sizeof(core_updater_list_entry_t),
(int (*)(const void *, const void *))
core_updater_list_qsort_func);
}
/* Reads the contents of a buildbot core list
* network request into the specified
* core_updater_list_t object.
* Returns false in the event of an error. */
bool core_updater_list_parse_network_data(
core_updater_list_t *core_list,
const char *path_dir_libretro,
const char *path_libretro_info,
const char *network_buildbot_url,
const char *data, size_t len)
{
struct string_list *network_core_list = NULL;
struct string_list *network_core_entry_list = NULL;
char *data_buf = NULL;
size_t i;
/* Sanity check */
if (!core_list || string_is_empty(data) || (len < 1))
goto error;
/* We're populating a list 'from scratch' - remove
* any existing entries */
core_updater_list_reset(core_list);
/* Input data string is not terminated - have
* to copy it to a temporary buffer... */
data_buf = (char*)malloc((len + 1) * sizeof(char));
if (!data_buf)
goto error;
memcpy(data_buf, data, len * sizeof(char));
data_buf[len] = '\0';
/* Split network listing request into lines */
network_core_list = string_split(data_buf, "\n");
if (!network_core_list)
goto error;
if (network_core_list->size < 1)
goto error;
/* Temporary data buffer is no longer required */
free(data_buf);
data_buf = NULL;
/* Loop over lines */
for (i = 0; i < network_core_list->size; i++)
{
const char *line = network_core_list->elems[i].data;
if (string_is_empty(line))
continue;
/* Split line into listings info components */
network_core_entry_list = string_split(line, " ");
/* Parse listings info and add to core updater
* list */
core_updater_list_add_entry(
core_list,
path_dir_libretro,
path_libretro_info,
network_buildbot_url,
network_core_entry_list);
/* Clean up */
string_list_free(network_core_entry_list);
network_core_entry_list = NULL;
}
/* Sanity check */
if (core_list->size < 1)
goto error;
/* Clean up */
string_list_free(network_core_list);
/* Sort completed list */
core_updater_list_qsort(core_list);
return true;
error:
if (network_core_list)
string_list_free(network_core_list);
if (network_core_entry_list)
string_list_free(network_core_entry_list);
if (data_buf)
free(data_buf);
return false;
}
+147
View File
@@ -0,0 +1,147 @@
/* Copyright (C) 2010-2019 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (core_updater_list.h).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __CORE_UPDATER_LIST_H
#define __CORE_UPDATER_LIST_H
#include <retro_common_api.h>
#include <libretro.h>
#include <boolean.h>
RETRO_BEGIN_DECLS
/* Default maximum number of entries in
* a core updater list */
#define CORE_UPDATER_LIST_SIZE 9999
/* Holds all date info for a core file
* on the buildbot */
typedef struct
{
unsigned year;
unsigned month;
unsigned day;
} core_updater_list_date_t;
/* Holds all info related to a core
* file on the buildbot */
typedef struct
{
char *remote_filename;
char *remote_core_path;
char *local_core_path;
char *local_info_path;
char *display_name;
uint32_t crc;
core_updater_list_date_t date;
} core_updater_list_entry_t;
/* Prevent direct access to core_updater_list_t
* members */
typedef struct core_updater_list core_updater_list_t;
/**************************************/
/* Initialisation / De-Initialisation */
/**************************************/
/* Creates a new, empty core updater list with a
* maximum number of 'max_size' entries.
* Returns a handle to a new core_updater_list_t object
* on success, otherwise returns NULL. */
core_updater_list_t *core_updater_list_init(size_t max_size);
/* Resets (removes all entries of) specified core
* updater list */
void core_updater_list_reset(core_updater_list_t *core_list);
/* Frees specified core updater list */
void core_updater_list_free(core_updater_list_t *core_list);
/***************/
/* Cached List */
/***************/
/* Creates a new, empty cached core updater list
* (i.e. 'global' list).
* Returns false in the event of an error. */
bool core_updater_list_init_cached(size_t max_size);
/* Fetches cached core updater list */
core_updater_list_t *core_updater_list_get_cached(void);
/* Frees cached core updater list */
void core_updater_list_free_cached(void);
/***********/
/* Getters */
/***********/
/* Returns number of entries in core updater list */
size_t core_updater_list_size(core_updater_list_t *core_list);
/* Returns maximum allowed number of entries in core
* updater list */
size_t core_updater_list_capacity(core_updater_list_t *core_list);
/* Fetches core updater list entry corresponding
* to the specified entry index.
* Returns false if index is invalid. */
bool core_updater_list_get_index(
core_updater_list_t *core_list,
size_t idx,
const core_updater_list_entry_t **entry);
/* Fetches core updater list entry corresponding
* to the specified remote core filename.
* Returns false if core is not found. */
bool core_updater_list_get_filename(
core_updater_list_t *core_list,
const char *remote_filename,
const core_updater_list_entry_t **entry);
/* Fetches core updater list entry corresponding
* to the specified core.
* Returns false if core is not found. */
bool core_updater_list_get_core(
core_updater_list_t *core_list,
const char *local_core_path,
const core_updater_list_entry_t **entry);
/***********/
/* Setters */
/***********/
/* Reads the contents of a buildbot core list
* network request into the specified
* core_updater_list_t object.
* Returns false in the event of an error. */
bool core_updater_list_parse_network_data(
core_updater_list_t *core_list,
const char *path_dir_libretro,
const char *path_libretro_info,
const char *network_buildbot_url,
const char *data, size_t len);
RETRO_END_DECLS
#endif
+1 -1
View File
@@ -360,7 +360,7 @@ size_t libretro_videoprocessor_retro_get_memory_size(unsigned id);
#endif
#ifdef HAVE_EASTEREGG
#ifdef HAVE_GONG
/* Internal gong core. */
void libretro_gong_retro_init(void);
+17 -4
View File
@@ -75,6 +75,11 @@ endif
TARGET_NAME := ffmpeg
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
ifneq (,$(findstring unix,$(platform)))
ARCH_X86 = 1
TARGET := $(TARGET_NAME)_libretro.so
@@ -123,7 +128,7 @@ else ifneq (,$(findstring ios,$(platform)))
TARGET := $(TARGET_NAME)_libretro_ios.dylib
fpic := -fPIC
SHARED := -dynamiclib
CFLAGS += -I. -I.. -DHAVE_FMINF -DIOS
CFLAGS += -I. -I.. -DHAVE_FMINF -DIOS -DHAVE_UNISTD_H
ifeq ($(OPENGL),1)
HAVE_OPENGL = 1
GLES = 1
@@ -140,11 +145,16 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
ifeq ($(platform),ios-arm64)
CC = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
else
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
LD = armv7-apple-darwin11-ld
endif
ifeq ($(platform),ios9)
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
CC += -miphoneos-version-min=8.0
CFLAGS += -miphoneos-version-min=8.0
else
@@ -177,20 +187,23 @@ else ifeq ($(platform), emscripten)
else
ARCH_X86 = 1
CC = gcc
CXX = g++
TARGET := $(TARGET_NAME)_libretro.dll
SHARED := -shared -static-libgcc -static-libstdc++ -s -Wl,--version-script=link.T -Wl,--no-undefined
CFLAGS += -Iffmpeg
ifeq ($(OPENGL),1)
GL_LIB := -lopengl32
CFLAGS += -DHAVE_OPENGL
HAVE_OPENGL = 1
HAVE_GL_FFT := 1
WIN32_PLATFORM := 1
endif
LIBS += -L.
endif
ifeq ($(LIBRETRO_SWITCH), 1)
CFLAGS += -DUPSTREAM_VERSION=\"$(shell cat ../RELEASE)\"
endif
CFLAGS += -D__LIBRETRO__
include Makefile.common
+4 -1
View File
@@ -19,10 +19,13 @@ SWRESAMPLE_DIR := $(BASE_DIR)/libswresample
INCFLAGS += -I$(BASE_DIR) -I$(CORE_DIR) -I$(LIBRETRO_COMM_DIR)/include -I$(LIBRETRO_COMM_DIR)/include/compat
LIBRETRO_SOURCE += $(CORE_DIR)/ffmpeg_core.c \
$(CORE_DIR)/packet_buffer.c \
$(CORE_DIR)/video_buffer.c \
$(LIBRETRO_COMM_DIR)/rthreads/tpool.c \
$(LIBRETRO_COMM_DIR)/queues/fifo_queue.c \
$(LIBRETRO_COMM_DIR)/rthreads/rthreads.c
ifeq ($(LIBRETRO_SWITCH),1)
ifeq ($(LIBRETRO_SWITCH), 1)
DEFINES += -DLIBRETRO_SWITCH=1
INTERNAL_LIBAVCODEC = 1
INTERNAL_LIBAVFORMAT = 1
+1
View File
@@ -5,6 +5,7 @@ ifeq ($(INTERNAL_ZLIB),0)
HAVE_ZLIB = 1
else
HAVE_ZLIB = 1
DEFINES += -DWANT_ZLIB
INCFLAGS += -I$(DEPS_DIR)/libz
DEPS_SOURCE += $(wildcard $(DEPS_DIR)/libz/*.c)
endif
File diff suppressed because it is too large. Load diff
+135
View File
@@ -0,0 +1,135 @@
#include "packet_buffer.h"
struct AVPacketNode {
AVPacket *data;
struct AVPacketNode *next;
struct AVPacketNode *previous;
};
typedef struct AVPacketNode AVPacketNode_t;
struct packet_buffer
{
AVPacketNode_t *head;
AVPacketNode_t *tail;
size_t size;
};
packet_buffer_t *packet_buffer_create()
{
packet_buffer_t *b = (packet_buffer_t*)malloc(sizeof(packet_buffer_t));
if (!b)
return NULL;
memset(b, 0, sizeof(packet_buffer_t));
return b;
}
void packet_buffer_destroy(packet_buffer_t *packet_buffer)
{
AVPacketNode_t *node;
if (!packet_buffer)
return;
if (packet_buffer->head)
{
node = packet_buffer->head;
while (node)
{
AVPacketNode_t *next = node->next;
av_packet_free(&node->data);
free(node);
node = next;
}
}
free(packet_buffer);
}
void packet_buffer_clear(packet_buffer_t **packet_buffer)
{
if (!packet_buffer)
return;
packet_buffer_destroy(*packet_buffer);
*packet_buffer = packet_buffer_create();
}
bool packet_buffer_empty(packet_buffer_t *packet_buffer)
{
if (!packet_buffer)
return true;
return packet_buffer->size == 0;
}
size_t packet_buffer_size(packet_buffer_t *packet_buffer)
{
if (!packet_buffer)
return 0;
return packet_buffer->size;
}
void packet_buffer_add_packet(packet_buffer_t *packet_buffer, AVPacket *pkt)
{
AVPacketNode_t *new_head = (AVPacketNode_t *) malloc(sizeof(AVPacketNode_t));
new_head->data = av_packet_alloc();
av_packet_move_ref(new_head->data, pkt);
if (packet_buffer->head)
{
new_head->next = packet_buffer->head;
packet_buffer->head->previous = new_head;
}
else
{
new_head->next = NULL;
packet_buffer->tail = new_head;
}
packet_buffer->head = new_head;
packet_buffer->head->previous = NULL;
packet_buffer->size++;
}
void packet_buffer_get_packet(packet_buffer_t *packet_buffer, AVPacket *pkt)
{
AVPacketNode_t *new_tail = NULL;
if (!packet_buffer->tail)
return;
av_packet_move_ref(pkt, packet_buffer->tail->data);
if (packet_buffer->tail->previous)
{
new_tail = packet_buffer->tail->previous;
new_tail->next = NULL;
}
else
packet_buffer->head = NULL;
av_packet_free(&packet_buffer->tail->data);
free(packet_buffer->tail);
packet_buffer->tail = new_tail;
packet_buffer->size--;
}
int64_t packet_buffer_peek_start_pts(packet_buffer_t *packet_buffer)
{
if (!packet_buffer->tail)
return 0;
return packet_buffer->tail->data->pts;
}
int64_t packet_buffer_peek_end_pts(packet_buffer_t *packet_buffer)
{
if (!packet_buffer->tail)
return 0;
return packet_buffer->tail->data->pts + packet_buffer->tail->data->duration;
}
+110
View File
@@ -0,0 +1,110 @@
#ifndef __LIBRETRO_SDK_PACKETBUFFER_H__
#define __LIBRETRO_SDK_PACKETBUFFER_H__
#include <retro_common_api.h>
#include <boolean.h>
#include <stdint.h>
#include <libavcodec/avcodec.h>
#include <retro_miscellaneous.h>
RETRO_BEGIN_DECLS
/**
* packet_buffer
*
* Just a simple double linked list for AVPackets.
*
*/
struct packet_buffer;
typedef struct packet_buffer packet_buffer_t;
/**
* packet_buffer_create:
*
* Create a packet_buffer.
*
* Returns: A packet buffer.
*/
packet_buffer_t *packet_buffer_create();
/**
* packet_buffer_destroy:
* @packet_buffer : packet buffer
*
* Destroys a packet buffer.
*
**/
void packet_buffer_destroy(packet_buffer_t *packet_buffer);
/**
* packet_buffer_clear:
* @packet_buffer : packet buffer
*
* Clears a packet buffer by re-creating it.
*
**/
void packet_buffer_clear(packet_buffer_t **packet_buffer);
/**
* packet_buffer_empty:
* @packet_buffer : packet buffer
*
* Return true if the buffer is empty;
*
**/
bool packet_buffer_empty(packet_buffer_t *packet_buffer);
/**
* packet_buffer_size:
* @packet_buffer : packet buffer
*
* Returns the number of AVPackets the buffer currently
* holds.
*
**/
size_t packet_buffer_size(packet_buffer_t *packet_buffer);
/**
* packet_buffer_add_packet:
* @packet_buffer : packet buffer
* @pkt : packet
*
* Copies the given packet into the selected buffer.
*
**/
void packet_buffer_add_packet(packet_buffer_t *packet_buffer, AVPacket *pkt);
/**
* packet_buffer_get_packet:
* @packet_buffer : packet buffer
* @pkt : packet
*
* Get the next packet. User needs to unref the packet with av_packet_unref().
*
**/
void packet_buffer_get_packet(packet_buffer_t *packet_buffer, AVPacket *pkt);
/**
* packet_buffer_peek_start_pts:
* @packet_buffer : packet buffer
*
* Returns the start pts of the next packet in the buffer.
*
**/
int64_t packet_buffer_peek_start_pts(packet_buffer_t *packet_buffer);
/**
* packet_buffer_peek_end_pts:
* @packet_buffer : packet buffer
*
* Returns the end pts of the next packet in the buffer.
*
**/
int64_t packet_buffer_peek_end_pts(packet_buffer_t *packet_buffer);
RETRO_END_DECLS
#endif
+241
View File
@@ -0,0 +1,241 @@
#include <libavformat/avformat.h>
#include <rthreads/rthreads.h>
#include "video_buffer.h"
enum kbStatus
{
KB_OPEN,
KB_IN_PROGRESS,
KB_FINISHED
};
struct video_buffer
{
video_decoder_context_t *buffer;
enum kbStatus *status;
size_t capacity;
slock_t *lock;
scond_t *open_cond;
scond_t *finished_cond;
int64_t head;
int64_t tail;
};
video_buffer_t *video_buffer_create(size_t capacity, int frame_size, int width, int height)
{
video_buffer_t *b = (video_buffer_t*)malloc(sizeof(video_buffer_t));
if (!b)
return NULL;
memset(b, 0, sizeof(video_buffer_t));
b->capacity = capacity;
b->status = (enum kbStatus*)malloc(sizeof(enum kbStatus) * capacity);
if (!b->status)
goto fail;
for (int i = 0; i < capacity; i++)
b->status[i] = KB_OPEN;
b->lock = slock_new();
b->open_cond = scond_new();
b->finished_cond = scond_new();
if (!b->lock || !b->open_cond || !b->finished_cond)
goto fail;
b->buffer = (video_decoder_context_t*)malloc(sizeof(video_decoder_context_t) * capacity);
if (!b->buffer)
goto fail;
for (int i = 0; i < capacity; i++)
{
b->buffer[i].index = i;
b->buffer[i].pts = 0;
b->buffer[i].sws = sws_alloc_context();
b->buffer[i].source = av_frame_alloc();
#if LIBAVUTIL_VERSION_MAJOR > 55
b->buffer[i].hw_source = av_frame_alloc();
#endif
b->buffer[i].target = av_frame_alloc();
b->buffer[i].frame_buf = (uint8_t*)av_malloc(frame_size);
avpicture_fill((AVPicture*)b->buffer[i].target, (const uint8_t*)b->buffer[i].frame_buf,
PIX_FMT_RGB32, width, height);
if (!b->buffer[i].sws ||
!b->buffer[i].source ||
#if LIBAVUTIL_VERSION_MAJOR > 55
!b->buffer[i].hw_source ||
#endif
!b->buffer[i].target ||
!b->buffer[i].frame_buf)
goto fail;
}
return b;
fail:
video_buffer_destroy(b);
return NULL;
}
void video_buffer_destroy(video_buffer_t *video_buffer)
{
if (!video_buffer)
return;
slock_free(video_buffer->lock);
scond_free(video_buffer->open_cond);
scond_free(video_buffer->finished_cond);
free(video_buffer->status);
if (video_buffer->buffer)
for (int i = 0; i < video_buffer->capacity; i++)
{
#if LIBAVUTIL_VERSION_MAJOR > 55
av_frame_free(&video_buffer->buffer[i].hw_source);
#endif
av_frame_free(&video_buffer->buffer[i].source);
av_frame_free(&video_buffer->buffer[i].target);
av_freep(&video_buffer->buffer[i].frame_buf);
sws_freeContext(video_buffer->buffer[i].sws);
}
free(video_buffer->buffer);
free(video_buffer);
}
void video_buffer_clear(video_buffer_t *video_buffer)
{
if (!video_buffer)
return;
slock_lock(video_buffer->lock);
scond_signal(video_buffer->open_cond);
scond_signal(video_buffer->finished_cond);
video_buffer->head = 0;
video_buffer->tail = 0;
for (int i = 0; i < video_buffer->capacity; i++)
video_buffer->status[i] = KB_OPEN;
slock_unlock(video_buffer->lock);
}
void video_buffer_get_open_slot(video_buffer_t *video_buffer, video_decoder_context_t **context)
{
slock_lock(video_buffer->lock);
if (video_buffer->status[video_buffer->head] == KB_OPEN)
{
*context = &video_buffer->buffer[video_buffer->head];
video_buffer->status[video_buffer->head] = KB_IN_PROGRESS;
video_buffer->head++;
video_buffer->head %= video_buffer->capacity;
}
slock_unlock(video_buffer->lock);
}
void video_buffer_return_open_slot(video_buffer_t *video_buffer, video_decoder_context_t *context)
{
slock_lock(video_buffer->lock);
if (video_buffer->status[context->index] == KB_IN_PROGRESS)
{
video_buffer->status[context->index] = KB_OPEN;
video_buffer->head--;
video_buffer->head %= video_buffer->capacity;
}
slock_unlock(video_buffer->lock);
}
void video_buffer_open_slot(video_buffer_t *video_buffer, video_decoder_context_t *context)
{
slock_lock(video_buffer->lock);
if (video_buffer->status[context->index] == KB_FINISHED)
{
video_buffer->status[context->index] = KB_OPEN;
video_buffer->tail++;
video_buffer->tail %= (video_buffer->capacity);
scond_signal(video_buffer->open_cond);
}
slock_unlock(video_buffer->lock);
}
void video_buffer_get_finished_slot(video_buffer_t *video_buffer, video_decoder_context_t **context)
{
slock_lock(video_buffer->lock);
if (video_buffer->status[video_buffer->tail] == KB_FINISHED)
*context = &video_buffer->buffer[video_buffer->tail];
slock_unlock(video_buffer->lock);
}
void video_buffer_finish_slot(video_buffer_t *video_buffer, video_decoder_context_t *context)
{
slock_lock(video_buffer->lock);
if (video_buffer->status[context->index] == KB_IN_PROGRESS)
{
video_buffer->status[context->index] = KB_FINISHED;
scond_signal(video_buffer->finished_cond);
}
slock_unlock(video_buffer->lock);
}
bool video_buffer_wait_for_open_slot(video_buffer_t *video_buffer)
{
slock_lock(video_buffer->lock);
while (video_buffer->status[video_buffer->head] != KB_OPEN)
scond_wait(video_buffer->open_cond, video_buffer->lock);
slock_unlock(video_buffer->lock);
return true;
}
bool video_buffer_wait_for_finished_slot(video_buffer_t *video_buffer)
{
slock_lock(video_buffer->lock);
while (video_buffer->status[video_buffer->tail] != KB_FINISHED)
scond_wait(video_buffer->finished_cond, video_buffer->lock);
slock_unlock(video_buffer->lock);
return true;
}
bool video_buffer_has_open_slot(video_buffer_t *video_buffer)
{
bool ret = false;
slock_lock(video_buffer->lock);
if (video_buffer->status[video_buffer->head] == KB_OPEN)
ret = true;
slock_unlock(video_buffer->lock);
return ret;
}
bool video_buffer_has_finished_slot(video_buffer_t *video_buffer)
{
bool ret = false;
slock_lock(video_buffer->lock);
if (video_buffer->status[video_buffer->tail] == KB_FINISHED)
ret = true;
slock_unlock(video_buffer->lock);
return ret;
}
+195
View File
@@ -0,0 +1,195 @@
#ifndef __LIBRETRO_SDK_VIDEOBUFFER_H__
#define __LIBRETRO_SDK_VIDEOBUFFER_H__
#include <retro_common_api.h>
#include <boolean.h>
#include <stdint.h>
#ifdef HAVE_SSA
#include <ass/ass.h>
#endif
#include <libavutil/frame.h>
#include <libswscale/swscale.h>
#include <retro_miscellaneous.h>
RETRO_BEGIN_DECLS
#ifndef PIX_FMT_RGB32
#define PIX_FMT_RGB32 AV_PIX_FMT_RGB32
#endif
/**
* video_decoder_context
*
* Context object for the sws worker threads.
*
*/
struct video_decoder_context
{
int index;
int64_t pts;
struct SwsContext *sws;
AVFrame *source;
#if LIBAVUTIL_VERSION_MAJOR > 55
AVFrame *hw_source;
#endif
AVFrame *target;
#ifdef HAVE_SSA
ASS_Track *ass_track_active;
#endif
uint8_t *frame_buf;
};
typedef struct video_decoder_context video_decoder_context_t;
/**
* video_buffer
*
* The video buffer is a ring buffer, that can be used as a
* buffer for many workers while keeping the order.
*
* It is thread safe in a sensem that it is designed to work
* with one work coordinator, that allocates work slots for
* workers threads to work on and later collect the work
* product in the same order, as the slots were allocated.
*
*/
struct video_buffer;
typedef struct video_buffer video_buffer_t;
/**
* video_buffer_create:
* @capacity : Size of the buffer.
* @frame_size : Size of the target frame.
* @width : Width of the target frame.
* @height : Height of the target frame.
*
* Create a video buffer.
*
* Returns: A video buffer.
*/
video_buffer_t *video_buffer_create(size_t capacity, int frame_size, int width, int height);
/**
* video_buffer_destroy:
* @video_buffer : video buffer.
*
* Destroys a video buffer.
*
* Does also free the buffer allocated with video_buffer_create().
* User has to shut down any external worker threads that may have
* a reference to this video buffer.
*
**/
void video_buffer_destroy(video_buffer_t *video_buffer);
/**
* video_buffer_clear:
* @video_buffer : video buffer.
*
* Clears a video buffer.
*
**/
void video_buffer_clear(video_buffer_t *video_buffer);
/**
* video_buffer_get_open_slot:
* @video_buffer : video buffer.
* @context : sws context.
*
* Returns the next open context inside the ring buffer
* and it's index. The status of the slot will be marked as
* 'in progress' until slot is marked as finished with
* video_buffer_finish_slot();
*
**/
void video_buffer_get_open_slot(video_buffer_t *video_buffer, video_decoder_context_t **context);
/**
* video_buffer_return_open_slot:
* @video_buffer : video buffer.
* @context : sws context.
*
* Marks the given sws context that is "in progress" as "open" again.
*
**/
void video_buffer_return_open_slot(video_buffer_t *video_buffer, video_decoder_context_t *context);
/**
* video_buffer_open_slot:
* @video_buffer : video buffer.
* @context : sws context.
*
* Sets the status of the given context from "finished" to "open".
* The slot is then available for producers to claim again with video_buffer_get_open_slot().
**/
void video_buffer_open_slot(video_buffer_t *video_buffer, video_decoder_context_t *context);
/**
* video_buffer_get_finished_slot:
* @video_buffer : video buffer.
* @context : sws context.
*
* Returns a reference for the next context inside
* the ring buffer. User needs to use video_buffer_open_slot()
* to open the slot in the ringbuffer for the next
* work assignment. User is free to re-allocate or
* re-use the context.
*/
void video_buffer_get_finished_slot(video_buffer_t *video_buffer, video_decoder_context_t **context);
/**
* video_buffer_finish_slot:
* @video_buffer : video buffer.
* @context : sws context.
*
* Sets the status of the given context from "in progress" to "finished".
* This is normally done by a producer. User can then retrieve the finished work
* context by calling video_buffer_get_finished_slot().
*/
void video_buffer_finish_slot(video_buffer_t *video_buffer, video_decoder_context_t *context);
/**
* video_buffer_wait_for_open_slot:
* @video_buffer : video buffer.
*
* Blocks until open slot is available.
*
* Returns true if the buffer has a open slot available.
*/
bool video_buffer_wait_for_open_slot(video_buffer_t *video_buffer);
/**
* video_buffer_wait_for_finished_slot:
* @video_buffer : video buffer.
*
* Blocks until finished slot is available.
*
* Returns true if the buffers next slot is finished and a
* context available.
*/
bool video_buffer_wait_for_finished_slot(video_buffer_t *video_buffer);
/**
* bool video_buffer_has_open_slot(video_buffer_t *video_buffer)
:
* @video_buffer : video buffer.
*
* Returns true if the buffer has a open slot available.
*/
bool video_buffer_has_open_slot(video_buffer_t *video_buffer);
/**
* video_buffer_has_finished_slot:
* @video_buffer : video buffer.
*
* Returns true if the buffers next slot is finished and a
* context available.
*/
bool video_buffer_has_finished_slot(video_buffer_t *video_buffer);
RETRO_END_DECLS
#endif
+1 -1
View File
@@ -386,7 +386,7 @@ void GONG_CORE_PREFIX(retro_init)(void)
else
GONG_CORE_PREFIX(log_cb) = NULL;
video_buf = (unsigned char*)calloc(1, WIDTH * HEIGHT * sizeof(unsigned char));
video_buf = (unsigned char*)calloc(1, WIDTH * HEIGHT * sizeof(unsigned));
game_buffer.width = WIDTH;
game_buffer.height = HEIGHT;
+1
View File
@@ -8,6 +8,7 @@ image_core.so: image_core.c
../../libretro-common/compat/compat_strcasestr.c \
../../libretro-common/compat/compat_strl.c \
../../libretro-common/file/file_path.c \
../../libretro-common/file/file_path_io.c \
../../libretro-common/file/retro_dirent.c \
../../libretro-common/lists/dir_list.c \
../../libretro-common/lists/string_list.c \
+1 -1
View File
@@ -24,4 +24,4 @@ void dump_result_value(Result val);
#define PRINTFPOS_STR(X,Y) "\x1b["X";"Y"H"
#define PRINTF_LINE(X) "\x1b["X";0H"
#endif //_CTR_DEBUG_H__
#endif /* _CTR_DEBUG_H__ */
+15 -12
View File
@@ -88,7 +88,9 @@ struct MemPool
last = nullptr;
}
//void Dump(const char* title);
#if 0
void Dump(const char* title);
#endif
u32 GetFreeSpace();
};
@@ -159,25 +161,25 @@ static bool linearInit(void)
void* linearMemAlign(size_t size, size_t alignment)
{
// Enforce minimum alignment
int shift;
/* Enforce minimum alignment */
if (alignment < 16)
alignment = 16;
// Convert alignment to shift amount
int shift;
/* Convert alignment to shift amount */
for (shift = 4; shift < 32; shift ++)
{
if ((1U<<shift) == alignment)
break;
}
if (shift == 32) // Invalid alignment
if (shift == 32) /* Invalid alignment */
return nullptr;
// Initialize the pool if it is not ready
/* Initialize the pool if it is not ready */
if (!sLinearPool.Ready() && !linearInit())
return nullptr;
// Allocate the chunk
/* Allocate the chunk */
MemChunk chunk;
if (!sLinearPool.Allocate(chunk, size, shift))
return nullptr;
@@ -211,23 +213,24 @@ void* linearAlloc(size_t size)
void* linearRealloc(void* mem, size_t size)
{
// TODO
/* TODO */
return NULL;
}
void linearFree(void* mem)
{
auto node = getNode(mem);
if (!node) return;
if (!node)
return;
// Free the chunk
/* Free the chunk */
sLinearPool.Deallocate(node->chunk);
// Free the node
/* Free the node */
delNode(node);
}
u32 linearSpaceFree()
u32 linearSpaceFree(void)
{
return sLinearPool.GetFreeSpace();
}
+2 -3
View File
@@ -17,8 +17,8 @@ u32 ctr_get_linear_unused(void);
u32 ctr_get_stack_free(void)
{
extern u32 __stack_bottom;
uint32_t* stack_bottom_current = (u32*)__stack_bottom;
while(*stack_bottom_current++ == 0xFCFCFCFC);
stack_bottom_current--;
@@ -110,12 +110,11 @@ void ctr_request_free_pages(u32 pages)
void* _sbrk_r(struct _reent *ptr, ptrdiff_t incr)
{
static u32 sbrk_top = 0;
u32 tmp;
if (!sbrk_top)
sbrk_top = __heapBase;
u32 tmp;
int diff = ((sbrk_top + incr + 0xFFF) & ~0xFFF)
- (__heapBase + __heap_size);
+35 -19
View File
@@ -23,7 +23,7 @@ extern void* __service_ptr;
typedef u32(*backdoor_fn)(u32 arg0, u32 arg1);
__attribute((naked))
static u32 svc_7b(backdoor_fn entry_fn, ...) // can pass up to two arguments to entry_fn(...)
static u32 svc_7b(backdoor_fn entry_fn, ...) /* can pass up to two arguments to entry_fn(...) */
{
__asm__ volatile(
"push {r0, r1, r2} \n\t"
@@ -161,19 +161,17 @@ static void target_thread_entry(mch2_thread_args_t* args)
static u32 get_first_free_basemem_page(bool isNew3DS)
{
s64 v1;
int memused_base;
int memused_base_linear; // guessed
memused_base = osGetMemRegionUsed(MEMREGION_BASE);
int memused_base_linear; /* guessed */
int memused_base = osGetMemRegionUsed(MEMREGION_BASE);
svcGetSystemInfo(&v1, 2, 0);
memused_base_linear = 0x6C000 + v1 +
(osGetKernelVersion() > SYSTEM_VERSION(2, 49, 0) ? (isNew3DS ? 0x2000 : 0x1000) : 0x0);
return (osGetKernelVersion() > SYSTEM_VERSION(2, 40, 0) ? 0xE0000000 : 0xF0000000) // kernel FCRAM mapping
+ (isNew3DS ? 0x10000000 : 0x08000000) // FCRAM size
- (memused_base - memused_base_linear) // memory usage for pages allocated without the MEMOP_LINEAR flag
- 0x1000; // skip to the start addr of the next free page
return (osGetKernelVersion() > SYSTEM_VERSION(2, 40, 0) ? 0xE0000000 : 0xF0000000) /* kernel FCRAM mapping */
+ (isNew3DS ? 0x10000000 : 0x08000000) /* FCRAM size */
- (memused_base - memused_base_linear) /* memory usage for pages allocated without the MEMOP_LINEAR flag */
- 0x1000; /* skip to the start addr of the next free page */
}
@@ -280,7 +278,7 @@ static void do_memchunkhax2(void)
u32 alloc_address_kaddr = osConvertVirtToPhys((void*)linear_address) + mch2.kernel_fcram_mapping_offset;
mch2.thread_page_kva = get_first_free_basemem_page(mch2.isNew3DS) - 0x10000; // skip down 16 pages
mch2.thread_page_kva = get_first_free_basemem_page(mch2.isNew3DS) - 0x10000; /* skip down 16 pages */
((u32*)linear_buffer)[0] = 1;
((u32*)linear_buffer)[1] = mch2.thread_page_kva;
((u32*)linear_buffer)[2] = alloc_address_kaddr + (((mch2.alloc_size >> 12) - 3) << 13) + (skip_pages << 12);
@@ -404,8 +402,9 @@ static void gspwn(u32 dst, u32 src, u32 size, u8* flush_buffer)
* *(u32*)val1 = 0x0;
*/
// X-X--X-X
// X-XXXX-X
/* X-X--X-X
* X-XXXX-X
*/
static void memchunkhax1_write_pair(u32 val1, u32 val2)
{
@@ -458,12 +457,26 @@ static void do_memchunkhax1(void)
{
u32 saved_vram_value = *(u32*)0x1F000008;
// 0x1F000000 contains the enable bit for svc 0x7B
/* 0x1F000000 contains the enable bit for svc 0x7B */
memchunkhax1_write_pair(get_thread_page() + THREAD_PAGE_ACL_OFFSET + SVC_ACL_OFFSET(0x7B), 0x1F000000);
write_kaddr(0x1F000008, saved_vram_value);
}
Result get_luma_version(u32 *major, u32 *minor)
{
s64 out;
u32 version;
if (R_FAILED(svcGetSystemInfo(&out, 0x10000, 0)))
return -1;
version = (u32)out;
*major = GET_VERSION_MAJOR(version);
*minor = GET_VERSION_MINOR(version);
return 0;
}
Result svchax_init(bool patch_srv)
{
bool isNew3DS;
@@ -475,12 +488,15 @@ Result svchax_init(bool patch_srv)
{
if (__service_ptr)
{
if (kver > SYSTEM_VERSION(2, 50, 11))
return -1;
else if (kver > SYSTEM_VERSION(2, 46, 0))
do_memchunkhax2();
else
do_memchunkhax1();
u32 luma_major, luma_minor;
if (kver > SYSTEM_VERSION(2, 50, 11) &&
(R_FAILED(get_luma_version(&luma_major, &luma_minor) || luma_major < 8)))
return -1;
else if (kver > SYSTEM_VERSION(2, 46, 0) && kver <= SYSTEM_VERSION(2, 50, 11))
do_memchunkhax2();
else if (kver <= SYSTEM_VERSION(2, 46, 0))
do_memchunkhax1();
}
svc_7b((backdoor_fn)k_enable_all_svcs, isNew3DS);
+73 -59
View File
@@ -9,75 +9,89 @@ extern const loaderFuncs_s loader_Ninjhax1;
extern const loaderFuncs_s loader_Ninjhax2;
extern const loaderFuncs_s loader_Rosalina;
static void (*launch_3dsx)(const char* path, argData_s* args, executableMetadata_s* em);
static void (*launch_3dsx)(const char* path,
argData_s* args, executableMetadata_s* em);
static int exec_3dsx_actual(const char* path, const char** args, bool appendPath){
struct stat sBuff;
argData_s newProgramArgs;
unsigned int argChars = 0;
unsigned int argNum = 0;
bool fileExists;
bool inited;
static int exec_3dsx_actual(const char* path,
const char** args, bool appendPath)
{
struct stat sBuff;
argData_s newProgramArgs;
unsigned int argChars = 0;
unsigned int argNum = 0;
bool fileExists;
bool inited;
if(path == NULL || path[0] == '\0'){
errno = EINVAL;
return -1;
}
if (!path || path[0] == '\0')
{
errno = EINVAL;
return -1;
}
fileExists = stat(path, &sBuff) == 0;
if(!fileExists){
errno = ENOENT;
return -1;
}
else if(S_ISDIR(sBuff.st_mode)){
errno = EINVAL;
return -1;
}
fileExists = stat(path, &sBuff) == 0;
if (!fileExists)
{
errno = ENOENT;
return -1;
}
else if (S_ISDIR(sBuff.st_mode))
{
errno = EINVAL;
return -1;
}
//args the string functions write to the passed string, this will cause a write to read only memory sot the string must be cloned
memset(newProgramArgs.buf, '\0', sizeof(newProgramArgs.buf));
newProgramArgs.dst = (char*)&newProgramArgs.buf[1];
if(appendPath){
strcpy(newProgramArgs.dst, path);
newProgramArgs.dst += strlen(path) + 1;
newProgramArgs.buf[0]++;
/* args the string functions write to the passed string,
* this will cause a write to read only memory,
* so the string must be cloned */
memset(newProgramArgs.buf, '\0', sizeof(newProgramArgs.buf));
newProgramArgs.dst = (char*)&newProgramArgs.buf[1];
if (appendPath)
{
strcpy(newProgramArgs.dst, path);
newProgramArgs.dst += strlen(path) + 1;
newProgramArgs.buf[0]++;
}
while(args[argNum] != NULL)
{
strcpy(newProgramArgs.dst, args[argNum]);
newProgramArgs.dst += strlen(args[argNum]) + 1;
newProgramArgs.buf[0]++;
argNum++;
}
}
while(args[argNum] != NULL){
strcpy(newProgramArgs.dst, args[argNum]);
newProgramArgs.dst += strlen(args[argNum]) + 1;
newProgramArgs.buf[0]++;
argNum++;
}
inited = loader_Rosalina.init();
launch_3dsx = loader_Rosalina.launchFile;
inited = loader_Rosalina.init();
launch_3dsx = loader_Rosalina.launchFile;
if (!inited)
{
inited = loader_Ninjhax2.init();
launch_3dsx = loader_Ninjhax2.launchFile;
}
if(!inited){
inited = loader_Ninjhax2.init();
launch_3dsx = loader_Ninjhax2.launchFile;
}
if (!inited)
{
inited = loader_Ninjhax1.init();
launch_3dsx = loader_Ninjhax1.launchFile;
}
if(!inited){
inited = loader_Ninjhax1.init();
launch_3dsx = loader_Ninjhax1.launchFile;
}
if (inited)
{
osSetSpeedupEnable(false);
launch_3dsx(path, &newProgramArgs, NULL);
exit(0);
}
if(inited){
osSetSpeedupEnable(false);
launch_3dsx(path, &newProgramArgs, NULL);
exit(0);
}
//should never be reached
errno = ENOTSUP;
return -1;
/* should never be reached */
errno = ENOTSUP;
return -1;
}
int exec_3dsx(const char* path, const char** args){
return exec_3dsx_actual(path, args, true/*appendPath*/);
int exec_3dsx(const char* path, const char** args)
{
return exec_3dsx_actual(path, args, true/*appendPath*/);
}
int exec_3dsx_no_path_in_args(const char* path, const char** args){
return exec_3dsx_actual(path, args, false/*appendPath*/);
}
int exec_3dsx_no_path_in_args(const char* path, const char** args)
{
return exec_3dsx_actual(path, args, false/*appendPath*/);
}
+8 -3
View File
@@ -1,9 +1,14 @@
#ifndef EXEC_3DSX_H
#define EXEC_3DSX_H
//since 3dsx programs are not guaranteed access to the OS, the 3dsx bootloader run by the exploit must run the next program
//your program must have no extra threads running when this is called, these limits do not apply to exec_cia
/* since 3dsx programs are not guaranteed access to the OS,
* the 3dsx bootloader run by the exploit must run the next program
*
* your program must have no extra threads running when this is called,
* these limits do not apply to exec_cia
*/
int exec_3dsx_no_path_in_args(const char* path, const char** args);
int exec_3dsx(const char* path, const char** args);
#endif
#endif
+164 -147
View File
@@ -13,187 +13,204 @@ typedef struct{
char argvHmac[0x20] = {0x1d, 0x78, 0xff, 0xb9, 0xc5, 0xbc, 0x78, 0xb7, 0xac, 0x29, 0x1d, 0x3e, 0x16, 0xd0, 0xcf, 0x53, 0xef, 0x12, 0x58, 0x83, 0xb6, 0x9e, 0x2f, 0x79, 0x47, 0xf9, 0x35, 0x61, 0xeb, 0x50, 0xd7, 0x67};
static void errorAndQuit(const char* errorStr){
errorConf error;
static void errorAndQuit(const char* errorStr)
{
errorConf error;
errorInit(&error, ERROR_TEXT, CFG_LANGUAGE_EN);
errorText(&error, errorStr);
errorDisp(&error);
exit(0);
errorInit(&error, ERROR_TEXT, CFG_LANGUAGE_EN);
errorText(&error, errorStr);
errorDisp(&error);
exit(0);
}
static int isCiaInstalled(u64 titleId, u16 version){
u32 titlesToRetrieve;
u32 titlesRetrieved;
u64* titleIds;
bool titleExists = false;
AM_TitleEntry titleInfo;
Result failed;
static int isCiaInstalled(u64 titleId, u16 version)
{
u32 titlesToRetrieve;
u32 titlesRetrieved;
u64* titleIds;
bool titleExists = false;
AM_TitleEntry titleInfo;
Result failed;
failed = AM_GetTitleCount(MEDIATYPE_SD, &titlesToRetrieve);
if(R_FAILED(failed))
return -1;
failed = AM_GetTitleCount(MEDIATYPE_SD, &titlesToRetrieve);
if (R_FAILED(failed))
return -1;
titleIds = malloc(titlesToRetrieve * sizeof(uint64_t));
if(titleIds == NULL)
return -1;
titleIds = malloc(titlesToRetrieve * sizeof(uint64_t));
if (!titleIds)
return -1;
failed = AM_GetTitleList(&titlesRetrieved, MEDIATYPE_SD, titlesToRetrieve, titleIds);
if(R_FAILED(failed))
return -1;
failed = AM_GetTitleList(&titlesRetrieved, MEDIATYPE_SD, titlesToRetrieve, titleIds);
if (R_FAILED(failed))
return -1;
for(u32 titlesToCheck = 0; titlesToCheck < titlesRetrieved; titlesToCheck++){
if(titleIds[titlesToCheck] == titleId){
titleExists = true;
break;
}
}
for(u32 titlesToCheck = 0; titlesToCheck < titlesRetrieved; titlesToCheck++)
{
if (titleIds[titlesToCheck] == titleId)
{
titleExists = true;
break;
}
}
free(titleIds);
free(titleIds);
if(titleExists){
failed = AM_GetTitleInfo(MEDIATYPE_SD, 1 /*titleCount*/, &titleId, &titleInfo);
if(R_FAILED(failed))
return -1;
if (titleExists)
{
failed = AM_GetTitleInfo(MEDIATYPE_SD, 1 /*titleCount*/, &titleId, &titleInfo);
if (R_FAILED(failed))
return -1;
if(titleInfo.version == version)
return 1;
}
if (titleInfo.version == version)
return 1;
}
return 0;
return 0;
}
static int installCia(Handle ciaFile){
Result failed;
Handle outputHandle;
u64 fileSize;
u64 fileOffset = 0;
u32 bytesRead;
u32 bytesWritten;
u8 transferBuffer[FILE_CHUNK_SIZE];
static int installCia(Handle ciaFile)
{
Result failed;
Handle outputHandle;
u64 fileSize;
u64 fileOffset = 0;
u32 bytesRead;
u32 bytesWritten;
u8 transferBuffer[FILE_CHUNK_SIZE];
failed = AM_StartCiaInstall(MEDIATYPE_SD, &outputHandle);
if(R_FAILED(failed))
return -1;
failed = AM_StartCiaInstall(MEDIATYPE_SD, &outputHandle);
if (R_FAILED(failed))
return -1;
failed = FSFILE_GetSize(ciaFile, &fileSize);
if(R_FAILED(failed))
return -1;
failed = FSFILE_GetSize(ciaFile, &fileSize);
if (R_FAILED(failed))
return -1;
while(fileOffset < fileSize){
u64 bytesRemaining = fileSize - fileOffset;
failed = FSFILE_Read(ciaFile, &bytesRead, fileOffset, transferBuffer, bytesRemaining < FILE_CHUNK_SIZE ? bytesRemaining : FILE_CHUNK_SIZE);
if(R_FAILED(failed)){
AM_CancelCIAInstall(outputHandle);
return -1;
}
while(fileOffset < fileSize)
{
u64 bytesRemaining = fileSize - fileOffset;
failed = FSFILE_Read(ciaFile, &bytesRead, fileOffset, transferBuffer, bytesRemaining < FILE_CHUNK_SIZE ? bytesRemaining : FILE_CHUNK_SIZE);
if (R_FAILED(failed))
{
AM_CancelCIAInstall(outputHandle);
return -1;
}
failed = FSFILE_Write(outputHandle, &bytesWritten, fileOffset, transferBuffer, bytesRead, 0);
if(R_FAILED(failed)){
AM_CancelCIAInstall(outputHandle);
if(R_DESCRIPTION(failed) == RD_ALREADY_EXISTS)
return 1;
return -1;
}
failed = FSFILE_Write(outputHandle, &bytesWritten, fileOffset, transferBuffer, bytesRead, 0);
if (R_FAILED(failed))
{
AM_CancelCIAInstall(outputHandle);
if (R_DESCRIPTION(failed) == RD_ALREADY_EXISTS)
return 1;
return -1;
}
if(bytesWritten != bytesRead){
AM_CancelCIAInstall(outputHandle);
return -1;
}
if (bytesWritten != bytesRead)
{
AM_CancelCIAInstall(outputHandle);
return -1;
}
fileOffset += bytesWritten;
}
fileOffset += bytesWritten;
}
failed = AM_FinishCiaInstall(outputHandle);
if(R_FAILED(failed))
return -1;
failed = AM_FinishCiaInstall(outputHandle);
if (R_FAILED(failed))
return -1;
return 1;
return 1;
}
int exec_cia(const char* path, const char** args){
struct stat sBuff;
bool fileExists;
bool inited;
int exec_cia(const char* path, const char** args)
{
struct stat sBuff;
bool fileExists;
bool inited;
if(path == NULL || path[0] == '\0'){
errno = EINVAL;
return -1;
}
if (!path || path[0] == '\0')
{
errno = EINVAL;
return -1;
}
fileExists = stat(path, &sBuff) == 0;
if(!fileExists){
errno = ENOENT;
return -1;
}
else if(S_ISDIR(sBuff.st_mode)){
errno = EINVAL;;
return -1;
}
fileExists = stat(path, &sBuff) == 0;
if (!fileExists)
{
errno = ENOENT;
return -1;
}
else if (S_ISDIR(sBuff.st_mode))
{
errno = EINVAL;
return -1;
}
inited = R_SUCCEEDED(amInit()) && R_SUCCEEDED(fsInit());
if(inited){
Result res;
AM_TitleEntry ciaInfo;
FS_Archive ciaArchive;
Handle ciaFile;
int ciaInstalled;
ciaParam param;
int argsLength;
inited = R_SUCCEEDED(amInit()) && R_SUCCEEDED(fsInit());
if (inited)
{
AM_TitleEntry ciaInfo;
FS_Archive ciaArchive;
Handle ciaFile;
int ciaInstalled;
ciaParam param;
int argsLength;
/* open CIA file */
Result res = FSUSER_OpenArchive(&ciaArchive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY, ""));
//open cia file
res = FSUSER_OpenArchive(&ciaArchive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY, ""));
if(R_FAILED(res))
errorAndQuit("Cant open SD FS archive.");
if (R_FAILED(res))
errorAndQuit("Cant open SD FS archive.");
res = FSUSER_OpenFile(&ciaFile, ciaArchive, fsMakePath(PATH_ASCII, path + 5/*skip "sdmc:"*/), FS_OPEN_READ, 0);
if(R_FAILED(res))
errorAndQuit("Cant open CIA file.");
res = FSUSER_OpenFile(&ciaFile, ciaArchive, fsMakePath(PATH_ASCII, path + 5/*skip "sdmc:"*/), FS_OPEN_READ, 0);
if (R_FAILED(res))
errorAndQuit("Cant open CIA file.");
res = AM_GetCiaFileInfo(MEDIATYPE_SD, &ciaInfo, ciaFile);
if(R_FAILED(res))
errorAndQuit("Cant get CIA file info.");
res = AM_GetCiaFileInfo(MEDIATYPE_SD, &ciaInfo, ciaFile);
if (R_FAILED(res))
errorAndQuit("Cant get CIA file info.");
ciaInstalled = isCiaInstalled(ciaInfo.titleID, ciaInfo.version);
if(ciaInstalled == -1){
//error
errorAndQuit("Could not read title id list.");
}
else if(ciaInstalled == 0){
//not installed
int error = installCia(ciaFile);
if(error == -1)
errorAndQuit("Cant install CIA.");
}
ciaInstalled = isCiaInstalled(ciaInfo.titleID, ciaInfo.version);
if (ciaInstalled == -1)
{
/* error */
errorAndQuit("Could not read title ID list.");
}
else if (ciaInstalled == 0)
{
/* not installed */
int error = installCia(ciaFile);
if (error == -1)
errorAndQuit("Cant install CIA.");
}
FSFILE_Close(ciaFile);
FSUSER_CloseArchive(ciaArchive);
FSFILE_Close(ciaFile);
FSUSER_CloseArchive(ciaArchive);
param.argc = 0;
argsLength = 0;
char* argLocation = param.args;
while(args[param.argc] != NULL){
strcpy(argLocation, args[param.argc]);
argLocation += strlen(args[param.argc]) + 1;
argsLength += strlen(args[param.argc]) + 1;
param.argc++;
}
param.argc = 0;
argsLength = 0;
char* argLocation = param.args;
while(args[param.argc] != NULL)
{
strcpy(argLocation, args[param.argc]);
argLocation += strlen(args[param.argc]) + 1;
argsLength += strlen(args[param.argc]) + 1;
param.argc++;
}
res = APT_PrepareToDoApplicationJump(0, ciaInfo.titleID, 0x1);
if(R_FAILED(res))
errorAndQuit("CIA cant run, cant prepare.");
res = APT_PrepareToDoApplicationJump(0, ciaInfo.titleID, 0x1);
if (R_FAILED(res))
errorAndQuit("CIA cant run, cant prepare.");
res = APT_DoApplicationJump(&param, sizeof(param.argc) + argsLength, argvHmac);
if(R_FAILED(res))
errorAndQuit("CIA cant run, cant jump.");
res = APT_DoApplicationJump(&param, sizeof(param.argc) + argsLength, argvHmac);
if (R_FAILED(res))
errorAndQuit("CIA cant run, cant jump.");
//wait for application jump, for some reason its not instant
while(1);
}
/* wait for application jump, for some reason its not instant */
while(1);
}
//should never be reached
amExit();
fsExit();
errno = ENOTSUP;
return -1;
/* should never be reached */
amExit();
fsExit();
errno = ENOTSUP;
return -1;
}
+3 -3
View File
@@ -1,6 +1,6 @@
#pragma once
// C stdlib includes
/* C stdlib includes */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -10,7 +10,7 @@
#include <sys/stat.h>
#include <sys/types.h>
// 3DS includes
/* 3DS includes */
#include <3ds.h>
#define ENTRY_ARGBUFSIZE 0x400
@@ -73,7 +73,7 @@ typedef struct
u32 processAppCodeAddress;
u32 processHookTidLow, processHookTidHigh;
u32 mediatype;
bool capabilities[0x10]; // {socuAccess, csndAccess, qtmAccess, nfcAccess, httpcAccess, reserved...}
bool capabilities[0x10]; /* {socuAccess, csndAccess, qtmAccess, nfcAccess, httpcAccess, reserved...} */
} memmap_header_t;
typedef struct
Loaded 100 of 1278 files, more files were not shown because too many files have changed in this diff. Show more