Compare commits

...
5207 Commits
Author SHA1 Message Date
twinaphex 8373ac6746 Bump version to 1.9.7 2021-07-25 07:58:25 +02:00
Autechre 73342af8b6 Merge pull request #12691 from fjtrujy/ps2_font_driver
Ps2 font driver
2021-07-24 17:38:55 +02:00
Francisco Javier Trujillo Mata d972f66faa Remove not needed import and PCSX2 macro 2021-07-24 10:32:09 +02:00
Francisco Javier Trujillo Mata dadf49764b Implement proper ps2_font driver instead of using the font driver from gskit 2021-07-24 10:32:09 +02:00
Autechre 1071c93c82 Merge pull request #12609 from markwkidd/input-drivers
add source comments to input_drivers.h
2021-07-23 06:33:08 +02:00
Autechre 773c7ed5ee Merge pull request #12688 from fjtrujy/bdm
Use BDM for increasing up USB stability
2021-07-22 22:09:33 +02:00
Autechre a65a5c675a Merge pull request #12684 from jdgleaver/rs90-scaling
(RS90) Add optional approximate 'semi-linear' scaling filter
2021-07-22 16:56:14 +02:00
Autechre 0ffd876115 Merge pull request #12686 from HyperspaceMadness/Max_Shader_Parameters_Increased_to_1024
Max_Shader_Parameters_Increased_to_1024
2021-07-22 16:45:17 +02:00
Remi McGill fdee0f4e7e Max_Shader_Parameters_Increased_to_1024 2021-07-22 10:20:50 -04:00
Francisco Javier Trujillo Mata 7f411db808 Use BDM for increasing up USB speed 2021-07-22 00:03:18 +02:00
jdgleaver 218286aa99 (RS90) Add optional approximate 'semi-linear' scaling filter 2021-07-21 14:11:42 +01:00
Autechre d4d9129ad4 Merge pull request #12678 from QuarkTheAwesome/ozone-icons
(Ozone) Use Ozone icons instead of XMB Monochrome
2021-07-20 14:59:08 +02:00
Autechre be89054d07 Merge pull request #12681 from QuarkTheAwesome/gx2-scissorfix
(Wii U) Fix Ozone rendering error
2021-07-20 14:58:53 +02:00
Autechre 28043d88b0 Merge pull request #12682 from QuarkTheAwesome/wiiu-fontalias
(Wii U) Font rendering fixes
2021-07-20 14:58:34 +02:00
Ash Logan 60c32fe494 (Wii U) Render font lines with correct spacing
No idea about this one, borrowed code from the Vita and it makes 
multi-line rendering look correct again
2021-07-20 20:05:44 +10:00
Ash Logan 20e70f9caa (Wii U) Only sample alpha channel when rendering fonts
The font backend provides only the alpha channel for a given glyph, but 
we were sampling that channel for the r, g, b and a. Fix by hard-coding 
the sampled colour to white - the actually desired colour is multiplied 
in later.
2021-07-20 19:57:35 +10:00
Ash Logan 4621ed7dcc (Wii U) Display scissor doesn't use inverted coordinates
Unlike the draw callback, seems the scissor callback does *not*
have an inverted y-coordinate. Yay!
2021-07-20 18:51:53 +10:00
twinaphex 646cadba8c Another style nit 2021-07-20 05:23:12 +02:00
twinaphex edd9ed3619 Fix some style nits 2021-07-20 05:13:52 +02:00
Autechre 53a35e87c3 Merge pull request #12680 from jdgleaver/core-info-cache-auto-disable
Automatically disable core info cache when core info directory is read-only
2021-07-20 02:46:50 +02:00
Ash Logan e9a5625445 (Wii U/Vita) Use Ozone icons instead of XMB Monochrome
The Ozone icons are small pngs, 46x46, while the XMB Monochrome icons 
are 256x256, which do not look good on low-dpi screens when downscaled 
so extremely.
2021-07-20 08:59:16 +10:00
Mark W. Kidd 8038d899d6 add documentation to input_driver.h 2021-07-19 12:05:28 -04:00
jdgleaver e306dd8eeb Automatically disable core info cache when core info directory is read-only 2021-07-19 16:39:18 +01:00
Autechre 8db304328c Merge pull request #12679 from jdgleaver/rgui-start-fs-thumbs
(RGUI) Enable fullscreen thumbnail toggle using RetroPad 'start' button
2021-07-19 15:41:14 +02:00
jdgleaver af88aaee77 (RGUI) Enable fullscreen thumbnail toggle using RetroPad 'start' button 2021-07-19 14:15:28 +01:00
Autechre ea18d4ffcb Merge pull request #12676 from QuarkTheAwesome/kpad-fix
(Wii U) Fix inputs breaking when connecting/disconnecting remotes
2021-07-19 14:24:51 +02:00
Ash Logan 27b02d66aa (Wii U) Ignore some bogus KPAD results
This API is completely bonkers, seems to have no idea what the error 
conditions are
2021-07-19 16:59:41 +10:00
Autechre 8bde566019 Merge pull request #12664 from markwkidd/upnp-error
clarify netplay upnp port mapping status messages
2021-07-19 02:11:44 +02:00
Autechre 7cb5857ed3 Merge pull request #12675 from gouchi/have_extralang
intl: Add missing languages for the first startup
2021-07-19 02:11:28 +02:00
Autechre 48830e72df Merge pull request #12665 from embercold/fix-xdg-screensaver
Prevent xdg-screensaver's "Protocol error" messages
2021-07-19 02:04:11 +02:00
gouchi fcefefaeab intl: Add missing languages for the first startup 2021-07-18 22:40:01 +02:00
Autechre 21cf6b89a8 Merge pull request #12671 from QuarkTheAwesome/http-progress-fix
(task_http.c) Fix progress indication for large files on 32-bit systems
2021-07-18 22:16:18 +02:00
Autechre c007a81103 Merge pull request #12672 from QuarkTheAwesome/network-fixes
(Wii U) Network speed optimisations
2021-07-18 22:16:01 +02:00
Autechre 80fc5062c1 Merge pull request #12673 from QuarkTheAwesome/filesystem-opt
(Wii U) Filesystem optimisations
2021-07-18 22:15:41 +02:00
Ash Logan e43f07b85b wiiu: Add fastpath for already aligned buffers 2021-07-18 22:33:26 +10:00
Ash Logan a3be19214e vfs: Use 128k vbufs for Wii U
We have loads of RAM and large vbufs are *very* beneficial
2021-07-18 22:33:17 +10:00
Ash Logan 90040117af deps/libfat: Increase cache size on Wii U
We got lotsa RAM! See 
https://github.com/aliaspider/wiiu/blob/5be1be8e66c60a6c7ffd3bb47bbd2a72077b3f12/libfat/common.h#L62-L66
2021-07-18 22:33:12 +10:00
Ash Logan 5887016db3 deps/libiosuhax: Update to wiiu-env/libiosuhax@69532cf 2021-07-18 22:33:06 +10:00
Ash Logan e5553bde4e wiiu: Network optimisations - WINSCALE, TCP sACK, large buffers
See code sample in https://github.com/devkitPro/wut/issues/169 and 
https://github.com/Laf111/WiiUFtpServer/blob/243078940681175ef2901415a5498f0d759d4c0e/src/net.c#L88
2021-07-18 21:02:56 +10:00
Ash Logan a35323ace9 (task_http.c) Use 100% as maximum, not minimum
With previous logic, any normal percentage would get MAX'd to 100% 
(max(70, 100) == 100). Correct math to use here is min
2021-07-18 14:47:25 +10:00
Ash Logan 6521bfcdc1 gitignore: Don't ignore some of the Wii U sources 2021-07-17 12:16:18 +10:00
Autechre e5bbd9488f Merge pull request #12666 from jdgleaver/odbeta-snes-scaling-fix
(OpenDingux Beta) Fix IPU scaling when running 256x224 (SNES/Genesis) content
2021-07-16 19:04:57 +02:00
jdgleaver 6b65daf07d (OpenDingux Beta) Fix IPU scaling when running 256x224 (SNES/Genesis) content 2021-07-16 17:48:03 +01:00
Mark W. Kidd 03f2d2376e clarify netplay upnp port mapping messages 2021-07-16 11:20:13 -04:00
Ember Cold 214a80b338 Prevent xdg-screensaver's "Protocol error" messages 2021-07-16 17:21:11 +03:00
Autechre d1c03b22e3 Merge pull request #12660 from libretro/vitapig
Vita: wrong flags for not piglet version
2021-07-15 19:58:52 +02:00
Francisco José García García 260352aa9e Vita: wrong flags for not piglet version 2021-07-15 19:21:33 +02:00
Autechre 2ea76c6188 Merge pull request #12659 from jdgleaver/rs90-appdata-sd
(RS-90) Move appdata (retroarch) base directory to external microsd card
2021-07-15 18:50:22 +02:00
jdgleaver 9e100b752e (RS-90) Move appdata (retroarch) base directory to external microsd card 2021-07-15 16:56:23 +01:00
Autechre 23b8652656 Merge pull request #12655 from jdgleaver/rs90-disable-flags
(RS-90) Disable unnecessary/inappropriate build flags
2021-07-15 17:06:56 +02:00
Autechre c88226188f Merge pull request #12656 from jdgleaver/rs90-hide-video-filter
(RS-90) Hide 'Bilinear Filtering' video option
2021-07-15 17:06:39 +02:00
Autechre c3fee95273 Merge pull request #12657 from IlDucci/translationsupdatewithscript
Fetch translations from Crowdin 15-Jul-2021
2021-07-15 17:06:26 +02:00
IlDucci 7900ba604f Fetch translations from Crowdin 15-Jul-2021 2021-07-15 15:21:27 +02:00
jdgleaver 21228cfbd4 (RS-90) Hide 'Bilinear Filtering' video option 2021-07-15 11:53:07 +01:00
jdgleaver 0437659490 (RS-90) Disable unnecessary/inappropriate build flags 2021-07-15 11:15:55 +01:00
Autechre d8f780848a Merge pull request #12653 from jdgleaver/rs90-osd-fix
(RS-90) Fix offset of OSD text
2021-07-14 17:52:30 +02:00
jdgleaver 14580e5f6f (RS-90) Fix offset of OSD text 2021-07-14 16:44:30 +01:00
Autechre 0ad936f600 Merge pull request #12651 from jdgleaver/rgui-sublabel-length-fix
(RGUI) Fix sublabel length when menu clock is disabled
2021-07-14 17:39:29 +02:00
Autechre 607711d3f9 Merge pull request #12652 from jdgleaver/rs90-hide-clock
(RS-90) Disable menu clock by default
2021-07-14 17:39:23 +02:00
jdgleaver 7439f4d6d0 (RS-90) Disable menu clock by default 2021-07-14 15:27:07 +01:00
jdgleaver 137f18bed1 (RGUI) Fix sublabel length when menu clock is disabled 2021-07-14 15:03:29 +01:00
jdgleaver 7af4f6e84d (.gitlab-ci.yml) Add RS-90 target 2021-07-14 13:01:30 +02:00
Autechre b644a37622 Merge pull request #12647 from jdgleaver/dingux-frameskip-fix
(Dingux) Fix display when cores 'drop' frames
2021-07-13 21:42:02 +02:00
Autechre e1daabde65 Merge pull request #12592 from john-parton/feature/rs90
[DRAFT] RetroMini RS-90 Support
2021-07-13 20:25:27 +02:00
Autechre ec685d051e Merge pull request #12648 from jdgleaver/odbeta-alsa-default
(Dingux Beta) Use ALSA audio driver by default
2021-07-13 20:25:10 +02:00
John Parton f6aeb717ba Basic rs90 build
DINGUX_BETA has clock_gettime libogc
Add tinyalsa support to rs90
2021-07-13 11:36:48 -05:00
jdgleaver 54706bec8a (Dingux Beta) Use ALSA audio driver by default 2021-07-13 14:18:11 +01:00
jdgleaver eb259174b8 (Dingux) Fix display when cores 'drop' frames 2021-07-13 13:11:19 +01:00
Autechre 3bc06b0d57 Merge pull request #12588 from alphanu1/master
Fixed some Monitor index bugs ad updated to the latest SR2
2021-07-12 16:49:44 +02:00
Autechre 7f4f1d82bb Merge pull request #12644 from jdgleaver/fpu-fix
(Menu+Widgets) Add workaround for FPU bug that breaks scale factor comparisons on certain platforms (fixes XMB thumbnails on 32bit Linux/Windows)
2021-07-12 16:49:28 +02:00
Autechre b5c5508e62 Merge pull request #12643 from crystalct/master
First basic RSX driver for PSL1GHT
2021-07-12 15:12:57 +02:00
jdgleaver 7a3d78b1c0 (Menu+Widgets) Add workaround for FPU bug that breaks scale factor comparisons on certain platforms (fixes XMB thumbnails on 32bit Linux/Windows) 2021-07-12 12:14:55 +01:00
CrystalCT 89b46bc246 First basic RSX driver for PSL1GHT 2021-07-12 09:35:44 +02:00
Autechre 32ed7ed1d7 Merge pull request #12508 from CTCaer/unix-bl-bri-fix
plat: unix: correct backlight max_brightness path
2021-07-11 18:35:59 +02:00
Autechre e4fd172892 Merge pull request #12639 from MrHuu/master
(3DS) Add unique ID's
2021-07-11 17:38:21 +02:00
MrHuu 57c52e4fc7 (3DS) Add unique ID's
add lowresnx
add vice_xcbm5x0
add vice_xscpu64
2021-07-11 15:03:10 +02:00
Autechre bd04a6412d Merge pull request #12638 from MrHuu/master
(3DS) Add ID for genesis_plus_gx_wide core
2021-07-11 13:41:52 +02:00
MrHuu 902949ea94 (3DS) Add ID for genesis_plus_gx_wide core 2021-07-11 13:04:22 +02:00
Autechre 0570ed4ca3 Merge pull request #12634 from NicolasRoehm/patch-1
[Upd] error message
2021-07-11 01:14:41 +02:00
Nicolas Roehm b3c929499e [Upd] error message 2021-07-10 14:10:12 +02:00
Autechre 0d46eb9066 Merge pull request #12612 from guoyunhe/crowdin
Fetch translations from Crowdin
2021-07-09 16:39:49 +02:00
Autechre acf5c2e992 Merge pull request #12628 from markwkidd/nat-fix
implement natt fix from void()
2021-07-09 15:31:17 +02:00
Autechre 7b55b03c96 Merge pull request #12617 from markwkidd/input-cleanup
consolidate 'input define' enums to input_defines.h
2021-07-09 15:30:02 +02:00
Autechre 0216aab022 Merge pull request #12630 from sonninnos/av_info-log
AV_INFO logging details
2021-07-09 15:17:06 +02:00
sonninnos c10bac6558 AV_INFO logging details 2021-07-09 16:06:56 +03:00
Mark W. Kidd d4fb27a7a9 implement natt fix from void() 2021-07-08 22:52:19 -04:00
twinaphex 4803100dc4 (UWP/Xbox) Should fix display issues with Dolphin/PCSX2 on Xbox 2021-07-08 20:50:54 +02:00
Autechre ed3412c004 Merge pull request #12618 from markwkidd/input-remapping
consolidate and comment input_remapping.h
2021-07-08 14:22:51 +02:00
Autechre 63acb6173a Merge pull request #12619 from xenomorph-us/patch-1
HTTPS link to EditorConfig.org
2021-07-08 14:18:21 +02:00
Autechre 375eb4b852 Merge pull request #12459 from toshixm/fix_12103
Fix garbled path string
2021-07-08 12:05:07 +02:00
Autechre 7dba607d76 Merge pull request #12579 from grant2258/touchpad
udev fixes add pointer pressed to pointer device to allow udev users to access this device
2021-07-08 12:04:04 +02:00
Autechre 7d9d57dc50 Merge pull request #12564 from sonninnos/integer-overscale
Integer overscale option
2021-07-08 12:03:28 +02:00
Autechre 27fbb3f971 Merge pull request #12568 from john-parton/feature/enable-alsa-opendingux-beta
Re-enable alsa on opendingux beta
2021-07-08 11:33:00 +02:00
Autechre 9188c4a7f0 Merge pull request #12610 from confusedguy9/patch-1
Enable 7z support for Switch
2021-07-08 11:08:24 +02:00
Autechre ea7e9aaa61 Merge pull request #12616 from HyperspaceMadness/Aspect_Ratio_Full
Added Aspect Ratio Full
2021-07-08 11:07:45 +02:00
Autechre 9e85eec4a7 Merge pull request #12621 from JustMeDaFaq/master
Default to d3d11 on UWP builds
2021-07-08 11:07:29 +02:00
Ben Templeman 197203d09b Fixed monitor index corruption on Windows and added correct fractal scalling. only used when required.
Updated log defines to match SR upstream.

Added new SR_CONFIG_PATHS for non Winddows and Linux systems.
Not that SR works on them but to fix RA compile issues

Updated SR2 code base to latest. Added supprt for windows monitor indexing.
Fixed monitor index bug where index 1 was not being used corretly
and "auto" was not being sent.

Updated swithres for x86 windows fix
fixed SR2 auto issue

Fixed auto monitor bug

Fixed monitor index corruption on Windows

Fixxed buffer size bug

Added correct fractal scalling. only used when required.
2021-07-07 18:06:47 +01:00
HyperspaceMadness d14c4d2883 Added Aspect Ratio Full
Fixes

Fixes

Moved ASPECT_RATIO_FULL to end of list, added TODO

Fixed Full Order

Fixed UI Visibility
2021-07-07 09:37:36 -04:00
Autechre 4954af9dc7 Merge pull request #12613 from mahoneyt944/patch-1
add mame2003 / mame2003-plus to web.libretro
2021-07-07 02:14:11 +02:00
Mark W. Kidd b17dd28ff2 consolidate and comment input_remapping.h 2021-07-06 16:13:43 -04:00
JustMeDaFaq 6e61eb084a Default to d3d11 on UWP builds
Even if compiled with ANGLE, lets default to d3d11 since ANGLE is calling D3D anyway. 
That makes cores like PCSX2 and Duckstation boot proper with default settings, ANGLE cores still switching automatically.
2021-07-06 19:51:42 +02:00
xenomorph-us d0212ec5aa HTTPS link to EditorConfig.org 2021-07-06 13:55:43 +09:00
Mark W. Kidd 523d7d6ee8 consolidate input defines 2021-07-05 15:18:17 -04:00
mahoneyt944 647e39afaa add mame2003 / mame2003-plus 2021-07-04 18:23:38 -04:00
Guo Yunhe 7b46cca917 Fetch translations from Crowdin 2021-07-04 21:43:39 +08:00
Autechre f93499181c Update CHANGES.md 2021-07-04 14:07:31 +02:00
confusedguy9 c31e0ba9b9 Enable 7z support for Switch 2021-07-04 14:46:41 +08:00
Autechre 4a6dc36b1c Update CHANGES.md 2021-07-04 02:39:40 +02:00
Autechre c6967f56bd Merge pull request #12606 from jdgleaver/hide-add-to-favourites
Hide 'Add to Favorites' when viewing an entry of the favorites playlist
2021-07-02 23:20:56 +02:00
jdgleaver 0e654c8e9e Hide 'Add to Favorites' when viewing an entry of the favorites playlist 2021-07-02 16:29:11 +01:00
Autechre e1270742b9 Merge pull request #12582 from markwkidd/input-drivers
add comments in order to document input_driver.h
2021-07-02 00:21:09 +02:00
Autechre 1c87853496 Merge pull request #12595 from IlDucci/translationsupdatewithscript
Fetch translations from Crowdin 30-Jun-2021
2021-07-01 09:03:32 +02:00
Autechre 119788593c Merge pull request #12598 from markwkidd/input-cleanup
remove unused enum input_device_type from input_driver.h
2021-07-01 04:29:51 +02:00
Mark W. Kidd fb2b3695d9 remove unused enum input_device_type 2021-06-30 19:05:56 -04:00
IlDucci aacf2bed34 Fetch translations from Crowdin 30-Jun-2021 2021-06-30 14:54:34 +02:00
Autechre badd588652 Merge pull request #12590 from jdgleaver/playlist-path-id-cache
(Playlist) Optimise scanning of large rom sets
2021-06-30 05:08:10 +02:00
Autechre a40c3767bb Merge pull request #12591 from jdgleaver/qt-default-core-fix
(Qt) Fix default core detection when playlist file name does not match 'db_name'
2021-06-30 05:07:57 +02:00
Mark W. Kidd b0831bf1a0 comment documentation for input_driver.h 2021-06-29 20:12:44 -04:00
jdgleaver d1f7d8af0d (Qt) Fix default core detection when playlist file name does not match 'db_name' 2021-06-29 16:51:20 +01:00
jdgleaver f7f007519c (Playlist) Optimise scanning of large rom sets 2021-06-29 14:50:19 +01:00
Autechre 92a098ee02 Merge pull request #12586 from jdgleaver/archive-delim-fix
Fix archive delimiter detection when file path contains no slashes
2021-06-29 00:10:46 +02:00
M4xw d00c2a6407 [Libnx] Style nits 2021-06-28 17:38:17 +02:00
M4xw 991b43d4ee [Libnx] Changed PSM Defines 2021-06-28 17:38:17 +02:00
p-sam ac8a977492 Replace deprecated HID APIs 2021-06-28 17:38:17 +02:00
p-sam 1bc588acbd Fix building with libnx 4.0.0 2021-06-28 17:38:17 +02:00
jdgleaver eafeb83d0b Fix archive delimiter detection when file path contains no slashes 2021-06-28 10:40:37 +01:00
Autechre 2e215bda5b Update CHANGES.md 2021-06-27 07:03:00 +02:00
twinaphex 0a5fd837a2 Bump up version to 1.9.6 2021-06-27 06:43:27 +02:00
Autechre edf10b576f Merge pull request #12580 from john-parton/bugfix/rg350_stripping
Remove bash-ism which was preventing strip from working on OpenDingux
2021-06-27 06:08:32 +02:00
twinaphex 46dcf1204e Revert "Backport tunip3 - replace win32 functions with UWP safe variants in UWP vfs driver"
This reverts commit 585af66b5c.
2021-06-27 05:39:48 +02:00
John Parton 5feeb362b1 Remove bash-ism which was preventing strip from working on OpenDingux 2021-06-26 21:08:22 -05:00
Grant d6a1c21fe1 udev fixes] 2021-06-26 23:09:47 +01:00
Autechre 67358fb145 Merge pull request #12578 from libretro/revert-12571-bugfix/rg350_stripping
Revert "Fix strip on rg350 and rg350_odbeta"
2021-06-26 23:45:13 +02:00
Autechre 41fbbda8e8 Revert "Fix strip on rg350 and rg350_odbeta" 2021-06-26 23:45:06 +02:00
John Parton b1b5148090 Enable Alsa/Alsa_thread on OpenDingux, but not alsa midi driver, keeping
openal the default audio driver
2021-06-26 14:54:42 -05:00
Autechre bd1d39d7fb Merge pull request #12571 from john-parton/bugfix/rg350_stripping
Fix strip on rg350 and rg350_odbeta
2021-06-26 19:09:45 +02:00
twinaphex b2c7fae912 desc.Flags should also be commented out for now 2021-06-26 05:46:37 +02:00
twinaphex 13e88ebe74 (D3D11) Disable tear control support for UWP for now 2021-06-26 05:40:41 +02:00
John Parton d5d6b1d91e Make stripping conditional again on rg350 builds (remove bashism) 2021-06-25 12:09:36 -05:00
John Parton 8915d82fd6 Always strip on rg350 and rg350_odbeta 2021-06-25 00:32:38 -05:00
Autechre 0785d4aa72 Merge pull request #12565 from Jamiras/measured_unlock
(cheevos) reset cached progress each time menu is opened
2021-06-24 05:48:23 +02:00
Jamiras 0744683c2b reset cached progress each time menu is opened 2021-06-23 17:29:12 -06:00
sonninnos b483f233d2 Integer overscale option 2021-06-24 00:56:52 +03:00
twinaphex 55afe18872 Move D3D11Draw call back for now - should make OSK work again and
shaders
2021-06-23 19:34:06 +02:00
Autechre f83e614b4e Merge pull request #12563 from IlDucci/translationsupdatewithscript2
'Fetch translations from Crowdin 23-Jun-2021'
2021-06-23 18:46:30 +02:00
Autechre 5dc070f041 Merge pull request #12562 from jdgleaver/input-adc-type-improvements
'Analog to Digital Type' usability improvements
2021-06-23 18:46:05 +02:00
twinaphex 585af66b5c Backport tunip3 - replace win32 functions with UWP safe variants in UWP vfs driver 2021-06-23 18:45:07 +02:00
IlDucci c8241f3f21 'Fetch translations from Crowdin 23-Jun-2021' 2021-06-23 16:00:53 +02:00
jdgleaver 3a82cf980d 'Analog to Digital Type' usability improvements 2021-06-23 14:28:45 +01:00
Autechre 7b47f5f49a Merge pull request #12556 from sonninnos/winraw-mouse
(WINRAW) Mouse access violation fix
2021-06-23 00:19:37 +02:00
Autechre 94e4b1883a Merge pull request #12557 from grant2258/logging
fix up logging that can confuse users
2021-06-23 00:18:40 +02:00
Grant c73592d379 skip mouse with no button errors and keep the rest 2021-06-22 23:00:50 +01:00
Grant 4ba0ba4c70 fix up logging that can confuse users 2021-06-22 22:06:19 +01:00
sonninnos 11dba60ea7 (WINRAW) Mouse access violation fix 2021-06-22 19:47:56 +03:00
twinaphex 97ad8cbfd2 Remove this code for Vulkan over X too 2021-06-22 18:26:32 +02:00
twinaphex b5be2006f2 Remove commented out code 2021-06-22 18:25:54 +02:00
Autechre 8ec39ca7ec Merge pull request #12550 from grant2258/fix_x11
fix x11 threaded videoc segfault
2021-06-22 18:24:32 +02:00
Autechre bd937eb49f Merge pull request #12536 from grant2258/udev
only add mouse if it has buttons and add vebose device friendly names
2021-06-22 17:23:19 +02:00
Autechre 23b810b820 Merge pull request #12552 from stenzek/fix-d3d11-again
(d3d11) Fix non-vsynced output without flip, black screens in fullscreen
2021-06-22 13:40:01 +02:00
Connor McLaughlin 322aeb4e46 (d3d11) Don't pass ALLOW_TEARING to present when unsupported 2021-06-22 14:04:32 +10:00
Connor McLaughlin ed2d6b1730 (d3d11) Don't draw content without a texture bound 2021-06-22 14:04:32 +10:00
Connor McLaughlin 9afa30af5e (d3d11) Disable DXGI's ALT+ENTER handling 2021-06-22 14:04:31 +10:00
Connor McLaughlin 5d3719df44 (gfx) Fix uninitialized variables in gfx_display_draw_cursor 2021-06-22 13:52:13 +10:00
twinaphex 3f00d2f041 (Resampler) Cleanups 2021-06-22 01:14:32 +02:00
twinaphex a30a86a09c (D3D11) Fixes Xbox again, do tear control checks only for non-UWP
- TODO/FIXME still has to be resolved, see comment at line 1362
2021-06-22 00:41:56 +02:00
Grant bd10e5bdc3 fix x11 threaded videoc segfault 2021-06-21 21:12:26 +01:00
twinaphex 0e1d5ba30e Silence some warnings; cleanup 2021-06-21 21:15:03 +02:00
Autechre 10f42d7034 Merge pull request #12549 from sonninnos/xmb-opacity
(XMB) Icon opacity fix
2021-06-21 20:48:19 +02:00
Autechre 6986caed5b Merge pull request #11388 from pjft/dual-lightgun
Change udev driver for dual lightgun support in X11
2021-06-21 18:06:35 +02:00
sonninnos c802a549f6 (XMB) Icon opacity fix 2021-06-21 16:46:58 +03:00
Autechre 0a75b51b29 Merge pull request #12534 from jdgleaver/input-port-remapping
Add support for mapping multiple controllers to a single input device
2021-06-21 15:28:34 +02:00
Autechre 0c64ac0bde Merge pull request #12423 from markwkidd/lightgun-bind
bind lightgun trigger to first mouse button by default
2021-06-21 14:12:25 +02:00
Autechre 15b0f5478f Merge pull request #12485 from Kopert/master
Add support for core and directory overrides of switchres.ini files
2021-06-21 14:12:15 +02:00
Autechre a6b0199204 Merge pull request #12511 from markwkidd/android-input-fix
[Android input driver] do not duplicate port 0 mouse and gun inputs to other ports
2021-06-21 14:12:02 +02:00
jdgleaver 973f5cda6d Add support for mapping multiple controllers to a single input device 2021-06-21 12:42:38 +01:00
twinaphex 46a318db45 C89 buildfix 2021-06-20 23:02:55 +02:00
Autechre 7949a9c8ad Merge pull request #12528 from IlDucci/crowdinfix-20210615
Fix Encore Mode on Github, minor English change
2021-06-20 16:55:07 +02:00
Autechre 2ae11b7222 Merge pull request #12541 from sonninnos/xmb-dynamic
(XMB) Dynamic wallpaper improvement
2021-06-20 16:54:49 +02:00
Autechre f05c124c98 Merge pull request #12540 from sonninnos/d3d12
D3D12 Updates
2021-06-20 14:59:11 +02:00
Alcaro 5f182fa564 Don't send speech input as command line argument (#12539)
* Don't send speech input as command line argument

* Fix a C++-only construct, and simplify some stuff
2021-06-20 14:39:14 +02:00
Kopert c2d5003f80 Add support for switchres.ini core and directory overrides 2021-06-20 02:31:10 -03:00
Grant 6e2709d62a cleanup 2021-06-19 08:47:35 +01:00
Grant eef86d5f72 fix game focus mode 2021-06-19 07:59:06 +01:00
Grant 863aaa5b9d Revert "fix game focus mode on udev as well"
This reverts commit 54eed63418.
2021-06-19 07:44:02 +01:00
Grant 54eed63418 fix game focus mode on udev as well 2021-06-19 07:00:09 +01:00
sonninnos 7695298dfc (XMB) Dynamic wallpaper improvement 2021-06-18 23:03:34 +03:00
sonninnos 917fb1f796 D3D12 Updates:
- Relocated 'd3d12_gfx_sync()'
- Fixed swap interval option
- Cleanups
2021-06-18 21:54:36 +03:00
Jamiras 81075aa5fa put challenge indicator above leaderboard trackers (#12530) 2021-06-18 18:00:48 +02:00
Tony ff7982fbcd (XMB) Dynamic wallpaper fix (#12531) 2021-06-18 18:00:37 +02:00
Grant 7915b040a9 only add mouse if it ha buttons and add vebose device friendly names 2021-06-18 03:55:25 +01:00
twinaphex a129764f0d Change C++ comment to C 2021-06-17 05:45:59 +02:00
Alcaro aeddcb54e0 Plug this so-called high-risk vuln (#12533)
https://www.reddit.com/r/RetroArch/comments/o0p1vy/retroarch_for_windows_versions_190_194_highrisk/

https://labs.bishopfox.com/advisories/retroarch-for-windows-version-1.9.0
2021-06-17 05:44:17 +02:00
Michael BurgardtandMichael Burgardt 10f0073778 adjust h2json and json2h scripts to be comment agnostic (#12532)
Co-authored-by: Michael Burgardt <[email protected]>
2021-06-16 17:21:57 +02:00
twinaphex 8b6e58eebd Buildfix for D3D11 - courtesy of Stenzek 2021-06-16 16:07:38 +02:00
Tony 49bd8d2d27 (XAudio+DSound) Fail instead of crash (#12527) 2021-06-16 15:35:20 +02:00
Connor McLaughlin 946d87cf89 (gfx/d3d11) Don't use allow tearing flag with blit swap chains (#12529) 2021-06-16 15:19:27 +02:00
IlDucci 138d5b3a4e Fix Encore Mode on Github, minor English change
- Fixes the Encore Mode string being misread by the Crowdin scripts.
 - Minor change on MENU_ENUM_SUBLABEL_CRT_SWITCH_HIRES_MENU's structure (by @DisasterMo, he asked me to do so).
2021-06-15 11:33:50 +02:00
Víctor "IlDucci cdba9accdf [Localization] Manually updating the .h translation files (#12494)
Second attempt at manually updating the translations from Crowdin. Built locally today.

Huge thanks to @DisasterMo for helping with the required edits on the python files (not uploaded to avoid messing with guoyunhe's setup)!

Moving the comment that breaks the script to a better position.
2021-06-15 03:04:49 +02:00
tunip3 963350a0f2 Add expanded resources Rescap to increase performance of UWP version in app mode on Xbox (#12525)
* add expanded resources rescap

* add expanded resources rescap
2021-06-15 03:04:10 +02:00
Michael Burgardt dd48b65687 Fix Switchres menu texts (#12526) 2021-06-15 03:03:10 +02:00
jdgleaver 642d6c9fb8 (Ozone) Ensure sidebar display status is updated correctly when performing rapid menu navigation (#12524) 2021-06-14 13:58:39 +02:00
twinaphex 6738fa57aa Bump up version to 1.9.5 2021-06-13 03:07:51 +02:00
jdgleaver d40d7c389b (Dingux) Fix black screens when triggering gfx driver reinitialisation via menu actions (#12521) 2021-06-13 00:37:48 +02:00
jdgleaver 3c2e3f1ce9 Add enhanced search functionality to the 'Manage Cores' menu (#12516) 2021-06-11 21:17:32 +02:00
twinaphex 766c59d469 Apply this to make MSVC 2005 compile with new resampler 2021-06-11 12:07:16 +02:00
twinaphex 7492f5d60c Revert "Add HAVE_GRIFFIN fallback for now"
This reverts commit dc50ff584e.
2021-06-11 12:05:59 +02:00
twinaphex bd9c35d379 Revert "Rollback changes for now until we can get this compiling on MSVC 2005 on"
This reverts commit 08481e2a68.
2021-06-11 12:05:48 +02:00
Jamiras 5d4069cf8f update to rcheevos 10.1 (#12512) 2021-06-10 17:20:00 +02:00
dankcushions 0caeed6e1d Make alsathread default for all alsa devices with threads. (#12515) 2021-06-10 17:19:52 +02:00
Bernhard Schelling 98194ce135 Allow the 8 analog stick directions to be used as keys for core keyboard mappings (#12506) 2021-06-10 17:00:33 +02:00
Michael Burgardt 4dcda032d0 Added list entry enumeration to XMB (#12427) 2021-06-10 16:02:19 +02:00
Mark W. Kidd f74fddf3fd do not duplicate port 0 mouse and gun inputs to other ports 2021-06-09 17:20:13 -04:00
twinaphex 08481e2a68 Rollback changes for now until we can get this compiling on MSVC 2005 on
the commandline (it builds with the VS solution file but not CLI)
2021-06-09 16:39:43 +02:00
twinaphex dc50ff584e Add HAVE_GRIFFIN fallback for now 2021-06-09 16:33:32 +02:00
CTCaer 98be8f0c22 plat: unix: correct backlight max_brightness path
We are assuming that device has its backlight device symlinked to /sys/class/backlight/backlight so this should be stated.

Additionally any hardcoding should be disallowed and the symlink should be always used.
2021-06-09 13:16:37 +03:00
Tony 3647bdef0f (D3D) Logging + dupe code cleanups (#12501) 2021-06-09 06:33:14 +02:00
Jamiras 75fcd63b4a (cheevos) use common functionality moved into rcheevos (#12504)
* user rcheevos for disallowed_settings

* use rcheevos for memory map
2021-06-09 06:32:34 +02:00
Tony 27cacffe54 Fix frame delay limit in conf read (#12507) 2021-06-09 06:32:01 +02:00
Autechre 74d85e3269 Backport optimizations from foobar2K 2021-06-09 06:05:14 +02:00
twinaphex 9d92888846 Add else path for defining SR_CONFIG_PATH 2021-06-07 19:15:37 +02:00
jdgleaver adfabcb742 Fix '--disable-crtswitchres' configure option (#12500) 2021-06-07 17:39:18 +02:00
twinaphex 620302ddaa (Switchres) Fix debug 2021-06-07 15:59:39 +02:00
Autechre da9f87c63f Update CHANGES.md 2021-06-07 15:54:08 +02:00
Autechre fe2fd18aad Merge pull request #12496 from sonninnos/framedelay-range
Extend frame delay range
2021-06-07 15:53:09 +02:00
Autechre 1c61068291 Merge pull request #12498 from JustMeDaFaq/master
Fixing UWP builds
2021-06-07 15:52:55 +02:00
Autechre 681983d1b2 Merge pull request #12499 from fjtrujy/psp-remove-pthread
[PSP] Remove embedded PTE from RA and use the one provided by the toolchain
2021-06-07 15:52:35 +02:00
Francisco Javier Trujillo Mata ec627a9c00 Remove embedded PTE from RA and use the one provided by the toolchain 2021-06-07 12:48:13 +02:00
JustMeDaFaq 462cedb654 Update d3d12.c 2021-06-07 12:04:53 +02:00
JustMeDaFaq f1347829c2 Update d3d11.c 2021-06-07 12:03:58 +02:00
sonninnos b08169255d Extend frame delay range 2021-06-07 03:13:08 +03:00
Autechre 610b0b7095 Update CHANGES.md 2021-06-06 22:16:25 +02:00
Autechre caf3f3dadd Merge pull request #12480 from sonninnos/d3d-title
(D3D) Add common window title for D3D9+
2021-06-06 21:48:16 +02:00
sonninnos 04962e1741 (D3D) Add common window title for D3D9+ 2021-06-06 22:24:47 +03:00
Autechre 44e2530fbb Update CHANGES.md 2021-06-06 21:18:02 +02:00
Autechre 52b827155f Merge pull request #12479 from sonninnos/d3d-tearflag
(D3D11+12) Allow fastforward in fullscreen
2021-06-06 21:14:26 +02:00
Autechre 3eecf92f8f Merge pull request #12493 from alphanu1/master
Ver 0.10.0 SR2 (Switchres API) Implimantation
2021-06-06 18:32:58 +02:00
Ben 9184a9d04c Ver 0.10.0 SR2 (Switchres API) Implimantation
merged SR updates

Fixed sub labels

fixed PI compiile

Removed SR makefile
2021-06-06 09:05:10 -07:00
Autechre 5534fd7275 Merge pull request #12490 from Alcaro/patch-12
Shut up a string truncation warning
2021-06-05 21:19:48 +02:00
Alcaro 8e06aa2417 Shut up a string truncation warning 2021-06-05 20:53:45 +02:00
Autechre f57fcd4048 Merge pull request #12489 from Jamiras/cheevos_challenge_indicators
(cheevos) address travis errors
2021-06-05 17:37:06 +02:00
Autechre 4b4576ed62 Merge pull request #12457 from libretro/vita-sounds
VIta: Enable menu sounds
2021-06-05 17:31:22 +02:00
Jamiras 9f8092dc27 address travis errors 2021-06-05 08:10:14 -06:00
Autechre e40f0d308b Merge pull request #12488 from Jamiras/cheevos_challenge_indicators
(cheevos) challenge indicators
2021-06-05 16:02:38 +02:00
Autechre 2259e9b38e Merge pull request #12403 from alphanu1/master
New Switchres (CRT Resolution switching) For Retroarch
2021-06-05 00:27:00 +02:00
twinaphex e44f0749a1 Put this behind HAVE_LANGEXTRA 2021-06-04 20:50:21 +02:00
Jamiras 3fe52bb7fb add toggle/setting for challenge indicators 2021-06-04 12:32:01 -06:00
Autechre 2edc6d6e6a Update CHANGES.md 2021-06-04 20:20:46 +02:00
Autechre fce9da5e76 Merge pull request #12445 from toshixm/CJK_folding_rev2
Improve message wrapping with CJK languages
2021-06-04 20:14:55 +02:00
Ben 4b2f27eff8 Ver 0.9.2 SR2 (Switchres API) Implimantation
Fixed SR close match refresh bug.
Added menu high resolution option.
Fixed desktop restore bug cuusing endless resolution change requests.
Fixed file conflicts
Added destop restore resolution back in for manu only.
Pulled Switchres fixes.
Added better PI rsolution support.

Ver 0.7 SR2 (Switchres API) Implimantation

Removed HH experimetal check. This is better done via teh switchres.ini at present.
Fixed refresh rate bug. Now new resolution and refesh is added correctly.
Removed SR deinit from menu restore. Meanu now stays at last content resolution.

Ver 0.6.2 SR2 (Switchres API) Implimantation

Fixed super resolution bug casuing abnormal video size and aspect ratio
Fixed logging issue casuing seg falts on RA exit

Ver 0.6 SR2 (Switchres API) Implimantation

Ver 0.2 SR2 (Switchres API) Implimantation

Added forced super resolutions.
Added Multi-monitor/monitor selection support.
Added desktop resolution restore when switching back to menu only.
Added new menu items for 31KHz standard and 120hz monitor profiles.
Added new menu item INI. load monitor profile from switchrss.ini.
Fixed winraw driver. Coordinates new refreshed after a resolution change.
Fixed Menu aspect ratio in super resolutions.
Removed static glabals. These have been added to videocrt_switch struct.

Ver 0.1 SR2 (Switchres API) Implimantation

Removed old CRTSwitchRes method. Added new SR2 API implimantaion.
Resolution swithcing is now done by switchres libs. Both Linux and Windows
working with native and super resolutions. Working multi-monitor support
with monitor index selection. Working 31KHz support with standard and 120Hxz
modes. The monitor index selection is still done via the RA UI. Only choose
native and 15KHz form the CRT options in the RA UI as all options are now set
in the switchres.ini. All other CRT optoins in the RA UI currently do nothing.

Added SR wrapper to fix compile issues. Added back RPi functionality

Fixed windows resize/scaling issues on resolution change

Thanks @Calamity no more need for crt_switch_driver_refresh()

Fix broken case after prevous commit

Monitor preset options 15/31KHz now active. Added new meu option.

Moitor persets can now be choosen fom the RA UI. 15KHz and 31KHz will set
arcade_15 and aracde_31 respectivly. New option INI, if this is chosen your
monitor preset will be selected from your switchres.ini file.

Added 3KHhz, 120Hz. for old RA users. Renamed 31KHz to 31 KHz,  Standard

Fixed winraw input coordinates after switching resolution.

Code cleanup

Fixed menu aspect ratio issue

Added menu resolution restore after closing content

Fixed aspect ratio after menu resolution restore.

code clean up

Fxed menu Resulition Restore Aspect Ratio. When SR uses non integer scalled resolution.

super width bug with restoring menu resolution fix

added super resolution check after setting desktop resolutoion variables

when menu active only sr_deinit() used to restore desktop mode.

Fixed menu sr_deinit bug. now setting sr_active false

Removed static globals, added them to video_switch struct

Fixex compile bug due to comment //

Fixed compile issues doe to c++ comments in teh switchres_wrapper.h

Temporarily removed SR2 logging to fix compile isses for c90

added logging back in. Removed support for winnt and osx

Added define for C89. Disabled SR if defined C89

Removed all RA compile fixes fro C89 C90 etc. Swithing now working again.

Put Switchres behind HAVE_SR2. HAVE_SR2=no by default. --enable-sr2

Ver 0.5 SR2 Implimentation.

Ver 0.4 SR2 Implimantation.

Bake SR inside RA

Removed temporary log files

Disable switchres when C89/C99 builds.

Removed C89 and C90 checks for SR

Fixed switchres_wrapper.h location

Ver 0.3 SR2 Implimenation

Dissable logging for C89 __STDC__

Fix For RPi

fixed missing EOL

fixed RPi function definition

added vidrocrt_switch stuct to RPI funcion

fixed xoffset for RPi

Removed old RPi function call

SR disabled for videocore until VC4 switching ported

Reverted back to state 5c8a56c Bake SR inside RA

Use native win32 api for threads.

Fix static lib linking
LIBERROR would be defined twice otherwise + improper function names prefixed by __imp_

Added lidstc++ to makefile.common for switchres

Fixed RPi switching. Disabled Switchres for videocore unill it is ported.

removed RAA.log. Should not exist

Added check for when SR fails to set mode with an aspect ratio fix.

added video driver re init for RPi

GB, GBA and GBC core check, adjusted reseolutions and scale. Please turn on integer scalling in the RA UI

Added logas back in. Checking STDC verstion >= C11

Fixed c89 for loop declaration.

Code clean up. Added new functions

Fix resolution switching bug introduces with HH code clean up.

Fixed menu restore bug on closw content after code clean up

Moved SR logging to relevant RA logs

Update makefile. Checks for X11 and xrandr

fixed makefile

Use native win32 api for threads.

Fix static lib linking
LIBERROR would be defined twice otherwise + improper function names prefixed by __imp_

Update switchres_wrapper.* header comments

Update year copyright

DRMKMS: build only if libdrm has the required version

XRANDR: build only if xrandr is available

Simplified maklefile

Fixed RPI compile error with unsued functions.

As before

Disable Griffin. No switching support available. Never has been

Removed log file 1

Added Win32 static define

Added SR source

Removed Videocore check on destroy SR

Moved SR deinit to trigger earlier on RA exit.

Fixed compile error after upstream rebase

Fixed aspect ration bug cused by super resolutions. Temporarily disbabled SR logging

Re inabled runtim eSR loggind. Disableed all RARCH logging on retro_deinit_drivers

Removed srdeinit from menu restore. Menu stays in current reolution until a fix can be found

Fixed refresh rate changes when no reolution change is detected.

Forgot to add teh resolution cahge in with the refresh change oops

Fixed endless no detection log.

Removed HH check. This can been better adjusted using the switchres.ini

fixed compile issue

Added better PI crt switching and fixed typo

Pulled Swicthres fixes. Updated desktop restore resolution.

removed unused makefile

Lockec menu refresh to 60hz

fixed missing new line

Fixed file conflicts

Forced 640x480@60 for menu

Added high resolution menu option

Removed item logg checker

Fixed typos

Removed unused functions

Fixed SR close match refesh bug.

Fixed typo
2021-06-04 08:32:56 -07:00
Jamiras 7919a87b97 show challenge indicators 2021-06-03 19:53:17 -06:00
sonninnos 8584b122e1 (D3D11+12) Allow fastforward in fullscreen 2021-06-04 04:31:11 +03:00
Autechre ec7e528094 Merge pull request #12466 from christianhaitian/master
Add nmcli to wifi drivers
2021-06-03 20:08:42 +02:00
Autechre f0c9c542a2 Merge pull request #12469 from CTCaer/unix-sysfs-battery-fix
plat: unix: get better battery stats on sysfs nodes
2021-06-03 20:06:44 +02:00
Autechre 4ed88ec68a Merge pull request #12477 from jdgleaver/archive-hash-fix
Fix loading of archived content with file names containing '#' characters
2021-06-03 20:06:36 +02:00
Autechre 140b8f5e0a Merge pull request #12474 from Jamiras/cheevos_menu
(cheevos) group achievements by category in quick menu
2021-06-03 19:42:09 +02:00
jdgleaver b5df2b883a Fix loading of archived content with file names containing '#' characters 2021-06-03 16:40:13 +01:00
toshixm 4fab84ca9e improve message wrapping with CJK languages 2021-06-03 21:09:35 +09:00
Autechre d8a5505204 Merge pull request #12473 from jdgleaver/content-data-api
Add API extension for setting 'need_fullpath' based on content file extension and to request persistent frontend content data buffers
2021-06-03 13:11:56 +02:00
toshixm 1218aebfbf static allocation instead of malloc() 2021-06-03 15:26:33 +09:00
Autechre b81ec7d631 Merge pull request #12446 from toshixm/fix_12440
fix garbled characters when converting encodings
2021-06-03 00:17:53 +02:00
Jamiras f8479c2b5a address travis warnings 2021-06-02 06:37:54 -06:00
Jamiras 69f3dda90a sort recently unlocked so newest unlocks are first 2021-06-02 06:34:54 -06:00
Jamiras a06b303879 remove unused structure 2021-06-01 21:52:10 -06:00
Jamiras ef9beea9f8 use info icon for headers; use server default image while downloading badges 2021-06-01 21:27:02 -06:00
Jamiras cd8f6ede4e support for almost there, active challenge, and recently unlocked categories 2021-06-01 19:38:10 -06:00
Jamiras e76265e1aa group achievements by category 2021-06-01 15:23:18 -06:00
Autechre 6443d6f019 Merge pull request #12472 from meleu/master
CHEEVOS: relabel 'Start Active' with 'Encore Mode'
2021-06-01 17:59:09 +02:00
Jamiras 293e797146 move menu code to separate file 2021-06-01 09:02:12 -06:00
jdgleaver 55c855267e Add API extension for setting 'need_fullpath' based on content file extension and to request persistent frontend content data buffers 2021-06-01 15:28:39 +01:00
meleu 73a5ec9f42 relabel 'Start Active' with 'Encore Mode' 2021-06-01 08:16:03 -03:00
CTCaer 86f8670d0b plat: unix: get better battery stats on sysfs nodes
This addresses 2 issues:

1. Input controllers report battery supplies.
   That causes wrong charging status or capacities if they report percentages instead of levels.
   Such supplies normally report scope attributes that report Unknown or Device type of power supply.
   If reported value is System or the attribute is missing, it's considered a System supply and used.

2. Various systems have backup batteries.
   That causes the wrong capacity to be reported depending on order of node creation.
   This is addressed by keeping track of these and calculating an average.
2021-05-31 18:36:49 +03:00
Autechre 6772b89872 Update CHANGES.md 2021-05-31 16:15:09 +02:00
Autechre d95e46c2bd Merge pull request #12458 from CTCaer/x-monitor-swap-fullscreen-fix
X11: fix fullscreen when swapping monitors/resolution
2021-05-31 16:14:04 +02:00
Christian_Haitian 74d9f976a8 Add wifi configuration menu
Enable with --enable-wifi during
configuration before make.
Credit to valadaa48 for the
code and configuration.
2021-05-31 02:20:34 +00:00
Autechre b1a3ea72c9 Update CHANGES.md 2021-05-30 04:22:55 +02:00
Autechre ab888629a5 Merge pull request #12456 from libretro/pstvscaling
Vita: Fix scaling on PSTV when not using 720p
2021-05-30 04:22:31 +02:00
toshixm 935c7d0e2c use _wfullpath() instead of _fullpath() 2021-05-30 09:17:06 +09:00
CTCaer a8028d5e8e X11: fix fullscreen when swapping monitors/resolution
Most DEs have the tendency to lose focus when monitor is getting swapped or the resolution changes.
That causes X11 exiting fullscreen and setting a lower resolution to fit desktop.
Pushing the window back to top, automatically fixes that and X11 enforces fullscreen again and new max resolution.

Additionally, XConfigure events are now checked and preferred over XGetWindowAttributes.
That saves several to hundreds μs per frame.
2021-05-29 22:19:19 +03:00
Francisco José García García cc1e080dfe VIta: Enable menu sounds 2021-05-29 20:22:37 +02:00
Francisco José García García 35f7ef3cc2 Vita: Fix scaling on PSTV when not using 720p 2021-05-29 19:05:35 +02:00
twinaphex c226bd87f4 Bump version to 1.9.4 2021-05-29 09:23:37 +02:00
Autechre c0b7c34264 Update version.dtd 2021-05-29 09:22:08 +02:00
Autechre 5cf7b57064 Update version.all 2021-05-29 09:21:49 +02:00
Autechre adf6a7ff20 Merge pull request #12450 from libretro/kivutar/fixnota
Try to fix notarization issue
2021-05-29 06:05:04 +02:00
Jean-André Santoni 5a7cebf7da Last fix 2021-05-29 11:03:35 +07:00
Jean-André Santoni 4a8fdaed84 Don't duplicate bundle IDs 2021-05-29 10:54:26 +07:00
Jean-André Santoni 4441219df9 Always prefix bundle ID with com 2021-05-29 10:51:00 +07:00
Autechre 750ad9aa7b Update CHANGES.md 2021-05-28 21:27:19 +02:00
Autechre 0d7a028ce3 Merge pull request #12444 from Jamiras/info_crash 2021-05-28 08:50:21 +02:00
toshixm 84975d71ea fix garbled characters when conveting to local encoding 2021-05-28 15:20:19 +09:00
Jamiras 45c0dc4486 fix crash by restoring incorrectly eliminated line 2021-05-27 21:34:51 -06:00
Jamiras 2c21e3df8b (cheevos) upgrade to rcheevos 10.0 (#12442)
* update rcheevos to v10.0.0

* changes for rcheevos 10

* map virtual tracks in cd_open_track_handler

* address travis warnings
2021-05-27 21:01:00 +02:00
Autechre 138f41160f Merge pull request #12443 from libretro/vitafreetexture
Vita: wait before free texture
2021-05-27 19:53:43 +02:00
Francisco José García García 194de13afb Vita: wait before free texture 2021-05-27 18:41:44 +02:00
Autechre 2c7c8def4c Merge pull request #12435 from toshixm/refactor_word_wrap 2021-05-27 17:31:45 +02:00
Autechre ff3928224e Merge pull request #12441 from jdgleaver/overlay-show-inputs-fix 2021-05-27 17:31:02 +02:00
toshixm a39c38f267 refactor word_wrap() 2021-05-27 19:55:37 +09:00
jdgleaver 8e54b4cec9 (Show Inputs on Overlay) DISABLE_MENU=1 buildfix + Qt settings update 2021-05-26 18:15:23 +01:00
twinaphex 0dfb2b57fb use snprintf instead of multiple consecutive strlcpy/strlcats 2021-05-26 05:22:18 +02:00
twinaphex a84c9022af Cleanups 2021-05-25 21:31:39 +02:00
twinaphex 0a5d4288f5 Rollback runloop changes - will require a rethink in how we approach
this
2021-05-25 20:41:39 +02:00
Autechre 3c6ac487d0 Merge pull request #12438 from jdgleaver/overlay-show-inputs-redux
Add option to select between 'touched' elements and physical controller inputs when showing inputs on overlays
2021-05-25 19:04:17 +02:00
jdgleaver 466bd3be7f Add option to select between 'touched' elements and physical controller inputs when showing inputs on overlays 2021-05-25 18:01:52 +01:00
Autechre 5dc7b7f7c7 Merge pull request #12437 from DisasterMo/inconsistencies_fix
Fixed some inconsistencies in the RetroArch texts
2021-05-25 18:09:21 +02:00
Michael Burgardt 3e814bc4b6 Fixed some inconsistencies in the RetroArch texts 2021-05-25 17:13:55 +02:00
twinaphex f70b6fbf58 Revert "Go through p_runloop pointer"
This reverts commit 30a90adc47.
2021-05-25 05:27:06 +02:00
twinaphex 30a90adc47 Go through p_runloop pointer 2021-05-25 05:19:43 +02:00
twinaphex 621a0b61f6 Move more state to runloop_state (in preparation of removing path_clear
and path_is_empty)
2021-05-24 20:38:56 +02:00
twinaphex 244a2ad052 Simplify video_thread_get_ptr - get rid of unused p_rarch pointer
in dir_free_shader
2021-05-24 19:22:55 +02:00
Autechre bb04b0b9d3 Merge pull request #12432 from DisasterMo/crowdin_sync
Fixed a tiny bug in the Crowdin sync script
2021-05-24 18:51:41 +02:00
Autechre e616b41b62 Merge pull request #12431 from yoshisuga/ios_disable_core_info_cache
[iOS/tvOS] Disable core info caching for iOS
2021-05-24 18:42:51 +02:00
twinaphex fb8c73508b Apply diff patch taking care of issues 2021-05-24 18:40:40 +02:00
Michael Burgardt f2a73d1b14 Fixed a tiny bug in the Crowdin sync script 2021-05-24 12:43:48 +02:00
twinaphex 2b4f2525d0 move more runloop functions over to runloop.c 2021-05-24 02:57:40 +02:00
twinaphex 75175ddbce move more runloop functiosn to runloop.c 2021-05-24 02:27:55 +02:00
Yoshi Sugawara 4dcbd3e383 [iOS/tvOS] Disable core info caching for iOS 2021-05-23 08:33:14 -10:00
twinaphex b48ab663b0 Move BSV runloop code over to runloop.c 2021-05-23 02:20:01 +02:00
twinaphex 364d518726 More runloop_state changes 2021-05-23 01:54:33 +02:00
twinaphex d1c7d97b10 Split up code to runloop.c 2021-05-22 23:09:00 +02:00
Autechre f8b6443b91 Update CHANGES.md 2021-05-22 18:52:52 +02:00
Autechre 8344ed9db5 Update CHANGES.md 2021-05-22 18:52:08 +02:00
Autechre 76f3d0c1b7 Merge pull request #12429 from libretro/pstv720p
[VITA] Support for 720p on PSTV when using unlock framebuffer in Sharpscale plugin
2021-05-22 18:51:38 +02:00
Francisco José García García 52af69e6cd Vita: support for 720p in PSTV & Sharpscale plugin 2021-05-22 17:29:03 +02:00
Francisco José García García d6b1836919 Vita: arrange compile flags 2021-05-22 17:29:03 +02:00
twinaphex 7c483340fc Start creating a distinction between runloop_ and retroarch_ prefix
functions
2021-05-22 16:51:55 +02:00
twinaphex 33de17548b Fix regression caused by core info file caching - Downloads was no
longer showing up in Load Content
2021-05-22 16:25:05 +02:00
twinaphex 9cd19d4944 Silence warning - ret was never used 2021-05-22 16:05:26 +02:00
twinaphex 89e4cac3f1 Small cleanups 2021-05-22 07:33:05 +02:00
twinaphex 29e9027ec0 Cleanup find_driver_* functions - don't pass p_rarch through it 2021-05-22 05:37:14 +02:00
twinaphex 68c377cd55 Move more to runloop_state 2021-05-22 02:57:02 +02:00
twinaphex 706ab17b2c Remove p_rarch passing around where it's no longer needed 2021-05-22 02:14:32 +02:00
twinaphex fede9eee4b Get rid of unused variables 2021-05-22 01:31:29 +02:00
twinaphex d84a2ef700 Move boolean state variables from p_rarch to runloop_state 2021-05-22 01:25:59 +02:00
twinaphex 4ba92b1643 Move more runloop state over to runloop_state 2021-05-22 00:25:01 +02:00
twinaphex 57a728fd41 Rename audio_out_rate to audio_output_sample_rate 2021-05-21 22:36:46 +02:00
twinaphex bc8f98358b Cleanup in audio_driver_init_internal 2021-05-21 22:30:16 +02:00
twinaphex 3887db349e Get rid of unused variable 2021-05-21 22:26:46 +02:00
twinaphex 98448960f5 Move audio_driver_mixer_volume_gain to runloop_state struct 2021-05-21 22:25:36 +02:00
twinaphex 22a2b5ac1c Move more variables to runloop_state 2021-05-21 22:20:26 +02:00
twinaphex 6e4620cebc Prevent warning on Griffin builds 2021-05-21 21:25:43 +02:00
twinaphex 458d636861 Move more runloop state to runloop state struct 2021-05-21 21:23:06 +02:00
twinaphex 64c01e620d Rename retroarch_get_runloop_fastforward_* function 2021-05-21 20:09:50 +02:00
twinaphex 57c4802ab4 Remove unused variable 2021-05-21 20:02:22 +02:00
twinaphex 74f1bf59b9 Refactors - plenty of runloop state functions no longer pass p_rarch
around, so get rid of it
2021-05-21 19:52:09 +02:00
Autechre cacbd451dc Update CHANGES.md 2021-05-21 17:48:36 +02:00
Autechre 7174563f7d Merge pull request #12426 from jdgleaver/overlay-remap-fix
Prevent duplicate inputs when using remaps with input overlays
2021-05-21 17:46:32 +02:00
jdgleaver d5f862ee07 Prevent duplicate inputs when using remaps with input overlays 2021-05-21 16:31:11 +01:00
twinaphex f66d4ea33c Remove unused variables 2021-05-21 17:14:13 +02:00
twinaphex 0797fd957a menu_entries_get_core_title - cut down on amount of lines of code 2021-05-21 17:10:20 +02:00
twinaphex b45acf2223 MSVC buildfixes 2021-05-21 17:09:55 +02:00
twinaphex 30143f15f2 Simplify menu_entries_get_core_title 2021-05-21 16:54:43 +02:00
twinaphex 24389bbcd5 Small cleanups to task_content.c 2021-05-21 16:30:02 +02:00
twinaphex 2e50b57643 task_content_disc.c - header include cleanups 2021-05-21 14:10:44 +02:00
Autechre 5b995dec26 Update CHANGES.md 2021-05-21 14:08:55 +02:00
Autechre 5ae4524176 Merge pull request #12424 from libretro/pstvinput 2021-05-21 13:13:28 +02:00
Francisco José García García 87a7795331 [VITA] Fix input driver for PSTV 2021-05-21 10:54:02 +02:00
Autechre 44fc3666ed Merge pull request #12421 from jdgleaver/task-content-cleanup-1 2021-05-21 06:16:38 +02:00
markwkidd cea6b17391 bind trigger to first mouse button by default 2021-05-20 22:50:49 -04:00
jdgleaver 334a43a7c5 Prevent unnecessary extraction (to disk) of compressed content files + task_content.c clean-ups 2021-05-20 17:08:51 +01:00
Autechre 29475a904f Merge pull request #12419 from crystalct/master
Change default video driver name for PSL1GHT
2021-05-20 05:30:26 +02:00
U-LAPTOP-0BS9KNOH\crystal 159602d697 Change default video driver name for PSL1GHT 2021-05-19 22:50:34 +02:00
twinaphex de88edf56c Fix header include now that defines/ files are in libretro-common 2021-05-19 16:47:40 +02:00
twinaphex 4fb6bc9f33 Fix another camelcase variable 2021-05-19 16:13:05 +02:00
twinaphex b82a20ea0c We don't want camelcase notation variable names for RetroArch 2021-05-19 16:11:26 +02:00
twinaphex 8291b18771 Small cleanup to cheevos content loading part 2021-05-19 16:05:42 +02:00
twinaphex 181824eb00 (Tasks/content) Split up CDROM code into tasks/task_content_disc.c 2021-05-19 15:53:38 +02:00
twinaphex 7a2115670a Fix relative path includes 2021-05-19 15:41:40 +02:00
Autechre 951999e5ce Merge pull request #12416 from crystalct/master
PSL1GHT salamander build fix
2021-05-19 14:48:03 +02:00
U-LAPTOP-0BS9KNOH\crystal 23acacf436 PSL1GHT salamander build fix 2021-05-19 00:31:09 +02:00
twinaphex 925c459aed Use single snprintf instead of multiple strlcpy/strlcat calls in
several places
2021-05-18 23:18:09 +02:00
twinaphex 0482892a9c Get rid of return variable for snprintf 2021-05-18 23:09:45 +02:00
Autechre dd922bfc2c Merge pull request #12413 from Jamiras/cheevos_sprintf
(cheevos) replace sprintf with snprintf
2021-05-18 22:55:13 +02:00
twinaphex 35543ecd91 Move defines files over to libretro-common 2021-05-18 22:15:04 +02:00
twinaphex e08290acb0 Less strlcpy/strlcat concatenation of strings 2021-05-18 21:06:29 +02:00
twinaphex e34c84d791 Use snprintf in more situations 2021-05-18 20:19:19 +02:00
twinaphex 2e4b734159 Cleanups - replace several messy strlcpy/strlcats with one single
snprintf
2021-05-18 20:09:48 +02:00
twinaphex 3b64752f4f Simplify strlcpy/strlcat combinations to single snprintf 2021-05-18 20:01:51 +02:00
twinaphex 9829051841 win32_localize_menu - replace strcmp call with string_is_not_equal 2021-05-18 19:49:57 +02:00
twinaphex fc2a011a5c Use single snprintf call where possible instead of multiple
strlcpy/strlcat calls
2021-05-18 19:36:20 +02:00
twinaphex 0e7ff6ea4e - Avoid some repeated strlcpy/strlcat calls one after another; replace
it with a single snprintf call under the assumption it will probably
still be faster
- In some instances, the first time the string was manipulated on was
with a strlcat call instead of an strlcpy - change this
2021-05-18 19:27:54 +02:00
twinaphex e784cc1aaf Cleanup some accessibiliyt-related code - pre-initialize strings
normally, don't use weird string_is_equal check which checks if string
is empty, etc.
2021-05-18 19:02:10 +02:00
twinaphex e4a8f42ad1 win32_localize_menu - get rid of direct strcpy/strcat calls 2021-05-18 18:53:30 +02:00
Autechre a04fe66032 Merge pull request #12380 from stenzek/vulkan-software-fb
(video/vulkan) Avoid caching stale mapped GPU texture as frame data
2021-05-18 18:01:47 +02:00
Jamiras 9669cff16b fix travis error 2021-05-18 09:46:03 -06:00
Jamiras 09439332f3 implement feedback 2021-05-18 09:40:53 -06:00
Jamiras 216deda910 replace sprintf with snprintf 2021-05-18 08:31:44 -06:00
twinaphex 7bbdd6d18a Prefer using snprintf instead of insecure sprintf 2021-05-18 15:14:08 +02:00
twinaphex b037da7264 (vita/launcher) Use snprintf 2021-05-18 15:07:58 +02:00
twinaphex ef35adc9d6 platform_ps2.c - Use snprintf 2021-05-18 14:15:18 +02:00
twinaphex f6a8480f21 (platform_psp.c) Switch to strlcpys instead of sprintf 2021-05-18 13:57:23 +02:00
Autechre d3b3b40ea7 Update CHANGES.md 2021-05-18 13:43:43 +02:00
Autechre 6972cc2bc6 Merge pull request #12398 from DisasterMo/playlist_entry_enumeration
(ozone) Added simple playlist entry enumeration
2021-05-18 13:19:35 +02:00
twinaphex 74cef32c1d Cleanups 2021-05-18 00:57:46 +02:00
Michael Burgardt d50be7a0ab Added simple playlist entry enumeration to ozone; added toggle option by jdgleaver 2021-05-17 18:49:25 +02:00
twinaphex d228e5f759 Small style nits 2021-05-17 15:58:04 +02:00
Autechre 10546594de Update CHANGES.md 2021-05-17 15:54:39 +02:00
Autechre e9b5f009cc Merge pull request #12411 from jdgleaver/max-users-dropdown-fix
(XMB) Fix display of 'Maximum Users' menu entry dropdown list
2021-05-17 15:52:14 +02:00
twinaphex d6ec36c707 Enable 'Cache Core Info Files' by default for all platforms 2021-05-17 15:47:28 +02:00
jdgleaver be84700d0a (XMB) Fix display of 'Maximum Users' menu entry dropdown list 2021-05-17 14:41:57 +01:00
Autechre ad5b2d614a Merge pull request #12401 from davidgfnet/br3
Add brightness restore hook
2021-05-17 13:24:50 +02:00
Autechre 9e87040c02 Merge pull request #12406 from guoyunhe/crowdin
Fetch translations from Crowdin
2021-05-17 13:24:39 +02:00
Autechre 90abd49892 Merge pull request #12410 from Alcaro/master
rpng: Fix some memory corruption if processing broken input
2021-05-17 13:22:51 +02:00
Alcaro 654aae58d6 rpng: Fix some memory corruption if processing broken input 2021-05-17 08:43:53 +02:00
twinaphex e6adca7679 rarch_init_core_options_path - NULL termination of strings is already
done outside by caller
2021-05-17 00:56:29 +02:00
Autechre 095f6d4377 Merge pull request #12407 from crystalct/master
PSL1GHT joypad restored
2021-05-16 23:01:32 +02:00
Autechre b946b146f3 Merge pull request #12408 from LazyFunker/master
Fix typo
2021-05-16 23:00:39 +02:00
LazyFunker 4e0f8bf621 Fix typo 2021-05-16 20:44:31 +02:00
unknown de4343caeb PSL1GHT joypad restored 2021-05-16 20:04:43 +02:00
Autechre a9426925cf Update config.def.h 2021-05-16 19:27:07 +02:00
Autechre aebdc8b747 Merge pull request #12404 from mudlord/master
Look into fixing CVE-2021-28927
2021-05-16 18:43:34 +02:00
Guo Yunhe c9d4775ffc Fetch translations from Crowdin 2021-05-17 00:09:21 +08:00
mudlord 3b8bd1a6e8 There. 2021-05-16 18:28:59 +10:00
mudlord 734401440d People are never happy. 2021-05-16 18:20:52 +10:00
mudlord 9fbf3b9732 Whoops 2021-05-16 17:58:43 +10:00
mudlord 67b180d63d Look into fixing CVE-2021-28927 2021-05-16 17:55:14 +10:00
David Guillen Fandos c378665af5 Add brightness restore hook
This is out of the unix frontend driver on purpose, since settings do
not seem to be available at init() time.
2021-05-15 21:20:37 +02:00
Autechre 3187c87451 Update CHANGES.md 2021-05-15 20:07:09 +02:00
twinaphex 122be0cc64 Bump version to 1.9.3 2021-05-15 19:57:59 +02:00
Autechre 6b13e3f050 Merge pull request #12397 from jdgleaver/info-cache-default
Enable core info cache by default on all 'console' platforms
2021-05-14 17:58:04 +02:00
jdgleaver 87e248f4eb Enable core info cache by default on all 'console' platforms 2021-05-14 16:49:30 +01:00
Autechre 2be7106055 Merge pull request #12395 from jdgleaver/auto-shader-delay-fix
Fix 'Auto-Shader Delay' functionality
2021-05-14 16:15:15 +02:00
jdgleaver 0a24f5f38a Fix 'Auto-Shader Delay' functionality 2021-05-14 13:47:46 +01:00
Autechre 6189fd3f42 Merge pull request #12392 from alttpo/fix-network-cmd-recvfrom
command: initialize netcmd->cmd_source_len before recvfrom()
2021-05-14 13:06:59 +02:00
Autechre 29d5a692d0 Merge pull request #12393 from jdgleaver/rgui-config-save-fix
(RGUI) Fix saving of config files/overrides when 'Lock Menu Aspect Ratio' is enabled
2021-05-14 13:06:36 +02:00
jdgleaver 358cafa978 (RGUI) Fix saving of config files/overrides when 'Lock Menu Aspect Ratio' is enabled 2021-05-14 10:50:18 +01:00
jsd1982 b3eebbd5ec command: initialize netcmd->cmd_source_len before recvfrom() 2021-05-13 22:13:10 -05:00
Autechre cc5b491e21 Merge pull request #12390 from jdgleaver/emscripten-load-content-fix
Fix content loading via file browser on platforms with 'broken' core handling (i.e. emscripten)
2021-05-13 17:35:39 +02:00
Autechre bf0b9f536a Merge pull request #11547 from jdgleaver/ff-callback
Add API extension for cores to override frontend fast-forward state
2021-05-13 16:40:06 +02:00
jdgleaver 6f471e0660 Fix content loading via file browser on platforms with 'broken' core handling (i.e. emscripten) 2021-05-13 15:32:25 +01:00
jdgleaver 484c4ad51e Add API extension for cores to override frontend fast-forward state 2021-05-13 13:16:37 +01:00
Autechre 66c77af4a6 Merge pull request #12381 from GavinDarkglider/master
Fix typo in HAVE_LAKKA_SWITCH stuff that is breaking HAVE_LAKKA build…
2021-05-12 16:08:15 +02:00
Autechre 667568b0b8 Merge pull request #12386 from Ryunam/ozone-themes-id
Updates to Ozone (follow-up to #12382)
2021-05-12 16:02:07 +02:00
twinaphex f3ff36ac34 Fix some targets - no comma at end of enumerator list 2021-05-12 16:01:31 +02:00
Autechre feaefbef04 Merge pull request #12385 from jdgleaver/static-reload-core-fix
(Static Platforms) Ensure 'Always Reload Core on Run Content' setting is applied when loading content via the file browser
2021-05-12 16:00:43 +02:00
Ryunam a16aba2138 Updates to Ozone 2021-05-12 15:28:26 +02:00
jdgleaver 50d27fada9 (Static Platforms) Ensure 'Always Reload Core on Run Content' setting is applied when loading content via the file browser 2021-05-12 10:59:07 +01:00
Autechre a6d92de0b2 Merge pull request #12382 from Ryunam/ozone-themes-id
Minor updates to Ozone themes code
2021-05-12 09:18:02 +02:00
Autechre 89391ccf9a Merge pull request #12287 from LazyFunker/master
Some fixes for UWP/XBox
2021-05-12 09:17:53 +02:00
Autechre e430f832cc Merge pull request #12383 from davidgfnet/cpufreq2
CPU governor/frequency part 2
2021-05-12 09:17:42 +02:00
David Guillen Fandos 9280340fe0 CPU governor/frequency part 2
This adds managed policies and settings to store them and reload them at
startup. Only for Lakka builds!
2021-05-12 02:16:25 +02:00
Ryunam 85466225de Minor updates to Ozone themes code 2021-05-11 19:35:38 +02:00
Stenzek c9aaf598bb (video/vulkan) Avoid caching stale mapped GPU texture as frame data
At best, this results in junk on screen, at worst we could crash.

It's not a perfect fix, there's still a scenario where this breaks: when
fast forwarding is enabled, and we swap from vsync-off to vsync-on when
pausing/rendering the menu, the swap chain (and textures) gets
recreated, and the frame data is completely lost.

There isn't much we can do about this without more intrusive changes,
such as preserving the textures inbetween swap chain reinits.
2021-05-11 09:49:39 -07:00
Stenzek 92e795aa28 (main) Remove null check from video_driver_set_cached_frame_ptr
The only call sites here use NULL as a parameter, and it makes
sense to clear it, since the intent is to remove a potentially
dangling pointer.
2021-05-11 09:49:39 -07:00
Ronald Brown fa2c789c3f Fix typo in HAVE_LAKKA_SWITCH stuff that is breaking HAVE_LAKKA building. 2021-05-10 23:31:00 -07:00
Autechre 475213aa0a Merge pull request #12378 from davidgfnet/master
Moving more stuff from samples to tests
2021-05-11 03:16:04 +02:00
David Guillen Fandos 32d6eeaf07 Moving more stuff from samples to tests
Reworked the test a bit to make it separate from RA's build system for
simplicity.
Reworked the testing a bit to ensure coverage is properly generated.
This needs more work since it's rather manual and verbose
2021-05-10 19:45:50 +02:00
Autechre 6f95e7819a Merge pull request #12364 from davidgfnet/master
Add more tests and coverage generation
2021-05-09 19:57:40 +02:00
GavinDarkglider f24f827c4c Updates For Lakka Switch build. (#12369) 2021-05-07 20:58:30 +02:00
Autechre 53a266728b Merge pull request #12368 from jdgleaver/core-info-fix 2021-05-07 14:28:18 +02:00
Autechre 215ed2ccf6 Merge pull request #12367 from jdgleaver/core-info-cache-whitespace 2021-05-07 14:28:01 +02:00
jdgleaver a671b6394c (Core Info) Fix core detection on platforms that support cores with multiple file extensions 2021-05-07 10:58:09 +01:00
jdgleaver dec1fd097c Skip whitespace when writing compressed core info cache files 2021-05-07 10:16:21 +01:00
David Guillen Fandos a0f0d7bed2 Add more tests and coverage generation 2021-05-06 18:43:56 +02:00
Autechre 6a21eca5df Merge pull request #12363 from jdgleaver/core-info-cache-updates 2021-05-06 16:13:55 +02:00
jdgleaver c37f540b72 Core Info Cache Improvements
- Core info cache can now be enabled/disabled on all platforms via a new `Settings > Core > Cache Core Info Files` option
- Core info cache file has been renamed from `.cache` to `core_info.cache` (i.e. it is no longer a 'hidden' file on Unix platforms, so can be deleted easily)
- The core info cache file is now compressed (rzip) to further reduce disk IO
- The presence of a `core_info.refresh` file in the core info directory will force a one-time refresh of the info cache. This file is generated automatically when toggling on the `Cache Core Info Files` option, and we will also add it to core info file packaging such that updating info files (either manually or via the online updater) will force a refresh
- The core info cache no longer contains 'core is locked' and 'firmware missing' data fields; these are 'dynamic' properties that must be determined at runtime
- The 'core is locked' status is now determined on core info intialisation by parsing the core directory listing, rather than by performing indivdual 'lock file exists' checks. This minimises file IO, and greatly improves performance on devices with slow storage
- While parsing the core info cache file, we now avoid unnecessary `strdup()`s when adding entries to the resultant cache list
- Memory leaks (potential and real) have been fixed, and safety checks added
- Build errors have been fixed
2021-05-06 15:00:55 +01:00
Autechre 5aba614b60 Merge pull request #12350 from bulzipke/master 2021-05-06 15:57:50 +02:00
Autechre 0680505ebf Merge pull request #12354 from njordan64/generic-queue-linked-list
Adding a generic queue and linked list.
2021-05-05 22:49:11 +02:00
Norman Jordan 528af55abd Adding a generic queue and linked list.
Both accept (void *) values. Also added some unit tests using CHECK.
2021-05-05 10:41:13 -07:00
Autechre 1167dde73a Merge pull request #12359 from njordan64/shader_vulkan_fix
Added a missing include.
2021-05-05 18:18:42 +02:00
Autechre b3abdefb9a Merge pull request #12358 from bulzipke/fix-msvc-build
Fix windows msvc build
2021-05-05 18:18:33 +02:00
Norman Jordan 1b0ae7a0b2 Added a missing include. 2021-05-05 01:52:04 -07:00
bulzipke f3daf070e1 Fix windows msvc build 2021-05-05 15:32:15 +09:00
Autechre 6241909a08 Merge pull request #12356 from jdgleaver/warn-fix
Fix 'unhandled enum' compiler warning on non-LAKKA platforms
2021-05-04 16:04:33 +02:00
Autechre 7fbb7a8007 Merge pull request #12355 from jdgleaver/3ds-disable-screensaver
(3DS) Disable menu screensaver animations in XMB/GLUI
2021-05-04 16:04:24 +02:00
bulzipke e96cbcac04 (3DS) Build core info cache 2021-05-04 23:01:17 +09:00
jdgleaver 0706cdea4c Fix 'unhandled enum' compiler warning on non-LAKKA platforms 2021-05-04 12:35:01 +01:00
jdgleaver 07099797bd (3DS) Disable menu screensaver animations in XMB/GLUI 2021-05-04 11:44:30 +01:00
Jean-André Santoni 77967f0148 Merge pull request #12348 from libretro/kivutar/lutroweb
Add lutro to web.libretro.com
2021-05-02 14:13:43 +07:00
Jean-André Santoni 56e40e8204 Add lutro to web.libretro.com 2021-05-02 13:04:20 +07:00
Autechre 218c6f30b9 Merge pull request #12346 from davidgfnet/cpufreq1 2021-05-02 05:15:56 +02:00
David Guillen Fandos b2c20e8ce0 Initial support for tweaking CPU governors/scaling policies
This is, at the moment, aimed at Lakka only.
2021-05-01 18:35:38 +02:00
Autechre 76eeee2c9a Merge pull request #12345 from devnexen/fbsd_build_fix
FreeBSD build fix proposal
2021-05-01 17:26:44 +02:00
David Carlier 3b7e0a8db1 FreeBSD build fix proposal 2021-05-01 15:37:14 +01:00
Autechre bc23d070de Update CHANGES.md 2021-04-30 18:19:36 +02:00
twinaphex 951ea6baaf Bump up to version 1.9.2 2021-04-30 17:49:54 +02:00
Autechre 84ab14cb83 Merge pull request #12281 from eadmaster/multi_patch
added multi-softpatching support + OSD messages for patches (#9947)
2021-04-30 16:00:43 +02:00
eadmaster 019130298a added multi-softpatching support + OSD messages for patches (#9947)
fixed Travis error
2021-04-30 14:12:47 +02:00
Autechre 99917368b4 Merge pull request #12341 from jdgleaver/dingux-autosave
OpenDingux: Enable 'SaveRAM Autosave Interval' by default
2021-04-30 00:03:41 +02:00
jdgleaver 5f12edaae4 OpenDingux: Enable 'SaveRAM Autosave Interval' by default 2021-04-29 15:15:12 +01:00
Autechre 8eb8b44e83 Merge pull request #12327 from repojohnray/config_h
Set -I. at the beginning to include the right config.h
2021-04-29 15:44:41 +02:00
Autechre 9c534c3550 Merge pull request #12339 from jdgleaver/dingux-ra-bin
(.gitlab-ci.yml) Add 'raw' retroarch binary to OpenDingux (+Beta) job artifacts
2021-04-29 15:10:07 +02:00
Autechre 10c1361751 Merge pull request #12337 from Jamiras/ff_slow
enforce minimum fastforward_ratio of 1.0
2021-04-29 15:09:55 +02:00
Autechre 2153cd8e2c Merge pull request #12338 from jdgleaver/config-file-append-fix
Fix config file appending and 'including'
2021-04-29 15:08:32 +02:00
jdgleaver 95cea8cc5d (.gitlab-ci.yml) Add 'raw' retroarch binary to OpenDingux (+Beta) job artifacts 2021-04-29 13:01:44 +01:00
jdgleaver 02630d998e Fix config file appending and 'including' 2021-04-29 12:29:47 +01:00
Jamiras 77d04af845 enforce minimum fastforward_ratio of 1.0 2021-04-28 22:43:48 -06:00
Autechre 42e01acfa1 Merge pull request #12335 from MrHuu/master
(3DS) Change default asset directory
2021-04-28 22:10:27 +02:00
Autechre b2faff6bf9 Merge pull request #12334 from jdgleaver/core-info-hash-collision
(core_info) Prevent potential hash collisions when searching for cores
2021-04-28 22:09:41 +02:00
MrHuu a58236d69d (3DS) Change default asset directory 2021-04-28 19:59:03 +02:00
jdgleaver 3bc2758d51 (core_info) Prevent potential hash collisions when searching for cores 2021-04-28 17:52:15 +01:00
Autechre 40f6f7b803 Merge pull request #12333 from jdgleaver/config-file-hashmap-update
(config_file) Modify hash map usage for proper compatibility with updated RHMAP implementation
2021-04-28 18:38:43 +02:00
jdgleaver b1a7d3e995 (config_file) Modify hash map usage for proper compatibility with updated RHMAP implementation 2021-04-28 17:34:24 +01:00
Autechre 7fc636c623 Merge pull request #12332 from Alcaro/master
Track the complete string in rhmap
2021-04-28 17:05:27 +02:00
Alcaro 2c5c4647e3 Track the complete string in rhmap 2021-04-28 16:09:45 +02:00
Autechre 2702ce693b Merge pull request #12328 from jdgleaver/7zip-update
Update 7-Zip dependency to latest stable version (fixes CHD support on static platforms)
2021-04-28 15:12:41 +02:00
Autechre 71836cacdb Merge pull request #12331 from bulzipke/master
(3DS) Load overlay texture images as BGR colors
2021-04-28 13:28:33 +02:00
jdgleaver a501dfd680 Update 7-Zip dependency to latest stable version (fixes CHD support on static platforms) 2021-04-28 12:00:50 +01:00
bulzipke 7e7615c97c (3DS) Load overlay texture images as BGR colors 2021-04-28 19:16:14 +09:00
Autechre a4d955357d Merge pull request #12329 from IAmBoring/patch
MSVC Vulkan Buildfix
2021-04-28 11:57:46 +02:00
IAmBoring 9c0aec1d19 MSVC Vulkan Buildfix 2021-04-27 20:45:52 +00:00
repojohnray 28541fe826 Set -I. at the beginning to include the right config.h
This is done to avoid to include for instance valgrind/config.h as the main config.h
2021-04-27 17:37:27 +02:00
Autechre 8466a213e8 Merge pull request #12324 from devnexen/macos_vulkan_build_fix
macOS with vulkan build fix
2021-04-26 22:16:24 +02:00
Autechre 0cd0ce87f5 Merge pull request #12323 from bulzipke/master
(3DS) Load texture images as BGR colors
2021-04-26 22:15:57 +02:00
David Carlier c7f3fa2b5d macOS with vulkan build fix 2021-04-26 20:31:15 +01:00
Autechre f601f4ce70 Merge pull request #12311 from gblues/gblues/runloop-state 2021-04-26 19:43:49 +02:00
bulzipke 56a0300db5 Load texture images as BGR colors 2021-04-27 01:58:41 +09:00
Nathan Strong d7075296e3 Move runloop data to static struct
== DETAILS
As part of a larger project to reduce/eliminate global state, this commit does the following:

1. move all the `runloop_` members of the `rarch_st` struct to a separate structure
2. create a static instance of that struct in retroarch.c
3. switch all references of `p_rarch->runloop_*` to `runloop_state.*`
4. remove the extraneous `runloop_` prefix on the new struct's members
2021-04-26 09:21:01 -07:00
Autechre a904b1665f Merge pull request #12321 from jdgleaver/core-info-optimisation
(core_info) Performance optimisations + code clean-ups/refactors
2021-04-26 16:45:49 +02:00
jdgleaver f4511f6fa4 (core_info) Performance optimisations + code clean-ups/refactors 2021-04-26 14:30:31 +01:00
Autechre 1d81841091 Merge pull request #12308 from sonninnos/cheat-log
Silence unappropriate cheatfile logging
2021-04-25 23:44:22 +02:00
Autechre d339d5eab5 Merge pull request #12313 from MrHuu/master
(3DS) Enable gfx_widgets / overlays
2021-04-25 23:44:13 +02:00
Autechre 9d13b090d8 Merge pull request #12317 from devnexen/mac_m1_cpu_features
cpu detection detection vfp unit for Darwin.
2021-04-25 23:43:57 +02:00
David CARLIER 6f898e611c cpu detection detection vfp unit for Darwin. 2021-04-24 22:58:14 +01:00
MrHuu 1235a7435e (3DS) Enable gfx_widgets / overlays 2021-04-24 15:36:03 +02:00
sonninnos 2ebf46e241 Silence unappropriate cheatfile logging 2021-04-23 18:44:02 +03:00
twinaphex d2af1e905c Fix runahead 2021-04-23 13:18:29 +02:00
twinaphex be255ff269 (gfx_animation.c) Simplify some functions 2021-04-22 19:30:20 +02:00
twinaphex 0211e7749e Simplify gfx_animation_ticker_generic 2021-04-22 18:48:14 +02:00
Autechre d24f808d79 Merge pull request #12294 from ToKe79/lakka_timezone
Lakka: add menu for time zone setting
2021-04-22 18:38:19 +02:00
Autechre 6d42481c37 Merge pull request #12301 from jdgleaver/search-filter-cheats-overlays
Add search filter support to cheats and overlays file browser menus
2021-04-22 18:32:49 +02:00
jdgleaver 80753ac741 Add search filter support to cheats and overlays file browser menus 2021-04-22 16:56:57 +01:00
Autechre 93e467913e Merge pull request #12300 from jdgleaver/rgui-scaling-menu-fix
(RGUI) Fix display of 'Video > Scaling' menu when 'Lock Menu Aspect Ratio' is enabled
2021-04-22 17:49:13 +02:00
jdgleaver fc283123bb (RGUI) Fix display of 'Video > Scaling' menu when 'Lock Menu Aspect Ratio' is enabled 2021-04-22 15:55:59 +01:00
Autechre 5998c561ee Merge pull request #12299 from sinusinu/master
GDI: Fix non-ASCII text rendering
2021-04-22 14:24:47 +02:00
Woohyun Shin 4e8a71d034 GDI: Fix non-ASCII text rendering 2021-04-22 20:38:58 +09:00
Autechre d458729f6c Merge pull request #12297 from Szunti/sdl_input_crash_if_analog_bound 2021-04-22 03:25:32 +02:00
Szunti 3191fec54c Fix crash in sdl input driver when analogs are bound. 2021-04-22 03:20:39 +02:00
Autechre 7a5559aba0 Merge pull request #12295 from jdgleaver/config-file-hash-map 2021-04-22 00:35:35 +02:00
jdgleaver 29d5963cad (config_file) Use hash map to optimise key/value lookups 2021-04-21 17:33:36 +01:00
Tomáš Kelemen (vudiq) 90529c62b2 Lakka: add menu for time zone setting
This adds new entry under Settings -> Services (where all Lakka related
services are currently available, such as switches for services like
SSH, Samba, etc.). By adding this the users do not have to use the
command line / access the file system directly to change their local
time zone to adjust the date/time displayed in RetroArch.
2021-04-21 18:12:42 +02:00
twinaphex ae21979b7c Remove unused variable 2021-04-21 15:58:51 +02:00
Autechre 09c3ef0f6a Merge pull request #12290 from devnexen/mac_timer_upd
Mac intel and arm64 timer change proposal.
2021-04-21 15:59:33 +02:00
twinaphex ba791b7de8 Add better fix that targets all statically linked platforms instead of 2021-04-21 15:58:18 +02:00
Autechre 0ddfbd976c Merge pull request #12292 from Jamiras/cheevos_supervision_mmap
(cheevos) update achievement memory maps
2021-04-21 06:50:02 +02:00
Jamiras d4ba7579d1 update achievement memory maps 2021-04-20 20:08:46 -06:00
twinaphex 220bc434be Get rid of strcpy_alloc 2021-04-21 02:25:51 +02:00
David CARLIER 2932a835fc Mac intel and arm64 timer change proposal. 2021-04-20 21:38:01 +01:00
twinaphex e88fad00a5 copy_core_to_temp_file - get rid of a bunch of strcat_alloc calls,
instead just use fill_pathname_join once and have retroarch_tmp_path
be a fixed stack array variable
2021-04-20 21:29:02 +02:00
Autechre 36d274d460 Merge pull request #12288 from ToKe79/lakka-change-handlers-squash-warnings
Make Lakka change handlers use the setting pointer
2021-04-20 20:31:15 +02:00
twinaphex 4c4d5e5837 (core_info.c) Cleanups 2021-04-20 19:46:11 +02:00
twinaphex 769fb7cd02 Cleanup 2021-04-20 19:35:59 +02:00
twinaphex 0cc5b29558 Use path_basename for instances where we don't have to deal
with compressed files in archives
2021-04-20 19:14:47 +02:00
Tomáš Kelemen (vudiq) 191171802b Make Lakka change handlers use the setting pointer
These change handler functions had incorrect parameter (void *) instead
of (rarch_setting_t *) and were also spawning new local pointer to the
settings and other local variables, which was not necessary, as one can
use the value from the call (setting->target.value.boolean in these
cases).

I have also modified the systemd_sevice_toggle function. Before it
looked like it was creating / deleting the file in both child and parent
processes and started / stopped the systemd service in the child
process. Now both actions (creation / deletion of file and start / stop
of service) are done in the child process.

Below are the compiler warnings about incompatible pointer types:

```
menu/menu_setting.c: In function ‘setting_append_list’:
menu/menu_setting.c:18520:58: warning: assignment to ‘change_handler_t’ {aka ‘void (*)(struct rarch_setting *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types]
18520 |             (*list)[list_info->index - 1].change_handler = ssh_enable_toggle_change_handler;
      |                                                          ^
menu/menu_setting.c:18536:58: warning: assignment to ‘change_handler_t’ {aka ‘void (*)(struct rarch_setting *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types]
18536 |             (*list)[list_info->index - 1].change_handler = samba_enable_toggle_change_handler;
      |                                                          ^
menu/menu_setting.c:18552:58: warning: assignment to ‘change_handler_t’ {aka ‘void (*)(struct rarch_setting *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types]
18552 |             (*list)[list_info->index - 1].change_handler = bluetooth_enable_toggle_change_handler;
      |                                                          ^
menu/menu_setting.c:18568:58: warning: assignment to ‘change_handler_t’ {aka ‘void (*)(struct rarch_setting *)’} from incompatible pointer type ‘void (*)(void *)’ [-Wincompatible-pointer-types]
18568 |             (*list)[list_info->index - 1].change_handler = localap_enable_toggle_change_handler;
      |                                                          ^
```
2021-04-20 19:14:10 +02:00
Autechre 32b626704e Merge pull request #12286 from jdgleaver/file-browser-search-filter
Enhanced 'Load Content' file browser search functionality
2021-04-20 18:14:05 +02:00
jdgleaver b193fd0ba9 Enhanced 'Load Content' file browser search functionality 2021-04-20 15:49:22 +01:00
LazyFunker c5e5cf28af Force resolution on UWP 2021-04-20 11:47:32 +02:00
LazyFunker 8ff0430370 Disable mipmap generation for UWP 2021-04-20 10:29:17 +02:00
Autechre 7317b6b98e Merge pull request #12285 from alphanu1/master
Fixed CRTSwitchRes framebuffer bug
2021-04-20 00:21:17 +02:00
Ben 799fcdb5e0 Fixed CRTSwitchRes framebuffer bug 2021-04-19 07:38:38 -07:00
Autechre 6b021f8d14 Merge pull request #12283 from libretro/revert-12011-video-resolution
Revert "Screen Resolution option fixes"
2021-04-17 19:33:37 +02:00
Autechre a56fcfb24a Revert "Screen Resolution option fixes" 2021-04-17 19:33:23 +02:00
twinaphex 1811bd6885 Fix issue in https://github.com/libretro/neocd_libretro/issues/58 2021-04-16 19:34:06 +02:00
twinaphex 46a37b9bd9 Silence some warnings 2021-04-16 17:55:19 +02:00
Autechre 3fcd645a73 Merge pull request #12277 from devnexen/arm64_build_fix_proposal
run fast mode disable for 64 bits invalid instructions.
2021-04-16 17:35:18 +02:00
David CARLIER 7cbee3dc8f run fast mode disable for 64 bits invalid instructions. 2021-04-16 08:33:01 +01:00
twinaphex 9812f368e7 Move more of these static variables out of retroarch_data.h 2021-04-15 19:51:40 +02:00
twinaphex 0f4dbcfc53 move arrays over to only function that uses them 2021-04-15 19:51:40 +02:00
Autechre fb79927c05 Merge pull request #12273 from jdgleaver/font-texture-bleed-fix
(freetype/stb_unicode/bitmapfont) Prevent texture bleed when rendering text at non-integer scales
2021-04-15 19:44:57 +02:00
jdgleaver fc05c0805b (freetype/stb_unicode/bitmapfont) Prevent texture bleed when rendering text at non-integer scales 2021-04-15 17:24:32 +01:00
Autechre b69e023736 Merge pull request #12270 from jdgleaver/rgui-transparency
(RGUI) Add option to disable menu transparency
2021-04-15 16:28:43 +02:00
jdgleaver 54c45bd54e (RGUI) Add option to disable menu transparency 2021-04-15 12:32:39 +01:00
twinaphex 67c06d17bb command_event_runtime_log_deinit - put verbosity_is_enabled check around
this
2021-04-15 08:08:08 +02:00
twinaphex b91a1f4788 Silence warning 2021-04-15 07:39:25 +02:00
twinaphex 9f902c8bd4 input_joypad_analog_button - only call fabs when input value is not 0 2021-04-15 07:27:43 +02:00
twinaphex 52454591aa Small cleanup to input_joypad_analog_button 2021-04-15 07:22:59 +02:00
twinaphex cfe9d60f51 Get rid of button_is_pressed 2021-04-15 06:55:35 +02:00
Autechre 36bf1ad112 Merge pull request #12268 from digitalisland-nino/dracula_ozone
(ozone) new theme: Dracula
2021-04-15 02:00:07 +02:00
digitalisland-nino 6f29c1ff94 Created new Ozone Dracula color theme.
Copied RGUI Dracula theme localized strings to new Ozone Dracula theme.

Copied RGUI Dracula theme localized strings to new Ozone Dracula theme.

Added Ozone Dracula color theme to UI.

Added Ozone Dracula color theme entry.
2021-04-14 22:18:18 +02:00
Autechre 58080d6157 Merge pull request #12267 from Jamiras/cheevos_patch_addr_no_ach
allow rcheevos_patch_address to be called on game without achievements
2021-04-14 17:43:18 +02:00
digitalisland-nino 45bf867d38 Copied RGUI Dracula theme localized strings to new Ozone Dracula theme. 2021-04-14 16:49:59 +02:00
Autechre eb578557c0 Update CHANGES.md 2021-04-14 16:32:08 +02:00
Jamiras 299a471af2 allow rcheevos_patch_address to be called on game without achievements 2021-04-14 08:20:20 -06:00
twinaphex 4ec8b82388 Cleanups 2021-04-14 03:46:50 +02:00
twinaphex 5ae5463f52 (menu_setting.c) Cleanups 2021-04-14 02:26:20 +02:00
twinaphex 9a994eb777 Split up general_write_handler/general_read_handler some more 2021-04-14 01:55:38 +02:00
twinaphex bdfbc86ecb Simplifications in general_write_handler 2021-04-14 01:22:49 +02:00
Autechre b5d983cddf Merge pull request #12264 from jdgleaver/screensaver-animation
(XMB/GLUI/Ozone) Add optional menu screensaver animations
2021-04-13 17:48:53 +02:00
twinaphex 65c01b35ec Go back to Discord RPC I/O Thread codepath for now - the non-I/O
thread codepath seems to be unreliable for now
2021-04-13 16:44:46 +02:00
jdgleaver a6cffc0e29 (XMB/GLUI/Ozone) Add optional menu screensaver animations 2021-04-13 15:36:57 +01:00
alphanu1 5658ea7047 Multi monitor fix. (#12260)
This fix allows for the use of multi monitor when using CRTSwitchres. It fixes a bug that causes a crash.
Delete function will no longer try to delete resolutions from outputs that have not had resolutions added.
2021-04-12 14:55:33 +02:00
twinaphex 7f3b9e8a89 Attempt to fix max problems on all platforms 2021-04-12 06:51:01 +02:00
twinaphex 7fe2ad81a0 HAVE_CLIP_WINDOW - don't define for this anything below MSVC 2005 2021-04-12 05:38:43 +02:00
twinaphex dcc266df12 (MSVC) Buildfix 2021-04-12 05:25:30 +02:00
twinaphex d07043fe26 Reduce size of local char variables 2021-04-11 19:28:59 +02:00
twinaphex 2f0f724813 Use more path_basename_nocompression where we don't have to deal with
archive files
2021-04-11 18:46:50 +02:00
twinaphex fc5b557a10 use fill_pathname_join_concat if we want to set a filename path
with extension instead of doing fill_pathname_join and then
fill_pathname_noext
2021-04-11 18:37:42 +02:00
twinaphex 116bf8058a Don't need this variable in this loop 2021-04-11 18:19:51 +02:00
twinaphex 050f44382b input_remapping_save_file - simplifications 2021-04-11 18:16:18 +02:00
twinaphex 1392eebfa0 Use path_basename_nocompression some more 2021-04-11 17:48:44 +02:00
twinaphex 544a17926b Use path_basename_nocompression where we are sure we are not
dealing with a filename with a compressed archive hash
2021-04-11 17:44:41 +02:00
twinaphex 637cff628f * Simplify RARCH_CTL_IS_CORE_LOADED
* Create specialized function path_basename_nocompression
2021-04-11 17:27:31 +02:00
twinaphex 3841fecc59 Cleanups 2021-04-11 17:01:13 +02:00
twinaphex f1cf5ceb82 (input drivers) Cut down on code duplication 2021-04-11 16:31:46 +02:00
twinaphex 40c39de5e3 Move old_libretro_device/old_analog_dpad_mode to global struct 2021-04-11 16:02:47 +02:00
twinaphex 0087be2a53 Cleanup input_remapping_load_file/input_remapping_save_file - none
of these huge char arrays were needed, wrong size being passed
to snprintf, fill_pathname_join, k loop variable unneeded, etc.
2021-04-11 14:36:51 +02:00
twinaphex d9cacc0b8c Other cleanups - wrong size being passed to snprintf for s3, etc. 2021-04-11 14:18:14 +02:00
twinaphex 370751551f Some further optimizations - key_strings doesn't need to be inside
the loop
2021-04-11 14:11:12 +02:00
twinaphex ac8e1b88e4 input_remapping_load_file/input_remapping_save_file - char arrays
were way too big
2021-04-11 14:03:03 +02:00
twinaphex aa0a9f18d5 Fix crash that could happen after loading a remap file manually -
config file was being freed at the end of input_remapping_load_file
when the menu_cbs_ok.c function was still using it afterwards - move
the config_file_free outside of the function and free manually
afterwards when we're done
2021-04-11 13:48:25 +02:00
twinaphex 05a2623875 (udev input) Cut down on code duplication 2021-04-11 06:37:49 +02:00
twinaphex 1f506615d3 (x11_input.c) Cut down on code duplication 2021-04-11 06:29:36 +02:00
twinaphex bc08e325ce Travis buildfix 2021-04-11 02:22:35 +02:00
twinaphex a8f410ed40 slang_preprocess_parse_parameters - get rid of one local variable 2021-04-11 01:49:41 +02:00
twinaphex f29a4b51cc Put this behind VULKAN_DEBUG ifdef 2021-04-11 00:15:06 +02:00
twinaphex 924b5830ba (shader_gl_core) Remove std::string usage and std::to_string usage 2021-04-11 00:09:40 +02:00
twinaphex ab877c429f (Qt) Use string append() where possible 2021-04-10 23:57:31 +02:00
Autechre 97e5e6beee Merge pull request #12256 from Jamiras/cheevos_local_addr_warning
(cheevos) attempt to silence return-local-addr warning
2021-04-10 23:43:47 +02:00
Jamiras 5530b7022f attempt to silence return-local-addr warning 2021-04-10 14:51:41 -06:00
twinaphex 0aa266a6ca build_stage_source - use std::string reserve and append, significantly
faster
2021-04-10 22:11:26 +02:00
Autechre 0b52823f2c Merge pull request #12255 from libretro/destl
Destl
2021-04-10 22:10:53 +02:00
twinaphex 1273536752 Reduce get_semantic_name down to one version 2021-04-10 21:46:04 +02:00
twinaphex 59449600ad Cleanup retroarch_menu_running_finished 2021-04-10 21:04:00 +02:00
twinaphex c392a475ee Cleanups 2021-04-10 20:51:19 +02:00
twinaphex d024ff553f Cleanups 2021-04-10 20:47:04 +02:00
twinaphex b5d49b9e79 Avoid std::string allocations when possible (pt. 1) 2021-04-10 20:19:30 +02:00
twinaphex f0fa3c5861 (slang C++ files) take out using namespace std, explicitly refer to
std namespace
2021-04-10 19:42:59 +02:00
twinaphex 966dd62551 Fix warnings local variable hides parameter of the same name 2021-04-10 19:28:30 +02:00
twinaphex ca5ce839ce Small cleanups to button input handling code - several parameters
were no longer used
2021-04-10 19:06:56 +02:00
twinaphex 760fc6b3f7 Simplify button_is_pressed 2021-04-10 18:44:10 +02:00
twinaphex 372f939cc9 Simplify input_keys_pressed 2021-04-10 18:25:50 +02:00
twinaphex 5df321fcaa Cleanups 2021-04-10 18:19:20 +02:00
Autechre 10c9d485c4 Merge pull request #12254 from repojohnray/valgrind
Fix issue detected by valgrind
2021-04-10 17:52:45 +02:00
repojohnray 8f3e02e49c Fix issue detected by valgrind
==27741== Conditional jump or move depends on uninitialised value(s)
==27741==    at 0x6080F5: strlcpy_retro__ (compat_strl.c:38)
==27741==    by 0x60818A: strlcat_retro__ (compat_strl.c:60)
==27741==    by 0x49EDD7: fill_pathname_join_special_ext (file_path.c:843)
==27741==    by 0x4C78C8: config_load_remap (configuration.c:3765)
==27741==    by 0x4386FF: command_event_init_core (retroarch.c:12601)
==27741==    by 0x43B15E: command_event (retroarch.c:14000)
==27741==    by 0x468863: retroarch_main_init (retroarch.c:35231)
==27741==    by 0x487AED: content_load (task_content.c:607)
==27741==    by 0x48A3D3: task_load_content_internal (task_content.c:2068)
==27741==    by 0x48A6AD: task_push_load_content_from_cli (task_content.c:2162)
==27741==    by 0x43D66E: rarch_main (retroarch.c:15300)
==27741==    by 0x43D6ED: main (retroarch.c:15398)
==27741==  Uninitialised value was created by a stack allocation
==27741==    at 0x4C7730: config_load_remap (configuration.c:3721)
2021-04-10 17:30:56 +02:00
twinaphex 8b197e49bb accessibility_speak_priority - no longer dependent on settings pointer 2021-04-10 14:59:34 +02:00
twinaphex 200983f938 is_narrator_running -don't pass entire settings pointer 2021-04-10 14:24:41 +02:00
twinaphex dd7fe2e7e0 Cleanups 2021-04-10 14:19:52 +02:00
twinaphex 1e94070dca Simplify driver_adjust_system_rates 2021-04-10 13:39:47 +02:00
twinaphex 40ab6f839a Some cleanups to driver_adjust_system_rates 2021-04-10 13:32:27 +02:00
twinaphex 43cb646870 Turn video_driver_monitor_adjust_system_rates into pure function 2021-04-10 13:22:12 +02:00
twinaphex d1d9f96ab3 Turn audio_driver_monitor_adjust_system_rates into pure function 2021-04-10 13:11:01 +02:00
twinaphex d910f520d9 Don't pass entire settings pointer if we just need a few settings variables
to read
2021-04-10 13:03:53 +02:00
twinaphex 5ca666acee Cleanups, don't try to pass settings pointer to functions unless we have to 2021-04-10 03:01:25 +02:00
twinaphex 338c2eb2f0 Settings cleanups 2021-04-10 01:51:28 +02:00
twinaphex deccc4d8c6 Some refactors 2021-04-10 00:54:40 +02:00
twinaphex 204eaf0e76 Don't grab settings pointer inside video_driver_frame 2021-04-08 20:01:59 +02:00
twinaphex 421dbb19c2 Don't pass settings pointer if we just need a couple of variables
that we won't mutate
2021-04-08 19:45:30 +02:00
twinaphex 808f326209 Cleanups 2021-04-08 19:24:19 +02:00
twinaphex 9c5f365b2b Cleanups 2021-04-08 18:37:09 +02:00
twinaphex f7a5833cb0 Turn bunch of functions static 2021-04-08 18:33:46 +02:00
twinaphex 0d549fd42b Merge netplay_init.c into netplay_io.c 2021-04-08 18:16:24 +02:00
twinaphex 2a2f77f0dc Combine some netplay files into one 2021-04-08 18:09:02 +02:00
twinaphex 42bd709f67 Old MSVC buildfix 2021-04-08 17:31:23 +02:00
twinaphex 2c7226de20 Less pointer grabbing 2021-04-08 17:08:46 +02:00
twinaphex d6c243143d Simplifications to dir_init_shader_internal 2021-04-08 16:49:23 +02:00
Autechre 9ab6b9b308 Merge pull request #12247 from BarryJRowe/master
Accessibility speak fix.
2021-04-08 11:19:05 +02:00
Barry Rowe d80833d892 Accessibility speak fix. 2021-04-07 20:39:25 -07:00
twinaphex b7bc1fc51d Buildfixes 2021-04-08 03:27:58 +02:00
twinaphex 9f6a5e35de Get rid of more duplicate pointer grabbing 2021-04-08 02:02:30 +02:00
twinaphex f8ec815467 Cleanups 2021-04-08 01:54:44 +02:00
twinaphex fb1258b817 Set anim.update_timecb to NULL immediately after menu driver's 'free'
function has been called
2021-04-08 01:37:47 +02:00
twinaphex 5334ddd199 Don't call anim_get_ptr inside gfx_thumbnail.c 2021-04-08 01:30:42 +02:00
twinaphex e5e8e9b5d8 Expand widget init function 2021-04-08 00:51:10 +02:00
twinaphex 2e6393f082 Get rid of pointer grabbing for p_disp 2021-04-08 00:38:24 +02:00
twinaphex 95527fb566 Prevent some unnecessary variables being set 2021-04-08 00:22:29 +02:00
Autechre 03849b3e87 Update CHANGES.md 2021-04-07 13:54:20 +02:00
Autechre 3a4c19f82d Merge pull request #12246 from jdgleaver/odbeta-50hz
OpenDingux Beta: Add 50Hz support
2021-04-07 13:53:39 +02:00
jdgleaver c23e32a047 OpenDingux Beta: Add 50Hz support 2021-04-07 10:06:11 +01:00
Autechre 5e432a6586 Update CHANGES.md 2021-04-07 00:53:36 +02:00
twinaphex ea9f3f13ca (Apple OSX) Swallow 'escape' key being pressed - would previously make the game
go from fullscreen to windowed
2021-04-07 00:48:21 +02:00
twinaphex 412a1885b2 Cleanups 2021-04-07 00:42:38 +02:00
twinaphex 886a692f1a video_driver_init_internal - don't call small one-line functions - set
directly
2021-04-07 00:36:00 +02:00
twinaphex d5ebf9039c Cleanups 2021-04-06 23:05:40 +02:00
twinaphex 789cf29d28 Pass more pointers 2021-04-06 22:35:47 +02:00
Autechre 7cb5de7df4 Update CHANGES.md 2021-04-06 21:53:53 +02:00
Autechre c68c71f7b2 Update CHANGES.md 2021-04-06 21:50:31 +02:00
Autechre 09f1404c45 Update CHANGES.md 2021-04-06 21:50:17 +02:00
twinaphex f8a88fcb94 Cleanups 2021-04-06 20:17:06 +02:00
twinaphex 29a358ee3a Pass settings pointer around to more functions 2021-04-06 20:07:06 +02:00
twinaphex 29513919ca Rewrite retroarch_load_shader_preset_internal - no longer needs
p_rarch
2021-04-06 19:41:46 +02:00
twinaphex 45beb1bcdd Cleanups - pass pointers around instead of grabbing
p_rarch->configuration_settings everywhere; add some verbosity_enabled
checks
2021-04-06 19:31:04 +02:00
Autechre 166333a2cd Update CHANGES.md 2021-04-06 18:35:38 +02:00
twinaphex ebc567d03c (OSX Metal) Enable HAVE_ACCESSIBILITY and HAVE_TRANSLATE for TTS translation services 2021-04-06 18:33:26 +02:00
twinaphex 529c0f24da Silence some unused variable warnings 2021-04-06 18:29:59 +02:00
twinaphex 4855f371f1 Refactor accessibilty speak priority code - create LUT for
character/string pairs
2021-04-06 18:21:22 +02:00
twinaphex 76f000e4c8 Don't pass p_rarch around to other functions everywhere 2021-04-06 17:49:45 +02:00
twinaphex 2aea7a375d Input - turbocode - button ID is always below the threshold of
RARCH_FIRST_META_KEY, so put it inside the conditional
2021-04-06 15:59:44 +02:00
twinaphex 5cf2a7abd1 input_state_device - don't keep grabbing these pointers over and over 2021-04-06 14:42:30 +02:00
twinaphex d11c7cbbb1 Revert "Simplify input_state_device:"
This reverts commit 0b9bc85ddd.
2021-04-06 14:25:58 +02:00
Jonathan 5c6cd1b48a Add scaling to pointer input (#12213)
So far, if display is scaled, overlays gets correctly drawn but touch
input is not correctly scaled, resulting in an unusable overlay.

This happens for touches in menu too.

This commit aims to introduce this scaling factor adding it to the
config file, eg:

input_touch_scale = "2"
2021-04-06 13:15:43 +02:00
twinaphex cbec423413 Revert "Add git_version switch - to disable Git version, do"
This reverts commit c9b7122a08.
2021-04-06 11:22:21 +02:00
twinaphex 9910dfbee2 Replace strcpy_literal usage of trivial string setting 2021-04-06 11:21:28 +02:00
twinaphex e2b084b715 Cleanups 2021-04-05 23:54:52 +02:00
twinaphex 5f9197bcc2 Get rid of more manual pointer grabbing 2021-04-05 23:37:42 +02:00
twinaphex 0b9bc85ddd Simplify input_state_device:
* run it within a loop internally for button_mask enabled
* only one function call invocation in codebase
2021-04-05 22:54:13 +02:00
twinaphex 66ad300515 input_state_device - don't have remap_binds_enable ifdefs here 2021-04-05 22:32:06 +02:00
twinaphex 4ce66f0764 Cleanup command_event_init_controllers 2021-04-05 22:26:41 +02:00
twinaphex 0fc6116082 Some optimizations to menu_cbs_get_value callbacks 2021-04-05 21:17:54 +02:00
twinaphex 48af4fc704 Simplify find_driver functions 2021-04-05 21:06:17 +02:00
twinaphex 8c08b531d6 Simplify hw_render_context_name 2021-04-05 20:13:24 +02:00
twinaphex 966e0640af Style nits 2021-04-05 20:02:19 +02:00
twinaphex 0e26077a64 Add license headers 2021-04-05 19:58:18 +02:00
David G. Fandtwinaphex b830b33cf1 Rewrite commands and add new command type (#12233)
* (OSX non-Metal build) Set disable execute page protection

* Rewrite commands and add new command type

This moves commands to a separate file and creates a consistent
interface for them. It is now possible to use multiple command
interfaces simultaneously (stdin, network and UDS).
Implemented a new interface for Lakka, UDS based (so Linux only). This
allow other Lakka servies to send certain commands to Retroarch in a
secure and reliable way.

Co-authored-by: twinaphex <[email protected]>
2021-04-05 19:55:59 +02:00
twinaphex a989cfb987 Fix compilation error for older MSVC versions - cannot handle two ';'
one after another
2021-04-05 15:57:05 +02:00
twinaphex 5a0c0a26e3 Get rid of more disp_get_ptr calls 2021-04-05 15:22:45 +02:00
twinaphex cd016824f8 Get rid of disp_get_ptr pointer grabbing in gfx/widgets 2021-04-05 15:13:28 +02:00
twinaphex af00dca08b Get rid of some pointer grabbing for disp_get_ptr by making it
a part of video_frame_info
2021-04-05 14:55:28 +02:00
Autechre 115b08e0e1 Merge pull request #12232 from MrHuu/ctr_overlay
(3DS) Add HAVE_OVERLAY
2021-04-05 11:48:14 +02:00
Autechre daa6152868 Merge pull request #12235 from jdgleaver/odbeta-scaling-fix2
OpenDingux Beta: Fix IPU scaling when running GB/GBC/GG/NGP-resolution content
2021-04-05 11:41:18 +02:00
jdgleaver a81280939e OpenDingux Beta: Fix IPU scaling when running GB/GBC/GG/NGP-resolution content 2021-04-04 22:50:25 +01:00
MrHuu 8df97a0c75 (3DS) Add HAVE_OVERLAY 2021-04-04 22:50:59 +02:00
twinaphex 2fbcc99b24 RARCH_LOG_BUFFER - doesn't need early return 2021-04-04 20:05:00 +02:00
Autechre 77f48c8c8e Merge pull request #12229 from sonninnos/menu-nav-block
Block accidental diagonals in menu navigation
2021-04-04 15:16:16 +02:00
sonninnos aaf7e1fb0d Block accidental diagonals in menu navigation 2021-04-04 15:44:19 +03:00
twinaphex 9577f1a46f (OSX non-Metal build) Set disable execute page protection 2021-04-03 19:27:06 +02:00
Autechre 63e5a8b1b5 Merge pull request #12227 from ToddLa/mfi-player-index
prevent crash on controller connect.
2021-04-03 19:20:20 +02:00
Todd Laney be8dd0dba1 prevent crash on controller connect.
disable system button gestures on iOS 14.
remove deprecation warnings.
2021-04-03 09:28:49 -07:00
Autechre 9f17cb7a86 Update CHANGES.md 2021-04-03 16:27:23 +02:00
Autechre 70acb573d5 Merge pull request #12226 from repojohnray/mousex11gles
Fix xegl_ctx.c mouse activation
2021-04-03 16:23:59 +02:00
repojohnray 45047732a7 Fix xegl_ctx.c mouse activation
The mouse is not working when using opengles with x11. This fix adds the required notifications.
2021-04-03 15:56:06 +02:00
Autechre f7d0908ff1 Merge pull request #12219 from libretro/vita-vmalign 2021-04-03 01:49:21 +02:00
Francisco José García García 9f90833d2b [VITA] Align VM block size to 1MB 2021-04-02 19:50:09 +02:00
Autechre 93174dcd19 Merge pull request #12217 from jdgleaver/menu-screensaver 2021-04-02 15:26:30 +02:00
jdgleaver 72f08bb1b4 (RGUI) Fix LGTM warning - 'Multiplication result converted to larger type' 2021-04-02 10:16:47 +01:00
jdgleaver 371d0b7395 Add optional menu screensaver 2021-04-01 17:26:43 +01:00
Autechre 21b2ec6bd5 Merge pull request #12212 from DisasterMo/logging
Removed check for verbosity level in RARCH_LOG_V
2021-03-31 21:08:51 +02:00
Autechre 311c5c133c Merge pull request #12210 from jdgleaver/dingux-beta-gba-scaling
OpenDingux Beta: Fix IPU scaling when running GBA-resolution content
2021-03-31 20:06:46 +02:00
Autechre 551a671cc6 Merge pull request #12211 from kamicane/vrefresh
[DRM] set the correct video mode
2021-03-31 20:06:31 +02:00
Michael Burgardt f54098618e RARCH_LOG_V checking for verbosity level is not necessary and can cause
issues; removed said check.
2021-03-31 18:12:42 +02:00
Valerio Proietti fc69e73dcf [DRM] set the correct video mode
mode->vrefresh is a display-only value and should not be used for calculations
the drm context is now able to differentiate between, for example, [email protected] and [email protected] when setting the video mode
2021-03-31 13:13:27 +02:00
jdgleaver 41855bb6d4 OpenDingux Beta: Fix IPU scaling when running GBA-resolution content 2021-03-31 11:17:56 +01:00
Autechre e3ee0ac22b Merge pull request #12206 from jdgleaver/max-user-reinit
Ensure that 'retro_set_controller_port_device' is called when updating 'Max Users'
2021-03-30 08:36:07 +02:00
Autechre e65a891274 Merge pull request #12207 from jdgleaver/glui-turbo-icon
(GLUI) Add icon to 'Turbo Fire' menu entry
2021-03-30 08:35:45 +02:00
twinaphex 01944dd80e Put this big char array on heap for safety reasons 2021-03-30 01:19:50 +02:00
twinaphex ed6dd6d6d1 Fix get_thumbnail_paths 2021-03-29 17:42:32 +02:00
jdgleaver 6d13ace83a (GLUI) Add icon to 'Turbo Fire' menu entry 2021-03-29 15:50:32 +01:00
jdgleaver 32bdb49496 Ensure that 'retro_set_controller_port_device' is called when updating 'Max Users' 2021-03-29 15:32:29 +01:00
twinaphex cc8160d044 task_pl_thumbnail_download.c - put char string of 8192 length
on heap for all platforms
2021-03-29 09:28:26 +02:00
Autechre ba7900a3fb Merge pull request #12173 from crystalct/master
Some PSL1GHT fixes
2021-03-29 09:26:24 +02:00
CrystalCT b9ff6cb1d9 Some PSL1GHT fixes 2021-03-29 09:01:03 +02:00
Autechre cf6ca2a47f Update CHANGES.md 2021-03-28 22:43:18 +02:00
Autechre b47a403504 Update CHANGES.md 2021-03-28 21:59:36 +02:00
Autechre 84a742995b Update CHANGES.md 2021-03-28 20:57:17 +02:00
Autechre 7adcd6ba50 Update CHANGES.md 2021-03-28 09:21:39 +02:00
Twinaphex 6211475a09 (iOS6) Add assets.zip/modules dir 2021-03-28 08:07:50 +02:00
Autechre 502ecb2d64 Merge pull request #12202 from jdgleaver/dingux-invalid-resolution-fix
OpenDingux: Improve handling of unsupported display resolutions + buffer overflow fix
2021-03-27 21:48:29 +01:00
jdgleaver fe6e02e9bd OpenDingux: Improve handling of unsupported display resolutions + buffer overflow fix 2021-03-27 14:58:02 +00:00
twinaphex 788f716a30 (shader_gl_core) Cut down on some std::string usage 2021-03-27 03:51:00 +01:00
twinaphex 159c03cb34 Bump up version (but don't tag yet) 2021-03-27 02:22:39 +01:00
twinaphex c748b3d065 (iOS6/iOS9) Take out HAVE_UPDATE_CORES 2021-03-26 23:56:17 +01:00
Autechre 89b2c936d0 Merge pull request #12199 from sonninnos/menu-scroll-relocate
Relocate 'Menu Scroll' settings
2021-03-26 22:39:44 +01:00
twinaphex 9758d56c26 Buildfix 2021-03-26 22:13:25 +01:00
twinaphex f3b008f093 * Take out HAVE_UPDATE_CORES for iOS9
* If HAVE_UPDATE_CORES is defined, then set Core directory to <home dir>/cores,
otherwise set it to <bundle>/modules
2021-03-26 21:58:49 +01:00
sonninnos 1c63dec47e Relocate 'Menu Scroll' settings 2021-03-26 21:01:18 +02:00
Autechre f9369fbd6a Merge pull request #12198 from yoshisuga/ios9_fix_xcodeproj
[iOS9[ add assets.zip and modules references
2021-03-26 18:19:26 +01:00
Yoshi Sugawara 6a8528dbdc add assets.zip and modules references 2021-03-26 07:16:13 -10:00
Autechre 89044cd65e Merge pull request #12197 from jdgleaver/dingux-beta-battery
OpenDingux Beta: Fix reporting of battery level
2021-03-26 17:35:50 +01:00
jdgleaver d8f08f8177 OpenDingux Beta: Fix reporting of battery level 2021-03-26 16:15:44 +00:00
Autechre 23d22a1471 Merge pull request #12196 from jdgleaver/label-sanitization-fix
Fix playlist label sanitisation
2021-03-26 13:37:41 +01:00
jdgleaver df28f998c2 Fix playlist label sanitisation 2021-03-26 12:22:10 +00:00
Autechre bbcf1c8881 Merge pull request #12194 from sonninnos/scroll-delay
Customizable menu scroll hold delay
2021-03-26 03:49:48 +01:00
Autechre 26985d97de Merge pull request #12195 from sonninnos/custompos-dropdown
Dropdown menus for Custom Aspect Ratio positions
2021-03-26 03:49:18 +01:00
sonninnos 23d558564f Customizable menu scroll hold delay 2021-03-26 04:23:52 +02:00
sonninnos 7754a20fc5 Dropdown menus for Custom Aspect Ratio positions 2021-03-26 04:13:22 +02:00
twinaphex c26741de70 Rename local variables 2021-03-25 22:48:00 +01:00
Autechre 4907a7860e Merge pull request #12192 from sonninnos/input-menu
Input menu reorganizing
2021-03-25 22:47:20 +01:00
sonninnos 9062b61511 Separate 'Turbo Fire' menu 2021-03-25 22:28:18 +02:00
twinaphex cd9d6c0511 gfx_display - Get rid of lots of pointer grabbing 2021-03-25 20:12:34 +01:00
twinaphex 8064af8f15 Get rid of more pointer grabbing 2021-03-25 19:22:12 +01:00
Autechre d5e3103cf9 Merge pull request #12190 from jdgleaver/dingux-beta
Add OpenDingux Beta support
2021-03-25 18:36:04 +01:00
jdgleaver 0a08437e0a Add OpenDingux Beta support 2021-03-25 16:19:42 +00:00
twinaphex 0674de54ee (gfx_widgets.c) Get rid of more pointer grabbing to
config_get_ptr/dispwidgets_get_ptr/etc
2021-03-25 15:05:09 +01:00
Autechre 93edb2f2fb Merge pull request #12189 from farmerbb/master
[Android] Add a DocumentsProvider for easier access to the app's internal storage
2021-03-25 12:42:01 +01:00
Braden Farmer 27e19318ce [Android] Add a DocumentsProvider for easier access to the app's internal storage 2021-03-24 23:06:38 -06:00
twinaphex 998673b8c3 (gfx_widgets) Cleanups 2021-03-25 04:59:07 +01:00
twinaphex fada1caf68 Move two widgets functions over to proper source file 2021-03-25 04:55:27 +01:00
twinaphex 7505790f32 Cut down on MIDI driver logspam when MIDI just points to null driver 2021-03-25 03:33:42 +01:00
twinaphex 8919606f3a (iOS9) Buildfix 2021-03-25 01:35:47 +01:00
twinaphex be3960e2be (gfx widgets) Add widgets_userdata to video_frame_info 2021-03-24 19:16:46 +01:00
twinaphex 78f7deffba Get rid of early return in video_shader_write_root_preset 2021-03-24 18:44:55 +01:00
twinaphex d911dd6efc (video_shader_parse.c) Tons of functions here should have been
made static, tons of log spam put behind DEBUG ifdefs
2021-03-24 18:31:20 +01:00
twinaphex 5aaf4150e2 (file_path.c) Use strlcpy for these instead of snprintf 2021-03-24 17:26:34 +01:00
twinaphex ed0c9ef1dc Buildfix 2021-03-24 02:39:57 +01:00
twinaphex d9fa5585a0 Silence static code analysis warings pointed out by cppcheck 2021-03-24 02:23:58 +01:00
twinaphex 71b4a4558c (DISABLE_MENU) Add another conditional 2021-03-24 02:10:35 +01:00
twinaphex 118ff58e6b Add more conditionals for --disable-menu 2021-03-24 01:44:30 +01:00
twinaphex 95f5df358a Fix --disable-menu 2021-03-24 01:24:49 +01:00
twinaphex 8f79e14d0a Silence LGTM static code analysis warnings 2021-03-24 00:25:47 +01:00
Autechre 1a263586e3 Merge pull request #12188 from MrHuu/ctr_gfx_widgets
(3DS) Add HAVE_GFX_WIDGETS
2021-03-23 23:41:37 +01:00
MrHuu b9849f78f7 (3DS) Add HAVE_GFX_WIDGETS 2021-03-23 22:03:44 +01:00
twinaphex 26824b1f27 (D3D) Comment out Debug functions 2021-03-23 21:24:17 +01:00
Autechre 605a96a096 Merge pull request #12187 from davidgfnet/OGA-vertical
Upstream OGA patch for vertical screen
2021-03-23 20:55:23 +01:00
David Guillen Fandos 1cad93207b Upstream OGA patch for vertical screen
This keeps the tradition DRM driver along with the OGA one. The probe
function skips the driver if the screen is non rotated to fall back to
the regular DRM driver. This is being upstreamed from the Lakka repo.
2021-03-23 20:27:24 +01:00
twinaphex 0d06927105 Use ARRAY_SIZE where applicable 2021-03-23 17:14:41 +01:00
twinaphex 943c3f2f21 One DISABLE_MENU buildfix 2021-03-23 13:35:41 +01:00
twinaphex fb737cb00f (Apple) On demand thumbnails enabled by default 2021-03-23 03:41:29 +01:00
twinaphex b85a33c0ab (OSX) Set workaround when loading config file - if network core
URL points to arm64 and we are on x86_64 build or vice versa, we
switch it back
2021-03-23 03:10:38 +01:00
twinaphex 4cebc52126 Rollback permissions 2021-03-23 02:47:40 +01:00
twinaphex 112bd95b52 (macOS) Add additional entitlements 2021-03-23 02:25:33 +01:00
twinaphex fdc184c60c input_config_parse_key - unroll 2021-03-23 01:10:14 +01:00
twinaphex 49dc7e6c66 * Fix some DISABLE_MENU issues
* Optimizations to read_keybinds_conf / set_autoconfig_binds -
first fill_pathname_join_delim call always produced the same output and
this was called four times in a row in one loop,  hose out of the
caller functions and move it into the loop and call it once
2021-03-23 01:05:01 +01:00
twinaphex b5d4c5b041 Silence -Wsizeof-pointer-memaccess warnings pointed out here -
https://travis-ci.org/github/libretro/RetroArch/jobs/764003625
2021-03-22 23:43:11 +01:00
twinaphex 76ddfa022e Get rid of RARCH_LOG in wayland_common - gets rid of warning/error 2021-03-22 23:35:14 +01:00
twinaphex 1fae7964d6 Add allow-unsigned-executable-memory for both RetroArch and Metal 2021-03-22 23:05:22 +01:00
twinaphex 1b211ea836 Enable allow-jit 2021-03-22 23:02:08 +01:00
twinaphex a8599fe59b (Travis) Try to take out two Travis jobs that always fail and are
redundant now
2021-03-22 22:16:19 +01:00
twinaphex 437a49780c Add another HAVE_MENU ifdef 2021-03-22 22:12:58 +01:00
twinaphex fb9d8bad74 Fix DISABLE_MENU 2021-03-22 22:03:16 +01:00
twinaphex 4ff2d85a18 Unsafe to leave input_driver_mapper on heap; plus no real need to
have it on heap when it's already on heap courtesy of rarch_state
2021-03-22 21:43:31 +01:00
twinaphex 80788f9df6 Get rid of some ternary operators 2021-03-22 20:53:56 +01:00
twinaphex 48f9a5fbc0 (Qt) Silence sign comparison warnings 2021-03-22 20:20:33 +01:00
twinaphex 55ba377153 (task_database.c) Don't call path_contains_compressed_file multiple
times
2021-03-22 20:14:58 +01:00
twinaphex f22b077887 (task_database.c) Optimizations:
- strlen was being called on path for each loop iteration, when
path is not subject to change - do it once outside
- String copying was being performed even when the string would
equal a string not subject to change
2021-03-22 19:24:14 +01:00
twinaphex 32a6bd021c Prevent 'may be used uninitialized' warning 2021-03-22 15:46:34 +01:00
twinaphex 611efea2bf More CXX_BUILD fixes 2021-03-22 15:20:51 +01:00
twinaphex 81e768435b CXX_BUILD buildfix 2021-03-22 15:01:57 +01:00
twinaphex 15b9bd47b9 (SDL2) Fix jump to label crosses initialization of const char* video_driver 2021-03-22 14:38:10 +01:00
twinaphex aeb0781398 (iOS9) Change scheme to 'RetroArchiOS9' (no space) 2021-03-22 13:03:46 +01:00
twinaphex b3a4e598e2 (iOS) Implement frontend_darwin_get_arch - will report correct architecture
now under System Information
2021-03-22 12:16:43 +01:00
Autechre 7e7cc366d9 Merge pull request #12183 from libretro/ios9-gitlab
Add build-retroarch-ios9
2021-03-22 10:03:59 +01:00
twinaphex 00f60ec577 Remove unused variable 2021-03-22 10:01:09 +01:00
twinaphex f4244f3281 Add build-retroarch-ios9 2021-03-22 09:55:07 +01:00
twinaphex 0744ac21c9 Revert "(Gitlab) Add ios9"
This reverts commit 3e9efa6ba4.
2021-03-22 02:35:43 +01:00
twinaphex 3e9efa6ba4 (Gitlab) Add ios9 2021-03-22 02:32:51 +01:00
twinaphex b5671fec20 Remove MqcCatalyst for now - Xcode on buildbot doesn't seem to support it yet 2021-03-22 02:20:10 +01:00
twinaphex 2e1baf6d87 (iOS9) Make it ready for code signing
(iOS9/iOS11) Enable Mac Catalyst - should allow these versions to
run on Mac
2021-03-22 02:11:33 +01:00
twinaphex 1f4dd522ab (RGUI) Cut down on gfx_display_get_fb_size 2021-03-22 01:58:43 +01:00
twinaphex 4cf83880a6 (macOS AArch64/iOS ARM64) Fix crash when selecting cursor 2021-03-22 01:17:09 +01:00
twinaphex 882fc9bc2c Simplify config_read_keybinds/save_keybinds 2021-03-22 00:24:00 +01:00
twinaphex a204bcbf81 Simplify input_config_get_prefix 2021-03-21 23:26:06 +01:00
twinaphex b16f526540 (Metal) Cleanups - turn function static 2021-03-21 18:10:55 +01:00
twinaphex 5d2a75d782 (Apple/Metal) Combine various Metal files into one 2021-03-21 18:06:00 +01:00
twinaphex e5ca68a518 Simplify video_driver_get_ptr 2021-03-21 17:33:44 +01:00
twinaphex 26ea20905a (retroarch.c) Get rid of two config_get_ptr calls 2021-03-21 17:18:37 +01:00
twinaphex 8b2eb8ed37 Cut down on config_get_ptr calls in menu_displaylist_ctl 2021-03-21 16:36:36 +01:00
twinaphex d8d034bacb (menu_displaylist_build_list) Pass settings pointer around 2021-03-21 16:16:41 +01:00
twinaphex 7c145fafb2 (menu_displaylist) config_get_ptr only called now from three public functions 2021-03-21 16:04:04 +01:00
twinaphex 78e9a16493 Cut down on disp_get_ptr calls 2021-03-21 15:37:40 +01:00
twinaphex 5547f7b6f8 Further simplify filebrowser_parse - info can never be NULL -
other optimizations
2021-03-21 14:49:51 +01:00
twinaphex 6682dff9a5 (Menu) simplify/cleanup filebrowser_parse 2021-03-21 14:34:36 +01:00
twinaphex e35ed84de9 (Menu) Cut down on config_get_ptr calls 2021-03-21 11:46:27 +01:00
twinaphex c053a871d0 Cut down on anim_get_ptr calls 2021-03-21 11:09:22 +01:00
twinaphex a19c61ec7f (Ozone) Cut down on pointer grabbing - reduce calls to disp_get_ptr
and anim_get_ptr
2021-03-21 11:03:38 +01:00
Autechre 1c0ceb272a Merge pull request #12178 from davidgfnet/br9 2021-03-20 22:25:43 +01:00
David Guillen Fandos e1385c0187 Adjust brightness according to the limit
Seems like some platforms feature non-standard maximums, but the
variable is correclty exported for us to use
2021-03-20 22:19:28 +01:00
twinaphex a83af11754 remove unused variable 2021-03-20 17:47:44 +01:00
twinaphex a0a681b324 (Menu drivers) Less pointer grabbing - cut down on get_ptr calls 2021-03-20 17:45:05 +01:00
twinaphex 94ae0460cc Cut down on calls to gfx_display_get_fb_size 2021-03-20 16:52:53 +01:00
twinaphex f1330f3c98 (video_thread_wrapper) Call video_driver_get_data instead of
video_driver_get_ptr - last parameter passed to video_driver_get_ptr
was hardcoded
2021-03-20 15:15:52 +01:00
twinaphex 76c4f12089 Cleanup some VIDEO_DRIVER_GET_PTR_INTERNAL calls 2021-03-20 15:15:52 +01:00
twinaphex 161e3321a7 Remove menu_input_reset forward declaration 2021-03-20 15:15:52 +01:00
twinaphex 9fd88744ff Get rid of menu_input_reset 2021-03-20 15:15:52 +01:00
twinaphex be00c9fd5f Change DEVELOPMENT_TEAM to libretro 2021-03-20 14:37:11 +01:00
twinaphex 78fcdc1a46 Cleanups - don't go through some small wrapper functions 2021-03-20 13:51:56 +01:00
twinaphex 37a4dfb9db Don't call some one-line wrapper functions 2021-03-20 13:46:57 +01:00
twinaphex b51bb2bc66 Simplify parse_hat function 2021-03-20 13:24:10 +01:00
Autechre 6c9d4d2702 Merge pull request #12177 from sonninnos/winraw-fixes
(WINRAW) Key position fixes
2021-03-20 10:36:32 +01:00
Autechre 5785f8d589 Merge pull request #12176 from sonninnos/bind-order-scan-fix
New input bind order scan/clear fix
2021-03-20 10:35:47 +01:00
sonninnos 39e24fe584 New bind order scan/clear fix 2021-03-20 04:46:54 +02:00
sonninnos 1e95683c06 (WINRAW) Key position fixes 2021-03-20 00:58:11 +02:00
twinaphex 83a1e9170d Simplify retroarch_load_shader_preset 2021-03-19 12:31:13 +01:00
twinaphex 5ac7a524a2 Further refinement to vrr_runloop_enable checks surrounding
audio_driver_monitor_adjust_system_rates
2021-03-19 10:28:11 +01:00
twinaphex 4806a34920 Cleanups in adjust_system_rates functions 2021-03-18 20:38:26 +01:00
Autechre 7befed6569 Merge pull request #12171 from Jamiras/cheevos_dbl_free
(cheevos) prevent double free
2021-03-18 16:01:10 +01:00
Jamiras ed18ed48ac prevent double free 2021-03-18 08:50:45 -06:00
twinaphex 5554e5a842 Small cleanups 2021-03-18 12:51:17 +01:00
Autechre 89fdd16e5e Merge pull request #12168 from sonninnos/key-blocking
Duplicate key event blocking additions
2021-03-18 03:35:30 +01:00
sonninnos 4ff2011e02 Duplicate key event blocking additions 2021-03-17 21:22:46 +02:00
twinaphex d3dc3ee989 (iOS 11 Metal) remove 'update cores' 2021-03-17 10:49:22 +01:00
twinaphex 452870fe82 No idea why this was commented all of a sudden 2021-03-17 10:48:02 +01:00
twinaphex 6cc51fa5f5 task_load_handler - small cleanups 2021-03-17 10:40:47 +01:00
twinaphex 7e2113b405 (task_save.c) Allocate the string on heap instead of putting it on stack 2021-03-17 10:12:04 +01:00
Autechre be7dd98939 Merge pull request #12167 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-17 09:53:57 +01:00
CrystalCT 9ac61f9cc5 Add some PSL1GHT ifdefs 2021-03-17 08:46:02 +01:00
twinaphex e292340ef4 (dispserv_win32.c) Fix unused variable warning 2021-03-16 13:33:24 +01:00
twinaphex ce5dd864f0 Fix C89 build failures 2021-03-16 13:11:14 +01:00
twinaphex 3fc8f8129f Fix build failure 2021-03-16 13:05:45 +01:00
Autechre 70d79eb01c Merge pull request #12156 from sonninnos/bind-reorder
Cosmetic input bind order
2021-03-16 12:43:02 +01:00
Autechre 58b055d197 Merge pull request #12164 from jdgleaver/explore-fix
Prevent segfault when accessing 'Explore' menu
2021-03-16 12:39:18 +01:00
jdgleaver 523e37ec95 Prevent segfault when accessing 'Explore' menu 2021-03-16 11:30:05 +00:00
Autechre ad13be13cd Merge pull request #12162 from jdgleaver/glui-fix
GLUI: Fix main menu 'History' entry
2021-03-16 12:27:46 +01:00
Autechre fddf58d152 Merge pull request #12163 from jdgleaver/ozone-node-init
(Ozone) Ensure all members are initialised when allocating nodes
2021-03-16 12:27:34 +01:00
jdgleaver d678fbd7b3 (Ozone) Ensure all members are initialised when allocating nodes 2021-03-16 10:14:52 +00:00
jdgleaver 235967c606 GLUI: Fix main menu 'History' entry 2021-03-16 10:10:37 +00:00
Autechre e62aabea95 Merge pull request #12157 from Jamiras/task_http_cleanup
have http tasks clean up after themselves
2021-03-16 09:06:58 +01:00
Autechre 75fe9b7d8a Merge pull request #12160 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-16 09:06:51 +01:00
CrystalCT 64ecfe4463 Add some PSL1GHT ifdefs 2021-03-16 08:45:24 +01:00
Jamiras 501fe45a9f have http tasks clean up after themselves 2021-03-15 19:42:25 -06:00
Autechre 6de9bae75a Merge pull request #12155 from MrHuu/master
(3DS) Add BlueMSX assets
2021-03-16 02:09:27 +01:00
sonninnos e89cd8bc0b Cosmetic input bind order 2021-03-16 02:46:41 +02:00
MrHuu f512d9809f (3DS) Add BlueMSX assets 2021-03-15 17:19:42 +01:00
Autechre 1f3fa0a35b Update .gitlab-ci.yml 2021-03-15 15:26:29 +01:00
Autechre 75da4869ac Update .gitlab-ci.yml 2021-03-15 15:21:30 +01:00
Autechre 227226b98c Update .gitlab-ci.yml 2021-03-15 15:17:34 +01:00
Autechre bcf9610b71 Update .gitlab-ci.yml 2021-03-15 15:12:40 +01:00
twinaphex 40fe0796b4 Add 'Menu Driver' setting to 'User Interface' 2021-03-15 12:53:48 +01:00
Autechre fbaec27e8e Merge pull request #12154 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-15 12:47:01 +01:00
CrystalCT f19a67cad6 Add some PSL1GHT ifdefs 2021-03-15 11:37:59 +01:00
twinaphex b8c51ed040 Remove unused variables 2021-03-15 09:32:47 +01:00
Autechre 514edf8b06 Merge pull request #12153 from crystalct/master
Improved vfs implementation on PSL1GHT using lv2 functions
2021-03-15 08:59:32 +01:00
CrystalCT 96a1320977 Improved vfs implementation on PSL1GHT using lv2 functions 2021-03-15 08:38:34 +01:00
twinaphex d9e8d44393 menu_displaylist_parse_settings_enum - cleanups 2021-03-15 07:22:23 +01:00
twinaphex 40ef5f7e65 Prevent calls to menu_driver_navigation_set inside menu drivers -
can just call the accompanied function internally
2021-03-15 06:56:55 +01:00
twinaphex b52577aac1 Cleanups 2021-03-15 06:52:16 +01:00
twinaphex 6687920c1d Get rid of some typedefs 2021-03-15 06:37:21 +01:00
twinaphex 4e883c4568 Refactor menu_displaylist_setting away 2021-03-15 06:11:57 +01:00
twinaphex 9948899c63 Disable tvOS again 2021-03-15 02:53:30 +01:00
twinaphex 4d5753d8ce Re-enable tvOS again 2021-03-15 02:46:29 +01:00
twinaphex b8ebdc85ea Add certificate signing for tvOS 2021-03-15 02:46:11 +01:00
Autechre 6a4536139e Update .gitlab-ci.yml 2021-03-15 02:18:05 +01:00
twinaphex c8104d2542 Go with home_dir_buf codepath for tvOS for now - going to assume this is
intended
2021-03-15 02:06:32 +01:00
twinaphex d7a60b78d5 tvOS target now needs HAVE_OPENGLES3 2021-03-15 01:58:27 +01:00
twinaphex 938c8f3abc Fix some tvOS warnings 2021-03-15 01:52:18 +01:00
Autechre a4836bbb17 Fix analog triggers (#12151)
* Restore RETRO_DEVICE_ANALOG code while making less changes

* * When input_remap_binds_enable is true, input_driver_mapper is always
allocated and initialized - no need to NULL check
* Get rid of input_remote local variable for network gamepad code
2021-03-15 01:32:56 +01:00
Autechre 60d29d3792 Merge pull request #12150 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-15 00:46:57 +01:00
twinaphex da7109265c Add more portable way of getting OS version major/minor without using objc_msgSend_stret
(breaks on macOS/AArch64) by using NSInvocation - credit to OpenJDK
2021-03-15 00:45:38 +01:00
Autechre 6162b21c93 Merge pull request #12148 from yoshisuga/tvos_gitlab
[tvOS] Support tvOS build in gitlab ci
2021-03-15 00:15:23 +01:00
unknown 575e2dcff6 Add some PSL1GHT ifdefs 2021-03-14 21:00:08 +01:00
Yoshi Sugawara f50b1d53f9 [tvOS] Support tvOS build in gitlab ci 2021-03-14 08:00:46 -10:00
Autechre 3ddd2519f9 Merge pull request #12145 from MaddTheSane/patch-1
Update platform_darwin.m
2021-03-14 14:13:26 +01:00
C.W. Betts 886df798a7 Update platform_darwin.m
Add Apple Silicon detection.
Fix a leak with NSTemporaryDirectory() on ARC code.
2021-03-14 04:24:33 -06:00
twinaphex e3b856dcf2 Avoid two consecutive for loops if block_libretro_input is not
enabled
2021-03-14 06:22:07 +01:00
twinaphex e1b19d2133 Cleanups 2021-03-14 06:15:38 +01:00
twinaphex bb5c168726 Revert "Create specialized versions of input_state_mask"
- will require more work to properly optimize

This reverts commit bca73b0a46.
2021-03-14 06:06:28 +01:00
twinaphex bca73b0a46 Create specialized versions of input_state_mask 2021-03-14 05:47:30 +01:00
twinaphex 4fc1774901 Cleanups 2021-03-14 05:29:40 +01:00
twinaphex dbe620db60 Cleanups 2021-03-14 02:11:36 +01:00
Autechre 1633afdf35 Update .gitlab-ci.yml 2021-03-14 00:48:55 +01:00
Autechre 332bca625c PPC Xcode - doesn't support -scheme 2021-03-14 00:43:19 +01:00
Autechre 0627f83c33 Update .gitlab-ci.yml 2021-03-14 00:41:54 +01:00
Autechre 6b48c526cc Update .gitlab-ci.yml 2021-03-14 00:34:36 +01:00
Autechre 032b96c772 Merge pull request #12142 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-13 22:42:31 +01:00
unknown d653e50e00 Add some PSL1GHT ifdefs 2021-03-13 22:20:09 +01:00
Autechre 6115edc9be Merge pull request #12140 from yoshisuga/ios_gitlab
[iOS] Build RetroArch in gitlab
2021-03-13 21:51:43 +01:00
Yoshi Sugawara d219e606c3 add gitlab xcconfig for iOS, exportoptions plist for ipa export 2021-03-13 07:58:23 -10:00
twinaphex 86142c0071 Get rid of osx versions built with make 2021-03-13 01:26:04 +01:00
twinaphex 5211114fd4 ENABLE_HARDENED_RUNTIME - enable for OSX x64 signing 2021-03-13 00:19:56 +01:00
twinaphex 731c2f4ed4 remove CODESIGN_IDENTITY from xcconfig files - hopefully fixes builds 2021-03-12 23:51:19 +01:00
Autechre a40e3dc69b Merge pull request #12137 from libretro/libretro-db-fix-hash
libretro-db: hash.c is now lrc_hash.c
2021-03-12 22:36:58 +01:00
Autechre afe601b002 Merge pull request #12138 from yoshisuga/macos_fix_code_sign_id
[macOS] Fix code sign identity to allow gitlab to properly code sign
2021-03-12 22:36:47 +01:00
Yoshi Sugawara ec8002b8ed add code sign identity 2021-03-12 06:59:37 -10:00
Yoshi Sugawara 975b89ab6c Fix code sign identity to fix code signing 2021-03-12 06:58:03 -10:00
Rob Loach d279246db3 libretro-db: hash.c is now lrc_hash.c
🤷
2021-03-12 11:47:42 -05:00
Autechre a9f7e42131 Merge pull request #12136 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-12 12:38:52 +01:00
CrystalCT 1d48b9c61e Add some PSL1GHT ifdefs 2021-03-12 12:22:58 +01:00
twinaphex 4946d75c3d Further cleanups to do with menu_dialog code 2021-03-12 11:03:57 +01:00
twinaphex 53b4fe7716 This ifdef is no longer needed, remove - also 'push'
was always true so just hardcode it for this function
2021-03-12 10:57:42 +01:00
twinaphex 117d48c898 (Apple) Change some preprocessor conditionals to cover all bases 2021-03-12 10:33:21 +01:00
Autechre de67a13ab9 Merge pull request #12134 from yoshisuga/macos_support_assets_bundle_extraction
[macOS] Support bundle assets extraction for macOS; Fix default paths
2021-03-12 10:27:22 +01:00
Yoshi Sugawara 2e6e29b511 revert unintended change 2021-03-11 23:19:42 -10:00
Yoshi Sugawara e28386e840 Add blank assets.zip 2021-03-11 23:16:29 -10:00
Yoshi Sugawara a142f3b852 Support bundle assets extraction for macOS; Fix to only extract assets once on first install; Change cores, assets, other directories to default to application support directory instead of app bundle 2021-03-11 23:12:52 -10:00
Autechre 922e3b1849 Merge pull request #12133 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-12 08:31:10 +01:00
CrystalCT e67be94b98 Add some PSL1GHT ifdefs 2021-03-12 08:29:17 +01:00
twinaphex 4d3f8c3c80 Cleanup 2021-03-12 01:56:59 +01:00
twinaphex f7f6f3c5d5 Revert "Cleanups - don't call MENU_ENTRIES_CTL_SET_REFRESH in a loop - set it"
This reverts commit ee06ddfbc0.
2021-03-11 22:32:28 +01:00
twinaphex ee06ddfbc0 Cleanups - don't call MENU_ENTRIES_CTL_SET_REFRESH in a loop - set it
once outside
2021-03-11 22:17:38 +01:00
twinaphex 4dc70a6e9c Remove unused menu_ctx_iterate_t 2021-03-11 20:19:37 +01:00
twinaphex 14248f7401 (Menu) Iterate function callback was never used, remove it
- Also turn menu_driver_iterate into static function and
redesign code a bit; non-functional
2021-03-11 20:17:22 +01:00
twinaphex a6c11b5ed3 rgui_render - call menu_entries_get_size later in function
ozone_draw_entries - MENU_ENTRIES_CTL_START_GET was unnecessary to call
2021-03-11 19:48:56 +01:00
twinaphex e72cdd78d6 menu_displaylist.c is never built into Salamander, so these ifdefs
can go
2021-03-11 19:17:06 +01:00
Autechre 9fffbe65ac Merge pull request #12129 from guoyunhe/crowdin
Fetch translations from Crowdin
2021-03-11 18:04:42 +01:00
Autechre 275c02faee Merge pull request #12128 from jdgleaver/ctr-potator
(3DS) Add Potator assets
2021-03-11 17:49:09 +01:00
Guo Yunhe 72f982b16c Fetch translations from Crowdin 2021-03-11 22:15:42 +08:00
jdgleaver 32323ec737 (3DS) Add Potator assets 2021-03-11 13:17:10 +00:00
twinaphex 4d93ac3870 Get rid of menu_setting_ctl 2021-03-11 08:38:53 +01:00
CrystalCT 02c15dd4f5 Add some PSL1GHT ifdefs 2021-03-11 08:15:51 +01:00
twinaphex ba7771fd28 MENU_NAVIGATION_CTL_{INCREMENT/DECREMENT/ASCEND_ALPHABET/DESCEND_ALPHABET'
can all be removed now and inlined
2021-03-11 06:23:29 +01:00
twinaphex 6a68cefe60 Cleanups 2021-03-11 05:25:37 +01:00
twinaphex 3c7419bac7 (Menu) Can now get rid of TODO/FIXME 2021-03-11 05:17:32 +01:00
twinaphex b9d28ea76d Cleanups 2021-03-11 05:14:07 +01:00
twinaphex 656e10c60c Replace /inline file_list_get_last calls in retroarch.c 2021-03-11 05:11:08 +01:00
twinaphex 1afd728057 Cleanups 2021-03-11 04:28:39 +01:00
twinaphex 95d3b7285d MOve functions over to retroarch.c 2021-03-11 04:13:06 +01:00
twinaphex e5045fa2e2 Simplify menu_driver_deferred_push_content_list 2021-03-11 03:49:51 +01:00
twinaphex 839a270a97 Menu refactors:
- Get rid of menu_driver_search_list_clear
- Get rid of contentlist_switch callback - was only ever one
function callback implementation
2021-03-11 03:37:19 +01:00
twinaphex f502cd9e16 Get rid of menu_cbs_down/menu_cbs_up 2021-03-11 03:14:31 +01:00
Autechre 9f3ea51f77 Refactors pt4 (#12126)
* Cleanups:
- menu_driver_set_id - don't pass p_rarch to function
- Ozone: call ozone_list_cache directly instead of going through
wrapper function in retroarch.c that then calls ozone_list_cache
- Some other cleanups, non-functional

* (Menu) Replace calls to menu_driver_list_cache inside retroarch.c
2021-03-11 02:58:35 +01:00
Autechre a2ed065f25 Refactors pt3 (#12124)
* Remove video_pixel_get_alignment - move it to video
drivers that use it

* Rewrite video_driver_pixel_converter_{init/free} - get rid of
p_rarch dependency

* Replace some variables

* (Menu) Get rid of cbs_refresh - was never set to any other
function callback implementation
2021-03-11 02:03:37 +01:00
twinaphex cb5fba6b2a * Fix libnx build
* Put menu_cbs/enum_idx in menu_cbs_init behind DEBUG_LOG
2021-03-10 18:00:51 +01:00
twinaphex 29c509162e Cleanups - menu_entries_get_last_stack - unroll when possible in
retroarch.c
2021-03-10 17:28:31 +01:00
Autechre 6e96b9647a Merge pull request #12123 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-10 17:05:50 +01:00
twinaphex a092fe273c Turn retroarch_apply_shader into static function 2021-03-10 17:05:19 +01:00
twinaphex 4516d6626b * Cleanups; non-functional changes -
- Don't pass p_rarch around to other functions if unnecessary
  - Get rid of superfluous get/set runtime shader preset functions
2021-03-10 16:57:31 +01:00
CrystalCT 43bb8e6aaa Add some PSL1GHT ifdefs 2021-03-10 09:43:19 +01:00
twinaphex d940c10afe (Qt) Combine qt/options/generic.cpp and qt/options/nongeneric.cpp 2021-03-10 09:41:49 +01:00
twinaphex 3b59939dea (Menu) Implement as macro invocation 2021-03-10 09:41:49 +01:00
twinaphex 44c69561b7 Get rid of GENERIC_DEFERRED_PUSH_CLEAR_GENERAL - do
MENU_ENTRIES_CTL_CLEAR inside menu_displaylist_ctl instead
2021-03-10 09:41:49 +01:00
twinaphex a2031608e7 Don't use file_list_get_at_offset - access members directly 2021-03-10 09:41:49 +01:00
twinaphex 6629c20e25 video_driver_set_viewport_config - don't pass p_rarch to it 2021-03-10 05:49:59 +01:00
twinaphex b53b6cbf34 Simplify menu_input_set_pointer_visibility 2021-03-10 05:49:58 +01:00
twinaphex 003fc7ccc8 Get rid of menu_entries_get_at_offset 2021-03-10 05:49:58 +01:00
twinaphex bbe46333e1 Cut down on menu_input_dialog_get_display_kb calls 2021-03-10 05:49:58 +01:00
twinaphex d0bb190ca7 Another update 2021-03-09 22:10:18 +01:00
Autechre 85658ca7ef Merge pull request #12118 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-09 21:57:16 +01:00
twinaphex b520f84851 (Apple) Set code signing for RetroArch_Metal/RetroArch targets 2021-03-09 21:56:20 +01:00
Autechre f1ba4e1c53 Update .gitlab-ci.yml 2021-03-09 20:49:22 +01:00
Autechre e41acae922 Merge pull request #12119 from yoshisuga/osx_update_artifact
[gitlab][macOS] Updated artifact zip to not include subdirs for packaging step
2021-03-09 17:31:32 +01:00
Yoshi Sugawara 7e619aeb27 Updated artifact zip to not include subdirs for packaging step 2021-03-09 06:28:16 -10:00
CrystalCT f9eae08e1b Add some PSL1GHT ifdefs 2021-03-09 08:27:46 +01:00
twinaphex 88b2359a37 Cleanups 2021-03-09 00:51:15 +01:00
twinaphex c645a9b8bb Rewrite osk_last_update_codepoint 2021-03-08 23:28:24 +01:00
twinaphex 682a09fbdb Reimplement input_joypad_analog_axis 2021-03-08 23:02:46 +01:00
twinaphex 76e96bdd0b Merge branch 'master' of https://github.com/libretro/RetroArch into master 2021-03-08 22:44:09 +01:00
Autechre de0bcad39f Merge pull request #12116 from sonninnos/x11-grab
(X11) Remove useless XGrabs
2021-03-08 22:44:04 +01:00
twinaphex d98f81359f Small cleanup to input_keyboard_event 2021-03-08 22:09:36 +01:00
twinaphex fa539c9563 runloop_key_event can be NULL - check first if non-NULL before
calling it
2021-03-08 21:11:04 +01:00
twinaphex 012b02635e Get rid of p_rarch for more function arguments 2021-03-08 19:52:08 +01:00
twinaphex af5c311fb0 Simplify code in input_keyboard_event 2021-03-08 19:45:27 +01:00
twinaphex 7b2256941e (Input) Redesign some code for input_driver_mapper - if input_remap_binds_enable
is true, assume input_driver_mapper is allocated, to avoid having to do
the conditional checks beforehand
2021-03-08 19:23:37 +01:00
sonninnos ce29b70ae9 (X11) Remove useless XGrabs 2021-03-08 19:58:36 +02:00
twinaphex a60e7ad42a (Qt) Merge ui_qt_themes.h into ui_qt.cpp 2021-03-08 18:15:50 +01:00
twinaphex 6802e41db5 (Qt) Merge ui_qt_load_core_window.cpp into ui_qt.cpp - further
binary size reduction
2021-03-08 18:02:49 +01:00
twinaphex 25a0c903bc (Qt) Cleanup 2021-03-08 17:58:51 +01:00
twinaphex fd5d1804c5 Header cleanups 2021-03-08 17:54:52 +01:00
twinaphex f9eb53cff1 (Qt) Combine non-generic options into qt/options/nongeneric.cpp -
all these Qt files being combined now led to a nearly 1MB size reduction
in retroarch's binary
2021-03-08 17:47:36 +01:00
twinaphex 8fe8782497 (Qt) Combine qt download files into one - further binary size
reduction
2021-03-08 17:38:03 +01:00
twinaphex af1d9f7041 (Qt) Combine filedropwidgets.cpp and settingswidgets.cpp into
qt_widgets.cpp - further binary size reduction
2021-03-08 17:32:56 +01:00
twinaphex 7fb09d1602 (Qt) Combine shaderparamsdialog.cpp and qt_dialogs.cpp - further binary
size reduction
2021-03-08 17:24:47 +01:00
twinaphex 469e2b7778 (Qt) Combine dialog files into one - makes binary smaller too 2021-03-08 17:13:54 +01:00
twinaphex 69eff40e0d Cleanup 2021-03-08 16:35:55 +01:00
twinaphex 73116f9af3 (ozone_entries.c) ozone_draw_entry_value - small cleanup 2021-03-08 15:54:53 +01:00
twinaphex 047b24cfbf (ozone_display) Don't set variable to itself 2021-03-08 15:47:03 +01:00
twinaphex 0b06eea846 (ui_cocoa.m) Cleanups - add fall-throughs 2021-03-08 15:19:26 +01:00
twinaphex e140c9f8ee Cleanups 2021-03-08 15:11:28 +01:00
Autechre c9ed86f34d Merge pull request #12114 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-08 15:07:33 +01:00
CrystalCT 3bafc82305 Add some PSL1GHT ifdefs 2021-03-08 13:09:43 +01:00
twinaphex e135df2983 Simplify input_state_device - two case statements were identical
to an already existing one
2021-03-08 07:42:11 +01:00
Autechre bb6029d24f Merge pull request #12112 from Nephil1m/patch-1
Update AUTHORS.h: Updating my alias
2021-03-08 06:49:18 +01:00
Nephilim de8ee0e8d1 Update AUTHORS.h: Updating my alias
I used to be esoptron but now I have a new alias. So I'm updating this file to reflect that change.
2021-03-08 00:38:34 -05:00
twinaphex b0b81406ad Cut down on HAVE_COCOA_METAL/HAVE_COCOA ifdef 2021-03-08 04:09:43 +01:00
twinaphex ee77cd7288 Move cocoa_defines.h to defines/ 2021-03-08 03:58:41 +01:00
Autechre ce7ed94bcf Merge pull request #12111 from yoshisuga/gitlab_macos_update
Support building both universal and x64 open gl builds for macos
2021-03-08 02:39:06 +01:00
Yoshi Sugawara 6053a69686 Support building both universal and x64 open gl builds for macos 2021-03-07 14:49:40 -10:00
twinaphex b83596fcd4 (Qt) Combine all Qt files into one (ui_qt.cpp) 2021-03-08 00:56:55 +01:00
twinaphex ea3e9ee1c6 Buildfix 2021-03-08 00:33:31 +01:00
twinaphex d350ee0256 Remove unused variables 2021-03-08 00:31:36 +01:00
twinaphex 01c163a2fa (Cocoa) Combine Cocoa files into one 2021-03-08 00:28:21 +01:00
twinaphex 2675afe45d Combine ui/drivers/win32 files into one (ui/drivers/ui_win32.c) 2021-03-08 00:20:29 +01:00
Autechre 1207001bba Update .gitlab-ci.yml 2021-03-07 23:57:22 +01:00
twinaphex 65286541df Update DEVELOPMENT_ID team 2021-03-07 23:23:53 +01:00
twinaphex 7932eebb9b Update DEVELOPMENT_TEAM 2021-03-07 23:15:46 +01:00
Autechre b84fb56c76 Update .gitlab-ci.yml 2021-03-07 23:13:13 +01:00
Autechre bb58202e7b Merge pull request #12109 from yoshisuga/gitlab_macos_xcodebuild
GitLab CI job for building macOS universal with xcodebuild
2021-03-07 20:10:18 +01:00
Yoshi Sugawara b377cc7415 Add new build job for macOS using xcodebuild; Added xcconfig to specify libretro development team 2021-03-07 09:03:55 -10:00
Autechre ad5e366d99 Merge pull request #12107 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-07 20:02:17 +01:00
twinaphex 0518f6e13e Create MENU_ENTRIES_NEEDS_REFRESH 2021-03-07 20:00:45 +01:00
twinaphex db314cf5df file_list_set_userdata / file_list_set_actiondata are trivial one-line
functions - just set it directly
2021-03-07 19:30:04 +01:00
twinaphex 0c1e63a3c1 input_overlay_poll - add fallthrough
menu_display_powerstate - cleanup
2021-03-07 19:16:54 +01:00
twinaphex 0cce2fb4e2 menu_entries_append_enum - get rid of menu_driver_ident call 2021-03-07 19:04:24 +01:00
twinaphex e7702ae20f Simplify pause button handling in runloop_check_state 2021-03-07 18:38:33 +01:00
twinaphex 681c5f0b2b Only call rcheevos_hardcore_active once in runloop_check_state 2021-03-07 18:31:53 +01:00
twinaphex 90a1590f4c rcheevos_hardcore_active only has to be used outside of file cheevos.c 2021-03-07 18:29:25 +01:00
twinaphex bbabbd1373 (Cheevos) Stylistic changes; try to fit text within 80-char limit,
remove brackets around conditionals that exist out of one line, etc.
2021-03-07 18:25:17 +01:00
twinaphex 8328043897 Don't have two consecutive rcheevos_hardcore_active boolean
conditionals - have only one instead
2021-03-07 17:59:01 +01:00
twinaphex 69bae76ec3 Buildfix for MSVC 2021-03-07 16:08:49 +01:00
unknown 1288a35841 Add some PSL1GHT ifdefs 2021-03-07 09:28:59 +01:00
twinaphex a657465a4a Don't call netplay_get_host_room/don't call state_manager_is_reversed
inside retroarch.c
2021-03-07 07:28:13 +01:00
twinaphex 58f54a757f Move global pointer getters to the top 2021-03-07 07:16:40 +01:00
twinaphex 348b353907 Don't use menu_navigation_set_selection inside retroarch.c 2021-03-07 07:09:37 +01:00
twinaphex d6e897ca2c Get rid of menu_entries_set_checked 2021-03-07 06:52:35 +01:00
twinaphex b65d4e483e Avoid calls to menu_entries_get_menu_stack_ptr and
menu_entries_get_selection_buf
2021-03-07 06:26:51 +01:00
twinaphex 7b6a01056e Optimizations to menu refresh/clear functions -
* don't use menu_entries_get_size but used optimized
getter
2021-03-07 06:07:45 +01:00
twinaphex fa2b2708e5 Optimize MENU_ENTRIES_CTL_REFRESH 2021-03-07 06:00:35 +01:00
twinaphex 2bc23c9eaa Found quirk in code - add TODO/FIXME note 2021-03-07 05:49:12 +01:00
twinaphex ef650b2b48 Simplify menu_entries_elem_get_first_char - list is always non-NULL
so no need to check this
2021-03-07 05:25:34 +01:00
twinaphex ae378b8b80 Simplify further 2021-03-07 04:59:21 +01:00
twinaphex 3442f57bc7 menu_shader_manager_set_preset - ret is already set to false
by default, no need to set it again
2021-03-07 04:57:55 +01:00
twinaphex 0b863d6bc7 Forget 'void' for function prototype - needed for C 2021-03-07 04:48:30 +01:00
twinaphex 09bf486618 More cleanups 2021-03-07 04:40:12 +01:00
twinaphex b45eb0c76d Cleanups 2021-03-07 04:28:33 +01:00
twinaphex 2c7d5ad944 Get rid of p_rarch being passed as argument to functions whenever
possible
2021-03-07 04:15:17 +01:00
twinaphex 48926799cb Don't pass p_rarch around as argument unless we have to 2021-03-07 03:35:04 +01:00
twinaphex 5b3e3187c4 Don't pass p_rarch around to other functions if unnecessary 2021-03-07 03:12:55 +01:00
twinaphex e3b810e974 Cleanup 2021-03-07 02:07:37 +01:00
twinaphex a80e563d1f (cheevos) Cut down on calls to gfx_widgets_ready 2021-03-07 02:01:31 +01:00
twinaphex d794a57159 Cleanup 2021-03-06 23:31:37 +01:00
twinaphex 7be3d47b52 Cleanup menu_input_post_iterate 2021-03-06 23:11:00 +01:00
twinaphex a35cecac96 input_state_device - more refactors - prevent duplicate code
for finding base analog
2021-03-06 19:38:21 +01:00
twinaphex 7982613d31 Further optimizations to input_state_device - when input_remote is
false, res is still set to 0, so change conditionals
2021-03-06 19:21:41 +01:00
twinaphex a723e563f0 Further optimize input_state_device - move remote_input boolean
variable and refactor the logic
2021-03-06 19:12:40 +01:00
Autechre ebd2e69927 Merge pull request #12106 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-06 19:02:45 +01:00
twinaphex 7c69911065 Further micro optimizations to input_state_device - get rid
of res_overlay variable
2021-03-06 18:59:30 +01:00
twinaphex 490d67ab83 Refactor tons of stateful code in input_state_device - this should
all be streamlined and further optimized
2021-03-06 18:41:45 +01:00
twinaphex fc65a939b7 Refactor some of the input_state_device code - some very messy code in
here
2021-03-06 18:14:06 +01:00
twinaphex f50906787f Small optimization to turbo button handling 2021-03-06 17:57:04 +01:00
twinaphex e6cb7592a6 Further refinement to code that uses input_joypad_analog_button - value
is not subject to change unless the bind is valid, so move conditional
2021-03-06 17:48:58 +01:00
twinaphex 00a5c9502e Check if bind is valid before calling input_joypad_analog_button 2021-03-06 17:38:25 +01:00
unknown 49eab75938 Add some PSL1GHT ifdefs 2021-03-06 17:35:31 +01:00
twinaphex 5020c6a4d6 input_key_pressed - comment function and redesign it 2021-03-06 17:30:14 +01:00
twinaphex 5b741acbf3 Stylistic cleanups and code refactors to some functions in retroarch.c 2021-03-06 17:21:51 +01:00
Autechre d06bd7fffd Merge pull request #12105 from Jamiras/read_core_memory
add READ/WRITE_CORE_MEMORY network commands
2021-03-06 17:08:04 +01:00
Jamiras 5783a2907d add READ/WRITE_CORE_MEMORY network commands 2021-03-06 08:05:48 -07:00
Autechre 07146047f9 Merge pull request #12104 from Jamiras/cheevos/rewind_threaded
(cheevos) ensure rewind is only initialized/deinitialized on main thread
2021-03-06 06:44:23 +01:00
Jamiras 1b81620d64 ensure rewint is only initialized/deinitialized on main thread 2021-03-05 22:22:31 -07:00
jdgleaver 9086d241a7 (.gitlab-ci.yml) Add ctr-legacy target 2021-03-05 16:35:04 +01:00
Autechre 330161c394 Merge pull request #12100 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-05 16:00:26 +01:00
Salvo Cristaldi 5bff99b3bf Add some PSL1GHT ifdefs 2021-03-05 10:49:02 +01:00
Autechre bd209eab1f Merge pull request #12097 from crystalct/master
Fix SYS_THREAD_CREATE_JOINABLE on PSL1GHT
2021-03-04 13:28:52 +01:00
Salvo Cristaldi 4e284751f6 Fix SYS_THREAD_CREATE_JOINABLE on PSL1GHT 2021-03-04 09:05:55 +01:00
Autechre b606217c40 Merge pull request #12086 from valadaa48/oga_gfx_fix_msg
oga_gfx: fix messages from not disappearing
2021-03-03 17:13:46 +01:00
Autechre 81c6495df5 Merge pull request #12095 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-03 17:13:36 +01:00
Salvo Cristaldi 2896856195 Add some PSL1GHT ifdefs 2021-03-03 12:02:32 +01:00
Autechre 6957a766ec Merge pull request #12085 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-02 22:08:01 +01:00
valadaa48 71cbec9252 oga_gfx: fix messages from not disappearing 2021-03-01 19:25:54 -05:00
unknown ad059aed78 Add some PSL1GHT ifdefs 2021-03-01 15:57:01 +01:00
Autechre 5ff75cab0f Merge pull request #12083 from Jamiras/cheevos_load_state_async
(cheevos) ensure hardcore remains disabled through load process
2021-02-28 23:54:10 +01:00
Jamiras ba1d48fb6a ensure hardcore remains disabled through load process 2021-02-28 13:07:24 -07:00
Autechre a535cd5d59 Merge pull request #12079 from jdgleaver/manage-cores-fix
Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available
2021-02-26 11:21:07 +01:00
jdgleaver 3c909a3059 Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available 2021-02-26 09:57:50 +00:00
Autechre 5f5e11a0ba Merge pull request #12078 from jdgleaver/core-options-reset
Add option to reset all core options for current core/content
2021-02-25 18:23:17 +01:00
jdgleaver 20a187ef9c Add option to reset all core options for current core/content 2021-02-25 16:59:05 +00:00
Autechre 3dda581e41 Merge pull request #12074 from jdgleaver/core-option-save-remove
Add support for saving per-directory core options and deleting core option overrides
2021-02-25 12:00:19 +01:00
jdgleaver 110e318b71 Add support for saving per-directory core options and deleting core option overrides 2021-02-25 10:54:22 +00:00
Autechre 623725d668 Merge pull request #12077 from Jamiras/cheevos_memref_validation
(cheevos) only validate addresses once
2021-02-25 11:51:40 +01:00
Jamiras da71ed8e3b only validate memrefs once 2021-02-24 15:47:22 -07:00
Job Adrian Salinas Gonzalez de4138b45c [RGUI] Added 5:3 and 5:3 (centered) options for changing rgui aspect ratio (#12072)
* Added 5:3 and 5:3 (centered) options for changing rgui aspect ratio

* Fixed option label
2021-02-24 03:58:48 +01:00
Meredith Mello 002edcec82 Changed name in iOS README.md (#12071) 2021-02-23 19:33:06 +01:00
crystalct 1687d4a90b Step#1 to add per-folder core options (#11843) 2021-02-23 18:59:11 +01:00
Tony b8f84b8fa1 Restrict menu acceleration to navigation buttons (#12069) 2021-02-23 18:58:58 +01:00
jdgleaver d12197c00c Fix 'Content dir-specific overrides' log message (#12070) 2021-02-23 18:58:07 +01:00
twinaphex 6bba672d60 Compile video and audio filters as ARM64 architecture 2021-02-22 08:11:50 +01:00
Autechre 19b9fa9dcd Update .gitlab-ci.yml 2021-02-22 07:38:19 +01:00
Autechre b20ddebb73 Update .gitlab-ci.yml 2021-02-22 07:38:05 +01:00
Autechre 4a3a38ff49 Update .gitlab-ci.yml 2021-02-22 07:24:33 +01:00
Autechre adfb6eed41 Update .gitlab-ci.yml 2021-02-22 07:21:23 +01:00
Autechre 31a6529590 Update .gitlab-ci.yml 2021-02-22 07:16:46 +01:00
Autechre 163bdf8941 Update .gitlab-ci.yml 2021-02-22 07:06:58 +01:00
Autechre ff33169b35 Update .gitlab-ci.yml 2021-02-22 07:03:00 +01:00
twinaphex 1a9f1f6b33 gfx_display_init_first_driver was called twice, once invoked by
drivers_init, after that invoked by each menu driver's init function.
Taking the extra function call out of the menu driver's init function
2021-02-22 06:38:55 +01:00
twinaphex 80e90e532a Refactor away strcpy_alloc_force 2021-02-22 06:25:25 +01:00
twinaphex f54679417c Simplifications 2021-02-22 04:46:11 +01:00
Jamiras 1e39de800c fix undo load state (#12062) 2021-02-21 22:50:27 +01:00
twinaphex c43b0f53bf (file_path) Get rid of all the platform-specific headers 2021-02-21 18:50:17 +01:00
Tony 367024b623 Add 'Turbo' prefix to 'Duty Cycle' (#12059) 2021-02-21 17:12:09 +01:00
Autechre dbe1061742 Refactors (#12057)
* lock_file_path here will never be empty

* Simplify path_mkdir - final return value can become false, and sret
variable can go
2021-02-21 11:09:11 +01:00
Autechre a4d1fb62dc Merge pull request #12056 from sonninnos/menu-scroll-tweak
Tweak menu scroll initial hold delays
2021-02-21 03:58:50 +01:00
sonninnos f03ad6ea7c Tweak menu scroll initial hold delays 2021-02-21 04:24:38 +02:00
twinaphex d1280b4196 Revert "retroarch_load_shader_preset_internal - cleanups"
This reverts commit b51ee5fafd.
2021-02-21 01:06:41 +01:00
twinaphex 069470aff6 Cleanups 2021-02-21 00:04:13 +01:00
twinaphex 8350a2e050 Cleanup handle_discord_join_request 2021-02-20 23:49:38 +01:00
twinaphex de29587f25 ozone_auto_select_onscreen_entry - calling menu_navigation_get_selection
here is useless since it will be overridden immediately afterwards
2021-02-20 21:58:51 +01:00
twinaphex b51ee5fafd retroarch_load_shader_preset_internal - cleanups 2021-02-20 21:39:07 +01:00
Autechre 90568d0cd2 Merge pull request #12055 from sonninnos/remap-clear
Add remap clearing ability under Quick Menu controls
2021-02-20 21:28:08 +01:00
sonninnos 6de0af0c78 Add remap clearing ability under Quick Menu controls 2021-02-20 19:35:42 +02:00
twinaphex de3a85f18c Cuts down on two path_is_directory calls 2021-02-20 17:45:42 +01:00
twinaphex 4d8db1a091 Small cleanups 2021-02-20 10:05:41 +01:00
twinaphex ffaa7fcd40 Small cleanups/refactors 2021-02-20 09:34:45 +01:00
twinaphex a73de886fc Cleanups - should be no functional changes 2021-02-20 09:02:32 +01:00
Autechre 3406648b63 Merge pull request #12053 from jdgleaver/ctr-scummvm
(3DS) Add ScummVM assets
2021-02-19 18:38:57 +01:00
jdgleaver 74faccd158 (3DS) Add ScummVM assets 2021-02-19 16:30:58 +00:00
twinaphex 43c0d8aaa3 (MSVC2019) Add missing assets 2021-02-19 03:38:49 +01:00
Autechre 16e36e0ae9 Update RetroArch-msvc2019-UWP.sln 2021-02-19 03:06:42 +01:00
Autechre 07f9c994b6 Merge pull request #12049 from Jamiras/cheevos_rewind_threaded
(cheevos) also call REWIND_DEINIT on main thread
2021-02-19 03:00:58 +01:00
twinaphex f41e5b0483 Add MSVC2019 UWP 2021-02-19 02:57:19 +01:00
Jamiras 6612c38070 also call REWIND_DEINIT on main thread 2021-02-18 18:41:25 -07:00
Autechre 515b2035ef Merge pull request #12048 from sonninnos/override-path
Fix empty override paths when launching without content
2021-02-19 01:29:47 +01:00
sonninnos c5abb09182 Fix empty override paths when launching without content 2021-02-18 22:00:34 +02:00
Autechre f333b8ebf6 Merge pull request #12047 from sonninnos/log-levels
Logging level adjustments
2021-02-18 19:24:07 +01:00
sonninnos f333cd0df8 Logging level adjustments 2021-02-18 19:28:08 +02:00
Autechre c377516db2 Merge pull request #12045 from sonninnos/log-cleanups
Logging cleanups
2021-02-18 18:03:40 +01:00
sonninnos 6c3c2bea5f Logging cleanups 2021-02-18 18:35:31 +02:00
Autechre e7f8adf18f Merge pull request #12043 from Jamiras/cheevos_state
(cheevos) include achievement runtime state in save states
2021-02-18 16:27:11 +01:00
Jamiras 2280d126f3 address feedback 2021-02-18 07:44:52 -07:00
Autechre b8097455ef Merge pull request #12044 from jdgleaver/input-crash-fix
input_keyboard_event(): Add NULL check (prevents potential segfault when input remaps are disabled)
2021-02-18 13:49:45 +01:00
jdgleaver 4b70fbcd86 input_keyboard_event(): Add NULL check (prevents potential segfault when input remaps are disabled) 2021-02-18 11:01:27 +00:00
Jamiras 2d841715cb include achievement runtime state in save states 2021-02-17 19:44:39 -07:00
Autechre 06b77bab18 Merge pull request #12042 from jdgleaver/osx-repackaging
(.gitlab-ci.yml) OSX targets: Defer DMG generation to packaging pipeline
2021-02-17 18:15:09 +01:00
jdgleaver f496290326 (.gitlab-ci.yml) OSX targets: Defer DMG generation to packaging pipeline 2021-02-17 16:29:50 +00:00
twinaphex 6809655338 (OSX) Set audio_filters/video_filters for RELEASE_BUILD 2021-02-17 07:46:15 +01:00
twinaphex e8cd332b78 Refactor away driver_ctl_find_index 2021-02-17 06:54:37 +01:00
twinaphex b70217b7fc (Mac) Add CoreAudio3 for Metal x64 and ARM64 builds on buildbot 2021-02-17 05:20:51 +01:00
Autechre 54e20e2708 Update .gitlab-ci.yml 2021-02-17 01:23:43 +01:00
twinaphex 39cf159e98 Should build valid ARM64 binaries now 2021-02-17 01:11:21 +01:00
twinaphex 91365098f7 -arch arm64 works, using that 2021-02-16 23:12:25 +01:00
twinaphex e6643f7815 (MacOS ARM) Set -DDWONT_WANT_ARM_OPTIMIZATIONS for now since this won't compile on Mac for now 2021-02-16 23:05:50 +01:00
twinaphex c01df07f3d Fix ARM NEON detection 2021-02-16 23:02:06 +01:00
Autechre dea73a5595 Merge pull request #12011 from sonninnos/video-resolution
Screen Resolution option fixes
2021-02-16 22:15:55 +01:00
twinaphex 22f436128c Set arch arm64 to arch arm 2021-02-16 22:14:00 +01:00
sonninnos 371453623b Screen Resolution option fixes 2021-02-16 22:59:24 +02:00
twinaphex 93c2f3e4e9 Fix warnings 2021-02-16 21:38:39 +01:00
twinaphex 97239894a1 (Apple) Set min osx version correctly too when specifying ARCH 2021-02-16 21:36:24 +01:00
twinaphex e26f7ec8f6 (Gitlab) Try to build explicitly for ARM64 by passing -arch arm64 2021-02-16 21:28:38 +01:00
twinaphex 4b0f344024 Silence some warnings 2021-02-16 20:57:54 +01:00
Autechre 9c37cc948a Merge pull request #12038 from jdgleaver/last-file-path
Start auto-selecting last used path for more file browser menu entires
2021-02-16 20:51:07 +01:00
twinaphex 219f7ac689 Simplify command_event_init_controllers:
- Take variables out of loop that are not changing per iteration
- Early return in function if info is NULL
- Rearrange some code so it's better readable

Should have no functional changes
2021-02-16 20:29:10 +01:00
jdgleaver 537432cb8e Start auto-selecting last used path for more file browser menu entires 2021-02-16 16:20:41 +00:00
Autechre c7392c8135 Merge pull request #12036 from jdgleaver/msvc-icon
(.gitlab-ci.yml) Add icon to MSVC Windows binaries
2021-02-16 15:46:06 +01:00
jdgleaver c53543db7e (.gitlab-ci.yml) windows-x64/windows-i686/linux-x64/linux-i686/dingux-mips32: Strip generated RA binaries by default 2021-02-16 11:56:15 +01:00
jdgleaver 3fc31c1afa (.gitlab-ci.yml) Add icon to MSVC Windows binaries 2021-02-16 10:02:14 +00:00
Autechre 03a051d5bb Update Makefile.common 2021-02-16 02:49:52 +01:00
twinaphex cebd46a803 (Gitlab) Add ARM64 build 2021-02-16 02:48:21 +01:00
twinaphex 13e8d48732 Add RetroArch_Metal to .gitlab-ci.yml 2021-02-16 01:18:05 +01:00
twinaphex e6d8816d35 (OSX) Try to append minversion for LDFLAGS too 2021-02-15 22:58:29 +01:00
Autechre cdba3e149d Merge pull request #12035 from ToadKing/fix-emscripten-overlay-lockup
emscripten: only report back one screen pointer for rwebinput
2021-02-15 22:29:53 +01:00
Toad King c29241ec9e emscripten: only report back one screen pointer for rwebinput
fixes lockup when clicking on an overlay
2021-02-15 15:09:37 -06:00
twinaphex 2e35a2928a Specify -stdlib=libc++ for Clang-based macOSX SDKs 2021-02-15 21:49:24 +01:00
twinaphex ef4d9b88bf Specify -mmacosx-version-min when compiling from commandline - set
the right level based on architecture and/or whether HAVE_METAL is
defined
2021-02-15 21:44:41 +01:00
Autechre dad7f372bf Update .gitlab-ci.yml 2021-02-15 21:33:26 +01:00
Autechre 605af28dd3 Update .gitlab-ci.yml 2021-02-15 18:12:37 +01:00
Autechre 84815acda4 Update .gitlab-ci.yml
Try and see if this works now with OSX 10.7 deployment target
2021-02-15 18:11:05 +01:00
Autechre 5eb4ebb8e3 Update .gitlab-ci.yml 2021-02-15 17:09:58 +01:00
Autechre c27f15a9f9 Merge pull request #12033 from SpiralBrad/patch-1
Allows hosting in a subfolder instead of only root
2021-02-15 03:30:31 +01:00
Brad 54a166a360 Allows hosting in a subfolder instead of only root
Paths starting with slashes look in the root of a site, and these asset folders should generally be beside this .js + index.html...
This simple change was all that was needed to allow hosting in a subfolder of a site, and is not a breaking change unless someone has the asset folders elsewhere, which would be a breaking change on their part anyway.
2021-02-14 19:47:01 -06:00
Autechre 518b043ae2 Merge pull request #12028 from fjtrujy/ps2/fixDoubleSlash
Fix double slash in PS2
2021-02-14 06:13:09 +01:00
Francisco Javier Trujillo Mata c195fe696c Remove not used bootDeviceID 2021-02-13 21:10:51 +01:00
Francisco Javier Trujillo Mata 7c4efa21c4 Fix double slash in PS2 2021-02-13 21:00:47 +01:00
Autechre 4d5b94fc15 Merge pull request #12025 from jdgleaver/gitlab-windows-msvc05
(.gitlab-ci.yml) Add windows-msvc05-i686 target
2021-02-12 13:43:11 +01:00
jdgleaver f862dc8b14 (.gitlab-ci.yml) Add windows-msvc05-i686 target 2021-02-12 12:05:40 +00:00
Autechre b339554e47 Merge pull request #12023 from Tatsuya79/master
qt: remove retroarch nightly updater
2021-02-11 19:06:40 +01:00
Tatsuya79 1f07c884de remove from makefile.common 2021-02-11 18:07:51 +01:00
Tatsuya79 b1f6fa4a2a remove updateretroarch.cpp 2021-02-11 17:49:21 +01:00
Autechre 269523d42b Update .gitlab-ci.yml 2021-02-10 23:23:56 +01:00
Autechre ddbb1bef26 Merge pull request #12019 from davidgfnet/master
Memalign audio buffers to 64 bytes
2021-02-10 23:04:26 +01:00
David Guillen Fandos 9313b10467 Memalign audio buffers to 64 bytes
This is the most common cache line size, helps with performance.
Also fixes issues with platforms like PSP that wrongly assume that
malloc returns aligned buffers (to 16bytes). This recently broke the PSP
builds.
2021-02-10 21:35:04 +01:00
twinaphex 9c16163933 (Griffin) Add HAVE_GFX_WIDGETS to MSVC builds 2021-02-10 19:46:01 +01:00
Autechre 67cd40b727 Merge pull request #12018 from jdgleaver/gitlab-windows-msvc10
(.gitlab-ci.yml) Add windows-msvc10-x64 and windows-msvc10-i686 targets
2021-02-10 18:08:59 +01:00
jdgleaver 5c0799826a (.gitlab-ci.yml) Add windows-msvc10-x64 and windows-msvc10-i686 targets 2021-02-10 16:55:09 +00:00
Autechre d2a254b43c Merge pull request #12017 from jdgleaver/gitlab-linux-i686
(.gitlab-ci.yml) Restore mistakenly deleted linux-i686 target
2021-02-10 11:35:55 +01:00
jdgleaver e79bda1359 (.gitlab-ci.yml) Restore mistakenly deleted linux-i686 target 2021-02-10 10:21:47 +00:00
twinaphex 170b3e3e44 Fix some warnings - values written to variables never read 2021-02-10 00:49:41 +01:00
Autechre d56113c91c Merge pull request #12012 from jdgleaver/manual-scan-remember-paths
Manual Content Scan: Auto select last used 'Content Directory' and 'Arcade DAT File' when opening file browser
2021-02-09 19:06:51 +01:00
jdgleaver 07a5b1c4f4 Manual Content Scan: Auto select last used 'Content Directory' and 'Arcade DAT File' when opening file browser 2021-02-09 17:44:14 +00:00
Autechre 514614bc00 Merge pull request #12010 from sonninnos/win32-mouse-cleanup
(WINRAW+DINPUT) Mouse grab cleanup
2021-02-09 18:18:24 +01:00
sonninnos de7da62acd (WINRAW+DINPUT) Mouse grab cleanup 2021-02-09 18:42:07 +02:00
twinaphex 68027c606e Silence some warnings 2021-02-09 16:43:40 +01:00
Autechre ee50f6ba41 Merge pull request #12009 from XerTheSquirrel/macos-build
Mac OS GitLab CI/CD Build
2021-02-09 16:22:12 +01:00
twinaphex 3607d03ff8 Get rid of warning on older OSX SDK versions 2021-02-09 16:20:40 +01:00
twinaphex bf806f09ac kIOHIDElementTypeInput_NULL is apparently not available on previous OSX SDK versions 2021-02-09 16:14:20 +01:00
twinaphex 2763f65ab7 Fix some implicit type conversion warnings 2021-02-09 15:53:08 +01:00
twinaphex bdaf3d532a (libretro-common) Resync 2021-02-09 15:49:32 +01:00
twinaphex aba9479ed0 Simplify code; silence warnings 2021-02-09 15:41:26 +01:00
twinaphex 561d2744f0 Silence some warnings 2021-02-09 15:35:25 +01:00
Autechre 8660d35bb0 Merge pull request #12007 from michaelburgardt/us_text_other_fix
Removed quotation marks from comment (crowdin gets confused otherwise)
2021-02-09 14:27:33 +01:00
Autechre bcbe9d326b Merge pull request #12008 from jdgleaver/shader-remember-file
When remembering last selected shader preset/shader pass directories, also remember selected files
2021-02-09 14:27:24 +01:00
jdgleaver d81bdcddd0 When remembering last selected shader preset/shader pass directories, also remember selected files 2021-02-09 13:14:00 +00:00
Stephanie Gawroriski d225556a45 Merge jobs together as one. 2021-02-08 21:20:21 -05:00
Stephanie Gawroriski 9d0bc2281e Move stage around for OS X Build. 2021-02-08 21:11:54 -05:00
Stephanie Gawroriski d5c127309e Add MacOS X executable and unsigned DMG usage. 2021-02-08 20:59:22 -05:00
Michael Burgardt 50f4976c19 Removed quotation marks from comment (crowdin gets confused otherwise) 2021-02-09 01:36:55 +01:00
Autechre 91145dfe56 Merge pull request #11968 from michaelburgardt/us_text_other
US menu text improvement #5: whatever's left
2021-02-08 13:11:19 +01:00
Autechre 032974b403 Merge pull request #11967 from michaelburgardt/us_text_clarifications
US menu text improvement #4: to be more clear
2021-02-08 13:11:01 +01:00
Autechre 6cecec9af4 Merge pull request #11966 from michaelburgardt/us_text_visibility
US menu text improvement #3: Menu Item Visibility
2021-02-08 13:10:36 +01:00
Autechre d9b657d97b Merge pull request #11965 from michaelburgardt/us_text_consistency
US menu text improvement #2: for consistency
2021-02-08 13:10:08 +01:00
Autechre a00216e2d5 Merge pull request #11964 from michaelburgardt/us_text_mistakes
US menu text improvement #1: spelling and other mistakes
2021-02-08 13:09:39 +01:00
Autechre f661cc3fb5 Merge pull request #11572 from ImJezze/master
Option to open the file browser in the last used directory
2021-02-08 12:29:31 +01:00
twinaphex 22c3f35726 Buildfix 2021-02-08 09:38:12 +01:00
twinaphex da17588f0c CXX_BUILD build fixes 2021-02-08 09:35:57 +01:00
twinaphex 5b923b967d (7zip) Silence warnings on OSX/Xcode/Clang 2021-02-08 09:32:19 +01:00
Autechre 8e35fc6c53 Merge pull request #12005 from Jamiras/rcheevos_invalid_addr_range
(cheevos) don't invalidate out-of-range addresses
2021-02-08 08:00:24 +01:00
Jamiras 88fe6e82ca don't invalidate out-of-range addresses 2021-02-07 20:08:54 -07:00
Autechre bfdebf2753 Merge pull request #12001 from Tatsuya79/master
mouse visibility fixes
2021-02-08 00:58:06 +01:00
Autechre 6d5713ca25 Merge pull request #12002 from sonninnos/win-grab
(Windows) Mouse grabbing/clipping with alt-tab
2021-02-07 23:05:59 +01:00
Autechre dff0ce9912 Merge pull request #12003 from fjtrujy/ps2-improveFolderDetection
Ps2 improve folder detection
2021-02-07 22:24:22 +01:00
Francisco Javier Trujillo Mata 78b8d6933b Add PS2 libco 2021-02-07 21:16:24 +01:00
Francisco Javier Trujillo Mata 6248d2cdff Improve platform_ps2 driver 2021-02-07 21:05:06 +01:00
sonninnos aad12cc663 (Windows) Mouse grabbing/clipping with alt-tab 2021-02-07 20:18:04 +02:00
Tatsuya79 d97e0b3cee mouse visibility fixes 2021-02-07 16:15:09 +01:00
ImJezze 270c41b35a Implement toggle to open the start directory at the last used location 2021-02-07 11:54:17 +01:00
Autechre dd2308b44c Merge pull request #11998 from sonninnos/mouse-index
Reorder Mouse Index next to Device Index
2021-02-06 22:10:49 +01:00
Autechre 11a62dfdab Merge pull request #11999 from sonninnos/input-menu
Missing Input menu dropdown
2021-02-06 22:10:38 +01:00
sonninnos 7fb25b6b6e Missing Input menu dropdown 2021-02-06 23:04:39 +02:00
sonninnos c89f1feb44 Reorder Mouse Index next to Device Index 2021-02-06 22:41:02 +02:00
Autechre fa9b615ce8 Merge pull request #11993 from sonninnos/mouse-index-dropdown
Submenu for Mouse Index
2021-02-06 20:49:38 +01:00
Francisco Javier Trujillo Mata 34287ff47b Improve folder detection 2021-02-06 20:43:28 +01:00
Autechre 0b83851346 Merge pull request #11994 from sonninnos/control-port-icons
(XMB+OZONE) Proper control port icons
2021-02-06 05:24:00 +01:00
sonninnos cd77db37df (XMB+OZONE) Proper control port icons 2021-02-06 03:13:03 +02:00
sonninnos 40b0001fb5 Submenu for Mouse Index 2021-02-06 01:59:54 +02:00
Autechre e4f8f64336 Merge pull request #11992 from sonninnos/device-index-dropdown
Submenu for Device Index
2021-02-05 20:42:31 +01:00
sonninnos 14413b8bca Submenu for Device Index 2021-02-05 19:49:15 +02:00
Autechre 92693c7d16 Merge pull request #11991 from jdgleaver/notification-settings-cleanup
'On-Screen Notifications' menu clean-ups
2021-02-05 18:13:35 +01:00
jdgleaver 864c2913d8 'On-Screen Notifications' menu clean-ups 2021-02-05 16:55:09 +00:00
Autechre fa898fc02e Merge pull request #11986 from sonninnos/device-type-dropdown
Submenu for Device Type
2021-02-04 19:36:42 +01:00
Autechre ea82a988c0 Merge pull request #11985 from Tatsuya79/patch-5
qt: fix mouse cursor limited by window range on F5 press
2021-02-04 18:09:48 +01:00
Tatsuya79 502d3b3514 qt: fix mouse cursor limited by window range on F5 press 2021-02-04 17:54:05 +01:00
sonninnos 8fcf485fd8 Submenu for Device Type 2021-02-04 18:50:10 +02:00
Guo Yunhe bfe5ca708b Fix GitHub Actions (#11984)
setup-java action has broken in previous version and need updates
2021-02-04 13:49:08 +01:00
Guo Yunhe c0108fa2c0 Fetch translations from Crowdin (#11983) 2021-02-04 13:11:36 +01:00
twinaphex 863a09eac6 We need to change this ifdef now that we temporarily disable vitagl 2021-02-04 12:51:52 +01:00
Francisco José García García 39aa742dee Vita: Disable temporarily VITAGL 2021-02-04 12:29:06 +01:00
Francisco José García García 066917ac23 Vita: VitaGL api changes (#11981)
* Vita: VitaGL api changes: vglSwapBuffers

* Vita: VitaGL api change: Remove vglStartRendering
2021-02-04 11:46:00 +01:00
Tony c360f9126d Add reinit to menubar setting (#11976) 2021-02-04 07:11:24 +01:00
jdgleaver 824693d754 (Makefile.griffin) Fix windows_msvc2010 makefile target(s) (#11978) 2021-02-03 17:37:15 +01:00
Autechre 33110603e5 Shader log spam reduction (#11977)
* (Shaders) Change label

* Create RARCH_DBG - if you have Logging Verbosity set to 0, the
shader parsing log spam will show, otherwise it won't
2021-02-03 13:49:07 +01:00
Autechre 5555419792 Merge pull request #11975 from sonninnos/state-logging
Savestate logging cleanup
2021-02-03 12:59:33 +01:00
sonninnos c4876c5e01 Config logging cleanup 2021-02-03 13:43:56 +02:00
twinaphex 5187957b3d Silence some implicit conversion warnings 2021-02-03 12:34:10 +01:00
sonninnos 90485b5586 Savestate logging cleanup 2021-02-03 13:29:32 +02:00
twinaphex 4df6d287e3 (Clang) Silence 'n' is never used warnings 2021-02-03 11:48:33 +01:00
twinaphex 4c97c22e00 (Win32) Exclude HAVE_FONTCONFIG codepath for Windows for now 2021-02-03 11:29:41 +01:00
twinaphex 1348faa209 (RTGA) Lower raw_data size to 18 bytes and leave behind a comment 2021-02-03 11:01:36 +01:00
twinaphex 34636ed9f0 (RTGA) Silence long-standing warning 2021-02-03 10:58:28 +01:00
twinaphex 542162c17b Silence some warnings 2021-02-03 10:39:29 +01:00
twinaphex 097cb1bd5b (Cheevos) Fix long-standing warning 2021-02-03 10:32:56 +01:00
twinaphex c40943374b Fix C89_BUILD 2021-02-03 10:11:33 +01:00
twinaphex 55410cf407 Use C-style comments 2021-02-03 10:04:42 +01:00
Autechre 6d2193bca8 Merge pull request #11970 from sonninnos/winraw-mouse-grab
(Windows) Mouse grab fixes
2021-02-03 09:59:27 +01:00
twinaphex ea7bedf257 Remove one include 2021-02-03 09:58:50 +01:00
Autechre 06bb026f5c Merge pull request #11973 from sonninnos/input-port-labels
Input port label adjustments
2021-02-03 06:14:37 +01:00
sonninnos d44c8ef1d3 Input port label adjustments 2021-02-02 21:33:49 +02:00
sonninnos e39ade0f05 (WIN32) Cursor clipping for grabbed mouse 2021-02-02 14:15:58 +02:00
twinaphex 60a112ec97 Reduce dummy display driver null implementations with one 2021-02-02 12:28:17 +01:00
Autechre 831bbf1300 Merge pull request #11925 from Ryunam/custom-dirs
Enable configuration of the directories used for Favorites, History, Images, Music and Video playlists
2021-02-01 23:20:00 +01:00
twinaphex 732fce9a04 (SDL2) Add ifdefs for HAVE_X11 and HAVE_WAYLAND 2021-02-01 23:18:06 +01:00
twinaphex 6aa01b2ce7 Merge branch 'master' of https://github.com/libretro/RetroArch into master 2021-02-01 23:13:52 +01:00
Autechre 6b11a9a928 Merge pull request #11923 from keithbowes/sdl2-out-of-x
Get the SDL2 video driver to work in Wayland/KMS
2021-02-01 23:13:38 +01:00
twinaphex 0b08693f9d Merge branch 'sdl2-out-of-x' of git://github.com/keithbowes/RetroArch into master 2021-02-01 23:13:17 +01:00
sonninnos 94446ab488 (WINRAW) Prevent outside window mouse clicks when grabbed 2021-02-01 23:22:34 +02:00
Michael Burgardt ad550d6f10 minor fixes 2021-02-01 19:37:51 +01:00
Michael Burgardt 41d61d8a68 mainly changes to the Settings > User Interface > Menu Item Visibility entries:
put option names in ''-quotes
removed the 'Tab' name from the labels, since it only applies to some menu drivers
descriptions
	Show or hide -> Show (no need to state 'x or y' for on/off switches)
	clarified where some options/menus are found (and removed some statements; it is obvious, for example, that visibility toggles in 'Settings > User Interface > Menu Item Visibility  > Settings' affect the options found on the Settings screen)
	added (Restart Required on Ozone/XMB) tag for some options (usually those which affect 'Tabs')
2021-02-01 18:58:06 +01:00
Michael Burgardt f3850c08ca added some FIXMEs
changed some verbs from 3rd person to basic form
minimised use of personal pronouns
2021-02-01 18:57:53 +01:00
Michael Burgardt b9a1265270 spelling mistakes
UK English -> US English (according to Merriam-Webster)
	releasedate -> release date (General consensus found during online search)
	Vsync, V-Sync -> VSync (https://en.wikipedia.org/wiki/Analog_television#Vertical_synchronization, https://www.intel.com/content/www/us/en/support/articles/000005552/graphics.html)
	realtime -> real time (https://www.merriam-webster.com/dictionary/real%20time)
	inbetween -> in-between (https://www.merriam-webster.com/dictionary/in-between)
	amongst -> among (https://www.merriam-webster.com/dictionary/amongst)
	savefile -> save file (the second was more prevalent, anyway)

improper/inconsistent capitalisation

plural -> singular and vice versa where appropriate

some punctuation mistakes, like
	improper separation of complete sentences
	unnecessary parentheses

outdated comments

improper order of some entries
2021-02-01 18:57:45 +01:00
Michael Burgardt 648144ce42 (Reload), (Restart) -> (Restart Required)
(Restart Required) tag now occurs in LABEL only, not in SUBLABEL (not all LABELs have a SUBLABEL; besides, important info like that should be in the LABEL, imo)

same³: same verb for same function in same menu

no more joypad/gamepad; controller only!

'NOTE' tags are
	removed, if note merely describes function of setting (like performance impact, side effects, things it does not do, etc.)
	replaced with new line character (\n) for conditions (like 'x must be <> for this to work', 'this will be ignored if x is <>', core compatibility, etc.)
	left as '\nNOTE:' for extra info (like deprecation notes)

no need to state 'x or y' for most on/off switches

Load Recent -> History (to be consistent across all GUIs and with the settings)
2021-02-01 18:57:35 +01:00
Michael Burgardt 385eea6b00 clarified description of "Force-Disable sRGB FBO" [by hunterk]
clarified what the Duty Cycle (Turbo Mode) is (I tested it & am confident in the description [provided by hunterk])
other minor fix-ups of descriptions, to make them more clear/streamlined
2021-02-01 18:56:35 +01:00
Autechre 80147e3cfe Merge pull request #11961 from sonninnos/input-title-prefix
Remove empty prefix from input titles
2021-02-01 18:33:15 +01:00
Autechre c5701085f2 Merge pull request #11962 from jdgleaver/regression-fixes
Regression fixes
2021-02-01 18:32:33 +01:00
jdgleaver 01265c1b08 (XMB) Fix stack-buffer-overflow due to incorrect data type being passed by reference 2021-02-01 16:43:44 +00:00
jdgleaver 95226b77a1 Fix non-smooth text ticker + reduce line ticker code duplication 2021-02-01 16:35:56 +00:00
sonninnos 48eb3f5d53 Remove empty prefix from input titles 2021-02-01 16:55:35 +02:00
twinaphex d6c027be31 (Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings 2021-02-01 09:38:01 +01:00
Autechre 94beed5a46 Merge pull request #11960 from jdgleaver/filter-upscale-320x240
Add 'Upscale_256x-320x240' video filter
2021-01-31 21:34:42 +01:00
jdgleaver ebfe32db3e Add 'Upscale_256x-320x240' video filter 2021-01-31 13:38:40 +00:00
Autechre 1f58cebcd0 Merge pull request #11958 from liushuyu/master
Use Fontconfig for FreeType font loading
2021-01-31 05:05:15 +01:00
liushuyu 6b044e742b (FontRenderer/FreeType): use C-style block comments 2021-01-30 20:05:15 -07:00
liushuyu 8132303d4f (FontRenderer/FreeType) Use fontconfig to select fonts if available 2021-01-30 18:49:47 -07:00
liushuyu 5a028d79f5 (msg_hash) Use different locale names for ...
... Chinese Simplified/Traditional
2021-01-30 18:46:16 -07:00
Autechre 20b1549fe4 Merge pull request #11955 from sonninnos/key-dupe-block
Prevent duplicate key events with hotkeys + keyboard device type
2021-01-31 00:56:27 +01:00
Autechre 231082bd84 Merge pull request #11956 from fjtrujy/ps2/warnings
Clean all the warnings in PS2
2021-01-30 16:59:31 +01:00
Francisco Javier Trujillo Mata 082fa22b05 Clean all the warnings in PS2 2021-01-30 15:47:52 +01:00
sonninnos d78f321d33 Prevent duplicate key events with hotkeys + keyboard device type 2021-01-30 11:41:44 +02:00
Autechre b83d0495d5 Merge pull request #11953 from Sanaki/patch-1
Add /media/shaders_slang/ to .gitignore
2021-01-29 20:59:18 +01:00
Sanaki 9448147259 Add /media/shaders_slang/ to .gitignore 2021-01-29 19:46:07 +00:00
Autechre 1eb45fdf9b Merge pull request #11942 from barbudreadmon/patch-1
fix slang shaders with rotation
2021-01-28 15:54:27 +01:00
Guo Yunhe 8eb335a814 Fetch translations from Crowdin (#11951) 2021-01-28 07:35:03 +01:00
Autechre 43611b6b10 (libretro-common) Fix libco for arm64 Mac (#11946) 2021-01-27 11:15:19 +01:00
twinaphex 9e2ff36d4a (macOS) Silence warning 2021-01-27 03:44:11 +01:00
twinaphex d5c23fc7c6 (Apple/ARM64) Set __aarch64__ for Core Updater URL 2021-01-26 22:58:45 +01:00
Daniel De Matteis 1ece33337c (Mac) More warning fixes 2021-01-26 21:21:51 +01:00
Daniel De Matteis 59952c520b (Mac) Silence more warnings 2021-01-26 20:39:36 +01:00
Autechre 39e8225c82 (clang/MacOS) Silence warning 'Possible misuse of comma operator here' (#11945)
warnings
2021-01-26 19:43:53 +01:00
Autechre e282cfe2fe (IOHIDManager) Fix enumeration value 'kIOHIDElementTypeInput_NULL' (#11944)
not handled in switch warning
2021-01-26 19:39:36 +01:00
Autechre 082ccc167e Fix slang_process string to C char regressions (#11943) 2021-01-26 18:17:37 +01:00
barbudreadmon 7cb250f827 (GLCORE) fix slang shaders with rotation 2021-01-26 10:13:57 +01:00
barbudreadmon af6bb016cb (VULKAN) fix slang shaders with rotation 2021-01-26 10:09:45 +01:00
Jean-André Santoni 9a51de833d Build OSX Metal using Makefile (#11941) 2021-01-26 09:48:15 +01:00
jdgleaver b9691597d1 Add 'L2 + R2' menu toggle gamepad combo (#11935) 2021-01-24 16:33:13 +01:00
twinaphex dbbf557954 (Metal/WindowListener) Fix duplicate symbol errors by
moving implementation of WindowListener to cocoa_common.m
2021-01-24 03:56:17 +01:00
Autechre 7ea1d7d0da Revert "Mac buildfixes (#11933)" (#11934)
This reverts commit 18a6880900.
2021-01-24 03:56:05 +01:00
Autechre 18a6880900 Mac buildfixes (#11933)
* (Metal/WindowListener) Fix duplicate symbol errors by
moving implementation of WindowListener to cocoa_common.m

* (Apple) Cleanup some conditionals

* (Cocoa) Cut down on OSX ifdefs in Cocoa-specific code
2021-01-24 03:53:10 +01:00
AKuHAK 3c0633839f (PS2) added Multitap support (up to 8 players) (#11928)
* (PS2) added Multitap support (up to 8 players)

* (PS2) revert some identation changes

* (PS2) fix for non-analog controllers
* fix for not recognized digital and other non-standart controllers
* fixed ps2_joypad_destroy
2021-01-24 00:04:04 +01:00
Braden Farmer 6167f8c980 Android: Clean up old symlinks before creating new ones (#11931) 2021-01-23 19:49:32 +01:00
jdgleaver 0068dfd963 Fix 'Power Management' menu (#11930) 2021-01-23 17:08:46 +01:00
Autechre a49b02c44b (Mac) Makefile changes for supporting Metal build (#11929)
* (QB) Add rule for Metal - define HAVE_COCOA_METAL for now
when building for Metal, and HAVE_COCOA for non-Metal build

* Make necessary changes to Makefile.common and qb/config.libs.sh:
- Disable OpenGL for now for Metal build
- Take Metal conditional out of OpenGL block in Makefile.common

* (Metal) Header fixes for compiling without Xcode/Griffin

* (Mac) Some buildfixes for non-Xcode building

* (cocoa_common.h) Restructure to no longer use -DOSX

* (Apple) More buildfixes

* (Apple) Cleanups
2021-01-22 22:20:38 +01:00
Autechre a213c2dcdf Merge pull request #11927 from Jamiras/sse2_msc_find_change
fix rewind crash on MSVC build when using SSE2
2021-01-22 18:43:30 +01:00
Jamiras 98ea2b6a47 improve granularity of custom compat_ctz 2021-01-21 23:29:58 -07:00
Jamiras 78ab9853a7 fix SSE2 implementation of find_change 2021-01-21 22:26:45 -07:00
Ryunam 4b0502b896 Enable configuration of directory for Favorites, History, Images, Music and Video playlists 2021-01-21 21:28:10 +01:00
Keith Bowes 125154e831 Get the SDL2 video driver to work in Wayland/KMS 2021-01-21 09:42:06 -05:00
jdgleaver 2520337ddc (.gitlab-ci.yml) Set expiry time to 10 minutes for all artefacts 2021-01-21 11:53:30 +01:00
Autechre 90c438d370 (retroarch-apple-packaging) Remove dependence on gsed 2021-01-21 09:22:44 +01:00
Autechre 746101010f (Apple/Clang/ARC) ARC (Automatic Reference Counting) only available (#11920)
since Clang. PowerPC Mac is stuck with GCC and predates the use of ARC,
__has_feature() also is a Clang extension, so wrap around this with a
conditional so that GCC PowerPC on Mac can still work
2021-01-21 08:53:16 +01:00
Autechre 7d56bf2b0a (Apple) Packaging update - will now package it into DMG as well (#11919) 2021-01-21 08:36:10 +01:00
Autechre 92774aa431 (Apple) Improve packaging script - icon should now be correct (#11918) 2021-01-21 07:16:13 +01:00
Autechre 21a1275966 (QB) MacOS X 10.5's toolchain does not support extra languages, (#11917)
so disable HAVE_LANGEXTRA. We can later make this more generic
by checking for specific GCC versions as a cutoff point for
HAVE_LANGEXTRA support, but this will do for now
2021-01-21 06:50:35 +01:00
Jamiras 015576b2ba improve error handling for achievement unlocks (#11916) 2021-01-21 04:07:48 +01:00
Autechre cff0a4e202 MSVC2003 buildfix - (#11915)
* MIIM_STRING and MIIM_FTYPE only available if WINVER is higher than
or equal to 0x0500
2021-01-21 03:07:46 +01:00
Autechre 39e84fd5b2 Refactor Win32 menubar code - (#11914)
* Get rid of camelCase notation
* Turn functions into static functions if not used outside
* Rewrite while (true) as for (;;)
* Some general cleanups
2021-01-21 02:59:30 +01:00
Autechre 47784c66f0 MSVC Buildfix - (#11913)
* Declare variables at the top of a function in C code
2021-01-21 02:59:14 +01:00
Autechre 630dbdd85c Update AndroidManifest.xml 2021-01-21 01:16:00 +01:00
Autechre 760c9a8482 (Mac) Remove Apple Core GL Context (#11912)
* Remove Apple CGL context - was never used and never tested
2021-01-21 00:33:12 +01:00
twinaphex a772eb550d file_list_get_size - list can be NULL, in which case return 0 2021-01-21 00:24:32 +01:00
Autechre 1344ae2ddd Merge pull request #11910 from jdgleaver/x11-keyboard-focus-fix
(X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus
2021-01-20 15:37:47 +01:00
jdgleaver e047aaaf39 (.gitlab-ci.yml) Set expiry time to 10 seconds for all artefacts 2021-01-20 15:10:47 +01:00
jdgleaver ce47fe7e28 (X11) Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus 2021-01-20 10:24:07 +00:00
twinaphex fdfc4dda08 (OpenDingux) Don't build in code that we don't need for Dingux 2021-01-20 09:56:40 +01:00
Twinaphex 83a5859b18 Buildfix 2021-01-20 09:41:16 +01:00
twinaphex fe810371c3 Add retroarch-apple-packaging.sh 2021-01-20 09:36:01 +01:00
twinaphex cf01c66d6e Don't include these when HAVE_CHEEVOS is not defined 2021-01-20 09:07:16 +01:00
twinaphex bfd0611815 Avoid small wrapper functions like file_list_get_userdata_at_offset
in hot functions
2021-01-20 09:04:08 +01:00
twinaphex c7e8d2adf5 Silence warnings for some console platforms 2021-01-20 08:53:45 +01:00
twinaphex 7867c4b70e Get rid of file_list_get_size calls - one line wrapper function 2021-01-20 08:31:05 +01:00
Autechre 8359cfc29c Merge pull request #11907 from pcjco/wii-usb1
Issue when argv[0] is usb1:/... on Wii
2021-01-20 04:36:59 +01:00
pcjco 3e4aca8666 Issue when argv[0] is usb1:/... on Wii
When RA dol file launched from Wiiflow, getcwd return nothing, dirs[DEFAULT_DIR_CORE] is empty and RA "info", "autoconfig",.... dirs are on root /
This seems to be because argv[0] is starting with "usb1://...dol" (maybe incompatible libfat)
This patch allow to default dirs[DEFAULT_DIR_CORE]  on Wii to the dirname of the DOL in such cases.
2021-01-19 22:47:17 +01:00
Autechre ded9a428de Merge pull request #11906 from fjtrujy/FixLegacyLogs_PS2_PSP
[PS2] [PSP] Remove not needed logger configuration
2021-01-19 14:46:41 +01:00
Francisco Javier Trujillo Mata 3f91423a3a Remove legacy way of using logs for PS2 and PSP platform 2021-01-19 14:31:45 +01:00
twinaphex 9a4472266f Try to avoid hot function file_list_get_userdata_at_offset 2021-01-19 07:52:13 +01:00
twinaphex 55a766b0bc (CocoaGL) Add forward declaration 2021-01-19 07:28:42 +01:00
twinaphex 6011ebd311 (cocoa_vk_ctx.m) Get rid of one static global 2021-01-19 06:44:09 +01:00
twinaphex eea8e12343 (CocoaGL) Get rid of one static global 2021-01-19 06:37:01 +01:00
Autechre e044b0eeec Merge pull request #11905 from farmerbb/master
Android (Play Store): ensure that `cores` directory exists before attempting to create symlinks
2021-01-19 05:25:00 +01:00
Braden Farmer 61b817ca68 Android (Play Store): ensure that cores directory exists before attempting to create symlinks 2021-01-18 21:20:08 -07:00
Autechre 18170486cd Update cocoa_common.m 2021-01-19 04:51:38 +01:00
Twinaphex a83c328631 (Metal) Fix some build problems 2021-01-19 04:38:07 +01:00
twinaphex 7b3f042fc6 (CocoaGL) Get rid of IOS Interface extensions 2021-01-18 21:49:34 +01:00
twinaphex 6a091cf20a (cocoa_vk_cx) Cleanup 2021-01-18 21:43:33 +01:00
Twinaphex 69884a816f (Cocoa GL) OSX - get rid of bounds/scale extension of NSScreen 2021-01-18 21:38:02 +01:00
twinaphex 71e712f050 Define GL_SILENCE_DEPRECATION for OSX 2021-01-18 21:27:26 +01:00
Twinaphex 97d954912d (Apple) Buildfix 2021-01-18 21:21:17 +01:00
twinaphex 0294b0c626 (Cocoa) Don't use NSEventModifierFlags type anymore - just
use NSUInteger instead
2021-01-18 20:41:30 +01:00
twinaphex 234ebd715b (Makefile.common) Define -DOSX for OSX 2021-01-18 20:36:51 +01:00
twinaphex f4a20870c7 video_shader_write_referenced_preset - logic flaw -
loaded_shader_preset_path is a character array - conditional boolean
check would always evaluate to true - check if string is empty
instead
2021-01-18 20:30:21 +01:00
Autechre 2aac83faf0 Merge pull request #11899 from Jamiras/cheevos_runtime_iterate_modify
(cheevos) traverse list in reverse order in case items are removed by callback
2021-01-18 20:07:52 +01:00
twinaphex 83210eafd8 Split up cocoa_gl_ctx.m into two parts - cocoa_gl_ctx.m
and cocoa_vk_ctx.m
2021-01-18 20:02:31 +01:00
twinaphex 456cc022f3 (Metal) Buildfix 2021-01-18 19:36:33 +01:00
twinaphex 8d31c410a0 move cocoa_get_metrics to cocoa_common.m 2021-01-18 19:33:06 +01:00
twinaphex a80a64f261 Add cocoa_update_title to cocoa_common.m 2021-01-18 19:28:36 +01:00
Twinaphex 3d17cf1e38 Move nsview_set/get/cocoaview_get to cocoa_common.m 2021-01-18 19:17:12 +01:00
Twinaphex eea07ea367 (COcoa GL/Cocoa Common) Refactor code for eventual splitting up
of cocoa_gl_ctx.m into two files
2021-01-18 15:41:30 +01:00
Twinaphex 4036cc42e0 fast_forward_skips and is_syncing should only be used for non-OSX 2021-01-18 14:51:03 +01:00
pjft 0a83817f25 Merge branch 'master' into dual-lightgun 2021-01-18 11:23:44 +00:00
jdgleaver eaf7451966 (.gitlab-ci.yml) Reduce all artefact expiration times to 1 day 2021-01-18 12:11:01 +01:00
Jamiras ca2c57a5a1 traverse list in reverse order in case items are removed by callback 2021-01-17 22:33:48 -07:00
twinaphex 3200d138b0 (Cocoa GL) Move variables 2021-01-18 06:02:32 +01:00
twinaphex dfa3d216f8 (Cocoa GL) Refactors/cleanups 2021-01-18 04:34:51 +01:00
twinaphex f6d35ee462 (iOS) Cleanups 2021-01-18 03:03:35 +01:00
twinaphex 82c751ead0 Remove unused glcontext_get_ptr 2021-01-18 02:05:29 +01:00
twinaphex 7bdbcfa2cc (CocoaGL) Cleanups 2021-01-18 01:57:03 +01:00
twinaphex 39a98d5dfc (Cocoa GL) Cleanups 2021-01-18 01:52:05 +01:00
Autechre d3eb9b61d5 Merge pull request #11898 from farmerbb/master
Android: remove module lists + bump version code
2021-01-18 01:04:15 +01:00
twinaphex 2670613f6c Don't use nativeScale/scale for OSX 2021-01-18 00:50:07 +01:00
Twinaphex 5a9598c238 get_backing_scale_factor - fix build 2021-01-18 00:30:58 +01:00
twinaphex 4117a4cbda Rewrite get_backing_scale_factor - stop depending on runtime selector
invocations
2021-01-18 00:25:36 +01:00
twinaphex 5c0aafe6e2 Simplify applicationDidFinishLaunching code for OSX 10.7 and up 2021-01-18 00:08:21 +01:00
Braden Farmer 92fa267f4e Android: remove module lists + bump version code 2021-01-17 15:43:19 -07:00
Autechre c506871208 Merge pull request #11897 from MrHuu/patch-8
(3DS) On error, only init gfx on salamander build
2021-01-17 16:46:42 +01:00
MrHuu 2633b3e310 (3DS) On error, only init gfx on salamander build
This prevents graphical issues if the gfx is already initialized.
Which should always be the case if called from a running core.
2021-01-17 15:44:35 +01:00
twinaphex 6ac08ec123 Make customized version of get_video_size for OSX 10.7 and up to
avoid selector grabbing
2021-01-17 05:39:03 +01:00
twinaphex e42f2b552f (COcoa GL context) Small cleanups 2021-01-17 05:22:29 +01:00
twinaphex 1e9f6f175e (OSX) Fix PowerPC build 2021-01-17 05:02:07 +01:00
Twinaphex f6833cf595 Remove unused variables 2021-01-17 00:12:29 +01:00
twinaphex 93b1fbbcdc (Apple) Header cleanups 2021-01-17 00:06:33 +01:00
twinaphex a9cd33ac56 Revert "Experiment on Apple"
This reverts commit 8769866290.
2021-01-16 23:54:31 +01:00
twinaphex 8769866290 Experiment on Apple 2021-01-16 23:45:06 +01:00
Twinaphex 7177a8e7d9 Remove unused variable 2021-01-16 23:05:37 +01:00
twinaphex 4d5126f71a Improve cocoagl_gfx_ctx_get_native_scale 2021-01-16 23:03:25 +01:00
twinaphex 6d39160de1 CLeanups 2021-01-16 22:36:03 +01:00
twinaphex a7bb200a1c (UI Cocoa) Cleanups 2021-01-16 22:22:16 +01:00
twinaphex 809b96e221 (UI CocoaTouch) Cleanups 2021-01-16 22:15:17 +01:00
twinaphex 225b851eb6 Cleanups 2021-01-16 22:04:11 +01:00
Twinaphex 1d4ff9bedd Take out HAVE_MENU ifdef in cocoa_common.h 2021-01-16 21:47:14 +01:00
twinaphex 284634dd1e Silence more implicit conversion warnings 2021-01-16 21:28:54 +01:00
twinaphex 0e929784b5 Cleanups 2021-01-16 21:19:59 +01:00
twinaphex 6e2a1895f6 Simplify code 2021-01-16 21:10:49 +01:00
twinaphex 41a8661bdf Silence more implicit conversions 2021-01-16 21:03:57 +01:00
twinaphex f4dc486a77 Silence more implicit conversion warnings 2021-01-16 20:55:17 +01:00
twinaphex dff8fbf879 Silence some implicit conversion warnings 2021-01-16 20:47:07 +01:00
twinaphex 757ea32782 Go back to CocoaView pointer in prototype 2021-01-16 20:37:56 +01:00
twinaphex 2299e3b1ab Silence implicit conversion warnings 2021-01-16 20:33:35 +01:00
twinaphex 5119a67b41 Simplify code 2021-01-16 20:17:27 +01:00
twinaphex 991f67a758 gfx_animation - simplify code 2021-01-16 20:15:56 +01:00
twinaphex 0946d06e82 (gfx_animation) Simplify code 2021-01-16 20:13:06 +01:00
twinaphex 9118b391eb Update 2021-01-16 20:07:08 +01:00
twinaphex 875cb06a93 (iOS) Fix signature on apple_gamecontroller_joypad_init 2021-01-16 20:05:53 +01:00
twinaphex 1b071f16f5 Silence implicit conversion warnings 2021-01-16 20:03:04 +01:00
twinaphex 9f44a4fcd9 Cleanups 2021-01-16 17:30:36 +01:00
twinaphex 552f973833 Cleanups/remove unused variables 2021-01-16 17:17:16 +01:00
twinaphex bc48080ee5 Remove unused variable 2021-01-16 17:05:28 +01:00
twinaphex 4e74a6f8b1 Attempt to fix build for iOS 2021-01-16 17:02:25 +01:00
twinaphex 1ea46ea171 (Unix) Fix build 2021-01-16 16:37:52 +01:00
Autechre 40b3e4c00f Merge pull request #11892 from jdgleaver/x11-mouse-grab-fix
(X11) Fix mouse input when mouse is grabbed
2021-01-16 16:15:16 +01:00
twinaphex 4c51e31b9d (Platform) Cleanups + add missing function pointer bind for Darwin 2021-01-16 16:14:03 +01:00
jdgleaver b1ee5a2421 (X11) Fix mouse input when mouse is grabbed 2021-01-16 13:57:25 +00:00
Autechre 0bba2d45d3 Merge pull request #11890 from fjtrujy/FixQuitRA
Removing power off irx compilation
2021-01-15 23:07:00 +01:00
Francisco Javier Trujillo Mata 384b88696a Removing power off irx compilation 2021-01-15 23:04:03 +01:00
Autechre 39e7533ca9 Merge pull request #11889 from fjtrujy/FixQuitRA
[PS2] Fix Quitting from RA
2021-01-15 21:22:44 +01:00
Francisco Javier Trujillo Mata c138135684 Removed not used poweroff library 2021-01-15 21:03:54 +01:00
Autechre e3bf61f85f Merge pull request #11878 from webgeek1234/master
android: Build native code with ndk r22
2021-01-15 17:28:03 +01:00
Autechre 695c149e75 Merge pull request #11884 from fjtrujy/ps2/addAudioMixer
Add audio mixer for PS2 platform
2021-01-15 15:12:17 +01:00
Francisco Javier Trujillo Mata c7b6cd9f7b Add audio mixer for PS2 platform 2021-01-15 15:11:17 +01:00
Autechre 85af4d14d7 Merge pull request #11882 from fjtrujy/ps2FolderIssue
[PS2] Fixed Folder creation issues
2021-01-15 14:35:04 +01:00
Francisco Javier Trujillo Mata 0dbd0fd492 Disable warning and solve an issue with the cwd 2021-01-15 14:19:27 +01:00
Autechre 6726538971 Merge pull request #11876 from myfreeweb/patch-1
Remove incorrect ifdef for Wayland on non-Linux - fix #10056
2021-01-14 19:01:01 +01:00
Autechre 6427f838a5 Merge pull request #11879 from fjtrujy/ps2/fixSalamanderCompilation
[PS2] Fix salamander compilation
2021-01-14 18:44:56 +01:00
Francisco Javier Trujillo Mata 0b484cb1d0 Fix salamander compilation 2021-01-14 18:23:47 +01:00
Aaron Kling 37a0c30dde android: Build native code with ndk r22 2021-01-14 10:17:38 -06:00
myfreeweb 65b1ae8a41 Remove incorrect ifdef for Wayland on non-Linux - fix #10056 2021-01-14 16:36:14 +03:00
Francisco José García García b483facc43 [VITA] Add Piglet to CI 2021-01-14 09:17:47 +01:00
Autechre 67ab9c4beb Merge pull request #11871 from fjtrujy/irxImprovements
Irx improvements
2021-01-13 22:36:38 +01:00
Francisco Javier Trujillo Mata 409f0ab022 Reduce time checking for unit 2021-01-13 19:54:04 +01:00
Francisco Javier Trujillo Mata 0a81313292 Disable CDFS for debug compilation 2021-01-13 19:54:04 +01:00
Francisco Javier Trujillo Mata 330f5d6b4a Remove some IRX modules not used, and use original name instead of symbolic links 2021-01-13 19:54:03 +01:00
Autechre cb087656dd Merge pull request #11870 from jdgleaver/rgui-rus
(RGUI) Add Russian language support
2021-01-13 16:36:24 +01:00
Autechre 61922dfde7 Merge pull request #11868 from jdgleaver/auto-game-focus
Add option to automatically enable 'game focus' mode when running/resuming content
2021-01-13 16:32:48 +01:00
Autechre 5d1173dc7e Merge pull request #11869 from farmerbb/master
Android: Use `mamearcade` core instead of `mame` in Play Store version
2021-01-13 16:32:08 +01:00
Braden Farmer bcd3c830ba Android: Use mamearcade core instead of mame in Play Store version 2021-01-13 08:06:50 -07:00
jdgleaver 1c591be8f1 Add option to automatically enable 'game focus' mode when running/resuming content 2021-01-13 15:00:36 +00:00
jdgleaver 3a6558c2f1 (RGUI) Add Russian language support 2021-01-13 10:00:51 +00:00
Autechre 036e6fb221 Merge pull request #11865 from schellingb/fix_winmm_midi_break
winmm_midi: Recover from MIDI messages not handled by the device
2021-01-12 21:04:14 +01:00
Autechre 666324df1d Merge pull request #11866 from farmerbb/master
Android: add Gradle task to output Play Store version code
2021-01-12 21:03:53 +01:00
Braden Farmer 7aac0582e3 Android: add Gradle task to output Play Store version code 2021-01-12 10:12:07 -07:00
Bernhard Schelling 4fcace9aed Recover from messages not handled by the device
When an underlying MIDI device does not understand/support a MIDI message (very common with sysex messages) it returns an error code.
With this fix MIDI output can continue gracefully even after an emulated game sends an unsupported message.
2021-01-13 02:07:21 +09:00
Autechre 0ce218e20a Merge pull request #11862 from Jamiras/cheevos_emu_cheat_hardcore_toggle
(cheevos) prevent hardcore toggle when emu-handled cheats are active
2021-01-12 16:31:15 +01:00
Autechre ba01aa5334 Merge pull request #11864 from jdgleaver/gitlab-linux-no-skel-config
(.gitlab-ci.yml) linux-x64/linux-i686: Remove redundant skeleton retroarch.cfg file from AppImage builds
2021-01-12 12:40:55 +01:00
jdgleaver 2fcb525a4c (.gitlab-ci.yml) linux-x64/linux-i686: Remove redundant skeleton retroarch.cfg file from AppImage builds 2021-01-12 11:24:23 +00:00
Jamiras 75fad11c27 prevent hardcore toggle when emu-handled cheats are active 2021-01-11 20:38:43 -07:00
Autechre 41981f62e1 Merge pull request #11857 from Ryunam/screenshot-notification-cleanup
Minor cleanup (screenshot notifications)
2021-01-09 21:31:23 +01:00
Ryunam d49f266424 Minor cleanup of screenshot notification options 2021-01-09 17:14:38 +01:00
Autechre 7450f049e7 Update index.html 2021-01-09 17:05:35 +01:00
Autechre e7c341331b Merge pull request #11855 from guoyunhe/crowdin
Fetch translations from Crowdin
2021-01-09 14:41:53 +01:00
Guo Yunhe 8ae3b50c94 Fetch translations from Crowdin 2021-01-09 12:04:24 +08:00
twinaphex 07db1bbfde Cut down on code duplication 2021-01-08 23:20:34 +01:00
Autechre d1d0212684 Merge pull request #11852 from Ryunam/refreshrate-notification
Add option to show/hide Refresh Rate notification
2021-01-08 18:09:49 +01:00
Ryunam c341aabdb4 Add option to show/hide Refresh Rate notification 2021-01-08 17:32:33 +01:00
Autechre 36b0ffd5e5 Merge pull request #11851 from jdgleaver/emscripten-memory
(Emscripten) Makefile.emscripten: Allow linker 'TOTAL_MEMORY' value to be set via command line
2021-01-08 16:01:41 +01:00
jdgleaver ddef98fe11 (Emscripten) Makefile.emscripten: Allow linker 'TOTAL_MEMORY' value to be set via command line 2021-01-08 14:52:52 +00:00
Autechre 0e6660a60b Merge pull request #11850 from jdgleaver/gitlab-linux-i686-qt
(.gitlab-ci.yml) linux-i686: Enable both Qt and non-Qt builds
2021-01-08 13:47:08 +01:00
jdgleaver cd1c896a18 (.gitlab-ci.yml) linux-i686: Enable both Qt and non-Qt builds 2021-01-08 12:32:14 +00:00
Autechre 7b2e2b5ffa Merge pull request #11849 from jdgleaver/qt-plugin-fix
Fix Qt plugin path detection when using Qt < 5.6.0
2021-01-08 12:11:54 +01:00
jdgleaver 1d33e0ee46 Fix Qt plugin path detection when using Qt < 5.6.0 2021-01-08 10:56:20 +00:00
Autechre 3530fe9c3f Merge pull request #11847 from gblues/gblues/wiiu-slow-startup
Remove the path_is_valid() call when loading textures
2021-01-08 10:12:53 +01:00
Nathan Strong 0e0fbb53f9 Remove the path_is_valid() call when loading textures
== DETAILS
The `path_is_valid()` call ends up invoking `stat()`, which is unpredictable.
It's practically free when implemented by an operating system (Linux, Windows),
but on embedded systems it can be problematic.

In the case of the Wii U, the stat() call actually ends up taking longer than
the file I/O. And the texture loading code already handles a "file not found"
case, so the stat() call ends up just being a waste of time.

Removing this reduces the texture load time from ~210-250ms down to 60-65ms
on average.
2021-01-07 21:06:07 -08:00
Braden Farmer 43b1bbed46 Android: fix crash on latest nightlies (non-Play Store) 2021-01-07 18:58:07 +01:00
Autechre 130617a327 Merge pull request #11845 from jdgleaver/gitlab-linux-x64-qt
(.gitlab-ci.yml) linux-x64: Enable both Qt and non-Qt builds
2021-01-07 18:11:08 +01:00
jdgleaver 72f17b3d30 (.gitlab-ci.yml) linux-x64: Enable both Qt and non-Qt builds 2021-01-07 17:02:11 +00:00
Autechre 6acbaf0bf2 Merge pull request #11844 from jdgleaver/gitlab-linux-i686
(.gitlab-ci.yml) Add linux-i686 target
2021-01-07 15:48:11 +01:00
jdgleaver fbdfec28b0 (.gitlab-ci.yml) Add linux-i686 target 2021-01-07 14:30:29 +00:00
Autechre f40644c901 Merge pull request #11782 from crystalct/master
Avoid crashes when a not implemented Pipeline is chosen in old platfo…
2021-01-07 09:37:57 +01:00
Autechre d935b392d9 Merge pull request #11839 from IAmBoring/boring1
Core run init failure forces return to menu
2021-01-07 09:21:33 +01:00
Autechre cada1f6ff0 Merge pull request #11840 from IAmBoring/boring2
Add Visual Studio 2019 version numbers
2021-01-07 09:20:56 +01:00
IAmBoring a11f1bd74f Add Visual Studio 2019 version numbers 2021-01-07 04:23:58 +00:00
IAmBoring 510bed6655 Core run init failure forces return to menu
Gracefully loads dummy core instead of running lots of unexpected bad behavior.
2021-01-07 03:38:27 +00:00
Autechre 11809bd365 Merge pull request #11837 from libretro/vita_gles
[VITA] Add support for Vita GLES2 (Piglet)
2021-01-06 21:38:44 +01:00
Autechre a2ac9fd05d Merge pull request #11836 from driver1998/uwp-vfs
[UWP] VFS: Use Win32 file APIs when possible, improves I/O perfomance
2021-01-06 21:28:01 +01:00
OsirizX b96a0c495a [VITA] Add support for Vita GLES2 (PIGLET) 2021-01-06 19:14:30 +01:00
Francisco José García García c28665e1bd [VITA] Add some types to .gitignore 2021-01-06 19:11:12 +01:00
GH Cao 19535330d2 [UWP] VFS: Use Win32 file APIs when possible 2021-01-07 00:14:21 +08:00
Autechre bf81df5b3b Merge pull request #11835 from jdgleaver/gitlab-emscripten
(.gitlab-ci.yml) Add Emscripten target
2021-01-06 15:50:24 +01:00
jdgleaver be1c7b8e4c (.gitlab-ci.yml) Add Emscripten target 2021-01-06 14:42:06 +00:00
Autechre bd405eb7c3 Merge pull request #11830 from IAmBoring/boring1
XAudio2 threaded creation
2021-01-06 14:39:24 +01:00
Autechre e1b2cba7ef Merge pull request #11831 from IAmBoring/boring2
Threaded audio - prevent callbacks when paused
2021-01-06 14:39:14 +01:00
Autechre b5df2d6bb1 Merge pull request #11834 from pcjco/pcjco-dist-cores-fix
Update dist-cores.sh
2021-01-06 00:49:27 +01:00
Autechre 6aeaf7cf16 Merge pull request #11833 from pcjco/pcjco-wii-fix
Some null pointer check
2021-01-06 00:35:23 +01:00
pcjco 70b3c01d91 Update dist-cores.sh 2021-01-06 00:18:46 +01:00
pcjco a33bcfead7 Some null pointer check
fix Wii version crash on load.
2021-01-06 00:03:31 +01:00
Autechre a9f98c1dcc Merge pull request #11832 from jdgleaver/gitlab-linux64-disable-qt
(.gitlab-ci.yml) linux-x64 target: Disable Qt support, due to dependency hell
2021-01-05 17:51:11 +01:00
jdgleaver 9e577eba92 (.gitlab-ci.yml) linux-x64 target: Disable Qt support, due to dependency hell 2021-01-05 16:44:15 +00:00
IAmBoring 88a1379053 XAudio2 threaded creation
COM initialization
2021-01-05 16:10:11 +00:00
IAmBoring 5d2c4e6868 Threaded audio - prevent callbacks when paused 2021-01-05 16:07:35 +00:00
Autechre 2c3f6f0882 Merge pull request #11828 from jdgleaver/gitlab-linux64-xenial-artefacts
(.gitlab-ci.yml) Use xenial-gcc9 build container + add missing artefacts
2021-01-05 12:49:20 +01:00
jdgleaver b5feb2d48b (.gitlab-ci.yml) Use xenial-gcc9 build container + add missing artefacts 2021-01-05 11:19:05 +00:00
Autechre fe848cae54 Merge pull request #11826 from valadaa48/oga_gfx_ogs_support
oga_gfx: support for OGS
2021-01-05 10:32:13 +01:00
Autechre 5c69132a04 Merge pull request #11825 from MrHuu/ctr_fix_error_applet
(3DS) Update error applet
2021-01-05 10:31:54 +01:00
Autechre 3c620c998d Merge pull request #11827 from valadaa48/drm_go2_ctx_ogs_support
drm_go2: Dynamic resolution support
2021-01-05 10:31:37 +01:00
valadaa48 e21784f9c4 drm_go2: Dynamic resolution support
- Remove hardcoded values for width and height and query from drm
  context instead
2021-01-04 19:01:59 -05:00
valadaa48 659fb73867 oga_gfx: support for OGS 2021-01-04 18:58:58 -05:00
MrHuu e6c035de7d (3DS) Update error applet 2021-01-04 20:15:28 +01:00
Autechre 55e730915c Merge pull request #11823 from farmerbb/patch-1
Android: use project directory path when parsing manifest
2021-01-04 18:32:00 +01:00
Braden Farmer 67c1bf33ba Android: use project directory path when parsing manifest 2021-01-04 10:23:54 -07:00
Autechre a8390477b8 Merge pull request #11820 from farmerbb/master
Android: switch non-Play Store variants back to targetSdkVersion 28
2021-01-04 07:45:59 +01:00
Autechre b5d03d9c20 Merge pull request #11819 from MrHuu/ctr_buildbot_url_fix
(3DS) Rework buildbot url
2021-01-04 04:15:42 +01:00
Braden Farmer 614f803638 Android: switch non-Play Store variants back to targetSdkVersion 28 2021-01-03 19:47:05 -07:00
MrHuu c4db0fa439 (3DS) Rework buildbot url 2021-01-04 03:31:24 +01:00
Autechre 44a600a00c Merge pull request #11815 from libretro/vita_hw
[VITA] Fixes for GL HW renderer
2021-01-04 00:03:02 +01:00
Francisco José García García 87ebd720ed [VITA] Fix bubble name 2021-01-03 23:41:14 +01:00
Autechre a967d22bd3 Merge pull request #11816 from farmerbb/master
Play Store: only generate symlinks for cores if on the available cores list
2021-01-03 22:42:00 +01:00
Braden Farmer 52e3939045 Android (Play Store): only generate symlinks for cores if on the available cores list 2021-01-03 09:52:53 -07:00
Francisco José García García 899ec9f9f4 [VITA] Disable depth test if needed 2021-01-03 17:31:18 +01:00
Francisco José García García d83dcba0dd [VITA] Fixes for GL HW renderer 2021-01-03 17:20:21 +01:00
Autechre 5d2b27499c Merge pull request #11814 from farmerbb/master
Play Store: implement biweekly auto-deploys
2021-01-03 07:57:57 +01:00
Braden Farmer d3ac2658a8 Play Store: implement biweekly auto-deploys 2021-01-02 23:49:51 -07:00
Autechre ac5c45f333 Merge pull request #11813 from libretro/revert-11811-xaudio
Revert "Windows: Fix multiple XAudio instances"
2021-01-03 06:48:33 +01:00
Autechre 9ef98928d2 Revert "Windows: Fix multiple XAudio instances" 2021-01-03 06:48:24 +01:00
Autechre 3c9fe5ebf5 Merge pull request #11811 from SimpleTease1/xaudio
Windows: Fix multiple XAudio instances
2021-01-03 06:02:01 +01:00
Autechre 5364d95a94 Merge pull request #11812 from SimpleTease1/menu
(Windows) MSVC Buildfix
2021-01-03 06:01:27 +01:00
SimpleTease 42d8e93171 (Windows) MSVC Buildfix 2021-01-03 04:57:05 +00:00
SimpleTease ef51cf4ee1 Windows: Fix multiple XAudio instances 2021-01-03 04:36:03 +00:00
Autechre 4c0ee0dcfc Merge pull request #11808 from schellingb/fix_winmm_midi_hang
Fix winmm midi driver hanging on content closing
2021-01-02 23:52:10 +01:00
Bernhard Schelling 8a1ca893f0 Fix winmm midi driver hanging on content closing
midiStreamStop can freeze the process when there has been a NOTE-ON message without a corresponding NOTE-OFF.
Just removing the call to midiStreamStop and letting the midiStreamClose below it do the entire stopping and closing fixes that.
2021-01-03 03:22:31 +09:00
Autechre bfaa6e16dd Merge pull request #11803 from sonninnos/led-win32-keyboard
LED win32 keyboard driver cleanup
2021-01-02 17:07:16 +01:00
Autechre 42f2e7e85e Merge pull request #11805 from MrHuu/ctr_upd_makefile_cores
(3DS) Add Snes9x ID / Assets
2021-01-02 17:06:05 +01:00
Autechre 598d27dcfe Merge pull request #11807 from schellingb/rhmap2
Add 32-bit key hash map rhmap
2021-01-02 17:05:34 +01:00
Autechre 780bfa7489 Merge pull request #11806 from MrHuu/ctr_server_url_default
(3DS) Server url reset default
2021-01-02 16:54:29 +01:00
Bernhard Schelling 9bea4831d7 Add 32-bit key hash map rhmap
Based on ex_hashmap32 in menu_explore.c, modify that to use the new rhmap
2021-01-03 00:52:25 +09:00
MrHuu 9e7facd011 (3DS) Add Snes9x ID / Assets 2021-01-02 16:04:33 +01:00
MrHuu fa8c7b4d3e (3DS) Server url reset default 2021-01-02 15:31:18 +01:00
sonninnos 054bf115ac LED win32 keyboard driver cleanup 2021-01-02 05:46:04 +02:00
Autechre 74d97cc1ca Merge pull request #11802 from farmerbb/farmerbb/fix_android_tv
Play Store: download cores at app install time on Android TV devices
2021-01-02 01:01:16 +01:00
Braden Farmer 4fbd787ede Play Store: install cores at download time on Android TV devices
Fixes issues with downloading cores on Android TV. On-demand module downloads are apparently unsupported on Android TV, so we need to fetch modules at install-time instead.
2021-01-01 16:47:17 -07:00
Autechre 74fcf85621 Merge pull request #11800 from tunip3/master
Add rescap for run full trust (needed to make broadFileSystemAccess work on Xbox)
2021-01-02 00:43:12 +01:00
Autechre 8747c01073 Merge pull request #11801 from MrHuu/ctr_cia_version
(3DS) Generate random cia version
2021-01-02 00:39:21 +01:00
MrHuu b37ccc7f6c (3DS) Generate random cia version 2021-01-02 00:26:42 +01:00
tunip3 8308bdb24b Add rescap for run full trust (needed to make broadFileSystemAccess work on Xbox) 2021-01-01 23:24:54 +00:00
Autechre a5f09f901d Update .gitlab-ci.yml 2021-01-01 19:42:05 +01:00
Autechre 1907563039 Update .gitlab-ci.yml 2021-01-01 18:57:24 +01:00
Autechre 6932a49135 Merge pull request #11789 from dmrlawson/fix-udev-rumble
Fix udev rumble
2021-01-01 18:32:23 +01:00
Autechre 2eb17050df Merge pull request #11799 from farmerbb/master
Android: CI updates + RetroArch Plus
2021-01-01 18:03:32 +01:00
Braden Farmer 101e623fdc Android: CI updates + RetroArch Plus 2021-01-01 08:30:13 -07:00
Autechre 18eb12215a Merge pull request #11796 from webgeek1234/master
Remove opengl32.dll from Windows Packaging
2021-01-01 04:27:21 +01:00
Aaron Kling 0e2337dbb2 gitlab-ci: windows: Do not package opengl32.dll
This utilizes mesa softpipe and prevents use of the target systems
hardware accelerated opengl.
2020-12-31 21:23:39 -06:00
Autechre 39b584e64d Merge pull request #11795 from farmerbb/patch-1
Android (Play Store): swap DOSBox-SVN core for DOSBox Pure
2021-01-01 00:26:16 +01:00
Braden Farmer 0ca62cfd98 Android (Play Store): swap DOSBox-SVN core for DOSBox Pure 2020-12-31 16:24:57 -07:00
Autechre 0b8b569075 Merge pull request #11794 from jdgleaver/gitlab-mxe-win-dll
(.gitlab-ci.yml) windows-x64: add redistributable dll files to artefacts
2021-01-01 00:24:35 +01:00
jdgleaver 47d95a61e6 (.gitlab-ci.yml) windows-x64: add redistributable dll files to artefacts 2020-12-31 23:09:12 +00:00
Autechre a0c27d0735 Update AndroidManifest.xml 2020-12-31 23:01:08 +01:00
Autechre 60308d4b37 Update AndroidManifest.xml 2020-12-31 23:00:54 +01:00
Autechre 293e085e53 Merge pull request #11793 from HyperspaceMadness/Shaders_Fix_False_Duplicate_Parameter_Bug
Shaders fix for duplicate parameters loading bug
2020-12-31 21:57:51 +01:00
Remi McGill 7a565d739d Shaders fix for duplicate parameters loading bug 2020-12-31 15:50:55 -05:00
Autechre 5f10db2c61 Update .gitlab-ci.yml 2020-12-31 16:41:05 +01:00
Autechre 9797ba9f27 Merge pull request #11743 from HyperspaceMadness/Shaders_Fix_Simple_Preset_Relative_Texture_Paths
Shaders Load Refactor and Fix Referenced Texture Loading
2020-12-31 16:13:20 +01:00
Autechre 5d42320aa7 Merge pull request #11785 from jdgleaver/gitlab-win-mxe
(.gitlab-ci.yml) Use MXE build container for windows-x64 builds (WIP)
2020-12-31 15:40:11 +01:00
Autechre 33cbc54ec4 Merge pull request #11788 from MrHuu/ctr_core_updates
(3DS) Enable core updater
2020-12-31 15:37:27 +01:00
jdgleaver 399b29ad3f (.gitlab-ci.yml) Use MXE build container for windows-x64 builds 2020-12-31 09:42:41 +00:00
David Lawson 0bdf574cfd udev_joypad: make rumble work
Rumble was not working for me. I learnt a bit about how evdev works and it seems like you need to set a replay which defines how long the effect is (previously we set it to 0). This means there's a maximum length to the rumble effect which feels wrong.

When we do `play.value = !!strength;` we're setting the number of times for the effect to repeat, which works fine because the effect stops when we set it to 0.

It doesn't feel quite right to me playing e.g. Goldeneye but I've not played on real hardware for a while.

I'm hoping someone is more familiar with evdev and can suggest a better approach.
2020-12-31 07:55:02 +00:00
David Lawson b0de18ea12 udev_joypad: some cleanup 2020-12-30 22:07:26 +00:00
MrHuu 2229657b12 (3DS) Enable core updater 2020-12-30 19:11:48 +01:00
Remi McGill 8d1b949c9c Shaders Fix Config Memory Leak 2020-12-30 11:02:59 -05:00
Autechre c01b2dea17 Merge pull request #11784 from Tatsuya79/patch-4
qt: attempt to fix memory leak in shader panel
2020-12-30 01:58:25 +01:00
Tatsuya79 2e52c9e284 qt: attempt to fix memory leak in shader panel 2020-12-30 01:11:17 +01:00
twinaphex c4dc28319f Remove obsolete headers 2020-12-30 00:22:31 +01:00
Autechre bd375468f3 Merge pull request #11780 from farmerbb/patch-2
Android: Sync versionCode with actual value in the Play Store
2020-12-29 18:26:51 +01:00
Autechre e16559f66f Merge pull request #11783 from MrHuu/ctr_enable_updater
(3DS) Enable online updater
2020-12-29 18:26:25 +01:00
MrHuu 25dd77a0f5 (3DS) Enable online updater
- set directory defaults
2020-12-29 17:44:59 +01:00
unknown ddcd4c6a1f Avoid crashes when a not implemented Pipeline is chosen in old platformse 2020-12-29 14:06:18 +01:00
Braden Farmer 46a1ed3a84 Android: Sync versionCode with actual value in the Play Store 2020-12-28 23:42:10 -07:00
Autechre ab7b4db9f2 Merge pull request #11779 from gblues/gblues/wiiu-container
change wiiu to use new wiiu build container
2020-12-29 07:02:30 +01:00
twinaphex 9c0f272591 Buildfix for PPC Mac 2020-12-29 06:50:52 +01:00
Nathan Strong a113507872 change wiiu to use new wiiu build container 2020-12-28 21:43:17 -08:00
twinaphex c9888eb442 (config_file.c) This can go 2020-12-29 06:32:43 +01:00
twinaphex c03e6c6c38 Put this behind Powerpc/powerpc64 ifdefs 2020-12-29 06:22:06 +01:00
Autechre b1d6cb8c24 Merge pull request #11778 from farmerbb/patch-4
Android: delete init_modules.sh
2020-12-29 05:56:26 +01:00
Braden Farmer e714d85860 Android: delete init_modules.sh
This will be moved to the packaging repo as it makes more sense to host it there.
2020-12-28 21:53:10 -07:00
Autechre 2fb16b5086 Merge pull request #11775 from Dwedit/localization_and_shortcut_keys_190
Win32 Menu Localization, Shortcut key display, support for Win32 Accelerators
2020-12-28 23:14:47 +01:00
Dwedit b0e150ba2d Fix Typo 2020-12-28 17:02:29 -05:00
Dwedit 217b6d2f9d Restored missing comments and fixes 2020-12-28 16:45:33 -05:00
Dwedit 34a31f8a1c ui_win32_application.c: Add support for accelerators to main win32 message loop
rarch.rc: Add accelerators for Open (Ctrl+O) and Fullscreen (Alt+Enter)
ui_win32_resource.h: Add accelerator resource ID definition
win32_common.c: Load accelerators, Localize Win32 menu items to current language, and display shortcut keys
2020-12-28 16:39:39 -05:00
Autechre b91204324d Merge pull request #11774 from Dwedit/msvc_project_file_change
MSVC2019 project: Set SDK version to 10.0 (latest version)
2020-12-28 22:32:04 +01:00
Dwedit 58561643e7 Set SDK version to 10.0 (uses latest version) 2020-12-28 16:28:37 -05:00
Autechre 1681872763 Merge pull request #11772 from fpscan/facebook-gaming
Facebook Gaming stream option
2020-12-28 21:04:09 +01:00
twinaphex f693d83723 (rhash to lrc_hash) Fix console builds 2020-12-28 20:24:55 +01:00
twinaphex 357b7d68f6 (libretro-common) Rename rhash to lrc_hash
(rcheevos) Rename rhash to rc_hash
2020-12-28 19:55:54 +01:00
twinaphex 71efd8ae6e Add powerpc64 defines 2020-12-28 15:45:53 +01:00
Ömercan Kömür 9fceafdcc0 fb-fix 2020-12-28 16:20:40 +03:00
Autechre 7b90da4af7 Update cocoa_common.m 2020-12-28 07:52:08 +01:00
twinaphex d5e96eed03 Cleanups 2020-12-28 07:33:42 +01:00
Autechre d8066e6a80 Merge pull request #11771 from farmerbb/patch-2
Add Android CI support
2020-12-28 07:25:06 +01:00
twinaphex c242f02528 Add HAVE_COMMAND and HAVE_NETWORK_CMD for Metal OSX 2020-12-28 07:00:14 +01:00
twinaphex 5a330c8cf2 (OSX) Add HAVE_COMMAND and HAVE_NETWORK_CMD 2020-12-28 06:59:40 +01:00
Braden Farmer 3ccd6739ba Add Android CI support 2020-12-27 22:43:07 -07:00
HyperspaceMadness f86dbfc5a2 Shaders Fix Referencing issue in QT 2020-12-27 20:32:43 -05:00
twinaphex 3b5bd7c63d Cleanup 2020-12-27 20:59:58 +01:00
Autechre 49e65869e2 Merge pull request #11768 from farmerbb/patch-1
Explicitly specify NDK version in build.gradle
2020-12-27 20:47:36 +01:00
Braden Farmer 47b92adf28 Explicitly specify NDK version in build.gradle
This prevents CI from redownloading the NDK on each build.
2020-12-27 12:35:43 -07:00
twinaphex 9ddc39af59 Buildfix 2020-12-27 20:01:41 +01:00
twinaphex b1af12efc9 Add more PSL1GHT ifdefs 2020-12-27 18:56:00 +01:00
Remi McGill 0c504906cb Shaders - Fixed a Reference Pathing Issue on QT 2020-12-27 12:47:47 -05:00
twinaphex 7145ec4793 Revert "Try to avoid objc_msgSend"
This reverts commit 0733fd41aa.
2020-12-27 18:05:45 +01:00
twinaphex 0733fd41aa Try to avoid objc_msgSend 2020-12-27 17:58:00 +01:00
twinaphex c3ba223fe2 Do away with objc_msgSend calls 2020-12-27 17:31:57 +01:00
twinaphex 4d4d839f05 Remove this from griffin.c 2020-12-27 16:49:35 +01:00
twinaphex f65ecf24f1 Go back to ObjC file 2020-12-27 16:49:05 +01:00
Autechre 3eb2ba9458 Merge pull request #11766 from jdgleaver/vita-gitlab-fix
(.gitlab-ci.yml) Vita: Add media directory to artefacts
2020-12-27 13:21:59 +01:00
jdgleaver 7a338feda9 (.gitlab-ci.yml) Vita: Add media directory to artefacts 2020-12-27 12:18:36 +00:00
Autechre ad1a56c463 Merge pull request #11765 from jdgleaver/ps2-gitlab-fix
(.gitlab-ci.yml) Fix: build-static-retroarch-ps2 'needs' build-static-retroarch-dummy-ps2
2020-12-27 12:59:34 +01:00
Francisco José García García b8b9eb2fc3 [VITA] Add media assets 2020-12-27 12:24:40 +01:00
jdgleaver 62960ca839 (.gitlab-ci.yml) Fix: build-static-retroarch-ps2 'needs' build-static-retroarch-dummy-ps2 2020-12-27 11:16:46 +00:00
HyperspaceMadness 0c526b6498 Shaders Load Refactor and Fix Referenced Texture Loading
Partial update to work with shaders directly

More Edits

More changes

more shader fixes

More Fixes Compiling, reference load still wrong

Added Feedback & things are working

Logging Fixes

Log Fix

More Fixes

Added Feedback Logging

Fixes for file pathing in Linux

Fix GLCore and Crash in QT Saving

Code Cleanup

Removed Unused Function filepath.c

Code Cleanup
2020-12-26 21:09:27 -05:00
Autechre 9edae2811d Merge pull request #11762 from Jamiras/cheevos_hc_pause
(cheevos) add confirmation submenu to hardcore toggle
2020-12-26 22:27:11 +01:00
Jamiras 5224e97481 add confirmation submenu to achievements hardcore toggle 2020-12-26 14:15:01 -07:00
Autechre d1c8c8e8b0 Merge pull request #11761 from fjtrujy/dummy-ps2
Add release to dummy PS2
2020-12-26 21:36:29 +01:00
Francisco Javier Trujillo Mata 34ebea8deb Add release to dummy PS2 2020-12-26 21:34:35 +01:00
Autechre 6dbb4cd1bf Merge pull request #11760 from fjtrujy/dummy-ps2
Add build-static-retroarch-dummy-ps2 to GitLab CI
2020-12-26 21:30:06 +01:00
Francisco Javier Trujillo Mata 3d33ec3ca6 Add build-static-retroarch-dummy-ps2 to GitLab CI 2020-12-26 21:21:51 +01:00
Autechre 257f1fc9f2 Merge pull request #11757 from sonninnos/keyboard-mapper
Keyboard device mapper rework
2020-12-26 07:17:46 +01:00
sonninnos 73feffc4d1 Keyboard device mapper rework 2020-12-26 04:44:54 +02:00
Autechre 9489a1d507 Merge pull request #11749 from libretro/revert-11747-runahead-instance-windows-fix
Revert "Runahead instance windows fix"
2020-12-24 16:41:35 +01:00
Autechre 1560641235 Revert "Runahead instance windows fix" 2020-12-24 16:41:23 +01:00
Autechre 6e8e87a785 Merge pull request #11748 from libretro/revert-11728-windows-long-paths
Revert "Windows long paths fix"
2020-12-24 16:40:26 +01:00
Autechre 9e6ee680b6 Revert "Windows long paths fix" 2020-12-24 16:40:15 +01:00
Autechre 2bd017bd76 Merge pull request #11747 from mpalomas/runahead-instance-windows-fix
Runahead instance windows fix
2020-12-24 12:48:20 +01:00
Autechre 8de8ebf201 Merge pull request #11745 from jdgleaver/wiiu-gitlab-packaging
(.gitlab-ci.yml) Add WiiU packaging artefacts
2020-12-24 12:02:35 +01:00
Autechre 4d0ab477d0 Merge pull request #11744 from webgeek1234/master
Android NDK R22 Build Fix
2020-12-24 12:02:19 +01:00
Michaël Palomas 28c9250ed2 Merge branch 'runahead-instance-windows-fix' of github.com:mpalomas/RetroArch into runahead-instance-windows-fix 2020-12-24 11:57:47 +01:00
Michaël Palomas 8a76fba78b Removed trailing backslash in Windows Temp path to fix runahead with second instance 2020-12-24 11:57:41 +01:00
Michaël Palomas f7f1a69ff9 Removed trailing backslash in Windows Temp path to fix runahead with second instance 2020-12-24 11:54:24 +01:00
jdgleaver 2069deea67 (.gitlab-ci.yml) Add WiiU packaging artefacts 2020-12-24 10:35:23 +00:00
Reid Kleckner e4b9311ac1 Remove glslang::pool_allocator::setAllocator
TPoolAllocator is not copy assignable, so this setter could never have
been used. After a recent change (878a24ee2), new versions of Clang
reject this code outright.
2020-12-23 20:51:55 -06:00
Autechre 83622eb494 Merge pull request #11740 from webgeek1234/master
android: update gradlew
2020-12-23 21:39:58 +01:00
Aaron Kling d2bf8ea999 android: update gradlew
Use gradle 6.7.1 and plugin 4.1.0.
2020-12-23 12:49:41 -06:00
Autechre 08b9c40728 Merge pull request #11739 from SimpleTease/ipv6
netplay: attempt ipv4 when ipv6 failure
2020-12-23 15:53:22 +01:00
Autechre b58793cf91 Merge pull request #11738 from SimpleTease/utf8
fopen_utf8: nullptr crashfix
2020-12-23 15:53:05 +01:00
Autechre 242ad14bd3 Merge pull request #11728 from mpalomas/windows-long-paths
Windows long paths fix
2020-12-23 15:52:41 +01:00
twinaphex 4072841c17 Silence warning 'unused function' 2020-12-23 12:56:04 +01:00
twinaphex e35354d60c Fix comma at end of enumerator list 2020-12-23 12:53:36 +01:00
Michaël Palomas 7e5174eb72 applied comments from PR: fixed comment style and moved variable declarations at the top 2020-12-23 09:44:31 +01:00
SimpleTease 1633652a63 netplay: attempt ipv4 when ipv6 failure 2020-12-23 04:17:05 +00:00
SimpleTease d2916dcd53 fopen_utf8: nullptr crashfix 2020-12-23 03:26:29 +00:00
Autechre 84d75783ea Merge pull request #11736 from SimpleTease/netplay_2
netplay: allocate crashfix
2020-12-23 03:29:02 +01:00
Autechre 4297fea46e Merge pull request #11737 from SimpleTease/netplay_1
Netplay: connection fixes
2020-12-23 03:26:40 +01:00
SimpleTease 033be6ca0a netplay: allocate crashfix
Handle no devices
2020-12-23 01:35:41 +00:00
SimpleTease badfbe0ccd Netplay: fixes 2020-12-23 01:13:53 +00:00
Autechre 50a6aca0bf Merge pull request #11735 from webgeek1234/master
android: retro_sleep build fix
2020-12-23 01:13:49 +01:00
Aaron Kling 57e3ab71d9 android: retro_sleep build fix 2020-12-22 17:29:26 -06:00
Autechre 5048693bca Merge pull request #11733 from gblues/gblues/wiiu-gitlab-ci
Add CI configuration for wiiu
2020-12-22 21:13:31 +01:00
Nathan Strong ac178886c0 Add CI configuration for wiiu
== DETAILS

Mirroring the Wii config, I've added a config for the Wii U.

== TESTING

I pushed to a branch on the Gitlab server and verified the CI runs
successfully.
2020-12-22 12:03:48 -08:00
Autechre 9895d4a9ed Merge pull request #11731 from alphanu1/patch-1
Fix undeclared compile error
2020-12-22 20:22:57 +01:00
alphanu1 9c39c7994b Fix undeclared compile error
Retroarch_data_h:2668:26: error: 'command_set_shader' undeclared here (not in function); do you mean 'command_get_ststus'?
    { "SET_SHADER",         command_set_shader,        "<shader path>" }
2020-12-22 17:42:22 +00:00
Michaël Palomas 5fb77796f0 forgot to include retro_miscellaneous.h for PATH_MAX_LENGTH 2020-12-22 15:47:30 +01:00
Autechre a1b4cced5b Merge pull request #11730 from jdgleaver/win-gitlab-packaging
(.gitlab-ci.yml) Add windows-x64 packaging artefacts
2020-12-22 15:02:02 +01:00
jdgleaver 5295ec22f7 (.gitlab-ci.yml) Add windows-x64 packaging artefacts 2020-12-22 13:54:46 +00:00
Autechre 64391f8e50 Merge pull request #11729 from jdgleaver/gitlab-packaging
(.gitlab-ci.yml) Add required packaging artefacts for libnx, psp, ctr, wii and ngc targets
2020-12-22 12:52:33 +01:00
jdgleaver 12ed3be07e (.gitlab-ci.yml) Add required packaging artefacts for libnx, psp, ctr, wii and ngc targets 2020-12-22 11:44:47 +00:00
Autechre 5fb24737d0 Merge pull request #11726 from SimpleTease/netplay_1
net_ifinfo: crashfix  (Windows)
2020-12-22 11:27:09 +01:00
Michaël Palomas adbfce14f2 Fixed issue with long paths > 260 chars on Windows 2020-12-22 10:27:45 +01:00
SimpleTease 03c5c240a6 net_ifinfo: crashfix (Windows)
get correct size from GetAdaptersAddresses
2020-12-22 02:48:57 +00:00
twinaphex 7dcfd7a038 retro_sleep buildfix 2020-12-21 21:11:59 +01:00
twinaphex 627b668da8 Another buildfix for retro_sleep 2020-12-21 21:06:54 +01:00
twinaphex 16bb56b7a2 Update 2020-12-21 21:04:31 +01:00
twinaphex 2ed59ea789 Turn this into macro 2020-12-21 20:25:18 +01:00
jdgleaver c3013906fb (OpenDingux) Add audio/video filters to .gitlab-ci.yml artifacts 2020-12-21 19:12:02 +01:00
twinaphex 8df5fe2a60 CLeanup 2020-12-20 16:48:52 +01:00
twinaphex 51f0d04569 Update 2020-12-20 16:41:44 +01:00
Autechre f4c4df039d Merge pull request #11720 from aliaspider/master
D3D12 fixes.
2020-12-20 08:21:40 +01:00
aliaspider 16f997172f (D3D12) allocate rt_view descriptors for feedback render targets too. 2020-12-20 08:08:04 +01:00
aliaspider bf2adda421 (D3D12) move D3D12SignalCommandQueue to d3d12_gfx_sync. 2020-12-20 07:13:11 +01:00
aliaspider 1681322ffc (D3D12) fix the D3D12GetCompletedValue function wrapper.
- a function wrapper shouldn't contain any NULL checks, and it should
return the original UINT64 value, not a boolean.
2020-12-20 07:08:33 +01:00
aliaspider b6544a71d7 (MSVC) add the DEBUG preprocessor definition to debug targets. 2020-12-20 07:05:46 +01:00
Autechre 2cc7118ec4 Merge pull request #11717 from bslenul/master
Build fix.
2020-12-19 18:42:57 +01:00
bslenul 602908f5c6 Build fix. 2020-12-19 18:30:10 +01:00
twinaphex 3743a47edd Remove obsolete ps3 references - use psl1ght instead 2020-12-19 15:36:07 +01:00
twinaphex 870707dbe8 Remove obsolete __CELLOS_LV2__ references - use PSL1GHT instead 2020-12-19 15:32:26 +01:00
Ömercan Kömür 6256b8ca2b first 2020-12-19 15:14:14 +03:00
Autechre 4e33e71a47 Merge pull request #11715 from jdgleaver/compresion-defaults
Ensure save file and playlist compression is disabled by default
2020-12-18 15:43:50 +01:00
jdgleaver b9e9b9eb4f Ensure save file and playlist compression is disabled by default 2020-12-18 14:36:10 +00:00
Autechre 6ba7f3c28b Merge pull request #11712 from SimpleTease/update
Emscripten: remove unused dependency (buildfix)
2020-12-18 05:58:25 +01:00
SimpleTease bb6a680890 Emscripten: remove unused dependency (buildfix) 2020-12-18 03:40:18 +00:00
twinaphex 7d313647ae (D3D11) Add flip model support - fallback to blit model for OSes
where flip model is not supported (windows 7 and earlier). Will add
a menu option later allowing the user to switch inbetween the two
2020-12-17 14:39:58 +01:00
twinaphex d6a0bdaa30 (D3D12) Increase this to 2048 - avoids D3D12 crash on startup 2020-12-17 09:41:05 +01:00
twinaphex 38ce3927ae (D3D10/11/12) Increase sprite capacity, we need this so that
the hardware rendered menu drivers don't glitch out
2020-12-17 08:31:06 +01:00
Autechre 8d1ca52da5 Merge pull request #11703 from 6lackmag3/patch-3
Update msg_hash_ru.c
2020-12-17 01:27:46 +01:00
Autechre b3282882d3 Merge pull request #11709 from sonninnos/key-remap-fix
Keyboard remapping fix pt2
2020-12-17 00:49:39 +01:00
sonninnos c18c4680b3 Keyboard remapping fix pt2 2020-12-17 00:39:57 +02:00
Francisco José García García 2c20788ba4 [PSP] [VITA] Add salamander to gitlab CI (#11707)
* [PSP] [VITA] Add salamander to gitlab CI

* [PSP] Fix build of salamander
2020-12-16 18:50:16 +01:00
6lackmag3 8da2563b87 Update msg_hash_ru.c 2020-12-16 02:01:05 +03:00
twinaphex 2a8024a71b (D3D10) Cleanups - create init_swapchain function 2020-12-15 23:05:58 +01:00
twinaphex 093dc30ffd Refactor d3d11_init_swapchain some more 2020-12-15 22:56:29 +01:00
Autechre 1fee67d51c Merge pull request #11700 from davidgfnet/betterwifi2
Fix wifi_enable setting, to store it across restarts
2020-12-15 21:26:04 +01:00
David Guillen Fandos 4aa3a0d666 Fix wifi_enable setting, to store it across restarts 2020-12-15 18:12:58 +01:00
twinaphex a1fd1d425c (D3D11) Split init swapchain code up into own function 2020-12-15 08:19:04 +01:00
twinaphex ad2502b645 (D3D11) Change this back 2020-12-15 08:09:48 +01:00
twinaphex 2d588ca4ef Simplify vulkan_create_texture 2020-12-15 08:00:22 +01:00
twinaphex d55ca599e0 Replace with macros 2020-12-15 07:28:39 +01:00
twinaphex cdca5d0afc Turn vulkan_copy_staging_to_dynamic into macro 2020-12-15 07:20:33 +01:00
twinaphex d70420a12d vulkan_copy_staging_to_dynamic - put sync texture to GPU
outside of the function
2020-12-15 07:01:00 +01:00
twinaphex 6b38a7916a (Vulkan) Simplify code 2020-12-15 06:19:48 +01:00
twinaphex d008cb14e2 Buildfix 2020-12-14 22:53:51 +01:00
Autechre bdc36765df Merge pull request #11692 from valadaa48/oga_software_fb
oga_gfx: implement RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER
2020-12-14 10:51:23 +01:00
valadaa48 bbb9c1d248 oga_gfx: implement RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2020-12-13 21:16:11 -05:00
twinaphex 0e1b980803 Move rarch_timer functions to retroarch_data.h and turn them into
macros
2020-12-13 22:37:42 +01:00
twinaphex 2e266e1577 Cleanups 2020-12-13 22:16:44 +01:00
twinaphex 572e263d20 Updates 2020-12-13 21:21:21 +01:00
Autechre 99032e2f4f Merge pull request #11690 from jdgleaver/rgui-cjk-update
(RGUI) Add support for CJK punctuation glyphs
2020-12-13 19:43:33 +01:00
Autechre 646eee823e Merge pull request #11689 from gouchi/patch-2
Update CHANGES.md
2020-12-13 19:40:18 +01:00
jdgleaver 74fff8dc62 (RGUI) Add support for CJK punctuation glyphs 2020-12-13 12:34:53 +00:00
gouchi b04e93f188 Update CHANGES.md
- Add Finnish language per #11666
2020-12-13 12:58:53 +01:00
Autechre 12dc69c501 Merge pull request #11666 from gouchi/finnish
intl: Add Finnish language
2020-12-12 21:45:06 +01:00
gouchi 5926f00b67 update missing part in msg_hash.c 2020-12-12 18:02:14 +01:00
Autechre 184d15bdd2 Merge pull request #11680 from jdgleaver/rzip-tool-fixes
RZIP command line tool fixes
2020-12-11 20:18:52 +01:00
Autechre 71ed4db45a Merge pull request #11681 from crystalct/master
Fix multipass shaders on PS3 - fix #11673
2020-12-11 20:18:35 +01:00
Autechre 301b0f6353 Merge pull request #11682 from jdgleaver/dingux-osd-cleanup
(OpenDingux/sdl_dingux_gfx) OSD font clean-up
2020-12-11 20:18:10 +01:00
jdgleaver f657344d85 (OpenDingux/sdl_dingux_gfx) OSD font clean-up 2020-12-11 17:33:41 +00:00
unknown 96a7db2451 Fix multipass shaders on PS3 2020-12-11 18:22:27 +01:00
jdgleaver e330b67003 RZIP command line tool: Use correct executable extension + silence warnings on Windows 2020-12-11 13:21:55 +00:00
jdgleaver 73c53b63bf RZIP command line tool fixes 2020-12-11 11:00:19 +00:00
Autechre 4c98be1aa8 Merge pull request #11677 from jdgleaver/rgui-cjk
(RGUI) Add support for CJK fonts
2020-12-10 23:47:24 +01:00
Autechre 7b214efe5a Merge pull request #11678 from davidgfnet/betterwifi2
Fix minor issues and a memleak
2020-12-10 23:46:44 +01:00
David Guillen Fandos 8b88f705b8 Fix minor issues and a memleak 2020-12-10 19:24:34 +01:00
jdgleaver 0f0ccbadc0 (RGUI) Add support for CJK fonts 2020-12-10 15:17:26 +00:00
Autechre e31605b9fa Merge pull request #11676 from schellingb/fix-unused-func-warning
Mark function possibly unused to suppress warning
2020-12-10 03:42:41 +01:00
Bernhard Schelling 3de2c290fe Mark function possibly unused to suppress warning
Add attribute to avoid the warnings "rbuf__grow' defined but not used [-Wunused-function]" (GCC/Clang) and "unreferenced local function has been removed" (MSVC).
2020-12-10 09:35:08 +09:00
twinaphex 22e966be5b Cleanups 2020-12-09 22:25:05 +01:00
twinaphex b6fd220c79 Cleanups 2020-12-09 22:23:07 +01:00
twinaphex a1b389565c Silence warnings on Dingux 2020-12-09 22:18:26 +01:00
twinaphex 7ce76679de Silence warnings for builds that don't have shader support 2020-12-09 22:11:06 +01:00
twinaphex c2a73a6921 remove unused variables 2020-12-09 22:06:02 +01:00
twinaphex c328b1f94a Put wifi behind HAVE_NETWORKING ifdefs 2020-12-09 22:03:23 +01:00
twinaphex 4db9f01ecb Take this function outside of the ifdef for shaders 2020-12-09 21:54:33 +01:00
Autechre dd05dcf3a2 Merge pull request #11675 from davidgfnet/betterwifi2
Add a proper WiFi menu, with Enable/Disable & Disconnect options
2020-12-09 21:35:59 +01:00
David Guillen Fandos ed7b3aa415 Add a proper WiFi menu, with Enable/Disable & Disconnect options
This also allows WiFi passwords to be remembered. The underlying
tool (connman) allows to store passswords (that's why it auto connects
whenever you boot a Lakka device), so we expose this so that the user
does not have to re-input the pass when connecting to a saved wifi.

Option to forget a password to come in a future PR, for now a password
is automatically forgotten if the Wifi connect operation fails (we assume
it fails due to password).

Changes the WiFi API to enable these features of course!
2020-12-09 20:20:48 +01:00
Autechre 0bb70902a8 Merge pull request #11671 from MrHuu/guard_threads
(3DS) guard threading
2020-12-09 02:49:51 +01:00
MrHuu 58cb2b6cc4 (3DS) guard treading 2020-12-09 00:48:45 +01:00
Autechre 70feaebc91 Merge pull request #11670 from sonninnos/nowinkey-option
(DINPUT+WINRAW) Option for disabling Windows hotkeys
2020-12-08 23:43:32 +01:00
Tony Jansson 75baed785e (DINPUT+WINRAW) Option for disabling Windows hotkeys 2020-12-09 00:03:40 +02:00
gouchi a7bdabd133 intl: Add Finnish language 2020-12-05 22:10:29 +01:00
twinaphex 625f0d4fc6 Improve conditional 2020-12-05 04:54:22 +01:00
twinaphex 9688554921 (D3D11) Use SWAP_EFFECT_*_DISCARD from now on fallback PC codepath 2020-12-05 04:48:11 +01:00
Autechre 8375055b88 Merge pull request #11663 from jdgleaver/gitlab-ngc
Add NGC build to .gitlab-ci.yml
2020-12-04 18:59:52 +01:00
jdgleaver dff84b48f3 Add NGC build to .gitlab-ci.yml 2020-12-04 17:35:31 +00:00
Autechre 2ba2e00f19 Merge pull request #11661 from jdgleaver/gitlab-wii
Add Wii build to .gitlab-ci.yml
2020-12-04 13:37:29 +01:00
jdgleaver 42848bc4d7 Add Wii build to .gitlab-ci.yml 2020-12-04 11:01:34 +00:00
Autechre 6565fc9e9c Merge pull request #11660 from davidgfnet/betterwifi2
Improving Wifi API and connman implementation
2020-12-04 04:08:38 +01:00
Autechre ddaa355659 Merge pull request #11659 from Oschowa/jack_fixes
(Audio/JACK) Fix non-blocking write and switch to deinterleaving in the process function with a single jack ringbuffer.
2020-12-04 02:24:43 +01:00
David Guillen Fandos 091f6e6354 Improving Wifi API and connman implementation
This sets the ground for more PRs to come. Clean up how scanning and listing
SSID works, and adds attributes to the newtworks.
Frontend will be able to know which networks are "remembered" and thus
require no password to re-connect.

For now scans are performed every 2 minutes or on demand if no networks found
(either for real or in the "cache").
2020-12-04 02:18:03 +01:00
Oschowa 78bb0de6e9 (Audio/JACK) Deinterleave in the process callback
This allows us to avoid the extra copy to the deinterleave buffer and
lets us use only a single jack ringbuffer.
2020-12-04 00:18:23 +01:00
Oschowa 604eb32c35 (Audio/JACK) Fix non-blocking write
Previously we would wait on the condition variable even in the non-blocking case.
This improves fast-forward performance massively and brings JACK in line
with other backends in that regard.
2020-12-04 00:09:40 +01:00
Autechre 22042f2351 Merge pull request #11657 from Jamiras/discord_fix
fix discord rich presence
2020-12-03 20:24:59 +01:00
Autechre db2cd8f9e7 Merge pull request #11656 from davidgfnet/betterwifi
Small Lakka fixes (fd leak and build issue)
2020-12-03 18:44:47 +01:00
Autechre d81316bda0 Merge pull request #11655 from jdgleaver/gitlab-dingux-mips32
(.gitlab-ci.yml) Use correct architecture label for OpenDingux build
2020-12-03 18:01:23 +01:00
Jamiras 76074a76fe fix discord rich presence 2020-12-03 09:42:40 -07:00
David Guillen Fandos 2eb3b93a15 Fix fd leak in wifi status function 2020-12-03 16:38:34 +01:00
David Guillen Fandos 192d131020 Fix Lakka build in !switch !oga2 platforms 2020-12-03 16:13:22 +01:00
jdgleaver 1017cfa4df (.gitlab-ci.yml) Use correct architecture label for OpenDingux build 2020-12-03 14:11:22 +00:00
jdgleaver cc08a971e3 (3DS) Minor makefile clean-ups required for new build infrastructure 2020-12-03 12:48:18 +01:00
jdgleaver 4ddba05d91 [3DS/.gitlab-ci.yml] Replace 'salamander' references with 'dummy' 2020-12-02 18:25:58 +01:00
Autechre 1f87250965 Merge pull request #11652 from jdgleaver/gitlab-ctr
Add CTR build to .gitlab-ci.yml
2020-12-02 17:29:01 +01:00
jdgleaver 067e0063bb Add CTR build to .gitlab-ci.yml 2020-12-02 15:59:16 +00:00
Autechre 8747d78778 Merge pull request #11650 from jdgleaver/dingux-custom-toolchain
OpenDingux: Enable compilation with custom toolchains
2020-12-02 14:24:59 +01:00
jdgleaver 105eeeb881 OpenDingux: Enable compilation with custom toolchains 2020-12-02 12:07:52 +00:00
Autechre bf83a5d514 Merge pull request #11649 from jdgleaver/dingux-net-deps
OpenDingux: Remove unnecessary defines/dependencies from RG350 build
2020-12-02 11:26:23 +01:00
jdgleaver b7740d068e OpenDingux: Remove unnecessary defines/dependencies from RG350 build 2020-12-02 09:49:37 +00:00
Autechre fab0eed15e Merge pull request #11644 from jdgleaver/rzip-tool
(libretro-common) Add command line tool for creating/extracting RZIP files
2020-12-01 14:18:50 +01:00
Autechre df2d716147 Merge pull request #11645 from jdgleaver/dingux-typo
(sdl_dingux_joypad) Fix typo
2020-12-01 14:18:33 +01:00
jdgleaver 88254d8402 (sdl_dingux_joypad) Fix typo 2020-12-01 11:28:31 +00:00
jdgleaver 734cb2ff31 (libretro-common) Add command line tool for creating/extracting RZIP files 2020-12-01 11:05:11 +00:00
Autechre 34190ccbe4 Merge pull request #11642 from HyperspaceMadness/Shaders_Fix_Crash_change_num_shader_passes_in_UI
Shaders Fix Crash change num shader passes in UI
2020-12-01 09:49:54 +01:00
HyperspaceMadness e98a8ce591 Shaders Fix Crash change num shader passes in UI 2020-11-30 19:30:15 -05:00
Autechre 4d2eb18a47 Merge pull request #11640 from HyperspaceMadness/Shaders_SaveAs_Fix_And_Better_Reference_Handling
Shaders_SaveAs_Fix_And_Better_Reference_Handling
2020-11-30 12:31:59 +01:00
HyperspaceMadness 06e32982db Shaders_SaveAs_Fix_And_Better_Reference_Handling 2020-11-29 19:16:38 -05:00
Autechre cf854fc67b Merge pull request #11633 from jdgleaver/dingux-mplt
OpenDingux: Add '-mplt -mno-shared' compiler optimisation flags
2020-11-28 16:14:14 +01:00
jdgleaver 00546df273 OpenDingux: Add '-mplt -mno-shared' compiler optimisation flags 2020-11-27 15:13:04 +00:00
Autechre 1f6cf5748e Merge pull request #11624 from jstine35/assert_macro_code_quality
Improved code quality of retro_assert macro
2020-11-27 15:40:36 +01:00
Autechre 68c6092e07 Merge pull request #11625 from davidgfnet/brightness
Streamlining brightness control in Retroarch (for Lakka)
2020-11-27 15:39:54 +01:00
Autechre fe430fd78f Merge pull request #11627 from TylerLoch/master
Apple Silicon Build Support
2020-11-26 23:34:20 +01:00
David Guillen Fandos a442696b71 First attempt at adding proper brightness
Supports Switch and OGA
2020-11-26 19:22:05 +01:00
jdgleaver e447b0f45a Add OpenDingux build to .gitlab-ci.yml 2020-11-26 14:36:02 +01:00
Tyler Loch 44e5fd9a35 Apple Silicon Build Support 2020-11-25 18:05:45 -06:00
Tyler Loch ffbcd92e2d Apple Silicon Build Support
Disable ARM NEON optimizations for audio, as used in libretro-common/audio/conversion
Allows for building Apple Silicon (arm64) and arm64/x86_64 fat-binary versions of RetroArch for macOS.
2020-11-25 15:22:49 -06:00
Jake Stine ad12cc089c Improved code quality of retro_assert macro
Macros without do{}while() wrapping behave more like regular C expressions. The macro can now be nested/embedded inside of other similar compound statements and conditionals without introducing syntax errors. This change has no risk of negatively impacting existing code.
2020-11-25 10:16:19 -08:00
Autechre 4dcc556ec9 Merge pull request #11617 from guoyunhe/crowdin
Fetch translations from Crowdin
2020-11-25 16:57:14 +01:00
Autechre 54eb22dd2b Merge pull request #11606 from Scrumplex/feat-run-media
Also show /run/media or /run/media/$USER in drives list
2020-11-25 16:04:52 +01:00
Autechre 1cbc26ac9e Merge pull request #11614 from HyperspaceMadness/Shader_Multi-Level_Referenced_Presets
Shader_Multi-Level_Referenced_Presets
2020-11-25 15:47:31 +01:00
Autechre 94534be4a2 Merge pull request #11618 from davidgfnet/master
Make get_lakka_version available in all builds
2020-11-25 15:47:20 +01:00
Autechre debb9c6b0a Merge pull request #11622 from Jamiras/cheevos_lboard_spacing
(cheevos) calculate leaderboard widget spacing based on video resolution
2020-11-24 20:50:20 +01:00
Autechre 8ddd246420 Merge pull request #11619 from konistehrad/fix-sunxi
Fix missing division sign in sunxi_gfx.c
2020-11-24 20:50:04 +01:00
Autechre cd7a1fcf0f Merge pull request #11616 from jdgleaver/rewind-granularity-fix
Prevent 'Rewind Frames' from being set to '1' incorrectly on load content
2020-11-24 20:49:47 +01:00
Jamiras e6a7961dd5 calculate spacing based on video resolution 2020-11-24 07:42:50 -07:00
Conrad Kreyling 9cfe50ddd3 Fix missing division sign in sunxi_gfx.c
Same fix as https://github.com/libretro/RetroArch/commit/71c031099b3c39ba1f800889b6fcc9d8c955adb5 for the same problem, just in a different file.
2020-11-23 13:31:16 -05:00
David Guillen Fandos f5693f15e7 Make get_lakka_version available in all builds
This simplifies a bit the code, for some new lakka patches to come.
2020-11-23 18:44:24 +01:00
Guo Yunhe 6d57819ade Fetch translations from Crowdin 2020-11-23 22:54:07 +08:00
jdgleaver 8d8ccf45db Prevent 'Rewind Frames' from being set to '1' incorrectly on load content 2020-11-23 14:01:18 +00:00
HyperspaceMadness f0c4343cb9 Removed extra printf left behind 2020-11-22 19:39:34 -05:00
HyperspaceMadness abb2d06ce9 Shader_Multi-Level_Referenced_Presets 2020-11-22 19:10:08 -05:00
Autechre 96af31bce7 Merge pull request #11609 from HyperspaceMadness/Shader_Increase_Max_Textures_Line
Shader_Increase_Max_Textures_Line
2020-11-22 18:30:17 +01:00
Autechre 06279b68f2 Merge pull request #11600 from davidgfnet/master
Adding savestate garbage collector for autoincrement stavestates
2020-11-22 17:11:08 +01:00
HyperspaceMadness 35b49f3b82 Shader_Increase_Max_Textures_Line 2020-11-22 09:50:24 -05:00
Sefa Eyeoglu e3dc9a7e1d feat: also show /run/media or /run/media/$USER in drives list 2020-11-22 14:25:46 +01:00
David Guillen Fandos 1c5099051c Adding savestate garbage collector for autoincrement stavestates
As some issues indicate (#6195 #10471 #11008 #6861) there's an issue with
the autoincrement save slot feature: slot index will increase and very old
saves won't be deleted.

This commit adds support to delete old save states with a user defined
save state limit (global). Instead of wrapping around the slot counter
it will simply delete the oldest save, since it is simpler.

For now there's a limit of one deletion per save, which ensures a user
cannot delete many saves by accident if they set the limit too low.
2020-11-22 13:26:23 +01:00
Autechre 865303c501 Merge pull request #11605 from SimpleTease/patch-1
ibxm: update to 20191214
2020-11-22 02:18:22 +01:00
SimpleTease 8017ecd2b8 ibxm: update to 20191214
- Fix music playback (sample skipping)
- Add more platforms
- Fix Mr. Boom music
2020-11-21 20:30:19 +00:00
Autechre 175205c1e6 Merge pull request #11604 from crystalct/master
Fix Ps3 build.
2020-11-21 03:44:30 +01:00
crystalct fe0fcb7617 Fix Ps3 build. 2020-11-21 00:34:30 +01:00
Autechre 6205a0c2bc Merge pull request #11599 from jdgleaver/upscale_1_5x-filter
Add Upscale1.5x video filter
2020-11-20 18:14:51 +01:00
jdgleaver c2f1b9f336 Add Upscale1.5x video filter 2020-11-20 15:22:09 +00:00
Autechre 8921d31247 Merge pull request #11595 from libretro/dir_check_defaults_only_once
Only attempt to call dir_check_defaults once per runtime session
2020-11-20 04:32:31 +01:00
twinaphex 3ac75c043e Jdgleaver improvements 2020-11-20 03:55:55 +01:00
Autechre 2430736a5d Merge pull request #11596 from schellingb/stdstring-signed-fix
Fix crash in ctype style char macros with signed inputs
2020-11-19 21:51:40 +01:00
Bernhard Schelling c594e8801d Fix ctype style char macros with signed inputs
UTF8 byte codes are commonly stored in signed char types thus these macros could be called with negative numbers. Avoid invalid memory access by clamping the input values to 0 ~ 255 with an unsigned char cast.
2020-11-19 23:42:05 +09:00
Autechre fbd04ea76e Merge pull request #11590 from Cpasjuste/crt_switch_timings
(KMS/DRM) add support for custom hdmi_timings / modes
2020-11-19 13:45:15 +01:00
cpasjuste e31182b005 (KMS/DRM) cleanup custom video mode loading (crt_switch_timings) 2020-11-19 10:21:18 +01:00
Autechre 307a9ac01c Update CHANGES.md 2020-11-19 07:21:23 +01:00
Autechre 380e878c66 Merge pull request #11552 from sonninnos/turbo-single-hold
Add hold mode for turbo fire 'Single Button'
2020-11-19 07:21:03 +01:00
Autechre 06805ace7e Update CHANGES.md 2020-11-19 07:20:01 +01:00
Autechre 3f1d25f1f7 Merge pull request #11576 from HyperspaceMadness/Shader_Preset_Remove_parameters_line
Shader_Preset_Remove_parameters_line
2020-11-19 07:18:49 +01:00
Autechre f7e9dd651f Merge pull request #11594 from davidgfnet/master
Add support for 64 buttons in udev gamepads
2020-11-19 07:11:54 +01:00
twinaphex 9ee1e33e09 Only attempt to call dir_check_defaults once per runtime session
when calling the frontend environment get callback - we want to
look at the 'default' directories, and then if they don't yet exist,
auto-create them so we can store files in them.
2020-11-19 07:10:22 +01:00
twinaphex 02607e6c34 Simplify dir_check_defaults 2020-11-19 05:38:04 +01:00
David Guillen Fandos bf48757a2e Add support for 64 buttons in udev gamepads
It seems only 16 were only really supported anyway due to the
usage of BITS_COPY16_PTR (which only copies 16 bit states)?
2020-11-18 19:29:46 +01:00
Autechre 4382772a79 Merge pull request #11593 from jdgleaver/dingux-rumble2
OpenDingux: Optimise rumble interface
2020-11-18 18:48:39 +01:00
jdgleaver de146545af OpenDingux: Optimise rumble interface 2020-11-18 17:21:38 +00:00
twinaphex c8f92d2247 Revert "(UWP/Small stack size platforms) UWP is short on stack size, these"
This reverts commit 0a3306a7b4.
2020-11-18 16:48:31 +01:00
cpasjuste 485513ba61 (KMS/DRM) correctly handle custom modes polarity, implement aspect ratio support from hdmi_timings 2020-11-18 15:21:03 +01:00
cpasjuste 0082806620 (KMS/DRM) add support for custom modes from hdmi timings 2020-11-18 11:34:44 +01:00
cyee bcc7dde90d VITA: proper handling of boot params 2020-11-18 08:22:39 +01:00
twinaphex 3a0c5cc666 (UWP) Fix regression in dylib 2020-11-18 01:44:32 +01:00
Autechre 973c707462 Merge pull request #11585 from Jamiras/cheevos_no_core_support
(cheevos) show unsupported core message when viewing achievement list for unsupported core
2020-11-18 00:57:47 +01:00
Autechre ef4ccc7ea7 Merge pull request #11588 from Tatsuya79/patch-3
qt: add simple shader option
2020-11-18 00:57:27 +01:00
Autechre c6b5e07903 Merge pull request #11586 from jdgleaver/dingux-rumble
OpenDingux: Add rumble support
2020-11-18 00:56:06 +01:00
Tatsuya79 67fb743d29 qt: add simple shader option 2020-11-18 00:55:57 +01:00
jdgleaver e582cf9f1d OpenDingux: Add rumble support 2020-11-17 16:13:37 +00:00
twinaphex 0a3306a7b4 (UWP/Small stack size platforms) UWP is short on stack size, these
big local char array variables were causing crashes - put them on
heap
2020-11-17 07:17:32 +01:00
Jamiras 8ed0fcb5ce show unsupported core message when viewing achievement list for unsupported core 2020-11-16 21:38:02 -07:00
twinaphex eb41efa9dd Move more global state code to retroarch_data.h 2020-11-17 01:47:47 +01:00
twinaphex b9b1639759 Cleanups - split up global state to retroarch_data.h 2020-11-17 01:34:20 +01:00
twinaphex 8937794d8a Create separate header file for forward declarations in retroarch.c 2020-11-16 23:59:03 +01:00
twinaphex 451a49f6a1 Create video_driver_restore_cached 2020-11-16 23:49:13 +01:00
twinaphex c9997ce520 Cleanup video_driver_find_driver some more 2020-11-16 23:46:08 +01:00
twinaphex 988515d76d video_driver_find_driver - cleanup 2020-11-16 23:27:17 +01:00
twinaphex b6d88b749b Cleanup bsv_movie_init - use return value 2020-11-16 22:37:04 +01:00
twinaphex a8c7a4fcff Simplify video_driver_find_driver 2020-11-16 22:25:09 +01:00
twinaphex 274d01d0e8 Fix bug in hw_render_context_name 2020-11-16 21:43:01 +01:00
twinaphex 4a2183ee41 (GET_PREFERRED_HW_RENDER) Set callback_type even when it returns false
because video driver switching is disabled, fixes PCSX2 D3D11 issues
2020-11-16 21:38:20 +01:00
Autechre e2e59a0625 Merge pull request #11579 from aliaspider/master
(D3D11) fix slang shaders
2020-11-16 21:08:51 +01:00
twinaphex 58efde6c2e Add more logging for GET_PREFERRED_HW_RENDER and SET_HW_RENDER 2020-11-16 21:04:55 +01:00
Autechre 17333de0e3 Merge pull request #11583 from Alcaro/patch-11
Fix backwards condition in socket blocking behavior
2020-11-16 18:42:08 +01:00
Alcaro ac2fe3896e Fix backwards condition in socket blocking behavior
Fixes #11557
2020-11-16 18:28:37 +01:00
Autechre 0d2b9fe68c Merge pull request #11577 from libretro/remove_wk
[VITA] Remove old threading workaround
2020-11-15 21:53:03 +01:00
aliaspider c6b77f6c62 (D3D11) get the hwrender texture format from the view desc
the format set in the texture desc isn't necessarily the same as the
view format.
2020-11-15 15:07:53 +01:00
aliaspider b3134fc05a (D3D11) fix slang shaders 2020-11-15 13:04:24 +01:00
Francisco José García García c5f2375254 [VITA] Remove pthread workaround 2020-11-15 10:23:58 +01:00
Francisco José García García e943ac262f [VITA] Remove old threading workaround 2020-11-15 09:41:37 +01:00
aliaspider 595174cd4b update .gitignore
- user folders.
- qtcreator project files.
2020-11-15 06:03:35 +01:00
HyperspaceMadness deb8e2b88c Shader_Preset_Remove_parameters_line 2020-11-14 21:23:18 -05:00
Autechre 7eb349b561 Merge pull request #11563 from libretro/remove_deps
[VITA] Remove vitaGL and vitaShark from deps dir
2020-11-14 17:01:26 +01:00
Francisco José García García e78c8448c9 [VITA] Remove vitaGL and vitaShark from deps dir 2020-11-14 09:57:40 +01:00
Francisco José García García 0705650c18 [VITA] Fix vitaGL merging 2020-11-14 09:11:42 +01:00
aliaspider b7d3efc503 (D3D11) rename D3D11SetState to D3D11SetRasterizerState. 2020-11-14 04:29:44 +01:00
Autechre 4d961b0970 Merge pull request #11561 from Rinnegatamante/switches
Don't realloc video buffer when unnecessary.
2020-11-13 14:57:11 +01:00
Rinnegatamante c04d9d62db Don't realloc video buffer when unnecessary. 2020-11-13 14:55:40 +01:00
Tony Jansson 278ddc64ed Add hold mode for turbo fire 'Single Button' 2020-11-13 15:44:32 +02:00
Francisco José García García 1358e33fb0 Merge pull request #11560 from libretro/update_vitagl
Update vitagl
2020-11-13 14:43:51 +01:00
frangarcj 046fab9ddd Merge commit '169ad6fa52457a67975bfe4491a0412b5069d822' 2020-11-13 14:33:48 +01:00
frangarcj 169ad6fa52 Squashed 'deps/vitaGL/' changes from 81403e2..34bc720
34bc720 Added more hbs to the vitaGL showcase section.
9904e7f Added GL_TEXTURE_COMPRESSION_HINT support.
bf5a136 Run clang-format.
65c509e Fix for HAVE_SHARK=2 build crashing when compiling a shader.
2b263af Added support for non GL_RGBA textures to the DXT compressor.
9c963ab Exposing internal gxm surface addresses.
778c67b Properly set texture parameters scope to mimic GL.
cda15fc Added sanity check to framebuffer pointer.
45fa81b Properly reserving texture id 0.
38c8715 Added return value to vglBindPackedAttribLocation.

git-subtree-dir: deps/vitaGL
git-subtree-split: 34bc7201f3929203b0e549633dfaae26fd09fe8e
2020-11-13 14:29:36 +01:00
Autechre 4cb0958849 Merge pull request #11559 from sonninnos/winraw-key-mods
(WINRAW) Keyboard mods fix
2020-11-13 06:06:58 +01:00
Tony Jansson f497608055 (WINRAW) Keyboard mods fix 2020-11-13 04:25:07 +02:00
twinaphex cc5fdb326b (UWP) Don't default to XMB by default 2020-11-13 00:10:47 +01:00
Autechre c3e9593022 Merge pull request #11558 from jdgleaver/rumble-comment
Clarify usage of 'RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE' callback
2020-11-12 18:05:55 +01:00
jdgleaver cef6707304 Clarify usage of 'RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE' callback 2020-11-12 16:47:35 +00:00
Autechre fcd3be15b0 Merge pull request #11545 from Jamiras/cheevos_not_logged_in
differentiate between no achievements for a set and not being logged in
2020-11-12 01:51:47 +01:00
Autechre f502abf166 Merge pull request #11550 from sonninnos/turbomode-fix
Refresh turbo button selection in 'Single Button'
2020-11-12 01:51:31 +01:00
Autechre 458c52099a Merge pull request #11553 from jdgleaver/video-filter-optimisations
Video filter optimisations
2020-11-12 01:49:39 +01:00
jdgleaver 5fb8861d34 Video filter optimisations 2020-11-11 17:00:09 +00:00
Autechre a80b40fb8a Merge pull request #11354 from HyperspaceMadness/Shader_Save_Load
Shader save load
2020-11-11 15:46:42 +01:00
Tony Jansson e5c6032d37 Refresh turbo button selection in 'Single Mode' 2020-11-11 15:08:09 +02:00
twinaphex c3bbc763ff (MSVC) Buildfixes 2020-11-11 00:59:00 +01:00
HyperspaceMadness 5008ac6eb0 Merge branch 'master' into Shader_Save_Load 2020-11-10 17:05:23 -05:00
Autechre 01fcb7f138 Merge pull request #11548 from sonninnos/dinput-winkey
(DINPUT) Prevent Win-key from opening Start Menu
2020-11-10 22:13:58 +01:00
Tony Jansson 793ac441d1 (DINPUT) Prevent Win-key from opening Start Menu 2020-11-10 17:34:26 +02:00
Jamiras f51e372477 differentiate between no achievements for a set and not being logged in 2020-11-09 20:18:31 -07:00
Autechre 64ef2fb824 Merge pull request #11543 from sonninnos/dinput-modkeys
(DINPUT) Simultaneous shift sticky fix
2020-11-09 23:39:21 +01:00
Tony Jansson eca9c452d8 (DINPUT) Simultaneous shift sticky fix 2020-11-09 21:20:46 +02:00
Autechre 4093fb71f0 Merge pull request #11544 from sonninnos/keyboard-remap-fix
Keyboard remapping fix
2020-11-09 20:00:09 +01:00
Autechre 18c94ab067 Merge pull request #11542 from jdgleaver/normal4x
Add Normal4x video filter
2020-11-09 17:30:21 +01:00
jdgleaver cd1b2cea76 Add Normal4x video filter 2020-11-09 16:21:47 +00:00
Autechre 8c629522fa Merge pull request #11541 from jdgleaver/database-fix
Fix database scans
2020-11-09 17:05:49 +01:00
jdgleaver 54ce950591 Fix database scans 2020-11-09 14:31:53 +00:00
Autechre 8401e898cc Merge pull request #11540 from jdgleaver/config-include-override
(config_file) Enable saving of changed parameters when '#include' directives are used
2020-11-09 14:47:46 +01:00
Tony Jansson c3f3ac3dc1 Keyboard remapping fix 2020-11-09 15:22:41 +02:00
jdgleaver 317ad3181d (config_file) Enable saving of changed parameters when '#include' directives are used 2020-11-09 11:18:49 +00:00
Autechre 3693db2451 Merge pull request #11536 from cy33hc/master
VITA: fix crash when boot params is missing
2020-11-08 19:56:08 +01:00
twinaphex 7c2fda77f8 (Discord) Cleanups 2020-11-08 19:27:34 +01:00
twinaphex 27dc500ed1 (Discord RPC) Cleanups 2020-11-08 18:49:20 +01:00
twinaphex e58cb34970 Remove ifdef and make this the default for now - and add TODO/FIXME note 2020-11-08 18:31:12 +01:00
Autechre 6b7157b65a Merge pull request #11537 from crystalct/master
fix segmentation fault on PS3 when scan directory
2020-11-08 18:29:28 +01:00
Autechre db4dd845ad Merge pull request #11538 from HyperspaceMadness/Shaders_improve_message_for_textures_not_found
Shaders_improve_message_for_textures_not_found
2020-11-08 18:28:44 +01:00
HyperspaceMadness e6ee8818af Shaders_improve_message_for_textures_not_found 2020-11-08 12:21:09 -05:00
unknown be6d1841d5 fix segmentation fault on PS3 when scan directory 2020-11-08 16:06:00 +01:00
cyee 1541303574 fix code review comment 2020-11-08 01:15:59 -08:00
Autechre 8ababb3973 Merge pull request #11535 from aliaspider/master
improve handling of arabic and persian text.
2020-11-08 09:43:40 +01:00
aliaspider c85e09ddad improve handling of arabic and persian text. 2020-11-08 04:47:08 +01:00
cyee 9e9e9af8dd VITA: fix crash when boot params is missing 2020-11-07 14:03:12 -08:00
Autechre 64c0abdf0c Merge pull request #11528 from HyperspaceMadness/Increase_Shader_Parameter_Count_to_512
Increase_Shader_Parameter_Count_to_512
2020-11-07 17:35:30 +01:00
Autechre 664e6fa526 Merge pull request #11531 from Oschowa/alsa_float_detection
(Audio/ALSA) Fill hw_params configuration space before trying to detect float format.
2020-11-07 12:26:55 +01:00
Autechre 16e5131d29 Merge pull request #11529 from libretro/revert-11526-master
Revert "VITA: fix crash when started with missing boot params"
2020-11-07 10:02:08 +01:00
Autechre 4b182446e9 Revert "VITA: fix crash when started with missing boot params" 2020-11-07 10:01:56 +01:00
HyperspaceMadness a5e57aa74d Increase_Shader_Parameter_Count_to_512 2020-11-06 22:42:15 -05:00
Autechre bbf6fea1e4 Merge pull request #11527 from crystalct/master
fix segmentation fault on PS3 when Load State
2020-11-07 03:50:05 +01:00
Autechre a840157c63 Merge pull request #11525 from Ryunam/runahead-toggle-hotkey
Add Run-Ahead Toggle hotkey with notifications
2020-11-07 03:49:21 +01:00
Autechre 239e460fc2 Merge pull request #11524 from jdgleaver/rxml-mem-leak
(RXML) Fix memory leak
2020-11-07 03:49:09 +01:00
Autechre 5e15abc935 Merge pull request #11526 from cy33hc/master
VITA: fix crash when started with missing boot params
2020-11-07 03:48:47 +01:00
twinaphex 762275b794 Buildfix 2020-11-07 03:42:54 +01:00
unknown 26559d635e fix segmentation faulf on PS3 when Load State 2020-11-07 01:42:58 +01:00
Oschowa 8058735cdb (Audio/ALSA) Fill hw_params configuration space before trying to detect
float format.
Otherwire detection will always fail.
2020-11-06 23:09:42 +01:00
cyee 186cae258d fix crash when started with missing boot params 2020-11-06 13:23:53 -08:00
Ryunam f3aaf24219 Add Run-Ahead Toggle hotkey with notifications 2020-11-06 21:39:11 +01:00
jdgleaver 5c50d2f389 (RXML) Fix memory leak 2020-11-06 17:40:32 +00:00
HyperspaceMadness fd240f9a32 Shader Save Load Cleanup and UI Rename 2020-11-04 10:05:46 -05:00
HyperspaceMadness 1185df5f39 Shader Save & Load Fixes params not being loaded 2020-11-03 23:12:59 -05:00
Autechre f37d38bcd4 Merge pull request #11181 from dankcushions/gles31_32
GLES 3.1 and 3.2 build parameters, and corresponding context checks.
2020-11-04 04:58:24 +01:00
twinaphex 5c87abe639 Buildfix cheevos 2020-11-04 03:37:42 +01:00
Autechre ec9fbdf21c Merge pull request #11511 from farmerbb/master
[Android] Move to targetSdkVersion 29
2020-11-03 20:24:42 +01:00
Autechre a025835abb Merge pull request #11516 from Tatsuya79/patch-2
fix string_split_to_qt
2020-11-03 16:30:06 +01:00
Tatsuya79 f77e18ede0 fix string_split_to_qt 2020-11-03 16:15:37 +01:00
HyperspaceMadness f6e35420bc Simple Shader Save Cleanup 2020-11-02 21:07:20 -05:00
Braden Farmer f9b3eb892b Update Travis config for new Android targetSdkVersion 2020-11-01 20:55:26 -07:00
Braden Farmer aa20e3b513 [Android] Move to targetSdkVersion 29 2020-11-01 20:38:23 -07:00
twinaphex c9b7122a08 Add git_version switch - to disable Git version, do
./configure --disable-git_version
2020-11-02 03:07:56 +01:00
twinaphex 00e840e99d (Qt) Avoid QString::split - version incompatibilities 2020-11-02 00:18:09 +01:00
twinaphex 3fdf93a273 Update libretro-common 2020-11-01 17:22:32 +01:00
Autechre 1d0c75a3d0 Merge pull request #11510 from rsn8887/vita_scaling
[VITA] Default menu scale 1.5x to improve readability
2020-11-01 16:49:28 +01:00
rsn8887 a7e3850878 [VITA] Default menu scale 1.5x to improve readability 2020-11-01 09:31:42 -06:00
HyperspaceMadness 70bf90c5d8 Shader_Preset_Simple_Save_Cleaned_2020_11_01 2020-11-01 09:18:40 -05:00
twinaphex a2a58147e7 Update libretro-common 2020-10-31 06:22:10 +01:00
Autechre 4f140d448c Merge pull request #11504 from jdgleaver/dingux-ff
OpenDingux: Fix frozen video when enabling fast forward
2020-10-29 18:16:49 +01:00
jdgleaver 3481437b29 OpenDingux: Fix frozen video when enabling fast forward 2020-10-29 15:50:12 +00:00
Autechre 7388ceea05 Merge pull request #11502 from schellingb/discord-rpc_rjson
Replace rapidjson parser/writer in discord-rpc with rjson
2020-10-29 10:45:55 +01:00
Bernhard Schelling f6f8d3e235 Replace rapidjson parser/writer in discord-rpc with rjson 2020-10-29 16:55:23 +09:00
Autechre c52a22d839 Merge pull request #11500 from sonninnos/remaps-without-content
Allow loading core remaps without content
2020-10-29 04:56:10 +01:00
Autechre 8d0963735f Merge pull request #11497 from justinweiss/3ds-rotation
[3DS] Allow sideways screen rotation
2020-10-29 04:55:52 +01:00
Tony Jansson 7a2153f053 Allow loading core remaps without content 2020-10-29 02:23:43 +02:00
twinaphex a38bd6d71a (UWP) Buildfix 2020-10-28 19:16:27 +01:00
Autechre e377129ca9 Merge pull request #11498 from sonninnos/x11-grab-redux
(X11) Mouse grab redux
2020-10-28 16:58:16 +01:00
Tony Jansson 0a3520130b (X11) Mouse grab redux 2020-10-28 17:51:36 +02:00
Justin Weiss 91c695ac52 [3DS] Allow sideways screen rotation 2020-10-27 21:13:19 -07:00
twinaphex cdc64be112 (UWP) Buildfix 2020-10-28 02:28:15 +01:00
twinaphex 10f395df25 Silence warning 2020-10-28 02:22:02 +01:00
Autechre f401419c2a Merge pull request #11493 from sonninnos/mouse-grab-fixes
Mouse grab fixes
2020-10-27 20:50:26 +01:00
Autechre 929c31cfcf Merge pull request #11496 from sonninnos/x11-mouse-grab
(X11) Mouse grab fix
2020-10-27 20:50:14 +01:00
Tony Jansson dd07ff3a66 (X11) Mouse grab fix 2020-10-27 20:41:36 +02:00
Tony Jansson 58cb0286a8 Mouse grab fixes 2020-10-27 04:59:14 +02:00
Autechre 75abb44975 Merge pull request #11490 from barbudreadmon/gl_context_switching_v2
allow glcore for every cores using gl
2020-10-26 18:03:49 +01:00
Autechre e494821917 Merge pull request #11491 from jdgleaver/dingux-icon-name
OpenDingux: Update desktop entry name/comment
2020-10-26 18:02:51 +01:00
jdgleaver 34e5a9655f OpenDingux: Update desktop entry name/comment 2020-10-26 15:24:46 +00:00
barbudreadmon 1de6fc479e allow glcore for every cores using gl 2020-10-26 13:08:43 +01:00
Autechre a2ac81b747 Merge pull request #11486 from schellingb/translation_service_rjson
Replace custom JSON parser/writer in translation service with rjson
2020-10-26 08:03:34 +01:00
Bernhard Schelling cc1937a3af Fix possible output corruption in rjson
Was possible when translation service was adding a base64 encoded string with a length less than 1536 characters.
Introduced in commit c20b01e9e1.
2020-10-26 10:44:04 +09:00
Autechre 02f740e821 Merge pull request #11488 from justinweiss/3ds-free-smaller-blocks
[3DS] Free memory in smaller blocks when exiting
2020-10-26 01:59:10 +01:00
Justin Weiss 082f83a08e [3DS] Free memory in smaller blocks when exiting
This works around an occasional kernel panic when freeing larger
blocks.
2020-10-25 16:06:28 -07:00
Autechre ce14fef217 Merge pull request #11481 from valadaa48/oga_gfx_surface_alignment
oga_gfx: use 32bit aligned surface and other cleanups
2020-10-25 17:32:33 +01:00
Bernhard Schelling c20b01e9e1 Replace custom JSON parser/writer in translation service with rjson 2020-10-25 21:43:30 +09:00
Autechre a16784b7c3 Merge pull request #11484 from guoyunhe/crowdin-20201025
Fetch translations from Crowdin
2020-10-25 02:41:25 +02:00
Guo Yunhe 6438f068d5 Fetch translations from Crowdin 2020-10-25 01:27:14 +08:00
twinaphex ee474b4feb Add missing string.h header include 2020-10-24 17:01:55 +02:00
Autechre 4f22bf3058 Merge pull request #11482 from libretro/vitagl_texture
[VITA] Fix name collision
2020-10-24 12:57:33 +02:00
Francisco José García García e649617297 [VITA] Fix name collision 2020-10-24 10:27:33 +02:00
valadaa48 82ce3ae632 oga_gfx: use 32bit aligned surface and other cleanups 2020-10-23 23:34:31 -04:00
Autechre ccbff758b4 Merge pull request #11478 from sonninnos/ui-menu-reorder
Reorganize User Interface menu
2020-10-24 01:34:20 +02:00
Autechre d9af8ea9ec Merge pull request #11480 from jdgleaver/scale2x-refactor
Refactor Scale2x video filter (crash fix + slight performance improvement)
2020-10-24 01:33:41 +02:00
jdgleaver feb3bd0794 Refactor Scale2x video filter (crash fix + slight performance improvement) 2020-10-23 23:43:23 +01:00
Tony Jansson 52c4062750 Reorganize User Interface menu 2020-10-23 18:55:32 +03:00
Autechre 4cf0ee273d Merge pull request #11477 from jdgleaver/dingux-makefile
OpenDingux: Reduce retroach binary size
2020-10-23 17:29:54 +02:00
jdgleaver a4b114462e OpenDingux: Reduce retroach binary size 2020-10-23 16:14:15 +01:00
twinaphex 079919b88f Add more conditionals 2020-10-23 04:48:15 +02:00
twinaphex e4ee73bfdf Add HAVE_CHEEVOS ifdefs 2020-10-23 04:44:33 +02:00
Autechre 6b3789513f Merge pull request #11476 from Jamiras/cheevos_core_options_blacklist
(cheevos) core options blacklist
2020-10-23 02:43:05 +02:00
Autechre 9b58163a0e Merge pull request #11474 from jdgleaver/ai-service-fixes
AI Service fixes
2020-10-22 17:38:55 +02:00
jdgleaver 3e52f318d5 AI Service fixes 2020-10-22 15:59:26 +01:00
Autechre 07571f7c22 Merge pull request #11471 from sonninnos/mouse-grabbing
Mouse grab improvements
2020-10-22 10:57:56 +02:00
Autechre ddef65f626 Merge pull request #11472 from sonninnos/disable_menu-fix
DISABLE_MENU final fix
2020-10-22 08:11:00 +02:00
Tony Jansson da3f7d7d70 DISABLE_MENU final fix 2020-10-22 03:44:05 +03:00
Tony Jansson f98fc6de9e Mouse grab improvements 2020-10-22 00:49:31 +03:00
Autechre db9b18bc03 Merge pull request #11469 from sonninnos/disable_menu-fix
DISABLE_MENU fix
2020-10-21 22:43:41 +02:00
Tony Jansson 2dd03cc0d2 DISABLE_MENU fix 2020-10-21 23:34:32 +03:00
Autechre f129731b41 Merge pull request #11468 from sonninnos/label-tweak
US msg label tweaks
2020-10-21 22:30:24 +02:00
Tony Jansson 081ebba417 US msg label tweaks 2020-10-21 18:25:38 +03:00
Autechre 81cfb8b07d Merge pull request #11467 from jdgleaver/menu-state-slot-cap
Cap 'State Slot' drop-down list to a maximum of 1000 (+Auto) entries
2020-10-21 14:14:25 +02:00
jdgleaver 3df204d506 Cap 'State Slot' drop-down list to a maximum of 1000 (+Auto) entries 2020-10-21 11:32:33 +01:00
Jamiras 2291590d12 allow CSV of valid options 2020-10-20 20:58:34 -06:00
Autechre 179bc894ec Merge pull request #11464 from sonninnos/cli-closing
Add option for quitting on close content
2020-10-20 21:53:40 +02:00
Autechre 0b6c8243ff Merge pull request #11465 from sonninnos/nitpicks
Minor command_event nitpicks
2020-10-20 21:53:06 +02:00
Tony Jansson 041b6811f4 Minor command_event nitpicks 2020-10-20 22:02:18 +03:00
Tony Jansson 46d516f066 Add option for quitting on close content 2020-10-20 21:45:03 +03:00
Autechre 89ddb5c314 Merge pull request #11462 from jdgleaver/api-audio-latency
Add API extension for overriding frontend audio latency
2020-10-20 18:52:03 +02:00
Jamiras f58130bb64 disable achievement hardcore mode when certain core options are enabled 2020-10-20 10:37:05 -06:00
jdgleaver af6c2d6969 Add API extension for overriding frontend audio latency 2020-10-20 15:37:34 +01:00
Autechre e195aa3b3d Merge pull request #11458 from jdgleaver/remove-audio-filter
Add 'Remove DSP Plugin' menu entry
2020-10-19 17:40:20 +02:00
jdgleaver a02fadeb94 Add 'Remove DSP Plugin' menu entry 2020-10-19 11:33:15 +01:00
Autechre 775ea737f2 Merge pull request #11457 from jdgleaver/hide-shader-delay
Hide 'Auto-Shader Delay' menu setting when shaders are unavailable
2020-10-19 12:24:00 +02:00
jdgleaver 4e2696e12d Hide 'Auto-Shader Delay' menu setting when shaders are unavailable 2020-10-19 10:19:50 +01:00
Autechre f626abacd7 Merge pull request #11454 from sonninnos/config-defaults
Clean vs reset configuration matching redux
2020-10-18 19:15:59 +02:00
Tony Jansson 39b194d306 Clean vs reset configuration matching redux 2020-10-17 22:15:49 +03:00
Autechre 088f4a97ba Merge pull request #11453 from libretro/revert-11448-config-defaults
Revert "Clean vs reset configuration matching"
2020-10-17 19:02:40 +02:00
Autechre 4fd92ec667 Revert "Clean vs reset configuration matching" 2020-10-17 19:02:28 +02:00
twinaphex 2f5ae397c2 Revert "Add HAVE_XMB ifdefs"
This reverts commit 9aa395ecce.
2020-10-17 19:00:58 +02:00
twinaphex f42bcf978c Revert "Add HAVE_XMB ifdefs here"
This reverts commit 0dfbf669df.
2020-10-17 19:00:48 +02:00
twinaphex 0dfbf669df Add HAVE_XMB ifdefs here 2020-10-17 18:50:00 +02:00
twinaphex 9aa395ecce Add HAVE_XMB ifdefs 2020-10-17 18:40:32 +02:00
Autechre aa04d3ccdd Merge pull request #11451 from jdgleaver/api-audio-buffer-status
Add API extension for cores to monitor frontend audio buffer occupancy
2020-10-17 17:56:11 +02:00
jdgleaver 4961252a7a Add API extension for cores to monitor frontend audio buffer occupancy 2020-10-17 15:06:03 +01:00
twinaphex 549b72c7c8 Attempt to fix builds for 3DS 2020-10-17 12:42:44 +02:00
Autechre 3cdd21e67e Merge pull request #11447 from libretro/vitashark
Update VitaGL to latest master
2020-10-17 12:34:45 +02:00
Autechre 07e4c9673e Merge pull request #11448 from sonninnos/config-defaults
Clean vs reset configuration matching
2020-10-17 12:34:27 +02:00
Francisco Javier Trujillo Mata a16f3d2f7c Add bootstrap before compilation for PSP 2020-10-17 00:42:46 +02:00
Francisco Javier Trujillo Mata 45d2e93834 FIX typo for PSP compilation 2020-10-17 00:22:18 +02:00
Tony Jansson 1825f52353 Clean vs reset configuration matching 2020-10-17 00:09:06 +03:00
Francisco José García García 971a2a394e [VITA] Fix VitaGL symbol changes 2020-10-16 20:29:17 +02:00
Francisco José García García c44e06c7d8 Merge commit '8838992085f3d5d8d5a2b5ab80aad72b5cc69a5f' 2020-10-16 20:24:44 +02:00
Francisco José García García 8838992085 Squashed 'deps/vitaGL/' changes from 2934af8af0..81403e2751
81403e2751 Fix error requiring HAVE_SHARK to be enabled to build. (#45)
58551e1f52 Added possibility to change runtime shader compiler optimization flags.
77ab50a7b1 Added GL_BGR and GL_BGRA texture formats support.
0ac2793bcf Fix error in texture wrapping options. (#42)
0d2110ac7b Improvements to GL buffer support. (#41)
cf86149a85 Added proper compressed texture support. (#40)
8b0a0f735a Unbinded textures and texture units concepts.
1b04851efc Added glUniform2i and glUniform2f implementations.
9a65397ef6 Properly checking for uniform locations existence.
91c557f35d Added support for GL_SHORT attribute types for shaders.
3237fd3fe3 Added vglTexImageDepthBuffer function.
f58b3818f2 Typo fix on mag filter setting.
ee11f7e1d0 Added vglHasRuntimeShaderCompiler function.
3596242f73 Add PowerVR texture compression (PVRTC) support (#39)
2ae694df4b Added support for mipmaps filtering.
af7804b44c Added vglGetGxmTexture implementation.
54b1df4ca2 Removed unused arguments.
7c2ed742ee Allow to call vglBind*Location funcs with wrong param names.
8be84ff698 Fixed RGB565 color conversion.
234ff57f65 Properly setting a single stream with packed attributes.
d3b28a5e32 Fix for correct vglBindAttribLocation behaviour.
46e72d3564 Use a single stream for packed attributes.
72a39315e9 Properly dealing with missing attrs in glGetUniformLocation.
a6269ce574 Added TEXUNIT1 support for custom shaders.
824d43073e Resetting custom shaders uniforms only when invalidated.
d242570161 Minor fix in glShaderSource.
bc28bd946d Added glGetShaderInfoLog implementation.

git-subtree-dir: deps/vitaGL
git-subtree-split: 81403e2751c4dc28cf17cc89a5ab053eb2c5af67
2020-10-16 20:24:43 +02:00
Francisco Javier Trujillo Mata 68e4ae5dd1 Add PSP compilation for gitlab (#11446)
* Add PSP compilation for gitlab

* Add variable to define the number of cores used
2020-10-16 18:49:43 +02:00
Autechre e78bc1c985 Merge pull request #11445 from sonninnos/menu-visibilities
Add remaining settings menu visibilities
2020-10-16 03:46:57 +02:00
twinaphex ba6d575d78 Cleanup 2020-10-16 01:07:04 +02:00
Tony Jansson 9902ad0b49 Add remaining settings menu visibilities 2020-10-16 01:57:34 +03:00
twinaphex b1967d649c Cleanup 2020-10-16 00:34:35 +02:00
twinaphex 2fb60e9510 Cleanup 2020-10-16 00:24:59 +02:00
Francisco Javier Trujillo Mata bd1d64e1c3 Add PS2 compilation for PS2 2020-10-15 19:00:29 +02:00
twinaphex 5f8c270d4c Make update_time_callback a part of the animation struct 2020-10-15 08:35:37 +02:00
twinaphex a7f4e534ed Cleanup 2020-10-15 07:09:01 +02:00
twinaphex 24392446af Assume HAVE_THREAD_ATTR cannot be defined for Emscripten 2020-10-15 06:40:37 +02:00
twinaphex a3da521083 Cleanup get_user_language function 2020-10-15 06:17:57 +02:00
twinaphex e3972aff31 Turn variable const 2020-10-15 06:12:26 +02:00
twinaphex f066b944e8 Move rewind manager state variable to p_rarch 2020-10-15 06:04:20 +02:00
twinaphex a69b7cb063 Buildfix for Qt 2020-10-15 05:31:21 +02:00
twinaphex 44b7234756 Move cheat_manager and state_manager to root folder 2020-10-15 05:29:20 +02:00
twinaphex e703607e4f Cleanup 2020-10-15 04:58:38 +02:00
Autechre 74f4cd823f Merge pull request #11441 from sonninnos/savestate-logging
Savestate logging cleanup
2020-10-15 04:49:55 +02:00
Tony Jansson 6918b4b5cb Savestate logging cleanup 2020-10-15 03:54:53 +03:00
Autechre c319357573 Merge pull request #11440 from sonninnos/keyboard-fixes
(DINPUT+WINRAW) Keyboard fixes
2020-10-14 23:32:17 +02:00
Tony Jansson c2e8752395 (DINPUT+WINRAW) Keyboard fixes 2020-10-14 21:23:06 +03:00
twinaphex e8a7195a46 Rename gfx_timer_start to gfx_animation_timer_start 2020-10-14 07:26:24 +02:00
twinaphex 379bd80cda Get rid of gfx_animation_ctl 2020-10-14 04:40:20 +02:00
twinaphex fd17661e02 Cleanups 2020-10-14 04:15:42 +02:00
twinaphex b6039b1638 Cleanups 2020-10-14 04:05:32 +02:00
twinaphex 7c48e77bcd Get rid of getter functions 2020-10-14 02:33:15 +02:00
twinaphex ac03578617 Remove some getter functions 2020-10-14 02:24:18 +02:00
twinaphex 992e780407 Get rid of gx_timer_kill 2020-10-14 02:09:39 +02:00
twinaphex 6e09eada2d Cleanups 2020-10-14 01:02:22 +02:00
twinaphex 8802712ae7 Cleanups 2020-10-14 00:46:38 +02:00
Autechre c030e47f73 Merge pull request #11368 from barbudreadmon/glcore_context_switching
Glcore context switching
2020-10-13 22:13:14 +02:00
twinaphex 564e5f4aff Cleanup 2020-10-13 02:13:23 +02:00
Autechre 11406e07e8 Merge pull request #11438 from libretro/vita_memory
[VITA] Workaround: Increase memory threshold
2020-10-12 20:03:01 +02:00
Francisco José García García 085e592761 [VITA] Workaround: Increase memory threshold 2020-10-12 19:24:49 +02:00
Autechre 4951247979 Merge pull request #11436 from jdgleaver/dingux-frame-width
OpenDingux: Ensure SDL surface width is a multiple of 16 when using 'sdl_dingux' gfx driver (crash/glitch fix)
2020-10-12 17:24:27 +02:00
jdgleaver 6094e2c32a OpenDingux: Ensure SDL surface width is a multiple of 16 when using 'sdl_dingux' gfx driver (crash/glitch fix) 2020-10-12 12:16:44 +01:00
twinaphex c01e8d52a5 Small cleanups to vulkan_create_texture 2020-10-12 01:53:21 +02:00
twinaphex a11a0eae77 (Vulkan) Style nits 2020-10-12 01:36:50 +02:00
twinaphex 5c76ccbe4a Cleanups 2020-10-12 01:26:51 +02:00
twinaphex a6eaac2a84 Get rid of some static code analysis warnings 2020-10-12 00:00:54 +02:00
Autechre 009220bc3f Merge pull request #11434 from schellingb/rjson
New faster json parser/writer library rjson
2020-10-11 23:27:35 +02:00
Bernhard Schelling b90ce9b451 Fixes for Clang warnings 2020-10-12 05:25:12 +09:00
Bernhard Schelling c0cb3373e3 Fixes for CXX_BUILD 2020-10-12 04:30:45 +09:00
Autechre 0c052978f4 Merge pull request #11435 from justinweiss/restore-output-samples-buf-check
Add audio_driver_output_samples_buf checks back
2020-10-11 21:09:03 +02:00
Justin Weiss dc6dea4b84 Add audio_driver_output_samples_buf checks back
It's possible for audio_driver_active to be true after the driver has
been uninitialized and before it has been reinitialized, so these
checks are still necessary.
2020-10-11 11:56:06 -07:00
schellingb ba1ed2da4b New faster json parser/writer library rjson
Replace existing libraries jsonsax_full and jsonsax with it
2020-10-12 03:02:20 +09:00
Autechre b5836a6cb3 Merge pull request #11432 from justinweiss/3ds-use-condvar
[3DS] Use the CondVar API for condition variables
2020-10-11 07:47:22 +02:00
Justin Weiss 1ee7b71884 [3DS] Use the CondVar API for condition variables
The pthread wrapper uses semaphores to simulate condition variables,
but it is easy to hit the 3DS' limit of available semaphores. libctru
2.0 supplies a lightweight condition variable API. We will use that
when it exists, and backport it when it doesn't.
2020-10-10 19:31:08 -07:00
Autechre 38ccca18f4 Merge pull request #11429 from natinusala/ozone-wiggle-wraparound
ozone: implement wiggling for main menu when wrap-around is disabled
2020-10-10 19:02:45 +02:00
twinaphex 7e84d9a93b Reorder struct 2020-10-10 18:14:03 +02:00
twinaphex 81fc3a1361 Cleanups 2020-10-10 18:10:22 +02:00
twinaphex cb45f08db8 Cleanups 2020-10-10 18:02:02 +02:00
twinaphex e16dd186b7 Cleanups 2020-10-10 17:58:32 +02:00
twinaphex be47a72af5 Cleanups 2020-10-10 17:55:06 +02:00
twinaphex 92f17b8d46 Add more global warnings 2020-10-10 17:44:56 +02:00
twinaphex 68e56a2345 Add warning to update_time_callback 2020-10-10 17:36:29 +02:00
twinaphex 12c1677697 Small cleanup 2020-10-10 17:27:39 +02:00
natinusala 6619760e6f ozone: implement wiggling for main menu when wrap-around is disabled 2020-10-10 16:20:46 +02:00
Autechre 6767f0f0c3 Merge pull request #11430 from valadaa48/drm_gfx_race_condition
drm_gfx: fix race conditions
2020-10-10 06:16:58 +02:00
valadaa48 c6aaa0076b drm_gfx: fix race condition in drm_surface_set_aspect 2020-10-10 00:04:09 -04:00
twinaphex f38db9e77c Header include cleanups 2020-10-09 20:23:13 +02:00
twinaphex d3dbfba8bc Avoid CXX_BUILD warning 2020-10-09 20:19:34 +02:00
twinaphex 8ea147c081 Turn these all static const 2020-10-09 20:18:33 +02:00
Autechre ca736269f6 Merge pull request #11428 from jdgleaver/video-filters-pt2
Further video filter additions
2020-10-09 19:58:26 +02:00
jdgleaver 54f2156954 Further video filter additions 2020-10-09 13:59:41 +01:00
Autechre 9ac393fa02 Merge pull request #11427 from justinweiss/free-smaller-blocks
[3DS] Free memory in 1MB blocks
2020-10-09 03:21:02 +02:00
twinaphex 9ff25e1fa2 Add warning 2020-10-08 18:21:10 +02:00
twinaphex 2e94f3d5d7 move ozone_pure_white to ozone userdata 2020-10-08 18:19:50 +02:00
Autechre 8a1711dd28 Merge pull request #11419 from whorsemaster/twilight_zone_ozone
(ozone) New Theme - Twilight Zone
2020-10-08 18:04:02 +02:00
Autechre 8e4dad3e4b Merge pull request #11426 from jdgleaver/dingux-default-paths
OpenDingux: Update default directory paths
2020-10-08 17:55:25 +02:00
jdgleaver 2bc705144f OpenDingux: Update default directory paths 2020-10-08 16:15:46 +01:00
Autechre d34c427f3f Merge pull request #11425 from jdgleaver/dingux-input
OpenDingux: Add 'sdl_dingux' input/joypad drivers and use by default
2020-10-08 15:22:30 +02:00
jdgleaver 2dc837850f OpenDingux: Add 'sdl_dingux' input/joypad drivers and use by default 2020-10-08 13:26:45 +01:00
Autechre 611ca29172 Merge pull request #11422 from Jamiras/cheevos_ach_list_sublabel
(cheevos) add sublabel and icon to achievement entry of quick menu
2020-10-07 23:36:12 +02:00
Jamiras 15af1aece5 add sublabel and icon to achievement entry of quick menu 2020-10-07 14:35:35 -06:00
Autechre 129852fb84 Merge pull request #11421 from Jamiras/cheevos_hardcore_pause
(cheevos) disable frame advance; delay pause spam in hardcore
2020-10-07 05:53:29 +02:00
Autechre a061540dd1 Merge pull request #11412 from Lennard599/IOS_fix_openURL_crash
IOSApp doesn't crash anymore when a file is shared to it
2020-10-06 21:36:55 +02:00
Francisco José García García 29becd8683 [VITA] Add CI/CD 2020-10-06 21:32:47 +02:00
Jamiras 96fc17f43c disable frame advance; delay pause spam in hardcore 2020-10-06 07:52:33 -06:00
whorsemaster deb13fcc4d (ozone) New Theme - Twilight Zone
new ozone theme
2020-10-05 18:17:27 -05:00
twinaphex 2588f51ff2 Fix CXX_BUILD 2020-10-06 00:54:37 +02:00
twinaphex f1b6a0dfb1 Add HAVE_THREADS ifdef 2020-10-05 23:52:39 +02:00
twinaphex 18d21d8f95 Cleanups 2020-10-05 22:01:31 +02:00
twinaphex d66541ba99 Turn function static 2020-10-05 21:54:07 +02:00
twinaphex 54f30e31a1 Cleanups 2020-10-05 21:44:13 +02:00
twinaphex 088e6b9e44 Move gfx_widgets_pure_white to dispwidget struct 2020-10-05 19:59:15 +02:00
twinaphex 90503f885b Move msg_queue_background to struct 2020-10-05 19:54:54 +02:00
twinaphex a7c54f1848 Move video_driver_thread pointer grabbing to retroarch.c 2020-10-05 18:13:53 +02:00
Autechre 21d3878d72 Merge pull request #11417 from jdgleaver/gekko-stat
(GEKKO) Remove trailing slash when calling retro_vfs_stat_impl()
2020-10-05 17:38:26 +02:00
jdgleaver b431285819 (GEKKO) Remove trailing slash when calling retro_vfs_stat_impl() 2020-10-05 15:16:58 +01:00
twinaphex d1dd0e9d60 Not sure why this printf was there 2020-10-05 16:01:40 +02:00
Autechre 1108385bff Merge pull request #11416 from jdgleaver/dingux-ipu-sharpness
OpenDingux: Enable selection of image interpolation method when using the 'sdl_dingux' gfx driver
2020-10-05 15:50:25 +02:00
jdgleaver 80f1da2fb1 OpenDingux: Enable selection of image interpolation method when using 'sdl_dingux' gfx driver 2020-10-05 14:34:21 +01:00
Autechre 35d7e0ccdf Merge pull request #11413 from jdgleaver/menu-explore-fix
Explore Menu: Fix heap buffer overflow on initialisation
2020-10-05 14:20:42 +02:00
Autechre a033f4ab62 Merge pull request #11414 from jdgleaver/cdrom-strcasestr
libretro-common/cdrom: Add missing compatibility header
2020-10-05 14:20:01 +02:00
Autechre b55e3d5bff Merge pull request #11415 from jdgleaver/gekko-mkdir
Fix directory creation on GEKKO platforms when path contains a trailing slash
2020-10-05 14:19:37 +02:00
jdgleaver 3c06a907ca Fix directory creation on GEKKO platforms when path contains a trailing slash 2020-10-05 10:59:55 +01:00
jdgleaver 6c8c8b73f2 libretro-common/cdrom: Add missing compatibility header 2020-10-05 10:28:45 +01:00
jdgleaver 0207fbf7b5 Explore Menu: Fix heap buffer overflow on initialisation 2020-10-05 10:15:54 +01:00
lennardkittner 43245c0d9f - Deleted deprecated openURL method
- Now using self.documentsDirectory
- ROMs are saved to documents directory
2020-10-05 09:18:28 +02:00
Autechre 1496fda9bf Merge pull request #11406 from natinusala/ozone-cursor-wiggle
ozone: add cursor wiggle animation
2020-10-04 20:06:40 +02:00
natinusala 6d1660fcbd ozone: add cursor wiggle animation 2020-10-04 19:08:42 +02:00
lennardkittner f8726fccb0 - App doesn't crash anymore when a file is shared to it.
- A shared file is copied to /Documents/roms.
2020-10-04 17:53:39 +02:00
Autechre 6846295f09 Merge pull request #11411 from jdgleaver/dingux-invalid-video-mode
OpenDingux/sdl_dingux: Prevent crash when selecting invalid video modes + optimisations
2020-10-04 13:01:59 +02:00
jdgleaver 472f01e0e6 OpenDingux/sdl_dingux: Prevent crash when selecting invalid video modes + optimisations 2020-10-04 11:43:33 +01:00
twinaphex 0ad9175d77 (sinc resampler) We don't need to keep fetching these variables
within this inner loop
2020-10-03 21:20:32 +02:00
twinaphex 6c067d149d (Xaudio) Cleanups 2020-10-03 20:35:50 +02:00
twinaphex fbd4fc5094 Try to avoid having to repeatedly grab the pointer 2020-10-03 20:30:57 +02:00
twinaphex 326f40d598 Cleanup 2020-10-03 18:37:53 +02:00
twinaphex 467dd68fa4 Cleanup 2020-10-03 18:32:21 +02:00
twinaphex 0e4aa46335 Cleanups 2020-10-03 18:25:43 +02:00
twinaphex ecd72b5be6 (widgets) Get rid of get_ptr function calls 2020-10-02 22:23:51 +02:00
twinaphex f82b357f86 Remove getter gfx_widget_get_backdrop_orig 2020-10-02 22:12:05 +02:00
twinaphex 20371e5102 (gfx_thumbnail) get rid of small getters 2020-10-02 21:59:02 +02:00
twinaphex 5aa675e059 Cleanups 2020-10-02 21:39:46 +02:00
twinaphex 66deef29c6 Cleanups/style nits 2020-10-02 21:10:07 +02:00
twinaphex c6f5973281 Replace while(true) with for(;;) 2020-10-02 21:02:59 +02:00
twinaphex f84c6ec8cd Use STRLEN_CONST where possible; and don't needlessly do strlen
twice
2020-10-02 20:57:29 +02:00
twinaphex 12012b5041 (com-parser) Use STRLEN_CONST 2020-10-02 20:50:11 +02:00
Autechre 7517ea081a Merge pull request #11404 from jdgleaver/qt-shader-fix
Qt shader fix
2020-10-02 19:07:08 +02:00
jdgleaver e1890bd08e Fix Qt shaders dialog 2020-10-02 17:48:45 +01:00
jdgleaver d686d73e7a Revert "Buildfix --disable-menu - bake out shader params for desktop menu if"
This reverts commit dd6924a940.
2020-10-02 17:20:23 +01:00
Autechre 8379a0b40c Merge pull request #11403 from jdgleaver/dingux-integer-scaling
OpenDingux: Enable integer scaling when using the 'sdl_dingux' gfx driver
2020-10-02 18:10:05 +02:00
jdgleaver bbba80f01e OpenDingux: Enable integer scaling when using the 'sdl_dingux' gfx driver 2020-10-02 16:38:42 +01:00
twinaphex 99c239bcee (Ozone) Don't call set_alpha if alpha value is the same as last time 2020-10-02 14:38:05 +02:00
twinaphex 0bfbf81b49 Cleanups 2020-10-02 14:33:35 +02:00
barbudreadmon 5bb90ecf46 compatibility with targets lacking glcore 2020-10-02 14:28:57 +02:00
twinaphex 4adfaa07fc Cleanups 2020-10-02 14:16:12 +02:00
twinaphex 079c2dadff (gfx_display.c) Do early returns before computing a bunch of stuff 2020-10-02 14:07:01 +02:00
twinaphex cd469d3fb2 gfx_widgets_draw_regular_msg - optimization - only set alpha colors
again if alpha hasn't already been applied
2020-10-02 13:33:05 +02:00
twinaphex 2594bd2cf6 Some static globals can be moved to functions 2020-10-02 13:30:57 +02:00
twinaphex c45e7c9bc5 Cleanup 2020-10-02 11:36:11 +02:00
twinaphex a38ecbe7de gfx_widgets_iterate - cleanup 2020-10-02 11:32:49 +02:00
twinaphex c736f2ce28 Cleanups 2020-10-02 11:00:19 +02:00
Autechre 0eddffb319 Merge pull request #11397 from sonninnos/keydesc-cleanup
Key descriptor cleanup
2020-10-01 19:22:40 +02:00
twinaphex 902647c6fe (XMB) Cleanups 2020-10-01 19:12:26 +02:00
Autechre 27acbfc2f9 Merge pull request #11399 from jdgleaver/typo-fix
Fix typo in menu_cbs_ok.c
2020-10-01 18:41:43 +02:00
jdgleaver a04d5c3772 Fix typo in menu_cbs_ok.c 2020-10-01 17:37:04 +01:00
twinaphex 2e752d93cc Cleanup 2020-10-01 18:34:01 +02:00
twinaphex cecd48e6b5 gfx_display_draw_cursor - take out early return 2020-10-01 18:22:29 +02:00
Autechre 8e5596873a Merge pull request #11398 from jdgleaver/rg350m
OpenDingux port improvements: Phase 1
2020-10-01 17:53:54 +02:00
twinaphex 899ad1cf88 Buildfix for OSX 2020-10-01 17:22:00 +02:00
jdgleaver 3bd66cc14d OpenDingux port improvements: Phase 1 2020-10-01 15:56:14 +01:00
Tony Jansson 3b76949699 Key descriptor cleanup 2020-10-01 17:34:49 +03:00
twinaphex 9444117b67 Buildfix 2020-10-01 15:37:21 +02:00
twinaphex dd6924a940 Buildfix --disable-menu - bake out shader params for desktop menu if
HAVE_MENU is not set
2020-10-01 13:04:13 +02:00
twinaphex 9be7da9665 --disable-menu buildfixes 2020-10-01 12:56:30 +02:00
twinaphex e8ab0a892a gfx_display_get_adjusted_scale_internal - cleanup 2020-10-01 12:33:58 +02:00
twinaphex 4f82c26f6c Cleanups 2020-10-01 12:26:49 +02:00
twinaphex 48a2e0528d gfx_display_font_file - cleanup 2020-10-01 12:24:17 +02:00
twinaphex d08a3b2310 These functions were never used 2020-10-01 12:22:56 +02:00
twinaphex 4965b78ea3 PARTICLES_COUNT doesn't seem used anymore 2020-10-01 12:21:57 +02:00
twinaphex 497f2d92b5 gfx_widgets_ai_service_overlay_load - cleanup 2020-10-01 12:20:34 +02:00
Autechre 4b3f8b4a09 Merge pull request #11395 from stenzek/d3d11-gpu-reset
(video/d3d11) Skip shader/stock blend when we don't have a texture
2020-10-01 11:46:18 +02:00
Connor McLaughlin 696df6e916 (video/d3d11) Skip shader/stock blend when we don't have a texture
This happens if the core calls video_cb with the frame set to null on
the first frame, and was causing black screens/driver resets.

The ffmpeg core seems to do this.
2020-10-01 19:19:13 +10:00
twinaphex a02f8a24fa Get rid of forward declarations 2020-10-01 11:06:59 +02:00
twinaphex fe38cd9cbc (gfx widgets) get rid of more getter functions 2020-10-01 10:55:37 +02:00
twinaphex dee807cb54 (gfx widgets) Start removing a lot of getter functions 2020-10-01 10:50:45 +02:00
Autechre 2cdb1b6982 Merge pull request #11394 from stenzek/d3d11-scissor
(video/d3d11): Fix shaders with scaled framebuffers
2020-10-01 09:52:24 +02:00
Connor McLaughlin 10bbe119a7 (video/d3d11): Fix shaders with scaled framebuffers
The scissor rectangle was left as whatever the core last used.
2020-10-01 16:53:19 +10:00
twinaphex 1e6828fd63 Cleanups 2020-09-30 19:18:40 +02:00
twinaphex f8b828e623 gfx_display_draw_bg - cleanups 2020-09-30 18:56:46 +02:00
twinaphex 8683f68ccb Cleanup 2020-09-30 18:52:22 +02:00
Autechre 7f3b1c69e3 Merge pull request #11392 from stenzek/d3d11
(video/d3d11) Fix background in menus, and shaders for hardware renderers
2020-09-30 17:57:27 +02:00
Connor McLaughlin 30c6f90c93 (video/d3d11) Use cached view as the slang source texture
Fixes shaders in D3D11 driver.
2020-10-01 00:19:11 +10:00
Connor McLaughlin 12382c057a (video/d3d11) Cache view left bound by hw renderers
Fixes garbage/black screen when menu is active.
2020-10-01 00:19:11 +10:00
twinaphex 0642ea6d5d Remove gfx_display_snow 2020-09-30 15:57:21 +02:00
twinaphex 7e597c3fd0 Cleanups 2020-09-30 15:47:03 +02:00
twinaphex 3072342b2c Backport libretro-common changes 2020-09-30 14:50:17 +02:00
Autechre f0430aa543 Merge pull request #11391 from p-sam/switch/input-fix
libnx: fix touch, mouse and KB input
2020-09-30 10:15:47 +02:00
p-sam 059cd08530 libnx: fix touch, mouse and KB input 2020-09-30 09:23:28 +02:00
barbudreadmon 1ed6bfb31f allow context switching from gl to glcore (fix typo) 2020-09-29 15:50:02 +02:00
Autechre d7a321fdbb Merge pull request #11389 from jdgleaver/keymap-fix
(udev/linuxraw/wayland) Fix return key keyboard input
2020-09-29 12:44:18 +02:00
jdgleaver 3fa1166ec4 (udev/linuxraw/wayland) Fix return key keyboard input 2020-09-29 11:23:35 +01:00
Justin Weiss 5756ff0b16 [3DS] Free memory in 1MB blocks
When freeing large blocks of memory, the 3DS may kernel panic. Freeing
in smaller blocks seems to avoid the crashes.
2020-09-28 19:12:15 -07:00
pjft f8b4289811 Change udev driver for dual lightgun support in X11 2020-09-28 21:25:51 +01:00
twinaphex 0ec93e7fff (gfx_display) Cleanups 2020-09-28 07:22:52 +02:00
twinaphex 6ff934bf94 Buildfix 2020-09-28 05:07:18 +02:00
twinaphex 1e61480e0a Get rid of get/set_header_height 2020-09-28 05:06:02 +02:00
twinaphex 2ca6737ec3 (XMB) doesn't use header height 2020-09-28 04:58:34 +02:00
twinaphex 03ff504aa8 Remove gfx_display_scissor_end 2020-09-28 04:04:16 +02:00
twinaphex d44ab6facf framebuffer_dirty functions - remove these and set member variables
directly in rgui.c and retroarch.c
2020-09-28 03:49:13 +02:00
twinaphex f38eb84cc7 Move gfx_display_draw_text to retroarch.c and get rid of
video_driver_set_osd_msg
2020-09-28 03:38:16 +02:00
twinaphex 9d6bfabd02 Move reset_list_buffer to gfx_widgets and turn it into a static function 2020-09-28 03:30:22 +02:00
twinaphex 783bcb7a61 Avoid printf/puts 2020-09-28 03:17:21 +02:00
twinaphex 2e5bfd74ec Optimize explore_check_company_suffix 2020-09-27 23:56:15 +02:00
Autechre 3c2280b2b2 Merge pull request #11386 from Jamiras/cheevos_discord
(cheevos) don't update discord rich presence when paused
2020-09-27 23:44:29 +02:00
Jamiras 8bc02e2df2 don't update discord rich presence from retroachievements when paused 2020-09-27 14:45:14 -06:00
twinaphex c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex f1432db433 Cleanup 2020-09-27 20:44:31 +02:00
twinaphex e9e25aae7d res.val.bool_ was being set a second time to 0 unnecessarily 2020-09-27 20:41:02 +02:00
twinaphex edf8fd99c7 (libretro-db) query.c - get rid of strlen call in query_peek 2020-09-27 20:38:08 +02:00
twinaphex b829c7c1f8 (libretro-db) Cleanups - get rid of some goto labels, simplify one
conditional
2020-09-27 20:21:54 +02:00
twinaphex e159ba1542 Cleanups 2020-09-27 02:48:40 +02:00
twinaphex e87b44a68c Remove stub functions in null display driver 2020-09-27 00:18:16 +02:00
twinaphex 7225170e97 Cleanups 2020-09-26 23:51:59 +02:00
twinaphex c91df88fe2 Cleanups 2020-09-26 23:39:15 +02:00
twinaphex a56673e52d MSVC buildfix 2020-09-26 23:37:03 +02:00
twinaphex c0470854d4 Cleanups 2020-09-26 23:33:59 +02:00
twinaphex b830d15628 (drivers_display) Cleanups 2020-09-26 23:31:12 +02:00
twinaphex e1dbf5dab1 Remove drivers_display viewport - was unused 2020-09-26 22:01:23 +02:00
twinaphex fbe0924d44 Remove some stub functions 2020-09-26 21:40:16 +02:00
twinaphex e428166a05 Remove unused gfx_display_get_framebuffer_pitch 2020-09-26 20:04:55 +02:00
twinaphex f22488f620 gfx_display_coords_array_reset unused - remove 2020-09-26 20:03:20 +02:00
twinaphex 14c9ccfda8 Remove gfx_display_{set/get}_driver_id 2020-09-26 19:58:15 +02:00
Autechre 3e55f067ed Merge pull request #11382 from Jamiras/cheevos_lboard_opts
(cheevos) allow disabling leaderboard notifications and trackers separately
2020-09-26 18:48:17 +02:00
Jamiras 376342a2c3 hook up reset for all config_string_options 2020-09-26 09:59:50 -06:00
Jamiras 02ddbc41cc allow disabling leaderboard notifications and trackers separately 2020-09-25 19:28:56 -06:00
Autechre 9ca09e872e Merge pull request #11380 from jdgleaver/video-filter-xrgb888
Gameboy/Dot_Matrix video filters: Add XRGB8888 support
2020-09-25 18:38:57 +02:00
jdgleaver 6c549d687c Gameboy/Dot_Matrix video filters: Add XRGB8888 support 2020-09-25 16:32:24 +01:00
Autechre 6cc058b390 Merge pull request #11376 from jdgleaver/video-filter-fix
Fix video filters for builds where both 'HAVE_DYLIB' and 'HAVE_FILTERS_BUILTIN' are defined
2020-09-25 17:10:37 +02:00
Autechre fb175c877c Merge pull request #11377 from jdgleaver/default-overlay-fix
(Mobile) Fix default overlay assignment
2020-09-25 17:10:13 +02:00
Autechre eab0098216 Merge pull request #11379 from jdgleaver/keyboard-mapping-fix
Prevent out of bounds array acces when using left/right to remap 'Keyboard' device type inputs
2020-09-25 17:09:50 +02:00
jdgleaver e8b8d3c71b Prevent out of bounds array acces when using left/right to remap 'Keyboard' device type inputs 2020-09-25 12:40:22 +01:00
jdgleaver 2155438794 (Mobile) Fix default overlay assignemnt 2020-09-25 11:15:33 +01:00
jdgleaver b8fb26c196 Fix video filters for builds where both 'HAVE_DYLIB' and 'HAVE_FILTERS_BUILTIN' are defined 2020-09-25 10:51:46 +01:00
twinaphex bc43db1789 Remove gfx_display_get_coords_array 2020-09-25 10:31:07 +02:00
Autechre 7d8518ec45 Merge pull request #11373 from Jamiras/cheevos_lboard_display
(cheevos) add display widget for active leaderboards
2020-09-25 03:38:03 +02:00
twinaphex c0a790e74a Buildfix for platforms that don't have widget support 2020-09-24 22:20:12 +02:00
Autechre 81a12dec63 Merge pull request #11371 from jdgleaver/video-filters
Add several LCD-effect video filters
2020-09-24 22:16:04 +02:00
Autechre c45f463111 Merge pull request #11372 from yoshisuga/ios-fix-mfi
[iOS][tvOS] Fix declaration of input driver init method
2020-09-24 22:15:02 +02:00
Jamiras 71cd400e56 add display widget for active leaderboards 2020-09-24 11:29:29 -06:00
Yoshi Sugawara f70aed431d [iOS][tvOS] Fix declaration of input driver init method 2020-09-24 07:21:08 -10:00
jdgleaver 3d4ddebcaf Add several LCD-effect video filters 2020-09-24 16:11:07 +01:00
Twinaphex e0d04c29bc Fix regression 2020-09-24 09:39:02 +02:00
twinaphex 8c440ef72c Optimize gfx_display_draw_keyboard 2020-09-24 09:07:47 +02:00
twinaphex eb0376fe7d Do white texture freeing outside of gfx_display_init_white_texture 2020-09-24 07:03:24 +02:00
twinaphex a74d24c3ce Rename gfx_display_allocate_white_texture to
gfx_display_init_white_texture
2020-09-24 06:46:21 +02:00
twinaphex 5f89551e54 Cleanups 2020-09-24 06:37:25 +02:00
twinaphex 515e119861 Get rid of gfx_animation_get_delta_time 2020-09-24 06:14:04 +02:00
twinaphex 2ab0300c33 gfx_display.c - can drop dependency now on gfx_animation.h 2020-09-24 06:00:32 +02:00
twinaphex 37237db804 GFX_DISPLAY_GET_UPDATE_PENDING - turn function into macro 2020-09-24 05:59:14 +02:00
twinaphex c040e4cd08 Cleanups 2020-09-23 22:14:30 +02:00
twinaphex 4fb2065061 Get rid of gfx_display_draw_pipeline 2020-09-23 21:56:48 +02:00
twinaphex 557b445b27 Cleanups 2020-09-23 21:44:23 +02:00
twinaphex 5a481d8653 Get rid of gfx_display_blend_{begin/end} 2020-09-23 21:37:18 +02:00
twinaphex 1d8bee45e0 Add TODO/FIXME note 2020-09-23 20:40:28 +02:00
twinaphex a0ae6be35b Stop using small wrapper functions in gfx_display 2020-09-23 20:36:25 +02:00
Autechre 7938a5e3ac Merge pull request #11366 from sonninnos/vulkan-minimized-cpu
(Vulkan) Fix CPU usage when minimized
2020-09-23 17:22:07 +02:00
barbudreadmon eed47273fb fix crash when using RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT 2020-09-23 12:34:00 +02:00
barbudreadmon 96e6f99f14 allow context switching from gl to glcore 2020-09-23 11:29:44 +02:00
twinaphex 43b43351fa Start making gfx_display_blend_begin and gfx_display_blend_end
unnecessary
2020-09-23 09:32:42 +02:00
Tony Jansson a0eee521e3 (Vulkan) Fix CPU usage when minimized 2020-09-23 04:17:30 +03:00
Autechre 08f46a44de Merge pull request #11362 from Jamiras/cheevos_unofficial_reset
(cheevos) sync menu reset value to default
2020-09-23 02:19:28 +02:00
Autechre 83ee43c218 Merge pull request #11365 from sonninnos/vulkan-reduce-logging
(Vulkan) Reduce log spam
2020-09-23 02:07:03 +02:00
Tony Jansson bb1c853ecd (Vulkan) Reduce log spam 2020-09-23 02:00:03 +03:00
Jamiras 1587165b56 sync reset value to default 2020-09-21 22:44:43 -06:00
Twinaphex b59c5f6ff9 Cleanup - remove unused variable 2020-09-22 04:52:31 +02:00
twinaphex 77abaac79c Get rid of duplicate function gfx_display_draw_blend 2020-09-22 04:13:53 +02:00
twinaphex bde4abfe8b (Gfx display driver) Get rid of unused restore_clear_color/clear_color 2020-09-22 04:03:19 +02:00
twinaphex 02985900c8 Get rid of unused gfx_display_restore_clear_color 2020-09-22 03:56:02 +02:00
twinaphex 6bb3e37d53 Get rid of gfx_display_clear_color 2020-09-22 03:54:22 +02:00
twinaphex 97225bfe64 (gfx_display.c) Cleanups 2020-09-22 03:53:10 +02:00
twinaphex d898304ee5 Get rid of gfx_display_draw_gradient 2020-09-22 03:29:48 +02:00
Autechre 5411948c2e Merge pull request #11361 from Jamiras/cheevos_toggles
(cheevos) restore ability to disable unofficial achievements and leaderboards
2020-09-22 03:22:06 +02:00
twinaphex 4bdd0ac697 Uniquely name static globals 2020-09-22 03:05:58 +02:00
twinaphex 236622ffa6 (Joypad driver) Init function - return void pointer 2020-09-22 02:30:47 +02:00
Jamiras b74c5d290c restore ability to disable unofficial achievements and leaderboards 2020-09-21 17:48:14 -06:00
twinaphex 2e79940ec5 Rename led_keyboard.c to led_win32_keyboard.c - add it to Griffin
- only include it for Win32 (no Xbox or UWP)
2020-09-21 22:01:26 +02:00
Autechre 4e6c367331 Merge pull request #11355 from sonninnos/keyboard-led-driver
Keyboard LED driver
2020-09-21 21:59:02 +02:00
Autechre 73badd6a08 Merge pull request #11357 from Alcaro/patch-10
Fix system mbedtls build
2020-09-21 21:57:31 +02:00
Tony Jansson 82a0f647ff Keyboard LED driver 2020-09-21 17:25:11 +03:00
Alcaro 3448ccb360 Fix system mbedtls build 2020-09-21 10:57:05 +02:00
twinaphex a117811936 (rapidjson) Remove unused files 2020-09-21 01:27:41 +02:00
twinaphex 9aa008834e Use strcpy_literal 2020-09-21 01:00:40 +02:00
twinaphex 98e9109d45 use strcpy_literal for string literals 2020-09-21 00:59:37 +02:00
twinaphex 7e0e3144be Cleanups 2020-09-21 00:55:05 +02:00
twinaphex b0c744c3d0 Turn some variables static that are not used outside the source
file
2020-09-21 00:52:32 +02:00
twinaphex 599f338d74 Use strcpy_literal for string literals 2020-09-21 00:36:07 +02:00
twinaphex f1d0de85fd Use strcpy_literal for string literals 2020-09-21 00:27:31 +02:00
twinaphex 8811c555fe (OSS) Buildfix 2020-09-20 23:33:13 +02:00
twinaphex e50d5af2db (OSS) Get rid of static globals 2020-09-20 23:30:19 +02:00
twinaphex 11b4043ef6 Struct reordering 2020-09-20 23:23:31 +02:00
twinaphex f8a71e8ea4 (Rwebaudio) Get rid of static global variables, put it in struct 2020-09-20 23:09:18 +02:00
twinaphex 45c257e0dd (Rwebaudio) Cleanups 2020-09-20 23:05:09 +02:00
twinaphex 5668a1da78 Turn this into global constant 2020-09-20 22:47:38 +02:00
twinaphex 443d2eda8e Add CXX_BUILTINBEARSSL 2020-09-20 18:27:06 +02:00
twinaphex 065d781df7 (X11) Buildfix 2020-09-20 18:16:02 +02:00
twinaphex 5bd71497c5 (dispserv X11) Get rid of static global variables 2020-09-20 18:13:00 +02:00
twinaphex f1f66597a3 Cleanups 2020-09-20 17:57:44 +02:00
twinaphex 8eeb612493 Cleanups 2020-09-20 17:50:06 +02:00
Autechre 240a2fee63 Merge pull request #11356 from Alcaro/master
./configure: Add BearSSL support
2020-09-20 17:40:11 +02:00
twinaphex 2d528fcf7d (360) Cleanups 2020-09-20 17:39:28 +02:00
Alcaro 62e72e756b ./configure: Add BearSSL support 2020-09-20 16:58:07 +02:00
twinaphex bdbfc80584 Cleanups 2020-09-20 03:06:23 +02:00
twinaphex 8ff4134a76 Cleanup 2020-09-20 00:17:11 +02:00
twinaphex eefcd0e99f Use strcpy_literal in more places 2020-09-20 00:12:54 +02:00
twinaphex 0e49f058f3 Use strcpy_literal in more places 2020-09-19 23:59:06 +02:00
twinaphex 1296fc4745 use strlcpy_literal for string literal copies 2020-09-19 23:28:01 +02:00
Autechre 7b600d46ad Merge pull request #11342 from Ophidon/master
Variable BFI
2020-09-19 22:24:47 +02:00
Ophidon 05c5bdf587 C89 Compliance
For loop iterators updated for C89 compliance.
2020-09-19 13:28:21 -04:00
Autechre 858b8c3344 Merge pull request #11348 from guoyunhe/crowdin-20200919
Fetch translations from Crowdin
2020-09-19 18:10:29 +02:00
Autechre 9eacbcd613 Merge pull request #11349 from Nargash/CheevosPass
extend cheevos password length to 255 characters
2020-09-19 18:09:52 +02:00
Autechre 6cd88283ff Merge pull request #11350 from valadaa48/oga_gfx_nits
oga_gfx: strlcpy + style nits
2020-09-19 18:09:33 +02:00
valadaa48 15708f5d44 oga_gfx: strlcpy, msg max len 128 + style nits 2020-09-19 11:23:59 -04:00
Nargash c0aecc70aa extend cheevos password length to 255 characters 2020-09-19 09:14:28 -05:00
Guo Yunhe aac8d11310 Fetch translations from Crowdin 2020-09-19 16:54:44 +03:00
twinaphex 2a3000793b Fix Griffin 2020-09-19 15:08:33 +02:00
Autechre a7a28906d3 Merge pull request #11344 from Alcaro/master
Add BearSSL support, as alternative to mbedTLS
2020-09-19 15:07:30 +02:00
twinaphex ca9683d58d C89 fixes - use C style comments instead of C++, style nits 2020-09-19 14:47:40 +02:00
Autechre 8a637341f3 Merge pull request #11346 from valadaa48/oga_gfx_rewrite
oga_gfx: rewrite
2020-09-19 14:40:22 +02:00
Autechre dd76040a2f Update CHANGES.md 2020-09-19 03:55:17 +02:00
Autechre dca02371e8 Merge pull request #11345 from valadaa48/rgui_3_2_aspect
RGUI: Add 3:2 and 3:2 (centered) aspects
2020-09-19 03:54:48 +02:00
valadaa48 7015e199bb oga_gfx: rewrite
- Drop libgo2 dep
- Use more features of RGA
- Triple buffer instead of double buffer
- Rewrite of message code to support surface caching, transluceny,
  and multiline message support. Messages also don't scale with the
  emulation frame anymore and are drawn directly to the frame buffer.
- Better support for aspect ratios
2020-09-18 21:24:10 -04:00
Alcaro 18f46e65ea Add BearSSL support 2020-09-19 00:31:36 +02:00
valadaa48 63fd0aa461 RGUI: Add 3:2 and 3:2 (centered) aspects 2020-09-18 18:31:33 -04:00
Alcaro 3849278b50 Add BearSSL as a vendored dependency 2020-09-19 00:31:20 +02:00
Autechre 6c496eeaab Merge pull request #11343 from Alcaro/patch-9
Fix --enable-debug build
2020-09-18 23:34:47 +02:00
Alcaro c7669fdce5 Fix --enable-debug build
libretro-common/audio/audio_mixer.c:195:32: error: unknown type name ‘rwav_t’
 static bool wav_to_float(const rwav_t* wav, float** pcm, size_t samples_out)
                                ^~~~~~

plus about 500 errors when trying to use that struct
2020-09-18 21:45:32 +02:00
Ophidon 2f36c94f3f Variable BFI
BFI support added for 180hz / 240hz / etc. Solves issue with image retention from voltage issues at 120hz BFI. Also disabled BFI while in menu, as if set to an incorrect value for the current refresh rate, could cause severe flickering and difficulty reverting to the correct value.
2020-09-18 11:57:32 -04:00
twinaphex 45bef61e36 Cleanups 2020-09-18 02:50:01 +02:00
twinaphex c2cd39379a (gfx_widgets.c) Put FIFO queue on stack 2020-09-18 02:18:21 +02:00
twinaphex 290c88b865 Remove menu_networking.c and merge it into menu_cbs_ok.c and
menu_displaylist.c
2020-09-17 23:15:25 +02:00
Twinaphex 0651185ea3 Cleanups 2020-09-17 21:57:35 +02:00
Autechre 27bb73dd37 Merge pull request #11340 from jdgleaver/overlay-autoscale
Add option to scale overlays automatically (with aspect ratio correction)
2020-09-17 21:09:43 +02:00
jdgleaver 8a5ebbf24d Add option to scale overlays automatically (with aspect ratio correction) 2020-09-17 17:23:07 +01:00
twinaphex 6234036d5d Get rid of RARCH_DRIVER_CTL_FIND_INDEX 2020-09-16 18:41:45 +02:00
twinaphex 95dbd11546 Style nits 2020-09-16 18:32:13 +02:00
twinaphex 95a1f1c64f Small cleanups 2020-09-16 18:22:06 +02:00
twinaphex 04b7844f92 Cleanup parse_context_setup 2020-09-16 18:20:25 +02:00
twinaphex 9858a72937 Change address and mitm_name to 256 2020-09-16 17:16:23 +02:00
Autechre 1123042f20 Merge pull request #11338 from alphanu1/master
Low resolution fix
2020-09-16 16:49:42 +02:00
twinaphex 0b34aa446c struct netplay_room - lower coreversion to 255 chars 2020-09-16 16:46:23 +02:00
Ben b33f0b9121 low resoluiton fis for RetroArch exit
On exit changes
2020-09-16 14:13:04 +01:00
Ben 17809688a6 Fix for low resoltion crash
256x240 resolutions and lower are now working
2020-09-16 14:07:15 +01:00
Ben 382044b5bf Low resolution switch bug fix
This allows resolutions lower that 32x224 like 256x224 to work
2020-09-16 13:49:34 +01:00
twinaphex 42fdb30300 struct netplay_room - reduce char arrays based on how big these
entries can be
2020-09-16 13:23:19 +02:00
twinaphex 24ce413816 (netplay_room) country can never be longer than 2 characters 2020-09-16 13:11:23 +02:00
twinaphex 4e594c6437 Move win32_window_init outside of ui_win32.c and to gfx/common/win32_common.c 2020-09-16 10:29:50 +02:00
Twinaphex 4c1c0cc80d webServerDidCompleteBonjourRegistration - cleanup some code
duplication
2020-09-16 10:12:43 +02:00
Twinaphex f8b4477b9a (Cocoa) Cleanups; group things together under TARGET_OSX and TARGET_IOS 2020-09-16 10:09:03 +02:00
twinaphex e15018a85a Cleanups 2020-09-15 21:12:27 +02:00
twinaphex ca413ff132 (Cocoa) Cleanups 2020-09-15 21:03:27 +02:00
twinaphex de68ce185c (Cocoa) Cleanups 2020-09-15 21:00:22 +02:00
Twinaphex 62f4eae323 (Cocoa) Cleanups 2020-09-15 20:53:48 +02:00
Twinaphex 86c0ffaf39 (Cocoa) Cleanups 2020-09-15 20:50:20 +02:00
Twinaphex eaf540e563 Cleanups 2020-09-15 20:45:42 +02:00
twinaphex ddfbd38610 Cleanups 2020-09-15 20:40:24 +02:00
twinaphex c9938eb316 Cleanups 2020-09-15 19:48:43 +02:00
Twinaphex 3b24bb21e5 Remove unused variables 2020-09-15 19:38:07 +02:00
Twinaphex cec774ba3b RAMenuBase can be removed now 2020-09-15 19:36:40 +02:00
twinaphex 9245e3bd6b Cleanups 2020-09-15 19:30:44 +02:00
twinaphex 91205d17f6 Cut down on else codeblock here - it's identical 2020-09-15 18:59:45 +02:00
Autechre fb0c6899ae Merge pull request #11334 from Jamiras/rcheevos_runtime
(cheevos) use rcheevos for trigger management
2020-09-15 17:31:16 +02:00
Jamiras 9f992eb709 Merge branch 'master' into rcheevos_runtime 2020-09-15 09:09:30 -06:00
Jamiras 7e348b98f7 address travis error 2020-09-15 09:09:02 -06:00
twinaphex a49b81c161 Cleanup 2020-09-15 11:48:56 +02:00
twinaphex 26b2295759 (cocoa_gl_ctx.m) Style nits 2020-09-15 11:28:04 +02:00
twinaphex c436ac83cd Call gl2_set_viewport directly 2020-09-15 11:11:32 +02:00
twinaphex 3a37e13a54 Call video_driver_set_viewport directly 2020-09-15 11:05:47 +02:00
twinaphex c133c2a10c (Cocoa GL ctx) Add updateSel 2020-09-14 23:59:42 +02:00
twinaphex d8406baf33 Cleanups 2020-09-14 23:14:26 +02:00
twinaphex f7ae8001ad Cleanups 2020-09-14 21:55:00 +02:00
twinaphex 6bac58b902 Cleanups 2020-09-14 21:55:00 +02:00
Twinaphex 13e553a34b get_backing_scale_factor - use class_respondsToSelector 2020-09-14 21:27:22 +02:00
Twinaphex f5417943c7 Cleanups 2020-09-14 20:47:07 +02:00
Twinaphex 1fa89b642a (Cocoa) sendEvent - cleanups 2020-09-14 20:32:04 +02:00
Twinaphex dfc8f66d09 (Cocoa) sendEvent - cleanups 2020-09-14 20:27:44 +02:00
Twinaphex e5a52a82b6 Don't reference event unnecessarily 2020-09-14 20:23:49 +02:00
Twinaphex 9184fa3689 More cleanups in sendEvent 2020-09-14 20:14:23 +02:00
Twinaphex d177b9e737 (Cocoa) Optimize sendEvent 2020-09-14 20:09:30 +02:00
Twinaphex 5444401e4f Add this back 2020-09-14 19:45:49 +02:00
twinaphex 8b18ae3018 (Cocoa) Fix keyboard input 2020-09-14 19:38:52 +02:00
Autechre 0cb0635ddc Merge pull request #11332 from jdgleaver/android-sensors
(Sensors API) Android (crash-)fixes/improvements + add option to disable sensor input
2020-09-14 19:16:58 +02:00
jdgleaver 34e08a688f (Sensors API) Android (crash-)fixes/improvements + add option to disable sensor input 2020-09-14 17:52:45 +01:00
Twinaphex 88e927cf94 Convert ui_cocoa_application.m to C 2020-09-14 17:12:57 +02:00
Twinaphex a8beb91f0f Reimplement ui_application_cocoa_process_event 2020-09-14 16:50:26 +02:00
twinaphex fb6642192d Add TARGET_OS_OSX ifdef around this 2020-09-14 16:17:31 +02:00
Twinaphex 2bfadbdad5 (Apple CocoaGL) Call flushBuffer with msg_objcSend 2020-09-14 16:15:53 +02:00
Jamiras 0d6f0e4826 let rc_runtime_t manage triggers 2020-09-14 07:51:52 -06:00
twinaphex 5838817bbd Get rid of gfx_widgets_set_status_text 2020-09-14 14:11:44 +02:00
twinaphex 1bf87b1b48 Don't use snprintf if no formatting is required and we just need to
concatenate strings together
2020-09-14 13:53:04 +02:00
twinaphex 15ace7c0cb Fix C89_BUILD issue 2020-09-14 13:25:18 +02:00
twinaphex 11e65e20b7 Cleanup 2020-09-14 13:06:04 +02:00
twinaphex 19a380a328 Revert "(X11/dispserv) Cleanups"
This reverts commit 30cde1edfb.
2020-09-14 13:05:02 +02:00
twinaphex 30cde1edfb (X11/dispserv) Cleanups 2020-09-14 13:04:14 +02:00
twinaphex 1b61ef4a5a Cleanups 2020-09-14 12:59:32 +02:00
twinaphex 9bd1046538 (dispserv_x11.c) Buildfix 2020-09-14 12:57:34 +02:00
twinaphex 9cb8fb8de5 Include missing header 2020-09-14 12:54:15 +02:00
twinaphex 868ef85f5d (dispserv_x11.c) C89 nits/cleanups 2020-09-14 12:53:49 +02:00
Autechre b5c3d04c1f Merge pull request #11323 from alphanu1/master
CRTSwitchRes improvements and Core Load Chrash Fix
2020-09-14 12:41:53 +02:00
twinaphex 2eadf3b175 generic_menu_entry_action - simplify switch 2020-09-14 12:33:09 +02:00
Autechre d6169a11fd Merge pull request #11331 from valadaa48/odroidgo2_max_pads
ODROIDGO2 DEFAULT_MAX_PADS 1
2020-09-14 10:33:25 +02:00
valadaa48 9ef2df242b ODROIDGO2 DEFAULT_MAX_PADS 1 2020-09-14 00:17:26 -04:00
twinaphex 80e4524878 Turn menu_entry_init into macro 2020-09-13 09:03:21 +02:00
twinaphex 2e87e3bc64 (Menu drivers) Start using direct entry_action function instead
of going through wrapper functions
2020-09-13 08:48:30 +02:00
twinaphex c83589fa16 Cleanups to menu_entry_get 2020-09-13 08:05:50 +02:00
twinaphex ba9ad1057f Get rid of menu_entry_get_rich_label/menu_entry_get_value 2020-09-12 18:48:22 +02:00
twinaphex ef8f51dbbc Cleanup 2020-09-12 10:08:36 +02:00
twinaphex 59acce5035 (RGUI) Make sure entry_value is correct 2020-09-12 09:58:23 +02:00
twinaphex d416974f52 Backport some RGUI efficiency nits
(https://github.com/neil4/RetroArch-Lite/commit/1499dbc0c69dffef3272f0d24f2d764649acd7e6)
2020-09-12 09:40:32 +02:00
Autechre c78055b5de Merge pull request #11325 from jdgleaver/default-overlay
(Mobile) Set default overlay to 'neo-retropad'
2020-09-12 04:15:31 +02:00
alphanu1 cb404b676d Fix seg faults 2020-09-11 18:54:17 +01:00
jdgleaver eda2753cb3 (Mobile) Set default overlay to 'neo-retropad' 2020-09-11 18:08:48 +01:00
alphanu1 897ea6aff3 Fix for bad res name 2020-09-11 18:04:40 +01:00
Autechre e6b3e21f5a Merge pull request #11324 from jdgleaver/overlay-fixes
Miscellaneous overlay fixes
2020-09-11 18:52:19 +02:00
alphanu1 7b2588c721 Fix mem compile errors 2020-09-11 17:31:17 +01:00
jdgleaver 55b6d8ba15 Miscellaneous overlay fixes 2020-09-11 17:00:44 +01:00
alphanu1 d7d03a8759 Clean up resources to reduce memory leaks 2020-09-11 16:59:38 +01:00
alphanu1 afc3badd72 Fixed Crash On Core Load 2020-09-11 16:30:43 +01:00
alphanu1 dc19dd3db4 Closing XDisp to reduce mem leaks 2020-09-11 16:17:46 +01:00
alphanu1 877408adda Fixed Missing Variable 2020-09-11 15:57:56 +01:00
alphanu1 fb058b7398 Merge pull request #12 from alphanu1/alphanu1-patch-10
CRTSwitchRes improvements and Core Load Chrash Fix
2020-09-11 15:41:30 +01:00
alphanu1 e5b4fb4c7c CRTSwitchRes improvements and Core Load Chrash Fix 2020-09-11 15:39:05 +01:00
twinaphex b4bbad494a (drivers_joypad) Cleanups to wiiu_joypad and xdk_joypad 2020-09-11 15:58:44 +02:00
twinaphex 99cff42988 (udev_joypad) Struct reordering, alignment 2020-09-11 15:53:18 +02:00
Autechre 49be963dd1 Merge pull request #11320 from libretro/revert-11315-master
Revert "CRTSwitchRes Improvements (removal of system calls)"
2020-09-11 15:15:17 +02:00
Autechre daf6843cd3 Revert "CRTSwitchRes Improvements (removal of system calls)" 2020-09-11 15:15:07 +02:00
twinaphex a21d09addc Revert "(dispserv_x11.c) Cleanups"
This reverts commit e27b314afb.
2020-09-11 15:14:22 +02:00
twinaphex 6fd1485c34 Revert "Turn g_monitor_index into static global"
This reverts commit 65f5544a7e.
2020-09-11 15:14:11 +02:00
twinaphex c6fa9c6720 Revert "Add header"
This reverts commit 1b9c906d69.
2020-09-11 15:14:04 +02:00
twinaphex 85515b239f Revert "Get rid of this unused variable"
This reverts commit bcfd4a3cd6.
2020-09-11 15:13:48 +02:00
twinaphex fb3d8a634b Revert "(dispserv_x11) Cleanups"
This reverts commit 3d09bacb93.
2020-09-11 15:13:42 +02:00
twinaphex 6f6b15aedd (drivers_display) Cleanups 2020-09-11 14:21:09 +02:00
twinaphex 6a82772b72 Revert "Avoid having to call expensive matrix identity functions"
This reverts commit 7a87917c58.
2020-09-11 14:16:12 +02:00
twinaphex 7a87917c58 Avoid having to call expensive matrix identity functions 2020-09-11 14:06:42 +02:00
twinaphex bac1f1fd51 Cleanup 2020-09-11 13:48:23 +02:00
twinaphex 343fef1264 (drivers_display) Cleanups 2020-09-11 13:46:35 +02:00
twinaphex 60b26bd490 (drivers_display) cleanups 2020-09-11 13:19:07 +02:00
twinaphex ab517428fd Reorder structs, alignment 2020-09-11 12:53:18 +02:00
twinaphex 72f1ff0f4b Reorder structs, alignment 2020-09-11 12:40:19 +02:00
twinaphex 7c36e615c2 (MFI_joypad) Cleanups 2020-09-11 12:39:05 +02:00
twinaphex ab9202c0aa Cleanups 2020-09-11 12:35:14 +02:00
twinaphex 0c45135160 (ps2_joypad) Cleanups 2020-09-11 12:32:06 +02:00
Autechre b122f314d4 Merge pull request #11310 from sonninnos/winraw-product-log
(WINRAW) Product string init logging
2020-09-11 11:58:40 +02:00
twinaphex 47ad4da310 Don't free userdata for these drivers inside the destroy function
as they don't have userdata
2020-09-11 11:50:00 +02:00
twinaphex 2c97878851 (Input drivers) Cleanups - if we don't need userdata and it's just
empty then just pass (void*)-1 to init function
2020-09-11 11:45:01 +02:00
twinaphex 3d09bacb93 (dispserv_x11) Cleanups 2020-09-11 11:37:08 +02:00
twinaphex bcfd4a3cd6 Get rid of this unused variable 2020-09-11 08:22:13 +02:00
twinaphex 1b9c906d69 Add header 2020-09-11 08:20:21 +02:00
twinaphex 65f5544a7e Turn g_monitor_index into static global 2020-09-11 08:15:14 +02:00
twinaphex e27b314afb (dispserv_x11.c) Cleanups 2020-09-11 08:13:33 +02:00
Autechre 5640a5b512 Merge pull request #11315 from alphanu1/master
CRTSwitchRes Improvements (removal of system calls)
2020-09-11 07:29:19 +02:00
Autechre d8dd2ccb27 Merge pull request #11316 from soarqin/master
fix over-translating codes for window ClassName, as an additional fix…
2020-09-11 07:28:42 +02:00
Autechre be91cec1c6 Merge pull request #11318 from sonninnos/fix-playlist-history
Fix playlist history size
2020-09-11 07:27:56 +02:00
Tony Jansson d610233564 Fix playlist history size 2020-09-11 02:03:59 +03:00
Tony Jansson 36e286e841 (WINRAW) Mouse product string init logging 2020-09-11 00:47:44 +03:00
Soar Qin 728c2b3af4 fix over-translating codes for window ClassName, as an additional fix to 3c6552b 2020-09-11 01:38:58 +08:00
Ben 42c22df72a Code cleanup 2020-09-10 14:44:49 +01:00
Ben 00ba1646c6 Merge remote-tracking branch 'upstream/master'
Upstream
2020-09-10 14:37:17 +01:00
alphanu1 ebef4d3887 Merge pull request #10 from alphanu1/alphanu1-patch-6
CRTSwirchRes Improvements
2020-09-10 14:13:21 +01:00
alphanu1 28463a9729 CRTSwirchRes Improvements
Removed all system call. Switching now only uses RandR Library.

Resolutions checks to prevent conflicts and crashes.

Closing X11 server now runs a clean up to removes all resolutions installed.
2020-09-10 13:52:31 +01:00
Autechre ff4fe25488 Merge pull request #11313 from justinweiss/remove-trailing-backslash
Remove an extra backslash in Makefile.common
2020-09-10 07:28:50 +02:00
Justin Weiss 65fa50c2a6 Remove an extra backslash in Makefile.common 2020-09-09 22:26:22 -07:00
Autechre 33a04a794f Merge pull request #11312 from justinweiss/3ds-enable-threading
[3DS] Enable threading and add a threaded audio driver
2020-09-10 06:50:12 +02:00
Autechre 2d3c63f545 Merge pull request #11248 from justinweiss/update-libctru
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
Autechre be285e1f74 Merge pull request #11311 from justinweiss/3ds-file-buffering
[3DS] Increase file buffer size and savestate chunk size
2020-09-10 06:18:00 +02:00
Justin Weiss fb9aa961b7 [3DS] Increase file buffer size and savestate chunk size 2020-09-09 18:29:47 -07:00
Autechre 8f60e63527 Merge pull request #11307 from sonninnos/close-content-hotkey
Hotkey for Close Content / Unload Core
2020-09-09 06:26:49 +02:00
Autechre 02afd06f5b Merge pull request #11305 from jdgleaver/overlay-config
Overlay configuration improvements
2020-09-09 06:25:54 +02:00
Autechre 87708ef123 Merge pull request #11306 from jdgleaver/mem-leak-fix
Fix string_list memory leaks
2020-09-09 06:25:03 +02:00
Tony Jansson eb5e5b546c Hotkey for Close Content 2020-09-08 22:12:42 +03:00
jdgleaver 5a0dc5524d Fix string_list memory leaks 2020-09-08 14:58:49 +01:00
jdgleaver b8ea4fd54e Overlay configuration improvements 2020-09-08 13:37:51 +01:00
m4xw 59f90ddb28 Add basic GitLab CI/CD Integration
Currently for Windows x64, Linux x64, Nintendo Switch (libnx)
2020-09-07 17:26:41 +02:00
Autechre 151f0f5b63 Merge pull request #11293 from driver1998/d3d9_hlsl
General crash fixing
2020-09-07 14:31:25 +02:00
Autechre 2d6c7c94c4 Merge pull request #11292 from th-in-gs/XK-PC2004-controller-fix
Allow controllers with no/empty names to work.
2020-09-07 14:30:47 +02:00
driver1998 9cf71619d3 GDI: use custom BITMAPINFO struct to avoid malloc 2020-09-07 12:36:43 +08:00
driver1998 8d82c7b08f VS2019 solution: revert test changes 2020-09-07 11:03:24 +08:00
driver1998 fb00bf8602 gdi: Fix crashing 2020-09-07 10:55:25 +08:00
driver1998 693162f080 VS2019 solution: Use v142 toolchain for all targets 2020-09-07 10:54:51 +08:00
driver1998 a4dec6e226 d3d9: "Fix" the HLSL render chain
It won't get you very far, but at least it won't crash.
Needs HAVE_HLSL and HAVE_D3DX defines and DirectX SDK
2020-09-07 10:13:41 +08:00
driver1998 3c6552ba4d msg_hash_chs: Don't translate MSG_PROGRAM, prevent a crash on startup 2020-09-07 10:13:41 +08:00
James Montgomerie f83f706565 Make style of if statment conform to the one already in use in the file/ 2020-09-06 18:36:32 -07:00
James Montgomerie 5c58c6969e Allow controllers with no/empty names to work. 2020-09-06 18:24:32 -07:00
Autechre 6f092c55a4 Merge pull request #11290 from matthewbauer/add-extra-uinput-keys
Map libcec-daemon keys to RETROK
2020-09-07 02:43:51 +02:00
Matthew Bauer 210dcfbd8c Map libcec-daemon keys to RETROK
From https://github.com/bramp/libcec-daemon, we have some keys that
aren’t recognized by RetroArch right now. So we can map them to actual
RETROK_ codes. They are:

- KEY_EXIT -> RETROK_CLEAR
- KEY_OK -> RETROK_RETURN
- KEY_SELECT -> RETROK_RETURN

See
https://github.com/bramp/libcec-daemon/blob/fe9df5ddf7356daa521f893c16872a09c8e6fb59/src/main.cpp#L233-L312
for a full list
2020-09-06 16:01:12 -05:00
twinaphex e2e9d0fbb6 Cleanup 2020-09-05 20:30:33 +02:00
twinaphex 09423bf272 Fix C89_BUILD issue 2020-09-05 20:29:57 +02:00
twinaphex 46b3f3c50c Move this outside of the header and into menu_setting.c 2020-09-05 20:27:29 +02:00
twinaphex 5f2688c4cf Cleanup 2020-09-05 19:37:31 +02:00
Autechre 6f02318c0f Merge pull request #11287 from jdgleaver/play-store-modules
(Android) Set preliminary list of 50 cores to include in Play Store builds
2020-09-05 16:50:43 +02:00
Autechre 09fc37c724 Merge pull request #11286 from jdgleaver/static-libretro_path
(Salamander/static builds) Move 'libretro_path' value from 'retroarch.cfg' to independent config file
2020-09-05 16:50:29 +02:00
jdgleaver e8531a61e0 (Android) Set preliminary list of 50 cores to include in Play Store build 2020-09-05 13:36:02 +01:00
jdgleaver a39d6240a6 (Salamander/static builds) Move 'libretro_path' value from 'retroarch.cfg' to independent config file 2020-09-05 13:23:20 +01:00
twinaphex 33578eda08 Cleanup 2020-09-05 10:14:19 +02:00
twinaphex cf02814fd4 Remove unused apple_key_name_map 2020-09-05 10:13:06 +02:00
twinaphex 32d075df79 Start decoupling joypad destruction from input driver destruction 2020-09-05 08:56:28 +02:00
twinaphex aa95de57db Cleanups - make sure we are consistent with NULL pointer dereferences 2020-09-05 08:46:28 +02:00
twinaphex ef57f9de31 Cleanups 2020-09-05 08:35:33 +02:00
twinaphex a41262f444 (Winraw input) Alignment changes 2020-09-05 07:29:37 +02:00
twinaphex f7dd849156 (Winraw) Cleanup winraw_grab_mouse 2020-09-05 07:28:52 +02:00
twinaphex a05e16e398 (UWP) uwp_input_next_frame - change function signature so we
can diretly insert this into the input driver's 'poll' function
callback
2020-09-05 07:23:49 +02:00
twinaphex 7f80eb3477 (Winraw) Get rid of more static global state 2020-09-05 07:14:55 +02:00
twinaphex 7244b08db1 (Winraw) No longer require keyboard state to be copied over
from intermediary buffer to buffer in every poll function call
2020-09-05 07:14:55 +02:00
Autechre 2a374755f4 Merge pull request #11284 from sonninnos/dinput-mousegrab-fix
Fix dinput mouse grab crash without mouse
2020-09-05 01:18:50 +02:00
Tony Jansson 178a701332 Fix dinput mouse grab crash without mouse 2020-09-05 01:40:15 +03:00
Autechre 69fb4414c9 Merge pull request #11283 from m4xw/master
Fix Switch Audio Issues
2020-09-04 21:28:37 +02:00
M4xw bad97e29d2 Fix Regression caused by 023fd4f3 2020-09-04 20:56:26 +02:00
M4xw 42e38692d2 [Libnx] Use -fcommon 2020-09-04 20:08:55 +02:00
twinaphex d7c6901151 (3DS) Fix crashing issues 2020-09-04 19:38:39 +02:00
Autechre 276fda641b Merge pull request #11280 from Kert/patch-1
[Wii] Added HID support for HORI mini wired ps4 gamepad
2020-09-04 17:54:04 +02:00
Sergei Nikitin b1f8075743 Add accidentally missing change to Makefile 2020-09-04 18:34:33 +06:00
Sergei Nikitin a57d43dbe7 Remove accidentally added file 2020-09-04 18:05:29 +06:00
Sergei Nikitin 7475f6230a [Wii] Added HID support for HORI mini wired ps4 gamepad 2020-09-04 17:50:10 +06:00
twinaphex 812a5b541b Remove input_get_ptr 2020-09-04 07:27:28 +02:00
twinaphex 43e75ce741 (menu_displaylist_parse_playlists) Use non-heap allocated
string list functions
2020-09-04 06:35:14 +02:00
twinaphex 318ac1f667 (filebrowser_parse) Use non-heap allocated string_list functions 2020-09-04 06:29:30 +02:00
Autechre 5ce53c3c01 Merge pull request #11277 from valadaa48/oga_gfx_round_width
oga_gfx: round width to nearest integer when scaling
2020-09-04 04:59:31 +02:00
twinaphex 5fdf0c818d Cleanups 2020-09-04 04:15:46 +02:00
twinaphex 91d78c1e9f video_shader_read_reference_path - simplify 2020-09-04 04:12:51 +02:00
twinaphex 09f72c1465 Turn function static 2020-09-04 04:07:29 +02:00
valadaa48 405b987986 oga_gfx: round width to nearest integer when scaling 2020-09-03 21:53:21 -04:00
twinaphex 88c0024a52 Cleanup video_shader_read_reference_path 2020-09-04 03:49:41 +02:00
twinaphex 4ca691acc9 Cleanup 2020-09-04 03:32:25 +02:00
twinaphex 7af07def7e Make sure values are float 2020-09-04 03:28:27 +02:00
twinaphex 9f306131d2 input_keyboard_line - don't put this on heap 2020-09-04 03:08:02 +02:00
twinaphex e16c3b96af Remove is_input_keyboard_display_on 2020-09-04 02:56:58 +02:00
twinaphex b4b77fd6b0 Refactor out input_keyboard_ctl 2020-09-04 02:37:58 +02:00
Autechre 2f66e3bfd9 Merge pull request #11274 from jdgleaver/qt-last-shader-dir
(Qt) Add support for 'Remember Last Used Shader Directory' option
2020-09-04 02:19:47 +02:00
jdgleaver c2ad859f2f (Qt) Remove duplicate VIDEO_SHADER_REMEMBER_LAST_DIR option 2020-09-03 11:51:53 +01:00
jdgleaver 0be40b0d60 (Qt) Add support for 'Remember Last Used Shader Directory' option 2020-09-03 11:22:24 +01:00
twinaphex 400df12c1e Start using error_enum 2020-09-03 04:10:37 +02:00
twinaphex ba2b5ab7bc Fix game mode focus 2020-09-03 01:59:14 +02:00
twinaphex def2b3ad30 Fix build for targets with no HAVE_MENU 2020-09-03 01:57:08 +02:00
Autechre b7fff53d16 Merge pull request #11272 from jdgleaver/play-feature-delivery-switch
(Android/Play Store Builds) Add option to switch all installed cores to Play Store versions
2020-09-03 01:55:39 +02:00
twinaphex e09f1d65b5 Cleanups 2020-09-03 00:44:22 +02:00
twinaphex e2bd3d75bc Cleanup 2020-09-03 00:38:19 +02:00
jdgleaver bd80f02f11 (Android/Play Store Builds) Add option to switch all installed cores to Play Store versions 2020-09-02 17:13:03 +01:00
twinaphex ad72cac40d (PSP Input driver) Cleanups 2020-09-02 18:05:04 +02:00
twinaphex 454eff8688 (Emscripten) Cleanup 2020-09-02 17:56:01 +02:00
twinaphex 3f566fd54e Don't implement input_state for input drivers that don't need it 2020-09-02 17:37:01 +02:00
twinaphex 45cb980a3d Check if input_state is implemented first 2020-09-02 17:30:04 +02:00
twinaphex f30bc03969 Only use input_state_wrap for calls where RETRO_DEVICE_JOYPAD will
be used, don't use it for the specialized input state calls for
other devices
2020-09-02 15:53:26 +02:00
twinaphex 76df818c45 Put this behind HAVE_MFI ifdefs 2020-09-02 15:32:15 +02:00
twinaphex 4cbee42692 Revert "(RWebInput) We're going to assume joypad driver code is not"
This reverts commit 6b63b392ea.
2020-09-02 15:31:32 +02:00
twinaphex 6b63b392ea (RWebInput) We're going to assume joypad driver code is not
needed for RARCH_DEVICE_ANALOG
2020-09-02 15:28:16 +02:00
twinaphex 1c5f4e1dee Start cutting down on input_state - move all joypad driver code up to
higher-level retroarch.c
2020-09-02 15:26:03 +02:00
twinaphex f10832b0d3 Create input_state_wrap 2020-09-02 14:39:58 +02:00
twinaphex a72759aba0 (input drivers) Cleanups 2020-09-02 05:26:24 +02:00
twinaphex 826fbf6bdf Cleanups 2020-09-02 05:09:37 +02:00
twinaphex d0af46d460 Cleanup 2020-09-02 01:29:27 +02:00
twinaphex 55378ae9cc Cleanups 2020-09-02 01:22:34 +02:00
twinaphex 2fde8c21a9 Remove set_rumble function from input driver 2020-09-02 00:38:11 +02:00
twinaphex 17cf1ae58f Dehardcode some strings 2020-09-01 21:51:11 +02:00
twinaphex acc0f2143f Change input_key_pressed so we no longer need to pass joypad
to the poll function callback
2020-09-01 21:43:39 +02:00
Autechre acd3b1a327 Merge pull request #11271 from yoshisuga/ios-add-back-flags
[iOS/tvOS] Add back missing preprocessor flags to Xcode Metal project
2020-09-01 21:30:23 +02:00
Yoshi Sugawara fd95ea6704 [iOS/tvOS] Add back missing preprocessor flags to support screenshots, rewind, patching, rwav 2020-09-01 08:56:19 -10:00
twinaphex 0eeb0b37b1 Hopefully fix iOS build 2020-09-01 20:30:53 +02:00
twinaphex 197f6a7763 Struct reordering, alignment 2020-09-01 19:59:56 +02:00
twinaphex e810b0251a (GL) Cleanups 2020-09-01 19:54:41 +02:00
Autechre 7dff69808a Merge pull request #11270 from jdgleaver/buildfix
(dir_init_shader/dir_check_shader) DISABLE_MENU=1 buildfix
2020-09-01 18:35:06 +02:00
jdgleaver b73c60a8fc (dir_init_shader/dir_check_shader) DISABLE_MENU=1 buildfix 2020-09-01 17:26:29 +01:00
twinaphex 047efd2cd4 Revert "Resync"
This reverts commit f28056364a.
2020-09-01 17:43:22 +02:00
twinaphex 1d67ae3c63 Fix Android error 2020-09-01 17:41:05 +02:00
twinaphex f28056364a Resync 2020-09-01 17:06:52 +02:00
Autechre b216ff2029 Update CHANGES.md 2020-09-01 15:53:56 +02:00
Autechre 6b61d26755 Merge pull request #11269 from jdgleaver/shader-hotkeys
Use last selected shader preset directory when changing shaders via previous/next hotkeys
2020-09-01 15:53:29 +02:00
jdgleaver c5072b6477 Use last selected shader preset directory when changing shaders via previous/next hotkeys 2020-09-01 13:41:10 +01:00
Autechre 2d512cea80 Merge pull request #11268 from farmerbb/play_store_misc_fixes
[Android] Miscellaneous fixes for Play Feature Delivery
2020-09-01 07:43:40 +02:00
twinaphex 0cdb710f80 Cleanups 2020-09-01 07:31:08 +02:00
twinaphex eb1ab2e429 (Ozone) Cleanups 2020-09-01 07:26:04 +02:00
twinaphex 1e842c9701 Turn this static 2020-09-01 06:31:20 +02:00
twinaphex 77f3e2b2ef (Ozone) Cleanups 2020-09-01 05:14:19 +02:00
twinaphex 0ffb988554 (Ozone) Cleanup 2020-09-01 05:11:28 +02:00
twinaphex e1f16f1855 (Ozone) remove abstraction layer ozone_draw_text - just call
gfx_display_draw_text directly
2020-09-01 05:06:21 +02:00
twinaphex 0cba3104be Turn array static 2020-09-01 04:15:20 +02:00
twinaphex 320cc443a8 Reorder structs, alignment 2020-09-01 01:28:33 +02:00
twinaphex cb86be9aef Cleanups 2020-09-01 01:26:32 +02:00
twinaphex 1654d0daf5 Cleanup 2020-09-01 01:22:35 +02:00
twinaphex ab6a896c64 Cleanup some hardcoded strings 2020-09-01 01:18:30 +02:00
twinaphex 07f46bad2b Remove unused event loop glue functions for menu entries 2020-09-01 00:42:24 +02:00
twinaphex ce6e5d6f08 Reorder structs, alignment 2020-09-01 00:25:35 +02:00
twinaphex 521050cf79 Remove gfx_widgets_get_pure_white 2020-08-31 23:46:24 +02:00
Autechre 2e49a3ae18 Merge pull request #11265 from WeedyWeedSmoker/Language-translations-fix
International: Language translations fix
2020-08-31 23:18:24 +02:00
Braden Farmer cf043f083b [Android] Miscellaneous fixes for Play Feature Delivery 2020-08-31 13:57:58 -06:00
twinaphex 565fd3496e Remove keyboard_event_apple.c 2020-08-31 20:53:17 +02:00
twinaphex bfb2961fb3 Simplify keyboard_event_apple.c 2020-08-31 20:48:02 +02:00
Autechre bf7a184331 Merge pull request #11266 from jdgleaver/play-feature-delivery-fix
(Android) Play Store builds: Do not resolve symlinks when handling core paths
2020-08-31 20:05:38 +02:00
Autechre 87e35d56ae Merge pull request #11264 from libretro/refact-joypad
Refactor joypad/input drivers
2020-08-31 20:04:18 +02:00
twinaphex a82bff2055 (Wayland) Fix serious warnings - input struct pointer was being passed
to function that requires gfx struct pointer
2020-08-31 19:56:03 +02:00
Autechre fe81f0ad4e Update wayland_input.c 2020-08-31 19:27:37 +02:00
Autechre 71fbd8bdae Update x11_input.c 2020-08-31 14:22:07 +02:00
Autechre 094ae69b09 Update x_vk_ctx.c 2020-08-31 14:17:36 +02:00
Autechre 0e5cceb443 Update wayland_input.c 2020-08-31 14:08:41 +02:00
twinaphex 6b756986d5 (UDev) Buildfix for platforms that don't define UDEV_XKB_HANDLING 2020-08-31 14:04:36 +02:00
jdgleaver 20230ec625 (Android) Play Store builds: Do not resolve symlinks when handling core paths 2020-08-31 12:13:49 +01:00
Weedy Weed Smoker aee9c1f82a Language translations fix 2020-08-31 11:09:24 +07:00
twinaphex 201f119c51 Rewrite ozone_draw_text 2020-08-31 04:13:23 +02:00
twinaphex 147d420885 (XMB) Cleanups 2020-08-31 04:04:37 +02:00
twinaphex d7522aebe0 (Cocoa) Struct reordering, alignment 2020-08-31 03:40:36 +02:00
twinaphex fe6d047bfe (Udev) Cleanups 2020-08-31 03:38:51 +02:00
twinaphex 0adee503f2 (Android) Don't do memcpy copy anymore 2020-08-31 03:11:52 +02:00
twinaphex 202e460be7 (Android) Simplify code 2020-08-31 02:54:12 +02:00
twinaphex a217ef393f Fix pointer controls 2020-08-31 02:43:48 +02:00
twinaphex 0cb0a08923 (Android) Buildfix 2020-08-31 02:17:18 +02:00
Twinaphex d7559cdb18 Cleanup some unused variable warnings 2020-08-31 02:12:31 +02:00
twinaphex 6f92c56ca3 Simplify input drivers 2020-08-31 02:07:43 +02:00
twinaphex 06ac5217ac Simplify dinput.c 2020-08-31 00:32:49 +02:00
twinaphex 7b0fe59722 Get rid of duplicate dinput_hybrid_joypad.c 2020-08-30 19:41:44 +02:00
twinaphex ea17294ff1 Update copyright 2020-08-30 19:04:50 +02:00
twinaphex 9fdbcae3a8 Update copyrights; person was not involved in this file 2020-08-30 19:00:44 +02:00
twinaphex 82c558e5ce Update copyrights 2020-08-30 18:59:57 +02:00
twinaphex 6c6bca9db9 Update cocoa_input.c 2020-08-30 18:48:58 +02:00
twinaphex d4d8b6934a Put keyboard_mapping_blocked into p_rarch / rarch struct
instead
2020-08-30 18:47:29 +02:00
twinaphex 035efa5136 Inline pressed_analog functions into input_state function itself 2020-08-30 16:57:04 +02:00
twinaphex e119d3c98e Further cleanups/standardizations to analog_pressed 2020-08-30 16:38:53 +02:00
twinaphex 97319d4f98 Standardize pressed_analog functions 2020-08-30 16:19:11 +02:00
twinaphex 262e68be3b Standardize x_pressed_analog 2020-08-30 15:52:58 +02:00
twinaphex 1a567dfbc9 Cleanup dinput_pressed_analog 2020-08-30 15:43:12 +02:00
twinaphex d801dab8b4 Cleanups 2020-08-30 14:41:45 +02:00
twinaphex 56b077cf4a (Vita driver) Cleanups 2020-08-30 14:36:39 +02:00
twinaphex adf1322cbb (DInput joypad) Cut down on code duplication 2020-08-30 06:53:16 +02:00
twinaphex 219793a1db (GX) Cleanups 2020-08-30 05:50:07 +02:00
twinaphex 5f08605680 Refactor joypad drivers 2020-08-30 05:29:32 +02:00
twinaphex 721b3039e4 (UDev) Buildfix 2020-08-30 04:52:00 +02:00
twinaphex a244a39626 Cleanups 2020-08-30 00:25:21 +02:00
twinaphex 1e223733fc Add joypad_rumble function in Android joypad driver 2020-08-29 23:47:56 +02:00
twinaphex 71fb5ac941 Clear state in joypad_destroy 2020-08-29 23:35:11 +02:00
twinaphex b48b751a3c Rewrite set_rumble function 2020-08-29 23:33:13 +02:00
twinaphex 0d9b2eef4f (Android) Buildfix #2 2020-08-29 22:50:51 +02:00
twinaphex b133ea3296 (XInput) add ifdef 2020-08-29 22:48:28 +02:00
twinaphex cd972e0e4e (Android) Buildfix 2020-08-29 22:47:38 +02:00
twinaphex c5099a312c Reimplement XDK set_rumble function 2020-08-29 22:25:51 +02:00
twinaphex 84a312535e Cleanup set_rumble functions 2020-08-29 22:22:26 +02:00
twinaphex 48bdbe8dec No need to call this 2020-08-29 22:15:44 +02:00
twinaphex 2b393e2425 move input_key_pressed to retroarch.c 2020-08-29 22:09:29 +02:00
twinaphex b3744c3126 Put input_jpyad_init_driver last in 'input' callback function 2020-08-29 20:46:42 +02:00
twinaphex bf06d67a30 Cut down on some extra ifdefs 2020-08-29 19:59:04 +02:00
twinaphex 3ff521ab0b Simplify winraw_callback 2020-08-29 19:43:53 +02:00
twinaphex d9bfd4c38f Silence warnings 2020-08-29 19:27:30 +02:00
Autechre ef064d96f0 Merge pull request #11258 from farmerbb/audio_manager_crash_fixes
[Android] Fix possible crashes from AudioManger properties returning null
2020-08-29 19:24:33 +02:00
Braden Farmer fd23b9ea5b [Android] Fix possible crashes from AudioManger properties returning null 2020-08-29 10:42:12 -06:00
twinaphex 11719badcb Simplify mb_to_mb_string_alloc 2020-08-29 05:21:48 +02:00
Autechre 6fe1f97fc8 Merge pull request #11255 from jdgleaver/play-feature-delivery
(Android/Play Store) Add frontend support for core installation via Play Feature Delivery
2020-08-29 04:31:20 +02:00
twinaphex 8999d6e4a6 (DInput) Set a userdata struct for the window message loop properly -
get rid of input_get_data - we no longer need it
2020-08-29 03:41:33 +02:00
twinaphex fa63ada1d3 Cleanup 2020-08-29 02:52:55 +02:00
twinaphex c2565cf87f Cleanups 2020-08-29 02:42:13 +02:00
twinaphex cae5328294 (task_autodetect_blissbox) Cleanups 2020-08-29 02:37:05 +02:00
Autechre 917aba4800 Merge pull request #11256 from farmerbb/play_feature_delivery_fixes
[Android] Minor fixes for Play Feature Delivery
2020-08-29 01:15:54 +02:00
Braden Farmer 34a8c980ad [Android] Minor fixes for Play Feature Delivery 2020-08-28 16:04:44 -06:00
twinaphex 93f9d69742 Cleanups 2020-08-28 20:42:55 +02:00
twinaphex 1c0f79442b Cleanups 2020-08-28 20:40:06 +02:00
twinaphex 7c61a6527f (Wayland) Reorder structs, alignment 2020-08-28 20:38:25 +02:00
twinaphex abb6367150 Remove unused apple_keyboard_find_any_key 2020-08-28 20:05:34 +02:00
twinaphex 88a93b0053 Cleanups 2020-08-28 19:59:31 +02:00
twinaphex ace0e3eb90 Cleanups 2020-08-28 19:58:13 +02:00
twinaphex cdf7516c0c (Cocoa) Optimize button bitmask code - do a bitwise OR on the output
of both apple joypad drivers
2020-08-28 19:06:43 +02:00
twinaphex 708a029665 (HID) Hardcode 'hid' name for passing to input_autoconfig_connect 2020-08-28 19:01:24 +02:00
twinaphex a549805ad8 Fix low-level DS4 pad regression 2020-08-28 18:53:10 +02:00
twinaphex e725b7c013 Revert "(Cocoa) Optimize button bitmask code - do a bitwise OR on"
This reverts commit 00bea7f3b2.
2020-08-28 17:33:15 +02:00
twinaphex 97ebed7c0e Revert "(Cocoa) Buildfix"
This reverts commit 2c07234a5d.
2020-08-28 17:32:57 +02:00
jdgleaver 4799d2d955 (Android/Play Store) Add frontend support for core installation via Play Feature Delivery 2020-08-28 16:30:54 +01:00
Twinaphex 2c07234a5d (Cocoa) Buildfix 2020-08-28 17:10:31 +02:00
Autechre a4f9bb7351 Update CHANGES.md 2020-08-28 16:51:27 +02:00
Autechre 39ae73e3b8 Update CHANGES.md 2020-08-28 16:50:32 +02:00
twinaphex 00bea7f3b2 (Cocoa) Optimize button bitmask code - do a bitwise OR on
the output of both apple joypad drivers
2020-08-28 16:48:08 +02:00
Autechre b312cc9e12 Merge pull request #11251 from ferrazpedro/notch_support
Implementation of fullscreen over notch function.
2020-08-28 15:48:51 +02:00
Autechre b8410c03e9 Merge pull request #11253 from Tatsuya79/patch-1
qt: add missing osd settings
2020-08-28 15:48:32 +02:00
Tatsuya79 fdeb59847e qt: add missing osd settings 2020-08-28 12:00:56 +02:00
twinaphex d02d9573ab Silence unused variable warnings 2020-08-28 05:05:15 +02:00
Justin Weiss f53c137459 [3DS] Enable threading 2020-08-27 19:36:39 -07:00
twinaphex 4d1cfa9c41 Make the 'raw' versions the generic function for the message loop
callback - this way it's reused for SDL2 input driver too
2020-08-28 02:55:39 +02:00
Pedro 524828bc38 Variable incorrectly not changed before 2020-08-27 21:33:43 -03:00
twinaphex 15cb55e0bb (DInput) Style nits 2020-08-28 02:27:55 +02:00
Pedro 47b6332c28 Cleanup of redundant variable 2020-08-27 21:23:50 -03:00
twinaphex 32279c3a70 Split up wnd_proc_common_internal into two - one for dinput,
one for raw
2020-08-28 02:21:13 +02:00
Pedro b6655034ef Implementation of fullscreen over notch function. 2020-08-27 20:41:30 -03:00
twinaphex 73fc7c9873 Rename create_graphics_context to create_wgl_context 2020-08-28 01:29:23 +02:00
twinaphex d249f83c85 (Win32) Message loop - more cleanups 2020-08-28 01:20:54 +02:00
twinaphex 5f2e810879 Deduplicate code in WndProc function callback implementations 2020-08-28 00:38:15 +02:00
twinaphex be3345b766 Reorder structs for alignment 2020-08-27 22:17:51 +02:00
Justin Weiss cb2c2c530c Update libretro-common ctr_pthread.h
Older devkitARM toolchains incorrectly prevent _pthreadtypes.h from being included. Newer versions include it.

In order to make a version of ctr_pthread.h that works under both old and new toolchains, the typedefs are guarded by a define in _pthreadtypes.h that is only active if the other types are defined.

I've also added casts in order to make sure this compiles correctly with the standard pthread.h type definitions.
2020-08-27 08:36:39 -07:00
twinaphex 3f19af45cd Put back early return 2020-08-27 17:29:39 +02:00
twinaphex a0e9d7a829 Cleanup 2020-08-27 17:03:43 +02:00
twinaphex 38805da889 Use config_get_entry instead of config_get_array 2020-08-27 16:52:12 +02:00
twinaphex 8b1338dbb2 (task_autodetect.c) Cleanups 2020-08-27 16:36:34 +02:00
twinaphex 5e60556f97 Use config_get_entry instead of config_get_array to prevent
unnecessary string copying
2020-08-27 16:28:19 +02:00
twinaphex 63b77fb542 Use config_get_entry where possible instead of config_get_array
to prevent string allocation on heap
2020-08-27 16:20:49 +02:00
twinaphex 022fa54236 Nit 2020-08-27 15:22:40 +02:00
twinaphex c51959d45b Make net_http_urlencode thread-safe 2020-08-27 15:21:22 +02:00
twinaphex 8d76b3009e Use config_get_entry instead of config_get_string to avoid
heap allocations
2020-08-27 13:53:51 +02:00
twinaphex cfb14dabf3 Revert "Get rid of some early returns"
This reverts commit 1b04b2452c.
2020-08-27 13:30:06 +02:00
twinaphex 309357e5b2 Cleanups 2020-08-27 13:18:29 +02:00
twinaphex 1b04b2452c Get rid of some early returns 2020-08-27 13:06:51 +02:00
twinaphex 3289401b2f Cleanups 2020-08-27 12:52:03 +02:00
twinaphex 78dd0de912 Cleanup deferred_push_cursor_manager_list - avoid extra string
allocations by using config_get_entry instead
2020-08-27 12:43:13 +02:00
twinaphex 7b30d4eec2 Move macro up in the file 2020-08-27 12:13:21 +02:00
twinaphex 56640bf7c9 (jdgleaver) Cleanups 2020-08-27 12:10:14 +02:00
Justin Weiss 9ae2514009 [3DS] Update to libctru 2.0
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.

Some 2.0 changes addressed rare problems in earlier versions:

- Save / restore stack pointer for init / exit
  Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events

Other changes for 2.0:

- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex b4d26aca9c Turn vulkan_write_quad_vbo into macro 2020-08-27 02:29:32 +02:00
twinaphex 9672d9b12f Cleanup 2020-08-27 02:07:33 +02:00
twinaphex e8a0ea15cd Improve glslang_read_shader_file somewhat 2020-08-26 23:46:16 +02:00
twinaphex 044209bc5a Create string_separate_noalloc 2020-08-26 23:46:16 +02:00
Autechre 1898a4bec5 Merge pull request #11213 from farmerbb/play_feature_delivery
Implement support for Play Store builds using Play Feature Delivery (Java/Gradle)
2020-08-26 21:22:51 +02:00
twinaphex aab3be709c Update CHANGES.md 2020-08-26 20:26:26 +02:00
Autechre df245d4917 Merge pull request #11239 from jdgleaver/overlay-gamepad-hide
Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android)
2020-08-26 20:23:47 +02:00
twinaphex ea6bf9b9fc Cleanup core_info_set_core_lock 2020-08-26 20:22:56 +02:00
twinaphex 143224e09a (task_database_cue) Don't use malloc 2020-08-26 19:46:13 +02:00
twinaphex 00b4d62460 Cleanup 2020-08-26 19:37:07 +02:00
twinaphex 4388303077 video_shader_write_conf_preset - use less mallocs 2020-08-26 19:19:26 +02:00
twinaphex 1118ba09ec video_shader_resolve_current_parameters - don't use malloc 2020-08-26 19:10:43 +02:00
twinaphex 3ff29abbc8 video_shader_parse_pass - don't use malloc 2020-08-26 19:07:36 +02:00
twinaphex ff8daa29a3 Add TODO/FIXME note 2020-08-26 19:02:48 +02:00
twinaphex 603b2bf166 Simplify video_shader_read_conf_preset 2020-08-26 18:54:14 +02:00
twinaphex 6478d20e55 (core_info/UWP) Use non-heap based versions for string_list 2020-08-26 18:43:19 +02:00
twinaphex 61c94fe248 Simplify string_list_new/string_list_initialize 2020-08-26 17:50:18 +02:00
Autechre 6c79df9a8a Merge pull request #11246 from jdgleaver/core-association-fix
Fix 'Set Core Association' regression
2020-08-26 16:54:40 +02:00
jdgleaver 7a07cc1305 Fix 'Set Core Association' regression 2020-08-26 15:18:39 +01:00
Autechre df97af9b35 Merge pull request #11128 from WeedyWeedSmoker/Language-descriptions-update
International: Language descriptions and translation update
2020-08-26 15:34:25 +02:00
twinaphex e6b9420a15 (Input) reorder structs, alignment 2020-08-26 15:32:05 +02:00
twinaphex 13604b047f (Audio) reorder structs/alignment (don't touch Switch audio drivers
for now)
2020-08-26 15:24:33 +02:00
Autechre b546fddf86 Merge pull request #11245 from Alcaro/patch-8
fix compile error
2020-08-26 15:15:48 +02:00
twinaphex e2c277d2ea (libretro-common) Cleanups 2020-08-26 15:13:48 +02:00
twinaphex 74fc0ba494 Buildfix 2020-08-26 15:06:34 +02:00
Alcaro 8c481be09b fix compile error 2020-08-26 15:01:02 +02:00
twinaphex 662e37f670 Replace more instances of string_split 2020-08-26 13:35:05 +02:00
twinaphex fe5307c4ac Use string_split_noalloc instead of string_split 2020-08-26 12:54:51 +02:00
twinaphex 01e5ec94bb Prefer to use string_split_noalloc 2020-08-26 12:41:57 +02:00
twinaphex e67cdb39ae (menu_networking) Use string_split_noalloc 2020-08-26 04:44:40 +02:00
twinaphex 8840410ddb Use string_split_noalloc 2020-08-26 04:39:19 +02:00
twinaphex c7aa6b99e4 (playlist.c) Use string_split_noalloc 2020-08-26 04:27:38 +02:00
twinaphex 86424a0cd8 (video_shader_parse) Use string_split_noalloc 2020-08-26 04:22:18 +02:00
twinaphex 3b555ab508 (gfx_animation) use string_split_noalloc 2020-08-26 04:12:29 +02:00
twinaphex ebe2b869a5 (menu_cbs_deferred_push) Use string_split_noalloc 2020-08-26 03:58:42 +02:00
twinaphex a45b1a5e9c Start using string_split_noalloc 2020-08-26 03:43:09 +02:00
twinaphex 6df62bbccc Create string_split_noalloc 2020-08-26 03:20:42 +02:00
twinaphex a32d027f76 string_list_initialize - call deinitialize when function fails 2020-08-26 02:28:10 +02:00
twinaphex ad61d8ff92 Simplify config_get_entry 2020-08-26 02:17:37 +02:00
twinaphex 54dfaaa3bc Simplify config_get_bool 2020-08-26 01:37:57 +02:00
twinaphex 48f2612223 (config_file) config_set - some of the char arrays were too big
for the type in question
2020-08-25 20:58:55 +02:00
twinaphex a9ffc4991b Reorder structs/alignment 2020-08-25 20:39:06 +02:00
twinaphex 1d53f3ca29 Move static functions to the top 2020-08-25 18:38:12 +02:00
twinaphex 6cc8a2acbd Rewrite config_file_new_from_string 2020-08-25 18:37:14 +02:00
twinaphex d573a802c4 Simplify config_file_new_alloc 2020-08-25 18:12:28 +02:00
twinaphex f454665be2 Optimize config_file_exists 2020-08-25 18:10:32 +02:00
twinaphex 2c0fb6ff6c config_file_parse_line - put sub_conf on stack 2020-08-25 17:54:22 +02:00
twinaphex 6a88b3f20e Cleanup strlen_size 2020-08-25 17:24:03 +02:00
Autechre ed6f32fd80 Merge pull request #11240 from jdgleaver/string_list-safety
(string_list) Add checks to prevent undefined behaviour
2020-08-25 16:59:22 +02:00
jdgleaver 179e77c8b0 (string_list_join_concat) Prevent undefined behaviour if input string buffer is unterminated 2020-08-25 15:54:18 +01:00
twinaphex 79c8a94857 (config_file.c) config_set_string - simplify 2020-08-25 15:50:26 +02:00
twinaphex 7771dbd594 Rename config_file_new_internal to config_file_load_internal 2020-08-25 15:36:26 +02:00
twinaphex cd0a27680a (config_file.c) Cleanup 2020-08-25 15:34:11 +02:00
twinaphex 5a69e6e75c Simplify config_file.c code 2020-08-25 15:29:45 +02:00
twinaphex 915bbc9bcc (menu_displaylist) Cleanup 2020-08-25 14:51:37 +02:00
twinaphex 1e5cea48b0 Lower Discord avatar size 2020-08-25 14:10:40 +02:00
twinaphex 985aca7361 Expand CODING-GUIDELINES 2020-08-25 14:04:41 +02:00
twinaphex 6af6d5eb1c (jdgleaver) Initialize string lists properly to prevent memory leaks 2020-08-25 13:25:27 +02:00
twinaphex ce185d8be6 (DSP IIR) Prevent '-Wmaybe-uninitialized' warnings 2020-08-25 13:21:22 +02:00
twinaphex b7b96fb142 (config_file) Cleanups 2020-08-25 12:39:28 +02:00
twinaphex f18af41876 Cut down on add_sub_conf 2020-08-25 12:29:08 +02:00
twinaphex 1e5ccb7319 Create config_file_get_realpath 2020-08-25 12:20:09 +02:00
jdgleaver cc2e098dab Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android) 2020-08-25 11:12:37 +01:00
Autechre 7e74d830ca Merge pull request #11238 from sonninnos/cheat-max-val
Cheats maximum search value corrections
2020-08-25 01:14:28 +02:00
Tony Jansson 55554a8707 Cheats maximum search value corrections 2020-08-25 01:05:58 +03:00
twinaphex 74a3e5be8a Simplify is_path_accessible_using_standard_io 2020-08-24 23:41:10 +02:00
twinaphex 42a3d433dc Restore this code 2020-08-24 23:25:57 +02:00
twinaphex ceca44b233 Cleanup config_initialize_internal 2020-08-24 23:09:55 +02:00
twinaphex 88f01c51a7 (config_file) Cleanups 2020-08-24 22:57:08 +02:00
Autechre 02fa9abd27 Merge pull request #11237 from guoyunhe/crowdin-20200824
Fetch translations from Crowdin
2020-08-24 22:22:00 +02:00
Guo Yunhe f1235e819b Add instruction to create new languages 2020-08-24 23:17:13 +03:00
Guo Yunhe d87b04e1d2 Fetch translations from Crowdin 2020-08-24 23:13:16 +03:00
twinaphex b681b2af49 config_set_string: simplify 2020-08-24 21:25:55 +02:00
twinaphex a954118faf (config_file) Cleanups 2020-08-24 21:16:25 +02:00
twinaphex 4f29bef56e (config_file) Cleanups 2020-08-24 21:11:41 +02:00
twinaphex 150e96144a Cleanup 2020-08-24 20:40:49 +02:00
twinaphex dd13e6b044 (config_file.c) Use snprintf 2020-08-24 19:39:41 +02:00
twinaphex 24910b6999 (config_file) Simplify config_sort_compare_func 2020-08-24 19:29:24 +02:00
twinaphex 700009216c Use more string_list_initialize/deinitialize 2020-08-24 19:18:54 +02:00
twinaphex 26ec12ddc5 create_string_list_rdb_entry - use string_list_initialize/deinitialize 2020-08-24 19:12:51 +02:00
twinaphex 8a479e6006 Create dir_list_initialize/dir_list_deinitialize 2020-08-24 18:56:25 +02:00
twinaphex cde5d37eb2 Put this behind RPNG_TEST 2020-08-24 18:17:47 +02:00
twinaphex 1f7b338ce0 Reorder structs, alignment 2020-08-24 17:04:33 +02:00
twinaphex 85599b27a5 menu_ctx_bind_t - we don't need retcode 2020-08-24 16:57:09 +02:00
twinaphex ecc54b4d4e (Menu) Put selection_buf_old on stack too 2020-08-24 16:08:09 +02:00
twinaphex 4dec373edc Don't put local string list variables on heap by default 2020-08-24 15:32:32 +02:00
twinaphex 14e99382f1 Update CODING-GUIDELINES 2020-08-24 15:15:33 +02:00
twinaphex 91cfcd1b83 Improve string_list_deinitialize 2020-08-24 15:11:38 +02:00
Autechre 513909a581 Merge pull request #11235 from jdgleaver/generic-message-widget
Improve appearance of 'generic_message' widget
2020-08-24 14:53:29 +02:00
twinaphex 27b7b3dcfe Cleanup 2020-08-24 14:35:25 +02:00
jdgleaver 2a58920e4e Improve appearance of 'generic_message' widget 2020-08-24 13:31:51 +01:00
twinaphex 2452769a80 Cleanup 2020-08-24 14:20:46 +02:00
twinaphex b6f8acbaec (Ozone) Cleanups 2020-08-24 12:58:05 +02:00
twinaphex da210f6702 (XMB) Get rid of forward declaration 2020-08-24 12:49:16 +02:00
twinaphex 64f8a5990c Create fifo_initialize/fifo_deinitialize 2020-08-24 12:17:33 +02:00
twinaphex 9caf3080b1 Cleanup 2020-08-24 12:06:56 +02:00
twinaphex 71708f8ddd (libretro-common) Add msg_queue_initialize/msg_queue_deinitialize 2020-08-24 12:04:56 +02:00
twinaphex e4f99dc648 (ozone) reorder structs, alignment 2020-08-24 10:47:17 +02:00
twinaphex 7a6b9fd1b2 (Ozone) Horizontal list - put on stack - it's already on heap-allocated
struct as is
2020-08-24 10:22:32 +02:00
twinaphex 93fa9a0194 Add file_list_deinitialize - does everything that file_list_free
does except for freeing the passed struct pointer
2020-08-24 01:45:45 +02:00
twinaphex c2a8a0f04e use string_list_initialize/deinitialize in more places 2020-08-24 01:16:14 +02:00
twinaphex ea4a74a005 Use string_list_initialize/deinitialize for core_info.c 2020-08-24 01:02:35 +02:00
twinaphex 0a69d14b11 Reimplement slang_preprocess_parse_parameters 2020-08-24 00:54:24 +02:00
twinaphex cd6e1cf3fa (libretro-common) string_list - add string_list_initialize
and string_list_deinitialize - takes a pointer to initialize
and deinitialize a string list, but importantly does not
implicitly allocate and deallocate the string list pointer
itself. This way, string lists can be put on the stack instead
of always implicitly being put on heap - the struct itself is
small enough to fit on stack
2020-08-24 00:43:55 +02:00
twinaphex 6b3fcf79f0 (DXGI) Turn these into macros 2020-08-24 00:04:12 +02:00
Autechre acb914c186 Merge pull request #11231 from yoshisuga/ios-metal-reenable-cheats
[iOS/tvOS] Add HAVE_CHEATS flag to enable cheats (metal xcode project)
2020-08-23 22:16:59 +02:00
Yoshi Sugawara f10d07fb29 [iOS/tvOS] Add HAVE_CHEATS flag to enable cheats (metal xcode project) 2020-08-23 10:07:55 -10:00
twinaphex ad2c0bb76d (runtime_file.c) Style nits 2020-08-23 21:51:39 +02:00
twinaphex 960039b6da (playlist.c) Cleanups 2020-08-23 21:36:09 +02:00
twinaphex 1c25fbded5 (rcheevos) Cleanups 2020-08-23 21:07:15 +02:00
Autechre 719224c6ab Merge pull request #11229 from Alcaro/patch-7
libretro.h: Fix contradictory comment
2020-08-23 19:37:56 +02:00
Alcaro e4022ab416 libretro.h: Fix contradictory comment
retro_get_system_info() says it can be called even before retro_init(), which means retro_deinit() doesn't need to be called at all. Mentioning deinit() in the struct definition is misleading and incorrect.
2020-08-23 18:29:12 +02:00
twinaphex 86520cbd07 Reorder structs, alignment 2020-08-23 16:02:33 +02:00
twinaphex edd2ef7b92 (cheevos) Try to use snprintf where possible 2020-08-23 15:17:00 +02:00
twinaphex c10d1922ed (rcheevos) Try to use safe versions of strcpy/sprintf where possible 2020-08-23 15:15:34 +02:00
twinaphex b965bb5c48 (rcheevos) Alignment improvements according to CODING-GUIDELINES
document
2020-08-23 15:10:20 +02:00
Autechre 0b2f19e898 Merge pull request #11226 from Jamiras/rcheevos_globals
(cheevos) eliminate exposed variables for tracking hardcore
2020-08-23 15:05:01 +02:00
Jamiras 2f69d2d4ed eliminate exposed variables for tracking hardcore 2020-08-22 12:18:12 -06:00
Autechre 705b2818da Merge pull request #11225 from Tatsuya79/master
qt: add recent settings
2020-08-22 19:15:32 +02:00
Tatsuya79 0dc963d5fe qt: add recent settings 2020-08-22 19:03:14 +02:00
twinaphex 38ac8a1b51 Reorder structs, alignment 2020-08-22 18:10:57 +02:00
Twinaphex a175af4e6a Cleanup some unused variables 2020-08-22 18:04:34 +02:00
twinaphex 503131de66 (RPNG) Cleanups 2020-08-22 17:37:34 +02:00
twinaphex f4432acd06 (RPGN) Cleanups to IHDR code 2020-08-22 17:34:13 +02:00
twinaphex 73ed02b5f6 (RPNG) Cleanup read_chunk_header 2020-08-22 17:18:32 +02:00
twinaphex d6f22a7a4c (RPNG) Simplify png_process_ihdr 2020-08-22 16:28:50 +02:00
twinaphex c7cf9d6df7 (RPNG) Simplify rpng_start 2020-08-22 16:11:54 +02:00
twinaphex 5cc4d0da0f (RPNG) Make sure we don't use stdio/fprintf unless DEBUG is defined 2020-08-22 16:07:03 +02:00
twinaphex deafd70934 (RPNG) More simplifications - get rid of png_chunk struct, just pass
uint32_t around to function
2020-08-22 15:37:21 +02:00
twinaphex 91345fe867 (RPNG) read_chunk_header - simplify code some more 2020-08-22 15:34:32 +02:00
twinaphex 8b5b472a2d Optimize read_chunk_header 2020-08-22 14:24:11 +02:00
twinaphex 2e6b87d156 Simplify rpng.c - read_chunk 2020-08-22 14:20:50 +02:00
twinaphex fa68500475 Dehardcode some more strings 2020-08-22 14:14:28 +02:00
twinaphex 1f7645b6e8 Cleanup generic_menu_iterate 2020-08-22 14:05:48 +02:00
twinaphex 772ed15d88 Remove file_path_str from Salamander 2020-08-22 13:42:57 +02:00
twinaphex cce19ac97d Replace more hardcoded strings 2020-08-22 13:04:52 +02:00
twinaphex 07ebd50153 Fix some of the URLs 2020-08-22 12:51:34 +02:00
twinaphex f63593e918 Use FILE_PATH_ constant string literals for hardcoded strings 2020-08-22 12:49:35 +02:00
twinaphex 4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
twinaphex d815a1f3d3 Simplify file_path_str.c 2020-08-21 21:26:59 +02:00
Autechre 395fbb8f87 Merge pull request #11223 from guoyunhe/crowdin-github-secrets
Read Crowdin API key from GitHub Secrets
2020-08-21 20:44:03 +02:00
Guo Yunhe 5ac64932d0 Read Crowdin API key from GitHub Secrets 2020-08-21 21:16:52 +03:00
Autechre 6a3273d306 Update CHANGES.md 2020-08-21 18:25:01 +02:00
Autechre ce53a5410c Merge pull request #11222 from jdgleaver/remember-shader-dir
Add option to remember last selected shader preset/shader pass directories
2020-08-21 18:24:35 +02:00
jdgleaver dd66988c98 Add option to remember last selected shader preset/shader pass directories 2020-08-21 17:02:32 +01:00
Autechre 637e43f4fd Merge pull request #11212 from Nargash/master
Automatically sort save files, save states, and screenshots by content dir parent folder name
2020-08-21 14:42:59 +02:00
Autechre de10ec6ef4 Merge pull request #11221 from jdgleaver/libretro-message-widget
Improve appearance of 'libretro_message' widget
2020-08-21 14:41:14 +02:00
jdgleaver d43e92907e Improve appearance of 'libretro_message' widget 2020-08-21 11:33:27 +01:00
twinaphex 50efd72a8e gfx_display_draw_texture_slice - don't use malloc/free 2020-08-21 10:03:32 +02:00
twinaphex 99873ccd8a Reorder structs, alignment 2020-08-21 09:57:11 +02:00
Nargash b8990d601a Add configuration options to sort save files, save states, and screenshots into folders named after the content directory folder. 2020-08-20 19:29:00 -05:00
twinaphex 75d925cd3f setting_list.h - get rid of placeholder padding hack in struct 2020-08-20 19:30:25 +02:00
twinaphex b3ec942646 (verbosity.c) reorder struct, alignment 2020-08-20 19:16:05 +02:00
twinaphex 5a8da81d07 Simplify string_set 2020-08-20 19:12:38 +02:00
twinaphex d545739210 Categorize some members of rarch_state 2020-08-20 17:32:44 +02:00
twinaphex 64e2988957 menu_list_flush_stack - cleanup 2020-08-20 17:29:42 +02:00
Autechre a268c6b4a0 Merge pull request #11214 from fpscan/hacking_the_kernel
(ozone) new theme: Hacking the Kernel
2020-08-20 17:08:24 +02:00
Autechre 5a3a0b511a Merge pull request #11219 from jdgleaver/glui-hacking-the-kernel
(GLUI) Add 'Hacking the Kernel' theme
2020-08-20 15:45:20 +02:00
twinaphex 5a96f8b63c Small cleanups as recommended by Alcaro 2020-08-20 14:50:22 +02:00
jdgleaver 20d27df27f (GLUI) Add 'Hacking the Kernel' theme 2020-08-20 10:14:32 +01:00
twinaphex 8324a03a5e Don't heap allocate audio_driver_input_dat - already
a part of heap-allocated rarch_state
2020-08-20 09:31:23 +02:00
Autechre fc4a6971d6 Merge pull request #11216 from sonninnos/input_icons_labels
(XMB+OZONE) Quick Menu ports: AtD icon + key labels for keyboard type
2020-08-19 18:29:09 +02:00
twinaphex cb0a193eea Fix RPNG build failure 2020-08-19 18:20:55 +02:00
twinaphex dff52d8688 Revert "(audio conversion) Optimize array accesses"
This reverts commit 8613ece7f5.
2020-08-19 18:18:02 +02:00
twinaphex c4be485baf Revert "Optimize png_reverse_filter_copy_line_rgb"
This reverts commit aa428cc415.
2020-08-19 18:17:16 +02:00
twinaphex ae0d63ccc0 Revert "Optimize png_reverse_filter_copy_line_rgba"
This reverts commit ad3c67f275.
2020-08-19 18:16:57 +02:00
twinaphex e8170a4354 Revert "Optimize png_reverse_filter_copy_line_gray_alpha"
This reverts commit 710226504e.
2020-08-19 18:16:42 +02:00
twinaphex 7c19d4d009 Revert "Optimize png_read_plte"
This reverts commit 107b640bc0.
2020-08-19 18:16:10 +02:00
twinaphex ea5d134337 Revert "Optimize read_chunk_header"
This reverts commit 33f9ef90d8.
2020-08-19 18:15:54 +02:00
twinaphex 282d34aeb1 Revert "(RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass"
This reverts commit a283b71261.
2020-08-19 18:15:24 +02:00
twinaphex 003ff126ce Revert "(RPNG) optimizations to copy_line_bw"
This reverts commit 9b29217564.
2020-08-19 18:15:08 +02:00
Twinaphex e3d77d7f28 Remove unused variable 2020-08-19 17:21:22 +02:00
Tony Jansson 1c7d8d3f31 (XMB+OZONE) Quick Menu ports: AtD icon + key labels for keyboard type 2020-08-19 17:35:15 +03:00
Ömercan Kömür a91b51156e (ozone) new theme: Hacking the Kernel 2020-08-19 15:24:47 +03:00
Autechre f4c6c26312 Merge pull request #11186 from fpscan/boysenberry-ozone
(ozone) new theme: Boysenberry
2020-08-19 12:55:56 +02:00
twinaphex 9b29217564 (RPNG) optimizations to copy_line_bw 2020-08-19 12:07:56 +02:00
twinaphex 6b978eb057 (D3D11) Cleanups 2020-08-19 11:26:30 +02:00
twinaphex a283b71261 (RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass 2020-08-19 10:05:09 +02:00
twinaphex 33f9ef90d8 Optimize read_chunk_header 2020-08-19 09:09:38 +02:00
twinaphex 107b640bc0 Optimize png_read_plte 2020-08-19 08:58:18 +02:00
twinaphex 710226504e Optimize png_reverse_filter_copy_line_gray_alpha 2020-08-19 08:18:09 +02:00
twinaphex ad3c67f275 Optimize png_reverse_filter_copy_line_rgba 2020-08-19 08:14:23 +02:00
twinaphex aa428cc415 Optimize png_reverse_filter_copy_line_rgb 2020-08-19 08:09:17 +02:00
twinaphex dc3dc574d8 String stack size cleanups 2020-08-19 06:53:09 +02:00
twinaphex a85368f21f Move more strings from heap to stack 2020-08-19 06:27:36 +02:00
Braden Farmer 31e8fe8fd9 Implement support for Play Store builds using Play Feature Delivery (Java/Gradle) 2020-08-18 22:23:55 -06:00
twinaphex 54c31348ce Further simplify vulkan_write_quad_vbo 2020-08-19 06:06:30 +02:00
twinaphex 2f405c4088 Optimize vulkan_write_quad_vbo 2020-08-19 05:32:40 +02:00
twinaphex 6136035f2e Optimize vulkan_write_quad_vbo 2020-08-19 04:59:14 +02:00
twinaphex 4fb388ca4d Cleanup 2020-08-19 04:34:22 +02:00
twinaphex 2ca12718f1 (DInput) Optimize array loop iterations 2020-08-19 04:04:44 +02:00
twinaphex 07244d484c (UWP) Buildfix 2020-08-19 03:44:24 +02:00
twinaphex a15a033e72 (XInput) Cleanups 2020-08-19 03:40:55 +02:00
twinaphex bbb4d12881 (vulkan_common.c) Optimize array access 2020-08-19 03:19:21 +02:00
twinaphex 5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
twinaphex 8613ece7f5 (audio conversion) Optimize array accesses 2020-08-19 02:46:54 +02:00
Autechre b4d2f2a7ed Merge pull request #11211 from jdgleaver/glui-cursor-visibility
(GLUI) Improve selection cursor visibility when content is running and menu background is (semi-)transparent
2020-08-19 01:43:44 +02:00
jdgleaver 2fd8a5b0ed (GLUI) Improve selection cursor visibility when content is running and menu background is (semi-)transparent 2020-08-18 16:38:52 +01:00
twinaphex 4f991ab640 Reorder structs, alignment 2020-08-18 17:16:59 +02:00
twinaphex 3a21a6e134 Cleanup 2020-08-18 16:53:19 +02:00
twinaphex 21855dfb85 Reorder structs, alignment 2020-08-18 16:51:15 +02:00
Autechre b1d28fd7e0 Merge pull request #11205 from sonninnos/analog_dpad_override
Skip analog input if analog is in digital mode
2020-08-18 16:28:40 +02:00
twinaphex f618c8be9c Cleanups 2020-08-18 15:51:26 +02:00
twinaphex ed52146f8c Cleanups 2020-08-18 15:48:13 +02:00
twinaphex 79db13d5e7 Cleanup 2020-08-18 15:42:17 +02:00
twinaphex acc34d1820 (gfx_thumbnail_path) Further cleanups 2020-08-18 15:36:51 +02:00
twinaphex eb604502bb (gfx_thumbnail_path) Cleanups 2020-08-18 15:32:25 +02:00
twinaphex b39959c985 Cleanup dylib.c 2020-08-18 15:22:46 +02:00
twinaphex 624a70f062 More strings being moved from heap to stack 2020-08-18 14:47:57 +02:00
twinaphex a5f3ff9c18 (RGUI) Silence warnings due to struct reordering 2020-08-18 14:31:30 +02:00
twinaphex 216190b826 Clean up more string variables on heap - move to stack 2020-08-18 14:26:15 +02:00
twinaphex 0c5611d10e Clean up more string variables on heap; move to stack 2020-08-18 13:17:28 +02:00
twinaphex 0f4470dabb Move more strings from heap to stack 2020-08-18 13:01:56 +02:00
twinaphex ad7db2e2b8 Move path variables off heap size; prevent potential memory
fragmentation
2020-08-18 12:44:14 +02:00
twinaphex fe28f17eeb Cleanup 2020-08-18 10:57:42 +02:00
twinaphex d29e0a9969 (Task content) Don't put string variables on heap 2020-08-18 10:56:54 +02:00
twinaphex 4177ea4256 Update 2020-08-17 15:11:48 +02:00
twinaphex c81d06d0a1 Reorder structs, alignment 2020-08-17 15:09:19 +02:00
Weedy Weed Smoker 457903e886 Fixed Arabic translation 2020-08-17 04:09:29 +07:00
Weedy Weed Smoker 8e07e8015a Fixed language translations 2020-08-17 02:55:43 +07:00
Weedy Weed Smoker 38f27f76d1 Fixed Norwegian language translation 2020-08-16 23:07:07 +07:00
Tony Jansson 8191b44b0b Skip analog input if analog is in digital mode 2020-08-16 10:12:41 +03:00
twinaphex 855351de9e Reorder g_defaults, alignment 2020-08-16 04:38:02 +02:00
twinaphex 1b4cbf3ed5 (ffmpeg core) Struct reordering, alignment 2020-08-16 04:23:15 +02:00
twinaphex aeeff7f350 (D3D11) Cleanup 2020-08-16 03:11:00 +02:00
Autechre 741c38dba4 Merge pull request #11203 from Alcaro/patch-6
stdstring: Delete duplicate function
2020-08-16 02:59:00 +02:00
Alcaro df2db8bceb stdstring: Delete duplicate function 2020-08-16 02:33:25 +02:00
twinaphex 4958e30d8f (slang shader backends) Cleanups 2020-08-16 02:29:54 +02:00
twinaphex e35d2cb527 CLeanups 2020-08-16 02:20:13 +02:00
twinaphex bb58b0d6e3 (GLSLANG) Move more common code out of shader_gl_core and shader_vulkan
and into glslang_util.h
2020-08-16 02:05:38 +02:00
twinaphex b69ceaea1b Reorder structs, alignment 2020-08-16 01:07:42 +02:00
Autechre faedbf4368 Merge pull request #11202 from Alcaro/patch-5
rpng: delete "unused" png_chunk member
2020-08-16 00:32:17 +02:00
Alcaro 37efa9d52e rpng: delete "unused" png_chunk member
also fix a rather ugly buffer overflow that relies on the unused member existing and being null
2020-08-16 00:27:25 +02:00
twinaphex 982fbadd15 (RBMP) Reorder structs, alignment 2020-08-16 00:13:16 +02:00
twinaphex 3d2efdd2ef (RJPEG) reorder structs, alignment 2020-08-16 00:09:10 +02:00
Autechre ff42f3348a Merge pull request #11130 from guoyunhe/fix-string-system-to-vendor
Fix stirng "system" -> "vendor"
2020-08-15 23:39:39 +02:00
twinaphex b8058a93e1 Reorder structs, alignment 2020-08-15 23:10:31 +02:00
twinaphex 789bc83276 reorder structs, alignment 2020-08-15 23:02:01 +02:00
Autechre 6416e66954 Merge pull request #11201 from sonninnos/quickmenu_keyboard_icons
(XMB+OZONE) Use correct icons in Quick Menu control ports with keyboard device type
2020-08-15 22:58:06 +02:00
twinaphex 89b441787a Reorder retro_keybind, alignment 2020-08-15 22:36:56 +02:00
Tony Jansson b6f37f4245 (XMB+OZONE) Use correct icons in Quick Menu control ports with keyboard device type 2020-08-15 21:47:36 +03:00
Autechre 5119b71377 Merge pull request #11200 from schellingb/explore_structorder
Explore: Order structs according to coding guidelines
2020-08-15 20:39:55 +02:00
twinaphex f48dc0ff5b Reorder structs, alignment 2020-08-15 20:38:31 +02:00
Bernhard Schelling 46bbbc4478 Order structs according to coding guidelines 2020-08-16 03:22:09 +09:00
twinaphex f09df7c6e3 Reorder structs, alignment 2020-08-15 19:43:17 +02:00
twinaphex a5efd70db7 Reorder structs, alignment 2020-08-15 18:53:52 +02:00
twinaphex f934aaa78d Reordre structs, alignment 2020-08-15 18:42:27 +02:00
twinaphex 0598c5643a Reorder structs, alignment 2020-08-15 18:30:27 +02:00
twinaphex 454338c4f3 (BTStack) Buildfix 2020-08-15 17:14:27 +02:00
twinaphex 0eaca29c68 (RGUI) Silence warnings 2020-08-15 17:05:13 +02:00
twinaphex bda1e90d26 Remove unused variables 2020-08-15 03:24:12 +02:00
twinaphex cbf96ad8fb Reorder structs, alignment 2020-08-15 03:21:54 +02:00
twinaphex 6e1445c658 Reorder structs, alignment 2020-08-15 02:55:29 +02:00
twinaphex 501165af0b (BTStack) Buildfix attempt two 2020-08-15 02:26:43 +02:00
twinaphex bc712b95cf Reorder structs, alignment 2020-08-15 01:53:23 +02:00
twinaphex 55eeb28db7 Reorder structs, alignment 2020-08-15 01:39:22 +02:00
twinaphex 3ec21b292c Reorder structs, alignment 2020-08-15 01:18:23 +02:00
twinaphex a8646a2610 Reorder structs, alignment 2020-08-15 00:44:35 +02:00
twinaphex e399a2f78e reorder structs, alignment 2020-08-15 00:35:15 +02:00
twinaphex eb1db52b89 Reorder structs, alignment 2020-08-15 00:11:58 +02:00
twinaphex bf85a658ba (BTStack) Attempt build fix 2020-08-14 23:46:31 +02:00
twinaphex acfb7d0a23 Reorder structs, alignment 2020-08-14 23:13:05 +02:00
Autechre 63f02fb1e4 Update CHANGES.md 2020-08-14 23:09:28 +02:00
Autechre 578e6cc07f Merge pull request #11196 from sonninnos/device-type-refresh
Refresh bind list on device type change
2020-08-14 23:09:02 +02:00
twinaphex 203882ec9a Struct reorder, alignments 2020-08-14 23:08:33 +02:00
twinaphex 375f2da3bb Reorder structs, alignment 2020-08-14 23:03:15 +02:00
twinaphex 7642cf5fa5 Struct reorders/alignment 2020-08-14 22:54:46 +02:00
twinaphex 29cb70abb2 Reorder structs/alignment 2020-08-14 22:43:46 +02:00
twinaphex 327d82cc1d Struct reordering/alignment 2020-08-14 22:21:05 +02:00
twinaphex 8a530aa5dd Reorder structs/alignment 2020-08-14 21:48:12 +02:00
twinaphex bfc8a7beca Reorder structs/alignment 2020-08-14 21:45:41 +02:00
twinaphex 4c0d9bc68d Struct reordering/alignment 2020-08-14 21:19:32 +02:00
twinaphex 7bb63a213c Struct reordering/alignment 2020-08-14 21:09:24 +02:00
twinaphex 10b06ce828 More struct reordering/alignment 2020-08-14 21:00:04 +02:00
twinaphex c3e4c32401 Reorder structs 2020-08-14 20:21:44 +02:00
twinaphex e6bde72f1b Reorder struct 2020-08-14 20:13:29 +02:00
twinaphex c4f52774f9 Reorder structs - setting_list.h 2020-08-14 20:12:07 +02:00
Tony Jansson ba6d45bdc0 Refresh bind list on device type change 2020-08-14 21:04:21 +03:00
Autechre e15430233a Update CHANGES.md 2020-08-14 19:51:29 +02:00
Autechre 270d5d4111 Merge pull request #11191 from gblues/gblues/wiiu-fix-touchscreen
WIIU: Fix touchscreen mouse emulation
2020-08-14 19:50:59 +02:00
Autechre 48d312d681 Update CHANGES.md 2020-08-14 19:50:28 +02:00
Autechre f5600aba7f Merge pull request #11192 from sonninnos/master
Remap file loading fixes
2020-08-14 19:48:38 +02:00
Autechre 7cf6d1a1cc Merge pull request #11195 from jdgleaver/core-updater-search
Enhanced core downloader search functionality
2020-08-14 19:48:16 +02:00
twinaphex 37be80b847 Struct reordering 2020-08-14 19:46:06 +02:00
twinaphex 795092e77f Struct reordering 2020-08-14 19:19:37 +02:00
twinaphex e7c63df2bc Struct reordering 2020-08-14 19:06:25 +02:00
twinaphex 87c0fb6323 Struct reordering 2020-08-14 18:58:09 +02:00
jdgleaver 6d8f3cb182 Enhanced core downloader search functionality 2020-08-14 17:53:44 +01:00
twinaphex 1aceac6edb Struct reorders 2020-08-14 18:51:50 +02:00
twinaphex 8a3ef513a3 Struct reordering 2020-08-14 18:43:11 +02:00
twinaphex 7ea2111936 Struct reorderings 2020-08-14 18:36:09 +02:00
twinaphex 659d50c916 Struct reorderings 2020-08-14 18:31:28 +02:00
twinaphex 023fd4f330 Alignment changes 2020-08-14 18:19:57 +02:00
twinaphex b3963a2897 Struct alignment changes 2020-08-14 18:03:09 +02:00
twinaphex d0b68ee838 (RPNG) Struct alignment changes 2020-08-14 17:54:03 +02:00
twinaphex b4dc19d7aa (RPNG) Cleanups 2020-08-14 17:49:33 +02:00
twinaphex 5ba80a8996 configuration.h - reorder structs 2020-08-14 17:28:05 +02:00
twinaphex b6228729b6 More struct alignment 2020-08-14 17:11:18 +02:00
twinaphex 1ccb51460c Do some struct ordering for better alignment, and add CODING-GUIDELINES 2020-08-14 17:00:50 +02:00
twinaphex 18cb55e207 Remove dynarray.h - rbuf.h replaces it 2020-08-14 16:09:13 +02:00
twinaphex dffa052958 Rearrange draw struct 2020-08-14 15:58:43 +02:00
Tony Jansson a8faacc926 Remap file loading fixes 2020-08-14 15:40:49 +03:00
twinaphex 67913127ef Some struct reordering 2020-08-14 14:35:43 +02:00
Autechre d989e375c4 Update CHANGES.md 2020-08-14 14:29:13 +02:00
Autechre 7ed3ee278a Merge pull request #11193 from jdgleaver/core-updater-rbuf
(core_updater_list) Replace static entries array with dynamic array via RBUF library
2020-08-14 14:28:46 +02:00
jdgleaver e76f5a212a (core_updater_list) Replace static entries array with dynamic array via RBUF library 2020-08-14 12:33:49 +01:00
gblues 4555481863 WIIU: Fix touchscreen mouse emulation
== DETAILS
The way the mouse emulation worked was to simply return a 3rd axis from the
gamepad, which the polling code updates with the touch state in real time.

Well, the code that figures out if it's a positive or negative axis was
failing because it didn't see that 3rd axis as valid. So, I added values
which allow it to be seen as valid, and voila! the touch screen input
works again.

== TESTING
Tested locally using "Beneath a Steel Sky" in ScummVM.
2020-08-13 23:31:17 -07:00
twinaphex f3b440bab9 Some struct reordering 2020-08-14 07:07:34 +02:00
twinaphex 8b8c52bb67 Cleanup 2020-08-14 06:45:36 +02:00
twinaphex eb95757fb2 update_time_callback - Get rid of default callback - just point to NULL
instead
2020-08-14 06:39:12 +02:00
twinaphex c250b94dcf Move p_anim state to rarch_state 2020-08-14 06:29:13 +02:00
twinaphex 31e50f1221 (gfx_animation) Get rid of some static variables, move struct
definitions to header
2020-08-14 05:53:57 +02:00
twinaphex 559ab90374 Update CHANGES.md 2020-08-13 20:27:27 +02:00
Autechre b6ea811334 Merge pull request #11189 from jdgleaver/m3u_file-rbuf
(m3u_file) Replace static entries array with dynamic array via RBUF library
2020-08-13 18:51:14 +02:00
jdgleaver b19eb64329 (m3u_file) Replace static entries array with dynamic array via RBUF library 2020-08-13 17:25:45 +01:00
Autechre b972327bc6 Update CHANGES.md 2020-08-13 17:25:43 +02:00
Autechre 6092761469 Update CHANGES.md 2020-08-13 17:23:29 +02:00
Autechre 15b6a6ede4 Merge pull request #11187 from schellingb/gfx_animation_rbuf
Simplify gfx_animation by switching from dynarray to rbuf
2020-08-13 17:23:16 +02:00
Autechre c18850456d Merge pull request #11188 from Jamiras/cheevos_texture_cleanup
(cheevos) ensure badge textures are released before video driver is deinitialized
2020-08-13 17:22:29 +02:00
Jamiras 2a5516b1b9 ensure cheevos badge textures are released before video driver is deinitialized 2020-08-12 21:55:12 -06:00
Bernhard Schelling 48fabb7f88 Simplify gfx_animation by switching from dynarray to RBUF 2020-08-13 05:23:32 +09:00
Autechre c70c13c01d Update CHANGES.md 2020-08-12 17:44:59 +02:00
twinaphex 56a690df0e (cheevos) Some style nits 2020-08-12 17:43:04 +02:00
Autechre d081c01cc2 Merge pull request #11183 from Jamiras/cheevos_memory
(cheevos) generic memory mapping using rcheevos
2020-08-12 17:37:46 +02:00
Ömercan Kömür 8fad42f3c9 (ozone) new theme: Boysenberry 2020-08-12 18:37:22 +03:00
Autechre 172de99048 Merge pull request #11154 from sonninnos/master
Game Focus + OS mouse cursor fix
2020-08-12 17:35:06 +02:00
Jamiras 1f350be1f8 rename memory.c and parser.c to be less generic; eliminate hash.c 2020-08-12 08:16:06 -06:00
Jamiras 8d34d06c76 address LGTM warning 2020-08-11 11:15:00 -06:00
Jamiras 0609d229a6 address travis warnings 2020-08-11 10:23:35 -06:00
Jamiras b15411dad8 generic memory mapping using rcheevos 2020-08-11 09:26:04 -06:00
twinaphex 6388872a54 Cleanups/style nits 2020-08-11 16:00:25 +02:00
Autechre 0f17559ccc Merge pull request #11182 from jdgleaver/core-inputs
Add API extension for cores to query the number of active inputs provided by the frontend
2020-08-11 15:55:21 +02:00
jdgleaver 81bf22c3fb RETRO_ENVIRONMENT_GET_INPUT_MAX_USERS: Clarify variable update frequency comment 2020-08-11 14:54:22 +01:00
jdgleaver ee8a2f4268 Add API extension for cores to query the number of active inputs provided by the frontend 2020-08-11 14:07:00 +01:00
dankcushions 6aa0680110 GLES 3.1 and 3.2 build parameters, and corresponding context checks. 2020-08-11 13:47:51 +01:00
twinaphex d3b234f404 Buildfix 2020-08-11 09:03:59 +02:00
twinaphex ac083e69ba Cleanups 2020-08-11 06:46:45 +02:00
twinaphex 4092fd7e83 Minor cleanup 2020-08-11 06:35:12 +02:00
Autechre c7f839a7fd Merge pull request #11180 from rsn8887/master
[SWITCH] Fix input bind icons being off by one line
2020-08-11 04:49:51 +02:00
rsn8887 6fd7dc0519 [SWITCH] Fix input bind icons being off by one line 2020-08-10 21:39:52 -05:00
Autechre e06ffc9e13 Update CHANGES.md 2020-08-10 10:34:26 +02:00
Autechre 28447cfe0e Merge pull request #11172 from francescotintori/francesco/playlist_autofix
Portable playlists: fixed first load initialization
2020-08-10 10:33:56 +02:00
Autechre 508ba278f4 Merge pull request #11170 from ericonr/fix-include
[linux] Add missing include in nbio_linux.c.
2020-08-10 06:32:09 +02:00
Autechre 4b0e14d920 Merge pull request #11171 from ericonr/fix-static
[gfx] Fix static function placement.
2020-08-10 06:01:15 +02:00
Érico Rolim 87d99601f6 [gfx] Fix static function placement.
In gfx/drivers_context/vc_egl_ctx.c, move gfx_ctx_vc_bind_api
declaration to before it's called by any other function, otherwise it
warns about "warning: implicit declaration of function" and can error
out with "error: conflicting types for 'gfx_ctx_vc_bind_api'" in certain
cases.
2020-08-10 00:51:14 -03:00
Érico Rolim 057dd563aa [linux] Add missing include in nbio_linux.c.
On musl-libc, the compiler would print a warning for nbio_linux.c:
"warning: 'struct timespec' declared inside parameter list will not be
visible outside of this definition or declaration", indicating a missing
header defining this structure.

On glibc, this definition is provided through the stdlib header.
2020-08-10 00:33:43 -03:00
Autechre 5f702a766f Merge pull request #11168 from libretro/revert-10687-fix-unused-port-dev-id
Revert "Don't report unused input ports to cores"
2020-08-09 21:07:00 +02:00
Autechre 2979018d68 Revert "Don't report unused input ports to cores" 2020-08-09 21:06:45 +02:00
francescotintori 6fa08b5287 Portable playlists: fixed first load initialization 2020-08-09 19:59:42 +02:00
Twinaphex b1723f7cd0 Remove unused CocoaTouch menu - allows us to get rid of a lot of
dead code
2020-08-09 19:41:04 +02:00
twinaphex 06210387af Fix C++ comment 2020-08-09 19:24:13 +02:00
Autechre a31514d7e0 Merge pull request #11167 from yoshisuga/ios-default-video-config
[iOS] Set default video driver to OpenGL
2020-08-09 19:23:27 +02:00
Autechre 17257fb90c Merge pull request #10687 from realnc/fix-unused-port-dev-id
Don't report unused input ports to cores
2020-08-09 19:23:11 +02:00
Yoshi Sugawara 6a37f1ec90 [iOS] Set default video driver to OpenGL; start adding source file references to xcode project to make code navigable in Xcode 2020-08-09 06:08:16 -10:00
Nikos Chantziaras 1345d6e0c1 Update CHANGES.md 2020-08-09 14:54:31 +03:00
Nikos Chantziaras e534373dee Don't report unused input ports to cores
RetroArch has the unfortunate behavior of setting unused ports to
RETRO_DEVICE_JOYPAD in the core through
retro_set_controller_port_device(). "Unused" meaning ports higher than
the "maximum users" amount configured in settings/input in RA. This is
unfortunate because some cores (like the dosbox ones) change their
behavior depending on the device type assigned to ports. If all unused
(and thus invisible and unconfigurable through the UI) are set to
RETRO_DEVICE_JOYPAD, the core changes its behavior because from its
point of view there's multiple joypads connected, and there's no way for
users to disconnect these bogus joypads.

Fix this by not calling retro_set_controller_port_device() on ports that
are not used.
2020-08-09 14:54:28 +03:00
Autechre 43293abb41 Update CHANGES.md 2020-08-09 09:03:16 +02:00
twinaphex 2a9915f80d (D3D) Buildfix 2020-08-08 19:12:01 +02:00
Autechre fd291f14ef Merge pull request #11165 from albertoruibal/psl1ght-rtime-bug
Bug in the Makefile for psl1ght after adding rtime
2020-08-08 18:18:17 +02:00
twinaphex ade58fc8b6 (UWP) Buildfix 2020-08-08 18:17:40 +02:00
Alberto Alonso Ruibal 5e8d400e5c Bug in the Makefile for psl1ght after adding rtime
A "rtime.c" was added to an OBJ list but it should be an "rtime.o".

This is also causing that a build step is deleting the rtime.c file.
2020-08-08 17:03:56 +02:00
twinaphex 5e551dd92b Bump up to version 1.9.0 2020-08-08 00:06:53 +02:00
Autechre 97799f9a74 Update CHANGES.md 2020-08-07 23:41:33 +02:00
Autechre 5258804cbc Update CHANGES.md 2020-08-07 23:40:27 +02:00
Autechre e16bf5b3be Update CHANGES.md 2020-08-07 23:38:07 +02:00
Autechre 9480fea658 Merge pull request #11161 from guoyunhe/crowdin-20200807
Improve Crowdin scripts and fetch translations
2020-08-07 22:42:11 +02:00
Guo Yunhe d7d13f64e9 Improve Crowdin scripts and fetch translations 2020-08-07 22:46:17 +03:00
Autechre e64d5d2310 Merge pull request #11158 from schellingb/playlist_rbuf
Change playlists to use a dynamic array
2020-08-07 17:41:47 +02:00
Bernhard Schelling a9ba760aae Fix string that references old maximum number
As the new maximum is now 2147483647, `'unlimited'` should be adequate.
2020-08-07 22:10:11 +09:00
Bernhard Schelling 5d54fff166 Increase maximum playlist size to 2147483647
Before the number decided the initial memory allocation, now it only defines an actual maximum cap. This sets it to the biggest signed 32-bit number in case this is ever read from/written to something that isn't explicitly size_t or unsigned int.
2020-08-07 22:07:05 +09:00
Bernhard Schelling f657d3d600 More index validation and avoid qsort with NULL 2020-08-07 21:13:40 +09:00
Bernhard Schelling 398aa25c98 Zero icon list even on menu drivers without icons
Otherwise there is a chance for a crash on program exit on certain gfx drivers because it tries to free uninitialized texture ids.
2020-08-07 20:49:06 +09:00
Bernhard Schelling 4a09907802 Return true when RBUF_TRYFIT is called with 0 2020-08-07 05:19:09 +09:00
Bernhard Schelling 0a67c0416a Change playlist to use dynamic array
Instead of initial 12MB memory allocation, use a dynamically growing array.
This shares the container structure (now called rbuf) with the explore menu.
2020-08-07 03:27:52 +09:00
Autechre 332505db86 Merge pull request #11153 from guoyunhe/create-metainfo-dir
Create metainfo directory if not exists
2020-08-06 18:36:48 +02:00
Autechre 3b67d49fb2 Merge pull request #11155 from jdgleaver/glui-playlist-icons
(GLUI) Add optional system-specific playlist icons
2020-08-06 18:36:16 +02:00
jdgleaver e6000afddb (GLUI) Add optional system-specific playlist icons 2020-08-06 17:24:28 +01:00
Tony Jansson 53340385a6 Game focus updates:
- Prevent mouse cursor visibility in fullscreen when ungrabbed via game focus
- Reformat logging
2020-08-06 14:15:55 +03:00
Guo Yunhe 3e4fa19638 Create metainfo directory if not exists 2020-08-06 12:10:08 +03:00
Autechre b05686efb1 Merge pull request #11150 from guoyunhe/appstream
Add AppStream support for Linux and BSD
2020-08-06 04:28:56 +02:00
Autechre cffde9b065 Update CHANGES.md 2020-08-06 04:28:41 +02:00
Autechre b0623f3f87 Merge pull request #11151 from yoshisuga/ios-hide-home-indicator
[iOS] Hide the home indicator as it obscures the content too frequently
2020-08-06 04:28:10 +02:00
Yoshi Sugawara 4456efa6c8 [iOS] Hide the home indicator as it obscures the content too frequently 2020-08-05 15:43:04 -10:00
twinaphex c3d8c8661f Buildfixes for C89_BUILD --disable-menu 2020-08-06 03:04:21 +02:00
twinaphex 365ca7cf63 Buildfix 2020-08-06 02:59:09 +02:00
Guo Yunhe 0791b658a9 Add AppStream support for Linux and BSD 2020-08-05 23:56:17 +03:00
Autechre bbff9215c0 Merge pull request #11147 from guoyunhe/crowdin-20200805
Fetch translations from Crowdin
2020-08-05 18:27:41 +02:00
Autechre d3eebe7c0f Merge pull request #11148 from jdgleaver/rgui-glui-scan-content-cleanup
(RGUI/GLUI) Clean up 'scan content' menu entries
2020-08-05 18:15:33 +02:00
Autechre 0e08fff6c8 Merge pull request #11149 from jdgleaver/ffmpeg-leak-fix
(ffmpeg) Fix memory leak/struct member issue
2020-08-05 18:04:48 +02:00
jdgleaver 0fcc5a784e (ffmpeg) Fix memory leak/struct member issue 2020-08-05 16:47:04 +01:00
twinaphex cd329a259c Revert "(MaterialUI) silence some warnings"
This reverts commit db7e38fed5.
2020-08-05 16:46:10 +02:00
Guo Yunhe 3d80b40dca Fetch translations from Crowdin 2020-08-05 16:35:24 +03:00
jdgleaver 15cf483cd9 (RGUI/GLUI) Clean up 'scan content' menu entries 2020-08-05 14:25:09 +01:00
twinaphex db7e38fed5 (MaterialUI) silence some warnings 2020-08-05 13:58:18 +02:00
twinaphex 76ec05314c Remove unused variable 2020-08-05 13:54:36 +02:00
Autechre 5d726bca45 Merge pull request #11146 from jdgleaver/comparison-warning-fix
'comparison of integer expressions of different signedness' warning fix
2020-08-05 13:52:16 +02:00
jdgleaver ada08e1c6f 'comparison of integer expressions of different signedness' warning fix 2020-08-05 09:55:06 +01:00
Autechre 2f16bc62cf Update CHANGES.md 2020-08-04 19:47:59 +02:00
Autechre 619d11c3bd Merge pull request #11144 from schellingb/explore_disable_original_title
Explore: Disable undocumented original_title field
2020-08-04 19:46:21 +02:00
Bernhard Schelling a0db4db6c6 Instead of #if 0 use an explicit unused name 2020-08-05 01:46:32 +09:00
Autechre b830a82478 Merge pull request #11145 from jdgleaver/ffmpeg-seek
(ffmpeg) Prevent seeking past the end of files (hang fix)
2020-08-04 18:41:57 +02:00
jdgleaver d36cd7037a (ffmpeg) Prevent seeking past the end of files (hang fix) 2020-08-04 17:21:18 +01:00
Bernhard Schelling 075c9162b7 Disable undocumented original_title field 2020-08-05 01:18:22 +09:00
Autechre 3d8ae1126a Merge pull request #11140 from schellingb/explore_icons_glui
Support for glui showing system icons in explore view
2020-08-04 14:58:43 +02:00
Bernhard Schelling b73c3dcde0 Cleaned up icon handling of glui to properly handle external icons 2020-08-04 21:54:39 +09:00
twinaphex 0ef0ceb0e4 Fix C89_BUILD and CXX_BUILD 2020-08-04 14:34:07 +02:00
Twinaphex faa468d87f Get rid of unused variables 2020-08-04 04:07:42 +02:00
twinaphex a1ce1e4f1d gl_glsl_set_proc_address unneeded - remove it 2020-08-04 03:58:51 +02:00
twinaphex bcd743d3c5 Cleanup 2020-08-04 03:32:56 +02:00
twinaphex ff8463ef86 Cleanup 2020-08-04 03:23:48 +02:00
twinaphex c68cd7851a (dispserv_x11) Cleanups 2020-08-04 03:15:09 +02:00
twinaphex 379cc9ca4a Small cleanup to get_refresh_rate function 2020-08-04 03:12:51 +02:00
twinaphex 3680804217 Undo path_basedir_size 2020-08-04 03:05:20 +02:00
twinaphex 14647915a1 Add comments 2020-08-04 02:24:06 +02:00
twinaphex 498f31229c Backport
https://github.com/neil4/RetroArch-Lite/commit/fe284542d0a18a5a09e6a8af0d7c02edffd26e0b
-
Added reverse look-up table for better keyboard driver efficiency
2020-08-04 02:23:20 +02:00
twinaphex 98b594666f Backport https://github.com/neil4/RetroArch-Lite/commit/d5e2d42008c1da74e49f13b67603ad35b1cc6c7f 2020-08-04 02:03:02 +02:00
twinaphex ae662b4fe2 Cleanup android_gfx_ctx_bind_api 2020-08-04 01:56:38 +02:00
twinaphex ca328662d0 Get rid of forward declaration 2020-08-04 01:37:18 +02:00
twinaphex 4a6f49fc0a (360) Fix build 2020-08-03 22:35:10 +02:00
twinaphex f47b67bb51 Get rid of forward declaration 2020-08-03 22:30:08 +02:00
twinaphex bafeebcd50 (Ozone) Get rid of some forward declarations 2020-08-03 22:23:48 +02:00
twinaphex e45d04b826 Cleanups 2020-08-03 22:09:14 +02:00
Autechre 77c2aa0150 Merge pull request #11142 from schellingb/explore_fix_pointless_comparison
Explore: Fix pointless comparison of unsigned value to zero
2020-08-03 21:33:09 +02:00
Bernhard Schelling 25c6664746 Fix pointless comparison of unsigned value to zero 2020-08-04 04:07:23 +09:00
Bernhard Schelling 948e2f9f8e Support for glui showing system icons in explore view 2020-08-04 03:32:49 +09:00
Autechre 849f88b8ff Merge pull request #11138 from farmerbb/master
Android: Apply "AArch64" and "32-bit" suffixes to app label
2020-08-03 20:12:00 +02:00
twinaphex c5b9786675 Turn retro_sleep into macros for most systems 2020-08-03 20:11:00 +02:00
twinaphex c9f2bb3455 Minor style nits 2020-08-03 19:47:08 +02:00
Autechre 585401d8db Merge pull request #11139 from schellingb/explore_icons
Show system icons in explore view
2020-08-03 19:46:10 +02:00
Bernhard Schelling 5229b255b5 Show system icons in explore view 2020-08-04 02:37:34 +09:00
Braden Farmer 9f6274b001 Android: Apply "AArch64" and "32-bit" suffixes to app label 2020-08-03 11:14:44 -06:00
twinaphex 84d849f49b Optimize vulkan_acquire_next_image 2020-08-03 19:12:55 +02:00
twinaphex f8b8f2a07d (slang) Cut down on code duplication 2020-08-03 18:37:07 +02:00
twinaphex 86d302099e Move build_vec4 to glslang_util.c 2020-08-03 18:34:33 +02:00
twinaphex cce2ac6904 (shaders slang) Cut down on code duplication 2020-08-03 18:13:08 +02:00
twinaphex 4465a7bd0b Cleanup 2020-08-03 18:03:15 +02:00
twinaphex d864fd9ead Cleanups 2020-08-03 17:59:44 +02:00
Autechre 3cbbccef52 Update CHANGES.md 2020-08-03 17:40:57 +02:00
Autechre 7b4b78777c Update CHANGES.md 2020-08-03 17:34:19 +02:00
Autechre 1158f2a05c Update CHANGES.md 2020-08-03 17:33:51 +02:00
Autechre a4c8e85751 Merge pull request #11137 from jdgleaver/runahead-fix
Prevent runahead from being disabled *permanently* when an error occurs
2020-08-03 17:33:29 +02:00
twinaphex 4676e102d0 (input/drivers_joypad) Add TODO/FIXME notes 2020-08-03 17:31:22 +02:00
jdgleaver dc6f0fd0b3 Prevent runahead from being disabled *permanently* when an error occurs 2020-08-03 16:21:21 +01:00
twinaphex e91e548f13 Add more notes 2020-08-03 17:18:54 +02:00
twinaphex 77cf0ad524 (libretro-db) Small cleanups 2020-08-03 17:13:54 +02:00
twinaphex 72afa2f932 Cleanups 2020-08-03 16:33:54 +02:00
twinaphex 3653451c40 Cleanup 2020-08-03 15:51:07 +02:00
twinaphex fe59fdb39a Cleanups 2020-08-03 15:49:44 +02:00
twinaphex 332bcc7f9e Remove dxgi_update_title 2020-08-03 15:48:08 +02:00
twinaphex 89461eb6a5 Move vulkan gpu_list to struct data 2020-08-03 15:30:46 +02:00
twinaphex f3c4b4fcf7 (GLCORE) Fix other use after free issues pointed to by jdgleaver 2020-08-03 15:19:34 +02:00
Autechre e2e502fc9a Merge pull request #11135 from jdgleaver/autoconfig-save-fix
Ensure correct directory is used when saving autoconfig profiles
2020-08-03 14:40:49 +02:00
jdgleaver 535d73cf37 Ensure correct directory is used when saving autoconfig profiles 2020-08-03 13:10:00 +01:00
twinaphex 1d6a760de3 (menu_explore) Cleanup - build_list now returns allocated struct 2020-08-03 12:49:42 +02:00
twinaphex 2d10d9fd7a (D3D10) Move these static global variables to D3D10 struct 2020-08-03 12:39:46 +02:00
twinaphex db80281b0f (D3D11) Move static global variables to D3D11 state 2020-08-03 12:36:51 +02:00
twinaphex 76398f4151 (glcore) Fix heap use after free 2020-08-03 12:15:52 +02:00
twinaphex cb8b2db3ad Turn this function static 2020-08-03 01:41:48 +02:00
twinaphex 5105216380 (Android) Fix build 2020-08-03 00:51:29 +02:00
twinaphex 85e5c783af Backport getting rid of video_context_driver_input_driver 2020-08-03 00:47:58 +02:00
twinaphex deee393dfb Backport video_context_driver_free changes 2020-08-03 00:35:07 +02:00
twinaphex 429a6bb9e3 Cleanup 2020-08-03 00:24:14 +02:00
twinaphex 345ea303f4 Backport video_context_driver_destroy_internal 2020-08-03 00:21:34 +02:00
twinaphex 3058e96d94 menu_input_get_dpi - make it go through wrapper function
for accessing get_metrics
2020-08-03 00:10:03 +02:00
twinaphex 81395689e6 Backport set_resize_null alterations 2020-08-03 00:06:13 +02:00
twinaphex 056f85bf45 Change video_context_driver_set_flags 2020-08-03 00:04:27 +02:00
twinaphex 3e41cbc381 Revert "Add get_metrics to poke interface"
This reverts commit 119689c940.
2020-08-02 23:44:28 +02:00
twinaphex 31f570fdf6 Revert "Cleanups"
This reverts commit 529886a3fe.
2020-08-02 23:44:21 +02:00
twinaphex 03fe023de4 Revert "Cleanup"
This reverts commit 576679ac05.
2020-08-02 23:44:09 +02:00
twinaphex da5806a810 Revert "Cleanups"
This reverts commit a01a2375a1.
2020-08-02 23:43:56 +02:00
twinaphex a77c559505 Revert "Cleanups"
This reverts commit 69e92fa03b.
2020-08-02 23:43:44 +02:00
twinaphex 5fe2f75842 Revert "Cleanups"
This reverts commit 184ce8e9b7.
2020-08-02 23:43:29 +02:00
twinaphex 2efa8ac80e Revert "Get rid of video_context_driver_input_driver"
This reverts commit 75b1a09184.
2020-08-02 23:43:19 +02:00
twinaphex 1c9f60f98d (Emscripten) Add Mr.Boom 2020-08-02 22:25:55 +02:00
twinaphex 75b1a09184 Get rid of video_context_driver_input_driver 2020-08-02 20:37:21 +02:00
twinaphex 184ce8e9b7 Cleanups 2020-08-02 20:27:19 +02:00
twinaphex 69e92fa03b Cleanups 2020-08-02 20:23:10 +02:00
twinaphex a01a2375a1 Cleanups 2020-08-02 20:19:42 +02:00
twinaphex 576679ac05 Cleanup 2020-08-02 19:59:26 +02:00
twinaphex 529886a3fe Cleanups 2020-08-02 19:53:44 +02:00
twinaphex 119689c940 Add get_metrics to poke interface 2020-08-02 19:25:45 +02:00
twinaphex 416363e9fd Cleanups 2020-08-02 18:49:31 +02:00
Autechre cdff2a2c3c Merge pull request #11132 from schellingb/explore_multilangfix3
Explore - Localization: Better accommodate different languages (update2)
2020-08-02 18:12:57 +02:00
Bernhard Schelling 90d2991ef1 Create per category "By ..." string
This avoids string concatenation that might be undesired by some languages
Rename string "Tags" to "Tag" as it just pertains to a single tag
Remove 3 old strings
2020-08-03 00:16:58 +09:00
Guo Yunhe 7149a412d9 Fix stirng "system" -> "vendor" 2020-08-02 17:51:35 +03:00
twinaphex 4d17fde5ea None of the drivers that call video_driver_update_viewport
have either a context driver or have a 'fake' context driver
with translate_aspect implemented
2020-08-02 12:19:07 +02:00
twinaphex 035e7641c5 Cleanup video_driver_update_viewport 2020-08-02 12:16:02 +02:00
twinaphex f35010e1ae Cleanups 2020-08-02 10:28:23 +02:00
twinaphex e298ceb6bf Update vcproj 2020-08-02 10:22:52 +02:00
twinaphex ec57160709 (XB) Fix Salamander 2020-08-02 09:35:34 +02:00
twinaphex 602ea99c96 Fix 360 Salamander 2020-08-02 09:33:32 +02:00
Weedy Weed Smoker d5d7b02c33 Language descriptions update 2020-08-02 06:17:26 +07:00
Autechre 4371efafd7 Merge pull request #11127 from schellingb/explore_multilangfix2
Explore: Better accommodate different languages (updated)
2020-08-01 23:14:45 +02:00
twinaphex 8a24cc350e Resync 2020-08-01 22:55:08 +02:00
twinaphex 97297f71af (MSVC 2005) MSVC 2005 and earlier cannot use nbio_windowsmmap.c -
so disable it
2020-08-01 22:51:23 +02:00
Bernhard Schelling e26a9db3de Change "ITEM_COUNT" to "ITEMS_COUNT" 2020-08-02 05:09:39 +09:00
Twinaphex 8441f60314 Remove unused variable 2020-08-01 21:47:22 +02:00
Bernhard Schelling b396f29769 Replace 3 strings with format strings to better accommodate different languages
- "By" becomes "By %s"
- "Select" becomes "Select %s"
- "Items" becomes "%u Items"
2020-08-02 04:46:32 +09:00
twinaphex 83f4ce11f3 Revert "Replace 3 strings with format strings to better accommodate different languages"
This reverts commit a80fe4fbbc.
2020-08-01 21:24:59 +02:00
Autechre 5c05a03c97 Merge pull request #11126 from schellingb/explore_multilangfix
Explore: Better accommodate different languages
2020-08-01 21:21:24 +02:00
Bernhard Schelling a80fe4fbbc Replace 3 strings with format strings to better accommodate different languages
- "By" becomes "By %s"
- "Select" becomes "Select %s"
- "Items" becomes "%u Items"
2020-08-02 04:11:03 +09:00
twinaphex 6f0874f2b1 Silence warning 2020-08-01 18:26:20 +02:00
twinaphex aba17fdc92 Warning fix 2020-08-01 18:18:09 +02:00
twinaphex cd9ea1f44b Another warning fix 2020-08-01 18:16:19 +02:00
twinaphex 4ee45304b0 More warning fixes 2020-08-01 18:14:48 +02:00
twinaphex 3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +02:00
twinaphex 2ab779f3b5 Buildfix 2020-08-01 18:00:07 +02:00
Autechre 62cc21f1af Merge pull request #11125 from guoyunhe/crowdin-20200801-2
Remove _LANG_ strings that should not be translated
2020-08-01 17:23:52 +02:00
Guo Yunhe 57d8c4065f Remove _LANG_ strings that should not be translated 2020-08-01 17:50:52 +03:00
Autechre 6546580588 Merge pull request #11124 from guoyunhe/crowdin-20200801
Fetch translations from Crowdin
2020-08-01 16:35:27 +02:00
Guo Yunhe b4bf2773ef Fetch translations from Crowdin 2020-08-01 17:31:28 +03:00
twinaphex 08a8de6227 (XInput) Proper joypad disconnect messages now with autoconfig
system
2020-07-31 22:31:38 +02:00
twinaphex 3518b4ef9c Cleanups - stray variables and functions can now be made static 2020-07-31 20:05:04 +02:00
twinaphex 65af2828da Move dinput_joypad_get_vidpid_from_xinput_index to
xinput_hybrid_joypad.c
2020-07-31 19:54:15 +02:00
twinaphex 212fc885ed Cleanups - xinput_hybrid_joypad.c no longer calls into separate
dinput_joypad driver interface
2020-07-31 19:52:03 +02:00
twinaphex 8ab1d7f8ec Cleanups 2020-07-31 19:30:03 +02:00
twinaphex 449f8dff8e Cleanups 2020-07-31 19:25:20 +02:00
twinaphex 5c7ba50ce1 Cleanups 2020-07-31 19:22:07 +02:00
twinaphex b171f35836 Move these globals out of dinput.c and into dinput_joypad_inl.h 2020-07-31 19:08:46 +02:00
twinaphex b5e0f7edfd Split up dinput_joypad.c into dinput_hybrid_joypad.c (both HAVE_DINPUT
and HAVE_XINPUT defined) and dinput_joypad.c (only HAVE_DINPUT defined)
2020-07-31 19:06:22 +02:00
twinaphex 5c5c57de9c Split up xinput_joypad.c into xinput_hybrid_joypad.c (assumes
-DHAVE_DINPUT) and xinput_joypad.c (no Dinput available at all)
2020-07-31 18:57:44 +02:00
twinaphex 95604f55b9 Add inline header files 2020-07-31 18:48:45 +02:00
twinaphex 04e67f1ac9 Make Xbox 360 reuse default xinput_joypad.c driver 2020-07-31 18:32:28 +02:00
twinaphex 771c0fec39 Add xinput_joypad.h header 2020-07-31 18:22:35 +02:00
twinaphex 748886c5e5 (DInput) Cleanups 2020-07-31 18:15:36 +02:00
Autechre bbcc863270 Merge pull request #11117 from jdgleaver/playlist-search
Enhanced playlist search functionality
2020-07-31 17:13:59 +02:00
jdgleaver 776301883c Enhanced playlist search functionality 2020-07-31 15:14:51 +01:00
twinaphex c522f97e0f Cleanups 2020-07-31 14:51:46 +02:00
twinaphex c19ea3e8ab Cleanup 2020-07-31 14:49:30 +02:00
twinaphex 1f1571425a (Switch) Cleanups 2020-07-31 14:47:14 +02:00
Autechre 0c7ee3d573 Merge pull request #11115 from hhromic/fix-stats-dpy
Fix audio/video statistics display flickering in certain Windows platforms
2020-07-31 11:37:48 +02:00
Hugo Hromic 879e469a50 Fix audio/video statistics display flickering in certain Windows platforms
Recent member addition caused struct misalignment.
2020-07-31 10:26:12 +01:00
twinaphex 573f9e60c7 (libnx) Prevent some warnings 2020-07-31 10:54:57 +02:00
Autechre 7046daf53d Merge pull request #11114 from guoyunhe/crowdin-20200731
Fetch translations from Crowdin
2020-07-31 09:58:23 +02:00
Guo Yunhe 4f62548f91 Fetch translations from Crowdin 2020-07-31 10:50:17 +03:00
Autechre b26739167e Merge pull request #11111 from schellingb/explore_multilang
Explore: Support for localization
2020-07-30 21:05:00 +02:00
Bernhard Schelling 1644e493f0 Explore: Support for internationalization
Replace hardcoded English strings with msg_hash_to_str lookups
2020-07-31 03:09:23 +09:00
Autechre 0ae214b2db Merge pull request #11110 from schellingb/explore_fix_cached_playlist
Explore: Fix freeing of cached playlist
2020-07-30 19:33:00 +02:00
Bernhard Schelling fc5a11d2e7 Remove wrong (re)initialization of cached_external, add NULL check 2020-07-31 01:26:58 +09:00
Bernhard Schelling 5da2ada6b8 Explore: Fix freeing of cached playlist (it could cause a crash in glui menu when jumping up multiple menu lists)
Also makes setting cached_playlist with an external list less of a hack and simplifies menu_explore.c a bit
2020-07-31 00:53:01 +09:00
Autechre e0ffe8184f Merge pull request #11105 from Jamiras/ogg_bsnes_crash
move large array off stack
2020-07-30 07:19:03 +02:00
Jamiras 92e61ccb5c move temporary buffer off stack 2020-07-29 19:54:48 -06:00
Autechre d09f3b7248 Merge pull request #11102 from jdgleaver/qt-icon-fix
(Qt) Fix display of settings icons
2020-07-29 15:44:37 +02:00
twinaphex f162875583 (PSP scanning) Add more PSP serials 2020-07-29 15:41:05 +02:00
twinaphex 784e1187e1 (PSP scanning) Regression fix - should scan games with serial ULU again 2020-07-29 15:29:51 +02:00
jdgleaver 90f4c5d8ae (Qt) Fix display of settings icons 2020-07-29 13:56:39 +01:00
Autechre c812727de7 Merge pull request #11101 from jdgleaver/hide-explore
Add option to hide 'Explore' tab + menu clean-ups
2020-07-29 14:30:03 +02:00
jdgleaver d77f6705df Add option to hide 'Explore' tab + menu clean-ups 2020-07-29 13:01:49 +01:00
twinaphex ed3ee2511f Cleanups - add local variable 2020-07-29 05:31:23 +02:00
twinaphex 4f931f2729 Use UINT32_C / UINT64_C throughout the codebase 2020-07-29 04:48:11 +02:00
twinaphex 1f0529a275 (libz) Silence some warnings - use INT64_C/UINT64_C 2020-07-29 04:41:13 +02:00
twinaphex 8eb7c1d226 (Win32) Another buildfix for CRT changes 2020-07-29 04:36:29 +02:00
Autechre 38a6d9b2d2 Merge pull request #11095 from rsn8887/master
Fix input port assignments
2020-07-29 04:22:56 +02:00
Autechre 74cd3ab99f Merge pull request #11097 from alphanu1/master
Fix for dispserv win32 compile issue
2020-07-29 04:21:01 +02:00
alphanu1 cba3da50df Merge branch 'master' of https://github.com/alphanu1/mme4crt 2020-07-28 22:42:10 +01:00
alphanu1 7e39a4a25c Update dispserv_win32.c 2020-07-28 22:41:56 +01:00
rsn8887 78c9dbbd20 Fix input port assignments 2020-07-28 16:35:16 -05:00
Autechre 175d998af4 Merge pull request #11094 from schellingb/explore_improvements_1
Explore view improvements
2020-07-28 21:53:51 +02:00
Bernhard Schelling 61e2b1581d Explore view improvements
If no database item can be connected to a playlist entry through CRC32, find a match of the database name value using the playlist label.
Use database name instead of the systemname field of core_info_t as system name (systemname of some cores contains multiple system names, database name is more appropriate).
2020-07-29 04:33:03 +09:00
Autechre 0f9f46f499 Merge pull request #11093 from alphanu1/master
On the fly CRT porch adjuments
2020-07-28 20:09:58 +02:00
alphanu1 e222d62f6c Merge pull request #7 from libretro/master
upstream
2020-07-28 18:55:54 +01:00
Twinaphex 8f068fae6c Cleanups 2020-07-28 19:49:17 +02:00
alphanu1 d3a2f2f921 Update video_crt_switch.c
Fixed infinate switching bug
2020-07-28 18:43:29 +01:00
alphanu1 50f54fcb43 Update video_display_server.h
fixed function
2020-07-28 18:28:31 +01:00
alphanu1 610f9d6c48 Fix missing arg 2020-07-28 18:15:01 +01:00
twinaphex b1acb00832 (menu_explore.c) Cleanups - prevent some implicit memsets 2020-07-28 17:38:50 +02:00
Autechre c963bbe15f Merge pull request #11092 from schellingb/explore_fix_crashonexit
Explore view - Fix crash when quitting while viewing item details
2020-07-28 17:14:45 +02:00
twinaphex dd524d7d35 (MaterialUI) Add placeholder Explore tab icon 2020-07-28 16:57:29 +02:00
Bernhard Schelling 6c8506399c Fix crash when quitting while viewing item details
When RetroArch was closed while viewing/playing a content item opened through the explore view there would be a crash during cleanup because the cached playlist would be freed twice (once by playlists own playlist_free_cached and once more through explore_free).
2020-07-28 23:51:06 +09:00
Autechre 8cb861798e Merge pull request #11075 from francescotintori/francesco/playlist_autofix
Playlist base content directory paths
2020-07-28 16:10:20 +02:00
alphanu1 55e3bd3d2d Added ability to adjust porch values
Porches can now be manipulated from the CRTSwitchRes menu
2020-07-28 14:25:38 +01:00
twinaphex 6ccb758939 Update 2020-07-28 14:33:23 +02:00
twinaphex 395de4bae5 (Menu explore) jdgleaver's memory leak fixes 2020-07-28 14:32:46 +02:00
Autechre 89bc5d9c0c Merge pull request #11091 from schellingb/explore_fix_leaks
Fix 2 memory leaks in explore view
2020-07-28 14:32:20 +02:00
Autechre da5f5319cf Merge pull request #11089 from bulzipke/patch-1
[3DS] Fix sound cracking when pause
2020-07-28 14:08:42 +02:00
Bernhard Schelling 77a7e7eecd Fix 2 memory leaks in explore view
Free cached playlist that could have been loaded before entering explore view
Free temporary hashmap used to filter sub-categories
2020-07-28 21:06:20 +09:00
twinaphex 89567dae5d (input hid) Change back to original code 2020-07-28 12:42:33 +02:00
Twinaphex 59549d9f62 Remove unused variable 2020-07-28 12:17:16 +02:00
twinaphex 4c6136d970 Stub out menu_explore.c when HAVE_LIBRETRODB is not defined 2020-07-28 12:15:05 +02:00
twinaphex 079d1fc2fc (menu explore) Further cleanups 2020-07-28 11:42:51 +02:00
twinaphex 36c27378bf Cleanups; C89_BUILD buildfixes, CXX_BUILD buildfixes, etc 2020-07-28 10:47:26 +02:00
bulzipke 1c0fb50877 Update ctr_gfx.c
It fixed the sound cracking when opening or closing the 3DS screen.
2020-07-28 15:03:43 +09:00
twinaphex 0d6ceafb8b (Menu explore) Buildfix 2020-07-28 05:26:44 +02:00
Bernhard Schelling 667e8a558e Explore view - WIP1
A top content view that combines all playlists with database entries to browse by year, developer, system, etc.
Depends on the quality of the available metadata in the database (RDB) files.
2020-07-28 04:44:31 +02:00
francescotintori 9744fcb76a Adds base content directory support in playlists. If playlist base content directory does not match configuration parameter 'rgui_browser_directory', all entries paths are automatically fixed to match parameter 'rgui_browser_directory'.
Functionality is enabled if new parameter 'playlist_autofix_paths' is enabled.
2020-07-27 20:59:56 +02:00
Autechre c13c045e64 Merge pull request #11086 from jdgleaver/rgui-switch-icons
(RGUI) Add optional 'toggle switch' icons
2020-07-27 17:26:56 +02:00
jdgleaver fba4a8e837 (RGUI) Add optional 'toggle switch' icons 2020-07-27 14:45:07 +01:00
twinaphex 7f1cd52d65 Remove video_driver_context_get_size 2020-07-27 14:33:21 +02:00
twinaphex d6465a1348 Refactor 'focus' function callback 2020-07-27 13:46:55 +02:00
twinaphex 74345f08d6 Refactor video_driver_has_windowed 2020-07-27 13:39:02 +02:00
twinaphex 0c78d2ec27 Cleanup 2020-07-27 13:22:23 +02:00
twinaphex 60f3265017 Cleanups 2020-07-27 13:16:14 +02:00
twinaphex 61b798b789 Get rid of video_context_driver_set_video_mode 2020-07-27 11:08:34 +02:00
twinaphex 197465c1ea make_current is only ever used for GL, so move it out of
video_driver_load/unload_texture and into the inner GL
drivers
2020-07-27 10:26:13 +02:00
twinaphex 3d893b7602 Add extra parameter to unload_texture 2020-07-27 10:15:28 +02:00
twinaphex 1204ae6edb Just call the poke function call here 2020-07-27 09:46:06 +02:00
twinaphex dc94356505 Cleanup context driver video output functions 2020-07-27 09:38:20 +02:00
twinaphex 3e04b158ab Get rid of video_context_driver_write_to_image_buffer 2020-07-27 08:25:11 +02:00
twinaphex 8dc7524e43 Get rid of video_context_driver_translate_aspect wrapper function 2020-07-27 08:15:35 +02:00
twinaphex 9db00e4143 Start using video_driver_get_flags_wrapper again 2020-07-27 06:40:30 +02:00
twinaphex 4120abd4d4 Cleanups 2020-07-27 06:27:35 +02:00
twinaphex 014875c3d3 Ensure size of msg_hash_enums is big enough for now 2020-07-27 05:07:44 +02:00
Autechre 9301344ea8 Update CHANGES.md 2020-07-26 23:42:18 +02:00
Autechre 7a07d4977f Merge pull request #11084 from hhromic/add-font-size
(Menu/DisplayList) Make notification font size option visible when graphics widgets are enabled
2020-07-26 23:41:48 +02:00
Hugo Hromic e5a50a4e33 (Menu/DisplayList) Make notification font size option visible when graphics widgets are enabled
The on-screen audio/video statistics uses the font size option for rendering.
2020-07-26 22:28:32 +01:00
twinaphex b9e471d22a Revert "Video context driver cleanups - less functions to go through with"
This reverts commit cd1d760a38.
2020-07-26 23:12:05 +02:00
twinaphex 26d915c1f2 Revert "(core_info.c) Cleanup"
This reverts commit ab8f3115da.
2020-07-26 23:11:53 +02:00
twinaphex b604200730 Revert "Cleanup core_info_hw_api_supported"
This reverts commit 9f653f27b0.
2020-07-26 23:11:38 +02:00
twinaphex 4e5037d7e1 Revert "Get rid of these context driver higher level functions"
This reverts commit 27b09229b3.
2020-07-26 23:11:24 +02:00
twinaphex b96ec6b8a8 Revert "Cleanup"
This reverts commit 3108df009e.
2020-07-26 23:11:16 +02:00
twinaphex 3108df009e Cleanup 2020-07-26 12:04:55 +02:00
twinaphex 27b09229b3 Get rid of these context driver higher level functions 2020-07-26 11:58:38 +02:00
twinaphex 9f653f27b0 Cleanup core_info_hw_api_supported 2020-07-26 08:29:17 +02:00
twinaphex ab8f3115da (core_info.c) Cleanup 2020-07-26 08:22:04 +02:00
twinaphex cd1d760a38 Video context driver cleanups - less functions to go through with
public scope
2020-07-26 08:00:49 +02:00
twinaphex f94b5864b2 Cleanup 2020-07-25 19:58:14 +02:00
twinaphex 30dd294c43 (GDI) Implement resolution callback functions 2020-07-25 19:36:19 +02:00
twinaphex 9f20a48602 (D3D10/11/12) Implement resolution callback functions 2020-07-25 11:47:49 +02:00
twinaphex cb138183ad (Vulkan) Implement video resolution callback functions 2020-07-25 11:35:42 +02:00
twinaphex dc14f4150d Cleanup 2020-07-25 00:04:25 +02:00
twinaphex d92280e20e Cleanups 2020-07-25 00:02:26 +02:00
twinaphex b9cb8c8890 (device_null) Cleanups 2020-07-24 23:57:15 +02:00
twinaphex 9d76412715 (WiiU) Another buildfix 2020-07-24 23:55:06 +02:00
twinaphex a49b5b7129 Cleanups 2020-07-24 22:23:52 +02:00
twinaphex 08776496ed Cleanups 2020-07-24 22:12:33 +02:00
Autechre d6d6dcdf5c Merge pull request #11076 from barbudreadmon/patch-6
gcm_gfx.c: oops, forgot to include this
2020-07-24 19:57:04 +02:00
barbudreadmon 2dedaca7b3 gcm_gfx.c: oops, forgot to include this 2020-07-24 19:40:07 +02:00
Autechre 2515863058 Merge pull request #11074 from barbudreadmon/patch-7
gcm_gfx.c: compatibility with recent psl1ght sdk
2020-07-24 19:16:17 +02:00
Autechre 80f978b683 Merge pull request #11072 from jdgleaver/core-options-tweaks
Core option improvements
2020-07-24 19:12:19 +02:00
Autechre 35183c1fbb Merge pull request #11073 from barbudreadmon/patch-6
psl1ght_input.c: fix typo
2020-07-24 19:12:10 +02:00
twinaphex 0003074cfe (Input HID) Cleanups/buildfixes 2020-07-24 19:11:20 +02:00
twinaphex 1b24c37919 (WiiU) More build fixes 2020-07-24 19:01:35 +02:00
barbudreadmon 70025e4d08 gcm_gfx.c: compatibility with all sdks 2020-07-24 18:39:00 +02:00
jdgleaver 013ec3ebb2 Core Options: Detect 'enable'/'disable' as boolean-type value labels 2020-07-24 17:15:47 +01:00
barbudreadmon 3f7895a668 gcm_gfx.c: compatibility with recent psl1ght sdk 2020-07-24 17:47:28 +02:00
barbudreadmon 6521eb980b psl1ght_input.c: fix typo 2020-07-24 17:37:07 +02:00
jdgleaver 9a19a7ae31 Core option improvements 2020-07-24 15:31:50 +01:00
twinaphex d93cf0d9dc Cleanups 2020-07-24 04:44:49 +02:00
twinaphex 2364fdd900 (Wiiu) Cleanups 2020-07-24 04:42:43 +02:00
twinaphex d2c3a6d71e (Wiiu) Buildfix 2020-07-24 04:40:39 +02:00
Autechre 75a764c668 Merge pull request #11071 from hhromic/reimpl-git-version
(Makefiles) Re-implement Git version handling
2020-07-24 00:21:52 +02:00
Hugo Hromic 4205e73c9a (Makefiles) Re-implement Git version handling
Better (more fine-grained) logic for version_git.o regeneration.
2020-07-23 21:28:22 +01:00
Francisco José García García 49b7a03335 (VITA) Rename frontend_psp_get_mem_used to free 2020-07-23 21:04:49 +02:00
Autechre a308be6e87 Update CHANGES.md 2020-07-23 18:43:15 +02:00
Autechre 53eee276c7 Merge pull request #11070 from Ryunam/notification-font
Make Notification Font option visible when Graphics Widgets are enabled
2020-07-23 18:42:47 +02:00
Autechre 6f6f9122d3 Update CHANGES.md 2020-07-23 18:40:57 +02:00
Autechre 72c8780714 Merge pull request #11069 from jdgleaver/input-remap-dropdown-lists
Add input remap drop-down lists
2020-07-23 18:40:17 +02:00
Ryunam ee8317a8e4 Make Notification Font visible when Widgets are enabled 2020-07-23 18:26:42 +02:00
jdgleaver 60407a84e6 Add input remap drop-down lists 2020-07-23 17:20:41 +01:00
twinaphex ad30ffa085 Cleanups 2020-07-23 18:11:20 +02:00
twinaphex a01380f847 (WiiU) Buildfixes 2020-07-23 18:01:15 +02:00
Autechre bf542c22d0 Update CHANGES.md 2020-07-23 17:49:17 +02:00
Autechre a644abcd6a Merge pull request #11068 from spec-chum/cheatfix
Fix for wrong number of remaining cheat search matches on some machines
2020-07-23 17:48:56 +02:00
Spec-Chum b7687215a6 Fix for wrong number of remaining cheat search matches on some machines 2020-07-23 11:57:01 +01:00
twinaphex d384b215f4 Hopefully silences Emscripten warning 2020-07-23 11:32:50 +02:00
twinaphex eba83390ba Warning fixes 2020-07-23 07:39:08 +02:00
twinaphex 2f6ba7f477 Silence Emscripten warnings and leave TODO/FIXME note 2020-07-23 06:50:08 +02:00
twinaphex b84f62c440 Silence warning - char buffer was too small for what we wanted to
fit into it
2020-07-23 06:46:05 +02:00
twinaphex fa6d5333f7 More silencing of warnings 2020-07-23 06:39:21 +02:00
twinaphex 98516280ad (s16_to_float) Silence aggressive-loop-optimization undefined
behavior because of potential signed integer overflow
2020-07-23 06:35:30 +02:00
twinaphex 06eeea3931 We do use it, but only for HAVE_NETWORKING builds 2020-07-23 06:03:13 +02:00
twinaphex efbb6aa81d stub this out for now until we actually start using this 2020-07-23 05:58:07 +02:00
twinaphex a3242daa5d Silence more warnings 2020-07-23 05:51:04 +02:00
twinaphex 8777a6eb6a (WiiU) Buildfix 2020-07-23 05:42:51 +02:00
twinaphex 4f39c60bc0 (Switch) Silence some more warnings 2020-07-23 05:29:42 +02:00
twinaphex 128a65cc4c Prevent more warnings 2020-07-23 05:24:33 +02:00
twinaphex d72b118a2d Make char array big enough 2020-07-23 05:21:32 +02:00
twinaphex 73e63d369c Fix more array subscript has type char warnings 2020-07-23 05:20:23 +02:00
twinaphex 270a22ce0b core_info_hw_api_supported - silence warning array subscript has type
'char'
2020-07-23 05:18:15 +02:00
twinaphex b929553231 - Silence 'variable might be used uninitialized' warning
- PS2 - Add TODO/FIXME note
2020-07-23 05:02:52 +02:00
twinaphex 968ec1f4b1 (Android) Silence warning 2020-07-23 03:59:37 +02:00
twinaphex 6922a36ea1 (CocoaGL) Another buildfix 2020-07-22 22:25:28 +02:00
twinaphex b78591d9b6 Buildfix 2020-07-22 22:18:18 +02:00
Autechre b521268748 Update CHANGES.md 2020-07-22 20:46:05 +02:00
Autechre 8de7d6660f Update CHANGES.md 2020-07-22 19:58:43 +02:00
Autechre 1297d0d019 Update CHANGES.md 2020-07-22 19:57:51 +02:00
Autechre 95221945bb Merge pull request #11065 from yoshisuga/yoshisuga/ios-metal-dpi
[iOS][tvOS][Metal] Support getting video metrics to support proper touchscreen interactions
2020-07-22 07:09:24 +02:00
twinaphex 12a4fa0809 Buildfix 2020-07-22 00:46:16 +02:00
twinaphex ca2a59e03d (Cocoa GL) Global variable cleanups 2020-07-22 00:44:45 +02:00
Yoshi Sugawara c462aaf374 iOS Metal: implement the metric method for the graphics context to support getting the dpi - this is needed to make the touch interactions with the menus work. Update the metal and opengl graphics context to support a lower dpi for larger screen iPhones to make better use of the screen 2020-07-21 11:33:37 -10:00
Autechre 6c7143d02d Merge pull request #10981 from yoshisuga/yoshisuga/ios-metal
iOS/tvOS Metal Renderer
2020-07-21 20:41:07 +02:00
Autechre c3ee17c842 Merge pull request #11064 from guoyunhe/crowdin-20200721
Fetch translations from Crowdin
2020-07-21 18:26:42 +02:00
Autechre e436852a5b Merge pull request #11063 from jdgleaver/quit-on-error
Fix 'content launched from command line' detection
2020-07-21 18:25:48 +02:00
Autechre e330209c99 Merge pull request #11062 from hhromic/fix-version-git
(Makefiles) Fix incorrect check in Git version checking
2020-07-21 18:25:23 +02:00
Guo Yunhe 9964c2a488 Fetch translations from Crowdin 2020-07-21 17:56:31 +03:00
jdgleaver 83f9817041 Fix 'content launched from command line' detection 2020-07-21 14:26:40 +01:00
Hugo Hromic 10ab4b9118 (Makefiles) Fix incorrect check in Git version checking 2020-07-21 13:52:28 +01:00
Autechre cdc7327e47 Merge pull request #11061 from fjtrujy/PS2PRI_SIZET
Fix issue with the PS2 and PRI_SIZET
2020-07-21 12:59:09 +02:00
Francisco Javier Trujillo Mata 8334be07bf Fix issue with the PS2 and PRI_SIZET 2020-07-21 10:17:16 +02:00
Yoshi Sugawara 0b0f55f043 remove commented out code, simplify ifdef for macOS 2020-07-20 16:51:55 -10:00
Yoshi Sugawara 2187cf67c9 Support the ApplePlatform delegate for all iOS builds (the OpenGL one) so that the view initialization happens in the same way; remove the companion UI for iOS; four finger swipe down now shows RA menu on iOS 2020-07-20 15:38:24 -10:00
Yoshi Sugawara 271ac7f925 support the OpenGL driver in the metal build by delegating the view initialization to the ApplePlatform delegate (metal build only for now) 2020-07-20 14:00:28 -10:00
twinaphex 41b9b8d650 (uwp_input.c) Refactor code 2020-07-20 23:22:07 +02:00
twinaphex caa1145b35 (joypad drivers) xdk_joypad.c - cleanup(joypad drivers) xdk_joypad.c -
cleanup(joypad drivers) xdk_joypad.c - cleanup(joypad drivers)
xdk_joypad.c - cleanup(joypad drivers) xdk_joypad.c - cleanup(joypad
drivers) xdk_joypad.c - cleanup(joypad drivers) xdk_joypad.c -
cleanup(joypad drivers) xdk_joypad.c - cleanup(joypad drivers)
xdk_joypad.c - cleanup
2020-07-20 23:15:19 +02:00
Autechre 2681991c29 Merge pull request #11056 from Tatsuya79/master
Make Blargg_snes filter customizable.
2020-07-20 23:10:50 +02:00
Autechre b152bfc808 Merge pull request #11057 from fjtrujy/fps_limiter
[PS2] Improve FPS Limiter
2020-07-20 23:10:24 +02:00
Francisco Javier Trujillo Mata 86c43d65fa Add FPSLimiter functionality 2020-07-20 22:58:31 +02:00
Tatsuya79 3bdf636e52 Make Blargg_snes filter customizable. 2020-07-20 22:57:07 +02:00
Autechre 77c59dea70 Merge pull request #11055 from jacobpa/master
Fix initialization of pattern and strengths arrays
2020-07-20 22:56:29 +02:00
Autechre c3dfae5ba6 Merge pull request #11054 from fjtrujy/fixPS2Joypad
Fix ps2_joypad compilation after refactor of the main driver
2020-07-20 22:55:03 +02:00
Francisco Javier Trujillo Mata 67e0a49941 Fix ps2_joypad compilation after refactor of the main driver 2020-07-20 22:51:00 +02:00
Jacob Patterson a28ea1e1c6 Fix initialization of pattern and strengths arrays
Vibrator.vibrate(long[] pattern, int repeat) and
VibrationEffect.createWaveform(long[] timings, int[] amplitudes, int repeat)
expect an array of off/on pairs for both timings and amplitudes. Add an initial
off time of zero to achieve expected vibration behavior.
2020-07-20 16:13:58 -04:00
twinaphex 4ca1692174 (Qt) Style nits 2020-07-20 22:05:12 +02:00
twinaphex 9ecc30a501 Cleanups 2020-07-20 21:39:54 +02:00
twinaphex 49539dbef4 (Qt) Style nits 2020-07-20 21:37:15 +02:00
Autechre 80763e0376 Merge pull request #11053 from Ryunam/screenshot-adjustments
Adjustments to Screenshot Notification options
2020-07-20 20:23:38 +02:00
twinaphex 2ecb6e654e Cleanups 2020-07-20 20:22:13 +02:00
Ryunam 4d2fe14c1d Adjustments to Screenshot Notification options 2020-07-20 19:44:55 +02:00
twinaphex 465e84d60c (context drivers) Make names uniform 2020-07-20 18:22:33 +02:00
twinaphex 7574a80391 Change some context driver names 2020-07-20 18:15:37 +02:00
Autechre 65369ddf20 Merge pull request #11048 from hhromic/fix-version-git
(Makefiles) Use fallback directory in Git version checking
2020-07-20 17:55:01 +02:00
Autechre 11972c900c Merge pull request #11052 from jdgleaver/unix-free-mem
(Linux/Android) Fix reporting of free memory
2020-07-20 17:40:16 +02:00
jdgleaver aefeae4b50 (Linux/Android) Fix reporting of free memory 2020-07-20 16:22:12 +01:00
Autechre 0162bbc4b0 Merge pull request #11047 from jdgleaver/autoconfig-fixes
Input autoconfig fixes/improvements
2020-07-20 17:07:04 +02:00
Hugo Hromic bdf795eb45 (Makefiles) Use fallback directory in Git version checking
Addresses the case when OBJDIR is not defined, e.g. libnx builds.
2020-07-20 13:44:39 +01:00
jdgleaver 8e2901d23a Minor optimisations 2020-07-20 13:24:18 +01:00
jdgleaver 9b1edc5eee Input autoconfig fixes/improvements 2020-07-20 12:34:29 +01:00
twinaphex 994d6aee63 Cleanups 2020-07-20 06:48:02 +02:00
twinaphex a5a3d64b18 (Vulkan) Cleanups 2020-07-20 06:31:15 +02:00
twinaphex 9ac9309991 Optimize call to vulkan_present 2020-07-20 04:45:12 +02:00
twinaphex 0e9a86816e xinput_joypad_poll - make UWP codepath leading 2020-07-20 03:35:52 +02:00
Yoshi Sugawara b1a718d8c5 fixed typo in bundle id 2020-07-19 15:32:23 -10:00
Yoshi Sugawara 59ae1a1ca8 revert bundle id and product name 2020-07-19 15:25:24 -10:00
Yoshi Sugawara a5fd455c33 fixed setting default audio driver for coreaudio - no need to check for HAVE_COCOA_METAL 2020-07-19 15:19:15 -10:00
twinaphex abd3365a34 (XInput Joypad) Cleanups 2020-07-20 03:19:14 +02:00
twinaphex 5f7e8593d0 (DInput Joypad) Cleanups(DInput Joypad) Cleanups(DInput Joypad)
Cleanups(DInput Joypad) Cleanups(DInput Joypad) Cleanups(DInput Joypad)
Cleanups(DInput Joypad) Cleanups(DInput Joypad) Cleanups(DInput Joypad)
Cleanups
2020-07-20 03:04:18 +02:00
twinaphex 54b04af8de More buildfixes 2020-07-20 02:11:03 +02:00
twinaphex 4337ec33d7 Buildfix 2020-07-20 02:09:07 +02:00
twinaphex 7672367b8b Buildfix for --disable-screenshots 2020-07-20 02:07:04 +02:00
twinaphex 6be4adffdf Silence warning with --disable-menu 2020-07-20 02:04:43 +02:00
twinaphex c387071298 Add static globals TODO/FIXME note 2020-07-20 02:02:00 +02:00
twinaphex 9fb54a0a1c Fix --disable-menu 2020-07-20 01:58:49 +02:00
twinaphex cd2d4f2248 Revert "Remove input_x11_common.c and merge into x11_input.c"
This reverts commit a0948c1d9d.
2020-07-20 01:46:03 +02:00
twinaphex c4557c9bbc Revert "Update Griffin"
This reverts commit 98a7a1ba93.
2020-07-20 01:45:54 +02:00
twinaphex 98a7a1ba93 Update Griffin 2020-07-20 01:40:16 +02:00
twinaphex a0948c1d9d Remove input_x11_common.c and merge into x11_input.c 2020-07-20 01:39:55 +02:00
twinaphex b4be9b7e03 (input/connect) Cleanup axis functions 2020-07-20 01:36:13 +02:00
twinaphex 2efb1600a8 (BTStack) Cleanup 2020-07-20 01:32:45 +02:00
twinaphex 005a9c005e (IOHIDManager) Cleanup 2020-07-20 01:30:42 +02:00
twinaphex 632329f4bb We should probably allow the user to individually control the screenshot
flash
2020-07-20 01:11:08 +02:00
twinaphex 279e142668 Properly hide other notification visibility screenshot settings
when master one is disabled
2020-07-20 01:09:08 +02:00
twinaphex 6cba44328d (PSP) Buildfix 2020-07-20 00:58:57 +02:00
twinaphex 174675ee71 (Wii) Buildfix 2020-07-20 00:57:16 +02:00
twinaphex 74e5d366c8 (WiiU) Buildfix 2020-07-20 00:53:21 +02:00
twinaphex 36a76d1248 Take out my own implementation in favor of Ryunam's 2020-07-20 00:50:40 +02:00
Autechre 8861416b32 Merge pull request #11046 from Ryunam/screenshot-notification
Add options to control visibility, duration and flashing effect of Screenshot Notifications
2020-07-20 00:27:02 +02:00
Autechre bda956e7a8 Merge pull request #11045 from hhromic/imprv-version-git
(Makefiles) Improve version_git.o regeneration
2020-07-20 00:25:48 +02:00
Hugo Hromic ca8e465cae (Makefiles) Improve version_git.o regeneration
Only rebuild the git version object when the git hash changes.
2020-07-19 23:02:37 +01:00
twinaphex f06af20a4a Cleanups 2020-07-19 23:48:18 +02:00
Yoshi Sugawara b83823f1f1 Add preprocessor flags for tvOS and other build settings; fix compiler errors when building for tvOS sdk 2020-07-19 11:42:19 -10:00
Ryunam 5014f90e4d Add options to customize Screenshot notifications 2020-07-19 23:42:16 +02:00
twinaphex ccd9b8ead4 (Widgets) onscreen Notifications -> Add setting to enable/disable 'take
screenshot' widget individually
2020-07-19 23:26:14 +02:00
twinaphex 723b42f655 Cleanups 2020-07-19 22:44:46 +02:00
Autechre e7ea698d58 Merge pull request #11044 from hhromic/imprv-mem-status
(Menu/OSD) Implement configurable update interval for memory usage display
2020-07-19 22:15:13 +02:00
Hugo Hromic 1e3fb9505c (Menu/OSD) Implement configurable update interval for memory usage display
Obtaining system memory metrics is generally an expensive operation.
2020-07-19 19:57:50 +01:00
Yoshi Sugawara 941a488733 removed btstack since less relevant for iOS 2020-07-19 08:37:06 -10:00
Yoshi Sugawara 6692a8797f added comments on why native companion menu is disabled 2020-07-19 08:04:17 -10:00
Yoshi Sugawara 588d0b7595 removed commented out code 2020-07-19 08:02:17 -10:00
Yoshi Sugawara 42e4854245 replaced confusing ifdef with a more concise #if TARGET_OS_OSX 2020-07-19 07:57:10 -10:00
Yoshi Sugawara 3dc716299f replaced confusing ifdef with a more concise #if TARGET_OS_OSX 2020-07-19 07:54:47 -10:00
Yoshi Sugawara a2327be378 improved readability for references to the platform specific metal storage mode option; removed support for btstack since its not compiling and is less relevant for the iOS platform; removed commented out code 2020-07-19 07:48:07 -10:00
twinaphex 897a9de5be (drivers_joypad) Cleanup axis functions 2020-07-19 18:51:05 +02:00
Autechre ff01ed8cc3 Merge pull request #11043 from hhromic/rfctr-status-text
(Menu/OSD) Refactor "fps_text" into "status_text" internally
2020-07-19 18:13:25 +02:00
Hugo Hromic c3bf17d3f5 (Menu/OSD) Refactor "fps_text" into "status_text" internally
"fps_text" is used for several status parameters, not just FPS.
2020-07-19 16:58:58 +01:00
Yoshi Sugawara fd9ac64d55 Merge branch 'master' into yoshisuga/ios-metal 2020-07-19 00:33:54 -10:00
Yoshi Sugawara a19f1451cd removed debug logging statements; enable multi touch on metal view to support touchscreen controls; fixed setting the metal view drawable size based on the view bounds size in pixels 2020-07-19 00:11:15 -10:00
twinaphex f1fed5397a (Winraw) code de-duplication 2020-07-19 05:17:11 +02:00
twinaphex 2509a75477 (Udev) Code de-duplication 2020-07-19 05:07:50 +02:00
twinaphex 6e2c519513 (X11) Buildfix 2020-07-19 04:51:22 +02:00
twinaphex abc19cbe02 (X11) Cleanups 2020-07-19 04:48:14 +02:00
twinaphex 0207e29ee9 (Android) Cleanups 2020-07-19 04:13:23 +02:00
twinaphex 24f310a26d Small cleanup 2020-07-19 03:48:26 +02:00
twinaphex 18dcda09d0 (IOHIDManager) Another buildfix 2020-07-19 03:39:32 +02:00
twinaphex b8f9e38b7e (IOHIDManager) Buildfix 2020-07-19 03:38:07 +02:00
twinaphex b5a52755a0 Buildfix 2020-07-19 03:26:35 +02:00
twinaphex de73e3bff9 Buildfixes 2020-07-19 03:25:30 +02:00
twinaphex b1a6b35379 Buildfix 2020-07-19 03:23:07 +02:00
twinaphex 285b0ec0bb Buildfix 2020-07-19 03:20:41 +02:00
twinaphex d97e590aaf Reimplement multi button state functions 2020-07-19 03:18:12 +02:00
twinaphex 6540038c6b Updated PSL1GHT joypad driver's 'button' function 2020-07-18 23:10:55 +02:00
twinaphex ad2279bb29 Cleanups 2020-07-18 23:06:12 +02:00
Autechre 38a410105e Merge pull request #11039 from hhromic/fix-win32-mem
(Drivers/Frontend/Win32) Report "free" memory instead of "used" as per driver contract.
2020-07-18 22:39:29 +02:00
twinaphex cb5b22b6ac (Android) Refactor axis functions 2020-07-18 22:38:23 +02:00
Autechre f8d6cea02a Update udev_joypad.c 2020-07-18 21:56:27 +02:00
Hugo Hromic 3d356a46d5 (Drivers/Frontend/Win32) Report "free" memory instead of "used" as per driver contract. 2020-07-18 19:28:36 +01:00
twinaphex 08ad00f5d3 Start preparing for being able to grab multiple buttons at the same time 2020-07-18 19:51:14 +02:00
Yoshi Sugawara eed84b3021 re-created RetroArch_iOS11_Metal.xcodeproj with the appropriate compiler flags and fixed building for both metal and opengl; hardcoding the metal drawable size for now for testing 2020-07-18 07:47:10 -10:00
twinaphex 8b078662cd Change function signature of joypad driver's 'button' 2020-07-18 18:07:57 +02:00
twinaphex 34662e8fe8 (Context drivers) Cleanups - use egl_get_proc_address directly instead
of wrapper functions
2020-07-18 17:22:24 +02:00
twinaphex 7c66f0adbc Simplify win32_check_window 2020-07-18 17:09:07 +02:00
twinaphex 04a0c55add Cleanups 2020-07-18 16:54:14 +02:00
twinaphex 0ccb86d130 Cleanup 2020-07-18 14:15:23 +02:00
twinaphex 80c405ce52 Cleanups 2020-07-18 14:11:13 +02:00
twinaphex ef552ba768 Style nits/cleanups 2020-07-18 14:06:45 +02:00
twinaphex ebd62ecd78 Cleanups 2020-07-18 14:01:35 +02:00
twinaphex 8cfbe3b8d4 Cleanups 2020-07-17 20:35:11 +02:00
twinaphex 9f9d59f2be Cleanups 2020-07-17 16:46:00 +02:00
twinaphex 2e4938601a Cleanups 2020-07-17 16:34:11 +02:00
twinaphex 8390388f3f (DRM Go2) This global seems unused, remove it 2020-07-17 16:30:01 +02:00
twinaphex fcf0663baa (DRM CTX) Get rid of static globals - put them in struct 2020-07-17 16:26:57 +02:00
Autechre 5909f946d5 Merge pull request #11034 from Tatsuya79/patch-4
qt: add 'cheats applied' visibility toggle
2020-07-17 15:05:25 +02:00
Autechre d6a4345c44 Merge pull request #11037 from jdgleaver/hide-set-initial-disk-notifications
Add option to show/hide 'last used disc restored' notifications
2020-07-17 15:05:13 +02:00
Autechre 357e382452 Merge pull request #11035 from jdgleaver/load-content-anim-favorites-fix
(Load Content Animation) Fix detection of 'favourites' playlist
2020-07-17 15:04:59 +02:00
twinaphex 318c11129b Cleanups 2020-07-17 15:02:14 +02:00
twinaphex 5deb8f8bd8 Cleanups 2020-07-17 14:59:19 +02:00
twinaphex 1ca5958832 Cleanups 2020-07-17 14:57:00 +02:00
twinaphex 3983a19281 (Context drivers) Cleanups 2020-07-17 14:53:49 +02:00
twinaphex 7c66a7457a Go for a consistent return value 2020-07-17 14:44:57 +02:00
twinaphex b02d538a63 set_resize should not return false on success 2020-07-17 14:43:47 +02:00
twinaphex d2b749e0e6 Unnecessary 2020-07-17 14:19:17 +02:00
twinaphex d18f9fb137 Buildfix 2020-07-17 14:16:29 +02:00
twinaphex 1fb77c43a3 (X11) Split up X11 context into two - GL and Vulkan 2020-07-17 14:15:30 +02:00
twinaphex e8e9a7b1d3 Get rid of multiple definition of wayland show mouse function 2020-07-17 13:59:13 +02:00
twinaphex 5e2c38060b Update Griffin 2020-07-17 13:57:24 +02:00
twinaphex ebd140752a Update Makefile.common 2020-07-17 13:56:59 +02:00
twinaphex f4bc332bcd (Wayland) Split up Wayland context driver into two - GL and Vulkan 2020-07-17 13:55:25 +02:00
jdgleaver 230c1cdde2 Add option to show/hide 'last used disc restored' notifications 2020-07-17 12:52:28 +01:00
twinaphex 501f737249 (Android) Split up Android context driver into two - GL and Vulkan 2020-07-17 13:45:37 +02:00
twinaphex 8ab4c23deb Move another context driver to VK context drivers 2020-07-17 13:21:44 +02:00
jdgleaver c1f67d3f72 (Load Content Animation) Fix detection of 'favourites' playlist 2020-07-17 10:49:06 +01:00
Tatsuya79 ed9aa75314 qt: add 'cheats applied' visibility toggle 2020-07-17 10:46:17 +02:00
twinaphex 2ff2604e69 MSVC buildfix 2020-07-17 04:35:01 +02:00
twinaphex cbca370d76 Split up wgl_ctx.c into two files - GL and Vulkan 2020-07-17 04:28:26 +02:00
twinaphex c9398a3855 (gfx widgets) Remove dead code 2020-07-17 04:06:02 +02:00
twinaphex 36b581c733 Add 'Show Cheats Applied' onscreen notification visibility setting 2020-07-17 03:32:22 +02:00
twinaphex baa349f2ec Cleanup 2020-07-17 02:32:37 +02:00
twinaphex df73277ca8 (WGL) Bind different callback for Vulkan 2020-07-17 02:31:12 +02:00
twinaphex ea920b1aaf Silence warning 2020-07-17 02:18:32 +02:00
twinaphex 105e135e48 Cleanup 2020-07-17 01:20:31 +02:00
twinaphex 6a5770af6d Cleanups 2020-07-17 01:17:37 +02:00
twinaphex 707b40d116 Cleanups 2020-07-17 01:09:00 +02:00
twinaphex be1e245396 Cleanups 2020-07-17 00:59:20 +02:00
twinaphex 318d5490cd Cleanups 2020-07-17 00:50:06 +02:00
twinaphex 2630727daa Start preparing groundwork for separate context_drivers 2020-07-17 00:44:30 +02:00
twinaphex 2ef69d61ed Remove two unused functions 2020-07-17 00:29:01 +02:00
Autechre bbe234898f Merge pull request #11030 from hhromic/menu-imprv
(Menu) General usability improvements for setting defaults
2020-07-16 18:55:18 +02:00
Autechre b4a2589279 Merge pull request #11032 from guoyunhe/github-action-crowdin
GitHub Action for Crowdin
2020-07-16 18:54:52 +02:00
Autechre 466db54e9c Merge pull request #11033 from jdgleaver/notification-visibility
Add 'Notification Visibility' menu
2020-07-16 18:15:35 +02:00
jdgleaver 75b3b5350c Add 'Notification Visibility' menu 2020-07-16 16:32:01 +01:00
Guo Yunhe b36c9d6723 GitHub Action for Crowdin 2020-07-16 15:09:27 +03:00
twinaphex 324eb4f098 (UWP) Buildfix 2020-07-16 11:49:15 +02:00
Autechre deba9fa531 Merge pull request #11031 from hhromic/patch-1
Update .gitignore
2020-07-16 11:47:50 +02:00
Hugo Hromic da9ab75e18 Update .gitignore
Added missing RetroArch generated files.
2020-07-16 09:39:25 +01:00
Hugo Hromic f4dec615ef (Menu) General usability improvements for setting defaults 2020-07-16 09:17:10 +01:00
twinaphex b8cc047d20 (context drivers) Cleanups 2020-07-16 03:40:52 +02:00
Autechre 343a04e2b8 Merge pull request #11027 from schellingb/archive_cleanup_1b
Use MMAP again for ZIP loading/parsing
2020-07-16 03:28:54 +02:00
Bernhard Schelling b03cdbd0da First set of cleanups to archive handling (Rev B)
- Don't read the entire archive file into memory on systems without HAVE_MMAP
- Support ZIP files between 2GB ~ 4GB on 32bit architectures
- Remove zip exclusive members from `file_archive_transfer`
- Add `zip_context_t` for zip like the already existing `sevenzip_context_t`
- Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free`
- Handle some sizes and offsets as int64_t (preparation for future Zip64 support)
- Handle ZIP compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode`
- Return progress of 7z iterating with `file_archive_parse_file_progress`
- Uses MMAP where available, for files up to 256MB
2020-07-16 02:47:59 +09:00
Twinaphex 367530683c Get rid of unused variables 2020-07-15 19:47:45 +02:00
Autechre 5b693b2ab4 Merge pull request #11023 from jdgleaver/task-autodetect
Rewrite 'task_autodetect.c': Ensure thread safety + clean-ups/rationalisation
2020-07-15 16:08:10 +02:00
twinaphex d3c8704417 Build fix 2020-07-15 13:38:20 +02:00
Yoshi Sugawara 897aee0bcf add more logging, use autolayout constraints to pin metal view to superview to support orientation changes easier 2020-07-14 17:49:38 -10:00
Autechre e6608c6fd0 Merge pull request #11024 from valadaa48/oga_gfx_msg_fix
oga_gfx: fix last character from being chopped in on-screen messages
2020-07-15 03:46:57 +02:00
valadaa48 9bbf191523 oga_gfx: fix last character from being chopped in on-screen messages 2020-07-14 21:43:19 -04:00
twinaphex 9a34e9799a Cleanups 2020-07-15 03:22:01 +02:00
twinaphex 2427ebe0e8 Cleanups 2020-07-15 03:12:56 +02:00
twinaphex 47f86711a5 Cleanups 2020-07-15 03:08:56 +02:00
twinaphex 07b075c16f Cleanup 2020-07-15 02:59:02 +02:00
twinaphex 8696d292da Cleanup 2020-07-15 02:54:27 +02:00
twinaphex 014d0fafb4 (DRM) Cleanups 2020-07-15 02:45:34 +02:00
twinaphex f707994cb8 Get rid of gfx_ctx_network 2020-07-15 02:37:50 +02:00
jdgleaver 84a71ea133 Rewrite 'task_autodetect.c': Ensure thread safety + clean-ups/rationalisation 2020-07-14 17:46:58 +01:00
twinaphex 03c7403a05 Cleanups 2020-07-14 16:37:02 +02:00
twinaphex e416d96769 (UWP EGL) Cleanups 2020-07-14 16:27:49 +02:00
twinaphex 748e3dccf2 (wayland) buildfixes 2020-07-14 16:20:15 +02:00
twinaphex b7c2cbc6b2 Move flush_wayland_fd to input/common/wayland_common.c 2020-07-14 16:17:43 +02:00
twinaphex 4009919eca (Wayland) Fix code duplication 2020-07-14 16:14:47 +02:00
twinaphex 3d4a13e5b7 (Wayland) Add missing header 2020-07-14 16:10:01 +02:00
twinaphex 3cb1b7b4bb (Wayland) Move more code 2020-07-14 16:09:13 +02:00
twinaphex 646d627a6c Move more Wayland code 2020-07-14 16:04:10 +02:00
twinaphex 1f4a27abba Split up wayland code 2020-07-14 15:56:52 +02:00
Autechre 6a27bbfb42 Merge pull request #11018 from guoyunhe/crowdin-20200714
Fetch translations from Crowdin
2020-07-14 15:25:32 +02:00
Autechre e4281b0b8f Merge pull request #11019 from hhromic/patch-1
Update CHANGES.md
2020-07-14 15:25:19 +02:00
Hugo Hromic f21d8f6e63 Update CHANGES.md
Correct this CHANGELOG entry according to recent changes.
2020-07-14 14:10:04 +01:00
twinaphex 88f742894d Move wayland header to input/common 2020-07-14 14:32:37 +02:00
Guo Yunhe 6dfebe10cb Fetch translations from Crowdin 2020-07-14 12:03:29 +03:00
Autechre c3d18f118a Update CHANGES.md 2020-07-14 10:19:37 +02:00
Autechre a76274a884 Merge pull request #11017 from dylanscott20/master
(Emscripten) Fix input code to ignore unknown keys
2020-07-14 10:19:01 +02:00
Dylan Scott b4ac13cc5a (Emscripten) Fix input code to ignore unknown keys 2020-07-14 03:33:55 -04:00
twinaphex 3297e464c4 (Input) Optimize input bitmask codepath 2020-07-14 01:39:07 +02:00
twinaphex b6432cd8b4 (ffmpeg core) Use bitmasks 2020-07-14 01:27:19 +02:00
twinaphex 06064a0527 Revert "Bring back MMAP support"
This reverts commit 32dcff3880.
2020-07-13 23:52:23 +02:00
twinaphex c524733841 Merge branch 'master' of https://github.com/libretro/RetroArch 2020-07-13 21:46:38 +02:00
Autechre e87a96b5a2 Merge pull request #11009 from schellingb/archive_cleanup_1
First set of cleanups to archive handling
2020-07-13 21:46:23 +02:00
twinaphex c84aa90075 Merge branch 'archive_cleanup_1' of git://github.com/schellingb/RetroArch 2020-07-13 21:30:02 +02:00
twinaphex ed9d40caa2 (DRM) Cleanups 2020-07-13 20:24:14 +02:00
Bernhard Schelling 32dcff3880 Bring back MMAP support
Will be used where available for files up to 256MB
2020-07-14 03:04:01 +09:00
Bernhard Schelling c05f1e91fc Fix another memory leak that was there originally
When loading a single file out of a ZIP with many files it leaked memory allocated for all found filenames that weren't requested.
2020-07-14 03:00:47 +09:00
Bernhard Schelling a978b939ff Fix C89 build 2020-07-14 01:56:48 +09:00
Bernhard Schelling 54db0fe515 Fix memory leak
Properly release buffers for extracted files from ZIP
Use RETRO_VFS_SEEK_POSITION_START instead of SEEK_SET for filestream_seek
2020-07-14 00:29:46 +09:00
twinaphex 750140779c (libretro-common) Fix 2020-07-13 16:18:46 +02:00
twinaphex 0a492a49be (Vulkan) Fix regression 2020-07-13 15:22:27 +02:00
Autechre 171f7620b2 Merge pull request #11014 from Herdinger/entitlements
Fix Metal build not being able to load cores
2020-07-13 00:25:47 +02:00
Eduard Strehlau c3fe8f1203 Misread that memory protection includse libary validation 2020-07-12 23:49:41 +02:00
Autechre 6ad9df2c3e Update CHANGES.md 2020-07-12 19:18:21 +02:00
Autechre 84ca79fcc1 Merge pull request #11006 from Jamiras/save_task_wait
only wait for save task to complete
2020-07-12 19:14:04 +02:00
Autechre 5b50b498f6 Merge pull request #11012 from meleu/patch-12
Option to play sound on achievement unlock.
2020-07-12 17:45:46 +02:00
meleu 935bbd538d Option to play sound on achievement unlock. 2020-07-12 12:29:13 -03:00
Jamiras 6f964681ae update comment 2020-07-12 08:21:02 -06:00
twinaphex 5cdda30d5a Do away with HAVE_MENU ifdef 2020-07-12 15:48:21 +02:00
twinaphex 6248b1f30a (task_content.c) Cut down on some code duplication 2020-07-12 15:45:44 +02:00
Autechre 72edc1ac7c Merge pull request #11010 from Jamiras/cheevos_sound
(cheevos) add option to play custom sound on achievement unlock
2020-07-12 13:32:59 +02:00
twinaphex be0148406e fill_pathname_application_dir - cleanup 2020-07-11 19:45:24 +02:00
twinaphex 8656b3d6f8 Create specialized optimized path_basedir_size 2020-07-11 19:29:43 +02:00
Jamiras 96c5f5dfb0 add option to play custom sound on achievement unlock 2020-07-11 10:56:09 -06:00
Bernhard Schelling 0ddb073784 First set of cleanups to archive handling
- Don't read the entire archive file into memory on systems without HAVE_MMAP
- Support ZIP files between 2GB ~ 4GB on 32bit architectures
- Remove zip exclusive members from `file_archive_transfer`
- Add `zip_context_t` for zip like the already existing `sevenzip_context_t`
- Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free`
- Handle some sizes and offsets as int64_t (preparation for future Zip64 support)
- Handle compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode`
- Return progress of 7z iterating with `file_archive_parse_file_progress`
2020-07-12 00:51:35 +09:00
Autechre 347d1964ba Merge pull request #11007 from schellingb/x_ctx_missing_header
Add missing header (for non griffin builds)
2020-07-11 17:04:45 +02:00
twinaphex 2f8f783d5c Small cleanup in content_load 2020-07-11 16:35:12 +02:00
twinaphex 2dd5ea66a1 Simplify content_file_init_subsystem 2020-07-11 16:24:10 +02:00
twinaphex 40cf0e13e7 (Load content) Don't try to log every single argument by default 2020-07-11 16:11:52 +02:00
Bernhard Schelling 2226226663 Add missing header (for non griffin builds) 2020-07-11 23:02:18 +09:00
twinaphex 8436b7fc6a Cleanup command_evnt_cmd_exec 2020-07-11 16:00:42 +02:00
twinaphex 46fd40b574 Use std::string concatenation instead of std::ostringstream 2020-07-11 08:24:13 +02:00
twinaphex 7a0338f5cc CXX_BUILD fix 2020-07-11 08:12:57 +02:00
Autechre 3ffc4fe687 Merge pull request #11005 from hhromic/video-null-sighandler
(Drivers/Video) Implement frontend signal handling in null video driver
2020-07-11 05:26:52 +02:00
Jamiras 9aa42c9d5e only wait for save task to complete 2020-07-10 20:18:03 -06:00
Hugo Hromic f9f4a69512 (Drivers/Video) Implement frontend signal handling in null video driver
Allows RetroArch to gracefully exit when receiving stop signals, e.g.
`SIGINT` or `SIGTERM`, when using the null video driver.
2020-07-11 00:12:32 +01:00
Autechre 5ebce6a238 Merge pull request #11002 from Tatsuya79/patch-4
QT: add "load content" animation option
2020-07-10 18:57:50 +02:00
Tatsuya79 91cc250976 QT: add "load content" animation option
Adds an option into the OSD menu for https://github.com/libretro/RetroArch/pull/10992.
2020-07-10 18:49:50 +02:00
Autechre e2eba31fea Merge pull request #11000 from hhromic/impl-null-input
(Drivers/Input) Implement no-op stubs for null input driver
2020-07-10 18:00:19 +02:00
Hugo Hromic 8123c0c0ec (Drivers/Input) Implement no-op stubs for null input driver
Prevents RetroArch from crashing if the "null" input driver is used with
the "null" video driver which provides no input driver.
2020-07-10 16:43:18 +01:00
twinaphex 5b21d660ed (glslang) Don't compile in OSDependent/Windows/main.cpp 2020-07-10 13:20:14 +02:00
Autechre eb85f49aed Merge pull request #10999 from jdgleaver/float-checked-item-fix
Fix 'current item' marker position in float drop-down lists
2020-07-10 12:55:03 +02:00
jdgleaver 73b502a16d Fix 'current item' marker position in float drop-down lists 2020-07-10 11:44:18 +01:00
twinaphex 39d3dd4b3c Revert vulkan_framebuffer_generate_mips 2020-07-10 11:20:50 +02:00
Autechre a063133a96 Merge pull request #10997 from Herdinger/entitlements_fix
Fixed entitlements
2020-07-10 06:51:55 +02:00
Eduard Strehlau 53ab46f88b Fixed entitlements 2020-07-10 06:20:46 +02:00
Autechre e3353bb46c Merge pull request #10996 from Herdinger/add_hardened_runtime_entitlements
Add hardened runtime entitlements
2020-07-10 05:20:25 +02:00
twinaphex 74e71d6d08 Revert "Update .travis.yml"
This reverts commit ef18704d63.
2020-07-10 05:19:46 +02:00
Eduard Strehlau 8058618b26 Added entitlement file to project settings 2020-07-10 05:02:11 +02:00
Eduard Strehlau 04f5402f8a Added entitlements file 2020-07-10 04:57:19 +02:00
Francisco José García García dc01bf8d46 [Vita][GL] Fix returning to menu and clear for fake hw render 2020-07-09 18:49:22 +02:00
twinaphex 375d6b9a2c (Emscripten) Buildfix 2020-07-09 17:32:13 +02:00
Autechre 58d508d77e Update CHANGES.md 2020-07-09 15:44:50 +02:00
Autechre 0de7ac247a Merge pull request #10993 from schellingb/invalid_dinput_calls
Fix invalid calls to dinput_handle_message when input driver is not set to dinput
2020-07-09 15:42:55 +02:00
Bernhard Schelling e0a9ded6a3 Fix invalid calls to dinput_handle_message when input driver is not set to dinput 2020-07-09 22:32:43 +09:00
twinaphex 4c5f4b244a (Sixel) Buildfixes 2020-07-09 15:07:06 +02:00
Autechre 4e951ee79c Merge pull request #10992 from jdgleaver/load-content-animation
Add optional widget-based 'load content' launch feedback animation
2020-07-09 14:39:33 +02:00
jdgleaver 506aa0a36c Add optional widget-based 'load content' launch feedback animation 2020-07-09 13:05:28 +01:00
twinaphex 4319379d57 Fix non-HAVE_NETWORKING targets 2020-07-09 13:39:15 +02:00
twinaphex 3fd7338df1 Cleanups 2020-07-09 10:36:49 +02:00
twinaphex d0736a1797 (MSVC) Buildfixes 2020-07-09 10:20:27 +02:00
twinaphex 77d630a0a5 (GDI) Only render framebuffer texture when menu is enabled 2020-07-09 09:40:13 +02:00
twinaphex 35762e07cb (GDI) Get rid of memory allocation per frame 2020-07-09 09:34:06 +02:00
twinaphex f56b6a3a0f (GDI) Merge gdi_ctx.c into gdi_gfx.c 2020-07-09 09:25:10 +02:00
twinaphex ba5d735e2c CLeanup 2020-07-09 09:01:23 +02:00
twinaphex d81f426060 Cleanups 2020-07-09 08:17:50 +02:00
twinaphex 255332c989 Remove sixel_ctx.c 2020-07-09 08:12:47 +02:00
twinaphex 6b466c6013 Cleanups 2020-07-09 07:46:40 +02:00
twinaphex f6c4890063 Get rid of cb_set_resize 2020-07-09 05:36:29 +02:00
twinaphex e10f4eed8d (Vulkan) Cleanups 2020-07-09 03:48:42 +02:00
twinaphex 9a148f6d48 Cleanups 2020-07-09 03:11:11 +02:00
twinaphex b0157cd47d CLeanups 2020-07-09 03:00:55 +02:00
twinaphex 364ee31712 (sixel) Simplifications 2020-07-09 02:55:25 +02:00
twinaphex 68aa5dc0db Move more global state to rarch_state 2020-07-09 02:41:13 +02:00
twinaphex 638d692d2e Cleanups 2020-07-09 02:35:32 +02:00
twinaphex 298413dce8 Cleanups 2020-07-09 00:33:19 +02:00
twinaphex e48ffd14cd Cleanups 2020-07-09 00:24:09 +02:00
Autechre aa40dbd337 Merge pull request #10988 from HyperspaceMadness/master
Changed SLANG_NUM_BINDINGS to 16 to fix D3D11 crash
2020-07-08 20:20:21 +02:00
HyperspaceMadness 5ceb30fc1b Changed SLANG_NUM_BINDINGS to 16 for D3D11 Fix 2020-07-08 12:06:59 -04:00
HyperspaceMadness f82b2ef9a0 Merge pull request #1 from libretro/master
Update to Latest
2020-07-08 11:00:12 -04:00
twinaphex 2bdec2d0b3 Move content_state global state to rarch_state 2020-07-08 11:48:33 +02:00
twinaphex ae86cbaa3d Move non-Salamander code in frontend_driver.c outside to retroarch.c 2020-07-08 01:39:58 +02:00
Autechre d507553c74 Merge pull request #10983 from hhromic/imprv-null-drivers
(Menu/Drivers) Improve null driver protection for critical drivers
2020-07-08 01:17:27 +02:00
Hugo Hromic 61aed8b911 (Menu/Drivers) Implement null driver protection for critical drivers
Can prevent the user from locking him/herself out of the program using the UI.
Protected drivers: input, joypad, hid, video and menu.

Note: Developer users can always override this protection by manually editing
the active configuration file or using `--appendconfig`.
2020-07-07 22:54:45 +01:00
Hugo Hromic 103d5dbf45 (Drivers) Cleanup unused add_null_entries parameter
Null driver entries will be now handled at the UI level.
2020-07-07 22:54:45 +01:00
Hugo Hromic c985dcc84d Revert "Add 'Ignore null drivers' setting"
This reverts commit f16f3d2968.
2020-07-07 22:54:45 +01:00
twinaphex b94a3928e4 (MSVC) Buildfix 2020-07-07 21:04:45 +02:00
Autechre 0bd8ffef04 Update CHANGES.md 2020-07-07 20:23:15 +02:00
Yoshi Sugawara 82d6d8e876 add the metal view to the view controller view after initializing the metal view for iOS 2020-07-07 08:19:46 -10:00
Yoshi Sugawara 8e1dd5def1 protocol conformance for ApplePlatform for iOS; add metal shader functions files to xcode project 2020-07-07 05:38:50 -10:00
Yoshi Sugawara 6308ba1acb support ApplePlatform for iOS and conform app delegate class to it, move app delegate class to apple_platform.h, fix metal references for iOS 2020-07-07 05:03:42 -10:00
Autechre 6df4e7778f Merge pull request #10973 from HyperspaceMadness/master
Increased Slang Max Params, Textures & Passes
2020-07-07 12:07:00 +02:00
Autechre abfd0ed030 Merge pull request #10959 from jdgleaver/static-core-load
(Static Platforms) Add option to not restart RetroArch when launching content with the currently loaded core
2020-07-07 11:45:18 +02:00
twinaphex 2401f116ee Revert "Add 7:3 aspect ratio"
This reverts commit 40a11e9407.
2020-07-07 11:44:57 +02:00
twinaphex 0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex 11872ea157 Revert "Make Threaded Video an option that requires a restart"
This reverts commit 05d11f6c1d.
2020-07-07 07:49:33 +02:00
twinaphex 05d11f6c1d Make Threaded Video an option that requires a restart 2020-07-07 07:44:23 +02:00
twinaphex 6e59d52184 Cleanups/comments 2020-07-07 05:58:07 +02:00
twinaphex 5790f13798 Add comments 2020-07-07 03:49:54 +02:00
twinaphex 00518d3470 Add TODO/FIXME notes 2020-07-07 03:02:55 +02:00
Autechre 94e728ceda Update CHANGES.md 2020-07-07 01:18:34 +02:00
Autechre 5eb0b96438 Merge pull request #10977 from Jamiras/rcheevos_91
upgrade to rcheevos 9.1
2020-07-07 01:18:06 +02:00
twinaphex da0e87cc63 Add comment 2020-07-07 00:07:38 +02:00
twinaphex 6088c3b301 (win32 display server) Turn function static 2020-07-07 00:06:46 +02:00
twinaphex 3ad0187012 (Qt) Attempted fix for Qt 2020-07-06 19:27:05 +02:00
Jamiras 05845fc5d7 upgrade to rcheevos 9.1 2020-07-06 07:33:10 -06:00
Autechre 83038ed4f7 Merge pull request #10975 from fjtrujy/salamanderPS2
[PS2]Typo in the RetroArch boot
2020-07-06 10:24:57 +02:00
Francisco Javier Trujillo Mata af839ad726 Typo in the RetroArch boot 2020-07-06 10:23:20 +02:00
twinaphex 7c3f227cab (ffmpeg) Cleanup 2020-07-06 10:19:48 +02:00
twinaphex 7895722f03 Revert "Refactor CHECK_INPUT_DRIVER_BLOCK_HOTKEY"
This reverts commit b9cb839abf.
2020-07-06 10:15:59 +02:00
Francisco José García García f763d94d00 [Vita] Fix make clean 2020-07-06 09:41:30 +02:00
twinaphex b9cb839abf Refactor CHECK_INPUT_DRIVER_BLOCK_HOTKEY 2020-07-06 09:28:08 +02:00
twinaphex ff810482f7 Update autoconfig.diff 2020-07-06 09:17:57 +02:00
twinaphex ac1cbfe858 Put this in separate .diff for now 2020-07-06 07:55:55 +02:00
twinaphex ccf1a072a8 (glslang) doc.cpp is not necessary either 2020-07-06 05:16:01 +02:00
Autechre c10d94b15e Merge pull request #10972 from keithbowes/system-glslang-fix
Fix detection of system glslang
2020-07-06 05:07:37 +02:00
HyperspaceMadness 7c6bb925c4 Increased Slang Max Params, Textures & Passes 2020-07-05 13:45:58 -04:00
twinaphex 79cc4f9c4f Revert "Start going through wrapper functions for access to input_device_names"
This reverts commit 92293525c1.
2020-07-05 16:41:55 +02:00
Autechre e8f4db39b2 Merge pull request #10967 from Rinnegatamante/patch-3
[VITA] Improve custom bubbles stability.
2020-07-05 16:38:36 +02:00
Autechre 22e6bf8bae Merge pull request #10971 from Jamiras/gfx_widgets_achievements
pass correct userdata object to gfx_display functions
2020-07-05 16:37:55 +02:00
Autechre c4e54d13d9 Merge pull request #10970 from stenzek/vulkan-create-buffer
(Vulkan) Fix incorrect structure type in vulkan_create_buffer
2020-07-05 16:36:57 +02:00
Jamiras 00fad3c6d0 pass correct userdata object to gfx_display functions 2020-07-05 07:49:44 -06:00
Connor McLaughlin 7b7cffd545 (Vulkan) Fix incorrect structure type in vulkan_create_buffer 2020-07-05 22:36:58 +10:00
Francisco José García García e21558c207 [VITA] Fix a typo in renaming mem_init to vgl_mem_init 2020-07-05 12:34:48 +02:00
Francisco José García García 1af9fb9247 Merge pull request #10968 from libretro/vitashark
[VITA] Add support for provided runtime shader compiler
2020-07-05 12:16:36 +02:00
Francisco José García García 3227dbcfe8 [VITA] Fix VitaGL and add VitaShaRK 2020-07-05 12:11:36 +02:00
Francisco José García García 6004d2db39 Merge commit '2b1146d46e4993dd936f21ef713be88c7bcfc718' as 'deps/vitaShaRK' 2020-07-05 11:56:47 +02:00
Francisco José García García 2b1146d46e Squashed 'deps/vitaShaRK/' content from commit f54dc7bdd5
git-subtree-dir: deps/vitaShaRK
git-subtree-split: f54dc7bdd5cb14fb9de9dc21962ccd8b6938e56d
2020-07-05 11:56:47 +02:00
Francisco José García García a2af2f6d61 Merge commit '51922ea5be5e2448b1cbde5f6c083b62e092389c' 2020-07-05 11:54:55 +02:00
Francisco José García García 51922ea5be Squashed 'deps/vitaGL/' changes from c816fec50f..2934af8af0
2934af8af0 Added Patreon sponsor link.
c8f18b6f0f Getting current program only when required for vglDrawObjects.
4c5d136b0d Added directive to enable vitaShaRK usage from cmd.
4a10df3be5 Minor adjustments and bugfixes.
14a0124acf Added GL_TEXTURE_LOD_BIAS support.
40c8c6205e Added GL_NONE def and fixed glUniform4f impl.
868079c51e Added glUniform4f implementation.
0a682cbad2 Typo fix.
be3ce61ae7 Added GL_DEPTH_BITS and GL_STENCIL_BITS support.
21e6d1d330 Added runtime shader compiler support.
696e40bc62 Beautify error handler code.
537b37b110 Added glUniform3fv implementation.
7dd1403015 Fixed GLenum size and added missing types defines.
0c75f27ff1 Moved to NEON optimized memcpy usage.
98951895de Added gluPerspective implementation.
23e0b0b309 Fix for vglInitExtended not working on sys app mode.
4989c33ef5 Run clang-format.
429f1c1d8a Added system mode support.
9231680d02 Initializing sceGxm before free mem checking on vglInitExtended.
091e5e7882 Added vglInitWithCustomSizes.
f4c646ea78 Added vglSetParamBufferSize.
1b9a063c41 Beautify some code.
089e81efc5 Fix for duplicated symbols
789dcbf812 Typo fix in readRGBA4444.
1514a4b2cb Disabling lto due to it being broken on vitasdk with gcc 9.1.
fca18d9ab7 Added support for RGBA4444 texture format.
d449f12808 Added support for RGB565 texture format.

git-subtree-dir: deps/vitaGL
git-subtree-split: 2934af8af083a9acf598ab75233c518a251c6f0d
2020-07-05 11:43:47 +02:00
twinaphex 92293525c1 Start going through wrapper functions for access to input_device_names 2020-07-05 10:33:21 +02:00
twinaphex 20ed3be455 Minor cleanup 2020-07-05 10:28:26 +02:00
twinaphex f08ce88179 Turn this static 2020-07-05 10:27:07 +02:00
Rinnegatamante aae46f1ea9 [VITA] Improve custom bubbles stability. 2020-07-05 10:26:44 +02:00
twinaphex 9b228a5f00 (menu displaylist) Add ifdefs 2020-07-05 10:14:40 +02:00
twinaphex 40a11e9407 Add 7:3 aspect ratio 2020-07-05 09:23:32 +02:00
twinaphex ce98bbd395 Put this under HAVE_RUNAHEAD ifdef 2020-07-05 05:33:53 +02:00
twinaphex a3c1d4ac98 (query.c) Cleanups 2020-07-05 04:21:27 +02:00
twinaphex c1634914d6 (libretro-db) Cleanup 2020-07-05 02:52:56 +02:00
twinaphex 69b457a427 (libretro-db) Pass tmp_error_buff around to other functions 2020-07-05 02:50:46 +02:00
twinaphex d5bdec3f60 (net_http) Refactor 2020-07-05 00:51:41 +02:00
Autechre 9edd265bf4 Merge pull request #10964 from Jamiras/cheevos_lboard_zero
(cheevos) allow submission of 0 for leaderboard values
2020-07-04 16:49:10 +02:00
Jamiras a2cfc881a4 allow submission of 0 for leaderboard values 2020-07-04 07:20:51 -06:00
twinaphex 6fcd1406c3 Backport https://github.com/jtkukunas/zlib/commit/89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6#diff-327188edf18799ffbb5a51cc69f797e8 2020-07-03 22:18:11 +02:00
twinaphex 2063f4ac41 (libz) Backport https://github.com/jtkukunas/zlib/commit/9852c209ac49c0d8d1192e46115d7c37d4344bbd 2020-07-03 22:16:40 +02:00
twinaphex da9a0786f7 (zlib) Backport https://github.com/jtkukunas/zlib/commit/60a5ecc62b18d1e2391993b1fcfc10e100720642#diff-e17b59778d9aff01f3b9b23f56d76d48 2020-07-03 19:21:45 +02:00
twinaphex b1d82f1b27 (zlib) Backport https://github.com/jtkukunas/zlib/commit/44e8ac810d7d50381429a15cdc6e48816beafd2b#diff-327188edf18799ffbb5a51cc69f797e8 2020-07-03 19:05:32 +02:00
twinaphex 9aa27010b8 (zlib) Backports from https://github.com/jtkukunas/zlib 2020-07-03 18:58:55 +02:00
jdgleaver e87b8311c8 (Static Platforms) Add option to not restart RetroArch when launching content with the currently loaded core 2020-07-03 17:12:23 +01:00
twinaphex 85d3a3723e (Vulkan) VULKAN_TRANSFER_IMAGE_OWNERSHIP - reuse existing macro 2020-07-03 18:05:40 +02:00
twinaphex 09180e64b5 Start unifying more macros 2020-07-03 18:00:40 +02:00
twinaphex a7a74a1d92 Cleanup 2020-07-03 17:51:07 +02:00
twinaphex 276e86a403 (Vulkan) Turn some of these functions into macros 2020-07-03 17:48:46 +02:00
twinaphex 25f682249f (Vulkan) Turn vulkan_image_layout_transition into macro 2020-07-03 08:45:53 +02:00
twinaphex 7a22eb1f44 Turn vulkan_image_layout_transition_levels into macro 2020-07-03 08:32:33 +02:00
twinaphex 108dc26c86 (MSVC 2010) Buildfix 2020-07-03 08:04:15 +02:00
twinaphex 4489e5490d Add more tests 2020-07-03 01:34:54 +02:00
twinaphex 8dd4819fd3 (libz) Replace two callocs with malloc 2020-07-02 23:57:54 +02:00
twinaphex 60c0470a88 (deps/libz) Cleanups 2020-07-02 20:48:54 +02:00
twinaphex 1f86ea1c4c (deps/libz) Cleanups 2020-07-02 18:55:54 +02:00
twinaphex c86ba43c73 (deps/libz) Cleanups 2020-07-02 18:48:23 +02:00
twinaphex f14f418eb7 Revert "improve performance by enabling game mode"
This reverts commit fed9490471.
2020-07-02 18:10:00 +02:00
twinaphex 21c3072ffb Fix menu 2020-07-02 17:14:31 +02:00
twinaphex 02ed18a93d Fix issues to do with HAVE_REWIND 2020-07-02 17:13:01 +02:00
Francisco José García García d66493ba9e Add HAVE_SCREENSHOTS 2020-07-02 16:58:26 +02:00
Autechre 45f6f1f360 Merge pull request #10873 from IlDucci/master
Updating the Spanish translation in the area that is not yet compatible with the Crowdin system.
2020-07-02 07:26:31 +02:00
twinaphex d9b4b44091 (Winraw) Cleanups 2020-07-02 07:07:42 +02:00
twinaphex a3c687f0a6 Add HAVE_WINRAWINPUT 2020-07-02 06:43:36 +02:00
twinaphex 41b0fd6f50 (cdrom) Don't bake in media_detect_cd.c when HAVE_CDROM is not defined 2020-07-02 06:35:00 +02:00
twinaphex 47e22d69bf Add HAVE_VIDEO_FILTER 2020-07-02 06:28:14 +02:00
twinaphex ac67463ebc Add HAVE_SCREENSHOTS ifdef 2020-07-02 02:16:47 +02:00
twinaphex 3ee788def2 Add HAVE_DSP_FILTER 2020-07-02 02:13:04 +02:00
twinaphex 2827fdcc71 (libz) Don't bake in compress.c and uncompress.c 2020-07-02 01:17:27 +02:00
twinaphex 169bb24ca1 (deps/libz) Cleanups 2020-07-02 01:10:36 +02:00
twinaphex 937396d784 (deps/libz) Cleanups 2020-07-01 23:43:32 +02:00
twinaphex b3d12c3dc9 (deps/libz) Backport https://github.com/madler/zlib/commit/9aaec95e82117c1cb0f9624264c3618fc380cecb 2020-07-01 23:39:26 +02:00
Autechre 043a60633f Merge pull request #10951 from fjtrujy/salamanderPS2
WIP: PS2 Salamander and multi-core
2020-07-01 21:18:53 +02:00
twinaphex d6bd12277f Hide Network Settings and Cheevos screens if HAVE_NETWORKING
and/or HAVE_CHEEVOS are not defined
2020-07-01 21:10:19 +02:00
twinaphex 87b9c2a367 Add HAVE_REWIND switch 2020-07-01 21:04:05 +02:00
twinaphex 96dd505a0f (libchdr) Backport baka0815 commits 2020-07-01 19:50:46 +02:00
twinaphex 6bdc9795e7 (libchdr) Backport https://github.com/rtissera/libchdr/commit/f08156f9471b637c0f41b7fcf1b96f98566204be 2020-07-01 19:44:17 +02:00
twinaphex 5ded7872de (libretro-common/libchdr) Backport https://github.com/rtissera/libchdr/commit/2785de84819aceb976ef51f05baf9d770a859ae9 2020-07-01 19:41:24 +02:00
twinaphex 8d8800229c (libchdr) Backport https://github.com/rtissera/libchdr/blob/16eae7e4e540a873b22cb5c7c0a6302628543ff3/src/chd.c 2020-07-01 19:27:14 +02:00
twinaphex d2afef58d7 (libchdr) Resync against https://github.com/rtissera/libchdr/commit/c05c91300a672b96e077ddde144b3737a01639d8#diff-b4791a43102472fe8d3959f86bd376c4 2020-07-01 19:23:33 +02:00
twinaphex 9e9fb47c05 (libchdr) More resyncs 2020-07-01 19:21:40 +02:00
twinaphex 436f161cc3 (libchdr) More rebases 2020-07-01 19:15:45 +02:00
twinaphex 88804a05de (libchdr) Cleanups + attempts to rebase against upstream 2020-07-01 19:12:20 +02:00
twinaphex d50c49c4e8 Add more HAVE_SCREENSHOTS ifdefs 2020-07-01 17:54:13 +02:00
Francisco Javier Trujillo Mata b799bb731a Improve dist scripts 2020-07-01 17:51:16 +02:00
twinaphex 7862166ed2 Add back HAVE_SCREENSHOTS define from SSNES days 2020-07-01 17:47:13 +02:00
twinaphex 8f65c4e6dd Cleanups 2020-07-01 17:10:00 +02:00
Francisco Javier Trujillo Mata 9d2a1b5ac4 Improve dist scripts
Improve cores folder
Improve WaitTillDeviceIsReady
Now every single driver, init and deinit the IRX binaries
Improve platform PS2
Make salamander to open proper elf
2020-07-01 17:07:53 +02:00
twinaphex 473f43daf7 (deps/mbedtls) Cleanups 2020-07-01 17:02:45 +02:00
twinaphex da29ab063e Cleanups 2020-07-01 16:57:34 +02:00
twinaphex 867daa7efb (deps/7zip) Cleanups 2020-07-01 16:50:54 +02:00
twinaphex 14e20cea51 Cleanups 2020-07-01 15:29:25 +02:00
Autechre ef18704d63 Update .travis.yml 2020-07-01 06:50:44 +02:00
twinaphex 3e2250b25f (netplay_discovery) Initialize structs 2020-07-01 06:15:21 +02:00
twinaphex af5eacf9d0 (Mbedtls) Assume HAVE_TIME 2020-07-01 05:27:36 +02:00
twinaphex adb203fd3e (GX) Add back audio mixer code for now - need to figure out a
solution with Mr. Boom
2020-07-01 04:56:37 +02:00
twinaphex 02c3fa8eb3 Try to fix build 2020-07-01 04:54:28 +02:00
twinaphex f1a8c07dfe (deps/mbedtls) Cleanups 2020-07-01 04:50:31 +02:00
twinaphex 539beed10a (deps/mbedtls) Remove error.c 2020-07-01 04:40:23 +02:00
twinaphex 5d9deb58c2 (mbedtls) Get rid of deprecated functions 2020-07-01 04:33:16 +02:00
twinaphex 35577ae15b (mbedtls) Get rid of exit function pointer 2020-07-01 04:26:49 +02:00
twinaphex a9d29758b6 (mbedtls) Some C89_BUILD fixes - doesn't compile yet 2020-07-01 04:19:45 +02:00
twinaphex ae7353993a (mbedtls) should now be CXX_BUILD compatible 2020-07-01 04:12:47 +02:00
twinaphex 3580db3ebe (deps/mbedtls) Cleanups 2020-07-01 03:48:13 +02:00
twinaphex 996840d2d4 Cleanups 2020-07-01 03:30:22 +02:00
twinaphex e5dc2b5bcb (mbedtls) Cleanups 2020-07-01 03:23:46 +02:00
twinaphex c664463242 (mbedtls) Remove MBEDTLS_CMAC_C 2020-07-01 01:43:50 +02:00
twinaphex fe9d92b208 (mbedtls) Cleanups 2020-07-01 01:41:48 +02:00
twinaphex d6ec4029db (mbedtls) Remove MBEDTLS_DEBUG_C 2020-07-01 01:29:27 +02:00
twinaphex 308e16f63e Cleanups 2020-07-01 01:21:20 +02:00
twinaphex 34b0ad0bbf (mbedtls) Cleanups 2020-07-01 01:11:36 +02:00
twinaphex 8fe5ad8fd4 (mbedtls) Get rid of MBEDTLS_SELF_TEST 2020-07-01 01:04:35 +02:00
Keith Bowes a867389fa2 Fixed detection of system glslang 2020-06-30 18:39:52 -04:00
twinaphex be289a4292 (mbedtls) Cleanups 2020-07-01 00:33:16 +02:00
twinaphex 1e6b8385fd Fix two potential memory leaks 2020-07-01 00:09:54 +02:00
Autechre 5f50e2b33a Merge pull request #10950 from hhromic/fixes
(Keyboard Input) Do not try to speak if accessibility is disabled
2020-06-30 23:17:59 +02:00
Hugo Hromic 175666de9b (Keyboard Input) Do not try to speak if accessibility is disabled 2020-06-30 21:25:56 +01:00
twinaphex 53797b15ce CXX_BUILD buildfix 2020-06-30 22:15:49 +02:00
twinaphex 9d27fdbe83 Add ifdef in griffin.c 2020-06-30 21:48:41 +02:00
twinaphex 69756ebd93 Add HAVE_NEAREST_RESAMPLER ifdef 2020-06-30 21:45:05 +02:00
twinaphex 395fd7fea7 (menu_cbs_get_value.c) Optimizations 2020-06-30 20:55:05 +02:00
twinaphex 0bdbe1c926 Add more HAVE_PATCH ifdefs 2020-06-30 20:09:53 +02:00
twinaphex 223d76680a Add HAVE_CHEATS ifdef 2020-06-30 19:35:55 +02:00
Autechre 9fe6fb521f Merge pull request #10948 from jdgleaver/progress-message-widget
Add 'progress message' widget (for 'RETRO_MESSAGE_TYPE_PROGRESS' core messages)
2020-06-30 19:09:35 +02:00
twinaphex 573765c7ca Fix warning when building without runahead 2020-06-30 18:20:06 +02:00
jdgleaver c48c26aff6 Add 'progress message' widget (for 'RETRO_MESSAGE_TYPE_PROGRESS' core messages) 2020-06-30 17:15:36 +01:00
twinaphex 2c62a10d6c - Fix codepaths for compiling without HAVE_RWAV
- Add back HAVE_BSV_MOVIE
2020-06-30 18:08:49 +02:00
twinaphex bf04ac93c8 Add HAVE_RWAV 2020-06-30 17:36:03 +02:00
twinaphex 92945b17e2 Dependencies
(libz) Cleanups
(glslang) SPVRemapper.cpp and disassemble.cpp don't seem
to be necessary to compile in
2020-06-30 16:52:40 +02:00
Autechre d405a317f3 Update CHANGES.md 2020-06-30 15:59:01 +02:00
Autechre f7667baf34 Merge pull request #10946 from guoyunhe/crowdin-sync-20200630
Crowdin synchronization
2020-06-30 15:58:15 +02:00
Autechre 0ca7404b6c Update CHANGES.md 2020-06-30 15:57:25 +02:00
Autechre 850ff548ed Merge pull request #10945 from stenzek/d3d-driver-switch
Fix core-initiated D3D9/D3D11 driver switches
2020-06-30 15:55:46 +02:00
Autechre 2de83ceb54 Merge pull request #10942 from hhromic/menu-cursor
(Menu) Fix cursor forced to first entry after displaying lists
2020-06-30 15:55:16 +02:00
twinaphex b77dd9cfe4 Add HAVE_PATCH ifdef; add patch switch support to qb 2020-06-30 15:54:31 +02:00
Hugo Hromic 9b2a4f3c21 (Menu) Fix cursor forced to first entry after displaying lists 2020-06-30 13:59:52 +01:00
Guo Yunhe 74220cfc87 Crowdin synchronization 2020-06-30 15:20:30 +03:00
Connor McLaughlin 07c6c57ec2 Fix core-initiated D3D9/D3D11 driver switches
Currently, RetroArch only does this for GL and Vulkan hardware render
contexts. Requesting a D3D11 context would result in the frontend
creating a GL context instead (or whatever was set in frontend config),
and then eventually crashing when it tried to render the UI.
2020-06-30 18:22:01 +10:00
twinaphex 6fcb97ee53 Some buildfixes 2020-06-30 08:37:41 +02:00
twinaphex 0a1775feb2 Cleanups 2020-06-30 07:56:16 +02:00
twinaphex a2438c67a6 Cleanups 2020-06-30 07:32:24 +02:00
twinaphex cf4b406366 Prevent NULL-pointer dereference 2020-06-30 07:04:55 +02:00
twinaphex 9fc3536237 Optimization 2020-06-30 07:04:23 +02:00
twinaphex 1315dd96f5 menu_setting_new_internal -replace calloc with malloc 2020-06-30 06:58:08 +02:00
twinaphex b721667523 (deps/7zip) Initialize values 2020-06-30 06:01:41 +02:00
twinaphex 99f8137972 (Menu) Cleanups 2020-06-30 05:43:39 +02:00
twinaphex 5479196a79 Get rid of setting_get_type 2020-06-30 05:21:47 +02:00
twinaphex 6419ed08cc We can now get rid of menu_setting_get_label 2020-06-30 03:30:41 +02:00
twinaphex f6dc06ac10 (menu_cbs_get_value.c) Cut down on all the slow menu_setting_find
calls
2020-06-30 03:22:38 +02:00
twinaphex 879cb375e7 (menu_cbs_get_value.c) Start getting rid of settings pointer
grabbing
2020-06-30 02:36:55 +02:00
twinaphex ad8c22e6ac Fix build for MSVC 2003 2020-06-30 01:50:12 +02:00
twinaphex 120afe5d21 (Vulkan) return early/error out if no context driver is found 2020-06-30 01:33:19 +02:00
twinaphex 9474f6b299 Silence another static code analysis warning 2020-06-29 23:03:26 +02:00
twinaphex d46706487c prevent two more static code analysis warnings 2020-06-29 22:37:59 +02:00
twinaphex 258d219aaa Fix CXX_BUILD 2020-06-29 22:25:23 +02:00
twinaphex 5d0b01ea07 (drivers_font) Cleanups 2020-06-29 22:14:15 +02:00
twinaphex 6ada72e09d (gl_raster_font) Try to prevent NULL pointer dereferences 2020-06-29 22:06:50 +02:00
twinaphex d5de55b674 Silence more static code analysis warnings 2020-06-29 21:45:51 +02:00
twinaphex 1a2adc193e Prevent more static code analysis warnings 2020-06-29 21:38:02 +02:00
twinaphex 968922e151 Fix static code analysis warnings 2020-06-29 21:24:32 +02:00
twinaphex a2f2a882cb Cleanups 2020-06-29 21:06:21 +02:00
twinaphex 3239576ba1 Prevent more static code analysis warnings 2020-06-29 21:01:30 +02:00
twinaphex b93c3b36ed Prevent more static code analysis warnings 2020-06-29 20:34:47 +02:00
twinaphex 5cfc4defc6 (libretro-common) Prevent more static code analysis warnings 2020-06-29 20:31:14 +02:00
twinaphex f83f0b2d44 Fix static code analysis warnings 2020-06-29 20:27:34 +02:00
twinaphex cf1eb2e989 Silence more warnings 2020-06-29 20:17:54 +02:00
twinaphex 55d9456cbb More static code analyzer fixes 2020-06-29 20:14:14 +02:00
twinaphex 672deef31a Prevent static code analyzer complaining about potential
memory leaks
2020-06-29 20:06:37 +02:00
twinaphex 6318e11027 Try to prevent static code analyzer warning about potential leak 2020-06-29 20:02:28 +02:00
twinaphex 28399641da task_queue_put - prevent dereference of null pointer 2020-06-29 19:57:52 +02:00
twinaphex bc61ceb338 (retroarch.c) Prevent dereference of NULL pointer 2020-06-29 19:54:27 +02:00
twinaphex 9b3cc339a7 Buildfix 2020-06-29 19:44:17 +02:00
twinaphex cf92d8fddb (gl.c) Prevent static code analysis warnings 2020-06-29 19:40:17 +02:00
twinaphex c9dd197ccb Add HAVE_ODROIDGO2 ifdef 2020-06-29 19:34:33 +02:00
twinaphex e58f91406f (video_filter.c) Cleanups 2020-06-29 19:32:54 +02:00
twinaphex ef51ef1fb1 database_info_list_new - md5 and sha1 need to be freed 2020-06-29 19:27:50 +02:00
twinaphex 316914cb45 Prevent another static code analysis warning 2020-06-29 19:23:45 +02:00
twinaphex 4c86e67c6e core_backup_list_init - prevent garbage values 2020-06-29 19:18:43 +02:00
twinaphex fded8ab357 Fix issues pointed out by static code analysis 2020-06-29 19:15:07 +02:00
twinaphex 8356fc90b6 Change this back 2020-06-29 18:50:42 +02:00
twinaphex 9892af701b Reduce size 2020-06-29 18:43:57 +02:00
twinaphex b10c7f5101 current_library_name/version/extensions don't need to be so big 2020-06-29 18:30:28 +02:00
twinaphex 479058d1a3 Prevent implicit memsets 2020-06-29 16:42:51 +02:00
twinaphex c7bb666214 CRITICAL_SECTION implementation can differ - use calloc here 2020-06-29 14:19:50 +02:00
twinaphex a16ebe401c (UWP) Remove unused local variable 2020-06-29 13:58:13 +02:00
twinaphex 03b232552e (MSVC) Buildfix 2020-06-29 13:53:40 +02:00
twinaphex d8824af4ac pass p_rarch around more 2020-06-29 07:06:07 +02:00
twinaphex ed71d91c77 Add placeholder tic80.png and uzem.png 2020-06-29 05:47:52 +02:00
twinaphex 4eb18094be Add this as placeholder for now 2020-06-29 05:44:19 +02:00
twinaphex a657ad7039 Cleanup 2020-06-29 05:41:25 +02:00
twinaphex b34b29a22f Replace calloc with malloc 2020-06-29 05:18:54 +02:00
twinaphex 0aca9386c4 menu_list_new - turn calloc into malloc 2020-06-29 04:36:23 +02:00
twinaphex d748b37e6b (Ozone/XMB) Use malloc instead of calloc for file_list 2020-06-29 04:24:06 +02:00
twinaphex dc35458761 Turn calloc into malloc 2020-06-29 03:49:56 +02:00
twinaphex fe14bc6e07 (core_info.c) Get rid of calloc 2020-06-29 03:46:27 +02:00
twinaphex dfeef4e772 (XInput) Do away with memsets 2020-06-29 02:44:35 +02:00
twinaphex aa4f84b037 (Dinput) get rid of memsets 2020-06-29 02:37:06 +02:00
twinaphex b4be553ccc (bluetooth) Cleanups 2020-06-29 00:25:37 +02:00
Autechre 0267736465 Merge pull request #10937 from parport0/master
Bluetooth fixes v2
2020-06-29 00:19:49 +02:00
twinaphex 570f6ffb87 vulkan_copy_staging_to_dynamic - avoid memset 2020-06-29 00:14:50 +02:00
twinaphex 1b3826b348 (Vulkan) Avoid some unnecessary memsets 2020-06-29 00:02:45 +02:00
twinaphex 26969dd4e1 (Vulkan) Avoid callocs and memsets 2020-06-28 23:56:33 +02:00
Twinaphex fc2e11d4b7 Fix pthread codepath 2020-06-28 23:31:44 +02:00
twinaphex a833c5f4a6 Cleanups in audio mixer code 2020-06-28 23:24:00 +02:00
twinaphex 6d50ac7cb7 Cleanups 2020-06-28 22:59:51 +02:00
twinaphex 47d93f7fb1 (formats/xml) Cleanups 2020-06-28 22:30:53 +02:00
parport0 8b4e30073a (wifi drivers) Move driver info to userdata 2020-06-28 23:08:58 +03:00
parport0 f2728ae0de Show TEXTURE_BLUETOOTH instead of TEXTURE_NETWORK 2020-06-28 23:08:58 +03:00
parport0 f668ed063e (bluetooth drivers) Move driver info to userdata, clean up API 2020-06-28 23:08:58 +03:00
twinaphex b2dbbeb386 (glslang_util_cxx.cpp) Use string_starts_with_size 2020-06-28 21:53:28 +02:00
twinaphex fe8a191012 (glslang_util_cxx.cpp) Use string_starts_with 2020-06-28 21:46:08 +02:00
twinaphex c600fbc6ff Cleanups 2020-06-28 21:33:07 +02:00
twinaphex 37bfbed3f5 (Vulkan) Cleanups 2020-06-28 21:20:18 +02:00
twinaphex 5a0bc479b1 (libretro-common) Avoid more callocs 2020-06-28 20:57:00 +02:00
twinaphex 1a625f32e8 Update 2020-06-28 20:40:43 +02:00
twinaphex 595c8ce5d0 (libretro-common/streams) Cleanups 2020-06-28 20:32:23 +02:00
twinaphex e120f76f87 (deps/7zip) Cleanups 2020-06-28 20:01:05 +02:00
twinaphex 54b371b767 (deps/7zip) Use rferror instead of ferror 2020-06-28 19:43:55 +02:00
Autechre db6cc3c7f9 Merge pull request #10936 from libretro/revert-10935-master
Revert "Bluetooth fixes"
2020-06-28 19:40:47 +02:00
Autechre b57e6e76c2 Revert "Bluetooth fixes" 2020-06-28 19:40:37 +02:00
Autechre 594e93fc64 Merge pull request #10935 from parport0/master
Bluetooth fixes
2020-06-28 19:31:02 +02:00
twinaphex bc73a815b7 Prevent memsets for vk->tracker 2020-06-28 19:18:48 +02:00
Autechre 0bac76fbde Merge pull request #10934 from hhromic/fix-git-version
(Makefiles) Fix version_git.o regeneration
2020-06-28 19:04:02 +02:00
Hugo Hromic b9fb6c62e9 (Makefiles) Fix version_git.o regeneration
Forgotten references to `git_version.c` (nowadays named `version_git.c`) were
causing the git version object to not be rebuilt every time.
2020-06-28 17:53:03 +01:00
twinaphex 9e65ab63fe (vulkan_common) Prevent memsets and implicit memsets 2020-06-28 18:45:46 +02:00
twinaphex 9684bde88a Cleanup vulkan_create_texture 2020-06-28 18:25:17 +02:00
twinaphex 16ed4ce2d6 Get rid of more callocs 2020-06-28 17:07:45 +02:00
twinaphex dddad35730 Get rid of more callocs 2020-06-28 16:49:13 +02:00
twinaphex 03eb5d8bf0 Use malloc for menu_file_list_cbs_t 2020-06-28 16:42:02 +02:00
twinaphex 695d1892b2 Cleanups 2020-06-28 16:28:32 +02:00
twinaphex 1c9286c2d7 Re-enable bluetooth icon again 2020-06-28 16:22:26 +02:00
twinaphex 6dcc7d5441 Use malloc where possible 2020-06-28 16:11:17 +02:00
parport0 5985d99466 Uncomment bluetooth.png 2020-06-28 15:59:07 +03:00
parport0 9e3dd965eb (bluetooth) Move driver info to userdata, clean up API 2020-06-28 15:58:01 +03:00
twinaphex 3dafbb8487 (libretro-common) Use malloc 2020-06-28 06:52:02 +02:00
twinaphex 3541b2aa0e task_init - use malloc 2020-06-28 06:41:07 +02:00
twinaphex 190ca68817 Update 2020-06-28 06:24:42 +02:00
Twinaphex 56c3b99dac (deps/7zip) Prevent warnings/errors 2020-06-28 05:25:44 +02:00
Twinaphex c10c6aa015 (7zip) Cleanup #1 2020-06-28 05:20:58 +02:00
twinaphex 61c1fa508d (deps/7zip) Change this to RFILE 2020-06-28 05:09:38 +02:00
twinaphex 8a8ddb2468 (deps/7zip) Update 2020-06-28 05:07:30 +02:00
twinaphex 722f13165b (HID) Fill in null HID driver again - might potentially fix older
iOS versions
2020-06-28 05:03:29 +02:00
twinaphex a8f8753bbc (deps/7zip) Change SRes to int64_t 2020-06-28 04:52:11 +02:00
twinaphex e2af6eb96b (deps/7zip) Change WRes to int64_t - and other cleanups 2020-06-28 04:15:11 +02:00
twinaphex 136a86f6aa (deps/7zip) Use libretro-common file_stream functions 2020-06-28 03:58:40 +02:00
twinaphex 503c8e089f (shader_vulkan) Cleanup 2020-06-28 01:17:36 +02:00
twinaphex c1f90e4c9a (Vulkan) Cleanups 2020-06-28 01:09:33 +02:00
twinaphex 128757554e (gfx/font_driver) Use malloc 2020-06-28 00:50:48 +02:00
twinaphex 6e015d32a8 Optimize some strlen and file_path_str usage - condense this
back to STRLEN_CONST usage
2020-06-28 00:36:23 +02:00
twinaphex c1c3f75804 dir_list_read - avoid two strcmps 2020-06-27 22:26:20 +02:00
twinaphex 6085ed358d (RPNG) Use malloc 2020-06-27 21:09:29 +02:00
twinaphex 37363e00c0 Start passing around p_rarch more 2020-06-27 20:54:52 +02:00
twinaphex 724a9a393e (bluetooth drivers) Cleanups and add TODO/FIXME notes 2020-06-27 19:46:27 +02:00
twinaphex 497dc7a38a (menu) move headers around - no more menu/widgets 2020-06-27 19:33:49 +02:00
twinaphex 8f2dec4196 rarch_timer_ functions can now be made static 2020-06-27 19:17:45 +02:00
twinaphex 01e2cc2465 Integrate menu_dialog.c into retroarch.c 2020-06-27 19:08:02 +02:00
twinaphex dda0c04d0a remove leftovers 2020-06-27 18:55:33 +02:00
twinaphex 8259a0fd89 (Menu) Merge menu_filebrowser.c into menu_displaylist.c 2020-06-27 18:54:14 +02:00
twinaphex deb7fc5bf9 Comment out bluetooth.png image for now until it has been added
to retroarch-assets
2020-06-27 18:32:15 +02:00
twinaphex 776e95d4e1 (vulkan_common.c) Cleanups 2020-06-27 18:28:33 +02:00
twinaphex 72d1a313ae (vulkan_common.c) Cleanups 2020-06-27 18:17:33 +02:00
Twinaphex 04fb139bcb Cleanup unused variables 2020-06-27 18:17:10 +02:00
Autechre 6b4237c04f Update CHANGES.md 2020-06-27 16:51:08 +02:00
Autechre f39e90bfe7 Update CHANGES.md 2020-06-27 16:49:03 +02:00
Autechre 0f7f9eba4b Update CHANGES.md 2020-06-27 16:47:17 +02:00
Autechre 10ddb274bc Merge pull request #10866 from parport0/master
Add a bluetooth driver
2020-06-27 16:46:11 +02:00
Autechre 91775e493b Merge pull request #10909 from WeedyWeedSmoker/iOS-update
[iOS] Update iOS Xcode projects
2020-06-27 16:44:55 +02:00
Autechre dca50bacb2 Merge pull request #10926 from fpscan/master
Update tgbdual.png
2020-06-27 16:44:24 +02:00
Ömercan Kömür 42f97453d5 Update tgbdual.png
re-upload
2020-06-27 17:38:28 +03:00
twinaphex 408f40f413 Cut down on some callocs 2020-06-27 16:36:08 +02:00
Autechre ecc41fc59c Merge pull request #10924 from benklop/master
Non-X11 lightgun support
2020-06-27 16:20:08 +02:00
twinaphex 4bd8c2a7ff Avoid calloc where possible 2020-06-27 15:06:45 +02:00
twinaphex 5783494e13 (libretro-common) Cleanups 2020-06-27 14:55:08 +02:00
twinaphex c3f8b7741c Add fallback paths for nbio_stdio.c 2020-06-27 14:07:41 +02:00
twinaphex c1275cc83d Cleanups 2020-06-27 13:58:15 +02:00
twinaphex b0b588a56a (VFS) Add fseeko/ftello support 2020-06-27 13:41:59 +02:00
twinaphex 5b9a51d353 (CTR) tgbdual.png - image needs to be exactly 48x48 or else
it will error out
2020-06-27 04:20:49 +02:00
Ben Klopfenstein 17465462b8 X11 lightgun support 2020-06-26 19:47:43 -06:00
twinaphex f16f3d2968 Add 'Ignore null drivers' setting 2020-06-27 03:00:28 +02:00
twinaphex e0c442c99a input_list_element_constructor - turn it into malloc 2020-06-27 02:02:01 +02:00
twinaphex 73199d5df3 (MaterialUI) Use malloc 2020-06-27 01:52:00 +02:00
twinaphex 1e67b4c04a (gx_widgets) Use malloc instead of calloc 2020-06-27 01:25:48 +02:00
twinaphex f420c2c843 Change menu_widget_msg_t to disp_widget_msg_t 2020-06-27 01:15:21 +02:00
twinaphex 035d7dad12 Go through utf8 to utf16 functions 2020-06-27 01:10:45 +02:00
twinaphex 0946604627 (Qt) Only call log_msg when the Qt companion UI window is active 2020-06-26 21:45:09 +02:00
twinaphex 1b86ea43c3 Try to use vsnprintf where possible instead of vsprintf 2020-06-26 20:56:14 +02:00
Autechre 5f607f5809 Merge pull request #10922 from jdgleaver/playlist-config
Refactor playlist struct configuration
2020-06-26 20:35:39 +02:00
twinaphex 5e3b353987 (libretro-db) Avoid callocs when possible 2020-06-26 20:24:05 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex fa50695b89 Cleanups 2020-06-26 19:25:53 +02:00
jdgleaver 5aeb479a31 DISABLE_NETWORKING buildfix 2020-06-26 18:09:08 +01:00
twinaphex 966348327d Cleanups 2020-06-26 19:07:38 +02:00
twinaphex 808c00db41 (drivers_shader) Move static functions to top of files 2020-06-26 18:54:30 +02:00
twinaphex 80581f14a8 Revert "Revert "Cleanups""
This reverts commit 1fda1e0b28.
2020-06-26 18:44:38 +02:00
twinaphex 021625fd4a Revert "Move static functions to top of files"
This reverts commit 02b542e2a5.
2020-06-26 18:40:26 +02:00
twinaphex efd98108c6 Revert "configuration.c - move static functions to top of file"
This reverts commit c0f3c5d083.
2020-06-26 18:40:20 +02:00
twinaphex 1fda1e0b28 Revert "Cleanups"
This reverts commit a9c8cf205d.
2020-06-26 18:39:34 +02:00
twinaphex a9c8cf205d Cleanups 2020-06-26 18:28:58 +02:00
twinaphex c0f3c5d083 configuration.c - move static functions to top of file 2020-06-26 18:25:12 +02:00
twinaphex 02b542e2a5 Move static functions to top of files 2020-06-26 18:15:38 +02:00
twinaphex 011806bce8 Cleanups 2020-06-26 17:45:35 +02:00
twinaphex 3aafed5030 Cleanups 2020-06-26 17:37:09 +02:00
twinaphex 0bb6fafac5 Revert "(Ozone) Cleanups"
This reverts commit ac601e6aeb.
2020-06-26 17:27:45 +02:00
twinaphex ac601e6aeb (Ozone) Cleanups 2020-06-26 17:21:32 +02:00
twinaphex e4c187b718 xmb_render - Make it more similar to materialui_render 2020-06-26 16:57:54 +02:00
twinaphex 1fe0dbafbe (XMB) Only do mouse processing once in render - not every time in frame 2020-06-26 16:51:50 +02:00
jdgleaver 0fcfb3deda Refactor playlist struct configuration 2020-06-26 15:40:19 +01:00
Autechre d243f62a80 Merge pull request #10919 from benklop/master
Non-X11 lightgun support
2020-06-26 16:13:30 +02:00
twinaphex 08a1a21d71 (libretro-common) Cleanups 2020-06-26 15:26:52 +02:00
twinaphex b39ef98d2a Small optimization 2020-06-26 14:45:48 +02:00
Ben Klopfenstein 9e0bb65e9b Merge remote-tracking branch 'lightgun/master' into master 2020-06-25 20:30:01 -06:00
twinaphex 7027b094c1 gfx_display_draw_text - cleanups 2020-06-25 23:45:14 +02:00
twinaphex 2f235f0abb Cleanups 2020-06-25 23:16:08 +02:00
twinaphex 91f5ca4105 Cleanups 2020-06-25 23:10:54 +02:00
Autechre 1397468496 Update CHANGES.md 2020-06-25 16:50:37 +02:00
Autechre b7ed6a48e6 Merge pull request #10916 from jdgleaver/config-file-optimisation
Optimise parsing of configuration files
2020-06-25 16:34:40 +02:00
jdgleaver b6364407fd Optimise parsing of configuration files 2020-06-25 15:15:08 +01:00
Autechre e2c7af85e6 Update CHANGES.md 2020-06-25 15:08:09 +02:00
twinaphex 6e072e245e Enlarged INT/UINT selection limit from 999 to 9999 2020-06-25 14:41:56 +02:00
twinaphex de36ff20fb Create string_ends_with_size 2020-06-25 14:38:06 +02:00
twinaphex e727e85b1d Updates 2020-06-25 14:01:19 +02:00
twinaphex aa48eeb98e Turn path_default_slash uppercase, and do some optimizations 2020-06-25 13:36:01 +02:00
twinaphex 601a73fa8b Use string_starts_with_size where possible - avoids the strlen 2020-06-25 12:51:04 +02:00
twinaphex 35527c24c3 Revert "Optimize config_get_bool"
This reverts commit 1c38dc67c2.
2020-06-25 12:08:36 +02:00
Autechre be49eb93e1 Merge pull request #10914 from jdgleaver/config-file-comment-fix
(config_file) Fix handling of comments at the end of config file lines
2020-06-25 11:49:17 +02:00
jdgleaver 9c2b6dffc2 (config_file) Fix handling of comments at the end of config file lines 2020-06-25 10:29:40 +01:00
twinaphex 1c38dc67c2 Optimize config_get_bool 2020-06-25 03:03:42 +02:00
twinaphex 8fccac666e Use STRLEN_CONST where possible 2020-06-24 22:57:41 +02:00
twinaphex 67898f5d12 (Font drivers) Simplifications 2020-06-24 21:27:47 +02:00
twinaphex 9cb4d924cb Revert "(drivers_font) Cut down on unnecessary strlen calls within a for loop"
This reverts commit 3e9d0b8758.
2020-06-24 21:09:44 +02:00
twinaphex 5fc63dc578 Cleanup 2020-06-24 21:07:35 +02:00
twinaphex 3e9d0b8758 (drivers_font) Cut down on unnecessary strlen calls within a for loop
- precompute once for function duration
2020-06-24 20:52:39 +02:00
twinaphex 198df77c29 Update 2020-06-24 20:18:06 +02:00
twinaphex 472bb775ee retro_vfs_file_open_impl - avoid two strlens at start 2020-06-24 20:17:09 +02:00
twinaphex b846599cc7 Cleanups/simplifications 2020-06-24 19:54:35 +02:00
twinaphex dd2844a2ac Convert calloc to malloc where possible 2020-06-24 19:45:09 +02:00
twinaphex 1c5276749a Turn calloc into malloc 2020-06-24 19:35:07 +02:00
twinaphex f5940ed188 Use malloc instead of calloc where possible 2020-06-24 19:27:02 +02:00
twinaphex 7cac61e5eb Use malloc instead of calloc when possible 2020-06-24 18:52:42 +02:00
twinaphex 74b3b505c9 This part of the code looked suspicious and was leaking memory
for one codepath
2020-06-24 18:39:21 +02:00
twinaphex 3a4af3149b (libretro-common) Use malloc instead of calloc when possible 2020-06-24 17:35:02 +02:00
twinaphex 53f3199652 Reordered this code somewhat 2020-06-24 15:40:42 +02:00
Autechre e7b73e179a Merge pull request #10910 from jdgleaver/config-file-strip-comment
(config_file) Optimise parsing of 'comment' lines in configuration files
2020-06-24 15:38:12 +02:00
jdgleaver 9b22874c73 (config_file) Optimise parsing of 'comment' lines in configuration files 2020-06-24 14:31:46 +01:00
twinaphex b9f65af98a (Libretro-common) Sync 2020-06-24 15:05:03 +02:00
twinaphex 7fc50e7ab6 Cleanups 2020-06-24 13:46:11 +02:00
twinaphex a2b83636d7 (Android) Some slight optimizations 2020-06-24 13:27:32 +02:00
twinaphex 84b53856a4 core_option_manager - don't go through config_get_string 2020-06-24 12:23:40 +02:00
twinaphex 0cdea62072 (core_info.c) Try to avoid config_get_string 2020-06-24 11:57:58 +02:00
parport0 a24d2b50a5 bluetooth: split into labels and sublabels 2020-06-24 12:53:27 +03:00
parport0 4f8ccb8642 Add bluez bluetooth driver 2020-06-24 12:53:27 +03:00
parport0 23c08ad9b0 Add bluetoothctl bluetooth driver 2020-06-24 12:53:27 +03:00
twinaphex 8486c8ebfb Cleanups 2020-06-24 10:54:25 +02:00
twinaphex 6b854f8766 Update 2020-06-24 10:47:30 +02:00
twinaphex f6acc190f6 Cleanups 2020-06-24 10:39:16 +02:00
twinaphex 58f67aacc7 Cleanups 2020-06-24 10:22:45 +02:00
twinaphex 634f18ad43 Turn more functions static 2020-06-24 10:14:03 +02:00
Weedy Weed Smoker 8c99ada501 [iOS] Oops… 2020-06-24 07:30:15 +07:00
Weedy Weed Smoker 865268ff1f [iOS] Update iOS Xcode projects 2020-06-24 06:48:44 +07:00
twinaphex d0e426011d Move video_driver_load/save_settings functions to configuration.c 2020-06-23 22:27:40 +02:00
twinaphex 2c185fe7e2 Move input remapping code to configuration.c 2020-06-23 22:18:33 +02:00
twinaphex 388342264c Cleanup 2020-06-23 22:01:33 +02:00
twinaphex ffff7e782a Cleanup 2020-06-23 21:56:41 +02:00
twinaphex d31f7a915b Simplify else conditional 2020-06-23 21:35:38 +02:00
Autechre 137aeee9e8 Update CHANGES.md 2020-06-23 19:16:25 +02:00
Autechre d927b6ec83 Merge pull request #10904 from Jamiras/cheevos_unlock_lbl
(cheevos) restore display of unlocked achievements across hardcore modes
2020-06-23 19:15:58 +02:00
twinaphex 1348902146 (GX Input) Cleanups 2020-06-23 19:10:27 +02:00
twinaphex c0bacea187 Cut down on some pointer grabbing 2020-06-23 19:06:53 +02:00
twinaphex 9c519b73aa Split up input_joypad_analog into two functions 2020-06-23 18:52:48 +02:00
twinaphex 689ac432d6 MOve input_joypad_analog call to inside retroarch.c instead of the
input driver itself, and make function static
2020-06-23 18:31:40 +02:00
twinaphex 2a0c490913 Cleanup 2020-06-23 18:08:53 +02:00
twinaphex a48af59c92 Cleanups 2020-06-23 18:05:07 +02:00
twinaphex c9f634e85d Cleanups 2020-06-23 17:51:45 +02:00
twinaphex 0864b3cd38 Cleanups - don't need input_driver_get_joypad_driver anymore 2020-06-23 17:42:32 +02:00
twinaphex 10abdc5a0e Implement get_joypad_driver stub for Xenon 360 2020-06-23 17:35:39 +02:00
twinaphex 0503467f2c Turn functions static 2020-06-23 17:32:27 +02:00
twinaphex edc5d1a1e5 Merge menu_input_bind_dialog into retroarch.c - global state is now
part of rarch_state
2020-06-23 17:26:33 +02:00
twinaphex d62bf9b16c (menu_input_bind_dialog.c) Cleanups 2020-06-23 17:13:46 +02:00
Jamiras e85b318038 display 'Unlocked' in hardcore mode for achievements earned in non-hardcore mode 2020-06-23 08:59:43 -06:00
twinaphex 459a7df778 (menu_input_bind_dialog.c) Pointer cleanups 2020-06-23 16:58:37 +02:00
twinaphex f8fecadd88 menu_input_bind_dialog - cleanups 2020-06-23 16:49:08 +02:00
twinaphex d0f57cdd6f Update 2020-06-23 15:06:20 +02:00
twinaphex dbb2cbb959 Cleanups 2020-06-23 15:03:48 +02:00
Autechre 2e60757c5d Merge pull request #10903 from fpscan/master
Original RACE icon
2020-06-23 14:48:37 +02:00
Ömercan Kömür cec6b2b324 Merge pull request #6 from fpscan/fpscan-patch-2
original race icon
2020-06-23 14:46:11 +03:00
Ömercan Kömür a89f2e81b2 original race icon
original race icon
2020-06-23 14:45:54 +03:00
twinaphex b5c14af74a Cleanups 2020-06-23 11:46:40 +02:00
twinaphex a6f6fb88f0 Cleanups 2020-06-23 09:28:41 +02:00
Autechre dd9aef0107 Update CHANGES.md 2020-06-23 08:58:30 +02:00
Autechre dffb54ac3c Merge pull request #10882 from Jamiras/cheevos_hash_buffered
(cheevos) hash buffered data when available
2020-06-23 08:58:04 +02:00
Autechre 74a88b10f3 Merge pull request #10897 from fpscan/steam-requirements
Update steam_us.json
2020-06-23 06:46:11 +02:00
Autechre d1bf6c7f52 Update CHANGES.md 2020-06-23 06:30:39 +02:00
Autechre 8afa258313 Merge pull request #10900 from valadaa48/oga_gfx_rgui_fix
oga_gfx: fix race condition with rgui callback
2020-06-23 06:29:55 +02:00
valadaa48 f753efeaa7 oga_gfx: fix race condition with rgui callback
- oga_gfx_frame is sometimes called before set_texture_frame has been
called
2020-06-22 21:38:19 -04:00
Ömercan Kömür a4c51afd1d Update steam_us.json
added requirements and legal limits
2020-06-22 23:20:29 +03:00
twinaphex 93eb2abdfe Cleanup 2020-06-22 20:49:55 +02:00
twinaphex 35c55c4b50 Potential fix for #10884 2020-06-22 20:34:40 +02:00
Autechre dd966ba58f Merge pull request #10894 from fpscan/3ds-missing
Some missing core banners for 3DS
2020-06-22 19:49:25 +02:00
Autechre c4a8b1ced4 Merge pull request #10895 from guoyunhe/patch-6
Fix JSON syntax
2020-06-22 19:24:08 +02:00
Guo Yunhe 2e56ce6aa8 Fix JSON syntax
The JSON was invalid because last item of object cannot end with `,`
2020-06-22 19:35:14 +03:00
Ömercan Kömür 11036f087d Add files via upload 2020-06-22 19:25:19 +03:00
Ömercan Kömür b19a509c71 Core banners for 3DS 2020-06-22 19:23:08 +03:00
Autechre ae70dcdd20 Merge pull request #10892 from fpscan/master
Google Play description translations for Crowding project
2020-06-22 17:16:42 +02:00
Autechre 783a3e7517 Merge pull request #10893 from jdgleaver/core-info-strdup
Prevent unnecessary string duplication when parsing core info files
2020-06-22 16:42:31 +02:00
jdgleaver 160b864d32 Prevent unnecessary string duplication when parsing core info files 2020-06-22 15:03:47 +01:00
Ömercan Kömür f33bf66ce0 Google Play translations 2020-06-22 16:19:50 +03:00
Ömercan Kömür 1d2dd8f400 Merge pull request #3 from libretro/master
updates
2020-06-22 15:58:06 +03:00
Autechre f36ceba596 Merge pull request #10881 from jdgleaver/core-message-flush
Do not flush the message queue when receiving core-generated notification messages
2020-06-22 07:34:47 +02:00
Autechre 788224aca1 Merge pull request #10883 from guoyunhe/steam-translations
Add steam translations
2020-06-22 07:34:37 +02:00
Autechre 3b855cb278 Merge pull request #10887 from hhromic/improv-menu-res
(Win32/DispServer) Improve screen resolution menu
2020-06-22 07:34:18 +02:00
Autechre b736100443 Merge pull request #10889 from Jamiras/scan_content_null
prevent NULL reference exception when scanning some directories
2020-06-22 06:46:32 +02:00
Jamiras 6e7eeb1d8f prevent NULL reference exception when scanning some directories 2020-06-21 22:35:35 -06:00
Hugo Hromic 2e57a690ce (Win32/DispServer) Improve video resolution switching
* Only switch to a display mode with the same current bit-depth and screen rotation
* Only switch to a display mode with default stretching mode
* Cleanup the function for consistency with other functions
2020-06-21 23:49:26 +01:00
Hugo Hromic 9ec3a5ccad (Win32/DispServer) Improve building of video resolution list
* Only use display modes with the same current bit-depth and screen rotation
* Only use display modes with default stretching mode
* Cleanup the function for consistency with other functions
2020-06-21 23:49:11 +01:00
Guo Yunhe 15609b52bb Add steam translations 2020-06-21 19:03:09 +03:00
Jamiras 527e9faa1f hash buffered data when available 2020-06-21 09:39:42 -06:00
jdgleaver 1651db288d Do not flush the message queue when receiving core-generated notification messages 2020-06-21 12:48:26 +01:00
Hugo Hromic 4bc4a4dae8 (Ozone/XMB) Use consistent icon for 'Screen Resolution' option in video output menu 2020-06-21 10:50:46 +01:00
Autechre 857b0da555 Merge pull request #10879 from libretro/fix-db-file_path
(Database) Fix rtime in db-converter compilation
2020-06-21 05:40:14 +02:00
Rob Loach 705cfe9e82 Fix rtime in db-converter compilation 2020-06-20 17:15:07 -04:00
Autechre 2e115baf36 Merge pull request #10875 from hhromic/add-state-slot-icon
(Ozone) Add missing icon for 'State Slot' option in Quick Menu
2020-06-20 01:50:30 +02:00
Hugo Hromic d9fabec88e (Ozone) Add missing icon for 'State Slot' option in Quick Menu 2020-06-19 22:55:47 +01:00
twinaphex 4c6b13919c Bump up version 2020-06-19 16:02:08 +02:00
Autechre d762519b8e Merge pull request #10874 from jdgleaver/core-message-fix
Fix display of core-generated messages when load content fails
2020-06-19 15:49:22 +02:00
jdgleaver 42537a67e1 Fix display of core-generated messages when load content fails 2020-06-19 12:22:37 +01:00
IlDucci 648df8fba0 Updating msg_hash_es.c
Updating the Spanish translation in the area that is not yet compatible with the Crowdin system.
2020-06-19 11:24:08 +02:00
Autechre 8098c5978f Merge pull request #10870 from Jamiras/gfx_widgets_achievements
gfx_widgets: move achievement popup widget into its own file
2020-06-18 23:03:03 +02:00
Autechre a88bc56ede Merge pull request #10871 from jdgleaver/core-update-block
Add option to selectively 'lock' (prevent modification of) installed cores
2020-06-18 23:02:44 +02:00
jdgleaver 80f36e16d0 Add option to selectively 'lock' (prevent modification of) installed cores 2020-06-18 17:36:33 +01:00
Autechre 4ed7ad8465 Merge pull request #10867 from jdgleaver/core-auto-backup-default
Enable automatic core backups by default on 'modern' desktop and mobile platforms
2020-06-17 23:21:49 +02:00
Jamiras 47dbaeabb8 gfx_widgets: move achievement popup widget into its own file 2020-06-17 10:48:01 -06:00
hizzlekizzle 2cbed1ac5d Merge pull request #10868 from jdgleaver/shader-preset-save-label-fix
Add missing labels for 'VIDEO_SHADER_PRESET_SAVE' enums
2020-06-17 09:38:36 -05:00
jdgleaver b49d6e9d3a Add missing labels for 'VIDEO_SHADER_PRESET_SAVE' enums 2020-06-17 13:59:52 +01:00
jdgleaver 52aabc02ba Enable automatic core backups by default on 'modern' desktop and mobile platforms 2020-06-17 12:57:12 +01:00
Autechre e91e9336a9 Update CHANGES.md 2020-06-17 13:33:42 +02:00
Autechre 3c8f539d3b Merge pull request #10865 from jdgleaver/disk-control-insert-new
(Disk Control Interface) Enable 'Load New Disc' while disk tray is open
2020-06-17 13:33:10 +02:00
jdgleaver 0c18da5d49 (Disk Control Interface) Enable 'Load New Disc' while disk tray is open 2020-06-17 11:43:54 +01:00
twinaphex a00ab53ef6 Put fprintfs and printfs behind ifndef NDEBUG 2020-06-17 11:22:31 +02:00
Autechre dba4ca04ee Update CHANGES.md 2020-06-16 22:21:15 +02:00
Autechre 43a65ec65a Merge pull request #10862 from jdgleaver/core-auto-backup
Add option to automatically backup cores when updating
2020-06-16 22:20:37 +02:00
Autechre 5f8419b8d2 Merge pull request #10861 from Jamiras/gfx_threaded_msg
(widgets) prevent freeing message while it's being rendered
2020-06-16 22:18:48 +02:00
Jamiras 42e2d740d3 add lock around current_msgs 2020-06-16 07:27:15 -06:00
jdgleaver 2782b87267 Add option to automatically backup cores when updating 2020-06-16 11:12:22 +01:00
Autechre 4b364fa1e1 Merge pull request #10859 from Jamiras/cheevos_multi_pop
(cheevos) load badge texture outside of lock
2020-06-15 23:51:59 +02:00
Jamiras 649f83c82e load badge texture outside of lock 2020-06-15 10:48:02 -06:00
Autechre 85d60bac8f Update CHANGES.md 2020-06-15 18:30:11 +02:00
Autechre ffdbb968f9 Merge pull request #10858 from Jamiras/cheevos_hardcore_pause_unlock
(cheevos) correctly report unlocked non-hardcore achievements when hardcore is paused
2020-06-15 18:29:46 +02:00
Jamiras 20380a8042 correctly report unlocked non-hardcore achievements when hardcore is paused 2020-06-15 07:06:12 -06:00
twinaphex 685948368e (libretro-db) Should fix buffer overflow - should fix Database
Information and Scan folder/File with GCC 10
2020-06-14 18:03:00 +02:00
Autechre 1099b58793 Merge pull request #10852 from jdgleaver/glui-list-insert
(GLUI) Optimise list insertion when adding playlist and dropdown list items
2020-06-14 17:48:57 +02:00
Autechre 122a68385f Merge pull request #10853 from valadaa48/oga_gfx_24bit_menu
oga_gfx 24bit menu support
2020-06-14 17:48:31 +02:00
jdgleaver 85bbba84c2 (GLUI) Optimise list insertion when adding playlist and dropdown list items 2020-06-14 14:45:53 +01:00
valadaa48 69e2bd986d oga_gfx 24bit menu support
- hack borrowed from drm_gfx
2020-06-14 03:54:36 +00:00
Autechre 439aee616e Update CHANGES.md 2020-06-13 17:51:05 +02:00
twinaphex 4f78264541 Cleanups 2020-06-13 17:46:39 +02:00
twinaphex cc43f3a355 (SDL2 Input) Add RARCH_DEVICE_MOUSE_SCREEN 2020-06-13 17:32:18 +02:00
twinaphex 367cf5985d (winraw_input) Fix mouse input processing 2020-06-13 17:27:12 +02:00
twinaphex bba60163f7 (Dinput) Fix RARCH_DEVICE_MOUSE_SCREEN 2020-06-13 17:22:34 +02:00
Autechre 8593b10bee Merge pull request #10847 from Jamiras/cheevos_bsv
(cheevos) disable hardcore mode when playing bsv file
2020-06-13 17:04:52 +02:00
Jamiras 950823e90b disable hardcore mode when playing bsv file 2020-06-13 08:05:23 -06:00
twinaphex 01bd76405f Buildfixes 2020-06-13 08:37:26 +02:00
twinaphex b74b8b6a6c Move launched_from_cli to global state 2020-06-13 08:19:49 +02:00
twinaphex b46a316df9 (core info) Pass pointer around to some functions 2020-06-13 07:29:26 +02:00
twinaphex 34af28461f Move core info global state to retroarch.c 2020-06-13 07:21:00 +02:00
Twinaphex 6e979931a1 Remove unused variable 2020-06-13 06:49:59 +02:00
twinaphex c7cd327b5b Rearrange input state input drivers for ANALOG - do joypad
processing first, then keyboard second
2020-06-13 05:25:10 +02:00
twinaphex dd79629015 (QNX) Get rid of qnx_is_pressed 2020-06-13 02:13:32 +02:00
twinaphex 5b81b6887b (X11) Buildfix #3 2020-06-13 02:07:43 +02:00
twinaphex 9d65f7e633 (X11) Buildfix #2 2020-06-13 02:06:24 +02:00
twinaphex 60ca3d0ad7 (X11) Buildfix 2020-06-13 02:05:16 +02:00
twinaphex 9ede38df93 (X11) Cleanups 2020-06-13 02:03:48 +02:00
twinaphex 52ff31f877 Get rid of udev_is_pressed 2020-06-13 01:54:22 +02:00
twinaphex 6cc9a3f9b4 (UWP) Buildfix + uwp_input cleanups 2020-06-13 01:01:30 +02:00
twinaphex 6690790dae Fix --disable-menu 2020-06-12 22:24:39 +02:00
twinaphex d03a0a7b51 (WiiU) Buildfix 2020-06-12 19:33:13 +02:00
Autechre 8173db0c4a Merge pull request #10846 from jdgleaver/task-pl-manager-heap-use-after-free
(Playlist management tasks) Fix potential heap-use-after-free errors
2020-06-12 18:54:22 +02:00
twinaphex 00df029557 Get rid of some extraneous 'valid' checks in in input_keys_pressed 2020-06-12 18:45:35 +02:00
twinaphex d998f86f1f Cleanups 2020-06-12 18:41:09 +02:00
jdgleaver 6f51ef5966 (Playlist management tasks) Fix potential heap-use-after-free errors 2020-06-12 17:40:24 +01:00
twinaphex 4a91b11806 Further input driver standardization 2020-06-12 18:28:07 +02:00
Autechre 6e621a98d9 Merge pull request #10845 from jdgleaver/x11-udev-input-fixes
(X11/udev) Input fixes
2020-06-12 17:22:44 +02:00
Autechre 4e49114c5c Merge pull request #10844 from jdgleaver/manual-scan-recursive
(Manual Content Scanner) Add option to disable recursive scanning
2020-06-12 17:13:00 +02:00
jdgleaver 2c956fbe85 (X11/udev) When fetching RETRO_DEVICE_ID_JOYPAD_MASK, only query keyboard if corresponding gamepad button is not pressed 2020-06-12 16:06:32 +01:00
jdgleaver 321ede2256 (X11/udev) Input fixes 2020-06-12 14:12:22 +01:00
jdgleaver 1cdd3c32c0 (Manual Content Scanner) Add option to disable recursive scanning 2020-06-12 10:00:38 +01:00
twinaphex 45f90ad89a (menu_dialog) Cleanups
Make menu_hash_help no longer dependent on the menu code
2020-06-12 08:06:30 +02:00
twinaphex 6092de544c (Wiiu) Buildfix 2020-06-12 07:13:55 +02:00
twinaphex 0e907f01ca (winraw_input) Cleanups - use button_is_pressed 2020-06-12 06:37:36 +02:00
twinaphex c1d63ca7c1 Revert "Grab pointer to video_driver_window_get_ptr once during init"
This reverts commit 784904071a.
2020-06-12 06:36:27 +02:00
twinaphex 451a06076d Revert "(dinput_joypad) Grab window pointer once"
This reverts commit d85eb927c1.
2020-06-12 06:36:19 +02:00
twinaphex 5a064ef4ca (dinput) Cleanups - use button_is_pressed 2020-06-12 06:26:03 +02:00
twinaphex d85eb927c1 (dinput_joypad) Grab window pointer once 2020-06-12 06:12:25 +02:00
twinaphex 784904071a Grab pointer to video_driver_window_get_ptr once during init
function, then use that throughout this driver's functions
2020-06-12 06:07:20 +02:00
twinaphex d903d684a0 (glslang) Group together more strings 2020-06-12 05:24:34 +02:00
twinaphex c2044beedd Fix shader regression with MinProgramTexelOffset 2020-06-12 05:18:38 +02:00
twinaphex eb78b608d3 Cut down on code duplication 2020-06-12 00:50:08 +02:00
twinaphex 0b95a8838a (OSX) Cleanups 2020-06-12 00:30:24 +02:00
twinaphex ecfdc867f8 Cleanups 2020-06-12 00:16:31 +02:00
twinaphex e40d381f6b (WiiU) Cleanups 2020-06-11 22:05:30 +02:00
twinaphex 255794d903 (Udev) buildfix 2020-06-11 21:40:37 +02:00
twinaphex d1d8386343 (udev) Cleanups 2020-06-11 21:38:58 +02:00
twinaphex a7ab21ac15 (Emscripten) Buildfix 2020-06-11 21:21:20 +02:00
twinaphex 88a93dc648 (OSX) Buildfix 2020-06-11 21:00:28 +02:00
twinaphex 8cc220a4d2 (CTR) Buildfix 2020-06-11 20:59:35 +02:00
twinaphex 11520f9704 (X11) Buildfix 2020-06-11 20:23:44 +02:00
twinaphex dee0c5dbca CTR buildfix + cleanups 2020-06-11 19:33:27 +02:00
twinaphex f12ac35438 Cleanups 2020-06-11 19:03:50 +02:00
twinaphex 42984968f2 (X11) Further optimizations to x_is_pressed 2020-06-11 19:00:08 +02:00
twinaphex f96e148f74 Change to 1 instead 2020-06-11 18:43:53 +02:00
twinaphex e2e5366925 Cleanups 2020-06-11 18:43:30 +02:00
Twinaphex dc967f41ec (Cocoa) Create cocoa_is_pressed 2020-06-11 18:40:14 +02:00
Autechre 204f705b35 Update CHANGES.md 2020-06-11 18:05:14 +02:00
Autechre dc10dc4702 Merge pull request #10837 from parport0/master
Add options for moving the on-screen overlay
2020-06-11 18:03:02 +02:00
twinaphex d8cf551608 Silence 'suggest braces around initialization of subobject' warning 2020-06-11 17:38:11 +02:00
twinaphex 9c1d40c364 (Android) Buildfix 2020-06-11 17:37:23 +02:00
twinaphex 3eaf7d5e66 Further cleanups and corrections 2020-06-11 17:18:28 +02:00
twinaphex 6ddbf911e3 (SDL input) Build fix - and further cleanups in other
drivers
2020-06-11 17:12:08 +02:00
Autechre 1979b42834 Merge pull request #10836 from jdgleaver/hotkey-sublabels
Add sublabels to all hotkey bind entries
2020-06-11 16:59:10 +02:00
twinaphex cd01e0a048 Standardize input lightgun code 2020-06-11 16:58:49 +02:00
jdgleaver a7ebae35de Rephrase 'Reset Game' hotkey sublabel 2020-06-11 15:52:33 +01:00
twinaphex f9c771b4a8 Standardize lightgun_aiming_state function 2020-06-11 16:50:36 +02:00
twinaphex cf3cdbbcc9 Cleanups 2020-06-11 16:49:27 +02:00
twinaphex 39279292ef (dinput) Cut down on code duplication 2020-06-11 16:42:33 +02:00
jdgleaver fa069c28f3 Add sublabels to all hotkey bind entries 2020-06-11 15:38:25 +01:00
twinaphex 4fb59f5319 (winraw_input) More fixes 2020-06-11 16:37:50 +02:00
twinaphex 1b5796b321 Fix --disable-menu 2020-06-11 16:30:45 +02:00
Autechre 2c94d9a573 Merge pull request #10838 from Jamiras/cheevos_hash_more_exts
(cheevos) support for less common file extensions
2020-06-11 16:19:44 +02:00
Autechre cabab419c5 Merge pull request #10839 from jdgleaver/core-manager
Add 'core management' menu
2020-06-11 16:19:23 +02:00
Jamiras ffb1f0b67b support for less common file extensions 2020-06-11 07:33:17 -06:00
jdgleaver 42ad070a1d Add 'core management' menu 2020-06-11 14:12:20 +01:00
parport0 a4590acde9 Add options for moving the on-screen overlay 2020-06-11 15:39:23 +03:00
twinaphex 479a3ab9a3 (Dinput) Optimizations - create dinput_is_pressed 2020-06-11 08:54:17 +02:00
twinaphex a14d54b3fd (winraw_input) Further optimizations 2020-06-11 08:34:30 +02:00
twinaphex 5d58acd2c0 (Android) Input driver optimizations - fill in device_model one time
inside the init function - mistake previously was putting it erroneously
inside an inner loop
2020-06-11 08:08:21 +02:00
twinaphex 108bbf0bf6 Turn this into static function 2020-06-11 07:12:54 +02:00
twinaphex d893e880ec Revert "(Android) android_input.c - optimize - hose code that always remains"
This reverts commit df4428bd7a.
2020-06-11 07:10:15 +02:00
twinaphex df4428bd7a (Android) android_input.c - optimize - hose code that always remains
the same outside of loops
2020-06-11 06:46:40 +02:00
twinaphex 02132985af Cleanups 2020-06-11 06:34:59 +02:00
twinaphex 9aafd3c723 (winraw) Cleanups - get rid of setting pointer grabbing everywhere -
clean up mouse state grabbing everywhere - would be costly in loops
2020-06-11 06:29:36 +02:00
twinaphex 7ee5ffcd1c Further optimize SlangProcess 2020-06-11 05:51:03 +02:00
twinaphex 703cc7198d (input drivers) cleanup log spam 2020-06-11 05:37:40 +02:00
twinaphex d924c656b7 (winraw_input) cleanups 2020-06-11 05:15:36 +02:00
twinaphex a0e6a9e1d5 (xinput joypad) Function can be made static 2020-06-11 04:53:20 +02:00
twinaphex cfc511cc6b (Dinput joypad) Some cleanups 2020-06-11 04:46:15 +02:00
twinaphex b363ed7d79 (drivers_joypad) get rid of excessive logging 2020-06-11 04:06:33 +02:00
twinaphex a68b942d1d Refactor AI Service code 2020-06-11 03:27:01 +02:00
twinaphex 30bfca0d71 (task database) Optimize extension_to_file_type 2020-06-11 02:53:31 +02:00
twinaphex a2184bcd07 (task database) optimize detect_psp_game 2020-06-11 02:39:07 +02:00
twinaphex d714520c64 (Autodetect) Cleanups 2020-06-11 02:29:32 +02:00
twinaphex 5aa26e7eee Optimize check_menu_driver_compatibility 2020-06-10 23:40:29 +02:00
twinaphex 963c01cf48 (RGUI) Move global state to struct 2020-06-10 23:33:20 +02:00
twinaphex 7c3a1a8bf0 Cleanups 2020-06-10 23:25:03 +02:00
twinaphex cec33cbc49 Disable savestate compression for UWP for now - apparently doesn't work 2020-06-10 22:44:45 +02:00
twinaphex 2b5496a417 Move input_osk.c to retroarch.c 2020-06-10 18:21:53 +02:00
twinaphex 8daa90da23 move osk_ptr global state to rarch_state 2020-06-10 18:07:20 +02:00
twinaphex e0090010f4 Cleanup menu_input_bind_dialog.c 2020-06-10 17:54:19 +02:00
twinaphex bc24092374 (VIDEOCRT SWITCH) move global state to rarch_state 2020-06-10 17:42:08 +02:00
twinaphex e04bce7dd0 Move gfx_thumbnail global state to rarch_state 2020-06-10 17:22:02 +02:00
twinaphex 66451f3ef0 Cleanups 2020-06-10 16:51:21 +02:00
twinaphex 4f3059c608 Cleanups 2020-06-10 16:33:44 +02:00
twinaphex 8eee7b3bb9 (Task database) Cleanups 2020-06-10 16:24:52 +02:00
twinaphex b2f5262a3b crt_first_run and crt_video_restore were both useless 2020-06-10 15:50:29 +02:00
twinaphex 78e0ab6c0e Update 2020-06-10 15:17:15 +02:00
Autechre 02ca1a1f01 Merge pull request #10829 from valadaa48/oga_gfx_ffwd
Add ffwd to non-threaded oga_gfx driver
2020-06-10 15:05:04 +02:00
Autechre 8576169eeb Merge pull request #10831 from jdgleaver/widget-fix
(Widgets) Fix serious heap-use-after-free errors
2020-06-10 15:04:38 +02:00
jdgleaver 9bbc9dd30e (Widgets) Fix serious heap-use-after-free errors 2020-06-10 12:32:50 +01:00
twinaphex c63a65ffa5 (WiiU) Cleanups 2020-06-10 06:30:23 +02:00
twinaphex 1e2b649a21 Cleanups 2020-06-10 05:54:00 +02:00
twinaphex fa6ca2e39c Revert "Create input_joypad_analog_button"
This reverts commit 9e7ca7cbbe.
2020-06-10 05:50:51 +02:00
twinaphex 11cba2e805 Revert "Cleanups and documentation"
This reverts commit ec2a1e79a0.
2020-06-10 05:50:42 +02:00
twinaphex 317648ecd4 Revert "Cleanup"
This reverts commit 2a6317c52f.
2020-06-10 05:50:26 +02:00
twinaphex 2a6317c52f Cleanup 2020-06-10 05:33:35 +02:00
twinaphex ec2a1e79a0 Cleanups and documentation 2020-06-10 05:18:59 +02:00
hizzlekizzle db63e0a60a add hold-select to hardcoded menu gamepad combos (#10827)
* add hold-select to hardcoded menu gamepad combos
2020-06-09 21:54:28 -05:00
twinaphex 9e7ca7cbbe Create input_joypad_analog_button 2020-06-10 04:17:08 +02:00
twinaphex a7a03984f1 (input drivers) Cleanups 2020-06-10 04:00:40 +02:00
valadaa48 3abcb2b922 Add ffwd to non-threaded oga_gfx driver 2020-06-09 20:24:28 -04:00
twinaphex 05e3a1d7e5 Get rid of unnecessary get_time_usec call in menu_input_post_iterate -
just pass current_time value around
2020-06-10 00:53:54 +02:00
twinaphex ea1ca4edcc Get rid of analog D-pad mapping macros 2020-06-10 00:41:13 +02:00
twinaphex 8eb70071f4 Cleanups 2020-06-09 22:21:02 +02:00
twinaphex 4bc39ee1cf Cleanups 2020-06-09 22:13:28 +02:00
twinaphex 8a715fab1c Cleanups 2020-06-09 20:48:54 +02:00
twinaphex 20f2654884 Remove input_menu_keys_pressed - use input_keys_pressed instead
for menu as well
2020-06-09 20:44:20 +02:00
twinaphex c4534509f7 Cleanups - make two functions nearly identical 2020-06-09 20:36:58 +02:00
twinaphex 01547ef768 Make function input_keys_pressed more like input_menu_keys_pressed 2020-06-09 20:32:48 +02:00
twinaphex 42478983a3 Cleanups/dehardcode port 2020-06-09 20:16:47 +02:00
twinaphex c09a3b75ab Further cleanups - aim is to make both of these functions one and the
same
2020-06-09 20:00:24 +02:00
twinaphex 7b879c2a2b input_keys_pressed - pass port parameter to functions 2020-06-09 19:38:15 +02:00
twinaphex 23fb0f3d4d Cleanups 2020-06-09 19:21:25 +02:00
twinaphex b19e83aa6d input_menu_keys_pressed/keys_pressed optimizations - this time
without breaking hotkey enable
2020-06-09 19:15:11 +02:00
twinaphex bb4aa82cb3 Revert "input_keys_pressed/menu_input_keys_pressed - optimizations"
This reverts commit be5985b8e6.
2020-06-09 17:18:31 +02:00
twinaphex be5985b8e6 input_keys_pressed/menu_input_keys_pressed - optimizations 2020-06-09 16:42:17 +02:00
Autechre 55b6107eb0 Update CHANGES.md 2020-06-09 16:12:25 +02:00
Autechre 2ac89ec04c Merge pull request #10826 from jdgleaver/quick-menu-suppress-no-entries
Suppress the display of 'empty' quick menu listings when closing content
2020-06-09 16:11:53 +02:00
twinaphex 11a4db3120 Revert "Reduce button state from 256bit to 128bit - all the bind IDs"
This reverts commit 47456cf94b.
2020-06-09 16:11:26 +02:00
jdgleaver eb425b997b Suppress the display of 'empty' quick menu listings when closing content 2020-06-09 14:09:22 +01:00
Autechre 9098ac9ea2 Update CHANGES.md 2020-06-09 14:46:32 +02:00
twinaphex 1597a6893d Get rid of 'All Users Control Menu' setting - was not properly
implemented - input system is in for a big overhaul in the near
future so this could be addressed in a better way then
2020-06-09 13:55:03 +02:00
Autechre 8e84c51c5c Merge pull request #10824 from jdgleaver/hotkey-delay-menu
Wire up menu entry for 'hotkey delay' option + 'hotkey enable' clarifications
2020-06-09 13:49:23 +02:00
Autechre 756afa48f7 Merge pull request #10825 from jdgleaver/3ds-build-fix
Fix 3DS build
2020-06-09 13:48:36 +02:00
jdgleaver 32a6d97e48 Set SD_FLAG_ADVANCED on 'Hotkey Enable Delay' setting 2020-06-09 11:22:36 +01:00
jdgleaver 1fde6f8aed Fix 3DS build 2020-06-09 10:57:00 +01:00
jdgleaver 47150cab07 Wire up menu entry for 'hotkey delay' option + 'hotkey enable' clarifications 2020-06-09 10:20:44 +01:00
Autechre 26e1b9d66e Update CHANGES.md 2020-06-09 06:40:52 +02:00
Autechre 60bdd1d323 Merge pull request #10821 from Themaister/wsi-rework-semaphores
Vulkan: Refactor WSI handling
2020-06-09 05:56:34 +02:00
twinaphex 84781b7f3a Buildfix for targets that don't define HAVE_NVDA 2020-06-09 03:22:10 +02:00
Themaister f089e1ccf5 Vulkan: Do not emulate mailbox on Android. 2020-06-09 00:24:29 +02:00
Themaister cd4f22c275 Vulkan: Add path which uses WSI acquire semaphores.
Fence wait path has some issues on certain platforms. For now, gate this
on whether the GPU is integrated or not.
2020-06-09 00:24:29 +02:00
Themaister 15df55d011 Vulkan: Refactor swapchain index and frame index.
Do not tie these concepts together, it will not work for upcoming
refactor of swapchain logic.
2020-06-09 00:24:29 +02:00
Themaister 6f68571805 Vulkan: Use VK_LAYER_KHRONOS_validation in VULKAN_DEBUG=1.
LUNARG_standard_validation was deprecated and removed ages ago.
2020-06-09 00:24:28 +02:00
twinaphex 5a690b7ac8 (display widgets) Cleanups 2020-06-09 00:13:34 +02:00
Autechre c9211aff57 Merge pull request #10820 from fjtrujy/newlibWithCDVD
Adding CDFS Support
2020-06-08 23:22:56 +02:00
twinaphex 52050739a1 Cleanups 2020-06-08 23:13:29 +02:00
twinaphex b183abbb0f More string_is_equal optimizations; localize more strings 2020-06-08 22:46:56 +02:00
twinaphex 2ae0583ac5 Optimize action_iterate_type 2020-06-08 22:07:04 +02:00
Rinnegatamante 0644190121 [VITA] Added custom bubbles support. 2020-06-08 21:56:10 +02:00
twinaphex 7841f07e08 Add ifdef 2020-06-08 21:45:31 +02:00
twinaphex 9364deb539 Cut down on string_is_equals for history lists 2020-06-08 21:34:39 +02:00
twinaphex c31bfb4dc8 (task_pl_thumbnail_download) Simplifications 2020-06-08 21:20:07 +02:00
twinaphex 03247eceba More localizations - some string is equal optimizations 2020-06-08 20:52:37 +02:00
twinaphex a88bf59b27 Update log messages 2020-06-08 20:31:08 +02:00
twinaphex 47456cf94b Reduce button state from 256bit to 128bit - all the bind IDs
combined right now are still under 80, so 256 bits is too
overboard for now
2020-06-08 20:13:00 +02:00
twinaphex f64da5cb1e Update more log messages 2020-06-08 19:11:43 +02:00
twinaphex aed8b7943d Cleanup log messages 2020-06-08 18:58:18 +02:00
twinaphex b97462c8a4 Builtin cores like ffmpeg and imageviewer would previously try
to erroneously load a dynamic core named 'builtin' - this would
fail and would just be a wasteful operation - this now skips
dylib loading in libretro_get_system_info for builtin cores
2020-06-08 18:40:45 +02:00
twinaphex 6fce0435a1 Update more logs 2020-06-08 18:04:29 +02:00
twinaphex be886bf2aa Update log message 2020-06-08 18:01:15 +02:00
twinaphex c2bc40bbc3 Update SRAM log messages 2020-06-08 17:57:40 +02:00
twinaphex 781835d53c More logging messages updates 2020-06-08 17:49:55 +02:00
twinaphex 12b22b7904 (Windows) Fix core path entries in image/video/music history playlists 2020-06-08 17:33:21 +02:00
twinaphex fc491e9ea4 Add more environ logs 2020-06-08 17:32:36 +02:00
twinaphex 9ff44cc682 Namespace some logs 2020-06-08 17:13:23 +02:00
twinaphex 38f9a1b1f0 (OSK) move some global state to rarch_state 2020-06-08 16:31:10 +02:00
twinaphex 5fc12c7761 Dehardcode strings and other cleanups 2020-06-08 16:02:06 +02:00
twinaphex b1425bcd91 Localize NA string 2020-06-08 15:50:43 +02:00
twinaphex 66602f4ff8 Refactor left/right callbacks for tabs - just look for '_tab'
at the end of a string
2020-06-08 15:44:36 +02:00
twinaphex 091b1c88c2 Optimize database_cursor_iterate 2020-06-08 15:27:08 +02:00
twinaphex fa5d8b6f86 Fix builds that don't have HAVE_GX_WIDGETS defined 2020-06-08 14:22:42 +02:00
Autechre be9eefeb22 Merge pull request #10816 from jdgleaver/screenshot-fix
Fix crash when taking screenshots with widgets enabled
2020-06-08 13:56:01 +02:00
Autechre 774f63d9db Merge pull request #10815 from jdgleaver/builtin-core-fix
Fix launching of playlist content assigned to 'built-in' cores
2020-06-08 13:46:32 +02:00
twinaphex ac8985a38f Buildfix for OSX PPC 2020-06-08 13:45:32 +02:00
jdgleaver 0c7f0df41a Fix crash when taking screenshots with widgets enabled 2020-06-08 12:41:22 +01:00
Twinaphex 80dd4548e1 Remove unused variables 2020-06-08 13:39:18 +02:00
jdgleaver ba6e53c2e4 Fix launching of playlist content assigned to 'built-in' cores 2020-06-08 12:00:40 +01:00
twinaphex e7082d3e5b Now that NVDA should dynamically lookup the DLL, linking against
nvdaControllerClient64.dll should no longer be necessary
2020-06-08 08:03:05 +02:00
Autechre 9071acf2ce Merge pull request #10812 from libretro/dynamic_nvda_load
Added nvda dynamic loading.
2020-06-08 08:02:27 +02:00
twinaphex ce95dcaf79 (task_pl_thumbnail_download) Some string_is__equal optimizations 2020-06-08 07:31:58 +02:00
twinaphex 5db62e73da (Ozone/XMB) Optimize some string_is_equal comparisons 2020-06-08 07:19:19 +02:00
twinaphex 58b22b0a6e Optimize some long iterations of string_is_equal 2020-06-08 07:00:22 +02:00
twinaphex cfbaa0c89d (X11) Cut down on video_driver_has_focus calls 2020-06-08 06:16:01 +02:00
twinaphex 2a21a3f893 Cleanups 2020-06-08 06:00:53 +02:00
twinaphex 8ba8772edb Cleanups 2020-06-08 05:57:47 +02:00
twinaphex a87d15e361 Cleanups 2020-06-08 05:52:25 +02:00
twinaphex 2660182d52 Get rid of gfx_widgets_ready call inside
gfx_widgets_frame
2020-06-08 05:45:15 +02:00
twinaphex 5c2a2ca485 Move widgets state over to retroarch global state 2020-06-08 05:09:42 +02:00
Barry Rowe 35f1a4af8c Added nvda dynamic loading. 2020-06-07 19:46:22 -07:00
twinaphex 57c3b1b041 Move widgets_persisting to retroarch.c 2020-06-08 04:36:40 +02:00
twinaphex 73b5bf438b Move widgets_active to retroarch.c 2020-06-08 04:32:54 +02:00
twinaphex d9565b6619 Cut down on unnecessary widgets_active early returns 2020-06-08 04:17:33 +02:00
twinaphex d6229ed70d gfx_widgets_deinit - turn return value into bool 2020-06-08 04:12:15 +02:00
twinaphex 9707f1f622 Get rid of gfx_ctx_animation_tag 2020-06-08 04:09:12 +02:00
twinaphex eb20c10713 Start getting rid of gfx_ctx_animation_tag - it's just a uintptr_t
typedef
2020-06-08 03:56:35 +02:00
twinaphex 573eddb5a4 (Metal) Always run this regardless 2020-06-08 03:28:32 +02:00
twinaphex c1aeafbe3d Fix --disable-menu 2020-06-08 03:24:47 +02:00
twinaphex 7f54f410f4 Remove pointer grabbing from get_msg_queue function 2020-06-08 03:11:59 +02:00
twinaphex 69bdf581f4 Change this back 2020-06-08 03:10:31 +02:00
Autechre f6d361ad08 Merge pull request #10811 from Jamiras/rcheevos_hash
(cheevos) use rcheevos for identifying games
2020-06-08 03:08:50 +02:00
twinaphex 876419294d (gfx widgets) Pass more state around 2020-06-08 02:54:01 +02:00
twinaphex 54372f2524 Pass state around to widget interface 2020-06-08 02:31:36 +02:00
twinaphex 77f5433f22 Create global wrapper function for state 2020-06-08 01:59:25 +02:00
twinaphex 9aa736b522 Move forward declarations up 2020-06-08 01:56:45 +02:00
twinaphex a2ea198fdd (gfx widgets) Pass pointer around more 2020-06-08 01:55:04 +02:00
twinaphex 3f163eaa8d Bring all graphics widget global state together under one struct 2020-06-08 01:41:21 +02:00
Jamiras 7d488aa200 use rcheevos for identifying games 2020-06-07 17:13:50 -06:00
twinaphex dc217b313c Buildfix 2020-06-07 23:45:48 +02:00
twinaphex ddf45fdad2 (gfx widgets) Cleanups 2020-06-07 23:43:59 +02:00
twinaphex 4524ff7cd7 (Gfx widgets) Cleanups 2020-06-07 23:39:11 +02:00
twinaphex 797d3f871c (Gfx widgets) get rid of this early return - already done outside 2020-06-07 23:26:37 +02:00
twinaphex 6b5e9a3224 (gfx widgets) Cleanups 2020-06-07 23:17:37 +02:00
Twinaphex 03c1283fcb Remove unused variable 2020-06-07 23:04:20 +02:00
twinaphex ce02161255 Cleanups 2020-06-07 23:01:52 +02:00
twinaphex 5e2649a6f5 Move gfx_display global state to rarch state 2020-06-07 22:58:06 +02:00
twinaphex 155a490f4e Update more US strings 2020-06-07 22:25:29 +02:00
twinaphex cb90fdb802 (Cheevos) Cleanups 2020-06-07 21:48:36 +02:00
twinaphex 55a8404d01 (Cheevos) Cleanups 2020-06-07 21:34:43 +02:00
twinaphex 2baa3be2da Cleanups 2020-06-07 21:18:07 +02:00
twinaphex d15942f6c8 Cleanups 2020-06-07 20:55:27 +02:00
Autechre 3b93c7c36d Merge pull request #10810 from shantigilbert/master
Fix undeclared (VIDEO_RGA_SCALING) label
2020-06-07 20:29:54 +02:00
twinaphex 81b2cc0d14 Get rid of menu_entry_is_password 2020-06-07 20:27:17 +02:00
shantigilbert 137c468ca4 Fix undeclared label
This commit, https://github.com/libretro/RetroArch/commit/2c635e9e1b73a697d22c703dad05f08c20595c11 is missing this declaration.
2020-06-07 13:18:26 -05:00
twinaphex 05a344d831 Cleanups 2020-06-07 20:06:56 +02:00
twinaphex 058adf247c Further optimizations to menu_entry_get - get rid of some unnecessary
small wrapper functions
2020-06-07 20:02:12 +02:00
Francisco Javier Trujillo Mata d896d59e8e Use -O3 for compilatino 2020-06-07 19:43:18 +02:00
Francisco Javier Trujillo Mata df4e715738 Clean Makefile dependencies 2020-06-07 19:43:18 +02:00
Francisco Javier Trujillo Mata 06606407f4 Add CDVDFS support back 2020-06-07 19:43:18 +02:00
twinaphex 45896eb26e (Ozone) Cleanups - move some static variables to only function
that needed them - and some other cleanups in loops
2020-06-07 18:17:53 +02:00
twinaphex ad29b70d9e (RGUI) Cleanups 2020-06-07 18:09:31 +02:00
twinaphex 26133d8336 (MaterialUI) Don't iteratively call menu_entries_get_size 2020-06-07 17:58:55 +02:00
twinaphex 4feed0031e (XMB) Optimize xmb_selection_pointer_changed 2020-06-07 17:53:23 +02:00
twinaphex 2460603ea5 Further optimization to ozone_draw_entries 2020-06-07 17:46:23 +02:00
twinaphex 41ffca2b6f (CTR) Style nits 2020-06-07 17:28:53 +02:00
twinaphex 98b847cad9 Fix some memory leaks and fallthrough errors picked up on by
Clang static code analyzer
2020-06-07 16:15:35 +02:00
Twinaphex df8df6c18b Fix EXC_BAD_ACCESS crash on RetroArch exit on OSX 2020-06-07 05:53:46 +02:00
twinaphex f2ae16e125 Pass global pointer state around 2020-06-07 05:40:44 +02:00
twinaphex 4a9f136aa9 Make menu_shader.c no longer dependent on menu driver state 2020-06-07 05:06:20 +02:00
twinaphex 0d12472e74 Cleanups 2020-06-07 04:32:36 +02:00
twinaphex 8175f3c98e Cleanup menu_list_flush_stack and menu_list_pop_stack 2020-06-07 04:19:10 +02:00
twinaphex fdf9f82593 (XMB) Delay menu_entry_get processing until necessary 2020-06-07 03:53:53 +02:00
twinaphex 08f1fb5b38 (Ozone) Cleanups 2020-06-07 03:45:57 +02:00
twinaphex 0010bffb63 action_select_default optimization 2020-06-07 03:33:24 +02:00
twinaphex b2124a1f89 Further menu_entry_get optimizations 2020-06-07 03:27:30 +02:00
twinaphex c97fbbb155 (XMB) Make similar optimizations for XMB 2020-06-07 03:13:02 +02:00
Autechre eddcde84b6 Merge pull request #10802 from heuripedes/coz
Ozone improvement
2020-06-07 03:01:47 +02:00
twinaphex be76958070 Unneeded gdi_has_menu_frame 2020-06-07 02:56:56 +02:00
twinaphex b42897d0b6 (GDI) Weird code - clean this up 2020-06-07 02:55:51 +02:00
twinaphex 7b5ea63329 remove now obsolete file 2020-06-07 02:42:42 +02:00
twinaphex 4990bebd8a Turn macro names into all-caps 2020-06-07 02:41:48 +02:00
Autechre 50e522c9ce Merge pull request #10801 from snackycakes/hotkey_block_delay
Added a hotkey delay option to fix issue #9080
2020-06-07 01:25:28 +02:00
twinaphex 37d926fc0d Updates 2020-06-07 01:22:34 +02:00
twinaphex de09440d1c Change macros to all caps 2020-06-07 01:19:17 +02:00
Higor Eurípedes ec197c441e ozone: Move some menu_entry_get*() calls to a better place
menu_entry_get*() was getting called even for entries that wouldn't be displayed.
2020-06-06 20:08:28 -03:00
Higor Eurípedes 1f45018ee8 shader_glsl.c: Move buffer null pointer check in gl_glsl_set_coords()
`buffer` is initialized to a statically allocated variable and can only be NULL
when the allocation of a bigger buffer fails. When only the core frame is being
displayed, the buffer never points to the heap thanks to the small buffer
optimization.
2020-06-06 20:08:28 -03:00
twinaphex 9dca8de90f (configuration.c) Turn enums into const 2020-06-07 00:33:48 +02:00
twinaphex 9059b4962e Cleanups 2020-06-07 00:05:41 +02:00
Robert Hammond af64bbb627 Changed default value for config option input_hotkey_block_delay to 5. 2020-06-06 18:04:24 -04:00
twinaphex 361b252de2 Fix C89_BUILD and --disable-menu 2020-06-06 23:32:09 +02:00
twinaphex aae94efcfb Cleanup 2020-06-06 22:46:05 +02:00
twinaphex 7413d05705 Cleanups 2020-06-06 22:42:43 +02:00
twinaphex 4bbc226335 Move netplay_frontend.c to retroarch.c - move global state to
retroarch global state
2020-06-06 21:57:22 +02:00
Robert Hammond bd17e13ef7 Added a hotkey delay option to allow hotkey input to work properly when it is assigned to another action. Original pull request from 9080 by paradadf was taken and modified to be configuration based. 2020-06-06 15:39:51 -04:00
twinaphex 1f2403392e Cleanup 2020-06-06 20:59:43 +02:00
twinaphex 543e4bca16 Merge Discord code into retroarch.c 2020-06-06 20:50:25 +02:00
twinaphex 9219eb5aaf Merge input_mapper.c into retroarch.c 2020-06-06 20:27:38 +02:00
twinaphex cd42d02020 Cleanups 2020-06-06 19:36:46 +02:00
twinaphex d98a0e2dce Refactor away menu_display_libretro_running 2020-06-06 19:29:54 +02:00
twinaphex 255cd3a937 MENU_ENTRIES_CTL_LIST_GET no longer used by menu drivers 2020-06-06 19:09:03 +02:00
twinaphex 4f568fa68f Turn macro names into uppercase 2020-06-06 19:02:42 +02:00
twinaphex 82c009d405 Pass state around to menu_shader_manager_free 2020-06-06 18:44:53 +02:00
twinaphex 35fce65656 Move menu_driver_shader into menu_handle state 2020-06-06 18:41:21 +02:00
twinaphex 01da7b95e2 Revert "Move menu_displaylist global state to menu_handle_t"
This reverts commit c79966bd62.
2020-06-06 18:30:08 +02:00
twinaphex c79966bd62 Move menu_displaylist global state to menu_handle_t 2020-06-06 18:20:06 +02:00
twinaphex 2fb53ba687 Cleanups 2020-06-06 18:02:07 +02:00
Twinaphex 473f94ed58 Remove unused variable 2020-06-06 17:54:06 +02:00
twinaphex 7dbe75e89b CXX_BUILD buildfix 2020-06-06 17:41:51 +02:00
twinaphex 9448896586 Change more labels 2020-06-06 17:26:51 +02:00
twinaphex 68d67d8e4e Backport suggested US translation improvements 2020-06-06 17:24:41 +02:00
twinaphex 351fe36a6d Cleanups 2020-06-06 15:37:28 +02:00
Autechre 2aeb95cbd4 Merge pull request #10799 from jdgleaver/core-info-search
Core info search optimisations + improved core selection logic + clean-ups
2020-06-06 15:35:42 +02:00
twinaphex cb78470471 Cleanups 2020-06-06 15:15:51 +02:00
twinaphex 78b030d8b8 Cut down on code duplication 2020-06-06 15:06:45 +02:00
jdgleaver 445921ac5d Core info search optimisations + improved core selection logic + clean-ups 2020-06-06 13:59:28 +01:00
twinaphex c1b3ef6661 Cleanups 2020-06-06 14:54:13 +02:00
twinaphex 742c49cee7 Revert "Cleanups"
This reverts commit 802d501c39.
2020-06-06 14:48:42 +02:00
twinaphex 7063f3df13 Cleanups 2020-06-06 14:17:58 +02:00
twinaphex 802d501c39 Cleanups 2020-06-06 14:01:09 +02:00
twinaphex b8374826ac Merge menu_cbs into retroarch.c 2020-06-06 03:58:03 +02:00
twinaphex 412d158d2e Start adding mechanism to not list 'null' drivers in Driver screen 2020-06-06 02:48:49 +02:00
twinaphex 73a5ad91a1 Get rid of find_handle functions 2020-06-06 01:51:53 +02:00
twinaphex 1d63f67877 Move more to retroarch global state 2020-06-06 01:28:52 +02:00
twinaphex f0e80e365a Cleanups 2020-06-05 23:59:06 +02:00
twinaphex d3887545ee Cleanups 2020-06-05 23:55:41 +02:00
twinaphex ab53d57079 Cleanups 2020-06-05 23:25:16 +02:00
twinaphex bb73fc6a89 Silence warnings 2020-06-05 22:39:44 +02:00
twinaphex 6de048371f Cleanups 2020-06-05 22:31:30 +02:00
twinaphex 7501b010f4 Cleanups 2020-06-05 22:00:10 +02:00
twinaphex c3943836dd (Menu) Cleanups 2020-06-05 20:58:09 +02:00
twinaphex e587f1a60e (Menu) Cleanups 2020-06-05 20:32:13 +02:00
twinaphex e732edbd9a Cleanups 2020-06-05 20:21:02 +02:00
twinaphex f8fc3fbbf8 Move static global stuff into rarch global state 2020-06-05 20:11:13 +02:00
twinaphex 5b3253c7aa Move menu_driver_state into p_rarch state 2020-06-05 19:42:34 +02:00
twinaphex 09f85d130d Merge menu_driver.c into retroarch.c - yes, it's even bigger I know,
this is so that we can consolidate global state and then start splitting
things up across several files
2020-06-05 19:29:14 +02:00
twinaphex bcf34b8f3b Start passing around retroarch pointer 2020-06-05 19:22:33 +02:00
twinaphex b8f5f22a87 Cleanups 2020-06-05 18:17:31 +02:00
twinaphex 110339c1cc (libretro-db) Add TODO/FIXME notes 2020-06-05 18:13:25 +02:00
twinaphex b8c41812bf Move use_gl variable outside of the while loop 2020-06-05 16:53:28 +02:00
twinaphex 52e1c38cf1 Fix C89 variable declaration issue 2020-06-05 16:27:56 +02:00
Autechre c8b64bef1d Update CHANGES.md 2020-06-05 12:52:07 +02:00
Autechre 2cec960ada Merge pull request #10774 from Jamiras/cheevos_report_err
report API errors when unlocking achievements or submitting leaderboards
2020-06-05 12:50:12 +02:00
twinaphex b42c1a2eda Silence some Emscripten warnings 2020-06-04 23:44:54 +02:00
twinaphex c74d145167 Hose this out of HAVE_NETWORKING ifdef 2020-06-04 23:41:13 +02:00
twinaphex fce29caff7 Add time/rtime.c to Salamander builds 2020-06-04 23:37:35 +02:00
Autechre 58b7fa58e3 Merge pull request #10791 from guoyunhe/persian-fallback-font
Use fallback font for Persian
2020-06-04 22:41:54 +02:00
Guo Yunhe 40eb37ba46 Use fallback font for Persian 2020-06-04 23:36:04 +03:00
Autechre b88377d277 Merge pull request #10787 from guoyunhe/new-languages
Add Persian, Hebrew and Asturian language options
2020-06-04 16:31:12 +02:00
Autechre 30a4610b12 Merge pull request #10788 from jdgleaver/core-backup
Add option to backup/restore installed cores
2020-06-04 16:30:55 +02:00
twinaphex 88f7515d1d Cleanups, comments, style nits 2020-06-04 14:41:28 +02:00
jdgleaver f78c0a8cc9 Fix licensing of core_backup.h/.c 2020-06-04 13:22:46 +01:00
twinaphex 9fda2bdebd Add TODO/FIXME comments 2020-06-04 14:09:45 +02:00
Guo Yunhe 0701b99039 Add Persian, Hebrew and Asturian language options 2020-06-04 14:54:28 +03:00
jdgleaver 0a33e562f4 Add option to backup/restore installed cores 2020-06-04 12:20:58 +01:00
twinaphex a3cce404b6 Turn this into a static global variable 2020-06-04 12:23:59 +02:00
Autechre 7965549204 Merge pull request #10358 from guoyunhe/master
Fetch translation from Crowdin
2020-06-04 11:53:33 +02:00
Autechre 0bf6c9b239 Merge pull request #10778 from guoyunhe/fix-line-breaks
Fix line breaks for Crowdin
2020-06-04 11:53:13 +02:00
Guo Yunhe 171dd52984 Synchronize translations 2020-06-04 12:40:25 +03:00
Francisco José García García 27a0e6a1a4 [VITA] Change error name to vgl_error 2020-06-03 20:48:16 +02:00
Francisco José García García 13b5450ff9 [GL1] Initial changes for hw context without FBO 2020-06-03 20:48:16 +02:00
Autechre 9e908b1255 Merge pull request #10781 from tunip3/master
improve performance by enabling game mode
2020-06-03 18:08:39 +02:00
tunip3 fed9490471 improve performance by enabling game mode
by using
<rescap:Capability Name="expandedResources" />
it should hopefully enable game mode and improve performance, especially on xbox one
https://docs.microsoft.com/en-us/windows/win32/api/_gamemode/
2020-06-03 16:57:36 +01:00
Guo Yunhe 898bed26f0 Fix line breaks for Crowdin 2020-06-03 16:49:43 +03:00
Autechre cfcb107caf Merge pull request #10771 from guoyunhe/key-format
Change keys to upper case
2020-06-03 14:05:41 +02:00
Autechre 26a5fdcba4 Merge pull request #10772 from guoyunhe/fix-ctx-scale-msg
Avoid duplicate keys
2020-06-03 14:05:16 +02:00
Jamiras 6e5b786329 report API errors when unlocking achievements or submitting leaderboards 2020-06-02 22:03:35 -06:00
Francisco José García García 4439e2fcb5 Squashed 'deps/vitaGL/' changes from fb87308d15..c816fec50f
c816fec50f Added stride arg to vglBindPackedAttribLocation.
07f4380e60 Added glUniform1i implementation.

git-subtree-dir: deps/vitaGL
git-subtree-split: c816fec50f823f1a7ee082042d5159dbdf16e46c
2020-06-02 18:31:03 +02:00
Francisco José García García ec5dcce74c [VITA] Fix name clash 2020-06-02 18:31:03 +02:00
Guo Yunhe 2c635e9e1b Avoid duplicate keys 2020-06-02 11:15:12 +03:00
Guo Yunhe e9916df9d0 Change keys to upper case 2020-06-02 10:28:00 +03:00
Autechre ff65c836c2 Update CHANGES.md 2020-06-01 19:27:23 +02:00
twinaphex 6083450d4e Ensure save states are correctly flushed to disk when quitting RetroArch (fixes broken save states when exiting RetroArch - without first closing content - with 'Auto Save State' enabled) 2020-06-01 17:39:52 +02:00
Francisco José García García ba0d5705fc [VITA] Fix vitagl clash with function names 2020-06-01 14:16:53 +02:00
twinaphex 5644bd43b1 Pass p_rarch pointer around 2020-06-01 12:15:18 +02:00
twinaphex 4163a84d62 Pass p_rarch pointer around 2020-06-01 12:00:30 +02:00
Rinnegatamante 14a6c42e0d [VITA] Using a global to prevent erroneous vitaGL re-initializations. 2020-06-01 11:12:16 +02:00
twinaphex 072a93d00c Cleanups 2020-06-01 03:10:29 +02:00
twinaphex b8faf43040 Buildfix 2020-06-01 03:04:45 +02:00
twinaphex 433547caa0 Cleanups 2020-06-01 03:02:07 +02:00
twinaphex a9495b8846 Buildfix 2020-06-01 03:01:53 +02:00
twinaphex 293e45f551 Cleanups 2020-05-31 23:38:18 +02:00
twinaphex 0427f08511 Cleanup 2020-05-31 23:06:03 +02:00
twinaphex 76ee0ab97e Cleanups 2020-05-31 22:24:06 +02:00
twinaphex 24d4547605 Cleanups 2020-05-31 22:16:12 +02:00
twinaphex fb7589e253 Move g_extern and retro_ctx and current_core into RetroArch
global state
2020-05-31 21:59:35 +02:00
twinaphex 99a971b105 OSX Buildfixes 2020-05-31 19:55:01 +02:00
twinaphex c2be385fe4 Move more globals to state struct 2020-05-31 19:37:26 +02:00
twinaphex 1392afea46 Move more to global state 2020-05-31 19:31:32 +02:00
Francisco José García García 5fe273195b [VITA] Disable sqrtfv 2020-05-31 18:04:10 +02:00
Francisco José García García a10abdd929 Merge pull request #10750 from libretro/vitagl
VitaGL and Math-neon update
2020-05-31 17:26:43 +02:00
Francisco José García García ae9bdba06f Merge commit 'af97efdc17a1215a63a9ee639cf9361876ded50d' as 'deps/math-neon' 2020-05-31 17:24:53 +02:00
Francisco José García García af97efdc17 Squashed 'deps/math-neon/' content from commit bf34c68a8e
git-subtree-dir: deps/math-neon
git-subtree-split: bf34c68a8e141f7e6f37040da9311b07f1bbe529
2020-05-31 17:24:53 +02:00
Francisco José García García b2f61389ff [VITA] Remove math-neon 2020-05-31 17:24:11 +02:00
Francisco José García García e16ae7a641 Merge commit '56797b8841ab5a9a9d7a9ab82383567300361252' 2020-05-31 17:18:53 +02:00
Francisco José García García 56797b8841 Squashed 'deps/vitaGL/' changes from 9a6e4b3397..fb87308d15
fb87308d15 Added vglBindPackedAttribLocation.
7e933f6051 Added NO_DEBUG compile option.
28e8516718 Faster textures storing when format is the same as internal format.

git-subtree-dir: deps/vitaGL
git-subtree-split: fb87308d15a387d2549fb45d860b3d87ede8a0ca
2020-05-31 17:18:53 +02:00
Francisco José García García ec336442bd Merge pull request #10749 from libretro/vitagl
VitaGL fixes
2020-05-31 17:14:23 +02:00
Francisco José García García f976078ef2 [VITA] GL fixes 2020-05-31 17:10:26 +02:00
twinaphex dd8ba82513 Move more variables to global state 2020-05-31 16:41:03 +02:00
twinaphex c8c54b61ef Move static global variables to struct 2020-05-31 11:07:38 +02:00
twinaphex 2016218fc7 Cleanups 2020-05-31 10:27:29 +02:00
twinaphex 994dfa714b (retroarch.c) Reorganize global variables 2020-05-31 09:37:29 +02:00
twinaphex b695ef4591 Move more variables to RetroArch global state 2020-05-31 07:12:33 +02:00
twinaphex 78d1efac12 Move more static variables to RetroArch global state 2020-05-31 05:57:26 +02:00
twinaphex fd84dc5e24 Only log messages for input descriptors/set_controller_info and other
libretro callbacks if core logging level is set to DEBUG
2020-05-31 05:41:07 +02:00
twinaphex 3ad6c9c84b Merge branch 'master' of https://github.com/libretro/RetroArch 2020-05-31 05:37:32 +02:00
twinaphex 0135a33a7c Move more variables to RetroArch global struct 2020-05-30 17:16:45 +02:00
Autechre 0fedfa220f Merge pull request #10734 from jdgleaver/cheevos-m3u
(Cheevos) Use 'm3u_file.h' library when parsing M3U files
2020-05-30 14:51:08 +02:00
twinaphex 8ae3fe1e80 Cleanups 2020-05-30 14:45:12 +02:00
twinaphex 3b9f131930 Move more RetroArch global state to struct 2020-05-30 14:26:10 +02:00
jdgleaver eb429f9211 (Cheevos) When parsing M3U files, only capture the first entry 2020-05-30 12:16:52 +01:00
Autechre c1fc796bf7 Update CHANGES.md 2020-05-30 04:51:52 +02:00
Autechre 4d406c95d3 Merge pull request #10735 from niacat/sdl-gl-glsl
sdl_gl_ctx: advertise GLSL support
2020-05-30 01:57:53 +02:00
nia ef0038de2a sdl_gl_ctx: advertise GLSL support 2020-05-29 18:03:25 +01:00
jdgleaver 21ad64ab77 (Cheevos) Use 'm3u_file.h' library when parsing M3U files 2020-05-29 17:44:31 +01:00
twinaphex 13be887d2d Solve this a different way, update .travis.yml, DISABLE_THREADS
target will also now disable glslang
2020-05-29 15:14:46 +02:00
twinaphex 358ffbd3b9 This is wrong 2020-05-29 13:52:29 +02:00
twinaphex 2d659c3484 (Glslang) Don't build it when --disable-networking is set 2020-05-29 13:45:40 +02:00
twinaphex 00167caf54 Use localized strings 2020-05-29 12:54:09 +02:00
twinaphex 941c3b9678 Cleanups 2020-05-29 12:46:18 +02:00
twinaphex f2ee7c8f0b Localize message 2020-05-29 11:57:03 +02:00
twinaphex 479a8a6e64 (PS2) Fix warning incompatible pointer type 2020-05-29 11:22:53 +02:00
twinaphex 7b5d338bed (Travis) Add --disable-threads check 2020-05-29 11:20:46 +02:00
twinaphex 9f9710beb6 Fix --disable-threads 2020-05-29 11:16:38 +02:00
twinaphex 11f63f379b Localized strings 2020-05-29 10:59:14 +02:00
twinaphex 40a4b395d7 Localize string 2020-05-29 10:50:08 +02:00
twinaphex 8ddacead9f Cleanups 2020-05-29 10:37:01 +02:00
twinaphex 93ae674624 Cleanups 2020-05-29 10:33:07 +02:00
twinaphex 6cc47f8ee0 task_pl_thumbnail_download - replace many subsequent strlcat calls
with one snprintf
2020-05-29 10:30:56 +02:00
twinaphex ec35ce7fdc Add TODO/FIXME notes 2020-05-29 10:23:48 +02:00
twinaphex 06f5f40cb3 Cleanups 2020-05-29 10:09:30 +02:00
twinaphex 56619d7276 Add more TODO/FIXME notes 2020-05-29 06:31:15 +02:00
twinaphex 3ae7e9f8df Update TODO/FIXMEs 2020-05-29 06:20:16 +02:00
twinaphex a5ca6c24de Add more TODO/FIXMEs for globals 2020-05-29 06:17:39 +02:00
twinaphex a50fd86f3e Add global state warnings 2020-05-29 06:11:07 +02:00
Autechre 8cf3a48106 Update CHANGES.md 2020-05-29 05:56:52 +02:00
twinaphex da3548e680 Update MENU_ENUM_SUBLABEL_DOWNLOAD_CORE 2020-05-29 05:55:18 +02:00
twinaphex 810f837596 Update 2020-05-29 05:52:17 +02:00
twinaphex 22f2cf1e56 Get rid of dir_get and other useless wrapper functions 2020-05-29 05:36:48 +02:00
twinaphex 3af84d73e9 Move menu_content_environment_get to retroarch.c 2020-05-29 05:28:29 +02:00
twinaphex 8b796d3b47 Add TODO/FIXME notes for globals 2020-05-29 05:27:13 +02:00
twinaphex ea0d3b5fd8 Remove obsolete function rarch_timer_begin_us 2020-05-29 05:21:37 +02:00
twinaphex 6b781d5a9b Move global performance counter state into retroarch.c 2020-05-29 05:12:09 +02:00
twinaphex 009d979b6c Move more variables to retroarch global state 2020-05-29 04:59:29 +02:00
Autechre eafb2b060d Merge pull request #10727 from WeedyWeedSmoker/International-language-names-update
International: Fix incorrect language names
2020-05-29 03:36:55 +02:00
twinaphex aa753eb492 Localize more strings 2020-05-29 02:52:56 +02:00
Twinaphex b697ff8acd Remove unused variables 2020-05-28 23:26:17 +02:00
Autechre 7759c83b13 Update CHANGES.md 2020-05-28 23:22:33 +02:00
Autechre 4b4c1f130c Merge pull request #10723 from jdgleaver/unix-paths
(Linux) Set default saves/save states/system paths
2020-05-28 23:21:23 +02:00
Autechre b9ada7bb28 Merge pull request #10726 from jdgleaver/core-updater-2
More core updater improvements
2020-05-28 23:21:09 +02:00
Autechre e2f351ed20 Update .travis.yml 2020-05-28 23:20:48 +02:00
Autechre eab924f428 Update .travis.yml 2020-05-28 23:20:15 +02:00
twinaphex 2293abd424 Fix DISABLE_NETWORKING 2020-05-28 23:19:34 +02:00
twinaphex aa2e9b9a00 Buildfixes 2020-05-28 23:15:28 +02:00
Weedy Weed Smoker 9997d2d7ab International: Fix incorrect language names
This commit aims to fix Arabic and Chinese characters not appearing correctly, as well as making clear a restart is required for some languages to display properly…
2020-05-29 02:47:41 +07:00
jdgleaver 044bd03a13 More core updater improvements 2020-05-28 17:48:18 +01:00
jdgleaver e44242db93 (Linux) Set default saves/save states/system paths 2020-05-28 12:09:46 +01:00
Autechre dd65d901ee Merge pull request #10719 from RobLoach/stdstring
libretro-db: Fix stdstring undefined in c_converter
2020-05-28 08:33:36 +02:00
Rob Loach 16aac7bfac libretro-db: Fix stdstring undefined in c_converter 2020-05-27 18:34:47 -04:00
Autechre c2b8b3f1e1 Update CHANGES.md 2020-05-27 20:14:38 +02:00
Autechre 9552f87157 Update CHANGES.md 2020-05-27 20:11:31 +02:00
Autechre 2b10350edc Merge pull request #10716 from jdgleaver/core-updater-improvements
Core updater improvements
2020-05-27 18:31:18 +02:00
jdgleaver 9f4a9e9cd6 Core updater improvements 2020-05-27 17:02:43 +01:00
twinaphex 02bc3ee1e8 Buildfixes/cleanups 2020-05-26 21:34:05 +02:00
Autechre a62cac03e6 Merge pull request #10679 from jdgleaver/retro-message-ext
Add API extension to provide cores with finer grained control over environment callback messages
2020-05-26 17:39:49 +02:00
Twinaphex 63f5723b27 Silence warnings 2020-05-26 17:38:52 +02:00
Autechre 434f046244 Merge pull request #10714 from jdgleaver/glui-divider-fix
(GLUI) Fix rendering of last on-screen entry divider in thumbnail views
2020-05-26 17:05:07 +02:00
jdgleaver 63c7deb583 (GLUI) Fix rendering of last on-screen entry divider in thumbnail views 2020-05-26 13:03:09 +01:00
jdgleaver a1210d63cc Extended core message interface - add API support for 'progress' messages 2020-05-26 11:42:46 +01:00
jdgleaver 23916f88c7 Extended core message interface - add concept of message 'type' 2020-05-26 10:03:25 +01:00
jdgleaver fc8b76708a Add API extension to provide cores with finer grained control over environment callback messages 2020-05-26 10:03:25 +01:00
Twinaphex e179a8e568 Cleanups 2020-05-26 08:53:29 +02:00
twinaphex fec69828a9 Cleanup 2020-05-26 08:49:59 +02:00
twinaphex a1ed747a7f Cleanups 2020-05-26 08:42:10 +02:00
twinaphex 2386ec8f0c Move more variables to rarch global struct 2020-05-26 08:34:43 +02:00
twinaphex 7cfbe73288 Move more variables to rarch global state struct 2020-05-26 08:15:35 +02:00
twinaphex c637686a76 Move more variables to retroarch global state 2020-05-26 03:18:34 +02:00
twinaphex fda235518a Cleanup command_event_disable_overrides 2020-05-26 02:11:59 +02:00
twinaphex 1c45a070d1 Avoid namespace collision 2020-05-26 02:03:34 +02:00
twinaphex 922d5a00e1 Cleanups and add FIXME/TODO note 2020-05-26 02:02:20 +02:00
twinaphex 24ca499570 Cleanups 2020-05-26 01:14:26 +02:00
twinaphex b70451d550 Start creating retroarch main state global struct 2020-05-26 00:01:59 +02:00
twinaphex 602d3d285c Revert "(glcore) switch to glcore video driver when requested"
This reverts commit 7a3ddcd77d.
2020-05-25 21:31:23 +02:00
Autechre bcefb124f3 Merge pull request #10709 from libretro/revert-10703-revert-10702-revert-10685-patch-6
Revert "Revert "Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior"""
2020-05-25 21:27:13 +02:00
Autechre 3db672a60d Revert "Revert "Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior""" 2020-05-25 21:26:11 +02:00
Autechre d6fca804b4 Update CHANGES.md 2020-05-25 19:20:17 +02:00
Autechre 1fd777106d Merge pull request #10707 from jdgleaver/date-separator
Enable configuration of date seperator in clock and runtime 'last played' displays
2020-05-25 18:22:01 +02:00
Autechre d3519a2b82 Merge pull request #10706 from jdgleaver/ozone-sort-after-truncate
(Ozone) Add option to sort playlists after name truncation
2020-05-25 17:07:36 +02:00
jdgleaver 18912ac23d Enable configuration of date seperator in clock and runtime 'last played' displays 2020-05-25 15:46:53 +01:00
jdgleaver 230198fe4a (Ozone) Add option to sort playlists after name truncation 2020-05-25 11:32:17 +01:00
Autechre 089c64f427 Merge pull request #10703 from libretro/revert-10702-revert-10685-patch-6
Revert "Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior""
2020-05-24 23:42:25 +02:00
Autechre 950bf29c27 Revert "Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior"" 2020-05-24 23:42:12 +02:00
Autechre 2e26a05875 Merge pull request #10702 from libretro/revert-10685-patch-6
Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior"
2020-05-24 23:25:04 +02:00
Autechre d1f4279b8f Revert "(video) fix "Allow Cores to Switch the Video Driver OFF" behavior" 2020-05-24 23:24:35 +02:00
twinaphex 31ff7e384f Cleanups 2020-05-24 21:55:41 +02:00
twinaphex fa37234a49 Cut down on strlens 2020-05-24 21:23:52 +02:00
twinaphex a1752db25a Put this behind DEBUG ifdef 2020-05-24 20:49:58 +02:00
twinaphex 737718ba5d (network) Turn functions that are not accessed outside static 2020-05-24 20:38:50 +02:00
twinaphex 8bf11e9b18 (libretro-common) Try to prevent implicit usage of stdio fprintf 2020-05-24 20:18:36 +02:00
twinaphex bc226305d7 (x11_common.c) Cleanup 2020-05-24 19:38:41 +02:00
twinaphex e030986837 Replace fprintfs with RARCH_LOG/RARCH_ERR 2020-05-24 19:29:55 +02:00
twinaphex bcbad532e6 Rewrite fprintf into RARCH_ERR 2020-05-24 19:22:17 +02:00
twinaphex 88b8e5a16a Replace with string_ends_with 2020-05-24 19:16:13 +02:00
twinaphex d9bbe604e9 silence unused variable warnings 2020-05-24 19:13:22 +02:00
twinaphex 67f0df94f9 (CDROM) Reduce log spam 2020-05-24 19:11:55 +02:00
twinaphex 53beaee6e6 Cleanup 2020-05-24 18:28:27 +02:00
twinaphex 5b562c4c24 Style nits/cleanups 2020-05-24 18:21:30 +02:00
twinaphex 1a2fdffd5b Move variables to top 2020-05-24 18:02:47 +02:00
Autechre 8ada7049c2 Update CHANGES.md 2020-05-24 17:50:24 +02:00
twinaphex 93e8edf2f9 Fix C89_BUILD error and several style nits 2020-05-24 17:41:27 +02:00
Autechre 8ce192de82 Merge pull request #10699 from guoyunhe/ar-cjk-fonts
Fix Arabic, Chinese and Korean font rendering
2020-05-24 17:36:49 +02:00
twinaphex 376b62e8fa Cut down on more unnecessary strlens 2020-05-24 17:25:52 +02:00
twinaphex 64c30610f5 Fix menu_shader_manager_save_preset_internal 2020-05-24 16:44:48 +02:00
Guo Yunhe b6561ee9ca Fix Arabic, Chinese and Korean font rendering 2020-05-24 17:39:22 +03:00
twinaphex cf1bc2634d Prevent doing unnecessary double strlen 2020-05-24 16:38:53 +02:00
twinaphex 2f836f786f (Dutch) Fix small typo for now - when Crowdin gets resynced this
should already be in there
2020-05-24 08:23:47 +02:00
Autechre 1431a0b275 Update CHANGES.md 2020-05-24 08:19:29 +02:00
Autechre 1c8b6bebce Update CHANGES.md 2020-05-24 08:18:04 +02:00
twinaphex cebc01cb1e C89_BUILD buildfix 2020-05-24 06:54:42 +02:00
Autechre 2ac18a621a Merge pull request #10697 from phcoder/x11
Improvements for XShm
2020-05-24 06:51:13 +02:00
twinaphex 51b868b6a4 (Vita) Buildfix 2020-05-24 06:47:04 +02:00
Vladimir Serbinenko c9c2d8a0b6 xshm_gfx: Add missing casts 2020-05-24 06:34:59 +02:00
Vladimir Serbinenko 54a07eaa60 Move decarations to the start of function 2020-05-24 06:33:20 +02:00
Vladimir Serbinenko 3f5eb55405 Replace C++ commants with C89 ones 2020-05-24 06:32:36 +02:00
Vladimir Serbinenko 77829a8e5b Rename xshm to x11 as it can now work without shm
xshm was disabled, so no problem with config update
2020-05-24 05:11:53 +02:00
Vladimir Serbinenko 1d4462b198 config.libs.sh: Improve messages for x components detection 2020-05-24 05:05:42 +02:00
Vladimir Serbinenko 62bb1d4da4 xshm: Allow to operate without shm extension
In most cases it doesn't make a nice gameplay but is still useful for debugging
on remote system and xnest
2020-05-24 05:01:51 +02:00
Autechre cdaf08b908 Update AndroidManifest.xml 2020-05-24 04:37:09 +02:00
Autechre af3006c3d7 Update RetroArch_iOS9-Info.plist 2020-05-24 04:36:49 +02:00
Autechre 5c3a7a7e7f Update Info_Metal.plist 2020-05-24 04:35:06 +02:00
Autechre 3613b666e5 Update Info.plist 2020-05-24 04:34:53 +02:00
Autechre 3689a719fd Update version.dtd 2020-05-24 04:32:17 +02:00
Autechre 5397f1c046 Update version.all 2020-05-24 04:32:00 +02:00
Autechre 4991245cdf Update CHANGES.md 2020-05-24 04:31:31 +02:00
twinaphex 5e772350b4 Turn rgui_osk_ptr_at_pos into static function 2020-05-24 04:06:49 +02:00
twinaphex eb92274f9b (RGUI) Cleanup function 2020-05-24 04:02:30 +02:00
twinaphex b5fe162c32 C89_BUILD fix 2020-05-24 03:52:23 +02:00
Vladimir Serbinenko c4b4961ed1 xshm: fix compatibility with x input 2020-05-24 03:52:13 +02:00
Autechre 32a4607eb6 Merge pull request #10695 from heuripedes/small-buffer-opt
Small buffer optimizations
2020-05-24 03:48:21 +02:00
Vladimir Serbinenko cfe68a4c2d Fix crash in x11_display_server_get_screen_orientation 2020-05-24 03:38:24 +02:00
Vladimir Serbinenko cde22645e5 Reeenable xshm 2020-05-24 03:35:40 +02:00
Higor Eurípedes 4ea0f232ef Use small buffer optimization in gfx_animation_ticker_smooth()
Like the previous commit, this one lowers the number of temporary allocations
while the menu is up.
2020-05-23 22:34:12 -03:00
Higor Eurípedes 0c9499a88e Implements small buffer optimization in font_driver_reshape_msg()
Use a stack-allocated 64 bytes long buffer to avoid so many temp heap
allocations when the menu is up. This size is more than enough store 75% of the
return values from msg_hash_to_str and 50% of the returned values from
msg_hash_get_help of any currently supported language (includes fallback to
English).

String size per type:
                     count       mean         std  ...   50%    75%    max
type                                               ...
msg_hash_get_help  83885.0  95.295476  106.331779  ...  54.0  103.0  842.0
msg_hash_to_str    83903.0  27.737959   33.389184  ...  19.0   31.0  440.0

string size per type and language:
                             count        mean         std  ...   50%    75%    max
type              language                                  ...
msg_hash_get_help 0         4415.0   89.922310   96.873902  ...  55.0  101.0  590.0
                  1         4415.0   97.555606  118.031412  ...  55.0  101.0  842.0
                  2         4415.0  118.459570  127.811760  ...  75.0  131.0  774.0
                  3         4415.0  111.978256  112.702991  ...  68.0  125.0  651.0
                  4         4415.0  106.040544  111.360658  ...  62.0  124.0  776.0
                  5         4415.0  100.129105  114.437432  ...  62.0  103.0  688.0
                  6         4415.0   32.987769   31.047851  ...  28.0   28.0  595.0
                  7         4415.0  109.366025  124.717259  ...  71.0  121.0  720.0
                  8         4415.0   98.023783  105.149942  ...  62.0  105.0  610.0
                  9         4415.0   93.834428  104.433820  ...  55.0  101.0  637.0
                  10        4415.0   93.657984   96.884429  ...  55.0  101.0  594.0
                  11        4415.0   93.452775  104.040553  ...  48.0  100.0  583.0
                  12        4415.0   89.729558  104.062959  ...  50.0  100.0  550.0
                  13        4415.0   91.462514   95.968107  ...  55.0  101.0  590.0
                  14        4415.0   92.062741   97.959207  ...  55.0  101.0  611.0
                  15        4415.0   92.597055   97.190835  ...  56.0  101.0  600.0
                  16        4415.0   92.088109   98.110738  ...  55.0  101.0  608.0
                  17        4415.0  102.483126  106.379639  ...  65.0  110.0  652.0
                  18        4415.0  104.782786  114.025678  ...  65.0  112.0  646.0
msg_hash_to_str   0         4415.0   24.591619   29.148312  ...  18.0   28.0  346.0
                  1         4416.0   31.247736   36.302532  ...  21.0   36.0  352.0
                  2         4416.0   31.853714   39.332395  ...  21.0   36.0  418.0
                  3         4416.0   28.270833   33.300996  ...  21.0   32.0  429.0
                  4         4416.0   27.139040   31.905206  ...  19.0   31.0  346.0
                  5         4416.0   27.380435   32.314188  ...  19.0   31.0  346.0
                  6         4416.0   25.028080   29.188490  ...  19.0   28.0  346.0
                  7         4416.0   29.660553   35.283592  ...  21.0   33.0  393.0
                  8         4416.0   27.685915   32.707466  ...  20.0   31.0  346.0
                  9         4416.0   34.786685   43.587766  ...  21.0   39.0  414.0
                  10        4416.0   28.769928   34.428596  ...  20.0   32.0  440.0
                  11        4416.0   24.407609   28.690934  ...  18.0   27.0  346.0
                  12        4416.0   23.970788   27.075638  ...  18.0   28.0  346.0
                  13        4416.0   24.587636   29.146213  ...  18.0   28.0  346.0
                  14        4416.0   27.642889   33.300451  ...  20.0   31.0  346.0
                  15        4416.0   25.036005   29.159115  ...  18.0   28.0  346.0
                  16        4416.0   24.732111   29.134002  ...  18.0   28.0  346.0
                  17        4416.0   32.068161   38.807095  ...  21.0   36.0  407.0
                  18        4416.0   28.160779   34.013300  ...  20.0   31.0  432.0
2020-05-23 22:33:45 -03:00
twinaphex 3a057d594b MSVC2003 buildfix 2020-05-24 00:05:14 +02:00
twinaphex a8a5372c6b (UWP) File I/O is slow, so enable playlist compression and
savefile compression by default
2020-05-23 23:48:01 +02:00
twinaphex cff87ab1e0 (OSX) Buildfix for Discord 2020-05-23 16:43:32 +02:00
Autechre 9b73f2a38c Update CHANGES.md 2020-05-23 05:51:57 +02:00
Autechre 4cdd5dce38 Update CHANGES.md 2020-05-23 05:51:09 +02:00
Autechre 020ee2d289 Update CHANGES.md 2020-05-23 05:50:05 +02:00
Autechre de8267d2e2 Update CHANGES.md 2020-05-23 05:49:09 +02:00
Autechre 942d82593b Merge pull request #10691 from phcoder/rbxv
Fix xvideo support on xwayland and input in general
2020-05-23 05:47:57 +02:00
Vladimir Serbinenko a86e8e0f36 Support YV12
Only I420 and YZ12 are available on xwayland. Support it
2020-05-23 05:39:18 +02:00
twinaphex c8940c130d Cleanup 2020-05-23 05:16:24 +02:00
twinaphex 4a388668a3 Update 2020-05-23 04:52:28 +02:00
twinaphex 5e3fd8e95e move GetProcessId to C files 2020-05-23 04:49:14 +02:00
Vladimir Serbinenko 9c4fde00ce xvideo: Fix order of context init
Current order causes an error in x11_input init and hence keyboard
doesn't work
2020-05-23 04:36:53 +02:00
twinaphex 6591b53547 Cleanup 2020-05-23 04:23:03 +02:00
twinaphex 7d6c0417eb Silence warning 2020-05-23 04:17:12 +02:00
twinaphex 268bf61da6 Silence warnings 2020-05-23 03:36:51 +02:00
twinaphex 506271e769 Expand size of frontend variable to avoid warning 2020-05-23 03:25:22 +02:00
twinaphex 5e88958e26 Silence warnings 2020-05-23 03:23:35 +02:00
twinaphex 6408da2ae4 Silence warnings 2020-05-23 03:19:25 +02:00
twinaphex b3a4c02d05 Reduce variable size 2020-05-23 03:12:16 +02:00
twinaphex 2518ad47d9 Reduce size of image_label 2020-05-23 03:11:35 +02:00
twinaphex 65534f0286 (netplay frontend) This variable doesn't need to be so big 2020-05-23 03:09:46 +02:00
twinaphex 8c7e785661 Convert more strstrs 2020-05-23 02:46:58 +02:00
twinaphex 1db42a5611 Cleanup filebrowser_parse 2020-05-23 02:40:31 +02:00
twinaphex 44a254264b Replace more strstrs 2020-05-23 02:29:13 +02:00
twinaphex d2d16ea171 Update CHANGES.md 2020-05-23 02:00:28 +02:00
Autechre 89f5eefb92 Merge pull request #10554 from WeedyWeedSmoker/International-translations-update
International: Add all the language updates from Crowdin…
2020-05-23 01:52:28 +02:00
twinaphex 9fe01ff0c8 Replace strstr with string_ends_with 2020-05-23 00:41:14 +02:00
Weedy Weed Smoker 8894caddc2 Polish: Unify timedate ENUMs and cleanup part 2 2020-05-23 04:29:48 +07:00
Weedy Weed Smoker 852eb8ab8e Polish: Unify timedate ENUMs and cleanup 2020-05-23 04:23:47 +07:00
twinaphex d717f3537a Update sdl2_gfx.c 2020-05-22 22:58:41 +02:00
Weedy Weed Smoker 4478167634 Greek: Correct typo in Unify timedate ENUMs 2020-05-23 03:57:02 +07:00
Weedy Weed Smoker dd612a6637 French: Correct typo in Unify timedate ENUMs 2020-05-23 03:46:50 +07:00
twinaphex 923dc52f87 Simplify menu_filebrowser.c and menu_shader.c code 2020-05-22 22:29:25 +02:00
Weedy Weed Smoker 80c1b54b52 Merge branch 'master' into International-translations-update 2020-05-23 03:14:09 +07:00
twinaphex 421bcb07d3 (task_audio_mixer.c) Optimize further 2020-05-22 22:00:25 +02:00
twinaphex eaba575c9e Replace strstrs where possible 2020-05-22 21:11:35 +02:00
twinaphex 31674f9246 Use string_ends_with and string_starts_with 2020-05-22 20:57:48 +02:00
twinaphex 9f4b3b0fc6 Start using string_ends_with 2020-05-22 20:07:21 +02:00
twinaphex 7cbb79277d Cleanup core_load_game function 2020-05-22 19:43:10 +02:00
Autechre 6044f8b335 Merge pull request #10686 from jdgleaver/image-type-detection-fix
Image file type detection fixes/optimisations
2020-05-22 18:18:22 +02:00
jdgleaver d24498bdf1 Image file type detection fixes/optimisations 2020-05-22 16:57:37 +01:00
Autechre 00d7c40c7a Merge pull request #10683 from barbudreadmon/patch-5
(vita) try at fixing upside-down vertical games
2020-05-22 16:47:17 +02:00
Autechre a97c884159 Merge pull request #10685 from barbudreadmon/patch-6
(video) fix "Allow Cores to Switch the Video Driver OFF" behavior
2020-05-22 16:46:53 +02:00
Autechre 5ad36f7040 Update CHANGES.md 2020-05-22 16:29:03 +02:00
barbudreadmon 2f57d3cbea (video) fix "Allow Cores to Switch the Video Driver OFF" behavior
fix #10677 : video driver must never be switched when this setting is set to OFF, it is the job of the core to request the right context
2020-05-22 15:38:47 +02:00
Autechre 6652bb4795 Merge pull request #10684 from jdgleaver/thumb-download-fix
(On Demand Thumbnails) Fix heap-use-after-free error
2020-05-22 14:05:47 +02:00
jdgleaver 955e25fc39 (On Demand Thumbnails) Fix heap-use-after-free error 2020-05-22 11:07:34 +01:00
barbudreadmon 2052f1595c (vita) try at fixing upside-down vertical games
it is a blind commit, i don't have access to the hardware, see #6859 for more explanations
2020-05-22 12:02:19 +02:00
Twinaphex f2bb7e29a4 Revert "(Discord RPC) Update"
This reverts commit a6030f89fe.
2020-05-22 05:37:01 +02:00
twinaphex a6030f89fe (Discord RPC) Update 2020-05-22 04:56:53 +02:00
Autechre 3cd320fa83 Merge pull request #10680 from im4potato/timedate
Unify timedate ENUMs and cleanup
2020-05-22 03:24:14 +02:00
twinaphex ec9efcb4b0 C89_BUILD buildfix 2020-05-22 02:32:36 +02:00
twinaphex 6dcaa04a93 (Ozone) Move static variables outside of the header file 2020-05-22 01:54:57 +02:00
twinaphex 70957aa52a (Ozone) Move these static variables outside of the header 2020-05-22 01:45:52 +02:00
im4potato 1c4cb37e61 Unify timedate ENUMs and cleanup 2020-05-21 16:26:06 -07:00
twinaphex 875791b40c (cheat manager) Cleanups - go through function pointer 2020-05-22 01:09:28 +02:00
twinaphex 6dc758a080 Move cheevos-new to cheevos/ 2020-05-21 23:23:01 +02:00
Twinaphex ede03659ca Update 2020-05-21 22:31:51 +02:00
Twinaphex 4b4a8693ac Remove unused variable 2020-05-21 22:27:20 +02:00
twinaphex 0edd97d5db file_path.c) Cleanup 2020-05-21 20:04:36 +02:00
twinaphex a9cf718e75 Get rid of auto variable in glslang.cpp 2020-05-21 20:04:36 +02:00
Autechre 52e8c102fc Merge pull request #10671 from johanbcn/improved-shader-preset-dirs
Improved shader preset dirs
2020-05-21 17:17:03 +02:00
Autechre 29e9a54000 Merge pull request #10678 from jdgleaver/path-is-absolute
Optimise 'path_is_absolute()'
2020-05-21 15:37:29 +02:00
jdgleaver f522cfcce8 Optimise 'path_is_absolute()' 2020-05-21 13:28:42 +01:00
Joan Coll Cerdán 04016ed4a6 Improve shader initialization code.
Patch by @jdgleaver.
2020-05-21 13:29:09 +02:00
twinaphex e1e6f2db51 Fix CXX_BUILD 2020-05-21 05:10:33 +02:00
Autechre 6fa4350ade Update CHANGES.md 2020-05-21 04:53:51 +02:00
twinaphex 70f57974c7 Buildfix 2020-05-21 04:23:01 +02:00
twinaphex 4f2566ad50 (JACK) Query audio device from settings struct again 2020-05-21 04:21:00 +02:00
twinaphex a4f143a71a Buildfix 2020-05-21 00:46:49 +02:00
twinaphex 2037de5b33 Silence more warnings 2020-05-20 23:40:26 +02:00
twinaphex 6173d11b62 Silence unused function warning 2020-05-20 23:35:32 +02:00
twinaphex 060ad38905 (WiiU) Buildfix 2020-05-20 23:34:23 +02:00
twinaphex 41fd598195 Update CHANGES.md 2020-05-20 23:02:54 +02:00
twinaphex 0fced84f93 (Netplay) Lower announce rate 2020-05-20 23:01:04 +02:00
Autechre 50cb20592c Merge pull request #10655 from fjtrujy/ps2-newlib
Adapt PS2 port to newlib support
2020-05-20 20:14:22 +02:00
Francisco Javier Trujillo Mata 1eeb3dcf30 Adapt PS2 port to new SDK with newlib support (CDVDFS support is missing) 2020-05-20 20:13:19 +02:00
twinaphex a3d3e18369 Update 2020-05-20 19:54:37 +02:00
Autechre 69ec94fe47 Merge pull request #10673 from jdgleaver/window-title-fix
NUL terminate 'fps_text' string
2020-05-20 18:55:26 +02:00
jdgleaver 41cee583e3 NUL terminate 'fps_text' string 2020-05-20 17:51:20 +01:00
Autechre 4713bf5cef Merge pull request #10672 from jdgleaver/file-path-optimisations
Various file path handling optimisations
2020-05-20 18:21:59 +02:00
jdgleaver c346e1f816 Various file path handling optimisations 2020-05-20 17:05:22 +01:00
twinaphex 3d677ee90c (Discord RPC) Simplify - use string_is_equal - de-auto type certain
variables where possible
2020-05-20 17:59:42 +02:00
Joan Coll Cerdán e43111d9cb Support fallback dirs to cycle user shader presets
When a user shader preset was saved, if the Video Shader directory
wasn't writable, it would fall back to the Menu Config directory, and
failing that, it would fall back to the directory where retroarch.cfg
is stored.

This change allows the shader cycling feature to use those directories
if no shader presets are found on the Video Shader directory.
2020-05-20 17:47:23 +02:00
Joan Coll Cerdán 2768655267 Cleaner structure for auto shader presets.
Additional changes:

* Restore the previous storage path for user-presets until a better
  solution is agreed upon.

* Stop using the Video Shaders directory as fallback directory to
  store autopresets. Will be used only when autoloading as last resort to
  ensure compatibility with old setups.
2020-05-20 17:47:23 +02:00
twinaphex 057ae3c134 Update CHANGES.md 2020-05-20 17:35:52 +02:00
twinaphex e64b4c1d24 For gamepad-like console/Android TV devices - default to Ozone 2020-05-20 17:34:39 +02:00
twinaphex aeb3f692d5 Get rid of superfluous get_ai_service_auto/set_ai_service_auto get/set
wrapper functions
2020-05-20 16:35:53 +02:00
twinaphex af01b97a11 Add TODO/FIXME 2020-05-20 16:32:20 +02:00
twinaphex d9ab59cb4a Comment out function that isn't used 2020-05-20 16:29:57 +02:00
twinaphex 4a20709645 (Win32) Cleanup accessibility_speak_windows 2020-05-20 16:26:39 +02:00
twinaphex 647bdc5cbd (Discord RPC) Cleanups 2020-05-20 16:10:46 +02:00
twinaphex 115e779cf0 (Discord) Comment out code that isn't being used 2020-05-20 16:03:46 +02:00
twinaphex 3387170d62 (Discord) Cleanups - get rid of discord_register.h header 2020-05-20 15:43:01 +02:00
twinaphex 03ea12d334 Move discord files to network/ 2020-05-20 15:27:27 +02:00
twinaphex a8fdfd77ce Make gamma correction 'int' type across the board 2020-05-20 15:04:16 +02:00
twinaphex cb5de27631 Cleanup 2020-05-20 14:48:22 +02:00
twinaphex d9ccd3a737 Turn core_poll_type_override into enum variable 2020-05-20 14:23:25 +02:00
Autechre 5874bb8b27 Update CHANGES.md 2020-05-20 14:02:41 +02:00
Autechre 2f42fc5932 Merge pull request #10670 from jdgleaver/remap-default-fix
(Input Remapping) Fix 'reset to default' action for analog sticks and undefined core inputs
2020-05-20 13:58:31 +02:00
jdgleaver 0bbd5b7a45 (Input Remapping) Fix 'reset to default' action for analog sticks and undefined core inputs 2020-05-20 11:48:09 +01:00
twinaphex d1c130d60a Global variable cleanups 2020-05-20 06:29:58 +02:00
twinaphex 692f37b91a Rearrange global variables 2020-05-20 06:04:51 +02:00
twinaphex 13279eb0d4 Move defines to top 2020-05-20 04:54:14 +02:00
twinaphex 9e5f00ba27 Turn retroarch_fail static 2020-05-20 04:43:35 +02:00
twinaphex 1e21bf5074 Move defines to top 2020-05-20 04:39:27 +02:00
twinaphex 51c1064609 retroarch_validate_per_core_options - cut down on code duplication 2020-05-20 04:18:57 +02:00
twinaphex a188826a10 Cleanups 2020-05-20 04:02:43 +02:00
twinaphex 24dd7409bc Move more global variables and forward declarations up top 2020-05-20 03:58:36 +02:00
twinaphex cc2d70f044 (retroarch.c) Turn some AI functions static 2020-05-20 03:47:14 +02:00
twinaphex 7b5b14b0a7 More reorganization of globals, enums, defines 2020-05-20 03:38:16 +02:00
twinaphex 969475254f (retroarch.c) Reorganize globals, forward declarations, and defines 2020-05-20 03:30:04 +02:00
twinaphex 2cc776d2d9 Cleanups 2020-05-20 02:42:39 +02:00
twinaphex 5852251d56 Fix --disable-menu 2020-05-20 02:25:33 +02:00
twinaphex 182ad31c63 (retroarch.c) Relocate structs and enums 2020-05-20 02:19:20 +02:00
twinaphex 2a36fa0855 Remove double ';' 2020-05-19 21:29:35 +02:00
twinaphex ad1aa59ce1 Cleanup != NULL comparisons 2020-05-19 21:15:06 +02:00
twinaphex 6d37d014a0 Simplify ozone_get_entries_padding 2020-05-19 20:51:40 +02:00
Autechre bc522c3fa5 Merge pull request #10664 from jdgleaver/menu-remove-hash
Remove last remaining menu hash
2020-05-19 18:43:09 +02:00
jdgleaver 73b9b5b270 Remove last remaining menu hash 2020-05-19 17:29:12 +01:00
Autechre 4b90fcdeac Update CHANGES.md 2020-05-19 18:06:04 +02:00
Autechre 7eaa771d57 Merge pull request #10663 from jdgleaver/overlay-leak-fix
Fix memory leak when loading overlays
2020-05-19 18:05:23 +02:00
twinaphex 521f4bfefc Remove more unneeded video_frame_info variables 2020-05-19 17:52:54 +02:00
jdgleaver 6800fadafe Fix memory leak when loading overlays 2020-05-19 16:37:20 +01:00
twinaphex 26c6c34817 video_frame_info - remove more unused settings 2020-05-19 16:51:05 +02:00
twinaphex 3f98cbc52d Get rid of some unneeded variables in video_frame_info 2020-05-19 16:42:56 +02:00
twinaphex 9ace693ec0 Refactor menu_driver_frame 2020-05-19 16:20:43 +02:00
twinaphex 0aff65e77b Sync libretro-common 2020-05-19 15:22:00 +02:00
Autechre 8c63ea2515 Update CHANGES.md 2020-05-19 15:14:24 +02:00
Autechre f9f0c5aea6 Merge pull request #10662 from jdgleaver/thumbnail-free-fix
(gfx_thumbnail) Fix heap-use-after-free error
2020-05-19 15:13:21 +02:00
jdgleaver 5eee8daa4f (gfx_thumbnail) Fix heap-use-after-free error 2020-05-19 14:03:02 +01:00
twinaphex d4dd1f71a5 (menu_displaylist.c) Move state into struct 2020-05-19 14:59:06 +02:00
twinaphex 25888db0af (menu_driver.c) Move state into struct 2020-05-19 13:40:27 +02:00
Autechre 2b19a50775 Update CHANGES.md 2020-05-19 12:50:26 +02:00
Autechre 8c0b15052a Merge pull request #10658 from jdgleaver/input-remap-start-scan-fix
(Input Mapping/Remapping) Restore broken 'reset to default' functionality
2020-05-19 12:47:34 +02:00
jdgleaver 5e904c4dc3 (Input Mapping/Remapping) Restore broken 'reset to default' functionality 2020-05-19 11:35:57 +01:00
twinaphex 54fd445c75 (verbosity) move static global variables to struct 2020-05-19 02:13:51 +02:00
Autechre 27a7ab20e2 Update CHANGES.md 2020-05-18 20:58:06 +02:00
Autechre 646efb91e1 Merge pull request #10654 from Jamiras/chd_find_special_fail
return false when special track cannot be found
2020-05-18 20:57:42 +02:00
Jamiras c805fd3213 return false when special track cannot be found 2020-05-18 09:10:06 -06:00
Weedy Weed Smoker 2d83b58703 French: disable hardcore when cheats are enabled 2020-05-18 18:12:52 +07:00
Autechre 582f967fb0 Update AndroidManifest.xml 2020-05-18 02:15:03 +02:00
Autechre 12af4ed7e3 Update CHANGES.md 2020-05-17 22:23:22 +02:00
Autechre f5623edec1 Merge pull request #10640 from Jamiras/cheevos_cheats
(cheevos) disable hardcore when cheats are enabled
2020-05-17 22:22:31 +02:00
Autechre 0be52f8a49 Update CHANGES.md 2020-05-17 22:22:00 +02:00
Autechre 83410572cc Merge pull request #10646 from QuarkTheAwesome/master
WiiU: Gamepad hotplugging support, theoretical multi-gamepad support, warning fixes
2020-05-17 22:21:21 +02:00
Ash Logan 70fba3e92e (WiiU/kpad) Actually return true when kpad_init succeeds, warning fix 2020-05-17 16:43:38 +10:00
Ash Logan 41541128c5 (WiiU/hid) Warning fixes 2020-05-17 16:42:31 +10:00
Ash Logan cdaf907467 (WiiU/hid) hid.h only used in drivers_hid/wiiu, don't include everywhere 2020-05-17 16:39:41 +10:00
Ash Logan f22af81e7d (WiiU/wpad) Allow hotplugging Gamepad, support >1 channel 2020-05-17 16:32:51 +10:00
Jamiras 9107e5767c make message less verbose 2020-05-16 09:28:13 -06:00
Jamiras 6946f878ef disable hardcore when cheats are enabled 2020-05-16 08:01:24 -06:00
Autechre f1158b988c Update RetroArch_iOS9-Info.plist 2020-05-16 15:22:20 +02:00
Autechre fb073544d2 Update Info_Metal.plist 2020-05-16 15:21:05 +02:00
Autechre a8d8523747 Update Info.plist 2020-05-16 15:20:52 +02:00
Autechre ef9a3c2007 Update AndroidManifest.xml 2020-05-16 15:20:15 +02:00
Autechre b0a549716f Update version.dtd 2020-05-16 15:19:53 +02:00
Autechre 435af0f982 Update version.all 2020-05-16 15:19:31 +02:00
Autechre 8c2c094830 Update CHANGES.md 2020-05-16 15:19:02 +02:00
Autechre feb39a114d Update CHANGES.md 2020-05-16 15:18:51 +02:00
Autechre b7f56fc551 Merge pull request #10627 from johanbcn/shader-presets-fallback-dirs
Fallback directories for shader presets
2020-05-16 13:55:58 +02:00
Weedy Weed Smoker 9631719061 Update msg_hash_pt_br.h according to PR #10551 2020-05-16 09:38:45 +07:00
Weedy Weed Smoker 056a5d1466 French: add cheevos_start_active option 2020-05-16 08:42:10 +07:00
Weedy Weed Smoker 493dd1749c French: Add option to stretch menu to fill screen 2020-05-16 08:38:15 +07:00
Weedy Weed Smoker f5a880b6c5 French: Add desktop-style playlist view mode 2020-05-16 08:36:06 +07:00
Weedy Weed Smoker ec624f7baa French: Add back RGUI_BORDER_FILLER_THICKNESS 2020-05-16 08:34:23 +07:00
Autechre d3a55ef732 Merge pull request #10637 from meleu/patch-11
cheevos: option to start a session with all achievements active
2020-05-15 22:31:09 +02:00
Autechre b910e6230f Merge pull request #10636 from jdgleaver/ozone-playlist-sorting
(Ozone) Fix sidebar playlist sort order when 'Truncate Playlist Names' is enabled
2020-05-15 22:30:11 +02:00
meleu 69949187f6 add cheevos_start_active option 2020-05-15 14:49:47 -03:00
jdgleaver b53f635441 (Ozone) Fix sidebar playlist sort order when 'Truncate Playlist Names' is enabled 2020-05-15 17:26:36 +01:00
Autechre c31d4e6b69 Merge pull request #10633 from jdgleaver/cheevos-disable
Don't perform unnecessary cheevos initialisation when cheevos are disabled
2020-05-15 15:22:16 +02:00
jdgleaver 706875160e Don't perform unnecessary cheevos initialisation when cheevos are disabled 2020-05-15 13:33:05 +01:00
Autechre a8eaf82e06 Merge pull request #10612 from Jamiras/rcheevos_90
(cheevos) upgrade to rcheevos 9.0
2020-05-15 09:53:03 +02:00
Autechre 82666abbdd Update CHANGES.md 2020-05-14 19:42:38 +02:00
Autechre e7c909fe66 Merge pull request #10631 from jdgleaver/global-core-options-default
Disable 'Use Global Core Options File' by default
2020-05-14 19:41:14 +02:00
jdgleaver d9673b8c8f Disable 'Use Global Core Options File' by default 2020-05-14 17:27:13 +01:00
Autechre 383fdae18f Merge pull request #10629 from jdgleaver/rgui-wallpaper
(RGUI) Enable custom wallpaper when menu size is reduced at low resolutions
2020-05-14 15:54:19 +02:00
jdgleaver 9d5a54ced4 (RGUI) Enable custom wallpaper when menu size is reduced at low resolutions 2020-05-14 14:18:53 +01:00
Autechre 50b4492fef Merge pull request #10628 from jdgleaver/tab-switch-rate
(XMB/GLUI) Limit tab switch rate when input repeat is active
2020-05-14 13:55:58 +02:00
jdgleaver eff8c31ffd (XMB/GLUI) Limit tab switch rate when input repeat is active 2020-05-14 11:24:32 +01:00
twinaphex 89c7d1a835 Update libretro-common 2020-05-14 09:27:58 +02:00
Autechre 7d517a431d Merge pull request #10626 from phcoder/mips
cpu_features_get_time_usec: Use sceKernelGetSystemTimeWide on PSP and…
2020-05-14 09:23:59 +02:00
Joan Coll Cerdán 718e9eaf37 Comply with the C89 standard 2020-05-14 00:32:52 +02:00
Joan Coll Cerdán fe42f6bb73 Changed the order of shader preset directories.
The Menu Config directory now takes precedence over the Video Shader
directory for the storage of shader preset overrides. With this, all
user overrides are grouped by default under the same path.
2020-05-13 19:54:08 +02:00
Joan Coll Cerdán f1f248dd11 Add fallback directories to shader presets.
Improves the management of shader presets by using the Menu Config directory
and the directory of the configuration file as alternate fallback directories
whenever the Video Shader directory is not writable.
2020-05-13 19:54:08 +02:00
Vladimir Serbinenko cab004f08a cpu_features_get_time_usec: Use sceKernelGetSystemTimeWide on PSP and Vita 2020-05-13 11:20:40 +02:00
Autechre 1545285953 Merge pull request #10625 from phcoder/dosalam
Support for dos salamander
2020-05-13 09:29:37 +02:00
Vladimir Serbinenko 31d9fedf47 cpu_features_get_time_usec: Use monotonic_clock on djgpp 2020-05-12 22:55:15 +02:00
Autechre 6c4c93e17b Update CHANGES.md 2020-05-12 18:09:38 +02:00
Autechre ba452c204b Merge pull request #10624 from dankcushions/menuticker
Adjusted menu defaults
2020-05-12 17:57:34 +02:00
Vladimir Serbinenko 70c57beea9 Support for dos salamander 2020-05-12 17:39:04 +02:00
dankcushions edb308ceb2 Adjusted menu defaults 2020-05-12 16:27:16 +01:00
twinaphex 2ab7da36f2 (Win32) Style nits 2020-05-12 17:16:36 +02:00
twinaphex cfd0731422 (PS3) Style nit cleanups 2020-05-12 17:11:51 +02:00
twinaphex 494c0f8fe4 (PSL1GHT) Cleanups 2020-05-12 17:06:58 +02:00
twinaphex 1d1c7e5a0d (PSL1GHT/GCM) Style nits 2020-05-12 15:10:15 +02:00
twinaphex bde18ba86a Style nits 2020-05-12 14:36:27 +02:00
twinaphex 9088137051 Remove unused function 2020-05-12 14:20:12 +02:00
twinaphex cc50eaa88f Cleanup 2020-05-12 14:02:10 +02:00
twinaphex 86b78e2fea Cleanups 2020-05-12 09:11:18 +02:00
twinaphex 57bbf7c944 (gfx widgets) Rearrange variables 2020-05-12 08:56:57 +02:00
twinaphex 84369cf6ba (Win32) Cleanups 2020-05-12 08:49:41 +02:00
twinaphex 3981b1cc82 (Qt) Cleanups 2020-05-12 08:02:55 +02:00
Autechre e8d2ea7a56 Update CHANGES.md 2020-05-12 06:27:57 +02:00
Autechre 1fabb661a6 Update CHANGES.md 2020-05-12 06:27:18 +02:00
Autechre 709d6a2214 Merge pull request #10617 from Jamiras/cheevos_image_loading
(cheevos) make sure texture pointer is null when load fails
2020-05-12 06:26:35 +02:00
Autechre ca9c022a7f Merge pull request #10618 from phcoder/dos
Dos/DJGPP fixes
2020-05-12 06:26:17 +02:00
Autechre 34b8b457c7 Merge pull request #10619 from phcoder/frodoid
3ds: Add ID for frodo
2020-05-12 06:25:26 +02:00
Vladimir Serbinenko 6d184abf84 Fix dist-cores.sh for dos 2020-05-12 03:20:53 +02:00
Vladimir Serbinenko 05500c6c39 dos: Add 32-bit gfx support 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko 306fed32f6 Fix djgpp clock 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko 67c3c93aec dos fixes 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko 7b351da006 Fix crash with null audio driver 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko cc73de48d6 Fix dos compilation 2020-05-12 03:09:38 +02:00
Vladimir Serbinenko cc52f140d0 3ds: Add ID for frodo 2020-05-12 02:10:36 +02:00
Jamiras 4093616e09 make sure texture pointer is null when load fails 2020-05-11 16:24:29 -06:00
Autechre 96cfa57d1b Update CHANGES.md 2020-05-11 23:33:23 +02:00
Autechre ef4261e1f8 Update CHANGES.md 2020-05-11 23:33:05 +02:00
Autechre 4fe372662a Merge pull request #10614 from jdgleaver/glui-desktop-thumb-persistence
(GLUI) Desktop View: When scrolling playlists, show last selected thumbnails while waiting for next entry to load
2020-05-11 23:32:39 +02:00
jdgleaver 43b890a269 (GLUI) Desktop View: When scrolling playlists, show last selected thumbnails while waiting for next entry to load 2020-05-11 16:32:49 +01:00
twinaphex 6a4a522244 Cut down on some code duplication and turn
retroarch_validate_game_options static
2020-05-11 17:19:55 +02:00
twinaphex dd721def41 (Qt) Cleanups 2020-05-11 17:07:37 +02:00
twinaphex 81a623c2b6 Style nits 2020-05-11 16:49:31 +02:00
Jamiras 1534e81bed upgrade to rcheevos 9.0 2020-05-11 08:43:11 -06:00
Autechre 718d9801da Update CHANGES.md 2020-05-11 16:26:26 +02:00
Autechre 42c5bb970e Merge pull request #10613 from jdgleaver/rgui-fill-screen
(RGUI) Add option to always stretch menu to fill the screen
2020-05-11 16:26:01 +02:00
jdgleaver 26c01dd34c (RGUI) Add option to always stretch menu to fill the screen 2020-05-11 11:38:24 +01:00
Autechre 98daa0d28c Update CHANGES.md 2020-05-11 10:19:05 +02:00
Autechre 01667b5fc3 Update CHANGES.md 2020-05-11 04:53:16 +02:00
twinaphex 4a9e1e6c7e Revert "Backport"
This reverts commit 685db05032.
2020-05-11 03:49:27 +02:00
Autechre f5b33c8912 Update CHANGES.md 2020-05-11 03:33:41 +02:00
Autechre 35269cce93 Update CHANGES.md 2020-05-11 03:32:10 +02:00
twinaphex 685db05032 Backport
https://github.com/neil4/RetroArch-Lite/commit/66876fe8581de7b2ee79a06a5c4912d0e8e52b41
- handles insertion/removal of audio devices for Xaudio2 - hopefully a
callback based approach can be done later
2020-05-11 03:29:01 +02:00
twinaphex 39dbfd1db4 Remove unused menu_content.h 2020-05-11 02:32:45 +02:00
Autechre 57cd3fdf06 Merge pull request #10611 from AlexKornitzer/master
cocoa: disable clipping cursor to window
2020-05-11 02:31:32 +02:00
Alex Kornitzer 1d2dd249f3 cocoa: disable clipping cursor to window 2020-05-11 00:58:06 +01:00
Alex Kornitzer cdfb8348b0 cocoa: use absolute positioning over relative
Now that we clip the window to locate the cursor correctly on re-entry
we need to do our cursor calculations using absolute coordinates
2020-05-11 00:58:06 +01:00
Autechre 211a8a149b Update CHANGES.md 2020-05-11 00:31:17 +02:00
Autechre c2b7ebbcdf Merge pull request #10610 from AlexKornitzer/master
cocoa: fix cursor tracking
2020-05-11 00:30:47 +02:00
Alex Kornitzer c4ee0463aa cocoa: don't update mouse events when outside nswindow 2020-05-10 22:44:44 +01:00
Alex Kornitzer edfafd9fad cocoa: fix mouse movement
The input driver was using absolute coordinate arithmetic while making
use of delta changes for each coordinate, as a result the absolute
change netted to zero. This fixes that and tries to mitigate cursor
event sync issues (sync issues will require more work).
2020-05-10 22:44:44 +01:00
Autechre 9c749f03eb Update CHANGES.md 2020-05-10 15:41:10 +02:00
Autechre 58b9b6c875 Merge pull request #10606 from TobiX/wiiu-gfx-widgets
Enable GFX widgets on WiiU
2020-05-10 15:40:13 +02:00
Tobias Gruetzmacher 29929acdba (WiiU) Enable GFX widgets 2020-05-10 15:13:23 +02:00
Tobias Gruetzmacher 3c192419dd (WiiU) Fix griffin build 2020-05-10 14:30:30 +02:00
Autechre 7b8983a0e0 Merge pull request #10594 from MrHuu/master
(3DS) Enable basic networking / cheevos
2020-05-10 14:07:21 +02:00
twinaphex e74161bc6c Change name of nvdaController.h 2020-05-10 08:51:25 +02:00
twinaphex 10e6ea21a3 Put this behind HAVE_ACCESSIBILITY ifdef 2020-05-10 07:17:15 +02:00
twinaphex ba8a07a2b6 (Menu driver) Turn some functions into static functions 2020-05-10 07:14:29 +02:00
Autechre a8e3917613 Update CHANGES.md 2020-05-10 07:04:44 +02:00
twinaphex 1e9b94ded4 Get rid of hash 2020-05-10 05:05:43 +02:00
Twinaphex 2f3ef75bf6 Remove some unused variables and some style nits 2020-05-10 01:10:45 +02:00
twinaphex 3ad4b057f9 Go back to 1.8.4 netcode 2020-05-10 01:02:47 +02:00
Autechre 1fc64df5f6 Merge pull request #10603 from Brottweiler/patch-1
Use GenericName correctly in desktop entry
2020-05-10 00:56:36 +02:00
Christoffer Tibell 1e6ccb2310 Use GenericName correctly in desktop entry 2020-05-09 23:14:30 +02:00
Autechre 29a28f0d02 Merge pull request #10600 from jdgleaver/glui-desktop-view
(GLUI) Add desktop-style playlist view mode
2020-05-09 22:36:08 +02:00
Autechre aa5ddee807 Merge pull request #10601 from barbudreadmon/patch-4
(glcore) switch to glcore video driver when requested
2020-05-09 22:33:46 +02:00
barbudreadmon 7a3ddcd77d (glcore) switch to glcore video driver when requested
fix #10486
2020-05-09 17:15:45 +02:00
jdgleaver 63644ac761 (GLUI) Add desktop-style playlist view mode 2020-05-09 14:53:52 +01:00
Francisco José García García df3af35ee4 (VITA) Fix for new VITASDK 2020-05-09 09:51:50 +02:00
Francisco José García García 84de78e7c9 (Vita) Fix for latest VITASDK 2020-05-09 09:46:12 +02:00
MrHuu e519ccd0be (3DS) Enable basic networking / cheevos 2020-05-08 20:50:15 +02:00
Autechre 470756e22c Merge pull request #10588 from im4potato/translation
US Translation: Add back RGUI_BORDER_FILLER_THICKNESS
2020-05-08 06:47:03 +02:00
im4potato 09e54d1e75 US Translation: Fix spelling of "checkerboard" to match other settings 2020-05-07 21:05:30 -07:00
im4potato 38c8369e58 US Translation: Add back RGUI_BORDER_FILLER_THICKNESS 2020-05-07 20:58:50 -07:00
Autechre 9fb170bcd4 Merge pull request #10586 from francescotintori/francesco/vs2019
Added VS2019 solution project (copied from VS2017)
2020-05-08 00:21:16 +02:00
francescotintori e1d0514ec5 Added VS2019 solution project (copied from VS2017) 2020-05-07 23:03:54 +02:00
twinaphex ad7612eef3 (wiiu) Style nit cleanups 2020-05-07 20:23:14 +02:00
twinaphex 33cf0e160c Style nits 2020-05-07 20:13:02 +02:00
Autechre b78c48c2c3 Merge pull request #10581 from Roet-Ivar/wiiu_storage_usb_access
Added access to WiiU-formated storage to be browsed by RetroArch
2020-05-07 20:05:09 +02:00
Autechre 778b42de58 Merge pull request #10584 from meleu/patch-9
retroarch.cfg: add cheevos related configs
2020-05-07 20:04:40 +02:00
meleu 2f392f2260 retroarch.cfg: add cheevos related configs 2020-05-07 14:28:15 -03:00
Roet-Ivar ad34f4845b Added access to WiiU-formated storage to be browsed by RetroArch 2020-05-07 12:49:04 +02:00
Autechre 36802f7133 Update CHANGES.md 2020-05-06 02:13:22 +02:00
Autechre ca782bd015 Update CHANGES.md 2020-05-06 02:13:01 +02:00
Autechre 7b3aaa6bbb Merge pull request #10570 from MrHuu/patch-7
(3DS) re-Enable 7z support
2020-05-05 18:02:34 +02:00
MrHuu 16d12e804c (3DS) re-Enable 7z support
Adds missing HAVE_7ZIP definition for griffin builds.

I have no issues with this. Browsing and loading .7z files works as it should.
Unless there's a specific reason this was removed, it can be enabled.
2020-05-05 12:25:13 +02:00
Autechre 25be09acd3 Merge pull request #10564 from jdgleaver/3ds-filter-fix
(3DS) Disable video filter if upscaled resolution exceeds hardware limits
2020-05-04 19:28:42 +02:00
Autechre 621e220177 Merge pull request #10569 from jdgleaver/3ds-font-fix
(3DS) Fix font driver
2020-05-04 19:28:10 +02:00
jdgleaver a305a48a11 (3DS) Fix font driver 2020-05-04 16:57:44 +01:00
hizzlekizzle 877a7f8d6c Merge pull request #10563 from phcoder/radir
psl1ght: Fix cores info path
2020-05-04 09:54:36 -05:00
jdgleaver 702bc18128 (3DS) Disable video filter if upscaled resolution exceeds hardware limits 2020-05-04 11:52:53 +01:00
Francisco José García García 78c27dc77a Squashed 'deps/vitaGL/' content from commit 9a6e4b3397
git-subtree-dir: deps/vitaGL
git-subtree-split: 9a6e4b3397c207e136b2d618fa4b58e2b37c383e
2020-05-04 12:43:18 +02:00
Francisco José García García 0de4efae44 Merge commit '78c27dc77af4a03886058cc76f3553a0b3e28cc1' as 'deps/vitaGL' 2020-05-04 12:43:18 +02:00
Francisco José García García ded0e13623 Remove old vitaGL 2020-05-04 12:43:11 +02:00
Vladimir Serbinenko afe68f9cd8 psl1ght: Fix cores info path 2020-05-04 11:43:47 +02:00
Weedy Weed Smoker d51cd37fa8 French: Add option to mute audio when fast-forward 2020-05-02 20:01:53 +07:00
Weedy Weed Smoker 695203212c French: (Ozone) Refactor footer display 2020-05-02 19:57:27 +07:00
Weedy Weed Smoker 7d849ac8fb International: Add all the languages from Crowdin… 2020-05-02 13:29:17 +07:00
Autechre 3ecde62930 Merge pull request #10550 from guoyunhe/unify-show-hide
unify "show/hide" -> "show or hide"
2020-05-01 21:17:01 +02:00
Guo Yunhe ab7c2f23cf unify "show/hide" -> "show or hide" 2020-05-01 21:17:52 +03:00
Autechre 0554e3cb3d Merge pull request #10549 from Alcaro/patch-4
Fix copypasted typo
2020-05-01 18:42:06 +02:00
Alcaro c9dcc18fa4 Fix copypasted typo 2020-05-01 17:46:18 +02:00
Autechre 43c521de44 Merge pull request #10548 from jdgleaver/qt-volume-settings
(Qt) Add 'audio mixer volume' and 'mute when fast-forwarding' settings options
2020-05-01 17:30:05 +02:00
jdgleaver 4ef5eb1eb2 (Qt) Add 'audio mixer volume' and 'mute when fast-forwarding' settings options 2020-05-01 13:58:20 +01:00
Autechre 1a07476138 Merge pull request #10547 from jdgleaver/fast-forward-mute
Add option to mute audio when fast-forwarding
2020-05-01 14:11:31 +02:00
jdgleaver 3f2ba2e791 Add option to mute audio when fast-forwarding 2020-05-01 12:19:31 +01:00
hizzlekizzle 9dc963e15a Merge pull request #10544 from jdgleaver/glcore-shader-fix
(glcore/slang) Set filter and wrap mode correctly when intialising shader textures
2020-04-30 15:45:45 -05:00
Autechre fb28c79e13 Merge pull request #10545 from aschain/maylashN64-fix
Fix for mayflash N64 adapter
2020-04-30 20:09:45 +02:00
A Schain 1e751d00ea In case last hatswitch does not match cookie
For the mayflash N64 adapter, I was getting a BAD EXC ADDRESS (in mac OS 10.13) for this line (tmp was NULL). Retroarch would crash in the gui if I pressed a button from the DPAD on controller 2. With this change, it no longer crashes in the gui and still registers the button push.
2020-04-30 13:27:44 -04:00
jdgleaver 548c5dc925 (glcore/slang) Set filter and wrap mode correctly when intialising shader textures 2020-04-30 17:04:02 +01:00
Autechre 9c100ded3a Merge pull request #10535 from jdgleaver/ozone-metadata-toggle
(Ozone) Enable second thumbnail/content metadata toggle using RetroPad 'select'
2020-04-30 15:52:51 +02:00
Autechre 5160f35bd8 Merge pull request #10531 from altiereslima/master
Update msg_hash_pt_br.h
2020-04-30 15:00:53 +02:00
Autechre 34d3641d0a Merge pull request #10534 from ShadowOne333/patch-2
Update and fix meta.xml file for the WiiU release
2020-04-30 15:00:38 +02:00
Autechre 4198a0d3a8 Merge pull request #10536 from karlforshaw/master
Advise against using -s and -S variables on the command line.
2020-04-30 14:59:46 +02:00
Autechre 8f0ef54455 Merge pull request #10539 from trioan/buildfix
MSVC Buildfix
2020-04-30 14:19:23 +02:00
Autechre e92331cf1f Merge pull request #10542 from jdgleaver/screenshot-fix
(task_screenshot) Fix heap-use-after-free error when widgets are disabled
2020-04-30 14:17:21 +02:00
jdgleaver 3a3c4f60bf (task_screenshot) Fix heap-use-after-free error when widgets are disabled 2020-04-30 11:25:53 +01:00
jdgleaver 19a8a815f0 (Ozone) Hide thumbnail button hints when viewing file browser lists 2020-04-30 09:57:44 +01:00
trioan 35bf716766 (MSVC 2012) Buildfix 2020-04-29 19:45:48 -05:00
trioan 3883616d93 (MSVC 2013) Buildfix 2020-04-29 19:45:32 -05:00
trioan de0b34aa0a (MSVC 2015) Buildfix 2020-04-29 22:59:20 +00:00
trioan e14fc1b087 (MSVC 2017) Buildfix 2020-04-29 22:55:22 +00:00
hizzlekizzle 53d07b30cc Merge pull request #10515 from im-4-potato/master
US Translation: Style changes and more cleanup
2020-04-29 17:49:28 -05:00
jdgleaver 0b294faa71 (Ozone) Refactor footer display 2020-04-29 17:54:49 +01:00
twinaphex d995fa045a (GDI) Get rid of unused functions 2020-04-29 18:40:48 +02:00
Karl Forshaw 5ed60cde04 Advise against using -s and -S variables on the command line.
Signed-off-by: Karl Forshaw <[email protected]>
2020-04-29 13:39:12 +01:00
twinaphex bb27496e2e Prevent NULL pointer dereference 2020-04-29 14:38:11 +02:00
twinaphex 9b8c596057 (GL Core) Buildfix for video context drivers that dont
implement this callback
2020-04-29 13:50:21 +02:00
jdgleaver 30555f8132 (Ozone) Enable second thumbnail/content metadata toggle using RetroPad 'select' 2020-04-29 12:29:42 +01:00
Shadow a319db9119 Typo fix
Typo fix
2020-04-28 21:36:13 -07:00
Shadow b5eabf633a Update and fix meta.xml file for the WiiU release
This change makes it so the information from the meta.xml file parsed for the WiiU's Homebrew Launcher is displayed properly.
2020-04-28 21:20:30 -07:00
altiereslima a27912b816 Update msg_hash_pt_br.h 2020-04-28 18:13:47 -03:00
twinaphex 156d3629e6 libretro-common Update 2020-04-28 16:26:26 +02:00
twinaphex 4f9a3f6813 Update 2020-04-28 16:25:00 +02:00
Autechre 3b6b067fe5 Merge pull request #10530 from jdgleaver/compress-states-default
Enable save state compression by default
2020-04-28 12:53:26 +02:00
jdgleaver 1ac544b612 Enable save state compression by default 2020-04-28 11:37:16 +01:00
Autechre e3a78e0ecf Merge pull request #10529 from jdgleaver/ozone-touch-fix
(Ozone) Fix undefined behaviour when using touch screen to change input remaps
2020-04-28 12:02:28 +02:00
jdgleaver 58e6ca9ad4 (Ozone) Fix undefined behaviour when using touch screen to change input remaps 2020-04-28 10:46:19 +01:00
im-4-potato 0c40b2b3ef Merge remote-tracking branch 'upstream/master' 2020-04-27 14:55:08 -07:00
Autechre 6642868b86 Merge pull request #10518 from guoyunhe/patch-5
Unify mixer settings strings
2020-04-27 23:06:13 +02:00
twinaphex 14c63e0cd5 Bump version number 2020-04-27 23:05:30 +02:00
im-4-potato fcb4933671 US Translation: A few fixes for Title Case 2020-04-27 13:43:55 -07:00
im-4-potato 571d9708e1 US Translation: Sync with other changes 2020-04-27 13:18:30 -07:00
Autechre bd319de5cf Merge pull request #10517 from guoyunhe/patch-4
Force Aspect -> Force Aspect Ratio
2020-04-27 20:30:13 +02:00
Autechre 78a67bd775 Merge pull request #10516 from guoyunhe/patch-3
Framerate -> Refresh Rate
2020-04-27 20:29:57 +02:00
Autechre 3744f2454c Merge pull request #10519 from julianaito/master
Remove OpenBSD/macppc specific quirk
2020-04-27 20:29:40 +02:00
Autechre 39aae2872d Merge pull request #10525 from libretro/set_gamepad_bitwise_fix
Added small fix to set_gamepad_input_override bit logic.
2020-04-27 20:28:54 +02:00
Autechre e9a35c1cab Merge pull request #10524 from jdgleaver/config-write-on-change
Only write config files to disk when parameters change
2020-04-27 19:35:55 +02:00
Barry Rowe d87fa1799e Added small fix to set_gamepad_input_override bit logic. 2020-04-27 10:16:11 -07:00
jdgleaver 9eb8472805 Only write config files to disk when parameters change 2020-04-27 17:06:35 +01:00
im-4-potato 6921ca44a7 US Translation: More Fixes 2020-04-26 17:07:06 -07:00
im-4-potato 7b4a4d1da4 US Translation: More Fixes 2020-04-26 17:00:59 -07:00
im-4-potato 60cfbce48b US Translation: More fixes 2020-04-26 14:51:20 -07:00
im-4-potato 3e3a84a602 US Translation: More fixes 2020-04-26 12:36:47 -07:00
Charlène Wendling 0e4857c8f6 Remove OpenBSD/macppc specific quirk
OpenBSD/macppc moved to clang and __mftb() is not available anymore,
leading to undefined references errors. It's fixed with #10383 already.
2020-04-26 14:13:59 +02:00
im-4-potato 68021903c9 US Translation: More minor fixes 2020-04-26 03:15:24 -07:00
im-4-potato f803ee2c0b US Translation: A few more "save state" fixes 2020-04-26 03:00:16 -07:00
Guo Yunhe c40f2ae5bb Unify mixer settings strings 2020-04-26 12:14:57 +03:00
Guo Yunhe 8d71714446 Update msg_hash_us.h 2020-04-26 11:36:18 +03:00
Guo Yunhe cc6a5a6077 Update msg_hash_us.h 2020-04-26 09:37:34 +03:00
Guo Yunhe 004588d627 Update msg_hash_us.h 2020-04-26 09:30:49 +03:00
Guo Yunhe 49d0045434 Force Aspect -> Force Aspect Ratio 2020-04-26 09:24:11 +03:00
Guo Yunhe f5c7b1bf73 Framerate -> Refresh Rate
Based on the key and context, here should be `refresh rate` instead of `frame rate`.
2020-04-26 08:55:48 +03:00
im-4-potato 6972492fb4 US Translation: Changes tabs back to spaces 2020-04-25 20:52:10 -07:00
im-4-potato 311a7d40d2 US Translation: Style changes and more cleanup 2020-04-25 20:40:29 -07:00
twinaphex c88ffa56ff (Vulkan) Fix crash 2020-04-25 17:44:13 +02:00
Autechre 05b1785f24 Merge pull request #10511 from WeedyWeedSmoker/International-translations-fix-formatting
International: Fix formatting for all languages & Remove untranslated strings
2020-04-25 16:15:56 +02:00
Weedy Weed Smoker 9b99393c20 International: Fix 2020-04-25 20:43:42 +07:00
Weedy Weed Smoker 38c70d5705 International: Remove untranslated strings + fixes 2020-04-25 19:26:25 +07:00
Weedy Weed Smoker 8def289271 International: Formatting fix for all languages 2020-04-25 19:24:22 +07:00
Autechre 88abadce43 Merge pull request #10505 from WeedyWeedSmoker/Japanese-translation-update
Japanese: Fix multi-line strings
2020-04-24 20:44:11 +02:00
Weedy Weed Smoker 7f7680da6e Japanese: Remove extraneous spaces 2020-04-25 00:45:23 +07:00
Weedy Weed Smoker 7b71f22e85 Japanese: Fix multi-line strings 2020-04-25 00:16:36 +07:00
Autechre c4d6c9541c Merge pull request #10504 from altiereslima/master
Update msg_hash_pt_br.h
2020-04-24 07:50:09 +02:00
altiereslima 5a468c8b3e Update msg_hash_pt_br.h 2020-04-23 21:37:01 -03:00
altiereslima 12e68bf477 Update msg_hash_pt_br.h 2020-04-23 21:19:52 -03:00
Autechre 1040e57c94 Merge pull request #10498 from WeedyWeedSmoker/French-translation-update
French: Add optional playlist compression
2020-04-24 01:10:59 +02:00
Autechre b18219687c Merge pull request #10500 from jdgleaver/vulkan-stats-fix
(Vulkan) Fix display of statistics text
2020-04-24 01:10:52 +02:00
Autechre e6fcf73a1e Merge pull request #10501 from maksun/patch-1
[Retroarch] Tiny glitch when displaying version
2020-04-24 01:10:43 +02:00
maksun b92ac7d439 [Retroarch] Tiny issue when displaying version
Just two lines to fix #10445
2020-04-23 19:48:51 +02:00
jdgleaver 0e3026d41f (Vulkan) Fix display of statistics text 2020-04-23 17:48:15 +01:00
Weedy Weed Smoker 3346124d21 French: Add optional playlist compression 2020-04-23 19:41:20 +07:00
Autechre 89c405b196 Merge pull request #10487 from jdgleaver/playlist-compression
Add optional playlist compression
2020-04-23 13:30:58 +02:00
jdgleaver 69305fda96 (playlist.c) Remove unused variable 2020-04-23 12:04:08 +01:00
jdgleaver 8cf629b3c2 (playlist.c) Minor clean-ups 2020-04-23 11:55:17 +01:00
jdgleaver 25c6499c5d (playlist.c) Omit whitespace when writing compressed JSON format playlists 2020-04-23 10:49:16 +01:00
twinaphex bdf9969c7e Update libretro-common 2020-04-23 07:20:06 +02:00
Autechre 62c2842c86 Merge pull request #10478 from WeedyWeedSmoker/French-translation-update
French: Add optional save (SRAM) file compression, Clean up and organize FR translation & Formatting
2020-04-23 04:23:23 +02:00
Autechre e8fe4e26ff Merge pull request #10497 from yoshisuga/ios_tvos_audio_session_fix
[iOS] [tvOS] Fix audio getting cut off on interruption
2020-04-23 04:18:13 +02:00
Autechre 1085e553d5 Merge pull request #10496 from altiereslima/master
Update Portuguese Brazilian Translation
2020-04-23 02:43:08 +02:00
altiereslima e38808b17c Update Portuguese Brazilian Translation 2020-04-22 20:32:09 -03:00
Autechre 21f15d5cbd Merge pull request #10490 from phcoder/msb
Remove manual MSB_FIRST definitions and switch to retro_endianness.h
2020-04-22 21:16:45 +02:00
Autechre 0c42b643a9 Merge pull request #10491 from QuarkTheAwesome/master
[WiiU] Warning fixes+devkitPPC updates
2020-04-22 21:16:33 +02:00
Autechre 28bf33cd78 Merge pull request #10493 from QuarkTheAwesome/gfx-display-wiiu-patch
WiiU: gfx_display: fix non-vertex coordinates in draws using tex shader
2020-04-22 21:16:17 +02:00
Autechre 7f0f36fb7a Merge pull request #10495 from MrHuu/patch-6
(3DS) Add ID for TGB-Dual
2020-04-22 21:15:26 +02:00
MrHuu 941b369016 (3DS) Add ID for TGB-Dual
Add unique id for TGB-Dual .cia build
2020-04-22 21:07:42 +02:00
Yoshi Sugawara a85ed986de Set audio session category to ambient so sound does not get cut off on interruption (phone call/playing back audio) 2020-04-22 08:54:57 -10:00
Weedy Weed Smoker 21d0320e42 French: Add optional save (SRAM) file compression 2020-04-22 21:19:24 +07:00
hizzlekizzle 843503e92a Merge pull request #10492 from phcoder/3ids
IDs for uzem and neocd
2020-04-22 09:12:02 -05:00
Ash Logan 08dfd58994 WiiU: Enable -Wall
This is the standard, according to CONTRIBUTING.md
2020-04-22 23:37:18 +10:00
Ash Logan ed24d05752 WiiU: gfx_display: fix non-vertex coordinates in draws using tex shader
This second case is hit when there's a quad with different-coloured 
corners, since the tex shader is needed to support that. In the quad 
case, there are no vertexes, and the ->x,y,width,height fields are used 
instead.

Fixes #8519.
2020-04-22 23:35:46 +10:00
Vladimir Serbinenko 28d30064b6 IDs for uzem and neocd 2020-04-22 13:44:23 +02:00
Ash Logan 7bac0220dc libfat: Remove st_spare for new devkitPPC versions
slurped from 
https://github.com/devkitPro/libfat/commit/d6bb60a4baa360946c32588a829f908607d85780
2020-04-22 10:56:49 +10:00
Autechre cb510f04d8 Merge pull request #10488 from MrHuu/patch-5
(3DS) Allow control bindings for multiple players
2020-04-22 01:08:34 +02:00
MrHuu 92dc0dc6d0 (3DS) Allow button presses up to INPUT_MAX_USERS
This enables the 3DS to bind and use buttons and axis for users up to the maximum set by 'Max Users' in the input settings menu.
2020-04-21 20:52:49 +02:00
jdgleaver fa9290cf1e Add optional playlist compression 2020-04-21 16:44:26 +01:00
Vladimir Serbinenko 1fcdddf579 Remove manual MSB_FIRST definitions and switch to retro_endianness.h 2020-04-21 04:16:55 +02:00
Autechre ce4c750326 Merge pull request #10484 from Tatsuya79/patch-3
qt: add saveram compression option
2020-04-21 02:03:21 +02:00
Tatsuya79 ce99109001 qt: add saveram compression option 2020-04-21 01:50:05 +02:00
twinaphex 8a15f0094a Bugfix 2020-04-21 00:49:02 +02:00
twinaphex 3a2a365ec9 (libretro-common) Fix retro_endianness.h 2020-04-21 00:46:48 +02:00
Autechre 3529f2da4c Merge pull request #10481 from jdgleaver/save-compression
Add optional save (SRAM) file compression
2020-04-21 00:25:58 +02:00
twinaphex 64bbe5b646 (MSVC 2010) Buildfix 2020-04-21 00:20:31 +02:00
hizzlekizzle 2427d90f48 Merge pull request #10482 from jdgleaver/font-fix
(WiiU/3DS) Fix font driver horizontal text alignment
2020-04-20 14:50:21 -05:00
jdgleaver 6c49ae5152 (WiiU/3DS) Fix font driver horizontal text alignment 2020-04-20 16:20:21 +01:00
jdgleaver 0d1fd657ab Add optional save (SRAM) file compression 2020-04-20 12:48:40 +01:00
Weedy Weed Smoker b4cadb1a16 Caught another formatting error… 2020-04-20 06:49:17 +07:00
Weedy Weed Smoker a2192b14db Caught a formatting error… 2020-04-20 06:18:39 +07:00
Weedy Weed Smoker ae467486ba French: Translate all FIXME tagged elements too 2020-04-20 05:25:07 +07:00
Weedy Weed Smoker 88d162452a French: Clean up and organize FR translation 2020-04-20 04:53:17 +07:00
twinaphex 3fa60d08de Update libretro-common 2020-04-19 20:44:22 +02:00
twinaphex 1eb612135b Revert "Revert "Take this out - cores that need usleep and such - address it in""
This reverts commit 7e3a400cb7.
2020-04-19 19:18:53 +02:00
twinaphex 7e3a400cb7 Revert "Take this out - cores that need usleep and such - address it in"
This reverts commit 48b6b4ca8e.
2020-04-19 18:54:05 +02:00
twinaphex 48b6b4ca8e Take this out - cores that need usleep and such - address it in
the core itself, or rewrite the reference so it uses libretro-common
sleeping functions instead
2020-04-19 18:15:47 +02:00
Autechre c2319b3a21 Merge pull request #10470 from jdgleaver/ai-service-menu-hide
AI Service Menu - Hide redundant entries when service is disabled
2020-04-18 18:01:06 +02:00
twinaphex 9a50205867 Add this around ifdefs 2020-04-18 17:59:27 +02:00
jdgleaver b1503bc7c8 AI Service Menu - Hide redundant entries when service is disabled 2020-04-18 14:06:35 +01:00
im4potatoandim-4-potato d5d4c1a319 msg_hash_us.h: Clean up and organize US translation (#10460)
* msg_hash_us.h: Clean up and organize US translation

* msg_hash_us.h: More cleanup

* msg_hash_us.h: Update to latest version after syncing with upstream

* msg_hash_us.h: Removed indents from preprocessor lines

Co-authored-by: im-4-potato <[email protected]>
2020-04-17 21:07:51 -05:00
Barry Rowe 8988e2d34b Added additional return to accessibility_speak_windows 2020-04-17 14:07:28 -07:00
Autechre 9588eb451b Merge pull request #10467 from jdgleaver/ai-fixes2
More build fixes
2020-04-17 18:40:29 +02:00
Autechre acfa3fc4d4 Merge pull request #10465 from jdgleaver/rzip-stream-additions
Expand functionality of 'rzip_stream' interface
2020-04-17 18:40:14 +02:00
jdgleaver 6ef5fa1aa5 More build fixes 2020-04-17 17:08:12 +01:00
Autechre af140741bc Merge pull request #10466 from jdgleaver/ai-fixes
Build fixes
2020-04-17 17:50:29 +02:00
jdgleaver ddc860d4b0 Build fixes 2020-04-17 16:42:37 +01:00
jdgleaver c1f4a7536a Expand functionality of 'rzip_stream' interface 2020-04-17 16:18:16 +01:00
twinaphex b91c342ff4 Buildfix MSVC 2010 2020-04-17 16:40:39 +02:00
twinaphex 352519c91e Another builfdix 2020-04-17 16:32:10 +02:00
twinaphex f3b82dc998 Buildfix 2020-04-17 16:29:23 +02:00
twinaphex 9f3a2db44e Merge branch 'master' of https://github.com/libretro/RetroArch 2020-04-17 16:24:39 +02:00
Autechre 018a0baed6 Merge pull request #10401 from libretro/accessibility_menu_fixes
Accessibility menu fixes
2020-04-17 03:19:17 +02:00
Autechre ddaeb2b24b Merge pull request #10458 from WeedyWeedSmoker/French-translation-update
French: Add optional save state compression, corrections, formatting
2020-04-17 01:51:44 +02:00
Autechre 51183787af Merge pull request #10459 from AlexKornitzer/feature/cocoa-fix
ui_cocoa: fix mouse input for cocoa
2020-04-17 01:49:38 +02:00
Autechre 2e3b6c5a17 Merge pull request #10463 from phcoder/kbl1ght
Implement psl1ght keyboard
2020-04-17 01:49:18 +02:00
Autechre f5a8e16109 Merge pull request #10462 from phcoder/f1x
platform_unix: Fix overflow when computing total memory on i386
2020-04-17 01:48:59 +02:00
Autechre 950cd41dfa Merge pull request #10448 from CrewMdk/patch-2
Updated spanish language translation
2020-04-17 01:48:32 +02:00
Autechre 0b86348711 Merge pull request #10461 from Tatsuya79/patch-2
qt: add savestate compression option
2020-04-17 01:48:15 +02:00
Autechre c8555924e0 Merge pull request #10464 from phcoder/vitasleep
Add usleep and sleep on Vita.
2020-04-17 01:47:56 +02:00
Vladimir Serbinenko a029cb9fc5 Add usleep and sleep on Vita.
libstdc++ links against them under some circumstances. This is needed for
neocd
2020-04-17 00:58:01 +02:00
Vladimir Serbinenko 5b668ae421 Implement psl1ght keyboard 2020-04-17 00:56:23 +02:00
Vladimir Serbinenko 99e9a1ea0d platform_unix: Fix overflow when computing total memory on i386 2020-04-17 00:54:06 +02:00
Tatsuya79 56159976af qt: add savestate compression option 2020-04-17 00:10:02 +02:00
Alex Kornitzer ac4b49f1c2 ui_cocoa: fix mouse input for cocoa
This brings back two lines of code that have been removed over time but
appear to be required in order for mouse input to work on macOS.
2020-04-16 22:01:40 +01:00
Weedy Weed Smoker 875bb8bda3 International: Formatting corrections 2020-04-17 03:52:25 +07:00
Weedy Weed Smoker c76e46d930 French: Corrections for clarity 2020-04-17 03:50:58 +07:00
Weedy Weed Smoker baf67a7dff French: Add optional save state compression 2020-04-17 03:49:34 +07:00
Barry Rowe adb5c4c7dd Moved SAPI code into a define. 2020-04-16 11:57:39 -07:00
Autechre 5303ecee22 Merge pull request #10454 from jdgleaver/save-state-compression
Add optional save state compression
2020-04-15 20:41:30 +02:00
jdgleaver 233456df47 Add optional save state compression 2020-04-15 15:48:41 +01:00
CrewMdk 725ee77383 Updated spanish language translation
The latest additions from English to Spanish have been added.
2020-04-13 20:18:53 -05:00
Barry Rowe 289be872f3 Added in auto-translate support, fixes for ozone and glui accessibility, and support for nvda and SAPI narration. 2020-04-13 17:46:08 -07:00
Autechre 910da74519 Merge pull request #10442 from WeedyWeedSmoker/French-translation-update
French: Add optional per-playlist alphabetical sorting
2020-04-13 02:56:00 +02:00
Weedy Weed Smoker 2e0f85ac93 French: Add per-playlist alphabetical sorting 2020-04-13 01:35:49 +07:00
Autechre ef2e51b4f6 Merge pull request #10434 from jdgleaver/per-playlist-sort
(Playlist Management) Add optional per-playlist alphabetical sorting
2020-04-12 14:02:56 +02:00
Autechre af3980ff66 Merge pull request #10420 from m4tsa/libnx_update
Fix the single breaking change from libnx 3.1.0
2020-04-11 18:10:08 +02:00
Mats A e3cbd2e62f add define to keep compat with previous libnx release 2020-04-11 18:07:59 +02:00
Autechre d98731d5d9 Merge pull request #10415 from LordeIlluminati/LordeIlluminati-patch-1
Update msg_hash_pt_br.h
2020-04-11 14:41:10 +02:00
Autechre ca4328b53c Merge pull request #10437 from valadaa48/oga_perf_fix
oga_gfx: move non-inlined function out of loop
2020-04-11 14:40:35 +02:00
Autechre 26bed1e264 Merge pull request #10429 from phcoder/f1x
Fix psl1ght compilation
2020-04-11 14:26:30 +02:00
jdgleaver 4dec80e9e3 Style nits 2020-04-11 13:00:24 +01:00
valadaa48 587a425f77 oga_gfx: move non-inlined function out of loop 2020-04-11 02:30:39 +00:00
hizzlekizzle 8096ced303 Merge pull request #10433 from felinben/translation
Update retroarch.desktop for German
2020-04-10 19:47:09 -05:00
Linux User 86e8aeaaa5 Update retroarch.desktop for German 2020-04-10 17:41:19 +01:00
jdgleaver 223cae66c1 (Playlist Management) Add optional per-playlist alphabetical sorting 2020-04-10 17:07:49 +01:00
hizzlekizzle d6058bba82 Merge pull request #10430 from Alcaro/patch-3
intl/README.md: Fix typo
2020-04-09 16:24:29 -05:00
Alcaro 3249c10215 intl/README.md: Fix typo 2020-04-09 21:07:17 +02:00
Vladimir Serbinenko c957e07399 Fix psl1ght compilation
pkg.py is not necessatily in path
mftb works better than posix on psl1ght
2020-04-09 15:53:38 +02:00
Autechre df1fefd775 Merge pull request #10421 from jdgleaver/playlist-fixes
Improve handling of 'broken' playlists
2020-04-09 14:17:01 +02:00
Autechre d521945479 Merge pull request #10425 from jdgleaver/ozone-font-alignemnt
(Ozone) Enable proper vertical text alignment + thumbnail display improvements
2020-04-09 14:16:46 +02:00
Autechre 74fb8cb7b2 Merge pull request #10426 from jdgleaver/ozone-pointer-fix
(Ozone) Pointer input fixes
2020-04-09 13:38:08 +02:00
jdgleaver 887999904b (Ozone) Pointer input fixes 2020-04-08 17:09:38 +01:00
jdgleaver 545e5fd6ab (Ozone) Enable proper vertical text alignment + thumbnail display improvements 2020-04-08 15:15:39 +01:00
Jeff Sousa ac5e151d1e Update msg_hash_pt_br.h 2020-04-08 09:16:46 -03:00
Jeff Sousa c8d269e5de Update msg_hash_pt_br.h 2020-04-08 09:15:15 -03:00
Jeff Sousa e7173e974b Update msg_hash_pt_br.h 2020-04-08 09:10:34 -03:00
Jeff Sousa 7b0d527ffe Update msg_hash_pt_br.h 2020-04-08 08:46:57 -03:00
Mats A 6f5f600f47 rename U64_MAX to UINT64_MAX due to libnx changes 2020-04-07 13:23:06 +02:00
jdgleaver ad8a1174f7 Improve handling of 'broken' playlists 2020-04-07 12:00:16 +01:00
Jeff Sousa 24b5e5234f Update msg_hash_pt_br.h 2020-04-07 01:37:00 -03:00
LordeIlluminati 1d438d8d06 Update msg_hash_pt_br.h 2020-04-07 00:43:16 -03:00
LordeIlluminati 891372c4b1 Update msg_hash_pt_br.h 2020-04-07 00:24:29 -03:00
LordeIlluminati 3de030ba74 Update msg_hash_pt_br.h 2020-04-06 22:37:34 -03:00
LordeIlluminati a6dd70a320 Update msg_hash_pt_br.h 2020-04-06 22:31:15 -03:00
LordeIlluminati ffe79897e5 Update msg_hash_pt_br.h 2020-04-06 19:13:03 -03:00
Autechre b01aabf7d1 Merge pull request #10411 from jdgleaver/widget-text-alignment
Widget text improvements
2020-04-06 15:37:58 +02:00
Autechre 304e13ac16 Merge pull request #10412 from jdgleaver/task-fix
Fix task deadlocks
2020-04-06 15:25:25 +02:00
jdgleaver c1d41e190c (task_queue) Add warning about the usage of 'task_queue_remove()' 2020-04-06 14:16:24 +01:00
jdgleaver 13df7795fc Fix task deadlocks 2020-04-06 13:51:22 +01:00
jdgleaver f559798750 Widget text improvements 2020-04-06 11:39:30 +01:00
twinaphex e88568625c Merge branch 'master' of https://github.com/libretro/RetroArch 2020-04-06 01:04:23 +02:00
Autechre 0716fa02d6 Update CHANGES.md 2020-04-05 13:12:18 +02:00
Autechre 325a8a4cbd Merge pull request #10394 from CrewMdk/patch-1
Updated spanish language translation
2020-04-05 13:06:39 +02:00
Autechre b0820ca1db Merge pull request #10386 from jdgleaver/rgui-downscale
(RGUI) Enable automatic menu size reduction when running at low resolutions (down to 256x192)
2020-04-05 13:06:30 +02:00
Autechre 8d44c0c752 Merge pull request #10397 from Jamiras/cheevos_gba_no_mmap
[cheevos] report non-memorymap gba cores as unsupported
2020-04-05 13:06:15 +02:00
Autechre 5b5a086fd3 Merge pull request #10398 from Jamiras/cheevos_null_check
[cheevos] prevent null reference rendering achievement list while closing application
2020-04-05 13:05:59 +02:00
Autechre f7e6d9e7b8 Merge pull request #10399 from Jamiras/thread_queue_unfinished
fix race condition where task could momentarily not be in the queue when reordering
2020-04-05 13:05:49 +02:00
Autechre 1f43533ff9 Merge pull request #10400 from yoshisuga/yoshisuga/tvos_no_overlay
tvOS: Disable overlays for tvOS, fix app icon
2020-04-05 13:05:30 +02:00
Yoshi Sugawara 4f5616cb91 tvOS: Disable overlays for tvOS, fix app icon 2020-04-04 08:22:24 -10:00
Jamiras 23ba478f82 fix race condition where task could momentarily not be in the queue when reordering 2020-04-04 09:37:55 -06:00
Jamiras ff3b033815 prevent null reference rendering achievement list while closing emulator 2020-04-04 09:28:11 -06:00
Jamiras a08840de6d report non-memorymap gba cores as unsupported 2020-04-04 09:13:10 -06:00
CrewMdk ed34643f01 Updated spanish language translation 2020-04-03 20:36:06 -06:00
jdgleaver a9c496e01f (RGUI) Enable automatic menu size reduction when running at low resolutions (down to 256x192) 2020-04-02 16:54:39 +01:00
twinaphex a9154373fc Merge branch 'master' of https://github.com/libretro/RetroArch 2020-04-02 02:13:12 +02:00
twinaphex 92c472c227 Merge branch 'master' of https://github.com/libretro/RetroArch 2020-03-29 06:01:31 +02:00
twinaphex 4589fde775 Simplify video_context_driver_translate_aspect 2020-03-28 05:44:58 +01:00
twinaphex 8b8d9e0841 Style nits 2020-03-28 05:40:16 +01:00
twinaphex 19c68fad43 Take out cb_update_window_title and cb_get_metrics 2020-03-28 05:36:31 +01:00
SindenLightgun 68c11b1ab5 Stop lightgun offscreen centering the aim
When the lightgun aim was on the edges it was flagging as offscreen which is good but was also centering the aim to the centre of the screen which doesn't seem necessary.
2020-01-25 00:11:14 +00:00
SindenLightgun 9e2b39b85a Added non-X11 lightgun support
The current method for getting the lightgun aiming coordinates "udev_lightgun_aiming_state" only work in X11 which is shown if you follow the code through, the required coordinates are not set otherwise. I've added an X11 if statement and left that block of code as it is. For the non-X11 code block I've used the methods from the touchscreen/pointer function which successfully gets absolute coordinates back from the mouse device in non-X11. This update is tested and working on the Raspberry Pi for an absolute mouse based device and it was not working before.
2019-11-02 17:29:14 +00:00
2484 changed files with 547946 additions and 310359 deletions

No files matched your search

+6 -1
View File
@@ -1,4 +1,4 @@
# EditorConfig: http://EditorConfig.org
# EditorConfig: https://EditorConfig.org
# Top-most EditorConfig file
root = true
@@ -15,6 +15,11 @@ charset = utf-8
indent_style = space
indent_size = 3
# 2 space indentation
[*.{json,xml,yaml,yml}]
indent_style = space
indent_size = 2
# Tab indentation
[Makefile*]
indent_style = tab
+31
View File
@@ -0,0 +1,31 @@
# Upload sources to Crowdin for translation
name: Crowdin Workflow
on:
push:
branches:
- master
paths:
- 'intl/*_us.h'
- 'intl/*_us.json'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Setup Python
uses: actions/setup-python@v2
- name: Checkout
uses: actions/checkout@v2
- name: Crowdin Sync
shell: bash
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
cd intl
python3 crowdin_sync.py "$CROWDIN_API_KEY"
+39 -1
View File
@@ -8,6 +8,9 @@
*.dol
*.map
*.swp
*.cache
*.gcda
*.gcno
.tmp
.tmp.c
.tmp.cxx
@@ -33,6 +36,7 @@ Release
ipch
*.user
/bootstrap/gx/wii/app_booter/app_booter.bin
/wii/app_booter/app_booter.bin
*.zip
RetroArch-w32/
RetroArch-w64/
@@ -67,6 +71,7 @@ apple/RetroArch_iOS.xcodeproj/project.xcworkspace/*
/rsound.h
.pc
/media/shaders_glsl/
/media/shaders_slang/
/obj-w32/
.cproject
.settings
@@ -76,10 +81,30 @@ convert_rumble.awk
*~
assets
info
content_favorites.lpl
content_history.lpl
content_image_history.lpl
content_music_history.lpl
content_video_history.lpl
saves
screenshots
autoconfig
config
database
overlays
playlists
states
shaders/shaders_cg
shaders/shaders_glsl
shaders/shaders_slang
# Qt Creator
*.cflags
*.cxxflags
*.creator*
*.config
*.files
*.includes
# Wii U
*.depend
@@ -174,7 +199,7 @@ retroarch_switch.nso
# PS2
ps2/irx/*.c
ps2/libcdvd/lib/
*.irx
# Wayland
gfx/common/wayland/idle-inhibit-unstable-v1.c
@@ -185,3 +210,16 @@ gfx/common/wayland/xdg-decoration-unstable-v1.h
gfx/common/wayland/xdg-decoration-unstable-v1.c
gfx/common/wayland/xdg-shell.c
gfx/common/wayland/xdg-shell.h
# libretro-common samples
libretro-common/samples/streams/rzip/rzip
# DINGUX
*.opk
#VITA
param.sfo
*.wo
*.elf
*.self
*.vpk
+931 -6
View File
@@ -1,8 +1,933 @@
before_script:
- apt-get update -qq && apt-get install -y -qq git build-essential
- apt-get update -qq && apt-get build-dep -y retroarch
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-amd64-ubuntu:latest
build:
stages:
- build-prepare
- build
- prepare-for-static-cores
- trigger-static-cores
build-retroarch-windows-x64:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-mxe-win64-cross:gcc10
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch.exe
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- ./configure
- make -j2
- "MOC=/usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/bin/moc ./configure --host=x86_64-w64-mingw32.shared"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch.exe; fi
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist"
- "cd libretro-common/audio/dsp_filters && make -j$NUMPROC platform=win compiler=x86_64-w64-mingw32.static-gcc build=release && make -j$NUMPROC platform=win compiler=x86_64-w64-mingw32.static-gcc build=release strip && cd -"
- "cp -f libretro-common/audio/dsp_filters/*.dll ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cd gfx/video_filters && make -j$NUMPROC platform=win compiler=x86_64-w64-mingw32.static-gcc build=release && make -j$NUMPROC platform=win compiler=x86_64-w64-mingw32.static-gcc build=release strip && cd -"
- "cp -f gfx/video_filters/*.dll ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f retroarch.cfg ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/retroarch.default.cfg"
- "echo -e '[Paths]\nPlugins = ./' > ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/qt.conf"
- "/bin/bash /usr/lib/mxe/tools/copydlldeps.sh
--infile retroarch.exe
--destdir ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist/
--recursivesrcdir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/
--enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/bearer/
--enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/iconengines/
--enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/imageformats/
--enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/platforms/
--enforcedir /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/styles/
--copy
--objdump x86_64-w64-mingw32.shared-objdump"
- "rm -f ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist/opengl32.dll"
build-retroarch-windows-i686:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-mxe-win32-cross:gcc10
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch.exe
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "MOC=/usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/bin/moc ./configure --host=i686-w64-mingw32.shared"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch.exe; fi
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist"
- "cd libretro-common/audio/dsp_filters && make -j$NUMPROC platform=win compiler=i686-w64-mingw32.static-gcc build=release && make -j$NUMPROC platform=win compiler=i686-w64-mingw32.static-gcc build=release strip && cd -"
- "cp -f libretro-common/audio/dsp_filters/*.dll ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cd gfx/video_filters && make -j$NUMPROC platform=win compiler=i686-w64-mingw32.static-gcc build=release && make -j$NUMPROC platform=win compiler=i686-w64-mingw32.static-gcc build=release strip && cd -"
- "cp -f gfx/video_filters/*.dll ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f retroarch.cfg ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/retroarch.default.cfg"
- "echo -e '[Paths]\nPlugins = ./' > ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/qt.conf"
- "/bin/bash /usr/lib/mxe/tools/copydlldeps.sh
--infile retroarch.exe
--destdir ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist/
--recursivesrcdir /usr/lib/mxe/usr/i686-w64-mingw32.shared/
--enforcedir /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/bearer/
--enforcedir /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/iconengines/
--enforcedir /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/imageformats/
--enforcedir /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms/
--enforcedir /usr/lib/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/styles/
--copy
--objdump i686-w64-mingw32.shared-objdump"
- "rm -f ${MEDIA_PATH}/${CI_PROJECT_NAME}/redist/opengl32.dll"
build-retroarch-windows-msvc10-x64:
tags:
- msvc2010
stage: build
variables:
MEDIA_PATH: .media
MSYSTEM: MINGW64
ARCH: x86_64
MSYS_BIN_DIR: C:\msys64\usr\bin
SDK_BIN_DIR: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
RCEDIT_BIN_DIR: C:\Program Files\rcedit
PEDEPS_BIN_DIR: C:\Program Files\pedeps-0.1.9-win64\bin
before_script:
- $Env:HOME = "."
- $Env:Path += -join(";", "$Env:SDK_BIN_DIR", ";", "$Env:RCEDIT_BIN_DIR", ";", "$Env:PEDEPS_BIN_DIR")
artifacts:
paths:
- retroarch.exe
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
# Build RetroArch
- $Script:MakeCmd = "$Env:MSYS_BIN_DIR\env.exe $Env:MSYS_BIN_DIR\bash.exe -l -c 'make -f Makefile.griffin platform=windows_msvc2010_x64'"
- Invoke-Expression $Script:MakeCmd
- mt.exe -nologo -manifest "retroarch.exe.manifest" -outputresource:"retroarch.exe;#1"
- rcedit-x64.exe "retroarch.exe" --set-icon "media\retroarch.ico"
# Create .media subdirectories
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist" -ItemType Directory
# Copy audio/video filters
- Get-ChildItem -Path "libretro-common/audio/dsp_filters/*" -Include *.dsp | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio"
- Get-ChildItem -Path "gfx/video_filters/*" -Include *.filt | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video"
# Copy default config file
- Copy-Item -Path "retroarch.cfg" -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg/retroarch.default.cfg"
# Copy dll dependencies
# (note that msvc10 build should not have any, but this
# may change in the future)
- copypedeps.exe -r retroarch.exe "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist"
- Remove-Item "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist/retroarch.exe" -ErrorAction Ignore
build-retroarch-windows-msvc10-i686:
tags:
- msvc2010
stage: build
variables:
MEDIA_PATH: .media
MSYSTEM: MINGW32
ARCH: x86
MSYS_BIN_DIR: C:\msys64\usr\bin
SDK_BIN_DIR: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
RCEDIT_BIN_DIR: C:\Program Files\rcedit
PEDEPS_BIN_DIR: C:\Program Files\pedeps-0.1.9-win64\bin
before_script:
- $Env:HOME = "."
- $Env:Path += -join(";", "$Env:SDK_BIN_DIR", ";", "$Env:RCEDIT_BIN_DIR", ";", "$Env:PEDEPS_BIN_DIR")
artifacts:
paths:
- retroarch.exe
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
# Build RetroArch
- $Script:MakeCmd = "$Env:MSYS_BIN_DIR\env.exe $Env:MSYS_BIN_DIR\bash.exe -l -c 'make -f Makefile.griffin platform=windows_msvc2010_x86'"
- Invoke-Expression $Script:MakeCmd
- mt.exe -nologo -manifest "retroarch.exe.manifest" -outputresource:"retroarch.exe;#1"
- rcedit-x64.exe "retroarch.exe" --set-icon "media\retroarch.ico"
# Create .media subdirectories
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist" -ItemType Directory
# Copy audio/video filters
- Get-ChildItem -Path "libretro-common/audio/dsp_filters/*" -Include *.dsp | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio"
- Get-ChildItem -Path "gfx/video_filters/*" -Include *.filt | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video"
# Copy default config file
- Copy-Item -Path "retroarch.cfg" -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg/retroarch.default.cfg"
# Copy dll dependencies
# (note that msvc10 build should not have any, but this
# may change in the future)
- copypedeps.exe -r retroarch.exe "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist"
- Remove-Item "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist/retroarch.exe" -ErrorAction Ignore
build-retroarch-windows-msvc05-i686:
tags:
- win10
stage: build
variables:
MEDIA_PATH: .media
MSYSTEM: MINGW32
ARCH: x86
MSYS_BIN_DIR: C:\msys64\usr\bin
SDK_BIN_DIR: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
RCEDIT_BIN_DIR: C:\Program Files\rcedit
PEDEPS_BIN_DIR: C:\Program Files\pedeps-0.1.9-win64\bin
VS80COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\
before_script:
- $Env:HOME = "."
- $Env:Path += -join(";", "$Env:SDK_BIN_DIR", ";", "$Env:RCEDIT_BIN_DIR", ";", "$Env:PEDEPS_BIN_DIR")
artifacts:
paths:
- retroarch.exe
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
# Build RetroArch
- $Script:MakeCmd = "$Env:MSYS_BIN_DIR\env.exe $Env:MSYS_BIN_DIR\bash.exe -l -c 'make -f Makefile.griffin platform=windows_msvc2005_x86'"
- Invoke-Expression $Script:MakeCmd
- mt.exe -nologo -manifest "retroarch.exe.manifest" -outputresource:"retroarch.exe;#1"
- rcedit-x64.exe "retroarch.exe" --set-icon "media\retroarch.ico"
# Create .media subdirectories
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg" -ItemType Directory
- New-Item -Path "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist" -ItemType Directory
# Copy audio/video filters
- Get-ChildItem -Path "libretro-common/audio/dsp_filters/*" -Include *.dsp | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/audio"
- Get-ChildItem -Path "gfx/video_filters/*" -Include *.filt | Copy-Item -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/filters/video"
# Copy default config file
- Copy-Item -Path "retroarch.cfg" -Destination "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/pkg/retroarch.default.cfg"
# Copy dll dependencies
# (note that msvc05 build should not have any, but this
# may change in the future)
- copypedeps.exe -r retroarch.exe "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist"
- Remove-Item "$Env:MEDIA_PATH/$Env:CI_PROJECT_NAME/redist/retroarch.exe" -ErrorAction Ignore
build-retroarch-linux-x64:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-amd64-ubuntu:xenial-gcc9
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch
- retroarch_qt
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
# Qt build
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt"
- "./configure --prefix=/usr"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch; fi
- "make install DESTDIR=${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt prefix=/usr"
- "rm -rf ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt/etc"
- "cd ${MEDIA_PATH}/${CI_PROJECT_NAME}/ && tar -czf AppDirQt.tar.gz AppDirQt && rm -rf AppDirQt && cd -"
- "mv -f retroarch retroarch_qt"
# Non-Qt build
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir"
- "make clean"
- "./configure --disable-qt --prefix=/usr"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch; fi
- "make install DESTDIR=${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir prefix=/usr"
- "rm -rf ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir/etc"
- "cd ${MEDIA_PATH}/${CI_PROJECT_NAME}/ && tar -czf AppDir.tar.gz AppDir && rm -rf AppDir && cd -"
# Filters
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cd libretro-common/audio/dsp_filters && make -j$NUMPROC build=release && make -j$NUMPROC build=release strip && cd -"
- "cp -f libretro-common/audio/dsp_filters/*.so ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cd gfx/video_filters && make -j$NUMPROC build=release && make -j$NUMPROC build=release strip && cd -"
- "cp -f gfx/video_filters/*.so ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-retroarch-linux-i686:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-i386-ubuntu:xenial-gcc9
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
# Qt build
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt"
- "./configure --prefix=/usr"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch; fi
- "make install DESTDIR=${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt prefix=/usr"
- "rm -rf ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDirQt/etc"
- "cd ${MEDIA_PATH}/${CI_PROJECT_NAME}/ && tar -czf AppDirQt.tar.gz AppDirQt && rm -rf AppDirQt && cd -"
- "mv -f retroarch retroarch_qt"
# Non-Qt build
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir"
- "make clean"
- "./configure --disable-qt --prefix=/usr"
- "make -j$NUMPROC"
- if [ $STRIP_BIN -eq 1 ]; then strip --strip-unneeded retroarch; fi
- "make install DESTDIR=${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir prefix=/usr"
- "rm -rf ${MEDIA_PATH}/${CI_PROJECT_NAME}/AppDir/etc"
- "cd ${MEDIA_PATH}/${CI_PROJECT_NAME}/ && tar -czf AppDir.tar.gz AppDir && rm -rf AppDir && cd -"
# Filters
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cd libretro-common/audio/dsp_filters && make -j$NUMPROC build=release && make -j$NUMPROC build=release strip && cd -"
- "cp -f libretro-common/audio/dsp_filters/*.so ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cd gfx/video_filters && make -j$NUMPROC build=release && make -j$NUMPROC build=release strip && cd -"
- "cp -f gfx/video_filters/*.so ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
.build-retroarch-macos-xcode:
# Metal/Universal x86_64 arm64 is default
tags:
- macosx-packaging
stage: build
variables:
XCARCHIVE_PATH: pkg/apple/build/RetroArchUniversal
XCPROJECT_NAME: RetroArch_Metal
XCCONFIG: GitLabCI.xcconfig
artifacts:
paths:
- ${XCPROJECT_NAME}.zip
- retroarch-repo/
expire_in: 10 min
dependencies: []
script:
- xcodebuild -project pkg/apple/${XCPROJECT_NAME}.xcodeproj -config Release -scheme RetroArch -archivePath ${XCARCHIVE_PATH} -xcconfig pkg/apple/${XCCONFIG} archive
- pushd ${XCARCHIVE_PATH}.xcarchive/Products/Users/gitlab/Applications/
- ditto -c -k --sequesterRsrc --keepParent RetroArch.app RetroArch.zip
- popd
- mv ${XCARCHIVE_PATH}.xcarchive/Products/Users/gitlab/Applications/RetroArch.zip ${XCPROJECT_NAME}.zip
- mkdir .retroarch-repo
- "cp -r ./* .retroarch-repo"
- "mv .retroarch-repo/ retroarch-repo/"
# Mac OS Universal, Metal
build-retroarch-osx-universal-metal:
extends: .build-retroarch-macos-xcode
build-retroarch-osx-opengl-x64:
extends: .build-retroarch-macos-xcode
variables:
XCARCHIVE_PATH: pkg/apple/build/RetroArchOpenGL
XCPROJECT_NAME: RetroArch
XCCONFIG: OpenGL_GitLabCI.xcconfig
build-retroarch-ios-arm64:
extends: .build-retroarch-macos-xcode
variables:
XCPROJECT_NAME: RetroArch_iOS11_Metal
XCCONFIG: GitLabCI.xcconfig
XCSCHEME: "RetroArch iOS Release"
artifacts:
paths:
- retroarch-repo/
expire_in: 10 min
script:
- xcodebuild -project pkg/apple/${XCPROJECT_NAME}.xcodeproj -config Release -scheme "${XCSCHEME}" -xcconfig pkg/apple/iOS/GitLabCI.xcconfig build
- mkdir .retroarch-repo
- "cp -r ./* .retroarch-repo"
- "mv .retroarch-repo/ retroarch-repo/"
build-retroarch-ios9:
extends: .build-retroarch-macos-xcode
variables:
XCPROJECT_NAME: RetroArch_iOS9
XCCONFIG: GitLabCI.xcconfig
XCSCHEME: "RetroArchiOS9"
artifacts:
paths:
- retroarch-repo/
expire_in: 10 min
script:
- xcodebuild -project pkg/apple/${XCPROJECT_NAME}.xcodeproj -config Release -scheme "${XCSCHEME}" -xcconfig pkg/apple/iOS/GitLabCI.xcconfig build
- mkdir .retroarch-repo
- "cp -r ./* .retroarch-repo"
- "mv .retroarch-repo/ retroarch-repo/"
build-retroarch-tvos-arm64:
extends: build-retroarch-ios-arm64
variables:
XCSCHEME: "RetroArch tvOS Release"
build-retroarch-dingux-mips32:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-dingux:latest
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch
- retroarch_rg350.opk
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -j$NUMPROC -f Makefile.rg350"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-retroarch-dingux-odbeta-mips32:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-dingux:odbeta
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch
- retroarch_rg350_odbeta.opk
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -j$NUMPROC -f Makefile.rg350_odbeta"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-retroarch-rs90-odbeta-mips32:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-dingux:odbeta
stage: build
variables:
MEDIA_PATH: .media
STRIP_BIN: 1
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch
- retroarch_rs90_odbeta.opk
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -j$NUMPROC -f Makefile.rs90"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-retroarch-android-normal:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-android:latest
stage: build
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
script:
- "cd pkg/android/phoenix && ./gradlew assembleNormalRelease && cd -"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-retroarch-android-aarch64:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-android:latest
stage: build
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
script:
- "cd pkg/android/phoenix && ./gradlew assembleAarch64Release && cd -"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-retroarch-android-ra32:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-android:latest
stage: build
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
script:
- "cd pkg/android/phoenix && ./gradlew assembleRa32Release && cd -"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-retroarch-android-playstore-normal:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-android:latest
stage: build
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
script:
- "cd pkg/android/phoenix && ./gradlew bundlePlayStoreNormalRelease && cd -"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-retroarch-android-playstore-plus:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-android:latest
stage: build
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
script:
- "cd pkg/android/phoenix && ./gradlew bundlePlayStorePlusRelease && cd -"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-libnx-aarch64:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-libnx-devkitpro:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Static dummy builds without a core so its a good check if it properly builds
- build-static-retroarch-dummy-libnx-aarch64
script:
# Allow failure since we don't have a core
- "make -f Makefile.libnx -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-libnx-aarch64:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-libnx-devkitpro:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch_switch.nro
- retroarch_switch.elf
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.libnx -j$NUMPROC HAVE_STATIC_DUMMY=1"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f pkg/libnx/retroarch.jpg ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
build-static-retroarch-vita:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-vita:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
- retroarch-precompiled-gl/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-vita
script:
# Allow failure since we don't have a core
- "make -f Makefile.vita -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "make -f Makefile.vita clean"
- "HAVE_VITAGLES=1 make -f Makefile.vita -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled-gl"
- "cp -r ./* .retroarch-precompiled-gl/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
- "mv .retroarch-precompiled-gl/ retroarch-precompiled-gl/"
build-static-retroarch-dummy-vita:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-vita:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- eboot.bin
- param.sfo
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.vita.salamander -j$NUMPROC"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -fr pkg/vita/* ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
build-static-retroarch-ps2:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-ps2:latest
stage: prepare-for-static-cores
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-ps2
script:
# Allow failure since we don't have a core
# PS2 makefile for now doesn't allow -jX so this is why is hardcoded to -j1
- "make -f Makefile.ps2 -j1 ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-ps2:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-ps2:latest
stage: build
before_script:
# PS2 doesn't allow to use -jX for now
- export NUMPROC=1
artifacts:
paths:
- raboot.elf
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.ps2.salamander -j$NUMPROC release"
build-static-retroarch-psp:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-psp:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-psp
script:
# We need to boostrap before compile
- "(cd bootstrap/psp1/kernel_functions_prx/ && make && cd -)"
# Allow failure since we don't have a core
- "make -f Makefile.psp1 -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-psp:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-psp:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- EBOOT.PBP
- kernel_functions.prx
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "(cd bootstrap/psp1/kernel_functions_prx/ && make && cd -)"
- "make -f Makefile.psp1.salamander -j$NUMPROC"
- "make -C bootstrap/psp1/kernel_functions_prx/"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f pkg/psp1/ICON0.PNG ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f pkg/psp1/PIC1.PNG ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
build-static-retroarch-ctr:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-ctr
script:
# Allow failure since we don't have a core
- "make -f Makefile.ctr -j$NUMPROC USE_CTRULIB_2=1 ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-ctr-legacy:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:ctr-legacy
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
script:
# Allow failure since we don't have a core
- "make -f Makefile.ctr -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-ctr:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch_3ds.cia
- RetroArch.3dsx
- RetroArch.smdh
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.ctr.salamander -j$NUMPROC USE_CTRULIB_2=1"
- "mv -f retroarch_3ds_salamander.cia retroarch_3ds.cia"
- "mv -f retroarch_3ds_salamander.3dsx RetroArch.3dsx"
- "mv -f retroarch_3ds_salamander.smdh RetroArch.smdh"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-static-retroarch-wiiu:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-wiiu:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-wiiu
script:
# Allow failure since we don't have a core
- "make -f Makefile.wiiu -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-wiiu:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch.rpx
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.wiiu -j$NUMPROC SALAMANDER_BUILD=1"
- "mv -f retroarch_wiiu_salamander.rpx retroarch.rpx"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f pkg/wiiu/icon.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f pkg/wiiu/meta.xml ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
build-static-retroarch-wii:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-wii
script:
# Allow failure since we don't have a core
- "make -f Makefile.wii -j$NUMPROC EXTERNAL_LIBOGC=1 GX_PTHREAD_LEGACY=0 ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-wii:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- boot.dol
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "make -f Makefile.wii.salamander -j$NUMPROC EXTERNAL_LIBOGC=1 GX_PTHREAD_LEGACY=0"
- "mv -f retroarch-salamander_wii.dol boot.dol"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f pkg/wii/icon.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f pkg/wii/meta.xml ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
build-static-retroarch-ngc:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-ngc
script:
# Allow failure since we don't have a core
- "make -f Makefile.ngc -j$NUMPROC EXTERNAL_LIBOGC=1 GX_PTHREAD_LEGACY=0 ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-ngc:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-devkitpro:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
build-static-retroarch-emscripten:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-emscripten:latest
stage: prepare-for-static-cores
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- retroarch-precompiled/
expire_in: 10 min
dependencies: []
needs:
# Dummy build requires no core
- build-static-retroarch-dummy-emscripten
script:
# Allow failure since we don't have a core
- "emmake make -f Makefile.emscripten -j$NUMPROC ||:"
- "mkdir .retroarch-precompiled"
- "cp -r ./* .retroarch-precompiled/"
- "mv .retroarch-precompiled/ retroarch-precompiled/"
build-static-retroarch-dummy-emscripten:
image: $CI_SERVER_HOST:5050/libretro-infrastructure/libretro-build-amd64-ubuntu:latest
stage: build
variables:
MEDIA_PATH: .media
before_script:
- export NUMPROC=$(($(nproc)/3))
artifacts:
paths:
- ${MEDIA_PATH}
expire_in: 10 min
dependencies: []
script:
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f libretro-common/audio/dsp_filters/*.dsp ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/audio"
- "cp -f gfx/video_filters/*.filt ${MEDIA_PATH}/${CI_PROJECT_NAME}/filters/video"
- "cp -rf pkg/emscripten/libretro ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
- "cp -f media/canvas.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/icon_dark.ico ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/icon_light.ico ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/invader_dark.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/invader_light.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/libretro-logo.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/retroarch-16x16.ico ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/retroarch-16x16.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/retroarch-96x96.png ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
- "cp -f media/retroarch.ico ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg/media"
trigger_static-cores:
stage: trigger-static-cores
needs:
- build-static-retroarch-libnx-aarch64
- build-static-retroarch-vita
- build-static-retroarch-ps2
- build-static-retroarch-psp
- build-static-retroarch-ctr
- build-static-retroarch-ctr-legacy
- build-static-retroarch-wiiu
- build-static-retroarch-wii
- build-static-retroarch-ngc
- build-static-retroarch-emscripten
dependencies: []
script:
# Dummy for now
- /bin/true
+14 -25
View File
@@ -40,12 +40,16 @@ matrix:
env: CXX_BUILD=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_MENU=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_NETWORKING=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
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_THREADS=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
env: DISABLE_AUDIOMIXER=1 CC=gcc-8 CXX=g++-8
- compiler: gcc
@@ -66,37 +70,14 @@ matrix:
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: 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
provider: script
script: bash travis_metal_deploy.sh
on:
branch: master
- language: android
# Android builds are only supported on Trusty
dist: trusty
android:
components:
- tools
- build-tools-28.0.3
- android-28
- build-tools-29.0.3
- android-29
install:
- echo y | sdkmanager "ndk-bundle"
before_script:
@@ -136,6 +117,10 @@ before_script:
if [ -n "$DISABLE_OVERLAY" ]; then
ARGS="$ARGS --disable-overlay"
fi
- |
if [ -n "$DISABLE_NETWORKING" ]; then
ARGS="$ARGS --disable-networking"
fi
- |
if [ -n "$DISABLE_CDROM" ]; then
ARGS="$ARGS --disable-cdrom"
@@ -144,6 +129,10 @@ before_script:
if [ -n "$DISABLE_VIDEO_LAYOUT" ]; then
ARGS="$ARGS --disable-video_layout"
fi
- |
if [ -n "$DISABLE_THREADS" ]; then
ARGS="$ARGS --disable-threads --disable-glslang"
fi
- |
if [ -n "$DISABLE_AUDIOMIXER" ]; then
ARGS="$ARGS --disable-audiomixer"
+2 -3
View File
@@ -1,15 +1,15 @@
{
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
"terminal.integrated.env.windows": {
"PATH": "/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/lib/ccache/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:$PATH",
"MSYSTEM": "MINGW64",
},
"terminal.integrated.cursorBlinking": true,
"editor.tabSize": 3,
"editor.detectIndentation": false,
"editor.renderWhitespace": "all",
"editor.insertSpaces": true,
"editor.formatOnSave": false,
"files.associations": {
"frontend_driver.h": "c",
"*.in": "c",
@@ -63,7 +63,6 @@
"xtree": "c",
"xutility": "c",
"menu_input_dialog.h": "c",
"menu_filebrowser.h": "c",
"ozone_sidebar.h": "c",
"menu_thumbnail_path.h": "c",
"badges.h": "c"
+1 -1
View File
@@ -93,7 +93,6 @@ ekipan
Emmanuel Martin (daliaetnano)
endrift
erbridge
esoptron
Ethan Lee (flibitijibibo)
Exvat
Ezio-PS
@@ -214,6 +213,7 @@ Nathan S. (natinusala)
NathanStrong-Tripwire
nattycleopatra
nayslayer
Nephilim
netux79
nfnty
nia (ensra)
+652 -1
View File
@@ -1,18 +1,669 @@
# Future
# 1.9.7
- 3DS: Add unique ID's
- CRT/SWITCHRES: Fixed some Monitor index bugs ad updated to the latest SR2
- CRT/SWITCHRES: Fixed monitor index corruption on Windows and added correct fractal scaling. Only used when required
- CRT/SWITCHRES: Updated log defines to match SR upstream.
- CRT/SWITCHRES: Added new SR_CONFIG_PATHS for non Windows and Linux systems.
Not that SR works on them but to fix RA compile issues
- CRT/SWITCHRES: Updated SR2 code base to latest. Added supprt for windows monitor indexing. Fixed monitor index bug where index 1 was not being used correctly and "auto" was not being sent.
- CRT/SWITCHRES: Updated swithres for x86 windows fix
- CRT/SWITCHRES: fixed SR2 auto issue
- CRT/SWITCHRES: Fixed auto monitor bug
- CRT/SWITCHRES: Fixed monitor index corruption on Windows
- CRT/SWITCHRES: Fixed buffer size bug
- CRT/SWITCHRES: Added correct fractal scalling. only used when required.
- CORE INFO: Automatically disable core info cache when core info directory is read-only
- EMSCRIPTEN: add MAME2003 / MAME2003-plus to web.libretro
- INPUT/UDEV: udev fixes add pointer pressed to pointer device to allow udev users to access this device
- LIBNX/SWITCH: Enable 7zip support
- LINUX/XDG: Prevent xdg-screensaver's "Protocol error" messages
- LOCALIZATION: Fetch translations from Crowdin
- LOCALIZATION: Add missing languages for the first startup
- MENU/XMB/WIDGETS: Add workaround for FPU bug that breaks scale factor comparisons on certain platforms (fixes XMB thumbnails on 32bit Linux/Windows)
- MENU/RGUI: Enable fullscreen thumbnail toggle using RetroPad 'start' button
- MENU/RGUI: Fix sublabel length when menu clock is disabled
- NETWORK/HTTP: Fix HTTP progress indication for large files on 32-bit systems
- NETWORK/NATT: implement natt fix from void()
- OPENDINGUX: Fix display when cores 'drop' frames
- OPENDINGUX BETA: Use ALSA audio driver by default
- OPENDINGUX BETA: Fix IPU scaling when running 256x224 (SNES/Genesis) content
- PATHS: Fix garbled path string
- PS2: Implement proper ps2_font driver instead of using the font driver from gskit
- PS2: Use BDM for increasing up USB stability
- PS3: First basic RSX driver for PSL1GHT
- RS90: Initial port
- RS90: Fix offset of OSD text
- RS90: Disable menu clock by default
- RS90: Hide 'Bilinear Filtering' video option
- RS90: Move appdata (retroarch) base directory to external microsd card
- RS90: Add optional approximate 'semi-linear' scaling filter
- SHADERS: Max Shader Parameters increased to 1024
- VIDEO: Add 'Integer Scale Overlay' - Force integer scaling to round up to the next larger integer instead of rounding down
- VIDEO: New 'Full' aspect ratio added. This aspect ratio is useful when used with a shader which has a border in it. The aspect ratio is set to the full window area, so that the viewport spans the whole viewport. When using a border type shader like the Mega Bezel this allows the graphics to span the whole window regardless of the user's monitor aspect ratio
- VITA: Wrong flags for not piglet version
- UNIX: Correct backlight max_brightness path
- UWP/XBOX: Default to Direct3D11 driver on UWP builds
- UWP/XBOX: Do not use windowed mode on UWP/Xbox by default, set default resolution to 1920x1080 by default. Should fix display issues with Dolphin/PCSX2 on Xbox
- WIIU: Fix inputs breaking when connecting/disconnecting remotes
- WIIU: Input - ignore some bogus KPAD results
- WIIU: Font rendering fixes - render font lines with correct spacing, and only sample alpha channel when rendering fonts
- WIIU/NETWORK: Network speed optimisations - WINSCALE, TCP sACK, large buffers
- WIIU/LIBFAT: Increase cache size on WiiU
- WIIU/FILE IO: Filesystem optimisations - add fast path for already aligned buffers
- WIIU/FILE IO: Use 128K vbufs for WiiU - we have loads of RAM and large vbufs are very beneficial
- WIIU/MENU/OZONE: Fix Ozone rendering error (scissor fix)
- WIIU/MENU/OZONE: Use Ozone icons instead of XMB Monochrome
# 1.9.6
- ARCHIVE: Fix archive delimiter detection when file path contains no slashes
- ANDROID: Do not duplicate port 0 mouse and gun inputs to other ports
- AUDIO/XAUDIO2: Fail instead of crashing when disconnecting an audio device
- CHEEVOS: Reset cached progress each time menu is opened
- CRT/SWITCHRES: Add support for switchres.ini core and directory overrides
- D3D11: Don't use allow tearing flag with blit swap chains. Also disables the flip model if the allow tearing flag is not supported.
- D3D11: Disable DXGI's ALT+ENTER handling
- D3D11: Don't pass ALLOW_TEARING when unsupported
- D3D11: Fix non-vsynced output without flip, black screens in fullscreen
- D3D12: Relocated 'd3d12_gfx_sync'
- D3D12: Fixed swap interval option
- GFX: Fix uninitialized variables in gfx_display_draw_cursor
- HISTORY: Hide 'Add to Favorites' when viewing an entry of the favorites playlist
- INPUT: 'Analog to Digital Type' usability improvements
- INPUT: Add support for mapping multiple controllers to a single input device
- INPUT/REMAPPING: Add support for mapping multiple controllers to a single input device
- INPUT/LIGHTGUN: Bind lightgun trigger to first mouse button by default
- INPUT/WINDOWS/RAWINPUT: Mouse access violation fix
- INPUT/UDEV: Only add mouse if it has buttons and add vebose device friendly names
- INPUT/UDEV: Skip mouse with no button errors and keep the rest
- INPUT/UDEV: Fix Game Focus mode
- INPUT/UDEV/X11: Change udev driver for dual lightgun support in X11
- LIBNX/SWITCH: Update to libnx 4.0.0
- LOCALIZATION: Fetch translations from Crowdin
- LOCALIZATION: Fix Switchres menu texts
- MENU/OZONE: Ensure sidebar display status is updated correctly when performing rapid menu navigation
- MENU/XMB: Dynamic wallpaper fix
- MENU/XMB: Icon opacity fix
- MENU/QT/WIMP: Fix default core detection when playlist file name does not match 'db_name'
- PLAYLISTS: Optimise scanning of large rom sets
- SECURITY: Plug so-called high-risk vulnerability related to Powershell - avoid injection - don't send speech input as commandline argument
- UWP/XBOX: Add expanded resources Rescap to increase performance of UWP version in app mode on Xbox
- WINDOWS/INSTALLER: Add smarter isEmptyDir reference implementation that looks for subdirectories from NSIS documentation
- WINDOWS/INSTALLER: Register new function DirectorySet that is called when pressing the "Next" button on the MUI_PAGE_DIRECTORY, aka the install folder selection GUI. DirectorySet contains the criteria for an acceptable folder, which are:
- `IfFileExists "$INSTDIR\retroarch.exe"` returns 1
- `IfFileExists "$INSTDIR\*.*` returns 0, there is no existing folder
- `IfFileExists "$INSTDIR\*.*"` returns 1, there is a folder, and `isEmptyDir` returns 1, therefore the folder is empty, including of subdirectories
- X11: Fix threaded video segfault
# 1.9.5
- ALSATHREAD: Make alsathread default for all ALSA devices with threads
- ARCHIVE: Fix loading of archived content with file names containing '#' characters
- CHEEVOS: Upgrade to rcheevos 10.1
- CHEEVOS: Challenge indicators
- CHEEVOS: Group achievements by category in quick menu
- CHEEVOS: Relabel 'Start Active' with 'Encore Mode'
- D3D10: Window title should now update
- D3D11: Window title should now update
- D3D11: Allow fastforward in fullscreen
- D3D12: Window title should now update
- D3D12: Allow fastforward in fullscreen
- CRT/SWITCHRES: New implementation
- FONTS: Improve message wrapping with CJK languages
- FONTS: Fix garbled characters when converting encodings
- INPUT: Allow the 8 analog stick directions to be used as keys for core keyboard mappings
- LIBRETRO: Add API extension for setting 'need_fullpath' based on content file extension and to request persistent frontend content data buffers
- MENU/SEARCH: Add enhanced search functionality to the 'Manage Cores' menu
- OPENDINGUX: Fix black screens when triggering gfx driver initialisation via menu actions
- UNIX: Get better battery stats on sysfs nodes
- VIDEO: Extend Frame Delay range to 19 to accommodate PAL land too
- WIFI/LAKKA: Add nmcli to wifi drivers
- WIFI/LAKKA: Add wifi configuration menu
- X11: fix fullscreen when swapping monitors/resolution
# 1.9.4
- CHEEVOS: update rcheevos to v10.0.0
- CONTENT LOADING/FILE IO: Prevent unnecessary extraction (to disk) of compressed content files when need_fullpath is false
- CORE INFO/FILE IO: Enable core info cache by default now for all platforms
- CORE INFO/REGRESSION FIX: Fix regression caused by core info file caching - Downloads was no longer showing up in Load Content
- FILE IO/COMPRESSED: Ability to load content inside ZIP files directly into RAM
- INPUT/OVERLAYS: Add option to select between 'touched' elements and physical controller inputs when showing inputs on overlays
- INPUT REMAPPING/OVERLAYS: Prevent duplicate inputs when using remaps with input overlays
- LAKKA: Add brightness restore hook
- LOCALIZATION: Fetch translations from Crowdin
- MENU/OZONE: Added simple playlist entry enumeration
- MENU/XMB: Fix display of 'Maximum Users' menu entry dropdown list
- PS3/PSL1GHT: Joypad driver works again
- PSTV: Fix Vita input driver for PSTV
- PSTV: Support for 720p on PSTV when using 'Unlock framebuffer' in Sharpscale plugin
- PSTV: Fix scaling on PSTV when not using 720p
- RPNG: Fix some memory corruption if processing broken input PNG file
- SECURITY: Fix CVE-2021-28927
# 1.9.3
- 3DS: Disable menu screensaver animations in XMB/GLUI
- COMMAND: Initialize netcmd->cmd_source_len before recvfrom()
- CONTENT LOADING/STATICALLY LINKED: Ensure 'Always Reload Core on Run Content' setting is applied when loading content via the file browser
- CONTENT LOADING/EMSCRIPTEN: Fix content loading via file browser on platforms with 'broken' core handling (i.e. emscripten)
- CORE INFO: Skip whitespace when writing compressed core info cache files
- CORE INFO/FILE IO: Core Info cache; significant file I/O performance improvements on systems with slow disk file I/O
- CORE INFO/FILE IO: Enable core info cache by default on all 'console' platforms
- FREEBSD: FreeBSD build fix
- LAKKA: Support for tweaking CPU governors/scaling policies
- LAKKA: This adds managed policies and settings to store them and reload them at startup
- LIBRETRO API: Add API extension for cores to override frontend fast-forward state
- MENU/RGUI: Fix saving of config files/overrides when 'Lock Menu Aspect Ratio' is enabled
- SHADERS: Fix 'Auto-Shader Delay' functionality
- UWP/D3D11: Disable mipmap generation
- UWP/XBOX: Add 'Force 4K resolution' option (Force the resolution to the fullscreen size on Xbox, if set to 0, a fixed value of 3840 x 2160 will be used)
# 1.9.2
- 3DS: Enable graphics widgets / overlays
- 3DS: Load texture images as BGR colors
- 3DS: Change default asset directory
- CHEEVOS: Allow rcheevos_patch_address to be called on game without achievements
- CHEEVOS: Update achievement memory maps (add Supervision)
- CONFIG/FILE: Use hash map to optimise key/value lookups
- CORE INFO: Performance optimisations + code clean-ups/refactors
- CRT/SWITCHRES: Fixed CRTSwitchRes framebuffer bug
- DISCORD/RP: Fix regression
- DRM: set the correct video mode
- FASTFORWARD: Enforce minimum fastforward_ratio of 1.0
- FONTS/FREETYPE/STB_UNICODE/BITMAPFONT: Prevent texture bleed when rendering text at non-integer scales
- INPUT: Ensure that 'retro_set_controller_port_device' is called when updating 'Max Users'
- INPUT/XEGL/MOUSE: Fix xegl_ctx.c mouse activation
- INPUT/SDL: Fix crash in SDL input driver when analogs are bound.
- INPUT/POINTER: Add scaling to pointer input.
- INPUT REMAPPING: Fix regression on loading file
- INPUT REMAPPING: Fix regression where disabling input remapping would disable input
- IOS: Disable system button gestures on iOS 14
- IOS: Prevent potential crash on controller connect - randomly would get a crash when connecting a game controller while RA was running
- LAKKA: Add menu for time zone setting
- LOGGING: RARCH_LOG_V checking for verbosity level is not necessary and can cause issues; removed said check.
- LOGGING: Silence inappropriate cheatfile logging
- IOS/MAC: Add CPU VFP unit detection for Darwin
- MAC: Swallow 'escape' key being pressed - would previously make the game toggle between fullscreen and windowed
- MAC: Intel and ARM64 timer change proposal.
- MAC/ARM64: run_fast_mode disabled for 64 bits invalid instructions.
- MAC/OPENGL: Fix codesigning issue
- MAC/UNIVERSAL: Add TTS translation service support.
- MENU: Add optional menu screensaver
- MENU: Add search filter support to cheats and overlays file browser menus
- MENU/FILEBROWSER: Enhanced 'Load Content' file browser search functionality
- MENU/INPUT: Block accidental diagonals in menu navigation
- MENU/RGUI: Add option to disable menu transparency
- MENU/RGUI: Fix display of 'Video > Scaling' menu when 'Lock Menu Aspect Ratio' is enabled
- MENU/MATERIALUI: Add icon to 'Turbo Fire' menu entry
- MENU/OZONE: Ozone Dracula theme
- OPENDINGUX/BETA: Fix IPU scaling when running GBA-resolution content
- OPENDINGUX/BETA: Add 50Hz support
- OPENDINGUX: Enable 'SaveRAM Autosave Interval' by default
- PATCHES: Added multi-softpatching support + OSD messages for patches
- RHMAP: Track the complete string in rhmap
- VITA: Align VM block size to 1MB - should fix one of the issues with gpSP
- WINDOWS/GDI: Fix non-ASCII text rendering
- XEGL: Fix mouse not working when using OpenGLES with X11
# 1.9.1
- 3DS: Graphics widgets support
- 3DS: On error, only init gfx on salamander build. This prevents graphical issues if the gfx is already initialized.
Which should always be the case if called from a running core
- 3DS: Update error applet
- 3DS: Enable online Core Updater
- 3DS: Guard threading
- 3DS: Allow sideways screen rotation
- 3DS: Enable threading and add a threaded audio driver
- ANDROID: Implementation of fullscreen over notch function (for Android 9.0 and up)
- ANDROID: Add Play Store module support.
- ANDROID: Add option to switch all installed cores to Play Store versions
- AUDIO: Memalign audio buffers to 64 bytes. This is the most common cache line size, helps with performance. Also fixes issues with platforms like PSP that wrongly assume that malloc returns aligned buffers (to 16bytes). This recently broke the PSP builds
- AUDIO/ALSA: Fix float format detection
- AUDIO/JACK: Deinterleave in the process callback. This allows us to avoid the extra copy to the deinterleave buffer and lets us use only a single jack ringbuffer.
- AUDIO/JACK: (Audio/JACK) Fix non-blocking write. Previously we would wait on the condition variable even in the non-blocking case. This improves fast-forward performance massively and brings JACK in line with other backends in that regard.
- AUDIO/XAUDIO2: Fix threaded audio bugs with cores like Dinothawr
- CONFIG: Add support for saving per-directory core options and deleting core option overrides
- CONFIG: Enable saving of changed parameters when '#include' directives are used
- CONFIG/DIRS: Enable configuration of the directories used for Favorites, History, Images, Music and Video playlists
- CONFIG/REMAPS: Allow loading core remaps without content
- CONFIG/OVERRIDES: Fix empty override paths when launching without content
- CHEATS: Maximum search value corrections
- CHEEVOS: Generic memory mapping using rcheevos
- CHEEVOS: Ensure badge textures are released before video driver is deinitialized. Should fix crashes with slang shaders.
- CHEEVOS: Include achievement runtime state in save states
- CHEEVOS: Prevent hardcore toggle when emu-handled cheats are active
- CHEEVOS: Add confirmation submenu to achievements hardcore toggle
- CHEEVOS: Calculate leaderboard widget spacing based on video resolution
- CHEEVOS: Show unsupported core message when viewing achievement list for unsupported core
- CHEEVOS: Allow disabling leaderboard notifications and trackers separately
- CHEEVOS: Add display widget for active leaderboards
- CHEEVOS/CORE OPTIONS: Core options blacklist. Disables hardcore mode when certain core options are set.
- CLI: Add option for quitting on close content
- CONTEXT/DRIVER SWITCHING: Allow context switching from gl to glcore
- CORE OPTIONS: Add option to reset all core options for current core/content
- CORE OPTIONS: Add per-folder core options
- CRT/SWITCHRES: Improvements
- CRT/SWITCHRES: Low resolution switch bug fix - This allows resolutions lower that 32x224 like 256x224 to work
- CORE DOWNLOADER: Enhanced core downloader search functionality
- D3D10: Should now be able to use shaders with hardware-accelerated libretro cores
- D3D11: Should now be able to use shaders with hardware-accelerated libretro cores
- D3D11: Skip shader/stock blend when we don't have a texture. This happens if the core calls video_cb with the frame set to null on
the first frame, and was causing black screens/driver resets. The ffmpeg core seems to do this.
- D3D11: Fix shaders with scaled framebuffers
- D3D11: Add flip model support - fallback to blit model for OSes where flip model is not supported (windows 7 and earlier). Will add a menu option later allowing the user to switch inbetween the two
- D3D12: Should now be able to use shaders with hardware-accelerated libretro cores
- D3D10/11/12: Increase sprite capacity, we need this so that the hardware rendered menu drivers doesn't glitch out
- DRM: Fix race condition in drm_surface_set_aspect
- DRM/KMS: add support for custom hdmi_timings / modes
- DATABASE: Fix crash that could happen when selecting cursor
- DATABASE/EXPLORE: Fix - Prevent segfault when accessing 'Explore' menu
- EMSCRIPTEN: Only report back one screen pointer for rwebinput, fixes lockup when clicking on an overlay
- FILEIO/PERFORMANCE: Only attempt to call dir_check_defaults once per runtime session
- FILEIO/PERFORMANCE/3DS: Increase file buffer size and savestate chunk size. This seems to help with saving large savestates.
- FONTS: Improve handling of Arabic and Persian text
- FONTS/FREETYPE: Use fontconfig to select fonts if available
- INPUT: Add hold mode for turbo fire 'Single Button'
- INPUT MAPPING: Refresh bind list on device type change
- INPUT MAPPING/REMAPPING: Minor bugfix - Remap file browsing starts navigation at input_remapping_directory even if the core-subdir (where saved files go) exists
Having remaps for many different cores makes finding the active core files cumbersome, especially because remaps are not compatible between different cores (but maybe for cores emulating the same hardware)
- IOS: Take out 'Core Downloader' from iOS 9/iOS 11 builds
- IOS: IOSApp doesn't crash anymore when a file is shared to it
- INPUT: Keyboard device mapper rework
- INPUT: New input bind order scan/clear fix
- INPUT: Duplicate key event blocking additions
- INPUT: Prevent duplicate key events with hotkeys + keyboard device type
- INPUT: Keyboard LED driver
- INPUT/AUTOCONFIG: Allow controllers with no/empty names to work.
- INPUT/GAME FOCUS: Add option to automatically enable 'game focus' mode when running/resuming content
- INPUT/HOTKEYS: Hotkey for Close Content / Unload Core
- INPUT/LIBCEC: Map libcec-daemon keys to RETROK
- INPUT/X11: Enable keyboard input when mouse cursor is not inside the RetroArch window but window still has focus
- INPUT/X11: Fix mouse input when mouse is grabbed
- INPUT/UDEV/RUMBLE: Fix rumble.
- INPUT/WINDOWS/DINPUT: Simultaneous shift sticky fix
- INPUT/WINDOWS/DINPUT: Prevent Win-key from opening Start Menu
- INPUT/WINDOWS/DINPUT: Option for disabling Windows hotkeys
- INPUT/WINDOWS/DINPUT: Mouse grabbing/clipping with Alt-Tab
- INPUT/WINDOWS/DINPUT: Mouse grab fixes
- INPUT/WINDOWS/RAWINPUT: Key position fixes
- INPUT/WINDOWS/RAWINPUT: Mouse grab fixes
- INPUT/WINDOWS/RAWINPUT: Prevent outside window mouse clicks when grabbed
- INPUT/WINDOWS/RAWINPUT: Option for disabling Windows hotkeys
- INPUT MAPPING/REMAPPING: Major bugfix - Remap file having a different device type requires manual intervention after loading for the core to register the type properly
- JSON: New faster json parser/writer library rjson
- JSON/RJSON: Replace rapidjson parser/writer in discord-rpc with rjson
- LIBRETRO: Add API extension for cores to query the number of active inputs provided by the frontend
- LIBRETRO: Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available
- LIBRETRO: Add API extension for overriding frontend audio latency
- LIBRETRO: Add API extension for cores to monitor frontend audio buffer occupancy
- LINUX: Also show /run/media or /run/media/$USER in drives list
- LINUX: Adjust brightness according to the limit. Seems like some platforms feature non-standard maximums, but the variable is correclty exported for us to use
- LOCALIZATION: Add Finnish language
- LOGS/SHADER: Shader log spam reduction
- LOGS/CONFIG: Config logging cleanup
- LOGS/SAVESTATE: Config logging cleanup
- MAC: Apple Silicon/Mac M1 support
- MAC: Code signing/notarization
- MAC: Fix a leak with NSTemporaryDirectory() on ARC (Automatic Reference Counting) code
- MAC: Support bundle assets extraction on macOS
- MAC: Universal Metal build for both ARM and Intel Macs
- MAC/UNIVERSAL: Add CoreAudio3 audio driver for Metal Universal build
- MAC/IOS: Only extract assets once on first install
- MENU: Add 'L2 + R2' menu toggle gamepad combo
- MENU: Menu text improvements; clarifications, consistency, text mistakes,
- MENU: Tweak menu scroll initial hold delays
- MENU: Restrict menu acceleration to navigation buttons
- MENU: Add 'Menu Driver' setting to 'User Interface'
- MENU: Relocate 'Menu Scroll' settings.
- MENU: Separate 'Turbo Fire' menu.
- MENU: Dropdown menu for 'Custom Aspect Ratio' setting.
- MENU: Reorder Mouse Index next to Device Index
- MENU: Submenu for Device Index/Mouse Index
- MENU: Reorganize User Interface menu
- MENU: Add 'Remove DSP Plugin' menu entry
- MENU: Hide 'Auto-Shader Delay' menu setting when shaders are unavailable
- MENU/ANIMATIONS: Fix non-smooth text ticker + reduce line ticker code duplication
- MENU/ANIMATIONS/OZONE: Add cursor wiggle animation
- MENU/ANIMATIONS/OZONE: Implement wiggling for main menu when wrap-around is disabled
- MENU/NOTIFICATIONS: On-Screen Notifications' menu clean-ups
- MENU/NOTIFICATIONS: Add option to show/hide Refresh Rate notification
- MENU/FILEBROWSER: Start auto-selecting last used path for more file browser menu entries
- MENU/INPUT: Input port label adjustments
- MENU/INPUT/XMB: Proper control port icons
- MENU/INPUT/OZONE: Proper control port icons
- MENU/QUICK MENU: Add remap clearing ability under Quick Menu controls
- MENU/QUICK MENU: Cap 'State Slot' drop-down list to a maximum of 1000 (+Auto) entries
- MENU: Customizable menu scroll hold delay.
- MENU/DESKTOP: Fix mouse cursor limited by window range on F5 press
- MENU/DESKTOP: Add simple shader option
- MENU/DESKTOP/WINDOWS: Remove broken 'Update RetroArch' functionality for Windows. We want this to not only be system agnostic if we bring it back, but also work outside of the Qt desktop interface
- MENU/OZONE: New Theme - Twilight Zone
- MENU/RGUI: Add 3:2, 5:3 and 3:2/5:3 (centered) aspects
- MENU/RGUI/TEXT RENDERING: Add Russian language text support
- MENU/RGUI/TEXT RENDERING: Add support for CJK punctuation glyphs
- MIDI/WINMM: Recover from MIDI messages not handled by the device
- MIDI/WINMM: Fix winmm midi driver hanging on content closing
- NETWORK: Add READ/WRITE_CORE_MEMORY network commands
- NETWORK: Fix backwards condition in socket blocking behavior
- NETWORK/NETPLAY: Attempt IPv4 when IPv6 fails
- OGA/VIDEO: support for OGS
- OGA: This keeps the tradition DRM driver along with the OGA one. The probe
function skips the driver if the screen is non rotated to fall back to
the regular DRM driver.
- OGA: Fix messages from not disappearing
- OGA: Implement RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER. This is a faster rendering codepath for software rendered libretro cores that some libretro cores use right now. Video drivers in RetroArch have to explicitly implement this for this codepath to work at runtime.
- OPENDINGUX: Add/Optimise rumble interface
- OPENDINGUX: Fix frozen video when enabling fast forward
- OPENDINGUX/SDL: OSD font clean-up
- OPENDINGUX/SDL: Enable selection of image interpolation method when using 'sdl_dingux' gfx driver
- OPENDINGUX/SDL: Enable integer scaling when using the 'sdl_dingux' gfx driver
- OVERLAYS: Add option to scale overlays automatically (with aspect ratio correction)
- OVERLAYS: Hide Overlay When Gamepad is Connected. Overlays will be hidden automatically when a gamepad is connected in port 1, and shown again when the gamepad is disconnected.
- OVERLAYS: New default overlays for mobile (neo-retropad)
- OVERLAYS: In addition to overlay scale, the user can now set an Overlay Aspect Adjustment factor. Most overlays are designed for 16:9 displays, which means they become stretched/ugly on modern wide aspect phones and suchlike. By changing the Overlay Aspect Adjustment factor, a user can scale the overlay width/height to achieve a uniform appearance regardless of display resolution.
- OVERLAYS: Since scaling a gamepad overlay can result in buttons being squished too close together (or being pulled too far apart), the user can now adjust the effective spacing of the different 'halves' of an overlay via Overlay Horizontal Separation and Overlay Vertical Separation factors. Overlay Horizontal Separation divides the overlay in two vertically (left/right, at the centre point), and applies a spacing offset (positive or negative) between the UI elements on each side; Overlay Vertical Separation does the same, but the split is horizontal (top/bottom)
- OVERLAYS/FIX: The Overlay X Offset and Overlay Y Offset options have been fixed, and now work correctly
- OVERLAYS/FIX: All of the above options (and Overlay Scale) are configured and saved independently for landscape and portrait display orientations - so adjusting everything for a nice landscape layout won't break the portrait display
- OVERLAYS/FIX: When using the Vulkan gfx driver, memory is leaked every time an overlay is freed
- OVERLAYS/FIX: When threaded video is enabled, loading overlays with no images (i.e. utility-type overlays, where everything is hidden until the screen is touched) can generate segfaults due to improper usage of realloc()
- OVERLAYS/FIX: When Show Inputs on Overlay is enabled, ASAN reports bit shift errors due to an incorrect range check when handling turbo inputs - essentially, there is no upper limit to the considered input id range, which means overlay hotkeys (menu toggle, etc.) are incorrectly treated as having turbo support, causing bit shifts using wildly inappropriate id indices
- PLAYLISTS/PORTABLE: Fixed first load initialization
- PS2: Added Multitap support (up to 8 players)
- PS2: Fix for not recognized digital and other non-standard controllers
- PS2: Fix Quitting from RA
- PS2: Add Audio mixer
- REWIND: Prevent 'Rewind Frames' from being set to '1' incorrectly on load content
- RUNAHEAD: Add Run-Ahead Toggle hotkey with notifications
- RBUF/ANIMATIONS: Simplify gfx_animation by switching from dynarray to rbuf
- RBUF/CORE UPDATER: Replace static entries array with dynamic array via RBUF library
- RBUF/M3U: Replace static entries array with dynamic array via RBUF library
- SENSORS: Android (crash-)fixes/improvements + add option to disable sensor input
- SDL2/VIDEO: Get the SDL2 video driver to work in Wayland/KMS
- SAVESTATES: Adding savestate garbage collector for autoincrement stavestates. As some issues indicate, there's an issue with
the autoincrement save slot feature: slot index will increase and very old saves won't be deleted. This adds support to delete old save states with a user defined
save state limit (global). Instead of wrapping around the slot counter it will simply delete the oldest save, since it is simpler. For now there's a limit of one deletion per save, which ensures a user cannot delete many saves by accident if they set the limit too low.
- SAVESTATES/SAVEFILES: Ensure save file and playlist compression is disabled by default
- SHADERS: Add option to remember last selected shader preset/shader pass directories
- SHADERS: Use last selected shader preset directory when changing shaders via previous/next hotkeys
- SHADERS: Remove Parameters line
- SHADERS: Shaders fix for duplicate parameters loading bug
- SHADERS: Fix Crash change num shader passes in UI
- SHADERS/SLANG: Fix slang shaders with rotation
- STREAMING/FFMPEG: Add Facebook Game Stream option (for embedded ffmpeg core-enabled RetroArch builds)
- SWITCH: Fix input bind icons being off by one line
- SWITCH: Fix audio issues
- TLS/SSL: Add BearSSL support, as alternative to mbedTLS
- VIDEO: AddVariable BFI (Black Frame Insertion)
- VIDEO/DRM GO2: Dynamic resolution support
- VIDEO FILTERS: Video filter optimisations
- VIDEO FILTERS: Add several LCD-effect video filters
- VIDEO FILTERS: Gameboy/Dot_Matrix video filters: Add XRGB8888 support
- VIDEO FILTERS: Add Normal4x video filter
- VIDEO FILTERS: Add 'Upscale_256x-320x240' video filter
- VIDEO FILTERS: Add 'Upscale1.5x' video filter
- VITA: Disable temporarily VitaGL
- VITA: Fix bubble name
- VITA: proper handling of boot params
- VITA: Default menu scale 1.5x to improve readability
- WIFI/LAKKA: Add a proper WiFi menu, with Enable/Disable & Disconnect options. This also allows WiFi passwords to be remembered. The underlying tool (connman) allows to store passswords (that's why it auto connects whenever you boot a Lakka device), so we expose this so that the user does not have to re-input the pass when connecting to a saved wifi.
- WII/HID: Added HID support for HORI mini wired ps4 gamepad
- WINDOWS: Add support for accelerators to main win32 message loop
- WINDOWS: Add accelerators for Open (Ctrl+O) and Fullscreen (Alt+Enter)
- WINDOWS: Fixes some file I/O failures on Windows when paths are longer than 260 characters.
- WINDOWS: Fix crashing on startup on Windows when using Chinese Simplified language.
- WINDOWS/XP: The OpenGL 1 video driver is now the default for maximum backwards compatibility upon first startup. It's of course always possible for the user to change this.
- WINDOWS/MENUBAR: Load accelerators, Localize Win32 menu items to current language, and display shortcut keys
- WINDOWS/MENUBAR: Add 'Reinit' to Menubar
- WINDOWS/MSVC: Fix rewind crash on MSVC build when using SSE2
- UWP: Don't default to XMB menu by default, default to Ozone instead
- UWP/VFS: Use Win32 file APIs when possible - better file I/O performance
- WIIU/FILEIO/PERFORMANCE: Faster startup times - remove the path_is_valid() call when loading textures
- WIIU: Fix touchscreen mouse emulation
# 1.9.0
- 3DS: Fix sound crackling when paused
- ANDROID/VIBRATION: Fixes "Vibrate on Key Press" having no effect on Android devices, which occurred because only the off time/strength was defined in what should have been a pair of off/on values
- AUTOCONFIG: Ensure correct directory is used when saving autoconfig profiles
- BLUETOOTH: Add a Bluetooth driver (Lakka-only for now)
- CHEATS: Fix for wrong number of remaining cheat search matches on some machines
- CHEEVOS: Option to play sound on achievement unlock.
- CHEEVOS: Upgrade to rcheevos 9.1
- CHEEVOS: Restore display of unlocked achievements across hardcore modes
- CHEEVOS: Hash buffered data when available
- CHEEVOS: Fix 'Auto Save State freezes RetroArch while Cheevos is enabled'
- CORE OPTIONS: Pressing OK (or clicking/tapping) on a 'boolean toggle' core option no longer opens a drop-down list. The value now toggles directly, just like boolean options everywhere else in the menu
- CORE OPTIONS: Toggling an option that changes the number of core options being displayed (i.e. things like `Show Advanced Audio/Video Settings) no longer resets the navigation pointer to the start of the list
- CORE OPTIONS: Before, RetroArch would identify core option values as being 'boolean' if they had labels matching the specific strings enabled or disabled. Most core devs would abide by this, but not always... As a result, we sometimes would end up with misidentified values, with all kinds of Enabled, Off, True, etc. strings littering the menu, in place of proper toggle switches. All boolean-type value labels are now detected, and replaced with standard ON/OFF strings.
- CLI: A new command line option --load-menu-on-error has been added
- CRT: On the fly CRT porch adjuments - these changes allow a user to adjust how the porch algorithm generates the 15khz/31khz output. Giving the ability to change over/under scan.
- CONFIG FILE: Optimise parsing of configuration files
- D3D9/D3D11: Fix core-initiated D3D9/D3D11 driver switches
- DRIVERS: Implemented protection to avoid setting critical drivers to nothing thus preventing the user from locking him/herself out of the program
- EMSCRIPTEN: Fix input code to ignore unknown keys
- FFMPEG CORE: Prevent seeking past the end of files (hang fix)
- FILE I/O: VFS and NBIO interfaces will now use 64-bit fseek/ftell where possible, should allow for reading/writing to files bigger than 2GB
- INPUT MAPPING/REMAPPING: Add input remap drop-down lists
- IOS: Fixed iOS 6 version
- IOS: Hide the home indicator as it obscures the content too frequently
- IOS/METAL: Metal video driver now works on RetroArch iOS
- IOS/METAL: Support getting video metrics to support proper touchscreen interactions
- LOCALIZATION: Updates for several languages (synchronized from Crowdin)
- MEMORY/LINUX/ANDROID: Fix reporting of free memory
- MEMORY/WINDOWS: Fix reporting of free memory
- MENU: Enlarged INT/UINT selection limit from 999 to 9999
- MENU: Fix cursor forced to first entry after displaying lists
- MENU: Make Notification Font option visible when Graphics Widgets are enabled
- MENU/RGUI: Add optional 'toggle switch' icons
- MENU/WIDGETS: Add optional widget-based 'load content' launch feedback animation
- MENU/WIDGETS: Make notification font size option visible when graphics widgets are enabled
- ODROID GO ADVANCE: Video driver - fix race condition with RGUI callback
- PLAYLISTS: Change playlists to use dynamic arrays. Instead of a fixed initial 12MB memory allocation (99999 * 128 byte (on 64bit arch)), use a dynamically growing array
- PLAYLISTS: Playlist base content directory paths - portable playlists
- PLAYLISTS/SEARCH: Enhanced playlist search functionality
- PLAYLISTS/DATABASE: Add 'Explore' view
- PLAYLISTS/DATABASE/EXPLORE: Show system icons in explore view
- PS2: Improve FPS Limiter
- RUNAHEAD: Prevent runahead from being disabled *permanently* when an error occurs
- SCANNER: Add more region codes for GameCube/Wii game detection
- SHADERS/SLANG: Increased Slang max Parameters, Textures & Passes
- VIDEO FILTERS/BLARGG: Make Blargg_snes filter customizable
- WINDOWS/RAWINPUT: Fix invalid calls to dinput_handle_message when input driver is not set to dinput
- X11: Add lightgun support
# 1.8.9
- AUTO SAVESTATES: Ensure save states are correctly flushed to disk when quitting RetroArch (fixes broken save states when exiting RetroArch - without first closing content - with 'Auto Save State' enabled)
- BUILTIN CORES: Builtin cores like ffmpeg and imageviewer would previously try to erroneously load a dynamic core named 'builtin' - this would fail and would just be a wasteful operation - this now skips dylib loading in libretro_get_system_info for builtin cores
- CHEEVOS: Report API errors when unlocking achievements or submitting leaderboards
- CHEEVOS: Support less common file extensions
- CHEEVOS: Disable hardcore mode when playing BSV file
- CHEEVOS: Correctly report unlocked non-hardcore achievements when hardcore is paused
- CHEEVOS/M3U: Bugfix - did not handle absolute/relative paths in M3U files correctly before
- CHEEVOS/M3U: Bugfix - it didn't handle comments/directives
- CHEEVOS/M3U: Bugfix - it doesn't handle trailing whitespace
- CHEEVOS/M3U: Bugfix - failed when loading M3U files with certain line endings
- CORE MANAGEMENT: Add 'core management' menu (Settings -> Core)
- CORE MANAGEMENT: Add option to backup/restore installed cores
- CORE MANAGEMENT: Improved core selection logic
- CORE INFO: Search search optimisations
- CORE DOWNLOADER: Rename 'Core Updater' to 'Core Downloader'
- CORE DOWNLOADER: Add 'Show Experimental Cores' setting under Settings > Network > Updater
- CORE DOWNLOADER: Core licenses are now shown for all entries in the Core Updater menu
- CORE DOWNLOADER: Pressing RetroPad select on a Core Updater entry will now display any text in the description field of its info file
- CORE DOWNLOADER: Installed cores are now highlighted via a [#] symbol
- CORE DOWNLOADER: Pressing RetroPad start on a selected, installed entry opens the Core Information menu (when using Material UI, swiping left or right triggers the same action). This means we can now view bios info etc. - and more importantly delete cores - without jumping through all the hoops of loading a core first and navigating all over the place
- CORE DOWNLOADER/UPDATER: Add option to automatically backup cores when updating
- DISK CONTROL: Enable 'Load New Disc' while disk tray is open
- INPUT: Added a hotkey delay option to allow hotkey input to work properly when it is assigned to another action
- INPUT: Remove 'All Users Control Menu' setting, was buggy and will be properly reintroduced after input overhaul
- LINUX: Set default saves/save states/system paths
- LOCALIZATION: Add Persian language
- LOCALIZATION: Add Hebrew language
- LOCALIZATION: Add Asturian language
- MENU: Proper line wrapping for message dialog boxes
- MENU/HOTKEYS: Add sublabels to all hotkey bind entries
- MENU/QUICK MENU: Suppress the display of 'empty' quick menu listings when closing content
- MENU/OZONE: Performance improvements
- MENU/SDL: Add mouse controls
- OPENGL1/VITA: Initial changes for HW context without FBO
- OVERLAYS: Add options for moving the on-screen overlay
- PLAYLISTS/WINDOWS: Fix core path entries in image/video/music history playlists
- PS2: Add back CDFS support
- SDL/GL: Advertise GLSL support
- VIDEO/WIDGETS: Fix heap-use-after-free errors, leading to memory corruption
- VITA: Added custom bubbles support
- VITA: VitaGL update
- VULKAN/WSI: Better frame pacing
- VULKAN/WSI: Fix Intel Mesa being broken when using Fences, we have to use Semaphores to acquire the swapchain or the entire GPU stalls
- VULKAN/WSI: Add support for either using fences or semaphores when syncing
- VULKAN/WSI: Prefer using semaphores for integrated GPUs as it promotes better throughput over fences
- VULKAN/WSI/ANDROID: Do not use mailbox emulation on Android
- UWP/XBOX: Potentially improve performance by enabling 'Game Mode'
# 1.8.8
- AUDIO/JACK: Fix regression introduced after 1.8.4 - would hang at startup
- CHEEVOS: Disable hardcore when cheats are enabled
- CHD: Return false when special track cannot be found
- DISCORD/MATCHMAKING: Fix Discord 'Ask To Join' functionality
- FILE PATH: Various file path handling optimisations
- FONT: Fix Arabic, Chinese and Korean font rendering
- INPUT MAPPING/REMAPPING: Restore broken 'reset to default' functionality with RetroPad 'start' button
- INPUT MAPPING/REMAPPING: Fix 'reset to default' action for analog sticks and undefined core inputs
- LOCALIZATION: Update Arabic translation
- LOCALIZATION: Update Chinese (Simplified) translation
- LOCALIZATION: Update Chinese (Traditional) translation
- LOCALIZATION: Update German translation
- LOCALIZATION: Update Greek translation
- LOCALIZATION: Update Spanish translation
- LOCALIZATION: Update French translation
- LOCALIZATION: Update Italian translation
- LOCALIZATION: Update Japanese translation
- LOCALIZATION: Update Korean translation
- LOCALIZATION: Update Dutch translation
- LOCALIZATION: Update Polish translation
- LOCALIZATION: Update Portuguese Brazilian translation
- LOCALIZATION: Update Russian translation
- LOCALIZATION: Update Turkish translation
- LOCALIZATION: Update Vietnamese translation
- LOCALIZATION: Add Slovak translation
- MENU: Small buffer optimizations
- MENU/THUMBNAILS/BUGFIX: Fix heap-use-after-free error
- MENU/OZONE: Add option to sort playlists after name truncation
- MENU/OZONE/ANDROIDTV: Default to Ozone menu driver
- MENU/OZONE/ANDROID: Gamepad-like devices default to Ozone now (Shield Portable)
- NETPLAY: Lower announcement rate
- OVERLAYS: Fix memory leak when loading overlays
- SHADER PRESETS: Improved shader preset dirs
- TIME/DATE: Enable configuration of date seperator in clock and runtime 'last played' displays
- VITA: Fix upside-down vertical games
- UWP: Enable playlist and savefile compression by default (because of slow file I/O)
- WIIU: Gamepad hotplugging support
- WIIU: Theoretical multi-gamepad support
- VIDEO/WIDGETS: Fix overlapping text when simultaneous pop-up notifications and core/shader messages are being displayed
- X11: Fix crash in x11_display_server_get_screen_orientation
- X11/XSHM: Allow X11/XHSM video driver to operate without SHM extension
- X11/XSHM: Fix compatibility with X11 input driver
- XVIDEO: Fix keyboard input initialization
- XVIDEO/XWAYLAND: Fix XVideo support on xwayland (by supporting I420 and YZ12)
# 1.8.7
- 3DS: Add IDs for Frodo
- 3DS: Enable basic networking / cheevos
- CHEEVOS/BUGFIX: Opening achievements list would crash RetroArch with badges enabled (on new games)
- CHEEVOS: Option to start a session with all achievements active
- CHEEVOS: Don't perform unnecessary cheevos initialisation when cheevos are disabled. Should reduce startup times when loading content.
- CORE OPTIONS: Disable 'Use Global Core Options File' by default
- DOS/DJGPP: Add 32bit color support for cores
- GLCORE: Switch to glcore video driver when requested by a core
- LINUX/XDG: Use GenericName correctly in desktop entry
- MAC/COCOA: Fix mouse cursor tracking
- MENU/MATERIALUI: Add desktop-style playlist view mode
- MENU/MATERIALUI/DESKTOPVIEW: When scrolling playlists, show last selected thumbnails while waiting for next entry to load
- MENU/MATERIALUI: Limit tab switch rate when input repeat is active
- MENU/OZONE: Fix sidebar playlist sort order when 'Truncate Playlist Names' is enabled
- MENU/RGUI: Adjusted menu defaults, adjusted default scrolling speed
- MENU/RGUI: Enable custom wallpaper when menu size is reduced at low resolutions
- MENU/XMB: Limit tab switch rate when input repeat is active
- NETPLAY: Fix regressions introduced in 1.8.5
- RGUI: Add option to always stretch menu to fill the screen
- WIIU: Enable graphics widgets
# 1.8.6
- 3DS: Add IDs for UZEM, TGB Dual, and NeoCD
- 3DS: Fix font driver horizontal text alignment
- 3DS: Allow button presses up to INPUT_MAX_USERS - this enables the 3DS to bind and use buttons and axis for users up to the maximum set by 'Max Users' in the input settings menu.
- 3DS: Disable video filter if upscaled resolution exceeds hardware limits. The 3DS has a maximum video buffer size of 2048x2048. This is sufficient for every core that it supports, but when using software video filters the core output resolution is doubled. This is made worse by the fact that the video filter upscaling buffer size is dependent upon the maximum output resolution of the core - which in some cases is very large indeed (e.g. pcsx-rearmed sets a maximum width of 1024, for enhanced resolution support). The 3DS has very limited 'linear memory' for graphics buffer purposes, and a large base core buffer + video filter buffer can easily exceed this - which may also disable video output, or cause a crash. This PR very simply adds a 3DS-specific check to the video filter initialisation: if the resultant upscaling buffer exceeds the hardware limitation, then the filter is automatically disabled.
- 3DS/FONT/BUGFIX: Text colour was wrong: the RGBA channels were muddled, and R was always set to 255
- 3DS/FONT/BUGFIX: When drawing multiline strings, the line spacing was completely incorrect
- 3DS/FONT: Improves the appearance of the drop shadow effect on notification text.
- 3DS/ARCHIVE/7Z: Re-enable 7zip support.
- ARCHIVE/ZIP: Expand functionality of 'rzip_stream' interface. This PR expands the functionality of the new rzip_stream archived stream interface such that it now has almost complete feature parity with the standard file_stream interface, and can therefore be used as a drop-in replacement in most situations
- AI SERVICE: Hide redundant entries when service is disabled
- AI SERVICE: Added in auto-translate support
- AI SERVICE: support for NVDA and SAPI narration
- 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.
- BUGFIX: Fix race condition where task could momentarily not be in the queue when reordering
- CHEEVOS/BUGFIX: Prevent null reference rendering achievement list while closing application
- CHEEVOS/BUGFIX: Report non-memorymap GBA cores as unsupported
- COMMANDLINE: Advise against using -s and -S variables on the command line. …
- CONFIG FILE: Only write config files to disk when parameters change
- CONFIG FILE/BUGFIX: RetroArch no longer crashes when attempting to save a config file after 'unsetting' a parameter (currently, this can be triggered quite easily by manipulating input remaps)
- CONFIG FILE/BUGFIX: When using Material UI, RetroArch no longer modifies the wrong setting (or segfaults...) when tapping entries in the Quick Menu > Controls input remapping submenu
- CONFIG FILE/BUGFIX: Quite a few real and potential memory leaks have been fixed.
- CHD: Fixes a crash caused by ignoring the return value from one of the CHD library functions
- FASTFORWARDING: A new Mute When Fast-Forwarding option has been added under Settings > Audio. When enabled, users can fast forward without having to listen to distorted audio.
- GLCORE/SLANG: Set filter and wrap mode correctly when intialising shader textures. Before, the glcore shader driver did not correctly initialise loaded textures. The texture filtering and wrap mode were forced on texture creation, but these settings were not recorded - subsequent updates would set garbage values, that would resolve to linear filtering OFF and wrap mode = CLAMP_TO_EDGE.
- LOCALIZATION: Update Japanese translation
- LOCALIZATION: Update Spanish translation
- LOCALIZATION: Update Portuguese Brazilian translation
- IOS: Set audio session category to ambient so sound does not get cut off on interruption (phone call/playing back audio)
- MAC/IOHIDMANAGER/BUGFIX: Fix for Mayflash N64 adapter. In case last hatswitch does not match cookie. For the mayflash N64 adapter, I was getting a BAD EXC ADDRESS (in mac OS 10.13) for this line (tmp was NULL). Retroarch would crash in the gui if I pressed a button from the DPAD on controller 2. With this change, it no longer crashes in the gui and still registers the button push.
- MAC/COCOA: Fix mouse input - this brings back two lines of code that have been removed over time but
appear to be required in order for mouse input to work on macOS
- METAL/BUGFIX: GPU capture on Metal/OSX/NVidia could crash
- METAL/BUGFIX: Taking screenshots could capture black frames. Resulting PNG screenshots were black.
- METAL/BUGFIX: Corrupted image due to incorrect viewport copy when taking screenshot
- 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/RGUI: Enable automatic menu size reduction when running at low resolutions (down to 256x192)
- 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/OZONE: Enable proper vertical text alignment + thumbnail display improvements
- MENU/OZONE: Enable second thumbnail/content metadata toggle using RetroPad 'select'
- MENU/OZONE: Refactor footer display
- MENU/OZONE: Hide thumbnail button hints when viewing file browser lists
- MENU/OZONE/INPUT/BUGFIX: Fix undefined behaviour when using touch screen to change input remaps
- MENU/OZONE/INPUT/BUGFIX: It turns out that Windows reports negative pointer coordinates when the mouse cursor goes beyond the left hand edge of the RetroArch window (this doesn't happen on Linux, so I never encountered this issue before!). As a result, if Ozone is currently not showing the sidebar (menu depth > 1), moving the cursor off the left edge of the window generates a false positive 'cursor in sidebar' event - which breaks menu navigation, as described in #10419. With this PR, we now handle 'cursor in sidebar' status correctly in all cases
- MENU/OZONE/INPUT/BUGFIX: Pointer input is now correctly disabled when message boxes are displayed
- MENU/XMB: Fix thumbnail switching via 'scan' button functionality
- ODROID GO ADVANCE: Add DRM HW context driver
- PSL1GHT: Initial port
- PSL1GHT/KEYBOARD: Implement PSL1GHT keyboard
- PLAYLIST/BUGFIX: Improve handling of 'broken' playlists - RetroArch will no longer segfault when attempting to run content via a playlist entry with missing path or core path fields.
- PLAYLIST/BUGFIX: Improve handling of 'broken' playlists - when a playlist entry has either core path and/or core name set to NULL, DETECT or an empty string, attempting to load content will fallback to the normal 'core selection' code (currently this happens only if both core path and core name are DETECT - this is wholly inadequate!)
- PLAYLIST/BUGFIX: RetroArch will no longer segfault when attempting to fetch content runtime information when core path is NULL
- PLAYLIST/BUGFIX: Core name + runtime info will only be displayed on playlists and in the Information submenu if both the core path and core name fields are 'valid' (i.e. not NULL or DETECT)
- PLAYLIST/BUGFIX: When handling entries with missing path fields, the menu sorting order now matches that of the playlist sorting order (at present, everything goes out of sync when paths are empty). Moreover, entries with missing path fields can now be 'selected', so users can remove them (currently, hitting A on such an entry immediately tries - and fails - to load the content, so the only way to remove the broken entry is via the Playlist Management > Clean Playlist feature)
- PLAYLIST: Add optional per-playlist alphabetical sorting
- PLAYLIST: Omit whitespace when writing compressed JSON format playlists
- PLAYLIST: Add optional playlist compression
- QNX: Support analog sticks
- SAVESTATES: Add optional save state compression (enabled by default now)
- SRAM: Add optional save (SRAM) file compression
- 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)
- TASKS/BUGFIX: Fix task deadlocks
- TASKS/SCREENSHOT/BUGFIX: Fix heap-use-after-free error when widgets are disabled
- TVOS: Disable overlays for tvOS, fix app icon
- VIDEO/WIDGETS/BUGFIX: The font ascender/descender metrics added in #10375 are now used to achieve 'pixel perfect' vertical text alignment
- VIDEO/WIDGETS/BUGFIX: Message queue text now uses its own dedicated font. Previously, a single (larger) font was used for all active widgets, and this was scaled down for message queue items. This 'squished' the text a little; more importantly, when using the stb font renderers (on Android. etc.) it caused ugly artefacts around the edges of glyphs due to pixel interpolation errors. Now that a correctly sized font is used, the message queue is always rendered cleanly.
- VIDEO/WIDGETS/BUGFIX: Previously, each widget font was 'flushed' (font_driver_flush()) at least once a frame. This is quite a slow operation. Now we only flush fonts if they have actually been used.
- VULKAN/BUGFIX: Fix display of statistics text
- UNIX/BUGFIX: Fix overflow when computing total memory on i386
- WIIU/BUGFIX: Fix font driver horizontal text alignment
- WIIU/BUGFIX: Fix non-vertex coordinates in draws using tex shader
- WIIU/BUGFIX: Update and fix meta.xml file for the WiiU release. This change makes it so the information from the meta.xml file parsed for the WiiU's Homebrew Launcher is displayed properly.
# 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
+66
View File
@@ -0,0 +1,66 @@
Struct ordering
---------------
For POD-types, try to order structs as follows (first to last):
* long double (8 bytes, 16 bytes [64bit x86], 12 bytes [32bit x86])
* double (8 bytes)
* int64_t (8 bytes, 8 bytes [32bit ARM], 4 bytes [32bit x86])
* uint64_t (4 bytes [32bit], 8 bytes [32bit ARM], 8 bytes [64bit])
* pointer (4 bytes [32bit], 8 bytes [64bit] [1])
* intptr_t (4 bytes [32bit], 8 bytes [64bit] [1])
* uintptr_t (4 bytes [32bit], 8 bytes [64bit] [1])
* ptrdiff_t (4 bytes [32bit], 8 bytes [64bit] [1])
* ssize_t (4 bytes [32bit], 8 bytes [64bit])
* size_t (4 bytes [32bit], 8 bytes [64bit])
* jmp_buf (4 bytes)
* long (4 bytes [64bit Win], 8 bytes [64bit non-Win], 4 bytes [32bit])
* int32_t (4 bytes)
* unsigned (4 bytes)
* float (4 bytes)
* int (4 bytes)
* enum (4 bytes)
* int16_t (2 bytes)
* char (1 byte)
* bool (1 byte)
[1] PS3 uses 4 byte pointers despite having a 64bit processor
Struct members should be sorted by alignment. Therefore, structs
should be sorted by the largest type inside them.
For example, take a struct like this:
typedef struct
{
size_t capacity;
bool old_format;
bool compress;
bool fuzzy_archive_match;
bool autofix_paths;
char path[PATH_MAX_LENGTH];
char base_content_directory[PATH_MAX_LENGTH];
} playlist_config_t;
size_t has the biggest alignment here, so 'struct playlist_config_t' inside a struct should come before or after size_t.
*** BEST PRACTICES ***
* If we have pointers and size variable pairs, it's best to interleave them to increase the probability they go in the same cacheline. It also makes the code more readable, that these two variables are connected.
Example:
struct a
{
char* b;
size_t b_len;
char* c;
size_t c_len;
};
Stack size
----------
You have to assume that stack size is going to be limited in RetroArch. Some game consoles (and other embedded systems) might have a default stack size as low as 128Kb or less. Be conservative with stack size but don't try to put very small structs on heap either [to avoid memory fragmentation among other things].
Be mindful that heap allocations are slow compared to stack.
+6 -10
View File
@@ -22,7 +22,7 @@ endif
OBJ :=
LIBS :=
DEF_FLAGS :=
DEF_FLAGS := -I.
ASFLAGS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
@@ -118,7 +118,7 @@ ifneq ($(CXX_BUILD), 1)
CFLAGS += -D_GNU_SOURCE
endif
DEF_FLAGS += $(INCLUDE_DIRS) -I. -Ideps -Ideps/stb
DEF_FLAGS += $(INCLUDE_DIRS) -Ideps -Ideps/stb
CFLAGS += $(DEF_FLAGS)
CXXFLAGS += $(DEF_FLAGS) -D__STDC_CONSTANT_MACROS
@@ -215,13 +215,6 @@ $(OBJDIR)/%.o: %.m
@$(if $(Q), $(shell echo echo OBJC $<),)
$(Q)$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
.FORCE:
$(OBJDIR)/git_version.o: git_version.c .FORCE
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S config.h config.mk $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
@@ -233,16 +226,17 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
$(Q)$(WINDRES) -o $@ $<
install: $(TARGET)
rm -f $(OBJDIR)/git_version.o
mkdir -p $(DESTDIR)$(BIN_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(DATA_DIR)/applications 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(DATA_DIR)/metainfo 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(DOC_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(MAN_DIR)/man6 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(DATA_DIR)/pixmaps 2>/dev/null || /bin/true
cp $(TARGET) $(DESTDIR)$(BIN_DIR)
cp tools/cg2glsl.py $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
cp retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)
cp com.libretro.RetroArch.appdata.xml $(DESTDIR)$(DATA_DIR)/metainfo
cp retroarch.desktop $(DESTDIR)$(DATA_DIR)/applications
cp docs/retroarch.6 $(DESTDIR)$(MAN_DIR)/man6
cp docs/retroarch-cg2glsl.6 $(DESTDIR)$(MAN_DIR)/man6
@@ -253,6 +247,7 @@ install: $(TARGET)
chmod 755 $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
chmod 644 $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
chmod 644 $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
chmod 644 $(DESTDIR)$(DATA_DIR)/metainfo/com.libretro.RetroArch.appdata.xml
chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
chmod 644 $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
chmod 644 $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
@@ -277,6 +272,7 @@ uninstall:
rm -f $(DESTDIR)$(BIN_DIR)/retroarch-cg2glsl
rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
rm -f $(DESTDIR)$(DATA_DIR)/applications/retroarch.desktop
rm -f $(DESTDIR)$(DATA_DIR)/metainfo/com.libretro.RetroArch.appdata.xml
rm -f $(DESTDIR)$(DATA_DIR)/pixmaps/retroarch.svg
rm -f $(DESTDIR)$(DOC_DIR)/COPYING
rm -f $(DESTDIR)$(DOC_DIR)/COPYING.assets
+559 -199
View File
File diff suppressed because it is too large. Load diff
+51 -15
View File
@@ -8,6 +8,7 @@ BUILD_3DSX = 1
BUILD_3DS = 0
BUILD_CIA = 1
LIBCTRU_NO_DEPRECATION = 1
USE_CTRULIB_2 ?= 0
APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS
@@ -35,8 +36,7 @@ OBJ += ctr/exec-3dsx/exec_cia.o \
ctr/exec-3dsx/exec_3dsx.o \
ctr/exec-3dsx/mini-hb-menu/launch.o \
ctr/exec-3dsx/mini-hb-menu/loaders/rosalina.o \
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o \
ctr/exec-3dsx/mini-hb-menu/loaders/ninjhax1.o
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o
ifeq ($(APP_BIG_TEXT_SECTION), 1)
APP_USE_SVCHAX = 1
@@ -51,8 +51,16 @@ DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
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
DEFINES += -DHAVE_ZLIB -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA
DEFINES += -DHAVE_NETWORKING -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_CORES
#DEFINES += -DHAVE_UPDATE_ASSETS
DEFINES += -DHAVE_PATCH -DHAVE_RWAV
DEFINES += -DHAVE_SCREENSHOTS
DEFINES += -DHAVE_REWIND
DEFINES += -DHAVE_THREADS
DEFINES += -DHAVE_GFX_WIDGETS
DEFINES += -DHAVE_OVERLAY
#DEFINES += -DHAVE_SOCKET_LEGACY
#-DHAVE_SSL -DHAVE_BUILTINMBEDTLS -DMBEDTLS_SSL_DEBUG_ALL
#ssl is currently incompatible with griffin due to use of the "static" flag on repeating functions that will conflict when included in one file
else
@@ -72,10 +80,15 @@ else
HAVE_XMB = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_PATCH = 1
HAVE_SCREENSHOTS = 1
HAVE_REWIND = 1
HAVE_AUDIOMIXER = 1
HAVE_RWAV = 1
#HAVE_NETWORKING = 1
#HAVE_CHEEVOS = 1
#HAVE_SOCKET_LEGACY = 1
#HAVE_THREADS = 1
HAVE_THREADS = 1
#HAVE_SSL = 1
#HAVE_BUILTINMBEDTLS = 1
@@ -95,13 +108,32 @@ ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/libctru
endif
ifeq ($(strip $(USE_CTRULIB_2)),1)
CFLAGS += -DUSE_CTRULIB_2
endif
ifeq ($(strip $(DEVKITTOOLS)),)
ifeq ($(strip $(USE_CTRULIB_2)),1)
DEVKITTOOLS = $(DEVKITPRO)/tools
else
DEVKITTOOLS = $(DEVKITARM)
endif
endif
APP_TITLE := $(shell echo "$(APP_TITLE)" | cut -c1-128)
APP_DESCRIPTION := $(shell echo "$(APP_DESCRIPTION)" | cut -c1-256)
APP_AUTHOR := $(shell echo "$(APP_AUTHOR)" | cut -c1-128)
APP_PRODUCT_CODE := $(shell echo $(APP_PRODUCT_CODE) | cut -c1-16)
APP_UNIQUE_ID := $(shell echo $(APP_UNIQUE_ID) | cut -c1-7)
MAKEROM_ARGS_COMMON = -rsf $(APP_RSF) -exefslogo -elf $(TARGET).elf -icon $(TARGET).icn -banner $(TARGET).bnr -DAPP_TITLE="$(APP_TITLE)" -DAPP_PRODUCT_CODE="$(APP_PRODUCT_CODE)" -DAPP_UNIQUE_ID=$(APP_UNIQUE_ID) -DAPP_SYSTEM_MODE=$(APP_SYSTEM_MODE) -DAPP_SYSTEM_MODE_EXT=$(APP_SYSTEM_MODE_EXT)
APP_VERSION_MAJOR := $(shell shuf -i 0-63 -n 1)
APP_VERSION_MINOR := $(shell shuf -i 0-63 -n 1)
APP_VERSION_MICRO := $(shell shuf -i 0-15 -n 1)
MAKEROM_ARGS_COMMON = -rsf $(APP_RSF) -exefslogo -elf $(TARGET).elf -icon $(TARGET).icn -banner $(TARGET).bnr \
-DAPP_TITLE="$(APP_TITLE)" -DAPP_PRODUCT_CODE="$(APP_PRODUCT_CODE)" -DAPP_UNIQUE_ID=$(APP_UNIQUE_ID) \
-DAPP_SYSTEM_MODE=$(APP_SYSTEM_MODE) -DAPP_SYSTEM_MODE_EXT=$(APP_SYSTEM_MODE_EXT) \
-major "$(APP_VERSION_MAJOR)" -minor "$(APP_VERSION_MINOR)" -micro "$(APP_VERSION_MICRO)"
INCDIRS := -I$(CTRULIB)/include
LIBDIRS := -L. -L$(CTRULIB)/lib
@@ -135,11 +167,15 @@ CFLAGS += -I. \
-Ideps \
-Ideps/7zip \
-Ideps/stb \
-Ideps/rcheevos/include \
-Ilibretro-common/include \
-Ilibretro-common/include/compat/zlib
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -DHAVE_DSP_FILTER
CFLAGS += -DHAVE_VIDEO_FILTER
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
CFLAGS += -DHAVE_CHEATS
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
@@ -212,13 +248,13 @@ else
endif
%.o: %.vsh %.gsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITTOOLS)/bin/picasso $^ -o $*.shbin
$(DEVKITTOOLS)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.vsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITTOOLS)/bin/picasso $^ -o $*.shbin
$(DEVKITTOOLS)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
@@ -238,8 +274,8 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
$(DEVKITARM)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).smdh: $(TARGET).elf $(APP_ICON)
$(DEVKITTOOLS)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
@@ -247,16 +283,16 @@ ifeq ($(APP_BIG_TEXT_SECTION), 1)
else
rm -f $(TARGET).xml
endif
$(DEVKITARM)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(DEVKITTOOLS)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
$(NM) -CSn $@ > $(notdir $*.lst)
$(TARGET).bnr: $(APP_BANNER) $(APP_AUDIO)
$(TARGET).bnr: $(TARGET).elf $(APP_BANNER) $(APP_AUDIO)
$(BANNERTOOL) makebanner -i "$(APP_BANNER)" -a "$(APP_AUDIO)" -o $@
$(TARGET).icn: $(APP_ICON)
$(TARGET).icn: $(TARGET).elf $(APP_ICON)
$(BANNERTOOL) makesmdh -s "$(APP_TITLE)" -l "$(APP_TITLE)" -p "$(APP_AUTHOR)" -i $(APP_ICON) -o $@
$(TARGET).3ds: $(TARGET).elf $(TARGET).bnr $(TARGET).icn $(APP_RSF)
+22 -10
View File
@@ -5,6 +5,7 @@ DEBUG = 0
BUILD_3DSX = 1
BUILD_3DS = 0
BUILD_CIA = 1
USE_CTRULIB_2 ?= 0
APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS
@@ -37,21 +38,32 @@ OBJ := ctr/ctr_system.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
libretro-common/hash/lrc_hash.o \
libretro-common/time/rtime.o \
verbosity.o
OBJ += ctr/exec-3dsx/exec_cia.o \
ctr/exec-3dsx/exec_3dsx.o \
ctr/exec-3dsx/mini-hb-menu/launch.o \
ctr/exec-3dsx/mini-hb-menu/loaders/rosalina.o \
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o \
ctr/exec-3dsx/mini-hb-menu/loaders/ninjhax1.o
ctr/exec-3dsx/mini-hb-menu/loaders/hax2.o
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif
ifeq ($(strip $(USE_CTRULIB_2)),1)
CFLAGS += -DUSE_CTRULIB_2
endif
ifeq ($(strip $(DEVKITTOOLS)),)
ifeq ($(strip $(USE_CTRULIB_2)),1)
DEVKITTOOLS = $(DEVKITPRO)/tools
else
DEVKITTOOLS = $(DEVKITARM)
endif
endif
ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/libctru
endif
@@ -153,13 +165,13 @@ else
endif
%.o: %.vsh %.gsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITTOOLS)/bin/picasso $^ -o $*.shbin
$(DEVKITTOOLS)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.vsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
$(DEVKITTOOLS)/bin/picasso $^ -o $*.shbin
$(DEVKITTOOLS)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
@@ -180,7 +192,7 @@ endif
%.vsh:
$(TARGET).smdh: $(APP_ICON)
$(DEVKITARM)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(DEVKITTOOLS)/bin/smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) $@
$(TARGET).3dsx: $(TARGET).elf
ifeq ($(APP_BIG_TEXT_SECTION), 1)
@@ -188,7 +200,7 @@ ifeq ($(APP_BIG_TEXT_SECTION), 1)
else
rm -f $(TARGET).xml
endif
$(DEVKITARM)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(DEVKITTOOLS)/bin/3dsxtool $< $@ $(_3DSXFLAGS)
$(TARGET).elf: ctr/3dsx_custom_crt0.o
$(LD) $(LDFLAGS) $(OBJ) $(LIBDIRS) $(LIBS) -o $@
+59 -27
View File
@@ -1,13 +1,47 @@
CC = /opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-gcc
CXX = /opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-g++
#########################
## Toolchain variables ##
#########################
# Default toolchain directory
TOOLCHAIN_DIR=/opt/gcw0-toolchain
# All toolchain-related variables may be
# overridden via the command line
ifdef GCW0_CC
CC = $(GCW0_CC)
else
CC = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-gcc
endif
ifdef GCW0_CXX
CXX = $(GCW0_CXX)
else
CXX = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-g++
endif
GCW0_SDL_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config
GCW0_FREETYPE_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/freetype-config
GCW0_MK_SQUASH_FS ?= $(TOOLCHAIN_DIR)/usr/bin/mksquashfs
GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include
GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib
#########################
#########################
PACKAGE_NAME = retroarch
DEBUG ?= 0
DINGUX = 1
HAVE_SCREENSHOTS = 1
HAVE_REWIND = 1
HAVE_7ZIP = 1
HAVE_AL = 1
# this freezes when switching back from menu
HAVE_ALSA = 0
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_BUILTINMBEDTLS = 1
HAVE_BUILTINZLIB = 1
HAVE_C99 = 1
@@ -15,7 +49,7 @@ HAVE_CC = 1
HAVE_CC_RESAMPLER = 1
HAVE_CHD = 1
HAVE_CHEEVOS = 1
HAVE_COMMAND = 1
HAVE_COMMAND = 0
HAVE_CXX = 1
HAVE_DR_MP3 = 1
HAVE_DYNAMIC = 1
@@ -53,7 +87,7 @@ HAVE_SHADERPIPELINE = 1
HAVE_STB_FONT = 1
HAVE_STB_IMAGE = 1
HAVE_STB_VORBIS = 1
HAVE_STDIN_CMD = 1
HAVE_STDIN_CMD = 0
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_TRANSLATE = 1
@@ -62,6 +96,9 @@ HAVE_VIDEO_LAYOUT = 1
HAVE_XMB = 1
HAVE_ZLIB = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_LIBSHAKE = 1
OS = Linux
TARGET = retroarch
@@ -69,7 +106,9 @@ OPK_NAME = retroarch.opk
OBJ :=
LINK := $(CXX)
DEF_FLAGS := -march=mips32 -mtune=mips32r2 -mhard-float -ffast-math -fomit-frame-pointer -fdata-sections
DEF_FLAGS := -march=mips32 -mtune=mips32r2 -mhard-float -ffast-math -fomit-frame-pointer
DEF_FLAGS += -mplt -mno-shared
DEF_FLAGS += -ffunction-sections -fdata-sections
DEF_FLAGS += -I. -Ideps -Ideps/stb -DDINGUX=1 -MMD
DEF_FLAGS += -Wall -Wno-unused-variable
DEF_FLAGS += -std=gnu99 -D_GNU_SOURCE
@@ -77,9 +116,9 @@ 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
LDFLAGS := -flto -Wl,--gc-sections
INCLUDE_DIRS = -I$(GCW0_INC_DIR)
LIBRARY_DIRS = -L$(GCW0_LIB_DIR)
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
@@ -88,10 +127,10 @@ 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)
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
FREETYPE_CFLAGS := $(shell $(GCW0_FREETYPE_CONFIG) --cflags)
FREETYPE_LIBS := $(shell $(GCW0_FREETYPE_CONFIG) --libs)
AL_LIBS := -lopenal
OPENGLES_CFLAGS := -DMESA_EGL_NO_X11_HEADERS
OPENGLES_LIBS := -lGLESv2 -lEGL
@@ -121,8 +160,8 @@ RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
define DESKTOP_ENTRY
[Desktop Entry]
Name=retroarch
Comment=Retroarch
Name=RetroArch
Comment=Frontend for emulators, game engines
Exec=retroarch
Terminal=false
Type=Application
@@ -141,34 +180,27 @@ SYMBOL_MAP := -Wl,-Map=output.map
$(TARGET): $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
$(Q)$(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 $@ $<
$(Q)$(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 $@ $<
$(Q)$(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 $@ $<
$(Q)$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
$(CC) $(CFLAGS) $(ASFLAGS) $(DEFINES) -c -o $@ $<
$(Q)$(CC) $(CFLAGS) $(ASFLAGS) $(DEFINES) -c -o $@ $<
clean:
rm -rf $(OBJDIR_BASE)
@@ -180,7 +212,7 @@ 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
$(GCW0_MK_SQUASH_FS) 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
+23 -1
View File
@@ -1,4 +1,10 @@
ifeq ($(TARGET),)
ifeq ($(LIBRETRO),)
TARGET := retroarch.js
else
TARGET := $(LIBRETRO)_libretro.js
endif
endif
EOPT = USE_ZLIB=1 # Emscripten specific options
EOPTS = $(addprefix -s $(EMPTY), $(EOPT)) # Add '-s ' to each option
@@ -9,8 +15,12 @@ OBJ :=
DEFINES := -DRARCH_INTERNAL -DHAVE_MAIN -s USE_PTHREADS=$(PTHREAD)
DEFINES += -DHAVE_FILTERS_BUILTIN
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_OVERLAY = 1
HAVE_GLSL = 1
HAVE_SCREENSHOTS = 1
HAVE_REWIND = 1
HAVE_AUDIOMIXER = 1
HAVE_VIDEO_LAYOUT = 0
HAVE_CC_RESAMPLER = 1
@@ -30,8 +40,20 @@ HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_STB_FONT = 1
HAVE_CONFIGFILE = 1
HAVE_CHEATS = 1
HAVE_IBXM = 1
MEMORY = 134217728
ASYNC ?= 0
ifeq ($(LIBRETRO), mupen64plus)
ASYNC = 1
endif
LTO ?= 0
ifeq ($(LIBRETRO), tyrquake)
LTO = 0
endif
MEMORY ?= 134217728
PRECISE_F32 = 1
+244 -74
View File
@@ -116,7 +116,8 @@ else ifeq ($(platform), ps3-cobra)
# NGC/Wii - libogc
else ifeq ($(libogc_platform), 1)
EXTERNAL_LIBOGC=0
EXTERNAL_LIBOGC ?= 0
GX_PTHREAD_LEGACY ?= 1
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
@@ -148,6 +149,11 @@ else ifeq ($(libogc_platform), 1)
endif
ifeq ($(GX_PTHREAD_LEGACY), 1)
CFLAGS += -DGX_PTHREAD_LEGACY
CXXFLAGS += -DGX_PTHREAD_LEGACY
endif
ifeq ($(platform), ngc)
MACHDEP := -DHW_DOL -mogc
else ifeq ($(platform), wii)
@@ -155,7 +161,7 @@ else ifeq ($(libogc_platform), 1)
endif
LIBDIRS += -L.
MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float -DMSB_FIRST
MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float
ifeq ($(platform), ngc)
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map
@@ -191,8 +197,9 @@ else ifeq ($(libogc_platform), 1)
CFLAGS += -DGEKKO -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
HAVE_AUDIOMIXER := 1
HAVE_RUNAHEAD := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
HAVE_RPNG := 1
@@ -204,11 +211,16 @@ else ifeq ($(libogc_platform), 1)
HAVE_VIDEO_LAYOUT := 0
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
RARCH_CONSOLE = 1
ifeq ($(platform), wii)
HAVE_AUDIOMIXER := 1
#HAVE_LANGEXTRA := 1
HAVE_WIIUSB_HID := 1
HAVE_RARCH_EXEC := 1
@@ -244,7 +256,9 @@ else ifeq ($(platform), xenon360)
HAVE_THREADS := 1
HAVE_GETOPT_LONG := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
# PSP
else ifeq ($(platform), psp1)
@@ -269,7 +283,9 @@ else ifeq ($(platform), psp1)
HAVE_KERNEL_PRX := 1
#HAVE_LANGEXTRA := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
ifeq ($(BUILD_PRX), 1)
LDFLAGS += $(addprefix -L,$(PSPSDK)/lib) -specs=$(PSPSDK)/lib/prxspecs -Wl,-q,-T$(PSPSDK)/lib/linkfile.prx $(LDFLAGS)
@@ -309,6 +325,8 @@ else ifeq ($(platform), vita)
LIBDIRS += -L.
LDFLAGS += -Wl,-q
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
@@ -327,7 +345,9 @@ else ifeq ($(platform), vita)
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
RARCH_CONSOLE = 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
else ifeq ($(platform), windows_msvc6_x86)
HAVE_RPNG := 1
HAVE_RJPEG := 1
@@ -351,7 +371,9 @@ else ifeq ($(platform), windows_msvc6_x86)
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -395,7 +417,10 @@ else ifeq ($(platform), windows_msvc2003_x86)
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_GFX_WIDGETS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -404,6 +429,7 @@ else ifeq ($(platform), windows_msvc2003_x86)
LD = link.exe
PLATCFLAGS += -D_WIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -D__STDC_CONSTANT_MACROS -D_MBCS -D_VC80_UPGRADE=0x0710
PLATCFLAGS += -DHAVE_GFX_WIDGETS
LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib
PATH := $(shell IFS=$$'\n'; cygpath "$(VS71COMNTOOLS)../../Vc7/bin"):$(PATH)
@@ -422,6 +448,7 @@ else ifeq ($(platform), windows_msvc2003_x86)
endif
else ifeq ($(platform), windows_msvc2005_x86)
HAVE_GDI := 1
HAVE_REWIND := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -435,57 +462,7 @@ else ifeq ($(platform), windows_msvc2005_x86)
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 := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
CC = cl.exe
CXX = cl.exe
LD = link.exe
PLATCFLAGS += -D_WIN32 -D_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)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/lib")
ifeq ($(HAVE_DIRECTX), 1)
PLATCFLAGS += -DHAVE_DINPUT -DHAVE_DSOUND
DXSDK_DIR := $(DXSDK_DIR:\=)
export INCLUDE := $(INCLUDE);$(INETSDK)\Include;$(DXSDK_DIR)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(INETSDK)\Lib;$(DXSDK_DIR)\Lib\x86
else
export INCLUDE := $(INCLUDE);$(INETSDK)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(INETSDK)\Lib
endif
else ifneq (,$(findstring windows_msvc2010,$(platform)))
HAVE_GDI := 1
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_OZONE := 1
HAVE_STB_FONT := 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
@@ -497,7 +474,95 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
HAVE_OPENGL := 1
HAVE_OPENGL1 := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_GFX_WIDGETS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
CC = cl.exe
CXX = cl.exe
LD = link.exe
PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0410 -D__STDC_CONSTANT_MACROS -D_MBCS
PLATCFLAGS += -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_OZONE -DHAVE_GFX_WIDGETS -DHAVE_CC_RESAMPLER
PLATCFLAGS += -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_CDROM
PLATCFLAGS += -bigobj
LDFLAGS += -MANIFEST shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib msimg32.lib
PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH)
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/include")
LIB := $(shell IFS=$$'\n'; cygpath -w "$(VS80COMNTOOLS)../../VC/lib")
WindowsSdkDir := $(shell reg query "HKLM\SOFTWARE\Microsoft\MicrosoftSDK\InstalledSDKs\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3" -v "Install Dir" | grep -o '[A-Z]:\\.*')
WindowsSDKIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include")
WindowsSDKAtlIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\atl")
WindowsSDKCrtIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\crt")
WindowsSDKGlIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\gl")
WindowsSDKMfcIncludeDir := $(shell cygpath -w "$(WindowsSdkDir)\Include\mfc")
WindowsSDKLibDir := $(shell cygpath -w "$(WindowsSdkDir)\Lib")
INCLUDE := $(INCLUDE);$(WindowsSDKIncludeDir);$(WindowsSDKAtlIncludeDir);$(WindowsSDKCrtIncludeDir);$(WindowsSDKGlIncludeDir);$(WindowsSDKMfcIncludeDir);libretro/msvc/msvc-2005
LIB := $(LIB);$(WindowsSDKLibDir)
ifeq ($(HAVE_DIRECTX), 1)
PLATCFLAGS += -DHAVE_DINPUT -DHAVE_DSOUND -DHAVE_D3D -DHAVE_D3D8
DXSDK_DIR := $(DXSDK_DIR:\=)
export INCLUDE := $(INCLUDE);$(INETSDK)\Include;$(DXSDK_DIR)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(INETSDK)\Lib;$(DXSDK_DIR)\Lib\x86
else
export INCLUDE := $(INCLUDE);$(INETSDK)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(INETSDK)\Lib
endif
else ifneq (,$(findstring windows_msvc2010,$(platform)))
HAVE_GDI := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 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_OZONE := 1
HAVE_STB_FONT := 1
HAVE_THREADS := 1
HAVE_LIBRETRODB := 1
HAVE_COMMAND := 1
HAVE_STDIN_CMD := 1
HAVE_CMD := 1
HAVE_DYLIB := 1
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_OPENGL := 1
HAVE_OPENGL1 := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_GFX_WIDGETS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -506,8 +571,14 @@ 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_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
PLATCFLAGS += -D__i686__ -D__SSE__ -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINDOWS
PLATCFLAGS += -DHAVE_CC_RESAMPLER -DHAVE_GL_SYNC -DHAVE_GLSL -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA
PLATCFLAGS += -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_OZONE
PLATCFLAGS += -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DWIN32 -DHAVE_CDROM
PLATCFLAGS += -DHAVE_GFX_WIDGETS
PLATCFLAGS += -bigobj
LDFLAGS += -MANIFEST shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib iphlpapi.lib msimg32.lib
PlatformSuffix = $(subst windows_msvc2010_,,$(platform))
@@ -532,12 +603,12 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
PATH := $(PATH):$(shell IFS=$$'\n'; cygpath "$(VS100COMNTOOLS)../IDE")
INCLUDE := $(shell IFS=$$'\n'; cygpath -w "$(VS100COMNTOOLS)../../VC/include")
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -io '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A" -v "InstallationFolder" | grep -io '[A-Z]:\\.*')
WindowsSdkDir ?= $(shell reg query "HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A" -v "InstallationFolder" | grep -io '[A-Z]:\\.*')
WindowsSdkDir := $(WindowsSdkDir:\=)
ifeq ($(HAVE_DIRECTX), 1)
PLATCFLAGS += -DHAVE_DINPUT -DHAVE_DSOUND -DHAVE_D3D -DHAVE_D3D9 -DHAVE_XAUDIO -DHAVE_XINPUT
PLATCFLAGS += -DHAVE_DINPUT -DHAVE_DSOUND -DHAVE_D3D -DHAVE_D3D8 -DHAVE_XAUDIO -DHAVE_XINPUT
DXSDK_DIR := $(DXSDK_DIR:\=)
export INCLUDE := $(INCLUDE);$(WindowsSdkDir)\Include;$(DXSDK_DIR)\Include;libretro-common\include;libretro-common\include\compat\msvc;gfx\include;deps;deps\stb
export LIB := $(LIB);$(WindowsSdkDir)\$(PlatLib);$(DXSDK_DIR)\Lib\$(WinArch)
@@ -547,7 +618,10 @@ else ifneq (,$(findstring windows_msvc2010,$(platform)))
endif
else ifneq (,$(findstring windows_msvc2012,$(platform)))
HAVE_GDI := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -572,7 +646,9 @@ else ifneq (,$(findstring windows_msvc2012,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -626,7 +702,10 @@ else ifneq (,$(findstring windows_msvc2012,$(platform)))
endif
else ifneq (,$(findstring windows_msvc2013,$(platform)))
HAVE_GDI := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -651,7 +730,9 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -705,7 +786,10 @@ else ifneq (,$(findstring windows_msvc2013,$(platform)))
endif
else ifneq (,$(findstring windows_msvc2015,$(platform)))
HAVE_GDI := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -730,7 +814,9 @@ else ifneq (,$(findstring windows_msvc2015,$(platform)))
HAVE_GRIFFIN_CPP := 1
HAVE_RUNAHEAD := 1
HAVE_DIRECTX ?= 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
@@ -799,7 +885,10 @@ else ifneq (,$(findstring windows_msvc2015,$(platform)))
export LIB := $(LIB)
endif
else ifeq (qnx,$(platform))
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -823,7 +912,10 @@ else ifeq (qnx,$(platform))
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 0
WANT_GLSLANG := 0
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
CC=qcc -Vgcc_ntoarmv7le
CXX=QCC -Vgcc_ntoarmv7le
@@ -831,13 +923,16 @@ else ifeq (qnx,$(platform))
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
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_PATCH -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 -DHAVE_BSV_MOVIE -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_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
@@ -861,13 +956,56 @@ else ifneq (,$(findstring unix,$(platform)))
HAVE_DYNAMIC := 1
HAVE_GRIFFIN_CPP := 1
WANT_GLSLANG := 1
HAVE_CONFIGFILE := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
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
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_PATCH -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_BSV_MOVIE -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.
LIBS += -ldl -lm -lpthread -lGL -ludev -lpulse -lX11 -lX11-xcb -lXxf86vm
else ifeq (dos,$(platform))
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_NETWORKING := 0
HAVE_NETWORK_CMD := 0
HAVE_NETPLAYDISCOVERY := 0
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
HAVE_MATERIALUI := 0
HAVE_XMB := 0
HAVE_STB_FONT := 1
HAVE_THREADS := 0
HAVE_LIBRETRODB := 1
HAVE_COMMAND := 1
HAVE_STDIN_CMD := 1
HAVE_CMD := 1
HAVE_DYLIB := 0
HAVE_DYNAMIC := 0
HAVE_GRIFFIN_CPP := 0
WANT_GLSLANG := 0
HAVE_CONFIGFILE := 1
HAVE_PATCH := 0
HAVE_CHEATS := 0
CC=i586-pc-msdosdjgpp-gcc
CXX=i586-pc-msdosdjgpp-g++
ifeq ($(DEBUG), 1)
LDFLAGS += -g
endif
PLATCFLAGS += -DHAVE_SHADERPIPELINE -DHAVE_CC_RESAMPLER -DRC_DISABLE_LUA -DHAVE_FBO -DHAVE_IMAGEVIEWER -DHAVE_LANGEXTRA -DHAVE_GFX_WIDGETS -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_SPIRV_CROSS -DHAVE_STB_FONT -DRARCH_INTERNAL -DHAVE_XCB
TARGET_NAME := retrodos
EXT_TARGET := $(TARGET_NAME).exe
EXT_INTER_TARGET := $(TARGET_NAME).exe
INCLUDE += -Ilibretro-common/include -Igfx/include -Ideps -Ideps/stb -Ideps/SPIRV-Cross -Ideps/glslang -I.
LIBS += -lm
LIBDIRS += -L.
endif
ifneq (,$(findstring msvc,$(platform)))
@@ -955,18 +1093,34 @@ ifeq ($(HAVE_IMAGEVIEWER), 1)
CFLAGS += -DHAVE_IMAGEVIEWER
endif
ifeq ($(HAVE_BSV_MOVIE), 1)
CFLAGS += -DHAVE_BSV_MOVIE
endif
ifeq ($(HAVE_RUNAHEAD), 1)
CFLAGS += -DHAVE_RUNAHEAD
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP
CFLAGS += -DHAVE_7ZIP -D_7ZIP_ST
endif
ifeq ($(HAVE_SCREENSHOTS), 1)
CFLAGS += -DHAVE_SCREENSHOTS
endif
ifeq ($(HAVE_REWIND), 1)
CFLAGS += -DHAVE_REWIND
endif
ifeq ($(HAVE_AUDIOMIXER), 1)
CFLAGS += -DHAVE_AUDIOMIXER
endif
ifeq ($(HAVE_RWAV), 1)
CFLAGS += -DHAVE_RWAV
endif
ifeq ($(HAVE_OVERLAY), 1)
CFLAGS += -DHAVE_OVERLAY
endif
@@ -1013,6 +1167,14 @@ ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
ifeq ($(HAVE_DSP_FILTER), 1)
CFLAGS += -DHAVE_DSP_FILTER
endif
ifeq ($(HAVE_VIDEO_FILTER), 1)
CFLAGS += -DHAVE_VIDEO_FILTER
endif
ifeq ($(HAVE_FILTERS_BUILTIN), 1)
CFLAGS += -DHAVE_FILTERS_BUILTIN
endif
@@ -1033,6 +1195,14 @@ ifeq ($(HAVE_CONFIGFILE), 1)
CFLAGS += -DHAVE_CONFIGFILE
endif
ifeq ($(HAVE_PATCH), 1)
CFLAGS += -DHAVE_PATCH
endif
ifeq ($(HAVE_CHEATS), 1)
CFLAGS += -DHAVE_CHEATS
endif
ifeq ($(HAVE_RSOUND), 1)
CFLAGS += -DHAVE_RSOUND
endif
+9 -1
View File
@@ -23,6 +23,8 @@ DEFINES := -D__SWITCH__=1 -U__linux__ -U__linux -DGLM_FORCE_PURE=1 -DRARCH_CONSO
HAVE_DR_MP3 = 1
HAVE_TRANSLATE = 1
HAVE_SCREENSHOTS = 1
HAVE_REWIND = 1
HAVE_AUDIOMIXER = 1
HAVE_CC_RESAMPLER = 1
HAVE_MENU_COMMON = 1
@@ -30,13 +32,18 @@ HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_7ZIP = 1
HAVE_ZLIB = 1
HAVE_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_MENU = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_RUNAHEAD = 1
HAVE_NETWORKING = 1
HAVE_NETPLAYDISCOVERY = 1
@@ -44,6 +51,7 @@ HAVE_STB_FONT = 1
HAVE_CHEEVOS = 1
HAVE_CHD = 0 # disabled due to static libretro-common and libchdr conflicts between different cores
HAVE_STB_VORBIS = 1
HAVE_IBXM = 1
# RetroArch libnx useful flags
HAVE_THREADS = 1
@@ -116,7 +124,7 @@ APP_ICON := pkg/libnx/retroarch.jpg
#---------------------------------------------------------------------------------
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mcpu=cortex-a57+crc+fp+simd
CFLAGS := -g -Wall -O3 -ffast-math -ffunction-sections \
CFLAGS := -g -Wall -O3 -fcommon -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_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_STB_FONT #-DHAVE_FREETYPE
+8 -3
View File
@@ -11,6 +11,10 @@ WindowsSdkDir = C:\Program Files (x86)\Windows Kits\10\$(NOTHING)
WindowsSDKVersion := 10.0.14393.0\$(NOTHING)
VCINSTALLDIR := C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\$(NOTHING)
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_D3DX := 1
HAVE_D3D8 := 0
@@ -32,6 +36,7 @@ HAVE_WINMM := 1
HAVE_RPNG := 1
HAVE_ZLIB := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_MENU := 1
HAVE_RGUI := 1
HAVE_XMB := 1
@@ -60,6 +65,8 @@ HAVE_LANGEXTRA := 1
HAVE_CHEEVOS := 1
HAVE_SHADERPIPELINE := 1
HAVE_IMAGEVIEWER := 1
HAVE_BSV_MOVIE := 1
HAVE_CHEATS := 1
ifeq ($(HAVE_D3D8), 1)
D3D8_LIBS := -ld3d8
@@ -192,11 +199,9 @@ else
OBJ := $(filter-out $(BLACKLIST),$(OBJ))
endif
DEFINES += -DRARCH_INTERNAL -DHAVE_DYNAMIC -DJSON_STATIC
DEFINES += -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_REWIND -DHAVE_DYNAMIC -DJSON_STATIC
INCLUDE_DIRS += -I. -Igfx/include
#OBJ := version_git.o
OBJ := $(patsubst %rarch.o,%rarch.res,$(OBJ))
OBJ := $(addprefix $(BUILD_DIR)/,$(OBJ))
OBJ := $(OBJ:.o=.obj)
+363
View File
@@ -0,0 +1,363 @@
ROOT_DIR := .
DEPS_DIR := $(ROOT_DIR)/deps
DEBUG ?= 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_CC_RESAMPLER = 1
WHOLE_ARCHIVE_LINK = 0
BIG_STACK = 1
PC_DEVELOPMENT_IP_ADDRESS = 255.255.255.255
PC_DEVELOPMENT_UDP_PORT = 3490
RARCH_CONSOLE = 0
USBGECKO = 0
SPACE :=
SPACE := $(SPACE) $(SPACE)
BACKSLASH :=
BACKSLASH := \$(BACKSLASH)
filter_out1 = $(filter-out $(firstword $1),$1)
filter_out2 = $(call filter_out1,$(call filter_out1,$1))
# system platform
system_platform = unix
ifeq ($(shell uname -s),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -s)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -s)),)
system_platform = win
endif
TARGET_NAME := retroarch
INCLUDE :=
LDFLAGS :=
LIBDIRS :=
ifeq ($(LIBRETRO), nxengine)
WHOLE_ARCHIVE_LINK = 1
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
LIBS := $(WHOLE_START) -lretro_ngc $(WHOLE_END)
libogc_platform := 1
EXTERNAL_LIBOGC ?= 0
GX_PTHREAD_LEGACY ?= 1
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
EXT_TARGET := $(TARGET_NAME)_ngc.dol
EXT_INTER_TARGET := $(TARGET_NAME)_ngc.elf
# Check whether ELF2DOL executable exists
# (path has changed in more recent toolchains)
ifeq ("$(wildcard $(ELF2DOL))","")
ELF2DOL = $(DEVKITPRO)/tools/bin/elf2dol$(EXE_EXT)
endif
INCLUDE += -I. -I$(DEVKITPRO)/libogc/include -Iwii/libogc/include
ifeq ($(EXTERNAL_LIBOGC), 1)
CFLAGS += -DEXTERNAL_LIBOGC
CXXFLAGS += -DEXTERNAL_LIBOGC
LIBDIRS += -L$(DEVKITPRO)/libogc/lib/cube
else
CFLAGS += -DINTERNAL_LIBOGC
CXXFLAGS += -DINTERNAL_LIBOGC
LIBDIRS += -Lwii/libogc/libs/cube
endif
ifeq ($(GX_PTHREAD_LEGACY), 1)
CFLAGS += -DGX_PTHREAD_LEGACY
CXXFLAGS += -DGX_PTHREAD_LEGACY
endif
MACHDEP := -DHW_DOL -mogc
LIBDIRS += -L.
MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map
ifeq ($(BIG_STACK), 1)
LDFLAGS += -T bootstrap/gx/ogc.ld
endif
ifeq ($(EXTERNAL_LIBOGC), 1)
LIBS += -lfat
endif
ifeq ($(HAVE_LOGGER), 1)
LIBS += -lbba
endif
LIBS += -logc
CFLAGS += -DGEKKO -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
HAVE_RUNAHEAD := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_IBXM := 1
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
RARCH_CONSOLE = 1
HAVE_CHEATS := 1
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(PLATCFLAGS) $(INCLUDE)
INCLUDE += -I./libretro-common/include \
-Ideps \
-Ideps/stb
OBJ = griffin/griffin.o $(PLATOBJS)
ifeq ($(HAVE_GRIFFIN_CPP), 1)
OBJ += griffin/griffin_cpp.o
endif
ifeq ($(WANT_GLSLANG), 1)
OBJ += griffin/griffin_glslang.o
endif
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
endif
ifeq ($(HAVE_KERNEL_PRX), 1)
CFLAGS += -DHAVE_KERNEL_PRX
endif
ifeq ($(HAVE_WIIUSB_HID), 1)
CFLAGS += -DHAVE_WIIUSB_HID -DHAVE_HID
endif
ifeq ($(HAVE_LIBRETRODB), 1)
CFLAGS += -DHAVE_LIBRETRODB
endif
ifeq ($(BIG_STACK),1)
CFLAGS += -DBIG_STACK
endif
ifeq ($(HAVE_RJPEG), 1)
CFLAGS += -DHAVE_RJPEG
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(HAVE_RARCH_EXEC), 1)
CFLAGS += -DHAVE_RARCH_EXEC
endif
ifeq ($(HAVE_ZLIB), 1)
CFLAGS += -DHAVE_ZLIB
CFLAGS += -I./libretro-common/include/compat/zlib
endif
ifeq ($(HAVE_RPNG), 1)
CFLAGS += -DHAVE_RPNG
endif
ifeq ($(HAVE_RBMP), 1)
CFLAGS += -DHAVE_RBMP
endif
ifeq ($(HAVE_RTGA), 1)
CFLAGS += -DHAVE_RTGA
endif
ifeq ($(HAVE_IMAGEVIEWER), 1)
CFLAGS += -DHAVE_IMAGEVIEWER
endif
ifeq ($(HAVE_BSV_MOVIE), 1)
CFLAGS += -DHAVE_BSV_MOVIE
endif
ifeq ($(HAVE_RUNAHEAD), 1)
CFLAGS += -DHAVE_RUNAHEAD
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP -D_7ZIP_ST
endif
ifeq ($(HAVE_SCREENSHOTS), 1)
CFLAGS += -DHAVE_SCREENSHOTS
endif
ifeq ($(HAVE_REWIND), 1)
CFLAGS += -DHAVE_REWIND
endif
ifeq ($(HAVE_AUDIOMIXER), 1)
CFLAGS += -DHAVE_AUDIOMIXER
endif
ifeq ($(HAVE_RWAV), 1)
CFLAGS += -DHAVE_RWAV
endif
ifeq ($(HAVE_OVERLAY), 1)
CFLAGS += -DHAVE_OVERLAY
endif
ifeq ($(HAVE_VIDEO_LAYOUT), 1)
CFLAGS += -DHAVE_VIDEO_LAYOUT
endif
ifeq ($(HAVE_NETWORKING), 1)
CFLAGS += -DHAVE_NETWORKING
endif
ifeq ($(HAVE_NETPLAYDISCOVERY), 1)
CFLAGS += -DHAVE_NETPLAYDISCOVERY
endif
ifeq ($(RARCH_CONSOLE), 1)
CFLAGS += -DRARCH_CONSOLE
endif
ifeq ($(RARCH_MOBILE), 1)
CFLAGS += -DRARCH_MOBILE
endif
CFLAGS += -std=gnu99 -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
ifeq ($(HAVE_MATERIALUI), 1)
CFLAGS += -DHAVE_MATERIALUI
endif
ifeq ($(HAVE_XMB), 1)
CFLAGS += -DHAVE_XMB
endif
ifeq ($(HAVE_STB_FONT), 1)
CFLAGS += -DHAVE_STB_FONT
endif
ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
ifeq ($(HAVE_DSP_FILTER), 1)
CFLAGS += -DHAVE_DSP_FILTER
endif
ifeq ($(HAVE_VIDEO_FILTER), 1)
CFLAGS += -DHAVE_VIDEO_FILTER
endif
ifeq ($(HAVE_FILTERS_BUILTIN), 1)
CFLAGS += -DHAVE_FILTERS_BUILTIN
endif
ifeq ($(HAVE_THREADS), 1)
CFLAGS += -DHAVE_THREADS
endif
ifeq ($(HAVE_CONFIGFILE), 1)
CFLAGS += -DHAVE_CONFIGFILE
endif
ifeq ($(HAVE_PATCH), 1)
CFLAGS += -DHAVE_PATCH
endif
ifeq ($(HAVE_CHEATS), 1)
CFLAGS += -DHAVE_CHEATS
endif
ifeq ($(HAVE_RSOUND), 1)
CFLAGS += -DHAVE_RSOUND
endif
ifeq ($(HAVE_GETOPT_LONG), 1)
CFLAGS += -DHAVE_GETOPT_LONG=1
endif
ifeq ($(HAVE_DYLIB), 1)
CFLAGS += -DHAVE_DYLIB
endif
ifeq ($(HAVE_NETWORK_CMD), 1)
CFLAGS += -DHAVE_NETWORK_CMD
endif
ifeq ($(HAVE_COMMAND), 1)
CFLAGS += -DHAVE_COMMAND
endif
ifeq ($(HAVE_STDIN_CMD), 1)
CFLAGS += -DHAVE_STDIN_CMD
endif
ifeq ($(HAVE_DYNAMIC), 1)
CFLAGS += -DHAVE_DYNAMIC
endif
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g -DDEBUG
else
CFLAGS += -O3
endif
OBJOUT = -o
LINKOUT = -o
LINK = $(CXX)
all: $(EXT_TARGET)
%.dol: %.elf
$(ELF2DOL) $< $@
$(EXT_INTER_TARGET): $(OBJ)
$(LINK) $(LINKOUT)$@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
%.o: %.cpp
$(CXX) $(CFLAGS) -c $(OBJOUT)$@ $<
%.o: %.S
$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
%.binobj: %.bin
$(LD) -r -b binary $(OBJOUT)$@ $<
clean:
rm -f $(EXT_TARGET)
rm -f $(EXT_INTER_TARGET)
rm -f $(OBJ)
.PHONY: clean
print-%:
@echo '$*=$($*)'
+3 -1
View File
@@ -15,7 +15,9 @@ 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 += -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 += -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_SCREENSHOTS -DHAVE_REWIND -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_DSP_FILTER
DEFINES += -DHAVE_VIDEO_FILTER
DEFINES += $(INCDIRS)
DEFINES += -D__OPENPANDORA__ -DPANDORA
DEFINES += -marm -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize
+8 -1
View File
@@ -16,13 +16,16 @@ DEFINES :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1
DEFINES += -DHAVE_MENU -DHAVE_LIBRETRODB -DHAVE_CONFIGFILE
DEFINES += -DHAVE_MENU -DHAVE_LIBRETRODB -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_SCREENSHOTS -DHAVE_CHEATS
DEFINES += -DHAVE_REWIND
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_CC_RESAMPLER
ifeq ($(DEBUG), 1)
DEFINES += -DHAVE_NETLOGGER
endif
else
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_LANGEXTRA := 0
HAVE_RPNG := 1
@@ -42,6 +45,10 @@ else
HAVE_MENU := 1
HAVE_MENU_COMMON := 1
HAVE_CONFIGFILE := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_RGUI := 0
HAVE_MATERIALUI := 0
HAVE_XMB := 1
+26 -49
View File
@@ -1,49 +1,40 @@
BUILD_FOR_PCSX2 = 0
DEBUG = 0
HAVE_KERNEL_PRX = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_THREADS = 0
BIG_STACK = 0
MUTE_WARNINGS = 1
PS2_IP = 192.168.1.150
PS2_IP = 192.168.1.10
TARGET = retroarchps2.elf
TARGET_RELEASE = retroarchps2-release.elf
# Lib CDVD
CDVD_DIR = ps2/libcdvd
TARGET = retroarchps2-debug.elf
TARGET_RELEASE = retroarchps2.elf
# Compile the IRXs first
IRX_DIR = ps2/irx
IRX_FILES = $(wildcard ps2/irx/*.c)
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
RARCH_DEFINES += -DDEBUG
else
OPTIMIZE_LV := -O2
OPTIMIZE_LV := -O3
LDFLAGS := -s
endif
ifeq ($(MUTE_WARNINGS), 1)
DISABLE_WARNINGS := -Wno-sign-compare -Wno-unused -Wno-parentheses
DISABLE_WARNINGS := -Wno-unused -Wno-format -Wno-format-truncation
endif
INCDIR = -I$(PS2DEV)/gsKit/include -I$(PS2SDK)/ports/include -I$(CDVD_DIR)/ee
INCDIR += -Ips2 -Ips2/include -Ilibretro-common/include -Ideps -Ideps/stb -Ideps/7zip
INCDIR += -Ideps/pthreads -Ideps/pthreads/platform/ps2 -Ideps/pthreads/platform/helper
GPVAL = -G0
INCDIR = -I$(PS2DEV)/gsKit/include -I$(PS2SDK)/ports/include
INCDIR += -Ips2/include -Ilibretro-common/include -Ideps -Ideps/stb -Ideps/7zip
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -ffast-math -fsingle-precision-constant
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_CONFIGFILE -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -DHAVE_CC_RESAMPLER
RARCH_DEFINES += -DPS2 -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_REWIND -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -DHAVE_RGUI
RARCH_DEFINES += -DHAVE_ZLIB -DHAVE_NO_BUILTINZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_CC_RESAMPLER -DHAVE_AUDIOMIXER
RARCH_DEFINES += -DHAVE_DSP_FILTER
RARCH_DEFINES += -DHAVE_VIDEO_FILTER
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
LDFLAGS += -L$(PS2DEV)/gsKit/lib -L$(PS2SDK)/ports/lib -L.
# Lib cdvd is needed to get proper time
LIBS += -lretro_ps2 -lpatches -lgskit -ldmakit -laudsrv -lmtap -lpadx -lz -lcdvd -lelf-loader
ifeq ($(BUILD_FOR_PCSX2), 1)
RARCH_DEFINES += -DBUILD_FOR_PCSX2
@@ -53,31 +44,19 @@ ifeq ($(HAVE_THREADS), 1)
RARCH_DEFINES += -DHAVE_THREADS
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(HAVE_KERNEL_PRX), 1)
CFLAGS += -DHAVE_KERNEL_PRX
endif
ifeq ($(BIG_STACK), 1)
CFLAGS += -DBIG_STACK
endif
CFLAGS += $(RARCH_DEFINES)
# All the IRX objects
EE_OBJS += $(IRX_DIR)/freemtap_irx.o $(IRX_DIR)/freepad_irx.o $(IRX_DIR)/freesio2_irx.o $(IRX_DIR)/iomanX_irx.o
EE_OBJS += $(IRX_DIR)/fileXio_irx.o $(IRX_DIR)/mcman_irx.o $(IRX_DIR)/mcserv_irx.o $(IRX_DIR)/usbd_irx.o
EE_OBJS += $(IRX_DIR)/usbhdfsd_irx.o $(IRX_DIR)/freesd_irx.o $(IRX_DIR)/audsrv_irx.o $(IRX_DIR)/poweroff_irx.o
EE_OBJS += $(IRX_DIR)/cdvd_irx.o
EE_OBJS += $(IRX_DIR)/sio2man_irx.o $ $(IRX_DIR)/iomanX_irx.o $(IRX_DIR)/fileXio_irx.o
EE_OBJS += $(IRX_DIR)/mcman_irx.o $(IRX_DIR)/mcserv_irx.o
EE_OBJS += $(IRX_DIR)/usbd_irx.o $(IRX_DIR)/bdm_irx.o $(IRX_DIR)/bdmfs_vfat_irx.o $(IRX_DIR)/usbmass_bd_irx.o
EE_OBJS += $(IRX_DIR)/libsd_irx.o $(IRX_DIR)/audsrv_irx.o
EE_OBJS += $(IRX_DIR)/cdfs_irx.o
EE_OBJS += $(IRX_DIR)/mtapman_irx.o $(IRX_DIR)/padman_irx.o
# Missing objecst on the PS2SDK
EE_OBJS += ps2/compat_files/compat_ctype.o ps2/compat_files/time.o ps2/compat_files/ps2_devices.o
EE_OBJS += ps2/compat_files/fileXio_cdvd.o ps2/compat_files/ps2_descriptor.o
EE_OBJS += ps2/compat_files/ps2_devices.o
#EE_OBJS = griffin/griffin.o bootstrap/ps2/kernel_functions.o
EE_OBJS += griffin/griffin.o
EE_CFLAGS = $(CFLAGS)
@@ -106,7 +85,10 @@ prepare:
run:
ps2client -h $(PS2_IP) execee host:$(EE_BIN)
debug: clean prepare all run
sim:
PCSX2 --elf=$(PWD)/$(EE_BIN) --nogui
debug: clean all run
package:
ps2-packer $(EE_BIN) $(TARGET_RELEASE)
@@ -115,9 +97,4 @@ release: clean all package
#Include preferences
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
#Linking with C++
$(EE_BIN): $(EE_OBJS) $(PS2SDK)/ee/startup/crt0.o
$(EE_CXX) $(EE_NO_CRT) -T$(PS2SDK)/ee/startup/linkfile $(EE_CXXFLAGS) \
-o $(EE_BIN) $(PS2SDK)/ee/startup/crt0.o $(CRTI_OBJ) $(CRTBEGIN_OBJ) $(EE_OBJS) $(CRTEND_OBJ) $(CRTN_OBJ) $(EE_LDFLAGS) $(EE_LIBS)
include $(PS2SDK)/samples/Makefile.eeglobal_cpp
+98
View File
@@ -0,0 +1,98 @@
BUILD_FOR_PCSX2 = 0
DEBUG = 0
MUTE_WARNINGS = 1
PS2_IP = 192.168.1.150
TARGET = raboot-debug.elf
TARGET_RELEASE = raboot.elf
# Compile the IRXs first
IRX_DIR = ps2/irx
ifeq ($(DEBUG), 1)
OPTIMIZE_LV := -O0 -g
RARCH_DEFINES += -DDEBUG
else
OPTIMIZE_LV := -O3
LDFLAGS := -s
endif
ifeq ($(MUTE_WARNINGS), 1)
DISABLE_WARNINGS := -Wno-sign-compare -Wno-unused -Wno-parentheses
endif
INCDIR = -Ilibretro-common/include
INCDIR += -Ips2/include
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -ffast-math -fsingle-precision-constant
ASFLAGS = $(CFLAGS)
RARCH_DEFINES += -DPS2 -DIS_SALAMANDER -DRARCH_CONSOLE
LIBDIR =
LDFLAGS =
LIBS = -lelf-loader -lpatches
ifeq ($(BUILD_FOR_PCSX2), 1)
RARCH_DEFINES += -DBUILD_FOR_PCSX2
endif
CFLAGS += $(RARCH_DEFINES)
EE_OBJS = frontend/frontend_salamander.o \
frontend/frontend_driver.o \
frontend/drivers/platform_ps2.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 \
libretro-common/file/retro_dirent.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/fopen_utf8.o \
libretro-common/compat/compat_strl.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/lrc_hash.o \
libretro-common/time/rtime.o \
verbosity.o \
ps2/compat_files/ps2_devices.o
# Needed IRX objects
EE_OBJS += $(IRX_DIR)/sio2man_irx.o $ $(IRX_DIR)/iomanX_irx.o $(IRX_DIR)/fileXio_irx.o
EE_OBJS += $(IRX_DIR)/mcman_irx.o $(IRX_DIR)/mcserv_irx.o
EE_OBJS += $(IRX_DIR)/usbd_irx.o $(IRX_DIR)/bdm_irx.o $(IRX_DIR)/bdmfs_vfat_irx.o $(IRX_DIR)/usbmass_bd_irx.o
EE_OBJS += $(IRX_DIR)/cdfs_irx.o
EE_CFLAGS = $(CFLAGS)
EE_CXXFLAGS = $(CFLAGS)
EE_LDFLAGS = $(LDFLAGS)
EE_LIBS = $(LIBS)
EE_ASFLAGS = $(ASFLAGS)
EE_INCS = $(INCDIR)
EE_BIN = $(TARGET)
EE_GPVAL = $(GPVAL)
all: irxdir $(EE_BIN)
irxdir:
$(MAKE) -C $(IRX_DIR)
clean:
rm -f $(EE_BIN) $(EE_OBJS)
$(MAKE) -C $(IRX_DIR) clean
debug: clean all run
run:
ps2client -h $(PS2_IP) execee host:$(EE_BIN)
package:
ps2-packer $(EE_BIN) $(TARGET_RELEASE)
release: clean all package
#Include preferences
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal_cpp
-207
View File
@@ -1,207 +0,0 @@
include version.all
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = SNC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = opt
ASSETS_DIR := media/assets
# options
DOWNLOAD_SHADERS = 1
STRIPPING_ENABLE = 0
DEBUG = 0
HAVE_GCMGL = 0
HAVE_LOGGER = 0
HAVE_FREETYPE = 0
WHOLE_ARCHIVE_LINK = 0
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
CONTENT_ID = SSNE10000
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
PPU_TARGET = retroarch_ps3.elf
SALAMANDER_TARGET = retroarch-salamander_ps3.elf
EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. \
-Idefines \
-Ideps \
-Ideps/stb \
-Ideps/rcheevos/include \
-Ilibretro-common/include \
-Ilibretro-common/include/compat/zlib
# 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
PPU_SRCS = griffin/griffin.c
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
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
GL_LIBS := -L. -lrgl_ps3
else
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
endif
ifeq ($(HAVE_FREETYPE), 1)
DEFINES += -DHAVE_FREETYPE
FONT_LIBS := -lfontFT_stub -lfreetype_stub
endif
ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else ifneq ($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_CCLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl, --whole-archive
WHOLE_END := -Wl, --no-whole-archive
endif
PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -lcgc -lgcm_cmdasm -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN -DHAVE_CHEEVOS -DRC_DISABLE_LUA
#DEFINES += -DHAVE_IMAGEVIEWER
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O2 -g
endif
ifeq ($(HAVE_LOGGER), 1)
DEFINES += -DHAVE_LOGGER
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
EXIST_EBOOT_WILDCARD := $(wildcard $(EBOOT_PATH))
EXIST_CORE_WILDCARD := $(wildcard $(CORE_PATH))
EBOOT_EXISTS = 1
CORE_EXISTS = 1
ifneq ($(strip $(EXIST_EBOOT_WILDCARD)),)
EBOOT_EXISTS = 0
endif
ifneq ($(strip $(EXIST_CORE_WILDCARD)),)
CORE_EXISTS = 0
endif
include $(CELL_MK_DIR)/sdk.target.mk
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
MAKE_FSELF_NPDRM = $(CELL_SDK)/host-win32/bin/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM = $(CELL_SDK)/host-win32/bin/make_package_npdrm.exe
.PHONY: create-npdrm-core create-core create-npdrm-salamander create-shaders clean-selfs create-salamander
create-npdrm-core:
$(MAKE_FSELF_NPDRM) $(PPU_TARGET) $(CORE_PATH)
create-core:
$(MAKE_SELF_WC) $(PPU_TARGET) $(CORE_PATH)
create-npdrm-salamander:
$(MAKE_FSELF_NPDRM) $(SALAMANDER_TARGET) $(EBOOT_PATH)
create-salamander:
$(MAKE_SELF) $(SALAMANDER_TARGET) $(EBOOT_PATH) $(CONTENT_ID_FULL)
copy-media-files:
@cp -r $(ASSETS_DIR)/glui pkg/ps3/USRDIR/cores/assets
@cp -r $(ASSETS_DIR)/xmb pkg/ps3/USRDIR/cores/assets
create-shaders:
make -f Makefile.griffin platform=ps3 shaders-deploy
pkg: $(PPU_TARGET) create-shaders copy-media-files create-npdrm-salamander create-npdrm-core
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf pkg/ps3
pkg-signed: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-cfw: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
pkg-signed-cfw-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
clean-selfs:
ifeq ($(EBOOT_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(EBOOT_PATH)], skipping this step."
else
rm $(EBOOT_PATH)
endif
ifeq ($(CORE_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(CORE_PATH)], skipping this step."
else
rm $(CORE_PATH)
endif
-196
View File
@@ -1,196 +0,0 @@
include version.all
#which compiler to build with - GCC or SNC
#set to GCC for debug builds for use with debugger
CELL_BUILD_TOOLS = GCC
CELL_GPU_TYPE = RSX
CELL_PSGL_VERSION = ultra-opt
# options
DOWNLOAD_SHADERS = 1
STRIPPING_ENABLE = 0
DEBUG = 0
HAVE_GCMGL = 1
HAVE_LOGGER = 0
HAVE_FREETYPE = 0
WHOLE_ARCHIVE_LINK = 0
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
CONTENT_ID = SSNE10000
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
PC_DEVELOPMENT_UDP_PORT = 3490
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
PPU_TARGET = retroarch_ps3.elf
SALAMANDER_TARGET = retroarch-salamander_ps3.elf
EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
INCDIRS = -I. -Idefines -Ideps -Ideps/stb
# 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
PPU_SRCS = griffin/griffin.c
DEFINES += -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_MENU -DRARCH_INTERNAL
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
GL_LIBS := -L. -lrgl_ps3
else
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
endif
ifeq ($(HAVE_FREETYPE), 1)
DEFINES += -DHAVE_FREETYPE
FONT_LIBS := -lfontFT_stub -lfreetype_stub
endif
ifeq ($(CELL_BUILD_TOOLS), SNC)
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else ifneq($(system_platform), win)
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_CCLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl, --whole-archive
WHOLE_END := -Wl, --no-whole-archive
endif
PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -lcgc -lgcm_cmdasm -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -ljpgdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
#DEFINES += -DHAVE_VIDEO_LAYOUT
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_STB_VORBIS
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O3 -g
endif
ifeq ($(HAVE_LOGGER), 1)
DEFINES += -DHAVE_LOGGER
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
EXIST_EBOOT_WILDCARD := $(wildcard $(EBOOT_PATH))
EXIST_CORE_WILDCARD := $(wildcard $(CORE_PATH))
EBOOT_EXISTS = 1
CORE_EXISTS = 1
ifneq ($(strip $(EXIST_EBOOT_WILDCARD)),)
EBOOT_EXISTS = 0
endif
ifneq ($(strip $(EXIST_CORE_WILDCARD)),)
CORE_EXISTS = 0
endif
include $(CELL_MK_DIR)/sdk.target.mk
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
MAKE_FSELF_NPDRM = $(CELL_SDK)/host-win32/bin/make_fself_npdrm.exe
MAKE_PACKAGE_NPDRM = $(CELL_SDK)/host-win32/bin/make_package_npdrm.exe
.PHONY: create-npdrm-core create-core create-npdrm-salamander create-shaders clean-selfs create-salamander
create-npdrm-core:
$(MAKE_FSELF_NPDRM) $(PPU_TARGET) $(CORE_PATH)
create-core:
$(MAKE_SELF_WC) $(PPU_TARGET) $(CORE_PATH)
create-npdrm-salamander:
$(MAKE_FSELF_NPDRM) $(SALAMANDER_TARGET) $(EBOOT_PATH)
create-salamander:
$(MAKE_SELF) $(SALAMANDER_TARGET) $(EBOOT_PATH) $(CONTENT_ID_FULL)
copy-media-files:
@cp -r $(ASSETS_DIR)/glui pkg/ps3/USRDIR/cores/assets
@cp -r $(ASSETS_DIR)/xmb pkg/ps3/USRDIR/cores/assets
create-shaders:
make -f Makefile.shaders deploy-ps3
pkg: $(PPU_TARGET) create-shaders copy-media-files create-npdrm-salamander create-npdrm-core
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf pkg/ps3
pkg-signed: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
pkg-signed-cfw: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
pkg-signed-cfw-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
clean-selfs:
ifeq ($(EBOOT_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(EBOOT_PATH)], skipping this step."
else
rm $(EBOOT_PATH)
endif
ifeq ($(CORE_EXISTS),1)
@echo "WARNING: Couldn't find file to delete: [$(CORE_PATH)], skipping this step."
else
rm $(CORE_PATH)
endif
-91
View File
@@ -1,91 +0,0 @@
CELL_BUILD_TOOLS = GCC
CELL_SDK ?= /usr/local/cell
HAVE_LOGGER = 0
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
include $(CELL_MK_DIR)/sdk.makedef.mk
# 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
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
else
PPU_OPTIMIZE_LV := -O2 -DNDEBUG
endif
STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe
INCFLAGS = -I. -Idefines -Ilibretro-common/include -Ilibretro-common/include/compat/zlib
DEFINES = -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC
ifeq ($(DEX_BUILD), 1)
DEFINES += -DDEX_BUILD
endif
ifeq ($(CEX_BUILD), 1)
DEFINES += -DCEX_BUILD
endif
ifeq ($(ODE_BUILD), 1)
DEFINES += -DODE_BUILD
endif
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES)
PPU_SRCS = frontend/frontend_salamander.c \
frontend/frontend_driver.c \
frontend/drivers/platform_ps3.c \
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 \
libretro-common/hash/rhash.c \
libretro-common/string/stdstring.c \
libretro-common/encodings/encoding_utf.c \
libretro-common/compat/compat_strl.c \
libretro-common/compat/compat_strcasestr.c \
libretro-common/compat/fopen_utf8.c \
libretro-common/streams/file_stream.c \
libretro-common/vfs/vfs_implementation.c \
libretro-common/file/config_file.c \
file_path_str.c \
verbosity.c
ifeq ($(HAVE_LOGGER), 1)
PPU_CFLAGS += -DHAVE_LOGGER
PPU_SRCS += network/net_logger.c \
libretro-common/net/net_compat.c \
libretro-common/net/net_socket.c
endif
PPU_TARGET = retroarch-salamander_ps3.elf
ifeq ($(CELL_BUILD_TOOLS),SNC)
PPU_CFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
PPU_CXXFLAGS += -Xbranchless=1 -Xfastmath=1 -Xassumecorrectsign=1 -Xassumecorrectalignment=1 -Xunroll=1 -Xautovecreg=1
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
else
PPU_CFLAGS += -std=gnu99
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
PPU_CLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
endif
PPU_LDLIBS += -lm -lnet_stub -lnetctl_stub -lio_stub -lsysmodule_stub -lsysutil_stub -lsysutil_game_stub -lfs_stub -lsysutil_np_stub
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
include $(CELL_MK_DIR)/sdk.target.mk
+4 -4
View File
@@ -27,13 +27,13 @@ ELF_TARGET := retroarch_psl1ght.elf
SELF_TARGET := $(ELF_TARGET:.elf=.self)
CORE_PATH = pkg/psl1ght/pkg/USRDIR/cores/CORE.SELF
INCLUDE += -I. -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude
INCLUDE += -I. -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib -Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude -Idefines
LIBDIRS += -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__ -mcpu=cell
MACHDEP := -D__PSL1GHT__ -D__PS3__ -mcpu=cell
CFLAGS += -Wall $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP)
LIBS := -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 -lsysfs
# system platform
system_platform = unix
@@ -66,7 +66,7 @@ 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 -DRARCH_INTERNAL -DHAVE_MULTIMAN -DHAVE_RGUI
SHARED_FLAGS += -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -DRARCH_CONSOLE -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -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_SCREENSHOTS -DHAVE_REWIND -DHAVE_MULTIMAN -DHAVE_RGUI
CFLAGS += -std=gnu99 $(SHARED_FLAGS)
CXXFLAGS += $(SHARED_FLAGS)
+7 -6
View File
@@ -27,13 +27,14 @@ 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
INCLUDE += -I. -Ips3/gcmgl/include/export -Ips3/include -Ideps -Ideps/stb -Ilibretro-common/include/compat/zlib \
-Ilibretro-common/include $(LIBPSL1GHT_INC) -Iinclude -Idefines
LIBDIRS += -L.
MACHDEP := -D__CELLOS_LV2__ -D__PSL1GHT__ -mcpu=cell -mhard-float -fmodulo-sched -ffunction-sections -fdata-sections
MACHDEP := -D__PS3__ -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
LIBS := -lgcm_sys -lrsx -lsysutil -lio -lnet -lsysmodule -lrt -llv2 -lm -lsysfs
# system platform
system_platform = unix
@@ -61,7 +62,7 @@ OBJ = frontend/frontend_salamander.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/hash/lrc_hash.o \
libretro-common/string/stdstring.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/compat/compat_strl.o \
@@ -70,8 +71,8 @@ OBJ = frontend/frontend_salamander.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
libretro-common/time/rtime.o \
verbosity.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
+3 -9
View File
@@ -2,8 +2,6 @@ BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
DEBUG = 0
HAVE_KERNEL_PRX = 1
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_THREADS = 1
BIG_STACK = 0
WHOLE_ARCHIVE_LINK = 0
@@ -21,24 +19,20 @@ ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_END := -Wl,--no-whole-archive
endif
INCDIR = deps deps/stb deps/7zip deps/pthreads deps/pthreads/platform/psp deps/pthreads/platform/helper libretro-common/include libretro-common/include/compat/zlib
INCDIR = deps deps/stb deps/7zip libretro-common/include libretro-common/include/compat/zlib
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_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
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_AUDIOMIXER -DHAVE_RWAV -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_REWIND -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -DHAVE_RGUI -DHAVE_FILTERS_BUILTIN -DHAVE_DSP_FILTER -DHAVE_VIDEO_FILTER -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_CC_RESAMPLER
LIBDIR =
LDFLAGS =
LIBS = $(WHOLE_START) -lretro_psp1 $(WHOLE_END) -lstdc++ -lpspgu -lpspgum -lm -lpspaudio -lpspfpu -lpsppower -lpsprtc
LIBS = $(WHOLE_START) -lretro_psp1 $(WHOLE_END) -lstdc++ -lpspgu -lpspgum -lm -lpspaudio -lpspfpu -lpsppower -lpsprtc -lpthread-psp
ifeq ($(HAVE_THREADS), 1)
RARCH_DEFINES += -DHAVE_THREADS
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(HAVE_KERNEL_PRX), 1)
CFLAGS += -DHAVE_KERNEL_PRX
endif
+2 -7
View File
@@ -1,6 +1,5 @@
BUILD_PRX = 0
PSP_LARGE_MEMORY = 1
HAVE_FILE_LOGGER = 0
DEBUG = 0
TARGET = retroarchpsp_salamander
@@ -21,10 +20,6 @@ LIBDIR =
LDFLAGS =
LIBS = -lstdc++ -lm -lpsppower
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
CFLAGS += $(RARCH_DEFINES)
EXTRA_TARGETS = EBOOT.PBP
@@ -48,8 +43,8 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
libretro-common/hash/lrc_hash.o \
libretro-common/time/rtime.o \
verbosity.o \
bootstrap/psp1/kernel_functions.o
+231
View File
@@ -0,0 +1,231 @@
#########################
## Toolchain variables ##
#########################
# Default toolchain directory
TOOLCHAIN_DIR=/opt/gcw0-toolchain
# All toolchain-related variables may be
# overridden via the command line
ifdef GCW0_CC
CC = $(GCW0_CC)
else
CC = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-gcc
endif
ifdef GCW0_CXX
CXX = $(GCW0_CXX)
else
CXX = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-g++
endif
ifdef GCW0_STRIP
STRIP = $(GCW0_STRIP)
else
STRIP = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-strip
endif
GCW0_SDL_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config
GCW0_FREETYPE_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/freetype-config
GCW0_MK_SQUASH_FS ?= $(TOOLCHAIN_DIR)/usr/bin/mksquashfs
GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include
GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib
#########################
#########################
PACKAGE_NAME = retroarch
DEBUG ?= 0
DINGUX = 1
HAVE_SCREENSHOTS = 0
HAVE_REWIND = 1
HAVE_7ZIP = 1
HAVE_AL = 1
# ALSA freezes when switching back from menu
HAVE_ALSA = 0
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_FILTERS_BUILTIN = 1
HAVE_BUILTINMBEDTLS = 0
HAVE_BUILTINZLIB = 1
HAVE_C99 = 1
HAVE_CC = 1
HAVE_CC_RESAMPLER = 1
HAVE_CHD = 1
HAVE_COMMAND = 0
HAVE_CXX = 1
HAVE_DR_MP3 = 1
HAVE_DYNAMIC = 1
HAVE_EGL = 0
HAVE_FREETYPE = 0
HAVE_GDI = 1
HAVE_GETADDRINFO = 0
HAVE_GETOPT_LONG = 1
HAVE_GLSL = 0
HAVE_HID = 1
HAVE_IBXM = 1
HAVE_IMAGEVIEWER = 1
HAVE_LANGEXTRA = 0
HAVE_LIBRETRODB = 1
HAVE_MENU = 1
HAVE_MENU_COMMON = 1
HAVE_GFX_WIDGETS = 0
HAVE_MMAP = 1
HAVE_OPENDINGUX_FBDEV = 0
HAVE_OPENGL = 0
HAVE_OPENGL1 = 0
HAVE_OPENGLES = 0
HAVE_OPENGLES3 = 0
HAVE_OPENGL_CORE = 0
HAVE_OPENSSL = 1
HAVE_OVERLAY = 0
HAVE_RBMP = 1
HAVE_RJPEG = 1
HAVE_RPILED = 0
HAVE_RPNG = 1
HAVE_RUNAHEAD = 1
HAVE_SDL_DINGUX = 1
HAVE_SHADERPIPELINE = 0
HAVE_STB_FONT = 0
HAVE_STB_IMAGE = 1
HAVE_STB_VORBIS = 1
HAVE_STDIN_CMD = 0
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_UDEV = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 0
HAVE_XMB = 0
HAVE_OZONE = 0
HAVE_ZLIB = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_CHEEVOS = 0
HAVE_LIBSHAKE = 1
OS = Linux
TARGET = retroarch
OPK_NAME = retroarch_rg350.opk
OBJ :=
LINK := $(CXX)
DEF_FLAGS := -march=mips32 -mtune=mips32r2 -mhard-float -ffast-math -fomit-frame-pointer
DEF_FLAGS += -mplt -mno-shared
DEF_FLAGS += -ffunction-sections -fdata-sections
DEF_FLAGS += -I. -Ideps -Ideps/stb -DDINGUX=1 -MMD
DEF_FLAGS += -Wall -Wno-unused-variable
DEF_FLAGS += -std=gnu99 -D_GNU_SOURCE -flto
LIBS := -ldl -lz -lrt -ludev -pthread
CFLAGS :=
CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS
ASFLAGS :=
LDFLAGS := -Wl,--gc-sections
INCLUDE_DIRS = -I$(GCW0_INC_DIR)
LIBRARY_DIRS = -L$(GCW0_LIB_DIR)
DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
DEFINES += -DHAVE_AL=1
DEFINES += -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_UDEV=1
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
FREETYPE_CFLAGS := $(shell $(GCW0_FREETYPE_CONFIG) --cflags)
FREETYPE_LIBS := $(shell $(GCW0_FREETYPE_CONFIG) --libs)
AL_LIBS := -lopenal
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)
LDFLAGS += $(CFLAGS) $(CXXFLAGS) $(DEF_FLAGS)
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=Frontend for emulators, game engines
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 $@),)
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.m
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo OBJC $<),)
$(Q)$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
$(Q)$(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
ifeq ($(STRIP_BIN),1)
$(STRIP) --strip-unneeded retroarch
endif
$(GCW0_MK_SQUASH_FS) 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 '$*=$($*)'
+232
View File
@@ -0,0 +1,232 @@
#########################
## Toolchain variables ##
#########################
# Default toolchain directory
TOOLCHAIN_DIR=/opt/gcw0-toolchain
# All toolchain-related variables may be
# overridden via the command line
ifdef GCW0_CC
CC = $(GCW0_CC)
else
CC = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-gcc
endif
ifdef GCW0_CXX
CXX = $(GCW0_CXX)
else
CXX = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-g++
endif
ifdef GCW0_STRIP
STRIP = $(GCW0_STRIP)
else
STRIP = $(TOOLCHAIN_DIR)/usr/bin/mipsel-gcw0-linux-uclibc-strip
endif
GCW0_SDL_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config
GCW0_FREETYPE_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/freetype-config
GCW0_MK_SQUASH_FS ?= $(TOOLCHAIN_DIR)/usr/bin/mksquashfs
GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include
GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib
#########################
#########################
PACKAGE_NAME = retroarch
DEBUG ?= 0
DINGUX = 1
DINGUX_BETA = 1
HAVE_SCREENSHOTS = 0
HAVE_REWIND = 1
HAVE_7ZIP = 1
HAVE_AL = 1
HAVE_ALSA = 1
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_FILTERS_BUILTIN = 1
HAVE_BUILTINMBEDTLS = 0
HAVE_BUILTINZLIB = 1
HAVE_C99 = 1
HAVE_CC = 1
HAVE_CC_RESAMPLER = 1
HAVE_CHD = 1
HAVE_COMMAND = 0
HAVE_CXX = 1
HAVE_DR_MP3 = 1
HAVE_DYNAMIC = 1
HAVE_EGL = 0
HAVE_FREETYPE = 0
HAVE_GDI = 1
HAVE_GETADDRINFO = 0
HAVE_GETOPT_LONG = 1
HAVE_GLSL = 0
HAVE_HID = 1
HAVE_IBXM = 1
HAVE_IMAGEVIEWER = 1
HAVE_LANGEXTRA = 0
HAVE_LIBRETRODB = 1
HAVE_MENU = 1
HAVE_MENU_COMMON = 1
HAVE_GFX_WIDGETS = 0
HAVE_MMAP = 1
HAVE_OPENDINGUX_FBDEV = 0
HAVE_OPENGL = 0
HAVE_OPENGL1 = 0
HAVE_OPENGLES = 0
HAVE_OPENGLES3 = 0
HAVE_OPENGL_CORE = 0
HAVE_OPENSSL = 1
HAVE_OVERLAY = 0
HAVE_RBMP = 1
HAVE_RJPEG = 1
HAVE_RPILED = 0
HAVE_RPNG = 1
HAVE_RUNAHEAD = 1
HAVE_SDL_DINGUX = 1
HAVE_SHADERPIPELINE = 0
HAVE_STB_FONT = 0
HAVE_STB_IMAGE = 1
HAVE_STB_VORBIS = 1
HAVE_STDIN_CMD = 0
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_UDEV = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 0
HAVE_XMB = 0
HAVE_OZONE = 0
HAVE_ZLIB = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_CHEEVOS = 0
HAVE_LIBSHAKE = 1
OS = Linux
TARGET = retroarch
OPK_NAME = retroarch_rg350_odbeta.opk
OBJ :=
LINK := $(CXX)
DEF_FLAGS := -mplt -mno-shared
DEF_FLAGS += -ffunction-sections -fdata-sections
DEF_FLAGS += -I. -Ideps -Ideps/stb -DDINGUX=1 -DDINGUX_BETA=1 -MMD
DEF_FLAGS += -Wall -Wno-unused-variable
DEF_FLAGS += -std=gnu99 -D_GNU_SOURCE -flto
DEF_FLAGS += -lasound
LIBS := -ldl -lz -lrt -ludev -pthread
CFLAGS :=
CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS
ASFLAGS :=
LDFLAGS := -Wl,--gc-sections
INCLUDE_DIRS = -I$(GCW0_INC_DIR)
LIBRARY_DIRS = -L$(GCW0_LIB_DIR)
DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
DEFINES += -DHAVE_AL=1
DEFINES += -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_UDEV=1
DEFINES += -DHAVE_ALSA
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
FREETYPE_CFLAGS := $(shell $(GCW0_FREETYPE_CONFIG) --cflags)
FREETYPE_LIBS := $(shell $(GCW0_FREETYPE_CONFIG) --libs)
AL_LIBS := -lopenal
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)
LDFLAGS += $(CFLAGS) $(CXXFLAGS) $(DEF_FLAGS)
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=Frontend for emulators, game engines
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 $@),)
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.m
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo OBJC $<),)
$(Q)$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
$(Q)$(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
ifeq ($(STRIP_BIN),1)
$(STRIP) --strip-unneeded retroarch
endif
$(GCW0_MK_SQUASH_FS) 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 '$*=$($*)'
+234
View File
@@ -0,0 +1,234 @@
#########################
## Toolchain variables ##
#########################
# Alpha toolchain
TOOLCHAIN_DIR=/opt/rs90-toolchain
# All toolchain-related variables may be
# overridden via the command line
ifdef GCW0_CC
CC = $(GCW0_CC)
else
CC = $(TOOLCHAIN_DIR)/usr/bin/mipsel-rs90-linux-musl-gcc
endif
ifdef GCW0_CXX
CXX = $(GCW0_CXX)
else
CXX = $(TOOLCHAIN_DIR)/usr/bin/mipsel-rs90-linux-musl-g++
endif
ifdef GCW0_STRIP
STRIP = $(GCW0_STRIP)
else
STRIP = $(TOOLCHAIN_DIR)/usr/bin/mipsel-rs90-linux-musl-strip
endif
GCW0_SDL_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-rs90-linux-musl/sysroot/usr/bin/sdl-config
GCW0_FREETYPE_CONFIG ?= $(TOOLCHAIN_DIR)/usr/mipsel-rs90-linux-musl/sysroot/usr/bin/freetype-config
GCW0_MK_SQUASH_FS ?= $(TOOLCHAIN_DIR)/usr/bin/mksquashfs
GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-rs90-linux-musl/sysroot/usr/include
GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-rs90-linux-musl/sysroot/usr/lib
#########################
#########################
PACKAGE_NAME = retroarch
DEBUG ?= 0
RS90 = 1
DINGUX = 1
DINGUX_BETA = 1
HAVE_SCREENSHOTS = 0
HAVE_REWIND = 0
HAVE_7ZIP = 1
HAVE_AL = 0
HAVE_ALSA = 1
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_FILTERS_BUILTIN = 1
HAVE_BUILTINMBEDTLS = 0
HAVE_BUILTINZLIB = 1
HAVE_C99 = 1
HAVE_CC = 1
HAVE_CC_RESAMPLER = 1
HAVE_CHD = 0
HAVE_COMMAND = 0
HAVE_CXX = 1
HAVE_DR_MP3 = 0
HAVE_DYNAMIC = 1
HAVE_EGL = 0
HAVE_FREETYPE = 0
HAVE_GDI = 0
HAVE_GETADDRINFO = 0
HAVE_GETOPT_LONG = 1
HAVE_GLSL = 0
HAVE_HID = 0
HAVE_IBXM = 0
HAVE_IMAGEVIEWER = 0
HAVE_LANGEXTRA = 0
HAVE_LIBRETRODB = 1
HAVE_MENU = 1
HAVE_MENU_COMMON = 1
HAVE_GFX_WIDGETS = 0
HAVE_MMAP = 1
HAVE_OPENDINGUX_FBDEV = 0
HAVE_OPENGL = 0
HAVE_OPENGL1 = 0
HAVE_OPENGLES = 0
HAVE_OPENGLES3 = 0
HAVE_OPENGL_CORE = 0
HAVE_OPENSSL = 0
HAVE_OVERLAY = 0
HAVE_RBMP = 1
HAVE_RJPEG = 1
HAVE_RPILED = 0
HAVE_RPNG = 1
HAVE_RUNAHEAD = 0
HAVE_SDL_DINGUX = 1
HAVE_SHADERPIPELINE = 0
HAVE_STB_FONT = 0
HAVE_STB_IMAGE = 0
HAVE_STB_VORBIS = 0
HAVE_STDIN_CMD = 0
HAVE_STRCASESTR = 1
HAVE_THREADS = 1
HAVE_UDEV = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 0
HAVE_XMB = 0
HAVE_OZONE = 0
HAVE_ZLIB = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_CHEEVOS = 0
HAVE_LIBSHAKE = 0
HAVE_TINYALSA = 1
HAVE_NEAREST_RESAMPLER = 1
OS = Linux
TARGET = retroarch
OPK_NAME = retroarch_rs90_odbeta.opk
OBJ :=
LINK := $(CXX)
DEF_FLAGS := -mplt -mno-shared
DEF_FLAGS += -ffunction-sections -fdata-sections
DEF_FLAGS += -I. -Ideps -Ideps/stb -DRS90=1 -DDINGUX=1 -DDINGUX_BETA=1 -MMD
DEF_FLAGS += -Wall -Wno-unused-variable
DEF_FLAGS += -std=gnu99 -D_GNU_SOURopendinguxCE -flto -lasound
LIBS := -ldl -lz -lrt -ludev -pthread
CFLAGS :=
CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS
ASFLAGS :=
LDFLAGS := -Wl,--gc-sections
INCLUDE_DIRS = -I$(GCW0_INC_DIR)
LIBRARY_DIRS = -L$(GCW0_LIB_DIR)
DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY
DEFINES += -DHAVE_C99=1 -DHAVE_CXX=1
DEFINES += -DHAVE_GETOPT_LONG=1 -DHAVE_STRCASESTR=1 -DHAVE_DYNAMIC=1
DEFINES += -DHAVE_FILTERS_BUILTIN
DEFINES += -DHAVE_UDEV=1
DEFINES += -DHAVE_ALSA
DEFINES += -DCC_RESAMPLER_PRECISION=0
SDL_DINGUX_CFLAGS := $(shell $(GCW0_SDL_CONFIG) --cflags)
SDL_DINGUX_LIBS := $(shell $(GCW0_SDL_CONFIG) --libs)
FREETYPE_CFLAGS := $(shell $(GCW0_FREETYPE_CONFIG) --cflags)
FREETYPE_LIBS := $(shell $(GCW0_FREETYPE_CONFIG) --libs)
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 += -Ofast -DNDEBUG
endif
include Makefile.common
DEF_FLAGS += $(INCLUDE_DIRS)
LDFLAGS += $(CFLAGS) $(CXXFLAGS) $(DEF_FLAGS)
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=Frontend for emulators, game engines
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 $@),)
$(Q)$(LINK) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
$(OBJDIR)/%.o: %.c
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.m
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo OBJC $<),)
$(Q)$(CXX) $(OBJCFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.S $(HEADERS)
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo AS $<),)
$(Q)$(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.rs90.desktop
rm -f $(OPK_NAME)
cp media/ico_src/icon32.png retroarch.png
ifeq ($STRIP_BIN, 1)
$(STRIP) --strip-unneeded retroarch
endif
$(GCW0_MK_SQUASH_FS) retroarch default.rs90.desktop retroarch.png $(OPK_NAME) -all-root -no-xattrs -noappend -no-exports
rm -f default.rs90.desktop retroarch.png
.PHONY: all clean opk
print-%:
@echo '$*=$($*)'
+9 -2
View File
@@ -6,16 +6,18 @@ WHOLE_ARCHIVE_LINK = 0
OBJ :=
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL -DHAVE_DYNAMIC
DEFINES := -DSWITCH=1 -U__linux__ -U__linux -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_DYNAMIC -DHAVE_REWIND
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_NEON -DHAVE_MATERIALUI -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER
DEFINES += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA
DEFINES += -DHAVE_RUNAHEAD -DHAVE_DYNAMIC
DEFINES += -DHAVE_CONFIGFILE
DEFINES += -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS
else
HAVE_REWIND = 1
HAVE_AUDIOMIXER = 1
HAVE_RWAV = 1
HAVE_CC_RESAMPLER = 1
HAVE_MENU_COMMON = 1
HAVE_RTGA = 1
@@ -24,6 +26,8 @@ else
HAVE_RBMP = 1
HAVE_RGUI = 1
HAVE_ZLIB = 1
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_BUILTINZLIB = 1
HAVE_LIBRETRODB = 1
HAVE_MATERIALUI = 0 # enable later?
@@ -34,6 +38,9 @@ else
HAVE_CONFIGFILE = 1
HAVE_RUNAHEAD = 1
HAVE_DYNAMIC = 1
HAVE_PATCH = 1
HAVE_CHEATS = 1
HAVE_IBXM = 1
include Makefile.common
CFLAGS += $(DEF_FLAGS)
+61 -13
View File
@@ -1,5 +1,6 @@
TARGET := retroarch_vita
DEBUG ?= 0
HAVE_FILE_LOGGER = 1
GRIFFIN_BUILD = 0
WHOLE_ARCHIVE_LINK = 0
@@ -11,24 +12,29 @@ PC_DEVELOPMENT_UDP_PORT =
OBJ :=
DEFINES := -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS
SCE_LIBC_SIZE := 4194304
DEFINES := -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_STB_VORBIS
INCDIRS :=
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
DEFINES += -DHAVE_GRIFFIN=1
DEFINES += -DHAVE_NEON -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_LIBRETRODB DEFINES -DHAVE_KEYMAPPER
DEFINES += -DHAVE_REWIND
DEFINES += -DHAVE_NEON -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -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_REWIND := 1
HAVE_UPDATE_ASSETS := 1
HAVE_ONLINE_UPDATER := 1
HAVE_NEON := 1
HAVE_MATH_NEON := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_SCREENSHOTS := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
@@ -37,14 +43,28 @@ else
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_VITA2D := 1
HAVE_VITAGL := 1
ifeq ($(HAVE_VITAGLES), 1)
HAVE_VITA2D := 0
HAVE_VITAGL := 0
HAVE_VITAGLES := 1
HAVE_OPENGL := 1
HAVE_OPENGLES := 1
HAVE_OPENGLES2 := 1
HAVE_EGL := 1
HAVE_GLSL := 1
HAVE_SHADERPIPELINE := 1
else
HAVE_VITA2D := 1
HAVE_VITAGL := 0
endif
HAVE_NETWORKING := 1
HAVE_SOCKET_LEGACY := 1
HAVE_MENU := 1
HAVE_MENU_COMMON := 1
HAVE_GFX_WIDGETS := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
HAVE_MATERIALUI := 1
@@ -60,6 +80,7 @@ else
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
ifeq ($(DEBUG), 1)
HAVE_NETLOGGER = 1
@@ -92,17 +113,25 @@ LD := $(CXX)
LIBDIRS := -L.
ARCHFLAGS := -march=armv7-a -mfpu=neon -mfloat-abi=hard -DVITA
CFLAGS += $(ARCHFLAGS) -mword-relocations -fno-optimize-sibling-calls -O2
ifeq ($(HAVE_VITAGLES), 1)
ARCHFLAGS += -DSCE_LIBC_SIZE=$(SCE_LIBC_SIZE)
endif
CFLAGS += $(ARCHFLAGS) -mword-relocations -fno-optimize-sibling-calls
ifeq ($(DEBUG), 1)
CFLAGS += -g
CFLAGS += -g -Og
else
CFLAGS += -O2
endif
ASFLAGS := $(CFLAGS)
LDFLAGS := -Wl,-q
CFLAGS += -Wall -ffast-math -g
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE
CFLAGS += -Wall -ffast-math
CFLAGS += -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DRARCH_CONSOLE
CFLAGS += -DHAVE_DSP_FILTER
CFLAGS += -DHAVE_VIDEO_FILTER
CFLAGS += -DHAVE_FILTERS_BUILTIN $(DEFINES)
ifneq ($(PC_DEVELOPMENT_IP_ADDRESS),)
@@ -122,7 +151,15 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
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 -lSceMotion_stub \
-lSceFiber_stub -lSceMotion_stub -lSceAppMgr_stub -lpthread -lpng -lz
-lSceFiber_stub -lSceMotion_stub -lSceAppMgr_stub -lpthread -lpng -lz -lSceShaccCg_stub
ifeq ($(HAVE_VITAGLES), 1)
VITA_LIBS += -llibScePiglet_stub -ltaihen_stub
FSELF_FLAGS := -ss
else
VITA_LIBS += -lvitaGL -lvitashark
FSELF_FLAGS := -s
endif
LIBS := $(WHOLE_START) -lretro_vita $(WHOLE_END) $(VITA_LIBS) -lm -lc
@@ -155,7 +192,13 @@ all: $(TARGETS)
%.depend: ;
$(TARGET).elf: $(OBJ) libretro_vita.a
liblibScePiglet_stub.a:
mkdir -p deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet
vita-libs-gen deps/Pigs-In-A-Blanket/piglet_stub/nids.yml deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet
make -C deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet ARCH=arm-vita-eabi
cp deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet/liblibScePiglet_stub.a .
$(TARGET).elf: $(OBJ) libretro_vita.a liblibScePiglet_stub.a
$(LD) $(OBJ) $(LDFLAGS) $(LIBDIRS) $(LIBS) -o $@
%.velf: %.elf
@@ -164,14 +207,15 @@ $(TARGET).elf: $(OBJ) libretro_vita.a
vita-elf-create $< $@
%.self: %.velf
vita-make-fself -c -s $< $@
vita-make-fself -c $(FSELF_FLAGS) $< $@
%.vpk: %.self
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).elf.unstripped.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 -rf deps/Pigs-In-A-Blanket/piglet_stub/libScePiglet
rm -f $(OBJ:.o=.depend)
# Useful for developers
@@ -181,6 +225,10 @@ vpksend: $(TARGET).vpk
send: $(TARGET).self
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
launch: $(TARGET).self
curl -T $< ftp://$(PSVITAIP):1337/ux0:/app/$(VITA_TITLE_ID)/eboot.bin
echo "launch $(VITA_TITLE_ID)" | nc ${PSVITAIP} 1338
.PHONY: clean all send vpksend
.PRECIOUS: %.depend
+3 -3
View File
@@ -48,14 +48,14 @@ OBJS = frontend/frontend_salamander.o \
libretro-common/file/config_file.o \
libretro-common/streams/file_stream.o \
libretro-common/vfs/vfs_implementation.o \
libretro-common/hash/rhash.o \
file_path_str.o \
libretro-common/hash/lrc_hash.o \
libretro-common/time/rtime.o \
verbosity.o
all: $(TARGET).vpk
%.vpk: eboot.bin
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "$(TARGET)" -d ATTRIBUTE2=12 param.sfo
vita-mksfoex -s TITLE_ID=$(TITLE_ID) "RetroArch" -d ATTRIBUTE2=12 param.sfo
vita-pack-vpk -s param.sfo -b eboot.bin $@
eboot.bin: $(TARGET).velf
+385
View File
@@ -0,0 +1,385 @@
ROOT_DIR := .
DEPS_DIR := $(ROOT_DIR)/deps
DEBUG ?= 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
HAVE_CC_RESAMPLER = 1
WHOLE_ARCHIVE_LINK = 0
BIG_STACK = 1
PC_DEVELOPMENT_IP_ADDRESS = 255.255.255.255
PC_DEVELOPMENT_UDP_PORT = 3490
RARCH_CONSOLE = 0
USBGECKO = 0
SPACE :=
SPACE := $(SPACE) $(SPACE)
BACKSLASH :=
BACKSLASH := \$(BACKSLASH)
filter_out1 = $(filter-out $(firstword $1),$1)
filter_out2 = $(call filter_out1,$(call filter_out1,$1))
# system platform
system_platform = unix
ifeq ($(shell uname -s),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -s)),)
system_platform = osx
else ifneq ($(findstring MINGW,$(shell uname -s)),)
system_platform = win
endif
TARGET_NAME := retroarch
INCLUDE :=
LDFLAGS :=
LIBDIRS :=
ifeq ($(LIBRETRO), nxengine)
WHOLE_ARCHIVE_LINK = 1
endif
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
WHOLE_START := -Wl,--whole-archive
WHOLE_END := -Wl,--no-whole-archive
endif
LIBS := $(WHOLE_START) -lretro_wii $(WHOLE_END)
libogc_platform := 1
EXTERNAL_LIBOGC ?= 0
GX_PTHREAD_LEGACY ?= 1
CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT)
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
EXT_TARGET := $(TARGET_NAME)_wii.dol
EXT_INTER_TARGET := $(TARGET_NAME)_wii.elf
# Check whether ELF2DOL executable exists
# (path has changed in more recent toolchains)
ifeq ("$(wildcard $(ELF2DOL))","")
ELF2DOL = $(DEVKITPRO)/tools/bin/elf2dol$(EXE_EXT)
endif
INCLUDE += -I. -I$(DEVKITPRO)/libogc/include -Iwii/libogc/include
ifeq ($(EXTERNAL_LIBOGC), 1)
CFLAGS += -DEXTERNAL_LIBOGC
CXXFLAGS += -DEXTERNAL_LIBOGC
LIBDIRS += -L$(DEVKITPRO)/libogc/lib/wii
else
CFLAGS += -DINTERNAL_LIBOGC
CXXFLAGS += -DINTERNAL_LIBOGC
LIBDIRS += -Lwii/libogc/libs/wii
endif
ifeq ($(GX_PTHREAD_LEGACY), 1)
CFLAGS += -DGX_PTHREAD_LEGACY
CXXFLAGS += -DGX_PTHREAD_LEGACY
endif
MACHDEP := -DHW_RVL -mrvl
LIBDIRS += -L.
MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,strdup,-wrap,strndup,-wrap,malloc_usable_size
ifeq ($(BIG_STACK), 1)
LDFLAGS += -T bootstrap/gx/rvl.ld
endif
ifeq ($(EXTERNAL_LIBOGC), 1)
LIBS += -lfat
endif
LIBS += -lwiiuse -lbte
ifeq ($(USBGECKO), 1)
LIBS += -ldb
endif
LIBS += -logc
CFLAGS += -DGEKKO -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
HAVE_RUNAHEAD := 1
HAVE_DSP_FILTER := 1
HAVE_VIDEO_FILTER := 1
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_IBXM := 1
HAVE_OVERLAY := 1
HAVE_VIDEO_LAYOUT := 0
HAVE_ZLIB := 1
HAVE_7ZIP := 1
HAVE_CONFIGFILE := 1
HAVE_PATCH := 1
HAVE_CHEATS := 1
HAVE_SCREENSHOTS := 1
HAVE_REWIND := 1
HAVE_AUDIOMIXER := 1
HAVE_RWAV := 1
RARCH_CONSOLE = 1
#HAVE_LANGEXTRA := 1
HAVE_WIIUSB_HID := 1
HAVE_RARCH_EXEC := 1
HAVE_RSOUND := 1
APP_BOOTER_DIR = wii/app_booter
PLATOBJS := $(APP_BOOTER_DIR)/app_booter.binobj
ifeq ($(USBGECKO), 1)
CFLAGS += -DUSBGECKO
endif
HAVE_CHEATS := 1
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(PLATCFLAGS) $(INCLUDE)
INCLUDE += -I./libretro-common/include \
-Ideps \
-Ideps/stb
OBJ = griffin/griffin.o $(PLATOBJS)
ifeq ($(HAVE_GRIFFIN_CPP), 1)
OBJ += griffin/griffin_cpp.o
endif
ifeq ($(WANT_GLSLANG), 1)
OBJ += griffin/griffin_glslang.o
endif
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
endif
CFLAGS += -DHAVE_SOCKET_LEGACY
ifeq ($(HAVE_KERNEL_PRX), 1)
CFLAGS += -DHAVE_KERNEL_PRX
endif
ifeq ($(HAVE_WIIUSB_HID), 1)
CFLAGS += -DHAVE_WIIUSB_HID -DHAVE_HID
endif
ifeq ($(HAVE_LIBRETRODB), 1)
CFLAGS += -DHAVE_LIBRETRODB
endif
ifeq ($(BIG_STACK),1)
CFLAGS += -DBIG_STACK
endif
ifeq ($(HAVE_RJPEG), 1)
CFLAGS += -DHAVE_RJPEG
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(HAVE_RARCH_EXEC), 1)
CFLAGS += -DHAVE_RARCH_EXEC
endif
ifeq ($(HAVE_ZLIB), 1)
CFLAGS += -DHAVE_ZLIB
CFLAGS += -I./libretro-common/include/compat/zlib
endif
ifeq ($(HAVE_RPNG), 1)
CFLAGS += -DHAVE_RPNG
endif
ifeq ($(HAVE_RBMP), 1)
CFLAGS += -DHAVE_RBMP
endif
ifeq ($(HAVE_RTGA), 1)
CFLAGS += -DHAVE_RTGA
endif
ifeq ($(HAVE_IMAGEVIEWER), 1)
CFLAGS += -DHAVE_IMAGEVIEWER
endif
ifeq ($(HAVE_BSV_MOVIE), 1)
CFLAGS += -DHAVE_BSV_MOVIE
endif
ifeq ($(HAVE_RUNAHEAD), 1)
CFLAGS += -DHAVE_RUNAHEAD
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP -D_7ZIP_ST
endif
ifeq ($(HAVE_SCREENSHOTS), 1)
CFLAGS += -DHAVE_SCREENSHOTS
endif
ifeq ($(HAVE_REWIND), 1)
CFLAGS += -DHAVE_REWIND
endif
ifeq ($(HAVE_AUDIOMIXER), 1)
CFLAGS += -DHAVE_AUDIOMIXER
endif
ifeq ($(HAVE_RWAV), 1)
CFLAGS += -DHAVE_RWAV
endif
ifeq ($(HAVE_OVERLAY), 1)
CFLAGS += -DHAVE_OVERLAY
endif
ifeq ($(HAVE_VIDEO_LAYOUT), 1)
CFLAGS += -DHAVE_VIDEO_LAYOUT
endif
ifeq ($(HAVE_NETWORKING), 1)
CFLAGS += -DHAVE_NETWORKING
endif
ifeq ($(HAVE_NETPLAYDISCOVERY), 1)
CFLAGS += -DHAVE_NETPLAYDISCOVERY
endif
ifeq ($(RARCH_CONSOLE), 1)
CFLAGS += -DRARCH_CONSOLE
endif
ifeq ($(RARCH_MOBILE), 1)
CFLAGS += -DRARCH_MOBILE
endif
CFLAGS += -std=gnu99 -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
ifeq ($(HAVE_MATERIALUI), 1)
CFLAGS += -DHAVE_MATERIALUI
endif
ifeq ($(HAVE_XMB), 1)
CFLAGS += -DHAVE_XMB
endif
ifeq ($(HAVE_STB_FONT), 1)
CFLAGS += -DHAVE_STB_FONT
endif
ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
ifeq ($(HAVE_DSP_FILTER), 1)
CFLAGS += -DHAVE_DSP_FILTER
endif
ifeq ($(HAVE_VIDEO_FILTER), 1)
CFLAGS += -DHAVE_VIDEO_FILTER
endif
ifeq ($(HAVE_FILTERS_BUILTIN), 1)
CFLAGS += -DHAVE_FILTERS_BUILTIN
endif
ifeq ($(HAVE_THREADS), 1)
CFLAGS += -DHAVE_THREADS
endif
ifeq ($(HAVE_CONFIGFILE), 1)
CFLAGS += -DHAVE_CONFIGFILE
endif
ifeq ($(HAVE_PATCH), 1)
CFLAGS += -DHAVE_PATCH
endif
ifeq ($(HAVE_CHEATS), 1)
CFLAGS += -DHAVE_CHEATS
endif
ifeq ($(HAVE_RSOUND), 1)
CFLAGS += -DHAVE_RSOUND
endif
ifeq ($(HAVE_GETOPT_LONG), 1)
CFLAGS += -DHAVE_GETOPT_LONG=1
endif
ifeq ($(HAVE_DYLIB), 1)
CFLAGS += -DHAVE_DYLIB
endif
ifeq ($(HAVE_NETWORK_CMD), 1)
CFLAGS += -DHAVE_NETWORK_CMD
endif
ifeq ($(HAVE_COMMAND), 1)
CFLAGS += -DHAVE_COMMAND
endif
ifeq ($(HAVE_STDIN_CMD), 1)
CFLAGS += -DHAVE_STDIN_CMD
endif
ifeq ($(HAVE_DYNAMIC), 1)
CFLAGS += -DHAVE_DYNAMIC
endif
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g -DDEBUG
else
CFLAGS += -O3
endif
OBJOUT = -o
LINKOUT = -o
LINK = $(CXX)
all: $(EXT_TARGET)
%.dol: %.elf
$(ELF2DOL) $< $@
$(EXT_INTER_TARGET): $(OBJ)
$(LINK) $(LINKOUT)$@ $(LDFLAGS) $(LIBDIRS) $(OBJ) $(PLATEXTRA) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
%.o: %.cpp
$(CXX) $(CFLAGS) -c $(OBJOUT)$@ $<
%.o: %.S
$(CC) $(CFLAGS) -c $(OBJOUT)$@ $<
%.binobj: %.bin
$(LD) -r -b binary $(OBJOUT)$@ $<
$(APP_BOOTER_DIR)/app_booter.bin:
export EXTERNAL_LIBOGC
$(MAKE) -C $(APP_BOOTER_DIR)
clean:
rm -f $(EXT_TARGET)
rm -f $(EXT_INTER_TARGET)
rm -f $(OBJ)
$(MAKE) -C $(APP_BOOTER_DIR) clean
.PHONY: clean
print-%:
@echo '$*=$($*)'
+19 -6
View File
@@ -3,10 +3,11 @@
# Makefile for RetroArch Wii.
##
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
EXTERNAL_LIBOGC = 0
DEBUG = 0
HAVE_LOGGER = 0
HAVE_FILE_LOGGER = 0
EXTERNAL_LIBOGC ?= 0
GX_PTHREAD_LEGACY ?= 1
# system platform
system_platform = unix
@@ -27,6 +28,12 @@ CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
LD = $(DEVKITPPC)/bin/powerpc-eabi-ld$(EXE_EXT)
ELF2DOL = $(DEVKITPPC)/bin/elf2dol$(EXE_EXT)
# Check whether ELF2DOL executable exists
# (path has changed in more recent toolchains)
ifeq ("$(wildcard $(ELF2DOL))","")
ELF2DOL = $(DEVKITPRO)/tools/bin/elf2dol$(EXE_EXT)
endif
DOL_TARGET := retroarch-salamander_wii.dol
ELF_TARGET := retroarch-salamander_wii.elf
@@ -39,6 +46,11 @@ INCLUDE += -Iwii/libogc/include
LIBDIRS := -Lwii/libogc/libs/wii -L.
endif
ifeq ($(GX_PTHREAD_LEGACY), 1)
CFLAGS += -DGX_PTHREAD_LEGACY
CXXFLAGS += -DGX_PTHREAD_LEGACY
endif
MACHDEP := -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS += -Wall -std=gnu99 $(MACHDEP) $(INCLUDE)
LDFLAGS := $(MACHDEP) -Wl,-Map,$(notdir $(ELF_TARGET)).map
@@ -57,7 +69,7 @@ OBJ = frontend/frontend_salamander.o \
frontend/drivers/platform_wii.o \
libretro-common/file/file_path.o \
libretro-common/file/file_path_io.o \
libretro-common/hash/rhash.o \
libretro-common/hash/lrc_hash.o \
libretro-common/string/stdstring.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
@@ -69,7 +81,7 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/compat/compat_strcasestr.o \
libretro-common/compat/fopen_utf8.o \
libretro-common/file/config_file.o \
file_path_str.o \
libretro-common/time/rtime.o \
verbosity.o \
$(APP_BOOTER_DIR)/app_booter.binobj
@@ -127,6 +139,7 @@ $(ELF_TARGET): $(OBJ)
$(LD) -r -b binary -o $@ $<
$(APP_BOOTER_DIR)/app_booter.bin:
export EXTERNAL_LIBOGC
$(MAKE) -C $(APP_BOOTER_DIR)
pkg: all
+18 -7
View File
@@ -66,13 +66,14 @@ ifeq ($(SALAMANDER_BUILD),1)
OBJ += libretro-common/file/config_file.o
OBJ += libretro-common/streams/file_stream.o
OBJ += libretro-common/vfs/vfs_implementation.o
OBJ += libretro-common/hash/rhash.o
OBJ += file_path_str.o
OBJ += libretro-common/hash/lrc_hash.o
OBJ += libretro-common/time/rtime.o
OBJ += verbosity.o
# $(SALAMANDER_BUILD),0
else
DEFINES += -DRARCH_INTERNAL
DEFINES += -DHAVE_SCREENSHOTS
DEFINES += -DHAVE_KEYMAPPER
DEFINES += -DHAVE_ONLINE_UPDATER
DEFINES += -DHAVE_UPDATE_ASSETS
@@ -97,17 +98,19 @@ endif
OBJ += gfx/drivers/gx2_shaders/snowflake.o
ifeq ($(GRIFFIN_BUILD), 1)
OBJ += griffin/griffin.o
OBJ += griffin/griffin.o griffin/griffin_cpp.o
INCDIRS += -Ilibretro-common/include/compat/zlib
# for stb, libfat, iosuhax
INCDIRS += -Ideps -Ideps/libfat/include -Ideps/libiosuhax
INCDIRS += -Ideps -Ideps/libfat/include -Ideps/libiosuhax/include
# pad_functions uses wiiu/input.h
INCDIRS += -Iinput/include
INCDIRS += -Ideps/SPIRV-Cross
DEFINES += -DHAVE_AUDIOMIXER
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_RWAV
DEFINES += -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_GFX_WIDGETS -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -DHAVE_RGUI -DHAVE_LIBRETRODB
DEFINES += -DHAVE_REWIND
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
@@ -120,13 +123,19 @@ endif
# $(GRIFFIN_BUILD),0
else
HAVE_SCREENSHOTS = 1
HAVE_AUDIOMIXER = 1
HAVE_RWAV = 1
HAVE_MENU_COMMON = 1
HAVE_GFX_WIDGETS = 1
HAVE_RTGA = 1
HAVE_RPNG = 1
HAVE_RJPEG = 1
HAVE_RBMP = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_REWIND = 1
HAVE_CHEATS = 1
HAVE_MENU = 1
HAVE_RGUI = 1
HAVE_7ZIP = 1
@@ -147,6 +156,8 @@ endif
HAVE_SPIRV_CROSS = 1
HAVE_SLANG = 1
HAVE_VIDEO_LAYOUT = 0
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_STATIC_VIDEO_FILTERS = 1
HAVE_STATIC_AUDIO_FILTERS = 1
WANT_LIBFAT = 1
@@ -163,7 +174,7 @@ OBJ := $(addprefix $(BUILD_DIR)/,$(OBJ))
#-----------------------------
# Compile flags
DEFINES += -DWIIU -DMSB_FIRST -D__WUT__ -DHW_WUP -D__wiiu__
DEFINES += -DWIIU -D__WUT__ -DHW_WUP -D__wiiu__
DEFINES += -DHAVE_MAIN
DEFINES += -DRARCH_CONSOLE
@@ -184,7 +195,7 @@ CFLAGS := -mcpu=750 -meabi -mhard-float
CFLAGS += -ffast-math -Werror=implicit-function-declaration
CFLAGS += -ffunction-sections -fdata-sections
#CFLAGS += -fomit-frame-pointer -mword-relocations
#CFLAGS += -Wall
CFLAGS += -Wall
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -g
+8 -8
View File
@@ -1,6 +1,8 @@
TARGET = retroarch.exe
HAVE_SCREENSHOTS = 1
HAVE_AUDIOMIXER = 1
HAVE_RWAV = 1
HAVE_DINPUT = 1
HAVE_XAUDIO = 1
HAVE_DSOUND = 1
@@ -15,8 +17,13 @@ HAVE_COMMAND = 1
HAVE_THREADS = 1
HAVE_MENU = 1
HAVE_CONFIGFILE = 1
HAVE_PATCH = 1
HAVE_REWIND = 1
HAVE_CHEATS = 1
HAVE_RGUI = 1
HAVE_MATERIALUI = 1
HAVE_DSP_FILTER = 1
HAVE_VIDEO_FILTER = 1
HAVE_7ZIP = 1
HAVE_PYTHON = 0
DYNAMIC = 1
@@ -96,7 +103,7 @@ OS := Win32
OBJ :=
LIBS := -lm
DEFINES :=
DEFINES += -I. -Ilibretro-common/include -Ilibretro-common/include/compat/zlib -DRARCH_INTERNAL -DHAVE_OVERLAY
DEFINES += -I. -Ilibretro-common/include -Ilibretro-common/include/compat/zlib -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_OVERLAY
#DEFINES += -DHAVE_VIDEO_LAYOUT
LDFLAGS := -L. -static-libgcc
@@ -160,13 +167,6 @@ $(OBJDIR)/%.o: %.c
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
.FORCE:
$(OBJDIR)/git_version.o: git_version.c .FORCE
@-mkdir -p $(dir $@) || mkdir $(subst /,\,$(dir $@)) || echo .
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.cpp | $(dir $@)
@-mkdir -p $(dir $@) || mkdir $(subst /,\,$(dir $@)) || echo .
@$(if $(Q), $(shell echo echo CXX $<),)
+1
View File
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/libretro/RetroArch.svg?branch=master)](https://travis-ci.org/libretro/RetroArch)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/8936/badge.svg)](https://scan.coverity.com/projects/retroarch)
[![Crowdin](https://badges.crowdin.net/retroarch/localized.svg)](https://crowdin.com/project/retroarch)
# RetroArch
-9
View File
@@ -30,13 +30,4 @@
#include "config.h"
#endif
RETRO_BEGIN_DECLS
bool is_accessibility_enabled(void);
bool accessibility_speak_priority(const char* speak_text, int priority);
RETRO_END_DECLS
#endif
+4 -3
View File
@@ -30,7 +30,7 @@ RETRO_BEGIN_DECLS
#define AUDIO_MIXER_MAX_STREAMS 16
#define AUDIO_MIXER_MAX_SYSTEM_STREAMS (AUDIO_MIXER_MAX_STREAMS + 4)
#define AUDIO_MIXER_MAX_SYSTEM_STREAMS (AUDIO_MIXER_MAX_STREAMS + 5)
/* do not define more than (MAX_SYSTEM_STREAMS - MAX_STREAMS) */
enum audio_mixer_system_slot
@@ -38,7 +38,8 @@ enum audio_mixer_system_slot
AUDIO_MIXER_SYSTEM_SLOT_OK = AUDIO_MIXER_MAX_STREAMS,
AUDIO_MIXER_SYSTEM_SLOT_CANCEL,
AUDIO_MIXER_SYSTEM_SLOT_NOTICE,
AUDIO_MIXER_SYSTEM_SLOT_BGM
AUDIO_MIXER_SYSTEM_SLOT_BGM,
AUDIO_MIXER_SYSTEM_SLOT_ACHIEVEMENT_UNLOCK
};
enum audio_action
@@ -76,11 +77,11 @@ enum audio_mixer_state
typedef struct audio_statistics
{
unsigned samples;
float average_buffer_saturation;
float std_deviation_percentage;
float close_to_underrun;
float close_to_blocking;
unsigned samples;
} audio_statistics_t;
RETRO_END_DECLS
+10 -8
View File
@@ -31,6 +31,16 @@ typedef struct audio_thread
sthread_t *thread;
slock_t *lock;
scond_t *cond;
const char *device;
unsigned *new_rate;
int inited;
/* Initialization options. */
unsigned out_rate;
unsigned latency;
unsigned block_frames;
bool alive;
bool stopped;
bool stopped_ack;
@@ -38,14 +48,6 @@ typedef struct audio_thread
bool is_shutdown;
bool use_float;
int inited;
/* Initialization options. */
const char *device;
unsigned *new_rate;
unsigned out_rate;
unsigned latency;
unsigned block_frames;
} audio_thread_t;
static void audio_thread_loop(void *data)
+4 -4
View File
@@ -28,8 +28,8 @@ typedef struct alsa
{
snd_pcm_t *pcm;
size_t buffer_size;
bool nonblock;
unsigned int frame_bits;
bool nonblock;
bool has_float;
bool can_pause;
bool is_paused;
@@ -83,12 +83,12 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
if (snd_pcm_hw_params_malloc(&params) < 0)
goto error;
alsa->has_float = find_float_format(alsa->pcm, params);
format = alsa->has_float ? SND_PCM_FORMAT_FLOAT : SND_PCM_FORMAT_S16;
if (snd_pcm_hw_params_any(alsa->pcm, params) < 0)
goto error;
alsa->has_float = find_float_format(alsa->pcm, params);
format = alsa->has_float ? SND_PCM_FORMAT_FLOAT : SND_PCM_FORMAT_S16;
if (snd_pcm_hw_params_set_access(
alsa->pcm, params, SND_PCM_ACCESS_RW_INTERLEAVED) < 0)
goto error;
+3 -3
View File
@@ -29,18 +29,18 @@
typedef struct alsa
{
uint8_t **buffer;
snd_pcm_t *pcm;
uint8_t *buffer_chunk;
unsigned buffer_index;
unsigned buffer_ptr;
volatile unsigned buffered_blocks;
snd_pcm_t *pcm;
unsigned buf_size;
unsigned buf_count;
bool nonblock;
bool has_float;
bool can_pause;
bool is_paused;
unsigned buf_size;
unsigned buf_count;
} alsa_qsa_t;
typedef long snd_pcm_sframes_t;
+13 -14
View File
@@ -33,20 +33,18 @@
typedef struct alsa_thread
{
snd_pcm_t *pcm;
bool nonblock;
bool is_paused;
bool has_float;
volatile bool thread_dead;
size_t buffer_size;
size_t period_size;
snd_pcm_uframes_t period_frames;
fifo_buffer_t *buffer;
sthread_t *worker_thread;
slock_t *fifo_lock;
scond_t *cond;
slock_t *cond_lock;
size_t buffer_size;
size_t period_size;
snd_pcm_uframes_t period_frames;
bool nonblock;
bool is_paused;
bool has_float;
volatile bool thread_dead;
} alsa_thread_t;
static void alsa_worker_thread(void *data)
@@ -66,7 +64,7 @@ static void alsa_worker_thread(void *data)
size_t fifo_size;
snd_pcm_sframes_t frames;
slock_lock(alsa->fifo_lock);
avail = fifo_read_avail(alsa->buffer);
avail = FIFO_READ_AVAIL(alsa->buffer);
fifo_size = MIN(alsa->period_size, avail);
fifo_read(alsa->buffer, buf, fifo_size);
scond_signal(alsa->cond);
@@ -175,10 +173,11 @@ static void *alsa_thread_init(const char *device,
TRY_ALSA(snd_pcm_open(&alsa->pcm, alsa_dev, SND_PCM_STREAM_PLAYBACK, 0));
TRY_ALSA(snd_pcm_hw_params_malloc(&params));
TRY_ALSA(snd_pcm_hw_params_any(alsa->pcm, params));
alsa->has_float = alsathread_find_float_format(alsa->pcm, params);
format = alsa->has_float ? SND_PCM_FORMAT_FLOAT : SND_PCM_FORMAT_S16;
TRY_ALSA(snd_pcm_hw_params_any(alsa->pcm, params));
TRY_ALSA(snd_pcm_hw_params_set_access(
alsa->pcm, params, SND_PCM_ACCESS_RW_INTERLEAVED));
TRY_ALSA(snd_pcm_hw_params_set_format(alsa->pcm, params, format));
@@ -256,7 +255,7 @@ static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
size_t write_amt;
slock_lock(alsa->fifo_lock);
avail = fifo_write_avail(alsa->buffer);
avail = FIFO_WRITE_AVAIL(alsa->buffer);
write_amt = MIN(avail, size);
fifo_write(alsa->buffer, buf, write_amt);
@@ -271,7 +270,7 @@ static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
{
size_t avail;
slock_lock(alsa->fifo_lock);
avail = fifo_write_avail(alsa->buffer);
avail = FIFO_WRITE_AVAIL(alsa->buffer);
if (avail == 0)
{
@@ -334,7 +333,7 @@ static size_t alsa_thread_write_avail(void *data)
if (alsa->thread_dead)
return 0;
slock_lock(alsa->fifo_lock);
val = fifo_write_avail(alsa->buffer);
val = FIFO_WRITE_AVAIL(alsa->buffer);
slock_unlock(alsa->fifo_lock);
return val;
}
+2 -2
View File
@@ -36,9 +36,9 @@ static void *audioio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_out_rate)
{
int *fd = (int*)calloc(1, sizeof(int));
const char *audiodev = device ? device : DEFAULT_DEV;
struct audio_info info;
const char *audiodev = device ? device : DEFAULT_DEV;
int *fd = (int*)calloc(1, sizeof(int));
if (!fd)
return NULL;
+7 -9
View File
@@ -38,18 +38,16 @@ typedef struct coreaudio
{
slock_t *lock;
scond_t *cond;
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
ComponentInstance dev;
#else
AudioComponentInstance dev;
#endif
fifo_buffer_t *buffer;
size_t buffer_size;
bool dev_alive;
bool is_paused;
fifo_buffer_t *buffer;
bool nonblock;
size_t buffer_size;
} coreaudio_t;
#if TARGET_OS_IOS
@@ -103,7 +101,7 @@ static OSStatus audio_write_cb(void *userdata,
slock_lock(dev->lock);
if (fifo_read_avail(dev->buffer) < write_avail)
if (FIFO_READ_AVAIL(dev->buffer) < write_avail)
{
*action_flags = kAudioUnitRenderAction_OutputIsSilence;
@@ -356,14 +354,14 @@ static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
slock_lock(dev->lock);
write_avail = fifo_write_avail(dev->buffer);
write_avail = FIFO_WRITE_AVAIL(dev->buffer);
if (write_avail > size)
write_avail = size;
fifo_write(dev->buffer, buf, write_avail);
buf += write_avail;
buf += write_avail;
written += write_avail;
size -= write_avail;
size -= write_avail;
if (dev->nonblock)
{
@@ -430,7 +428,7 @@ static size_t coreaudio_write_avail(void *data)
coreaudio_t *dev = (coreaudio_t*)data;
slock_lock(dev->lock);
avail = fifo_write_avail(dev->buffer);
avail = FIFO_WRITE_AVAIL(dev->buffer);
slock_unlock(dev->lock);
return avail;
+17 -16
View File
@@ -23,6 +23,7 @@
#include <memory.h>
#include "../../retroarch.h"
#include "../../verbosity.h"
#pragma mark - ringbuffer
@@ -30,9 +31,9 @@ typedef struct ringbuffer
{
float *buffer;
size_t cap;
size_t write_ptr;
size_t read_ptr;
atomic_int len;
size_t writePtr;
size_t readPtr;
} ringbuffer_t;
typedef ringbuffer_t * ringbuffer_h;
@@ -44,7 +45,7 @@ static inline size_t rb_len(ringbuffer_h r)
static inline size_t rb_cap(ringbuffer_h r)
{
return (r->readPtr + r->cap - r->writePtr) % r->cap;
return (r->read_ptr + r->cap - r->write_ptr) % r->cap;
}
static inline size_t rb_avail(ringbuffer_h r)
@@ -54,17 +55,17 @@ static inline size_t rb_avail(ringbuffer_h r)
static inline void rb_advance_write(ringbuffer_h r)
{
r->writePtr = (r->writePtr + 1) % r->cap;
r->write_ptr = (r->write_ptr + 1) % r->cap;
}
static inline void rb_advance_write_n(ringbuffer_h r, size_t n)
{
r->writePtr = (r->writePtr + n) % r->cap;
r->write_ptr = (r->write_ptr + n) % r->cap;
}
static inline void rb_advance_read(ringbuffer_h r)
{
r->readPtr = (r->readPtr + 1) % r->cap;
r->read_ptr = (r->read_ptr + 1) % r->cap;
}
static inline void rb_len_add(ringbuffer_h r, int n)
@@ -79,11 +80,11 @@ static inline void rb_len_sub(ringbuffer_h r, int n)
static void rb_init(ringbuffer_h r, size_t cap)
{
r->buffer = malloc(cap * sizeof(float));
r->cap = cap;
r->buffer = malloc(cap * sizeof(float));
r->cap = cap;
atomic_init(&r->len, 0);
r->writePtr = 0;
r->readPtr = 0;
r->write_ptr = 0;
r->read_ptr = 0;
}
static void rb_free(ringbuffer_h r)
@@ -102,13 +103,13 @@ static void rb_write_data(ringbuffer_h r, const float *data, size_t len)
size_t first_write = n;
size_t rest_write = 0;
if (r->writePtr + n > r->cap)
if (r->write_ptr + n > r->cap)
{
first_write = r->cap - r->writePtr;
rest_write = n - first_write;
first_write = r->cap - r->write_ptr;
rest_write = n - first_write;
}
memcpy(r->buffer + r->writePtr, data, first_write*sizeof(float));
memcpy(r->buffer + r->write_ptr, data, first_write*sizeof(float));
memcpy(r->buffer, data + first_write, rest_write*sizeof(float));
rb_advance_write_n(r, n);
@@ -126,9 +127,9 @@ static void rb_read_data(ringbuffer_h r,
int i = 0;
for (; i < n/2; i++)
{
d0[i] = r->buffer[r->readPtr];
d0[i] = r->buffer[r->read_ptr];
rb_advance_read(r);
d1[i] = r->buffer[r->readPtr];
d1[i] = r->buffer[r->read_ptr];
rb_advance_read(r);
}
+4 -3
View File
@@ -23,8 +23,8 @@
typedef struct
{
bool nonblock;
bool playing;
uint64_t cpu_ticks_last;
int16_t* l;
int16_t* r;
@@ -34,7 +34,8 @@ typedef struct
uint32_t pos;
uint32_t playpos;
uint64_t cpu_ticks_last;
bool nonblock;
bool playing;
} ctr_csnd_audio_t;
#define CTR_CSND_AUDIO_COUNT (1u << 11u)
+12 -4
View File
@@ -22,12 +22,11 @@
typedef struct
{
ndspWaveBuf dsp_buf; /* TODO/FIXME - find out alignment */
int channel;
uint32_t pos;
bool nonblock;
bool playing;
int channel;
ndspWaveBuf dsp_buf;
uint32_t pos;
} ctr_dsp_audio_t;
#define CTR_DSP_AUDIO_COUNT (1u << 11u)
@@ -108,6 +107,15 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
{
do{
svcSleepThread(100000);
/* Run aptMainLoop to update APT state if DSP state
* changed, this prevents a hang on sleep. */
if(!aptMainLoop())
{
command_event(CMD_EVENT_QUIT, NULL);
return true;
}
sample_pos = ndspChnGetSamplePos(ctr->channel);
}while (((sample_pos - (ctr->pos + (size >>2))) & CTR_DSP_AUDIO_COUNT_MASK) > (CTR_DSP_AUDIO_COUNT >> 1)
|| (((ctr->pos - (CTR_DSP_AUDIO_COUNT >> 4) - sample_pos) & CTR_DSP_AUDIO_COUNT_MASK) > (CTR_DSP_AUDIO_COUNT >> 1)));
+339
View File
@@ -0,0 +1,339 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2020 - Justin Weiss
*
* 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 <3ds.h>
#include <string.h>
#include <malloc.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "../../retroarch.h"
#include "../../ctr/ctr_debug.h"
typedef struct
{
fifo_buffer_t* fifo;
size_t fifo_size;
slock_t* fifo_lock;
scond_t* fifo_avail;
scond_t* fifo_done;
sthread_t* thread;
volatile bool running;
bool nonblocking;
bool playing;
retro_time_t frame_time;
int channel;
ndspWaveBuf dsp_buf;
uint32_t pos;
} ctr_dsp_thread_audio_t;
// PCM16 stereo
#define DSP_BYTES_TO_SAMPLES(bytes) (bytes / (2 * sizeof(uint16_t)))
#define DSP_SAMPLES_TO_BYTES(samples) (samples * 2 * sizeof(uint16_t))
static void ctr_dsp_audio_loop(void* data)
{
uint32_t pos, buf_pos;
ctr_dsp_thread_audio_t *ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr)
return;
while (1)
{
size_t buf_avail, avail, to_write;
slock_lock(ctr->fifo_lock);
do {
avail = FIFO_READ_AVAIL(ctr->fifo);
if (!avail) {
scond_wait(ctr->fifo_avail, ctr->fifo_lock);
}
} while (!avail && ctr->running);
slock_unlock(ctr->fifo_lock);
if (!ctr->running)
break;
pos = ctr->pos;
buf_pos = DSP_SAMPLES_TO_BYTES(ndspChnGetSamplePos(ctr->channel));
buf_avail = buf_pos >= pos ? buf_pos - pos : ctr->fifo_size - pos;
to_write = MIN(avail, buf_avail);
slock_lock(ctr->fifo_lock);
if (to_write > 0) {
fifo_read(ctr->fifo, ctr->dsp_buf.data_pcm8 + pos, to_write);
DSP_FlushDataCache(ctr->dsp_buf.data_pcm8 + pos, to_write);
scond_signal(ctr->fifo_done);
}
slock_unlock(ctr->fifo_lock);
if (buf_pos == pos) {
svcSleepThread(100000);
}
ctr->pos = (pos + to_write) % ctr->fifo_size;
}
}
static void ctr_dsp_thread_audio_free(void *data);
static void *ctr_dsp_thread_audio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
ctr_dsp_thread_audio_t *ctr = NULL;
(void)device;
(void)rate;
if (ndspInit() < 0)
return NULL;
ctr = (ctr_dsp_thread_audio_t*)calloc(1, sizeof(ctr_dsp_thread_audio_t));
if (!ctr)
return NULL;
*new_rate = 32728;
ctr->running = true;
ctr->channel = 0;
ndspSetOutputMode(NDSP_OUTPUT_STEREO);
ndspSetClippingMode(NDSP_CLIP_SOFT); /* ?? */
ndspSetOutputCount(2);
ndspChnReset(ctr->channel);
ndspChnSetFormat(ctr->channel, NDSP_FORMAT_STEREO_PCM16);
ndspChnSetInterp(ctr->channel, NDSP_INTERP_NONE);
ndspChnSetRate(ctr->channel, 32728.0f);
ndspChnWaveBufClear(ctr->channel);
ctr->fifo_size = DSP_SAMPLES_TO_BYTES((*new_rate * MAX(latency, 8)) / 1000);
ctr->dsp_buf.data_pcm16 = linearAlloc(ctr->fifo_size);
memset(ctr->dsp_buf.data_pcm16, 0, ctr->fifo_size);
DSP_FlushDataCache(ctr->dsp_buf.data_pcm16, ctr->fifo_size);
ctr->dsp_buf.looping = true;
ctr->dsp_buf.nsamples = DSP_BYTES_TO_SAMPLES(ctr->fifo_size);
ndspChnWaveBufAdd(ctr->channel, &ctr->dsp_buf);
ctr->fifo = fifo_new(ctr->fifo_size);
if (!(ctr->fifo_lock = slock_new()) ||
!(ctr->fifo_avail = scond_new()) ||
!(ctr->fifo_done = scond_new()) ||
!(ctr->thread = sthread_create(ctr_dsp_audio_loop, ctr)))
{
RARCH_LOG("[Audio]: thread creation failed.\n");
ctr->running = false;
ctr_dsp_thread_audio_free(ctr);
return NULL;
}
ctr->pos = 0;
ctr->playing = true;
ctr->frame_time = (retro_time_t)roundf(1000000 * 4481134.0 / (*new_rate * 8192.0));
ndspSetMasterVol(1.0);
return ctr;
}
static void ctr_dsp_thread_audio_free(void *data)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr)
return;
if (ctr->running)
{
ctr->running = false;
scond_signal(ctr->fifo_avail);
}
if (ctr->thread)
sthread_join(ctr->thread);
scond_free(ctr->fifo_avail);
scond_free(ctr->fifo_done);
slock_free(ctr->fifo_lock);
if (ctr->fifo)
{
fifo_free(ctr->fifo);
ctr->fifo = NULL;
}
ndspChnWaveBufClear(ctr->channel);
linearFree(ctr->dsp_buf.data_pcm16);
free(ctr);
ndspExit();
ctr = NULL;
}
static ssize_t ctr_dsp_thread_audio_write(void *data, const void *buf, size_t size)
{
size_t avail, written;
ctr_dsp_thread_audio_t * ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr || !ctr->running)
return 0;
if (ctr->nonblocking)
{
slock_lock(ctr->fifo_lock);
avail = FIFO_WRITE_AVAIL(ctr->fifo);
written = MIN(avail, size);
if (written > 0)
{
fifo_write(ctr->fifo, buf, written);
scond_signal(ctr->fifo_avail);
}
slock_unlock(ctr->fifo_lock);
}
else
{
written = 0;
while (written < size && ctr->running)
{
slock_lock(ctr->fifo_lock);
avail = FIFO_WRITE_AVAIL(ctr->fifo);
if (avail == 0)
{
if (ctr->running)
{
/* Wait a maximum of one frame, skip the write if the thread is still busy */
if (!scond_wait_timeout(ctr->fifo_done, ctr->fifo_lock, ctr->frame_time)) {
slock_unlock(ctr->fifo_lock);
break;
}
}
slock_unlock(ctr->fifo_lock);
}
else
{
size_t write_amt = MIN(size - written, avail);
fifo_write(ctr->fifo, (const char*)buf + written, write_amt);
scond_signal(ctr->fifo_avail);
slock_unlock(ctr->fifo_lock);
written += write_amt;
}
}
}
return written;
}
static bool ctr_dsp_thread_audio_stop(void *data)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr)
return false;
ndspSetMasterVol(0.0);
ctr->playing = false;
return true;
}
static bool ctr_dsp_thread_audio_alive(void *data)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr)
return false;
return ctr->playing;
}
static bool ctr_dsp_thread_audio_start(void *data, bool is_shutdown)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
if (!ctr)
return false;
/* Prevents restarting audio when the menu
* is toggled off on shutdown */
if (is_shutdown)
return true;
ndspSetMasterVol(1.0);
ctr->playing = true;
return true;
}
static void ctr_dsp_thread_audio_set_nonblock_state(void *data, bool state)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
if (ctr)
ctr->nonblocking = state;
}
static bool ctr_dsp_thread_audio_use_float(void *data)
{
(void)data;
return false;
}
static size_t ctr_dsp_thread_audio_write_avail(void *data)
{
size_t val;
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
slock_lock(ctr->fifo_lock);
val = FIFO_WRITE_AVAIL(ctr->fifo);
slock_unlock(ctr->fifo_lock);
return val;
}
static size_t ctr_dsp_thread_audio_buffer_size(void *data)
{
ctr_dsp_thread_audio_t* ctr = (ctr_dsp_thread_audio_t*)data;
return ctr->fifo_size;
}
audio_driver_t audio_ctr_dsp_thread = {
ctr_dsp_thread_audio_init,
ctr_dsp_thread_audio_write,
ctr_dsp_thread_audio_stop,
ctr_dsp_thread_audio_start,
ctr_dsp_thread_audio_alive,
ctr_dsp_thread_audio_set_nonblock_state,
ctr_dsp_thread_audio_free,
ctr_dsp_thread_audio_use_float,
"dsp_thread",
NULL,
NULL,
ctr_dsp_thread_audio_write_avail,
ctr_dsp_thread_audio_buffer_size
};
+10 -16
View File
@@ -155,7 +155,7 @@ static DWORD CALLBACK dsound_thread(PVOID data)
avail = write_avail(read_ptr, write_ptr, ds->buffer_size);
EnterCriticalSection(&ds->crit);
fifo_avail = fifo_read_avail(ds->buffer);
fifo_avail = FIFO_READ_AVAIL(ds->buffer);
LeaveCriticalSection(&ds->crit);
if (avail < CHUNK_SIZE || ((fifo_avail < CHUNK_SIZE) && (avail < ds->buffer_size / 2)))
@@ -303,7 +303,8 @@ static void dsound_free(void *data)
free(ds);
}
static BOOL CALLBACK enumerate_cb(LPGUID guid, LPCSTR desc, LPCSTR module, LPVOID context)
static BOOL CALLBACK enumerate_cb(LPGUID guid,
LPCSTR desc, LPCSTR module, LPVOID context)
{
union string_list_elem_attr attr;
struct string_list *list = (struct string_list*)context;
@@ -511,7 +512,7 @@ static ssize_t dsound_write(void *data, const void *buf_, size_t size)
size_t avail;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
avail = FIFO_WRITE_AVAIL(ds->buffer);
if (avail > size)
avail = size;
@@ -530,7 +531,7 @@ static ssize_t dsound_write(void *data, const void *buf_, size_t size)
size_t avail;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
avail = FIFO_WRITE_AVAIL(ds->buffer);
if (avail > size)
avail = size;
@@ -545,7 +546,8 @@ static ssize_t dsound_write(void *data, const void *buf_, size_t size)
break;
if (avail == 0)
WaitForSingleObject(ds->event, INFINITE);
if (!(WaitForSingleObject(ds->event, 50) == WAIT_OBJECT_0))
return -1;
}
}
@@ -558,21 +560,13 @@ static size_t dsound_write_avail(void *data)
dsound_t *ds = (dsound_t*)data;
EnterCriticalSection(&ds->crit);
avail = fifo_write_avail(ds->buffer);
avail = FIFO_WRITE_AVAIL(ds->buffer);
LeaveCriticalSection(&ds->crit);
return avail;
}
static size_t dsound_buffer_size(void *data)
{
return 4 * 1024;
}
static bool dsound_use_float(void *data)
{
(void)data;
return false;
}
static size_t dsound_buffer_size(void *data) { return 4 * 1024; }
static bool dsound_use_float(void *data) { return false; }
static void *dsound_list_new(void *u)
{
+3 -5
View File
@@ -28,17 +28,15 @@
#include <retro_inline.h>
#include "../../retroarch.h"
#include "../../defines/gx_defines.h"
#include <defines/gx_defines.h>
typedef struct
{
size_t write_ptr;
uint32_t data[BLOCKS][CHUNK_FRAMES];
volatile unsigned dma_busy;
volatile unsigned dma_next;
volatile unsigned dma_write;
size_t write_ptr;
bool nonblock;
bool is_paused;
} gx_audio_t;
@@ -109,7 +107,7 @@ static INLINE void copy_swapped(uint32_t * restrict dst,
{
uint32_t s = *src++;
*dst++ = (s >> 16) | (s << 16);
}while(--size);
} while (--size);
}
static ssize_t gx_audio_write(void *data, const void *buf_, size_t size)
+71 -74
View File
@@ -25,6 +25,7 @@
#include <boolean.h>
#include <rthreads/rthreads.h>
#include "../../configuration.h"
#include "../../retroarch.h"
#include "../../verbosity.h"
@@ -34,23 +35,44 @@ typedef struct jack
{
jack_client_t *client;
jack_port_t *ports[2];
jack_ringbuffer_t *buffer[2];
volatile bool shutdown;
bool nonblock;
bool is_paused;
jack_ringbuffer_t *buffer;
#ifdef HAVE_THREADS
scond_t *cond;
slock_t *cond_lock;
#endif
size_t buffer_size;
volatile bool shutdown;
bool nonblock;
bool is_paused;
} jack_t;
static size_t read_deinterleaved(float *dst[2], jack_nframes_t dst_offset,
jack_ringbuffer_data_t buf, jack_nframes_t nframes)
{
int i;
jack_nframes_t j, frames_avail;
const float *src = (const float *)buf.buf;
if (nframes <= 0)
return 0;
frames_avail = FRAMES(buf.len);
nframes = nframes < frames_avail ? nframes : frames_avail;
for (j = 0; j < nframes; j++)
for (i = 0; i < 2; i++)
dst[i][dst_offset + j] = *src++;
return nframes;
}
static int process_cb(jack_nframes_t nframes, void *data)
{
int i;
jack_nframes_t avail[2], min_avail;
jack_nframes_t read = 0;
jack_t *jd = (jack_t*)data;
jack_ringbuffer_data_t buf[2];
float *dst[2];
if (nframes <= 0)
{
@@ -60,23 +82,20 @@ static int process_cb(jack_nframes_t nframes, void *data)
return 0;
}
avail[0] = jack_ringbuffer_read_space(jd->buffer[0]);
avail[1] = jack_ringbuffer_read_space(jd->buffer[1]);
min_avail = ((avail[0] < avail[1]) ? avail[0] : avail[1]) / sizeof(jack_default_audio_sample_t);
for (i = 0; i < 2; i++)
dst[i] = (float *)jack_port_get_buffer(jd->ports[i], nframes);
if (min_avail > nframes)
min_avail = nframes;
jack_ringbuffer_get_read_vector(jd->buffer, buf);
for (i = 0; i < 2; i++)
{
jack_nframes_t f;
jack_default_audio_sample_t *out = (jack_default_audio_sample_t*)jack_port_get_buffer(jd->ports[i], nframes);
read += read_deinterleaved(dst, read, buf[i], nframes - read);
jack_ringbuffer_read(jd->buffer[i], (char*)out, min_avail * sizeof(jack_default_audio_sample_t));
jack_ringbuffer_read_advance(jd->buffer, read * sizeof(float) * 2);
for (; read < nframes; read++)
for (i = 0; i < 2; i++)
dst[i][read] = 0.0f;
for (f = min_avail; f < nframes; f++)
out[f] = 0.0f;
}
#ifdef HAVE_THREADS
scond_signal(jd->cond);
#endif
@@ -96,13 +115,13 @@ static void shutdown_cb(void *data)
#endif
}
static int parse_ports(const char *audio_device,
char **dest_ports, const char **jports)
static int parse_ports(char **dest_ports, const char **jports)
{
int i;
char *save = NULL;
int parsed = 0;
char *audio_device_cpy = strdup(audio_device);
settings_t *settings = config_get_ptr();
char *audio_device_cpy = strdup(settings->arrays.audio_device);
const char *con = strtok_r(audio_device_cpy, ",", &save);
if (con)
@@ -193,17 +212,15 @@ static void *ja_init(const char *device,
jd->buffer_size = bufsize;
RARCH_LOG("[JACK]: Internal buffer size: %d frames.\n", (int)(bufsize / sizeof(jack_default_audio_sample_t)));
for (i = 0; i < 2; i++)
jd->buffer = jack_ringbuffer_create(bufsize);
if (!jd->buffer)
{
jd->buffer[i] = jack_ringbuffer_create(bufsize);
if (!jd->buffer[i])
{
RARCH_ERR("[JACK]: Failed to create buffers.\n");
goto error;
}
RARCH_ERR("[JACK]: Failed to create buffers.\n");
goto error;
}
parsed = parse_ports(device, dest_ports, jports);
parsed = parse_ports(dest_ports, jports);
if (jack_activate(jd->client) < 0)
{
@@ -235,65 +252,46 @@ error:
return NULL;
}
static size_t write_buffer(jack_t *jd, const float *buf, size_t size)
static ssize_t ja_write(void *data, const void *buf_, size_t size)
{
int i;
size_t j, written = 0;
jack_default_audio_sample_t out_deinterleaved_buffer[2][AUDIO_CHUNK_SIZE_NONBLOCKING * AUDIO_MAX_RATIO];
size_t frames = FRAMES(size);
jack_t *jd = (jack_t*)data;
const char *buf = (const char *)buf_;
size_t written = 0;
/* Avoid buffer overflow if a DSP plugin generated a huge number of frames. */
if (frames > AUDIO_CHUNK_SIZE_NONBLOCKING * AUDIO_MAX_RATIO)
frames = AUDIO_CHUNK_SIZE_NONBLOCKING * AUDIO_MAX_RATIO;
for (i = 0; i < 2; i++)
for (j = 0; j < frames; j++)
out_deinterleaved_buffer[i][j] = buf[j * 2 + i];
while (written < frames)
while (size > 0)
{
size_t avail[2], min_avail, write_frames;
size_t avail, to_write;
if (jd->shutdown)
return 0;
avail[0] = jack_ringbuffer_write_space(jd->buffer[0]);
avail[1] = jack_ringbuffer_write_space(jd->buffer[1]);
avail = jack_ringbuffer_write_space(jd->buffer);
min_avail = avail[0] < avail[1] ? avail[0] : avail[1];
min_avail /= sizeof(float);
to_write = size < avail ? size : avail;
/* make sure to only write multiples of the sample size */
to_write = (to_write / sizeof(float)) * sizeof(float);
write_frames = frames - written > min_avail ? min_avail : frames - written;
if (write_frames > 0)
if (to_write > 0)
{
for (i = 0; i < 2; i++)
{
jack_ringbuffer_write(jd->buffer[i], (const char*)&out_deinterleaved_buffer[i][written],
write_frames * sizeof(jack_default_audio_sample_t));
}
written += write_frames;
jack_ringbuffer_write(jd->buffer, buf, to_write);
buf += to_write;
size -= to_write;
written += to_write;
}
#ifdef HAVE_THREADS
else
else if (!jd->nonblock)
{
#ifdef HAVE_THREADS
slock_lock(jd->cond_lock);
scond_wait(jd->cond, jd->cond_lock);
slock_unlock(jd->cond_lock);
}
#endif
if (jd->nonblock)
continue;
}
else
break;
}
return written * sizeof(float) * 2;
}
static ssize_t ja_write(void *data, const void *buf, size_t size)
{
jack_t *jd = (jack_t*)data;
return write_buffer(jd, (const float*)buf, size);
return written;
}
static bool ja_stop(void *data)
@@ -340,9 +338,8 @@ static void ja_free(void *data)
jack_client_close(jd->client);
}
for (i = 0; i < 2; i++)
if (jd->buffer[i])
jack_ringbuffer_free(jd->buffer[i]);
if (jd->buffer)
jack_ringbuffer_free(jd->buffer);
#ifdef HAVE_THREADS
if (jd->cond_lock)
@@ -362,7 +359,7 @@ static bool ja_use_float(void *data)
static size_t ja_write_avail(void *data)
{
jack_t *jd = (jack_t*)data;
return jack_ringbuffer_write_space(jd->buffer[0]);
return jack_ringbuffer_write_space(jd->buffer);
}
static size_t ja_buffer_size(void *data)
+6 -9
View File
@@ -43,17 +43,14 @@ typedef struct al
ALuint source;
ALuint *buffers;
ALuint *res_buf;
size_t res_ptr;
ALenum format;
size_t num_buffers;
int rate;
uint8_t tmpbuf[BUFSIZE];
size_t tmpbuf_ptr;
ALCdevice *handle;
ALCcontext *ctx;
size_t res_ptr;
size_t num_buffers;
size_t tmpbuf_ptr;
int rate;
ALenum format;
uint8_t tmpbuf[BUFSIZE];
bool nonblock;
bool is_paused;
} al_t;
+6 -6
View File
@@ -37,9 +37,6 @@ typedef struct sl
{
uint8_t **buffer;
uint8_t *buffer_chunk;
unsigned buffer_index;
unsigned buffer_ptr;
volatile unsigned buffered_blocks;
SLObjectItf engine_object;
SLEngineItf engine;
@@ -51,10 +48,13 @@ typedef struct sl
slock_t *lock;
scond_t *cond;
bool nonblock;
bool is_paused;
unsigned buf_size;
unsigned buf_count;
unsigned buffer_index;
unsigned buffer_ptr;
volatile unsigned buffered_blocks;
bool nonblock;
bool is_paused;
} sl_t;
static void opensl_callback(SLAndroidSimpleBufferQueueItf bq, void *ctx)
@@ -67,7 +67,7 @@ static void opensl_callback(SLAndroidSimpleBufferQueueItf bq, void *ctx)
#define GOTO_IF_FAIL(x) do { \
if ((res = (x)) != SL_RESULT_SUCCESS) \
goto error; \
} while(0)
} while (0)
static void sl_free(void *data)
{
+44 -34
View File
@@ -42,22 +42,27 @@
#define DEFAULT_OSS_DEV "/dev/dsp"
#endif
static bool oss_is_paused = false;
typedef struct oss_audio
{
int fd;
bool is_paused;
} oss_audio_t;
static void *oss_init(const char *device, unsigned rate, unsigned latency,
static void *oss_init(const char *device,
unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_out_rate)
{
int frags, frag, channels, format, new_rate;
int *fd = (int*)calloc(1, sizeof(int));
oss_audio_t *ossaudio = (oss_audio_t*)calloc(1, sizeof(oss_audio_t));
const char *oss_device = device ? device : DEFAULT_OSS_DEV;
if (!fd)
if (!ossaudio)
return NULL;
if ((*fd = open(oss_device, O_WRONLY)) < 0)
if ((ossaudio->fd = open(oss_device, O_WRONLY)) < 0)
{
free(fd);
free(ossaudio);
perror("open");
return NULL;
}
@@ -65,21 +70,21 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency,
frags = (latency * rate * 4) / (1000 * (1 << 10));
frag = (frags << 16) | 10;
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
RARCH_WARN("Cannot set fragment sizes. Latency might not be as expected ...\n");
channels = 2;
format = is_little_endian() ? AFMT_S16_LE : AFMT_S16_BE;
if (ioctl(*fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
goto error;
if (ioctl(*fd, SNDCTL_DSP_SETFMT, &format) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_SETFMT, &format) < 0)
goto error;
new_rate = rate;
if (ioctl(*fd, SNDCTL_DSP_SPEED, &new_rate) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_SPEED, &new_rate) < 0)
goto error;
if (new_rate != (int)rate)
@@ -88,11 +93,12 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency,
*new_out_rate = new_rate;
}
return fd;
return ossaudio;
error:
close(*fd);
free(fd);
close(ossaudio->fd);
if (ossaudio)
free(ossaudio);
perror("ioctl");
return NULL;
}
@@ -100,14 +106,14 @@ error:
static ssize_t oss_write(void *data, const void *buf, size_t size)
{
ssize_t ret;
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (size == 0)
return 0;
if ((ret = write(*fd, buf, size)) < 0)
if ((ret = write(ossaudio->fd, buf, size)) < 0)
{
if (errno == EAGAIN && (fcntl(*fd, F_GETFL) & O_NONBLOCK))
if (errno == EAGAIN && (fcntl(ossaudio->fd, F_GETFL) & O_NONBLOCK))
return 0;
return -1;
@@ -118,58 +124,62 @@ static ssize_t oss_write(void *data, const void *buf, size_t size)
static bool oss_stop(void *data)
{
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
return false;
oss_is_paused = true;
ossaudio->is_paused = true;
return true;
}
static bool oss_start(void *data, bool is_shutdown)
{
(void)data;
oss_is_paused = false;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (!ossaudio)
return false;
ossaudio->is_paused = false;
return true;
}
static bool oss_alive(void *data)
{
(void)data;
return !oss_is_paused;
oss_audio_t *ossaudio = (oss_audio_t*)data;
return !ossaudio->is_paused;
}
static void oss_set_nonblock_state(void *data, bool state)
{
int rc;
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (state)
rc = fcntl(*fd, F_SETFL, fcntl(*fd, F_GETFL) | O_NONBLOCK);
rc = fcntl(ossaudio->fd, F_SETFL,
fcntl(ossaudio->fd, F_GETFL) | O_NONBLOCK);
else
rc = fcntl(*fd, F_SETFL, fcntl(*fd, F_GETFL) & (~O_NONBLOCK));
rc = fcntl(ossaudio->fd, F_SETFL,
fcntl(ossaudio->fd, F_GETFL) & (~O_NONBLOCK));
if (rc != 0)
RARCH_WARN("Could not set nonblocking on OSS file descriptor. Will not be able to fast-forward.\n");
}
static void oss_free(void *data)
{
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (ioctl(*fd, SNDCTL_DSP_RESET, 0) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_RESET, 0) < 0)
return;
close(*fd);
free(fd);
close(ossaudio->fd);
free(data);
}
static size_t oss_write_avail(void *data)
{
audio_buf_info info;
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (ioctl(*fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
{
RARCH_ERR("[OSS]: SNDCTL_DSP_GETOSPACE failed ...\n");
return 0;
@@ -181,9 +191,9 @@ static size_t oss_write_avail(void *data)
static size_t oss_buffer_size(void *data)
{
audio_buf_info info;
int *fd = (int*)data;
oss_audio_t *ossaudio = (oss_audio_t*)data;
if (ioctl(*fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
if (ioctl(ossaudio->fd, SNDCTL_DSP_GETOSPACE, &info) < 0)
{
RARCH_ERR("[OSS]: SNDCTL_DSP_GETOSPACE failed ...\n");
return 1; /* Return something non-zero to avoid SIGFPE. */
+1 -11
View File
@@ -15,7 +15,6 @@
#include <stdint.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <kernel.h>
@@ -32,26 +31,17 @@ typedef struct ps2_audio
/* TODO/FIXME - nonblock is not implemented */
bool nonblock;
bool running;
} ps2_audio_t;
static void audioConfigure(ps2_audio_t *ps2, unsigned rate)
{
int err;
struct audsrv_fmt_t format;
format.bits = AUDIO_BITS;
format.freq = rate;
format.channels = AUDIO_CHANNELS;
err = audsrv_set_format(&format);
if (err)
{
printf("set format returned %d\n", err);
printf("audsrv returned error string: %s\n", audsrv_get_error_string());
}
audsrv_set_format(&format);
audsrv_set_volume(MAX_VOLUME);
}
+71 -76
View File
@@ -21,59 +21,59 @@
#include "../../retroarch.h"
#include "../../defines/ps3_defines.h"
#include <defines/ps3_defines.h>
#define AUDIO_BLOCKS 8
#define AUDIO_CHANNELS 2
typedef struct
{
uint32_t audio_port;
bool nonblock;
bool started;
volatile bool quit_thread;
fifo_buffer_t *buffer;
sys_ppu_thread_t thread;
sys_lwmutex_t lock;
sys_lwmutex_t cond_lock;
sys_lwcond_t cond;
uint32_t audio_port;
bool nonblock;
bool started;
volatile bool quit_thread;
} ps3_audio_t;
#ifdef __PSL1GHT__
static void event_loop(void *data)
#else
static void event_loop(uint64_t data)
#endif
{
float out_tmp[CELL_AUDIO_BLOCK_SAMPLES * AUDIO_CHANNELS]
float out_tmp[AUDIO_BLOCK_SAMPLES * AUDIO_CHANNELS]
__attribute__((aligned(16)));
sys_event_queue_t id;
sys_ipc_key_t key;
sys_event_t event;
ps3_audio_t *aud = (ps3_audio_t*)(uintptr_t)data;
cellAudioCreateNotifyEventQueue(&id, &key);
cellAudioSetNotifyEventQueue(key);
audioCreateNotifyEventQueue(&id, &key);
audioSetNotifyEventQueue(key);
while (!aud->quit_thread)
{
sys_event_queue_receive(id, &event, SYS_NO_TIMEOUT);
sysEventQueueReceive(id, &event, PS3_SYS_NO_TIMEOUT);
sys_lwmutex_lock(&aud->lock, SYS_NO_TIMEOUT);
if (fifo_read_avail(aud->buffer) >= sizeof(out_tmp))
sysLwMutexLock(&aud->lock, PS3_SYS_NO_TIMEOUT);
if (FIFO_READ_AVAIL(aud->buffer) >= sizeof(out_tmp))
fifo_read(aud->buffer, out_tmp, sizeof(out_tmp));
else
memset(out_tmp, 0, sizeof(out_tmp));
sys_lwmutex_unlock(&aud->lock);
sys_lwcond_signal(&aud->cond);
sysLwMutexUnlock(&aud->lock);
sysLwCondSignal(&aud->cond);
cellAudioAddData(aud->audio_port, out_tmp,
CELL_AUDIO_BLOCK_SAMPLES, 1.0);
audioAddData(aud->audio_port, out_tmp,
AUDIO_BLOCK_SAMPLES, 1.0);
}
cellAudioRemoveNotifyEventQueue(key);
sys_ppu_thread_exit(0);
audioRemoveNotifyEventQueue(key);
sysThreadExit(0);
}
static void *ps3_audio_init(const char *device,
@@ -81,67 +81,63 @@ static void *ps3_audio_init(const char *device,
unsigned block_frames,
unsigned *new_rate)
{
CellAudioPortParam params;
ps3_audio_t *data = calloc(1, sizeof(*data));
if (!data)
return NULL;
(void)latency;
(void)device;
(void)rate;
cellAudioInit();
params.numChannels = AUDIO_CHANNELS;
params.numBlocks = AUDIO_BLOCKS;
#if 0
#ifdef HAVE_HEADSET
if(global->console.sound.mode == SOUND_MODE_HEADSET)
params.param_attrib = CELL_AUDIO_PORTATTR_OUT_SECONDARY;
else
#endif
#endif
params.param_attrib = 0;
if (cellAudioPortOpen(&params, &data->audio_port) != CELL_OK)
{
cellAudioQuit();
free(data);
return NULL;
}
data->buffer = fifo_new(CELL_AUDIO_BLOCK_SAMPLES *
AUDIO_CHANNELS * AUDIO_BLOCKS * sizeof(float));
audioPortParam params;
ps3_audio_t *data = NULL;
#ifdef __PSL1GHT__
sys_lwmutex_attr_t lock_attr =
sys_lwmutex_attr_t lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
sys_lwmutex_attr_t cond_lock_attr =
{SYS_LWMUTEX_ATTR_PROTOCOL, SYS_LWMUTEX_ATTR_RECURSIVE, "\0"};
sys_lwcond_attribute_t cond_attr = {"\0"};
sys_lwcond_attr_t cond_attr = {"\0"};
#else
sys_lwmutex_attribute_t lock_attr;
sys_lwmutex_attribute_t cond_lock_attr;
sys_lwcond_attribute_t cond_attr;
sys_lwmutex_attr_t lock_attr;
sys_lwmutex_attr_t cond_lock_attr;
sys_lwcond_attr_t cond_attr;
sys_lwmutex_attribute_initialize(lock_attr);
sys_lwmutex_attribute_initialize(cond_lock_attr);
sys_lwcond_attribute_initialize(cond_attr);
#endif
sys_lwmutex_create(&data->lock, &lock_attr);
sys_lwmutex_create(&data->cond_lock, &cond_lock_attr);
sys_lwcond_create(&data->cond, &data->cond_lock, &cond_attr);
data = calloc(1, sizeof(*data));
if (!data)
return NULL;
cellAudioPortStart(data->audio_port);
audioInit();
params.numChannels = AUDIO_CHANNELS;
params.numBlocks = AUDIO_BLOCKS;
params.param_attrib = 0;
#if 0
#ifdef HAVE_HEADSET
if(global->console.sound.mode == SOUND_MODE_HEADSET)
params.param_attrib = CELL_AUDIO_PORTATTR_OUT_SECONDARY;
#endif
#endif
if (audioPortOpen(&params, &data->audio_port) != CELL_OK)
{
audioQuit();
free(data);
return NULL;
}
data->buffer = fifo_new(AUDIO_BLOCK_SAMPLES *
AUDIO_CHANNELS * AUDIO_BLOCKS * sizeof(float));
sysLwMutexCreate(&data->lock, &lock_attr);
sysLwMutexCreate(&data->cond_lock, &cond_lock_attr);
sysLwCondCreate(&data->cond, &data->cond_lock, &cond_attr);
audioPortStart(data->audio_port);
data->started = true;
sys_ppu_thread_create(&data->thread, event_loop,
sysThreadCreate(&data->thread, event_loop,
#ifdef __PSL1GHT__
data,
#else
(uint64_t)data,
#endif
1500, 0x1000, SYS_PPU_THREAD_CREATE_JOINABLE, (char*)"sound");
1500, 0x1000, SYS_THREAD_CREATE_JOINABLE, (char*)"sound");
return data;
}
@@ -152,16 +148,16 @@ static ssize_t ps3_audio_write(void *data, const void *buf, size_t size)
if (aud->nonblock)
{
if (fifo_write_avail(aud->buffer) < size)
if (FIFO_WRITE_AVAIL(aud->buffer) < size)
return 0;
}
while (fifo_write_avail(aud->buffer) < size)
sys_lwcond_wait(&aud->cond, 0);
while (FIFO_WRITE_AVAIL(aud->buffer) < size)
sysLwCondWait(&aud->cond, 0);
sys_lwmutex_lock(&aud->lock, SYS_NO_TIMEOUT);
sysLwMutexLock(&aud->lock, PS3_SYS_NO_TIMEOUT);
fifo_write(aud->buffer, buf, size);
sys_lwmutex_unlock(&aud->lock);
sysLwMutexUnlock(&aud->lock);
return size;
}
@@ -171,7 +167,7 @@ static bool ps3_audio_stop(void *data)
ps3_audio_t *aud = data;
if (aud->started)
{
cellAudioPortStop(aud->audio_port);
audioPortStop(aud->audio_port);
aud->started = false;
}
return true;
@@ -182,7 +178,7 @@ static bool ps3_audio_start(void *data, bool is_shutdown)
ps3_audio_t *aud = data;
if (!aud->started)
{
cellAudioPortStart(aud->audio_port);
audioPortStart(aud->audio_port);
aud->started = true;
}
return true;
@@ -210,29 +206,28 @@ static void ps3_audio_free(void *data)
aud->quit_thread = true;
ps3_audio_start(aud, false);
sys_ppu_thread_join(aud->thread, &val);
sysThreadJoin(aud->thread, &val);
ps3_audio_stop(aud);
cellAudioPortClose(aud->audio_port);
cellAudioQuit();
audioPortClose(aud->audio_port);
audioQuit();
fifo_free(aud->buffer);
sys_lwmutex_destroy(&aud->lock);
sys_lwmutex_destroy(&aud->cond_lock);
sys_lwcond_destroy(&aud->cond);
sysLwMutexDestroy(&aud->lock);
sysLwMutexDestroy(&aud->cond_lock);
sysLwCondDestroy(&aud->cond);
free(data);
}
static bool ps3_audio_use_float(void *data)
{
(void)data;
return true;
}
static size_t ps3_audio_write_avail(void *data)
{
(void)data;
/* TODO/FIXME - implement? */
return 0;
}
+9 -9
View File
@@ -44,23 +44,23 @@
typedef struct psp_audio
{
bool nonblock;
uint32_t* buffer;
uint32_t* zeroBuffer;
SceUID thread;
int rate;
volatile bool running;
volatile uint16_t read_pos;
volatile uint16_t write_pos;
sthread_t *worker_thread;
slock_t *fifo_lock;
scond_t *cond;
slock_t *cond_lock;
SceUID thread;
int rate;
volatile uint16_t read_pos;
volatile uint16_t write_pos;
volatile bool running;
bool nonblock;
} psp_audio_t;
#define AUDIO_OUT_COUNT 512u
+4 -1
View File
@@ -105,8 +105,11 @@ static bool ra_alive(void *data)
static void ra_set_nonblock_state(void *data, bool state)
{
roar_t *roar = (roar_t*)data;
if (roar_vs_blocking(roar->vss, (state) ? ROAR_VS_FALSE : ROAR_VS_TRUE, NULL) < 0)
fprintf(stderr, "RetroArch [ERROR]: Can't set nonblocking. Will not be able to fast-forward.\n");
{
RARCH_ERR("Can't set nonblocking. Will not be able to fast-forward.\n");
}
roar->nonblocking = state;
}
+10 -11
View File
@@ -27,21 +27,20 @@
typedef struct rsd
{
rsound_t *rd;
fifo_buffer_t *buffer;
slock_t *cond_lock;
scond_t *cond;
bool nonblock;
bool is_paused;
volatile bool has_error;
fifo_buffer_t *buffer;
slock_t *cond_lock;
scond_t *cond;
} rsd_t;
static ssize_t rsound_audio_cb(void *data, size_t bytes, void *userdata)
{
rsd_t *rsd = (rsd_t*)userdata;
size_t avail = fifo_read_avail(rsd->buffer);
rsd_t *rsd = (rsd_t*)userdata;
size_t avail = FIFO_READ_AVAIL(rsd->buffer);
size_t write_size = bytes > avail ? avail : bytes;
fifo_read(rsd->buffer, data, write_size);
scond_signal(rsd->cond);
@@ -115,7 +114,7 @@ static ssize_t rs_write(void *data, const void *buf, size_t size)
rsd_callback_lock(rsd->rd);
avail = fifo_write_avail(rsd->buffer);
avail = FIFO_WRITE_AVAIL(rsd->buffer);
write_amt = avail > size ? size : avail;
fifo_write(rsd->buffer, buf, write_amt);
@@ -130,7 +129,7 @@ static ssize_t rs_write(void *data, const void *buf, size_t size)
size_t avail;
rsd_callback_lock(rsd->rd);
avail = fifo_write_avail(rsd->buffer);
avail = FIFO_WRITE_AVAIL(rsd->buffer);
if (avail == 0)
{
@@ -209,7 +208,7 @@ static size_t rs_write_avail(void *data)
if (rsd->has_error)
return 0;
rsd_callback_lock(rsd->rd);
val = fifo_write_avail(rsd->buffer);
val = FIFO_WRITE_AVAIL(rsd->buffer);
rsd_callback_unlock(rsd->rd);
return val;
}
+26 -33
View File
@@ -30,76 +30,69 @@ void RWebAudioSetNonblockState(bool state);
void RWebAudioFree(void);
size_t RWebAudioWriteAvail(void);
size_t RWebAudioBufferSize(void);
static bool rwebaudio_is_paused;
typedef struct rweb_audio
{
bool is_paused;
} rweb_audio_t;
static void rwebaudio_free(void *data)
{
RWebAudioFree();
free(data);
}
static void *rwebaudio_init(const char *device, unsigned rate, unsigned latency,
unsigned block_frames,
unsigned *new_rate)
{
void *data = RWebAudioInit(latency);
(void)device;
(void)rate;
if (data)
rweb_audio_t *rwebaudio = (rweb_audio_t*)calloc(1, sizeof(rweb_audio_t));
if (!rwebaudio)
return NULL;
if (RWebAudioInit(latency) == 1)
*new_rate = RWebAudioSampleRate();
return data;
return rwebaudio;
}
static ssize_t rwebaudio_write(void *data, const void *buf, size_t size)
{
(void)data;
return RWebAudioWrite(buf, size);
}
static bool rwebaudio_stop(void *data)
{
(void)data;
rwebaudio_is_paused = true;
rweb_audio_t *rwebaudio = (rweb_audio_t*)data;
if (!rwebaudio)
return false;
rwebaudio->is_paused = true;
return RWebAudioStop();
}
static void rwebaudio_set_nonblock_state(void *data, bool state)
{
(void)data;
RWebAudioSetNonblockState(state);
}
static bool rwebaudio_alive(void *data)
{
(void)data;
return !rwebaudio_is_paused;
rweb_audio_t *rwebaudio = (rweb_audio_t*)data;
if (!rwebaudio)
return false;
return !rwebaudio->is_paused;
}
static bool rwebaudio_start(void *data, bool is_shutdown)
{
(void)data;
rwebaudio_is_paused = false;
rweb_audio_t *rwebaudio = (rweb_audio_t*)data;
if (!rwebaudio)
return false;
rwebaudio->is_paused = false;
return RWebAudioStart();
}
static size_t rwebaudio_write_avail(void *data)
{
(void)data;
return RWebAudioWriteAvail();
}
static size_t rwebaudio_buffer_size(void *data)
{
(void)data;
return RWebAudioBufferSize();
}
static bool rwebaudio_use_float(void *data)
{
(void)data;
return true;
}
static size_t rwebaudio_write_avail(void *data) {return RWebAudioWriteAvail();}
static size_t rwebaudio_buffer_size(void *data) {return RWebAudioBufferSize();}
static bool rwebaudio_use_float(void *data) { return true; }
audio_driver_t audio_rwebaudio = {
rwebaudio_init,
+16 -13
View File
@@ -33,20 +33,19 @@
typedef struct sdl_audio
{
bool nonblock;
bool is_paused;
#ifdef HAVE_THREADS
slock_t *lock;
scond_t *cond;
#endif
fifo_buffer_t *buffer;
bool nonblock;
bool is_paused;
} sdl_audio_t;
static void sdl_audio_cb(void *data, Uint8 *stream, int len)
{
sdl_audio_t *sdl = (sdl_audio_t*)data;
size_t avail = fifo_read_avail(sdl->buffer);
size_t avail = FIFO_READ_AVAIL(sdl->buffer);
size_t write_size = len > (int)avail ? avail : len;
fifo_read(sdl->buffer, stream, write_size);
@@ -75,19 +74,24 @@ static void *sdl_audio_init(const char *device,
int frames;
size_t bufsize;
SDL_AudioSpec out;
SDL_AudioSpec spec = {0};
void *tmp = NULL;
sdl_audio_t *sdl = NULL;
SDL_AudioSpec spec = {0};
void *tmp = NULL;
sdl_audio_t *sdl = NULL;
uint32_t sdl_subsystem_flags = SDL_WasInit(0);
(void)device;
if (SDL_WasInit(0) == 0)
/* Initialise audio subsystem, if required */
if (sdl_subsystem_flags == 0)
{
if (SDL_Init(SDL_INIT_AUDIO) < 0)
return NULL;
}
else if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
return NULL;
else if ((sdl_subsystem_flags & SDL_INIT_AUDIO) == 0)
{
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
return NULL;
}
sdl = (sdl_audio_t*)calloc(1, sizeof(*sdl));
if (!sdl)
@@ -151,7 +155,7 @@ static ssize_t sdl_audio_write(void *data, const void *buf, size_t size)
size_t avail, write_amt;
SDL_LockAudio();
avail = fifo_write_avail(sdl->buffer);
avail = FIFO_WRITE_AVAIL(sdl->buffer);
write_amt = avail > size ? size : avail;
fifo_write(sdl->buffer, buf, write_amt);
SDL_UnlockAudio();
@@ -166,7 +170,7 @@ static ssize_t sdl_audio_write(void *data, const void *buf, size_t size)
size_t avail;
SDL_LockAudio();
avail = fifo_write_avail(sdl->buffer);
avail = FIFO_WRITE_AVAIL(sdl->buffer);
if (avail == 0)
{
@@ -228,7 +232,6 @@ static void sdl_audio_free(void *data)
sdl_audio_t *sdl = (sdl_audio_t*)data;
SDL_CloseAudio();
SDL_QuitSubSystem(SDL_INIT_AUDIO);
if (sdl)
{
+31 -31
View File
@@ -29,12 +29,11 @@
#define BUFFER_COUNT 3
#endif
static const int sample_rate = 48000;
static const int max_num_samples = sample_rate;
static const int num_channels = 2;
#ifndef HAVE_LIBNX
static const size_t sample_buffer_size = ((max_num_samples * num_channels * sizeof(uint16_t)) + 0xfff) & ~0xfff;
#endif
#define SAMPLE_RATE 48000
#define NUM_CHANNELS 2
#define SAMPLE_BUFFER_SIZE (((SAMPLE_RATE * NUM_CHANNELS * sizeof(uint16_t)) + 0xfff) & ~0xfff)
typedef struct
{
@@ -51,24 +50,26 @@ typedef struct
#endif
} switch_audio_t;
#ifdef HAVE_LIBNX
static uint32_t switch_audio_data_size(void)
{
#ifdef HAVE_LIBNX
static const int framerate = 1000 / 30;
static const int samplecount = (sample_rate / framerate);
return (samplecount * num_channels * sizeof(uint16_t));
#else
return sample_buffer_size;
#endif
static const int framerate = 1000 / 30;
static const int sample_count = (SAMPLE_RATE / framerate);
return (sample_count * NUM_CHANNELS * sizeof(uint16_t));
}
#else
static uint32_t switch_audio_data_size(void)
{
return SAMPLE_BUFFER_SIZE;
}
#endif
static size_t switch_audio_buffer_size(void *data)
{
(void) data;
#ifdef HAVE_LIBNX
return (switch_audio_data_size() + 0xfff) & ~0xfff;
#else
return sample_buffer_size;
return SAMPLE_BUFFER_SIZE;
#endif
}
@@ -85,7 +86,7 @@ static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
uint32_t num;
if (switch_audio_ipc_output_get_released_buffer(swa, num) != 0)
{
RARCH_LOG("Failed to get released buffer?\n");
RARCH_ERR("[Audio]: Failed to get released buffer?\n");
return -1;
}
@@ -106,7 +107,7 @@ static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
num = 0;
#ifdef HAVE_LIBNX
if (audoutWaitPlayFinish(&swa->current_buffer, &num, U64_MAX) != 0) { }
if (audoutWaitPlayFinish(&swa->current_buffer, &num, UINT64_MAX) != 0) { }
#else
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
svcResetSignal(swa->event);
@@ -123,11 +124,11 @@ static ssize_t switch_audio_write(void *data, const void *buf, size_t size)
if (to_write > switch_audio_buffer_size(NULL) - swa->current_buffer->data_size)
to_write = switch_audio_buffer_size(NULL) - swa->current_buffer->data_size;
#ifndef HAVE_LIBNX
memcpy(((uint8_t*) swa->current_buffer->sample_data) + swa->current_buffer->data_size, buf, to_write);
#else
memcpy(((uint8_t*) swa->current_buffer->buffer) + swa->current_buffer->data_size, buf, to_write);
#endif
#ifndef HAVE_LIBNX
memcpy(((uint8_t*) swa->current_buffer->sample_data) + swa->current_buffer->data_size, buf, to_write);
#else
memcpy(((uint8_t*) swa->current_buffer->buffer) + swa->current_buffer->data_size, buf, to_write);
#endif
swa->current_buffer->data_size += to_write;
swa->current_buffer->buffer_size = switch_audio_buffer_size(NULL);
@@ -151,7 +152,6 @@ static bool switch_audio_stop(void *data)
/* TODO/FIXME - fix libnx codepath */
#ifndef HAVE_LIBNX
if (!swa->is_paused)
if (switch_audio_ipc_output_stop(swa) != 0)
return false;
@@ -211,8 +211,7 @@ static void switch_audio_free(void *data)
static bool switch_audio_use_float(void *data)
{
(void) data;
return false; /* force INT16 */
return false; /* force INT16 */
}
static size_t switch_audio_write_avail(void *data)
@@ -239,8 +238,8 @@ static void *switch_audio_init(const char *device,
unsigned *new_rate)
{
unsigned i;
char names[8][0x20];
#ifndef HAVE_LIBNX
char names[8][0x20];
uint32_t num_names = 0;
#endif
switch_audio_t *swa = (switch_audio_t*) calloc(1, sizeof(*swa));
@@ -267,16 +266,16 @@ static void *switch_audio_init(const char *device,
if (audio_ipc_open_output(names[0], &swa->output) != 0)
goto fail_audio_ipc;
if (swa->output.sample_rate != sample_rate)
if (swa->output.sample_rate != SAMPLE_RATE)
{
RARCH_ERR("expected sample rate of %d, got sample rate of %d\n",
sample_rate, swa->output.sample_rate);
SAMPLE_RATE, swa->output.sample_rate);
goto fail_audio_output;
}
if (swa->output.num_channels != num_channels)
if (swa->output.num_channels != NUM_CHANNELS)
{
RARCH_ERR("expected %d channels, got %d\n", num_channels,
RARCH_ERR("expected %d channels, got %d\n", NUM_CHANNELS,
swa->output.num_channels);
goto fail_audio_output;
}
@@ -308,7 +307,8 @@ static void *switch_audio_init(const char *device,
#else
swa->buffers[i].ptr = &swa->buffers[i].sample_data;
swa->buffers[i].unknown = 0;
swa->buffers[i].sample_data = alloc_pages(sample_buffer_size, switch_audio_buffer_size(NULL), NULL);
swa->buffers[i].sample_data = alloc_pages(SAMPLE_BUFFER_SIZE,
switch_audio_buffer_size(NULL), NULL);
if (!swa->buffers[i].sample_data)
goto fail_audio_output;
+4
View File
@@ -46,6 +46,10 @@ typedef AudioOutBuffer compat_audio_out_buffer;
#define switch_audio_ipc_output_stop(a) audoutStopAudioOut()
#define switch_audio_ipc_output_start(a) audoutStartAudioOut()
#ifndef UINT64_MAX
#define UINT64_MAX U64_MAX
#endif
#else
/* libtransistor definitions */
+2 -2
View File
@@ -241,7 +241,7 @@ static ssize_t libnx_audren_audio_write(void *data,
if (aud->nonblock)
{
while(written < size)
while (written < size)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
@@ -251,7 +251,7 @@ static ssize_t libnx_audren_audio_write(void *data,
}
else
{
while(written < size)
while (written < size)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
@@ -96,7 +96,7 @@ static void thread_job(void* data)
if (current_wavebuf)
{
mutexLock(&aud->fifo_lock);
available = aud->paused ? 0 : fifo_read_avail(aud->fifo);
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)
@@ -144,7 +144,7 @@ static void *libnx_audren_thread_audio_init(const char *device, unsigned rate, u
int mpid;
size_t mempool_size;
unsigned real_latency;
uint32_t thread_priority;
int32_t thread_priority;
RARCH_LOG("[Audio]: Using libnx_audren_thread driver\n");
@@ -295,7 +295,7 @@ static ssize_t libnx_audren_thread_audio_write(void *data,
if (aud->nonblock)
{
mutexLock(&aud->fifo_lock);
available = fifo_write_avail(aud->fifo);
available = FIFO_WRITE_AVAIL(aud->fifo);
written = MIN(available, size);
if (written > 0)
fifo_write(aud->fifo, buf, written);
@@ -307,7 +307,7 @@ static ssize_t libnx_audren_thread_audio_write(void *data,
while (written < size && aud->running)
{
mutexLock(&aud->fifo_lock);
available = fifo_write_avail(aud->fifo);
available = FIFO_WRITE_AVAIL(aud->fifo);
if (available)
{
written_tmp = MIN(size - written, available);
@@ -407,7 +407,7 @@ static size_t libnx_audren_thread_audio_write_avail(void *data)
return 0;
mutexLock(&aud->fifo_lock);
available = fifo_write_avail(aud->fifo);
available = FIFO_WRITE_AVAIL(aud->fifo);
mutexUnlock(&aud->fifo_lock);
return available;
+10 -11
View File
@@ -35,10 +35,9 @@
#include "switch_audio_compat.h"
static const size_t thread_stack_size = 1024 * 8;
static const int thread_preferred_cpu = 2;
static const int channel_count = 2;
static const size_t sample_size = sizeof(uint16_t);
#define THREAD_STACK_SIZE (1024 * 8)
#define THREAD_PREFERRED_CPU 2
#define SAMPLE_SIZE sizeof(uint16_t)
#define AUDIO_BUFFER_COUNT 2
@@ -86,7 +85,7 @@ static void mainLoop(void* data)
if (!released_out_buffer)
{
#ifdef HAVE_LIBNX
rc = audoutWaitPlayFinish(&released_out_buffer, &released_out_count, U64_MAX);
rc = audoutWaitPlayFinish(&released_out_buffer, &released_out_count, UINT64_MAX);
#else
uint32_t handle_idx = 0;
svcWaitSynchronization(&handle_idx, &swa->event, 1, 33333333);
@@ -107,7 +106,7 @@ static void mainLoop(void* data)
compat_mutex_lock(&swa->fifoLock);
avail = fifo_read_avail(swa->fifo);
avail = FIFO_READ_AVAIL(swa->fifo);
to_write = MIN(avail, buf_avail);
if (to_write > 0)
{
@@ -207,7 +206,7 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
#endif
*new_rate = swa->sampleRate;
swa->fifoSize = (swa->sampleRate * sample_size * swa->latency) / 1000;
swa->fifoSize = (swa->sampleRate * SAMPLE_SIZE * swa->latency) / 1000;
for (i = 0; i < AUDIO_BUFFER_COUNT; i++)
{
@@ -248,7 +247,7 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
device, rate, swa->sampleRate, swa->latency, block_frames, swa->fifoSize);
svcGetThreadPriority(&prio, 0xffff8000);
rc = compat_thread_create(&swa->thread, &mainLoop, (void*)swa, thread_stack_size, prio - 1, thread_preferred_cpu);
rc = compat_thread_create(&swa->thread, &mainLoop, (void*)swa, THREAD_STACK_SIZE, prio - 1, THREAD_PREFERRED_CPU);
if (R_FAILED(rc))
{
@@ -349,7 +348,7 @@ static ssize_t switch_thread_audio_write(void *data, const void *buf, size_t siz
if (swa->nonblock)
{
compat_mutex_lock(&swa->fifoLock);
avail = fifo_write_avail(swa->fifo);
avail = FIFO_WRITE_AVAIL(swa->fifo);
written = MIN(avail, size);
if (written > 0)
fifo_write(swa->fifo, buf, written);
@@ -361,7 +360,7 @@ static ssize_t switch_thread_audio_write(void *data, const void *buf, size_t siz
while (written < size && swa->running)
{
compat_mutex_lock(&swa->fifoLock);
avail = fifo_write_avail(swa->fifo);
avail = FIFO_WRITE_AVAIL(swa->fifo);
if (avail == 0)
{
compat_mutex_unlock(&swa->fifoLock);
@@ -413,7 +412,7 @@ static size_t switch_thread_audio_write_avail(void *data)
switch_thread_audio_t* swa = (switch_thread_audio_t*)data;
compat_mutex_lock(&swa->fifoLock);
val = fifo_write_avail(swa->fifo);
val = FIFO_WRITE_AVAIL(swa->fifo);
compat_mutex_unlock(&swa->fifoLock);
return val;
+15 -18
View File
@@ -1208,21 +1208,18 @@ static int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
static int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames)
{
int ret;
int ret;
/* not used */
(void) offset;
/* not used */
(void) offset;
/* update the application pointer in userspace and kernel */
pcm_mmap_appl_forward(pcm, frames);
ret = pcm_sync_ptr(pcm, 0);
if (ret != 0)
{
printf("%d\n", ret);
return ret;
}
/* update the application pointer in userspace and kernel */
pcm_mmap_appl_forward(pcm, frames);
ret = pcm_sync_ptr(pcm, 0);
if (ret != 0)
return ret;
return frames;
return frames;
}
static void pcm_mmap_appl_forward(struct pcm *pcm, int frames)
@@ -1525,7 +1522,7 @@ static struct pcm_params *pcm_params_get(unsigned int card, unsigned int device,
fd = open(fn, O_RDWR|O_NONBLOCK);
if (fd < 0)
{
fprintf(stderr, "cannot open device '%s'\n", fn);
RARCH_ERR("[TINYALSA] Cannot open device '%s'\n", fn);
goto err_open;
}
@@ -1538,7 +1535,7 @@ static struct pcm_params *pcm_params_get(unsigned int card, unsigned int device,
param_init(params);
if (ioctl(fd, SNDRV_PCM_IOCTL_HW_REFINE, params))
{
fprintf(stderr, "SNDRV_PCM_IOCTL_HW_REFINE error (%d)\n", errno);
RARCH_ERR("[TINYALSA] SNDRV_PCM_IOCTL_HW_REFINE error (%d)\n", errno);
goto err_hw_refine;
}
@@ -2019,7 +2016,7 @@ static int pcm_mmap_transfer(struct pcm *pcm, const void *buffer, unsigned int b
avail = pcm_avail_update(pcm);
if (avail < 0)
{
fprintf(stderr, "cannot determine available mmap frames");
RARCH_ERR("[TINYALSA] Cannot determine available mmap frames");
return err;
}
@@ -2029,7 +2026,7 @@ static int pcm_mmap_transfer(struct pcm *pcm, const void *buffer, unsigned int b
{
if (pcm_start(pcm) < 0)
{
fprintf(stderr, "start error: hw 0x%x app 0x%x avail 0x%x\n",
RARCH_ERR("[TINYALSA] Start error: hw 0x%x app 0x%x avail 0x%x\n",
(unsigned int)pcm->mmap_status->hw_ptr,
(unsigned int)pcm->mmap_control->appl_ptr,
avail);
@@ -2052,7 +2049,7 @@ static int pcm_mmap_transfer(struct pcm *pcm, const void *buffer, unsigned int b
{
pcm->prepared = 0;
pcm->running = 0;
fprintf(stderr, "wait error: hw 0x%x app 0x%x avail 0x%x\n",
RARCH_ERR("[TINYALSA] Wait error: hw 0x%x app 0x%x avail 0x%x\n",
(unsigned int)pcm->mmap_status->hw_ptr,
(unsigned int)pcm->mmap_control->appl_ptr,
avail);
@@ -2073,7 +2070,7 @@ static int pcm_mmap_transfer(struct pcm *pcm, const void *buffer, unsigned int b
frames = pcm_mmap_transfer_areas(pcm, (void *)buffer, offset, frames);
if (frames < 0)
{
fprintf(stderr, "write error: hw 0x%x app 0x%x avail 0x%x\n",
RARCH_ERR("[TINYALSA] Write error: hw 0x%x app 0x%x avail 0x%x\n",
(unsigned int)pcm->mmap_status->hw_ptr,
(unsigned int)pcm->mmap_control->appl_ptr,
avail);
+16 -16
View File
@@ -28,16 +28,16 @@
typedef struct
{
bool exclusive;
bool nonblock;
bool running;
size_t frame_size; /* 4 or 8 only */
size_t engine_buffer_size;
HANDLE write_event;
IMMDevice *device;
IAudioClient *client;
IAudioRenderClient *renderer;
fifo_buffer_t *buffer; /* NULL in unbuffered shared mode */
size_t frame_size; /* 4 or 8 only */
size_t engine_buffer_size;
bool exclusive;
bool nonblock;
bool running;
} wasapi_t;
static IMMDevice *wasapi_init_device(const char *id)
@@ -632,7 +632,7 @@ static ssize_t wasapi_write_sh_buffer(wasapi_t *w, const void * data, size_t siz
{
ssize_t written = -1;
UINT32 padding = 0;
size_t write_avail = fifo_write_avail(w->buffer);
size_t write_avail = FIFO_WRITE_AVAIL(w->buffer);
if (!write_avail)
{
@@ -643,7 +643,7 @@ static ssize_t wasapi_write_sh_buffer(wasapi_t *w, const void * data, size_t siz
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
read_avail = fifo_read_avail(w->buffer);
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)
@@ -651,7 +651,7 @@ static ssize_t wasapi_write_sh_buffer(wasapi_t *w, const void * data, size_t siz
return -1;
}
write_avail = fifo_write_avail(w->buffer);
write_avail = FIFO_WRITE_AVAIL(w->buffer);
written = size < write_avail ? size : write_avail;
if (written)
fifo_write(w->buffer, data, written);
@@ -685,20 +685,20 @@ static ssize_t wasapi_write_sh(wasapi_t *w, const void * data, size_t size)
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;
size_t write_avail = 0;
ssize_t written = -1;
UINT32 padding = 0;
if (w->buffer)
{
write_avail = fifo_write_avail(w->buffer);
write_avail = FIFO_WRITE_AVAIL(w->buffer);
if (!write_avail)
{
size_t read_avail = 0;
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return -1;
read_avail = fifo_read_avail(w->buffer);
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)
@@ -706,7 +706,7 @@ static ssize_t wasapi_write_sh_nonblock(wasapi_t *w, const void * data, size_t s
return -1;
}
write_avail = fifo_write_avail(w->buffer);
write_avail = FIFO_WRITE_AVAIL(w->buffer);
written = size < write_avail ? size : write_avail;
if (written)
fifo_write(w->buffer, data, written);
@@ -731,7 +731,7 @@ static ssize_t wasapi_write_sh_nonblock(wasapi_t *w, const void * data, size_t s
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);
size_t write_avail = FIFO_WRITE_AVAIL(w->buffer);
if (!write_avail)
{
@@ -890,7 +890,7 @@ static size_t wasapi_write_avail(void *wh)
UINT32 padding = 0;
if (w->buffer)
return fifo_write_avail(w->buffer);
return FIFO_WRITE_AVAIL(w->buffer);
if (FAILED(_IAudioClient_GetCurrentPadding(w->client, &padding)))
return 0;
+13 -17
View File
@@ -31,11 +31,10 @@ typedef struct
AXMVoice* mvoice;
uint16_t* buffer_l;
uint16_t* buffer_r;
bool nonblock;
OSSpinLock spinlock;
uint32_t pos;
uint32_t written;
OSSpinLock spinlock;
bool nonblock;
} ax_audio_t;
/* 3072 samples main buffer, 64ms total */
@@ -187,7 +186,8 @@ static bool ax_audio_start(void* data, bool is_shutdown)
/* Set back to playing on enough buffered data */
if (ax->written > AX_AUDIO_SAMPLE_LOAD)
{
AXSetMultiVoiceCurrentOffset(ax->mvoice, ax_audio_limit(ax->pos - ax->written));
AXSetMultiVoiceCurrentOffset(ax->mvoice,
ax_audio_limit(ax->pos - ax->written));
AXSetMultiVoiceState(ax->mvoice, AX_VOICE_STATE_PLAYING);
}
@@ -206,9 +206,12 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
return 0;
if (count > AX_AUDIO_MAX_FREE)
count = AX_AUDIO_MAX_FREE;
count = AX_AUDIO_MAX_FREE;
count_avail = ((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->nonblock)
{
@@ -219,7 +222,7 @@ static ssize_t ax_audio_write(void* data, const void* buf, size_t size)
else if (count_avail < count)
{
/* Sync, wait for free memory */
while(AXIsMultiVoiceRunning(ax->mvoice) && (count_avail < count))
while (AXIsMultiVoiceRunning(ax->mvoice) && (count_avail < count))
{
OSYieldThread(); /* Gives threads with same priority time to run */
count_avail = (ax->written > AX_AUDIO_MAX_FREE ? 0 : (AX_AUDIO_MAX_FREE - ax->written));
@@ -301,24 +304,17 @@ static void ax_audio_set_nonblock_state(void* data, bool state)
ax->nonblock = state;
}
static bool ax_audio_use_float(void* data)
{
(void)data;
return false;
}
static bool ax_audio_use_float(void* data) { return false; }
static size_t ax_audio_write_avail(void* data)
{
ax_audio_t* ax = (ax_audio_t*)data;
size_t ret = AX_AUDIO_COUNT - ax->written;
return (ret < AX_AUDIO_SAMPLE_COUNT ? 0 : ret);
}
static size_t ax_audio_buffer_size(void* data)
{
(void)data;
return AX_AUDIO_COUNT;
}
@@ -335,6 +331,6 @@ audio_driver_t audio_ax =
"AX",
NULL, /* device_list_new */
NULL, /* device_list_free */
NULL, /* write_avail */
NULL, /* buffer_size */
ax_audio_write_avail,
ax_audio_buffer_size,
};
+34 -23
View File
@@ -60,9 +60,9 @@ typedef struct xaudio2 xaudio2_t;
typedef struct
{
xaudio2_t *xa;
size_t bufsize;
bool nonblock;
bool is_paused;
size_t bufsize;
} xa_t;
/* Forward declarations */
@@ -180,6 +180,10 @@ static void xaudio2_free(xaudio2_t *handle)
#else
free(handle);
#endif
#if !defined(_XBOX) && !defined(__WINRT__)
CoUninitialize();
#endif
}
static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
@@ -188,16 +192,28 @@ static xaudio2_t *xaudio2_new(unsigned samplerate, unsigned channels,
int32_t idx_found = -1;
WAVEFORMATEX wfx = {0};
struct string_list *list = NULL;
xaudio2_t *handle = NULL;
#if !defined(_XBOX) && !defined(__WINRT__)
if (FAILED(CoInitialize(NULL)))
goto error;
#endif
#if defined(__cplusplus) && !defined(CINTERFACE)
xaudio2_t *handle = new xaudio2;
handle = new xaudio2;
#else
xaudio2_t *handle = (xaudio2_t*)calloc(1, sizeof(*handle));
handle = (xaudio2_t*)calloc(1, sizeof(*handle));
#endif
if (!handle)
{
#if !defined(_XBOX) && !defined(__WINRT__)
CoUninitialize();
#endif
goto error;
}
list = (struct string_list*)xa_list_new(NULL);
list = (struct string_list*)xa_list_new(NULL);
#if !defined(__cplusplus) || defined(CINTERFACE)
handle->lpVtbl = &voice_vtable;
@@ -296,34 +312,34 @@ static void *xa_init(const char *device, unsigned rate, unsigned latency,
unsigned *new_rate)
{
size_t bufsize;
xa_t *xa = (xa_t*)calloc(1, sizeof(*xa));
xa_t *xa = (xa_t*)calloc(1, sizeof(*xa));
if (!xa)
return NULL;
if (latency < 8)
latency = 8; /* Do not allow shenanigans. */
bufsize = latency * rate / 1000;
RARCH_LOG("[XAudio2]: Requesting %u ms latency, using %d ms latency.\n",
latency, (int)bufsize * 1000 / rate);
latency = 8; /* Do not allow shenanigans. */
bufsize = latency * rate / 1000;
xa->bufsize = bufsize * 2 * sizeof(float);
xa->xa = xaudio2_new(rate, 2, xa->bufsize, device);
if (!xa->xa)
{
RARCH_ERR("Failed to init XAudio2.\n");
RARCH_ERR("[XAudio2] Failed to init driver.\n");
free(xa);
return NULL;
}
RARCH_LOG("[XAudio2]: Requesting %u ms latency, using %d ms latency.\n",
latency, (int)bufsize * 1000 / rate);
return xa;
}
static ssize_t xa_write(void *data, const void *buf, size_t size)
{
unsigned bytes;
unsigned bytes = size;
xa_t *xa = (xa_t*)data;
xaudio2_t *handle = xa->xa;
const uint8_t *buffer = (const uint8_t*)buf;
@@ -335,11 +351,9 @@ static ssize_t xa_write(void *data, const void *buf, size_t size)
if (avail == 0)
return 0;
if (avail < size)
size = avail;
bytes = size = avail;
}
bytes = size;
while (bytes)
{
unsigned need = MIN(bytes, handle->bufsize - handle->bufptr);
@@ -357,7 +371,8 @@ static ssize_t xa_write(void *data, const void *buf, size_t size)
XAUDIO2_BUFFER xa2buffer;
while (handle->buffers == MAX_BUFFERS - 1)
WaitForSingleObject(handle->hEvent, INFINITE);
if (!(WaitForSingleObject(handle->hEvent, 50) == WAIT_OBJECT_0))
return -1;
xa2buffer.Flags = 0;
xa2buffer.AudioBytes = handle->bufsize;
@@ -410,16 +425,12 @@ static void xa_set_nonblock_state(void *data, bool state)
static bool xa_start(void *data, bool is_shutdown)
{
xa_t *xa = (xa_t*)data;
xa_t *xa = (xa_t*)data;
xa->is_paused = false;
return true;
}
static bool xa_use_float(void *data)
{
(void)data;
return true;
}
static bool xa_use_float(void *data) { return true; }
static void xa_free(void *data)
{
+11 -6
View File
@@ -29,6 +29,12 @@
#include <audio/audio_resampler.h>
#if (defined(__ARM_NEON__) && !defined(DONT_WANT_ARM_OPTIMIZATIONS)) || defined(HAVE_NEON)
#ifndef HAVE_ARM_NEON_OPTIMIZATIONS
#define HAVE_ARM_NEON_OPTIMIZATIONS
#endif
#endif
/* Since SSE and NEON don't provide support for trigonometric functions
* we approximate those with polynoms
*
@@ -49,10 +55,9 @@
typedef struct rarch_CC_resampler
{
audio_frame_float_t buffer[4];
float distance;
void (*process)(void *re, struct resampler_data *data);
audio_frame_float_t buffer[4];
float distance;
} rarch_CC_resampler_t;
#ifdef _MIPS_ARCH_ALLEGREX
@@ -345,7 +350,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
data->output_frames = outp - (audio_frame_float_t*)data->data_out;
}
#elif defined (__ARM_NEON__) && !defined(DONT_WANT_ARM_OPTIMIZATIONS)
#elif defined(HAVE_ARM_NEON_OPTIMIZATIONS)
#define CC_RESAMPLER_IDENT "NEON"
@@ -357,13 +362,13 @@ size_t resampler_CC_upsample_neon (float *outp, const float *inp,
static void resampler_CC_downsample(void *re_, struct resampler_data *data)
{
data->output_frames = resampler_CC_downsample_neon(
data->data_out, data->data_in, re_, data->input_frames, data->ratio);
data->data_out, data->data_in, (struct rarch_CC_resampler*)re_, data->input_frames, data->ratio);
}
static void resampler_CC_upsample(void *re_, struct resampler_data *data)
{
data->output_frames = resampler_CC_upsample_neon(
data->data_out, data->data_in, re_, data->input_frames, data->ratio);
data->data_out, data->data_in, (struct rarch_CC_resampler*)re_, data->input_frames, data->ratio);
}
#else
+40 -32
View File
@@ -31,16 +31,21 @@
#include "drivers/rsound.h"
#if defined(__CELLOS_LV2__)
#ifdef __PS3__
#ifdef __PSL1GHT__
#include <sysmodule/sysmodule.h>
#include <sys/systime.h>
#include <net/net.h>
#else
#include <cell/sysmodule.h>
#include <sys/timer.h>
#include <sys/sys_time.h>
/* Network headers */
#include <netex/net.h>
#include <netex/errno.h>
#define NETWORK_COMPAT_HEADERS 1
#elif defined(GEKKO)
#endif
#endif
#if defined(GEKKO)
#include <network.h>
#else
#define NETWORK_COMPAT_HEADERS 1
@@ -52,8 +57,12 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#ifdef __CELLOS_LV2__
#ifdef __PS3__
#ifdef __PSL1GHT__
#include <net/poll.h>
#else
#include <sys/poll.h>
#endif
#else
#include <poll.h>
#endif
@@ -107,7 +116,7 @@ enum rsd_conn_type
#define RSD_ERR(fmt, args...)
#define RSD_DEBUG(fmt, args...)
#if defined(__CELLOS_LV2__)
#if defined(__PS3__)
static int init_count = 0;
#define pollfd_fd(x) x.fd
#define net_send(a,b,c,d) send(a,b,c,d)
@@ -254,7 +263,7 @@ static int rsnd_connect_server( rsound_t *rd )
/* Uses non-blocking IO since it performed more deterministic with poll()/send() */
#ifdef __CELLOS_LV2__
#ifdef __PS3__
setsockopt(rd->conn.socket, SOL_SOCKET, SO_NBIO, &i, sizeof(int));
setsockopt(rd->conn.ctl_socket, SOL_SOCKET, SO_NBIO, &i, sizeof(int));
#else
@@ -700,11 +709,11 @@ static ssize_t rsnd_recv_chunk(int socket, void *buf, size_t size, int blocking)
static int rsnd_poll(struct pollfd *fd, int numfd, int timeout)
{
for(;;)
for (;;)
{
if ( socketpoll(fd, numfd, timeout) < 0 )
if (socketpoll(fd, numfd, timeout) < 0)
{
if ( errno == EINTR )
if (errno == EINTR)
continue;
perror("poll");
@@ -725,8 +734,8 @@ static int64_t rsnd_get_time_usec(void)
if (!QueryPerformanceCounter(&count))
return 0;
return count.QuadPart * 1000000 / freq.QuadPart;
#elif defined(__CELLOS_LV2__)
return sys_time_get_system_time();
#elif defined(__PS3__)
return sysGetSystemTime();
#elif defined(GEKKO)
return ticks_to_microsecs(gettime());
#elif defined(__MACH__) // OSX doesn't have clock_gettime ...
@@ -765,13 +774,13 @@ static void rsnd_drain(rsound_t *rd)
delta /= 1000000;
/* Calculates the amount of data we have in our virtual buffer. Only used to calculate delay. */
slock_lock(rd->thread.mutex);
rd->bytes_in_buffer = (int)((int64_t)rd->total_written + (int64_t)fifo_read_avail(rd->fifo_buffer) - delta);
rd->bytes_in_buffer = (int)((int64_t)rd->total_written + (int64_t)FIFO_READ_AVAIL(rd->fifo_buffer) - delta);
slock_unlock(rd->thread.mutex);
}
else
{
slock_lock(rd->thread.mutex);
rd->bytes_in_buffer = fifo_read_avail(rd->fifo_buffer);
rd->bytes_in_buffer = FIFO_READ_AVAIL(rd->fifo_buffer);
slock_unlock(rd->thread.mutex);
}
}
@@ -789,7 +798,7 @@ static size_t rsnd_fill_buffer(rsound_t *rd, const char *buf, size_t size)
return 0;
slock_lock(rd->thread.mutex);
if ( fifo_write_avail(rd->fifo_buffer) >= size )
if (FIFO_WRITE_AVAIL(rd->fifo_buffer) >= size)
{
slock_unlock(rd->thread.mutex);
break;
@@ -886,7 +895,7 @@ static size_t rsnd_get_ptr(rsound_t *rd)
{
int ptr;
slock_lock(rd->thread.mutex);
ptr = fifo_read_avail(rd->fifo_buffer);
ptr = FIFO_READ_AVAIL(rd->fifo_buffer);
slock_unlock(rd->thread.mutex);
return ptr;
@@ -938,15 +947,15 @@ static int rsnd_close_ctl(rsound_t *rd)
int index = 0;
char buf[RSD_PROTO_MAXSIZE*2] = {0};
for(;;)
for (;;)
{
if ( rsnd_poll(&fd, 1, 2000) < 0 )
if (rsnd_poll(&fd, 1, 2000) < 0)
return -1;
if ( fd.revents & POLLHUP )
if (fd.revents & POLLHUP)
break;
else if ( fd.revents & POLLIN )
if (fd.revents & POLLIN)
{
const char *subchar;
@@ -1060,7 +1069,7 @@ static int rsnd_update_server_info(rsound_t *rd)
int delay = rsd_delay(rd);
int delta = (int)(client_ptr - serv_ptr);
slock_lock(rd->thread.mutex);
delta += fifo_read_avail(rd->fifo_buffer);
delta += FIFO_READ_AVAIL(rd->fifo_buffer);
slock_unlock(rd->thread.mutex);
RSD_DEBUG("[RSound] Delay: %d, Delta: %d.\n", delay, delta);
@@ -1102,7 +1111,7 @@ static void rsnd_thread ( void * thread_data )
/* Two (;;) for loops! :3 Beware! */
for (;;)
{
for(;;)
for (;;)
{
_TEST_CANCEL();
@@ -1116,7 +1125,7 @@ static void rsnd_thread ( void * thread_data )
/* If the buffer is empty or we've stopped the stream, jump out of this for loop */
slock_lock(rd->thread.mutex);
if ( fifo_read_avail(rd->fifo_buffer) < rd->backend_info.chunk_size || !rd->thread_active )
if (FIFO_READ_AVAIL(rd->fifo_buffer) < rd->backend_info.chunk_size || !rd->thread_active)
{
slock_unlock(rd->thread.mutex);
break;
@@ -1375,18 +1384,17 @@ int rsd_exec(rsound_t *rsound)
rsnd_stop_thread(rsound);
#if defined(__CELLOS_LV2__)
#ifdef __PS3__
int i = 0;
setsockopt(rsound->conn.socket, SOL_SOCKET, SO_NBIO, &i, sizeof(int));
#else
fcntl(rsound->conn.socket, F_SETFL, O_NONBLOCK);
#endif
// Flush the buffer
if ( fifo_read_avail(rsound->fifo_buffer) > 0 )
/* Flush the buffer */
if (FIFO_READ_AVAIL(rsound->fifo_buffer) > 0 )
{
char buffer[fifo_read_avail(rsound->fifo_buffer)];
char buffer[FIFO_READ_AVAIL(rsound->fifo_buffer)];
fifo_read(rsound->fifo_buffer, buffer, sizeof(buffer));
if ( rsnd_send_chunk(fd, buffer, sizeof(buffer), 1) != (ssize_t)sizeof(buffer) )
{
@@ -1568,11 +1576,11 @@ int rsd_init(rsound_t** rsound)
rsd_set_param(*rsound, RSD_HOST, RSD_DEFAULT_HOST);
rsd_set_param(*rsound, RSD_PORT, RSD_DEFAULT_PORT);
#ifdef __CELLOS_LV2__
#ifdef __PS3__
if (init_count == 0)
{
cellSysmoduleLoadModule(CELL_SYSMODULE_NET);
sys_net_initialize_network();
sysModuleLoad(SYSMODULE_NET);
netInitialize();
init_count++;
}
#endif
+78
View File
@@ -0,0 +1,78 @@
/* RetroArch - A frontend for libretro.
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __BLUETOOTH_DRIVER__H
#define __BLUETOOTH_DRIVER__H
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <lists/string_list.h>
RETRO_BEGIN_DECLS
enum rarch_bluetooth_ctl_state
{
RARCH_BLUETOOTH_CTL_NONE = 0,
RARCH_BLUETOOTH_CTL_DESTROY,
RARCH_BLUETOOTH_CTL_DEINIT,
RARCH_BLUETOOTH_CTL_FIND_DRIVER,
RARCH_BLUETOOTH_CTL_INIT
};
typedef struct bluetooth_driver
{
void *(*init)(void);
void (*free)(void *data);
void (*scan)(void *data);
void (*get_devices)(void *data, struct string_list *list);
bool (*device_is_connected)(void *data, unsigned i);
void (*device_get_sublabel)(void *data, char *s, unsigned i, size_t len);
bool (*connect_device)(void *data, unsigned i);
const char *ident;
} bluetooth_driver_t;
extern bluetooth_driver_t bluetooth_bluetoothctl;
extern bluetooth_driver_t bluetooth_bluez;
/**
* config_get_bluetooth_driver_options:
*
* Get an enumerated list of all bluetooth driver names,
* separated by '|'.
*
* Returns: string listing of all bluetooth driver names,
* separated by '|'.
**/
const char* config_get_bluetooth_driver_options(void);
void driver_bluetooth_scan(void);
void driver_bluetooth_get_devices(struct string_list *list);
bool driver_bluetooth_device_is_connected(unsigned i);
void driver_bluetooth_device_get_sublabel(char *s, unsigned i, size_t len);
bool driver_bluetooth_connect_device(unsigned i);
bool bluetooth_driver_ctl(enum rarch_bluetooth_ctl_state state, void *data);
RETRO_END_DECLS
#endif
+215
View File
@@ -0,0 +1,215 @@
/* RetroArch - A frontend for libretro.
*
* 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 <compat/strl.h>
#include <configuration.h>
#include "../bluetooth_driver.h"
#include "../../retroarch.h"
typedef struct
{
bool bluetoothctl_cache[256];
unsigned bluetoothctl_counter[256];
struct string_list* lines;
char command[256];
} bluetoothctl_t;
static void *bluetoothctl_init(void)
{
return calloc(1, sizeof(bluetoothctl_t));
}
static void bluetoothctl_free(void *data)
{
if (data)
free(data);
}
static void bluetoothctl_scan(void *data)
{
char line[512];
union string_list_elem_attr attr;
FILE *dev_file = NULL;
bluetoothctl_t *btctl = (bluetoothctl_t*) data;
attr.i = 0;
if (btctl->lines)
free(btctl->lines);
btctl->lines = string_list_new();
pclose(popen("bluetoothctl -- power on", "r"));
pclose(popen("bluetoothctl --timeout 10 scan on", "r"));
runloop_msg_queue_push(msg_hash_to_str(MSG_BLUETOOTH_SCAN_COMPLETE),
1, 180, true, NULL, MESSAGE_QUEUE_ICON_DEFAULT,
MESSAGE_QUEUE_CATEGORY_INFO);
dev_file = popen("bluetoothctl -- devices", "r");
while (fgets(line, 512, dev_file))
{
size_t len = strlen(line);
if (len > 0 && line[len-1] == '\n')
line[--len] = '\0';
string_list_append(btctl->lines, line, attr);
}
pclose(dev_file);
}
static void bluetoothctl_get_devices(void *data, struct string_list* devices)
{
unsigned i;
union string_list_elem_attr attr;
bluetoothctl_t *btctl = (bluetoothctl_t*) data;
attr.i = 0;
if (!btctl->lines)
return;
for (i = 0; i < btctl->lines->size; i++)
{
char device[64];
const char *line = btctl->lines->elems[i].data;
/* bluetoothctl devices outputs lines of the format:
* $ bluetoothctl devices
* 'Device (mac address) (device name)'
*/
strlcpy(device, line+24, sizeof(device));
string_list_append(devices, device, attr);
}
}
static bool bluetoothctl_device_is_connected(void *data, unsigned i)
{
bluetoothctl_t *btctl = (bluetoothctl_t*) data;
char ln[512] = {0};
char device[18] = {0};
const char *line = btctl->lines->elems[i].data;
FILE *command_file = NULL;
if (btctl->bluetoothctl_counter[i] == 60)
{
static struct string_list* list = NULL;
btctl->bluetoothctl_counter[i] = 0;
list = string_split(line, " ");
if (!list)
return false;
if (list->size == 0)
{
string_list_free(list);
return false;
}
strlcpy(device, list->elems[1].data, sizeof(device));
string_list_free(list);
snprintf(btctl->command, sizeof(btctl->command), "\
bluetoothctl -- info %s | grep 'Connected: yes'",
device);
command_file = popen(btctl->command, "r");
while (fgets(ln, 512, command_file))
{
btctl->bluetoothctl_cache[i] = true;
return true;
}
pclose(command_file);
btctl->bluetoothctl_cache[i] = false;
}
else
{
btctl->bluetoothctl_counter[i]++;
return btctl->bluetoothctl_cache[i];
}
return false;
}
static bool bluetoothctl_connect_device(void *data, unsigned idx)
{
unsigned i;
bluetoothctl_t *btctl = (bluetoothctl_t*) data;
char device[18] = {0};
const char *line = btctl->lines->elems[idx].data;
static struct string_list* list = NULL;
/* bluetoothctl devices outputs lines of the format:
* $ bluetoothctl devices
* 'Device (mac address) (device name)'
*/
list = string_split(line, " ");
if (!list)
return false;
if (list->size == 0)
{
string_list_free(list);
return false;
}
strlcpy(device, list->elems[1].data, sizeof(device));
string_list_free(list);
snprintf(btctl->command, sizeof(btctl->command), "\
bluetoothctl -- trust %s",
device);
pclose(popen(btctl->command, "r"));
snprintf(btctl->command, sizeof(btctl->command), "\
bluetoothctl -- pair %s",
device);
pclose(popen(btctl->command, "r"));
snprintf(btctl->command, sizeof(btctl->command), "\
bluetoothctl -- connect %s",
device);
pclose(popen(btctl->command, "r"));
btctl->bluetoothctl_counter[idx] = 0;
return true;
}
static void bluetoothctl_device_get_sublabel(
void *data, char *s, unsigned i, size_t len)
{
bluetoothctl_t *btctl = (bluetoothctl_t*) data;
/* bluetoothctl devices outputs lines of the format:
* $ bluetoothctl devices
* 'Device (mac address) (device name)'
*/
const char *line = btctl->lines->elems[i].data;
strlcpy(s, line+7, 18);
}
bluetooth_driver_t bluetooth_bluetoothctl = {
bluetoothctl_init,
bluetoothctl_free,
bluetoothctl_scan,
bluetoothctl_get_devices,
bluetoothctl_device_is_connected,
bluetoothctl_device_get_sublabel,
bluetoothctl_connect_device,
"bluetoothctl",
};
+616
View File
@@ -0,0 +1,616 @@
/* RetroArch - A frontend for libretro.
*
* 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 <dbus/dbus.h>
#include <compat/strl.h>
#include <configuration.h>
#include <retro_timers.h>
#include <string/stdstring.h>
#include "../bluetooth_driver.h"
#include "../../retroarch.h"
typedef struct
{
/* object path. usually looks like /org/bluez/hci0/dev_AA_BB_CC_DD_EE_FF
* technically unlimited, but should be enough */
char path[128];
/* for display purposes 64 bytes should be enough */
char name[64];
/* MAC address, 17 bytes */
char address[18];
/* freedesktop.org icon name
* See bluez/src/dbus-common.c
* Can be NULL */
char icon[64];
int connected;
int paired;
int trusted;
} device_info_t;
#define VECTOR_LIST_TYPE device_info_t
#define VECTOR_LIST_NAME device_info
#include "../../libretro-common/lists/vector_list.c"
#undef VECTOR_LIST_TYPE
#undef VECTOR_LIST_NAME
typedef struct
{
struct device_info_vector_list *devices;
char adapter[256];
DBusConnection* dbus_connection;
bool bluez_cache[256];
int bluez_cache_counter[256];
} bluez_t;
static void *bluez_init (void)
{
return calloc(1, sizeof(bluez_t));
}
static void bluez_free (void *data)
{
if (data)
free(data);
}
static int
set_bool_property (
bluez_t *bluez,
const char *path,
const char *arg_adapter,
const char *arg_property,
int value)
{
DBusError err;
DBusMessage *message, *reply;
DBusMessageIter req_iter, req_subiter;
dbus_error_init(&err);
message = dbus_message_new_method_call(
"org.bluez",
path,
"org.freedesktop.DBus.Properties",
"Set"
);
if (!message)
return 1;
dbus_message_iter_init_append(message, &req_iter);
if (!dbus_message_iter_append_basic(
&req_iter, DBUS_TYPE_STRING, &arg_adapter))
goto fault;
if (!dbus_message_iter_append_basic(
&req_iter, DBUS_TYPE_STRING, &arg_property))
goto fault;
if (!dbus_message_iter_open_container(
&req_iter, DBUS_TYPE_VARIANT,
DBUS_TYPE_BOOLEAN_AS_STRING, &req_subiter))
goto fault;
if (!dbus_message_iter_append_basic(
&req_subiter, DBUS_TYPE_BOOLEAN, &value))
goto fault;
if (!dbus_message_iter_close_container(
&req_iter, &req_subiter))
goto fault;
reply = dbus_connection_send_with_reply_and_block(bluez->dbus_connection,
message, 1000, &err);
if (!reply)
goto fault;
dbus_message_unref(reply);
dbus_message_unref(message);
return 0;
fault:
dbus_message_iter_abandon_container_if_open(&req_iter, &req_subiter);
dbus_message_unref(message);
return 1;
}
static int get_bool_property(
bluez_t *bluez,
const char *path,
const char *arg_adapter,
const char *arg_property,
int *value)
{
DBusMessage *message, *reply;
DBusError err;
DBusMessageIter root_iter, variant_iter;
dbus_error_init(&err);
message = dbus_message_new_method_call( "org.bluez", path,
"org.freedesktop.DBus.Properties", "Get");
if (!message)
return 1;
if (!dbus_message_append_args(message,
DBUS_TYPE_STRING, &arg_adapter,
DBUS_TYPE_STRING, &arg_property,
DBUS_TYPE_INVALID))
return 1;
reply = dbus_connection_send_with_reply_and_block(bluez->dbus_connection,
message, 1000, &err);
dbus_message_unref(message);
if (!reply)
return 1;
if (!dbus_message_iter_init(reply, &root_iter))
return 1;
if (DBUS_TYPE_VARIANT != dbus_message_iter_get_arg_type(&root_iter))
return 1;
dbus_message_iter_recurse(&root_iter, &variant_iter);
dbus_message_iter_get_basic(&variant_iter, value);
dbus_message_unref(reply);
return 0;
}
static int adapter_discovery (bluez_t *bluez, const char *method)
{
DBusMessage *message = dbus_message_new_method_call(
"org.bluez", bluez->adapter,
"org.bluez.Adapter1", method);
if (!message)
return 1;
if (!dbus_connection_send(bluez->dbus_connection, message, NULL))
return 1;
dbus_connection_flush(bluez->dbus_connection);
dbus_message_unref(message);
return 0;
}
static int get_managed_objects (bluez_t *bluez, DBusMessage **reply)
{
DBusMessage *message;
DBusError err;
dbus_error_init(&err);
message = dbus_message_new_method_call("org.bluez", "/",
"org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
if (!message)
return 1;
*reply = dbus_connection_send_with_reply_and_block(bluez->dbus_connection,
message, -1, &err);
/* if (!reply) is done by the caller in this one */
dbus_message_unref(message);
return 0;
}
static int device_method (bluez_t *bluez, const char *path, const char *method)
{
DBusMessage *message, *reply;
DBusError err;
dbus_error_init(&err);
message = dbus_message_new_method_call( "org.bluez", path,
"org.bluez.Device1", method);
if (!message)
return 1;
reply = dbus_connection_send_with_reply_and_block(bluez->dbus_connection,
message, 10000, &err);
if (!reply)
return 1;
dbus_connection_flush(bluez->dbus_connection);
dbus_message_unref(message);
return 0;
}
static int get_default_adapter(bluez_t *bluez, DBusMessage *reply)
{
/* "...an application would discover the available adapters by
* performing a ObjectManager.GetManagedObjects call and look for any
* returned objects with an “org.bluez.Adapter1″ interface.
* The concept of a default adapter was always a bit fuzzy and the
* value could’t be changed, so if applications need something like it
* they could e.g. just pick the first adapter they encounter in the
* GetManagedObjects reply."
* -- http://www.bluez.org/bluez-5-api-introduction-and-porting-guide/
*/
DBusMessageIter root_iter;
DBusMessageIter dict_1_iter, dict_2_iter;
DBusMessageIter array_1_iter, array_2_iter;
char *obj_path, *interface_name;
/* a{oa{sa{sv}}} */
if (!dbus_message_iter_init(reply, &root_iter))
return 1;
/* a */
if (DBUS_TYPE_ARRAY != dbus_message_iter_get_arg_type(&root_iter))
return 1;
dbus_message_iter_recurse(&root_iter, &array_1_iter);
do
{
/* a{...} */
if (DBUS_TYPE_DICT_ENTRY != dbus_message_iter_get_arg_type(&array_1_iter))
return 1;
dbus_message_iter_recurse(&array_1_iter, &dict_1_iter);
/* a{o...} */
if (DBUS_TYPE_OBJECT_PATH != dbus_message_iter_get_arg_type(&dict_1_iter))
return 1;
dbus_message_iter_get_basic(&dict_1_iter, &obj_path);
if (!dbus_message_iter_next(&dict_1_iter))
return 1;
/* a{oa} */
if (DBUS_TYPE_ARRAY != dbus_message_iter_get_arg_type(&dict_1_iter))
return 1;
dbus_message_iter_recurse(&dict_1_iter, &array_2_iter);
do
{
/* empty array? */
if (DBUS_TYPE_INVALID ==
dbus_message_iter_get_arg_type(&array_2_iter))
continue;
/* a{oa{...}} */
if (DBUS_TYPE_DICT_ENTRY !=
dbus_message_iter_get_arg_type(&array_2_iter))
return 1;
dbus_message_iter_recurse(&array_2_iter, &dict_2_iter);
/* a{oa{s...}} */
if (DBUS_TYPE_STRING !=
dbus_message_iter_get_arg_type(&dict_2_iter))
return 1;
dbus_message_iter_get_basic(&dict_2_iter, &interface_name);
if (string_is_equal(interface_name, "org.bluez.Adapter1"))
{
strlcpy(bluez->adapter, obj_path, 256);
return 0;
}
} while (dbus_message_iter_next(&array_2_iter));
} while (dbus_message_iter_next(&array_1_iter));
/* Couldn't find an adapter */
return 1;
}
static int read_scanned_devices (bluez_t *bluez, DBusMessage *reply)
{
device_info_t device;
DBusMessageIter root_iter;
DBusMessageIter dict_1_iter, dict_2_iter, dict_3_iter;
DBusMessageIter array_1_iter, array_2_iter, array_3_iter;
DBusMessageIter variant_iter;
char *obj_path, *interface_name, *interface_property_name;
char *found_device_address, *found_device_name, *found_device_icon;
/* a{oa{sa{sv}}} */
if (!dbus_message_iter_init(reply, &root_iter))
return 1;
/* a */
if (DBUS_TYPE_ARRAY != dbus_message_iter_get_arg_type(&root_iter))
return 1;
dbus_message_iter_recurse(&root_iter, &array_1_iter);
do
{
/* a{...} */
if (DBUS_TYPE_DICT_ENTRY !=
dbus_message_iter_get_arg_type(&array_1_iter))
return 1;
dbus_message_iter_recurse(&array_1_iter, &dict_1_iter);
/* a{o...} */
if (DBUS_TYPE_OBJECT_PATH !=
dbus_message_iter_get_arg_type(&dict_1_iter))
return 1;
dbus_message_iter_get_basic(&dict_1_iter, &obj_path);
if (!dbus_message_iter_next(&dict_1_iter))
return 1;
/* a{oa} */
if (DBUS_TYPE_ARRAY !=
dbus_message_iter_get_arg_type(&dict_1_iter))
return 1;
dbus_message_iter_recurse(&dict_1_iter, &array_2_iter);
do
{
/* empty array? */
if (DBUS_TYPE_INVALID ==
dbus_message_iter_get_arg_type(&array_2_iter))
continue;
/* a{oa{...}} */
if (DBUS_TYPE_DICT_ENTRY !=
dbus_message_iter_get_arg_type(&array_2_iter))
return 1;
dbus_message_iter_recurse(&array_2_iter, &dict_2_iter);
/* a{oa{s...}} */
if (DBUS_TYPE_STRING !=
dbus_message_iter_get_arg_type(&dict_2_iter))
return 1;
dbus_message_iter_get_basic(&dict_2_iter, &interface_name);
if (!string_is_equal(interface_name, "org.bluez.Device1"))
continue;
memset(&device, 0, sizeof(device));
strlcpy(device.path, obj_path, 128);
if (!dbus_message_iter_next(&dict_2_iter))
return 1;
/* a{oa{sa}} */
if (DBUS_TYPE_ARRAY != dbus_message_iter_get_arg_type(&dict_2_iter))
return 1;
dbus_message_iter_recurse(&dict_2_iter, &array_3_iter);
do {
/* empty array? */
if (DBUS_TYPE_INVALID ==
dbus_message_iter_get_arg_type(&array_3_iter))
continue;
/* a{oa{sa{...}}} */
if (DBUS_TYPE_DICT_ENTRY !=
dbus_message_iter_get_arg_type(&array_3_iter))
return 1;
dbus_message_iter_recurse(&array_3_iter, &dict_3_iter);
/* a{oa{sa{s...}}} */
if (DBUS_TYPE_STRING !=
dbus_message_iter_get_arg_type(&dict_3_iter))
return 1;
dbus_message_iter_get_basic(&dict_3_iter,
&interface_property_name);
if (!dbus_message_iter_next(&dict_3_iter))
return 1;
/* a{oa{sa{sv}}} */
if (DBUS_TYPE_VARIANT !=
dbus_message_iter_get_arg_type(&dict_3_iter))
return 1;
/* Below, "Alias" property is used instead of "Name".
* "This value ("Name") is only present for
* completeness. It is better to always use
* the Alias property when displaying the
* devices name."
* -- bluez/doc/device-api.txt
*/
/* DBUS_TYPE_VARIANT is a container type */
dbus_message_iter_recurse(&dict_3_iter, &variant_iter);
if (string_is_equal(interface_property_name, "Address"))
{
dbus_message_iter_get_basic(&variant_iter,
&found_device_address);
strlcpy(device.address, found_device_address, 18);
}
else if (string_is_equal(interface_property_name, "Alias"))
{
dbus_message_iter_get_basic(&variant_iter,
&found_device_name);
strlcpy(device.name, found_device_name, 64);
}
else if (string_is_equal(interface_property_name, "Icon"))
{
dbus_message_iter_get_basic(&variant_iter,
&found_device_icon);
strlcpy(device.icon, found_device_icon, 64);
}
else if (string_is_equal(interface_property_name, "Connected"))
{
dbus_message_iter_get_basic(&variant_iter,
&device.connected);
}
else if (string_is_equal(interface_property_name, "Paired"))
{
dbus_message_iter_get_basic(&variant_iter,
&device.paired);
}
else if (string_is_equal(interface_property_name, "Trusted"))
{
dbus_message_iter_get_basic(&variant_iter,
&device.trusted);
}
} while (dbus_message_iter_next(&array_3_iter));
if (!device_info_vector_list_append(bluez->devices, device))
return 1;
} while (dbus_message_iter_next(&array_2_iter));
} while (dbus_message_iter_next(&array_1_iter));
return 0;
}
static void bluez_dbus_connect(bluez_t *bluez)
{
DBusError err;
dbus_error_init(&err);
bluez->dbus_connection = dbus_bus_get_private(DBUS_BUS_SYSTEM, &err);
}
static void bluez_dbus_disconnect(bluez_t *bluez)
{
if (!bluez->dbus_connection)
return;
dbus_connection_close(bluez->dbus_connection);
dbus_connection_unref(bluez->dbus_connection);
bluez->dbus_connection = NULL;
}
static void bluez_scan(void *data)
{
DBusError err;
DBusMessage *reply;
bluez_t *bluez = (bluez_t*)data;
bluez_dbus_connect(bluez);
if (get_managed_objects(bluez, &reply))
return;
if (!reply)
return;
/* Get default adapter */
if (get_default_adapter(bluez, reply))
return;
dbus_message_unref(reply);
/* Power device on */
if (set_bool_property(bluez, bluez->adapter,
"org.bluez.Adapter1", "Powered", 1))
return;
/* Start discovery */
if (adapter_discovery(bluez, "StartDiscovery"))
return;
retro_sleep(10000);
/* Stop discovery */
if (adapter_discovery(bluez, "StopDiscovery"))
return;
/* Get scanned devices */
if (get_managed_objects(bluez, &reply))
return;
if (!reply)
return;
if (bluez->devices)
device_info_vector_list_free(bluez->devices);
bluez->devices = device_info_vector_list_new();
read_scanned_devices(bluez, reply);
dbus_message_unref(reply);
bluez_dbus_disconnect(bluez);
}
static void bluez_get_devices(void *data,
struct string_list* devices_string_list)
{
unsigned i;
union string_list_elem_attr attr;
bluez_t *bluez = (bluez_t*)data;
attr.i = 0;
if (!bluez->devices)
return;
for (i = 0; i < bluez->devices->count; i++)
{
char device[64];
strlcpy(device, bluez->devices->data[i].name, sizeof(device));
string_list_append(devices_string_list, device, attr);
}
}
static bool bluez_device_is_connected(void *data, unsigned i)
{
int value;
bluez_t *bluez = (bluez_t*)data;
if (bluez->bluez_cache_counter[i] == 60)
{
bluez->bluez_cache_counter[i] = 0;
bluez_dbus_connect(bluez);
/* Device disappeared */
if (get_bool_property(bluez, bluez->devices->data[i].path,
"org.bluez.Device1", "Connected", &value))
value = false;
bluez_dbus_disconnect(bluez);
bluez->bluez_cache[i] = value;
return value;
}
bluez->bluez_cache_counter[i]++;
return bluez->bluez_cache[i];
}
static void bluez_device_get_sublabel(
void *data, char *s, unsigned i, size_t len)
{
bluez_t *bluez = (bluez_t*)data;
strlcpy(s, bluez->devices->data[i].address, len);
}
static bool bluez_connect_device(void *data, unsigned i)
{
bluez_t *bluez = (bluez_t*)data;
bluez_dbus_connect(bluez);
/* Trust the device */
if (set_bool_property(bluez, bluez->devices->data[i].path,
"org.bluez.Device1", "Trusted", 1))
return false;
/* Pair the device */
device_method(bluez, bluez->devices->data[i].path, "Pair");
/* Can be "Already Exists" */
/* Connect the device */
if (device_method(bluez, bluez->devices->data[i].path, "Connect"))
return false;
bluez_dbus_disconnect(bluez);
bluez->bluez_cache_counter[i] = 0;
return true;
}
bluetooth_driver_t bluetooth_bluez = {
bluez_init,
bluez_free,
bluez_scan,
bluez_get_devices,
bluez_device_is_connected,
bluez_device_get_sublabel,
bluez_connect_device,
"bluez",
};
+15 -12
View File
@@ -39,25 +39,28 @@ unsigned int read_system_buttons(void)
void exitspawn_kernel(const char *fileName, SceSize args, void *argp)
{
int k1;
struct SceKernelLoadExecVSHParam game_param;
thread_active = 0;
thread_active = 0;
memset(&game_param,0,sizeof(game_param));
game_param.size = sizeof(game_param);
game_param.args = args;
game_param.argp = argp;
game_param.key = "game";
game_param.size = sizeof(game_param);
game_param.args = args;
game_param.argp = argp;
game_param.key = "game";
game_param.vshmain_args_size = 0;
game_param.vshmain_args = NULL;
game_param.configfile = 0;
game_param.unk4 = 0;
game_param.unk5 = 0x10000;
game_param.vshmain_args = NULL;
game_param.configfile = 0;
game_param.unk4 = 0;
game_param.unk5 = 0x10000;
int k1 = pspSdkSetK1(0);
//sceKernelSuspendAllUserThreads();
int ret = sceKernelLoadExecVSHMs2(fileName, &game_param);
k1 = pspSdkSetK1(0);
#if 0
sceKernelSuspendAllUserThreads();
#endif
sceKernelLoadExecVSHMs2(fileName, &game_param);
pspSdkSetK1(k1);
}
+7 -4
View File
@@ -1,10 +1,9 @@
#include <errno.h>
#include <reent.h>
#include "../../defines/psp_defines.h"
#include <defines/psp_defines.h>
#include <psp2/kernel/sysmem.h>
#include <psp2/kernel/threadmgr.h>
#define RAM_THRESHOLD 0x1000000 // Memory left to the system for threads and other internal stuffs
int _newlib_heap_memblock;
unsigned _newlib_heap_size;
@@ -16,6 +15,8 @@ static int _newlib_vm_memblock;
extern int _newlib_heap_size_user __attribute__((weak));
extern int _newlib_vm_size_user __attribute__((weak));
#define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1))
void * _sbrk_r(struct _reent *reent, ptrdiff_t incr) {
if (sceKernelLockLwMutex((struct SceKernelLwMutexWork*)_newlib_sbrk_mutex, 1, 0) < 0)
goto fail;
@@ -37,8 +38,8 @@ void _init_vita_heap(void) {
int _newlib_vm_size = 0;
if (&_newlib_vm_size_user != NULL) {
_newlib_vm_size = _newlib_vm_size_user;
_newlib_vm_memblock = sceKernelAllocMemBlockForVM("code", _newlib_vm_size_user);
_newlib_vm_size = ALIGN(_newlib_vm_size_user, 0x100000);
_newlib_vm_memblock = sceKernelAllocMemBlockForVM("code", _newlib_vm_size);
if (_newlib_vm_memblock < 0){
//sceClibPrintf("sceKernelAllocMemBlockForVM failed\n");
@@ -58,6 +59,8 @@ void _init_vita_heap(void) {
info.size = sizeof(SceKernelFreeMemorySizeInfo);
sceKernelGetFreeMemorySize(&info);
printf("sceKernelGetFreeMemorySize %x\n", info.size_user);
if (&_newlib_heap_size_user != NULL) {
_newlib_heap_size = _newlib_heap_size_user;
}else{
-229
View File
@@ -1,229 +0,0 @@
// This provides support for __getreent() as well as implementation of our thread-related wrappers
#include <reent.h>
#include <stdio.h>
#include <string.h>
#include <vitasdk/utils.h>
#include <psp2/kernel/threadmgr.h>
#define MAX_THREADS 256
typedef struct reent_for_thread {
int thread_id;
int needs_reclaim;
void *tls_data_ext;
void *pthread_data_ext;
struct _reent reent;
} reent_for_thread;
static reent_for_thread reent_list[MAX_THREADS];
static int _newlib_reent_mutex;
static struct _reent _newlib_global_reent;
#define TLS_REENT_THID_PTR(thid) sceKernelGetThreadTLSAddr(thid, 0x88)
#define TLS_REENT_PTR sceKernelGetTLSAddr(0x88)
#define list_entry(ptr, type, member) \
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
int __vita_delete_thread_reent(int thid)
{
struct reent_for_thread *for_thread;
// We only need to cleanup if reent is allocated, i.e. if it's on our TLS
// We also don't need to clean up the global reent
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
on_tls = TLS_REENT_THID_PTR(thid);
if (!*on_tls || *on_tls == &_newlib_global_reent)
return 0;
for_thread = list_entry(*on_tls, struct reent_for_thread, reent);
// Remove from TLS
*on_tls = 0;
// Set thread id to zero, which means the reent is free
for_thread->thread_id = 0;
// We can't reclaim it here, will be done later in __getreent
for_thread->needs_reclaim = 1;
return 1;
}
int vitasdk_delete_thread_reent(int thid)
{
int res = 0;
// Lock the list because we'll be modifying it
sceKernelLockMutex(_newlib_reent_mutex, 1, NULL);
res = __vita_delete_thread_reent(thid);
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return res;
}
int _exit_thread_common(int exit_status, int (*exit_func)(int)) {
int res = 0;
int ret = 0;
int thid = sceKernelGetThreadId();
// Lock the list because we'll be modifying it
sceKernelLockMutex(_newlib_reent_mutex, 1, NULL);
res = __vita_delete_thread_reent(0);
ret = exit_func(exit_status);
if (res)
{
struct _reent **on_tls = TLS_REENT_PTR;
struct reent_for_thread *for_thread = list_entry(*on_tls, struct reent_for_thread, reent);
for_thread->thread_id = thid;
// And put it back on TLS
*on_tls = &for_thread->reent;
}
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return ret;
}
int vita_exit_thread(int exit_status) {
return _exit_thread_common(exit_status, sceKernelExitThread);
}
int vita_exit_delete_thread(int exit_status) {
return _exit_thread_common(exit_status, sceKernelExitDeleteThread);
}
static inline void __vita_clean_reent(void)
{
int i;
SceKernelThreadInfo info;
for (i = 0; i < MAX_THREADS; ++i)
{
info.size = sizeof(SceKernelThreadInfo);
if (sceKernelGetThreadInfo(reent_list[i].thread_id, &info) < 0)
{
reent_list[i].thread_id = 0;
reent_list[i].needs_reclaim = 1;
}
}
}
static inline struct reent_for_thread *__vita_allocate_reent(void)
{
int i;
struct reent_for_thread *free_reent = 0;
for (i = 0; i < MAX_THREADS; ++i)
if (reent_list[i].thread_id == 0) {
free_reent = &reent_list[i];
break;
}
return free_reent;
}
struct _reent *__getreent_for_thread(int thid) {
struct reent_for_thread *free_reent = 0;
struct _reent *returned_reent = 0;
// A pointer to our reent should be on the TLS
struct _reent **on_tls = NULL;
if (thid == 0)
on_tls = TLS_REENT_PTR;
else
on_tls = TLS_REENT_THID_PTR(thid);
if (*on_tls) {
return *on_tls;
}
sceKernelLockMutex(_newlib_reent_mutex, 1, 0);
// If it's not on the TLS this means the thread doesn't have a reent allocated yet
// We allocate one and put a pointer to it on the TLS
free_reent = __vita_allocate_reent();
if (!free_reent) {
// clean any hanging thread references
__vita_clean_reent();
free_reent = __vita_allocate_reent();
if (!free_reent) {
// we've exhausted all our resources
__builtin_trap();
}
} else {
// First, check if it needs to be cleaned up (if it came from another thread)
if (free_reent->needs_reclaim) {
_reclaim_reent(&free_reent->reent);
free_reent->needs_reclaim = 0;
}
memset(free_reent, 0, sizeof(struct reent_for_thread));
// Set it up
if(thid==0){
thid = sceKernelGetThreadId();
}
free_reent->thread_id = thid;
_REENT_INIT_PTR(&free_reent->reent);
returned_reent = &free_reent->reent;
}
// Put it on TLS for faster access time
*on_tls = returned_reent;
sceKernelUnlockMutex(_newlib_reent_mutex, 1);
return returned_reent;
}
struct _reent *__getreent(void) {
return __getreent_for_thread(0);
}
void *vitasdk_get_tls_data(SceUID thid)
{
struct reent_for_thread *for_thread;
struct _reent *reent = __getreent_for_thread(thid);
for_thread = list_entry(reent, struct reent_for_thread, reent);
return &for_thread->tls_data_ext;
}
void *vitasdk_get_pthread_data(SceUID thid)
{
struct reent_for_thread *for_thread;
struct _reent *reent = __getreent_for_thread(thid);
for_thread = list_entry(reent, struct reent_for_thread, reent);
return &for_thread->pthread_data_ext;
}
// Called from _start to set up the main thread reentrancy structure
void _init_vita_reent(void) {
memset(reent_list, 0, sizeof(reent_list));
_newlib_reent_mutex = sceKernelCreateMutex("reent list access mutex", 0, 0, 0);
reent_list[0].thread_id = sceKernelGetThreadId();
_REENT_INIT_PTR(&reent_list[0].reent);
*(struct _reent **)(TLS_REENT_PTR) = &reent_list[0].reent;
_REENT_INIT_PTR(&_newlib_global_reent);
}
void _free_vita_reent(void) {
sceKernelDeleteMutex(_newlib_reent_mutex);
}
+1 -1
View File
@@ -402,7 +402,7 @@ static bool v4l_poll(void *data,
if (preprocess_image(data))
{
if (frame_raw_cb != NULL)
if (frame_raw_cb)
frame_raw_cb(v4l->buffer_output, v4l->width,
v4l->height, v4l->width * 4);
return true;
File diff suppressed because it is too large. Load diff
+36 -30
View File
@@ -86,10 +86,14 @@ enum cheat_rumble_type
struct item_cheat
{
unsigned int idx;
/* Clock value for when rumbling should stop */
retro_time_t rumble_primary_end_time;
retro_time_t rumble_secondary_end_time;
char *desc;
bool state;
char *code;
unsigned int idx;
unsigned int handler;
/* Number of bits = 2^memory_search_size
* 0=1, 1=2, 2=4, 3=8, 4=16, 5=32
@@ -119,19 +123,16 @@ struct item_cheat
* 1 : 11110000
*/
unsigned int address_mask;
/* Whether to apply the cheat based on big-endian console memory or not */
bool big_endian;
unsigned int rumble_type;
unsigned int rumble_value;
unsigned int rumble_prev_value;
unsigned int rumble_initialized;
unsigned int rumble_port; /* 0-15 for specific port, anything else means "all ports" */
/* 0-15 for specific port, anything else means "all ports" */
unsigned int rumble_port;
unsigned int rumble_primary_strength; /* 0-65535 */
unsigned int rumble_primary_duration; /* in milliseconds */
retro_time_t rumble_primary_end_time; /* clock value for when rumbling should stop */
unsigned int rumble_secondary_strength; /* 0-65535 */
unsigned int rumble_secondary_duration; /* in milliseconds */
retro_time_t rumble_secondary_end_time; /* clock value for when rumbling should stop */
/*
* The repeat_ variables allow for a single cheat code to affect multiple memory addresses.
@@ -149,22 +150,28 @@ struct item_cheat
unsigned int repeat_add_to_value;
unsigned int repeat_add_to_address;
bool state;
/* Whether to apply the cheat based on big-endian console memory or not */
bool big_endian;
};
struct cheat_manager
{
struct item_cheat working_cheat; /* retro_time_t alignment */
struct item_cheat *cheats;
unsigned ptr;
unsigned size;
unsigned buf_size;
unsigned total_memory_size;
uint8_t *curr_memory_buf;
uint8_t *prev_memory_buf;
uint8_t *matches;
uint8_t **memory_buf_list;
unsigned *memory_size_list;
unsigned int delete_state;
unsigned int loading_cheat_size;
unsigned int loading_cheat_offset;
unsigned ptr;
unsigned size;
unsigned buf_size;
unsigned total_memory_size;
unsigned num_memory_buffers;
struct item_cheat working_cheat;
unsigned match_idx;
unsigned match_action;
unsigned search_bit_size;
@@ -173,15 +180,12 @@ struct cheat_manager
unsigned search_eqplus_value;
unsigned search_eqminus_value;
unsigned num_matches;
bool big_endian;
bool memory_initialized;
bool memory_search_initialized;
unsigned int delete_state;
unsigned browse_address;
char working_desc[CHEAT_DESC_SCRATCH_SIZE];
char working_code[CHEAT_CODE_SCRATCH_SIZE];
unsigned int loading_cheat_size;
unsigned int loading_cheat_offset;
bool big_endian;
bool memory_initialized;
bool memory_search_initialized;
};
typedef struct cheat_manager cheat_manager_t;
@@ -240,25 +244,27 @@ void cheat_manager_load_game_specific_cheats(const char *path_cheat_database);
void cheat_manager_save_game_specific_cheats(const char *path_cheat_database);
int cheat_manager_initialize_memory(rarch_setting_t *setting, bool wraparound);
int cheat_manager_initialize_memory(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_exact(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_exact(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_lt(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_lt(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_gt(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_gt(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_lte(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_lte(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_gte(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_gte(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_eq(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_eq(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_neq(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_neq(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_eqplus(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_eqplus(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_search_eqminus(rarch_setting_t *setting, bool wraparound);
int cheat_manager_search_eqminus(rarch_setting_t *setting, size_t idx, bool wraparound);
unsigned cheat_manager_get_state_search_size(unsigned search_size);
int cheat_manager_add_matches(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx);
@@ -271,9 +277,9 @@ void cheat_manager_match_action(
unsigned int *address, unsigned int *address_mask,
unsigned int *prev_value, unsigned int *curr_value);
int cheat_manager_copy_match(rarch_setting_t *setting, bool wraparound);
int cheat_manager_copy_match(rarch_setting_t *setting, size_t idx, bool wraparound);
int cheat_manager_delete_match(rarch_setting_t *setting, bool wraparound);
int cheat_manager_delete_match(rarch_setting_t *setting, size_t idx, bool wraparound);
RETRO_END_DECLS
-83
View File
@@ -1,83 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2016 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <file/file_path.h>
#include "../file_path_special.h"
#include "../configuration.h"
#include "../gfx/gfx_display.h"
#include "badges.h"
#ifdef HAVE_MENU
#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)
{
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]);
}
memset(&cheevos_badge_menu_texture_list, 0, sizeof(cheevos_badge_menu_texture_list));
}
void cheevos_set_menu_badge(int index, const char *badge, bool locked)
{
settings_t *settings = config_get_ptr();
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;
}
File diff suppressed because it is too large. Load diff
-301
View File
@@ -1,301 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2018 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "fixup.h"
#include "cheevos.h"
#include "util.h"
#include "../retroarch.h"
#include "../core.h"
#include "../deps/rcheevos/include/rcheevos.h"
static int rcheevos_cmpaddr(const void* e1, const void* e2)
{
const rcheevos_fixup_t* f1 = (const rcheevos_fixup_t*)e1;
const rcheevos_fixup_t* f2 = (const rcheevos_fixup_t*)e2;
if (f1->address < f2->address)
{
return -1;
}
else if (f1->address > f2->address)
{
return 1;
}
else
{
return 0;
}
}
static size_t rcheevos_var_reduce(size_t addr, size_t mask)
{
while (mask)
{
size_t tmp = (mask - 1) & ~mask;
addr = (addr & tmp) | ((addr >> 1) & ~tmp);
mask = (mask & (mask - 1)) >> 1;
}
return addr;
}
static size_t rcheevos_var_highest_bit(size_t n)
{
n |= n >> 1;
n |= n >> 2;
n |= n >> 4;
n |= n >> 8;
n |= n >> 16;
return n ^ (n >> 1);
}
void rcheevos_fixup_init(rcheevos_fixups_t* fixups)
{
fixups->elements = NULL;
fixups->capacity = fixups->count = 0;
fixups->dirty = false;
}
void rcheevos_fixup_destroy(rcheevos_fixups_t* fixups)
{
CHEEVOS_FREE(fixups->elements);
rcheevos_fixup_init(fixups);
}
const uint8_t* rcheevos_fixup_find(rcheevos_fixups_t* fixups, unsigned address, int console)
{
rcheevos_fixup_t key;
rcheevos_fixup_t* found;
const uint8_t* location;
if (fixups->dirty)
{
qsort(fixups->elements, fixups->count, sizeof(rcheevos_fixup_t), rcheevos_cmpaddr);
fixups->dirty = false;
}
key.address = address;
found = (rcheevos_fixup_t*)bsearch(&key, fixups->elements, fixups->count, sizeof(rcheevos_fixup_t), rcheevos_cmpaddr);
if (found != NULL)
{
return found->location;
}
if (fixups->count == fixups->capacity)
{
unsigned new_capacity = fixups->capacity == 0 ? 16 : fixups->capacity * 2;
rcheevos_fixup_t* new_elements = (rcheevos_fixup_t*)
realloc(fixups->elements, new_capacity * sizeof(rcheevos_fixup_t));
if (new_elements == NULL)
{
return NULL;
}
fixups->elements = new_elements;
fixups->capacity = new_capacity;
}
fixups->elements[fixups->count].address = address;
fixups->elements[fixups->count++].location = location =
rcheevos_patch_address(address, console);
fixups->dirty = true;
return location;
}
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)
{
if (address >= 0x0800 && address < 0x2000)
{
/* Address in the mirrorred RAM, adjust to real RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "NES memory address in mirrorred RAM %X, adjusted to %X\n", address, address & 0x07ff);
address &= 0x07ff;
}
}
else if (console == RC_CONSOLE_GAMEBOY_COLOR)
{
if (address >= 0xe000 && address <= 0xfdff)
{
/* Address in the echo RAM, adjust to real RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "GBC memory address in echo RAM %X, adjusted to %X\n", address, address - 0x2000);
address -= 0x2000;
}
}
if (system->mmaps.num_descriptors != 0)
{
/* We have memory descriptors, use it. */
const rarch_memory_descriptor_t* desc = NULL;
const rarch_memory_descriptor_t* end = NULL;
/* Patch the address to correctly map it to the mmaps. */
if (console == RC_CONSOLE_GAMEBOY_ADVANCE)
{
if (address < 0x8000)
{
/* Internal RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "GBA memory address %X adjusted to %X\n", address, address + 0x3000000);
address += 0x3000000;
}
else
{
/* Work RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "GBA memory address %X adjusted to %X\n", address, address + 0x2000000 - 0x8000);
address += 0x2000000 - 0x8000;
}
}
else if (console == RC_CONSOLE_PC_ENGINE)
{
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)
{
if (address < 0x020000)
{
/* Work RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "SNES memory address %X adjusted to %X\n", address, address + 0x7e0000);
address += 0x7e0000;
}
else
{
/* Save RAM. */
CHEEVOS_LOG(RCHEEVOS_TAG "SNES memory address %X adjusted to %X\n", address, address + 0x006000 - 0x020000);
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;
for (; desc < end; desc++)
{
if (((desc->core.start ^ address) & desc->core.select) == 0)
{
pointer = desc->core.ptr;
address -= desc->core.start;
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", original_address, (int)((desc - system->mmaps.descriptors) + 1), address);
break;
}
}
}
else
{
unsigned i;
for (i = 0; i < 4; i++)
{
retro_ctx_memory_info_t meminfo;
switch (i)
{
case 0:
meminfo.id = RETRO_MEMORY_SYSTEM_RAM;
break;
case 1:
meminfo.id = RETRO_MEMORY_SAVE_RAM;
break;
case 2:
meminfo.id = RETRO_MEMORY_VIDEO_RAM;
break;
case 3:
meminfo.id = RETRO_MEMORY_RTC;
break;
}
core_get_memory(&meminfo);
if (address < meminfo.size)
{
pointer = meminfo.data;
break;
}
/**
* HACK Subtract the correct amount of bytes to reach the save RAM as
* it's size is not always set correctly in the core.
*/
if (i == 0 && console == RC_CONSOLE_NINTENDO)
address -= 0x6000;
else
address -= meminfo.size;
}
}
if (pointer == NULL)
{
CHEEVOS_LOG(RCHEEVOS_TAG "address %X not supported\n", original_address);
return NULL;
}
return (const uint8_t*)pointer + address;
}
-48
View File
@@ -1,48 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2018 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_FIXUP_H
#define __RARCH_CHEEVOS_FIXUP_H
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct
{
unsigned address;
const uint8_t* location;
} rcheevos_fixup_t;
typedef struct
{
rcheevos_fixup_t* elements;
unsigned capacity, count;
bool dirty;
} rcheevos_fixups_t;
void rcheevos_fixup_init(rcheevos_fixups_t* fixups);
void rcheevos_fixup_destroy(rcheevos_fixups_t* fixups);
const uint8_t* rcheevos_fixup_find(rcheevos_fixups_t* fixups, unsigned address, int console);
const uint8_t* rcheevos_patch_address(unsigned address, int console);
RETRO_END_DECLS
#endif
-12
View File
@@ -1,12 +0,0 @@
#include "hash.h"
uint32_t rcheevos_djb2(const char* str, size_t length)
{
const unsigned char* aux = (const unsigned char*)str;
uint32_t hash = 5381;
while (length--)
hash = ( hash << 5 ) + hash + *aux++;
return hash;
}
-30
View File
@@ -1,30 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2018 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_HASH_H
#define __RARCH_CHEEVOS_HASH_H
#include <stdint.h>
#include <stddef.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
uint32_t rcheevos_djb2(const char* str, size_t length);
RETRO_END_DECLS
#endif
-53
View File
@@ -1,53 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2016 - Andre Leiradella
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_UTIL_H
#define __RARCH_CHEEVOS_UTIL_H
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
/*****************************************************************************
Setup - mainly for debugging
*****************************************************************************/
/* Define this macro to get extra-verbose log for cheevos. */
#define CHEEVOS_VERBOSE
/*****************************************************************************
End of setup
*****************************************************************************/
#define RCHEEVOS_TAG "[RCHEEVOS]: "
#define CHEEVOS_FREE(p) do { void* q = (void*)p; if (q != NULL) free(q); } while (0)
#ifdef CHEEVOS_VERBOSE
#define CHEEVOS_LOG RARCH_LOG
#define CHEEVOS_ERR RARCH_ERR
#else
#define CHEEVOS_LOG rcheevos_log
#define CHEEVOS_ERR RARCH_ERR
void rcheevos_log(const char *fmt, ...);
#endif
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_UTIL_H */
+2669
View File
File diff suppressed because it is too large. Load diff
+16 -38
View File
@@ -21,60 +21,38 @@
#include <boolean.h>
#include "../verbosity.h"
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct rcheevos_ctx_desc
{
unsigned idx;
char *s;
size_t len;
} rcheevos_ctx_desc_t;
enum
{
RCHEEVOS_ACTIVE_SOFTCORE = 1 << 0,
RCHEEVOS_ACTIVE_HARDCORE = 1 << 1
};
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);
bool rcheevos_apply_cheats(bool *data_bool);
size_t rcheevos_get_serialize_size(void);
bool rcheevos_get_serialized_data(void* buffer);
bool rcheevos_set_serialized_data(void* buffer);
bool rcheevos_unload(void);
bool rcheevos_toggle_hardcore_mode(void);
void rcheevos_test(void);
bool rcheevos_set_cheats(void);
void rcheevos_reset_game(bool widgets_ready);
void rcheevos_pause_hardcore(void);
void rcheevos_hardcore_enabled_changed(void);
void rcheevos_toggle_hardcore_paused(void);
bool rcheevos_hardcore_active(void);
void rcheevos_validate_config_settings(void);
void rcheevos_leaderboards_enabled_changed(void);
void rcheevos_set_support_cheevos(bool state);
bool rcheevos_get_support_cheevos(void);
int rcheevos_get_console(void);
const char* rcheevos_get_hash(void);
int rcheevos_get_richpresence(char buffer[], int buffer_size);
uintptr_t rcheevos_get_badge_texture(const char *badge, bool locked);
const char *rcheevos_get_richpresence(void);
extern bool rcheevos_loaded;
extern bool rcheevos_hardcore_active;
extern bool rcheevos_hardcore_paused;
extern bool rcheevos_state_loaded_flag;
extern int rcheevos_cheats_are_enabled;
extern int rcheevos_cheats_were_enabled;
uint8_t* rcheevos_patch_address(unsigned address);
RETRO_END_DECLS
+158
View File
@@ -0,0 +1,158 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2018 - Andre Leiradella
* Copyright (C) 2019-2021 - Brian Weiss
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_LOCALS_H
#define __RARCH_CHEEVOS_LOCALS_H
#include "../deps/rcheevos/include/rc_runtime.h"
#include "../deps/rcheevos/src/rcheevos/rc_libretro.h"
#include <../command.h>
#include <../verbosity.h>
#include <boolean.h>
#include <queues/task_queue.h>
#ifdef HAVE_THREADS
#include <rthreads/rthreads.h>
#endif
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
/************************************************************************
* Logging *
************************************************************************/
/* Define this macro to get extra-verbose log for cheevos. */
#define CHEEVOS_VERBOSE
#define RCHEEVOS_TAG "[RCHEEVOS]: "
#define CHEEVOS_FREE(p) do { void* q = (void*)p; if (q) free(q); } while (0)
#ifdef CHEEVOS_VERBOSE
#define CHEEVOS_LOG RARCH_LOG
#define CHEEVOS_ERR RARCH_ERR
#else
void rcheevos_log(const char *fmt, ...);
#define CHEEVOS_LOG rcheevos_log
#define CHEEVOS_ERR RARCH_ERR
#endif
/************************************************************************
* State *
************************************************************************/
enum
{
RCHEEVOS_ACTIVE_SOFTCORE = 1 << 0,
RCHEEVOS_ACTIVE_HARDCORE = 1 << 1,
RCHEEVOS_ACTIVE_UNOFFICIAL = 1 << 2
};
typedef struct rcheevos_racheevo_t
{
const char* title;
const char* description;
const char* badge;
const char* memaddr;
unsigned id;
unsigned points;
retro_time_t unlock_time;
uint8_t active;
#ifdef HAVE_MENU
uint8_t menu_bucket;
uint8_t menu_progress;
uint8_t menu_badge_grayscale;
uintptr_t menu_badge_texture;
#endif
} rcheevos_racheevo_t;
typedef struct rcheevos_ralboard_t
{
const char* title;
const char* description;
const char* mem;
unsigned id;
unsigned format;
} rcheevos_ralboard_t;
typedef struct rcheevos_rapatchdata_t
{
char* title;
rcheevos_racheevo_t* core;
rcheevos_racheevo_t* unofficial;
rcheevos_ralboard_t* lboards;
char* richpresence_script;
unsigned game_id;
unsigned console_id;
unsigned core_count;
unsigned unofficial_count;
unsigned lboard_count;
} rcheevos_rapatchdata_t;
#ifdef HAVE_MENU
typedef struct rcheevos_menuitem_t
{
rcheevos_racheevo_t* cheevo;
enum msg_hash_enums state_label_idx;
} rcheevos_menuitem_t;
void rcheevos_menu_reset_badges(void);
#endif
typedef struct rcheevos_locals_t
{
rc_runtime_t runtime; /* rcheevos runtime state */
rcheevos_rapatchdata_t patchdata; /* achievement/leaderboard data from the server */
rc_libretro_memory_regions_t memory;/* achievement addresses to core memory mappings */
retro_task_t* task; /* load task */
#ifdef HAVE_THREADS
slock_t* task_lock; /* mutex for starting/stopping load task */
enum event_command queued_command; /* action queued by background thread to be run on main thread */
#endif
char token[32]; /* user's session token */
char hash[33]; /* retroachievements hash for current content */
char user_agent_prefix[128]; /* RetroArch/OS version information */
#ifdef HAVE_MENU
rcheevos_menuitem_t* menuitems; /* array of items for the achievements quick menu */
unsigned menuitem_capacity; /* maximum number of items in the menuitems array */
unsigned menuitem_count; /* current number of items in the menuitems array */
#endif
bool hardcore_active; /* hardcore functionality is active */
bool loaded; /* load task has completed */
bool core_supports; /* false if core explicitly disables achievements */
bool leaderboards_enabled; /* leaderboards are enabled */
bool leaderboard_notifications; /* leaderboard notifications are enabled */
bool leaderboard_trackers; /* leaderboard trackers are enabled */
} rcheevos_locals_t;
rcheevos_locals_t* get_rcheevos_locals(void);
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_LOCALS_H */
+709
View File
@@ -0,0 +1,709 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2019-2021 - Brian Weiss
*
* 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 "cheevos_locals.h"
#include "../gfx/gfx_display.h"
#ifdef HAVE_MENU
#include "cheevos.h"
#include "../deps/rcheevos/include/rc_runtime_types.h"
#include "../file_path_special.h"
#include "../menu/menu_driver.h"
#include "../menu/menu_entries.h"
#include <features/features_cpu.h>
enum rcheevos_menuitem_bucket
{
RCHEEVOS_MENUITEM_BUCKET_UNKNOWN = 0,
RCHEEVOS_MENUITEM_BUCKET_LOCKED,
RCHEEVOS_MENUITEM_BUCKET_UNLOCKED,
RCHEEVOS_MENUITEM_BUCKET_UNSUPPORTED,
RCHEEVOS_MENUITEM_BUCKET_RECENTLY_UNLOCKED,
RCHEEVOS_MENUITEM_BUCKET_ACTIVE_CHALLENGE,
RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE
};
static void rcheevos_menu_update_bucket(rcheevos_racheevo_t* cheevo)
{
cheevo->menu_progress = 0;
if (!cheevo->memaddr)
{
/* non-active unsupported achievement */
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_UNSUPPORTED;
}
else if (!(cheevo->active & RCHEEVOS_ACTIVE_HARDCORE))
{
/* non-active unlocked in hardcore achievement */
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_UNLOCKED;
}
else
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
rc_trigger_t* trigger;
if (!rcheevos_locals->hardcore_active && !(cheevo->active & RCHEEVOS_ACTIVE_SOFTCORE))
{
/* non-active unlocked in softcore achievement in softcore mode */
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_UNLOCKED;
return;
}
/* active achievement */
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_LOCKED;
trigger = rc_runtime_get_achievement(&rcheevos_locals->runtime, cheevo->id);
if (trigger)
{
if (trigger->measured_value && trigger->measured_target)
{
const unsigned long clamped_value = (unsigned long)
MIN(trigger->measured_value, trigger->measured_target);
cheevo->menu_progress =
(uint8_t)((clamped_value * 100) / trigger->measured_target);
}
if (trigger->state == RC_TRIGGER_STATE_PRIMED)
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_ACTIVE_CHALLENGE;
else if (cheevo->menu_progress >= 80)
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE;
}
}
}
static void rcheevos_menu_update_buckets(bool cheevos_test_unofficial)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
rcheevos_racheevo_t* cheevo = rcheevos_locals->patchdata.core;
rcheevos_racheevo_t* stop = cheevo + rcheevos_locals->patchdata.core_count;
while (cheevo < stop)
{
rcheevos_menu_update_bucket(cheevo);
++cheevo;
}
if (cheevos_test_unofficial)
{
cheevo = rcheevos_locals->patchdata.unofficial;
stop = cheevo + rcheevos_locals->patchdata.unofficial_count;
while (cheevo < stop)
{
rcheevos_menu_update_bucket(cheevo);
++cheevo;
}
}
}
bool rcheevos_menu_get_state(unsigned menu_offset, char *buffer, size_t len)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
if (menu_offset < rcheevos_locals->menuitem_count)
{
const rcheevos_menuitem_t* menuitem = &rcheevos_locals->menuitems[menu_offset];
const rcheevos_racheevo_t* cheevo = menuitem->cheevo;
if (cheevo)
{
if (cheevo->menu_progress)
{
snprintf(buffer, len, "%s - %d%%",
msg_hash_to_str(menuitem->state_label_idx),
cheevo->menu_progress);
}
else
{
strlcpy(buffer, msg_hash_to_str(menuitem->state_label_idx), len);
}
return true;
}
}
if (buffer)
buffer[0] = '\0';
return false;
}
bool rcheevos_menu_get_sublabel(unsigned menu_offset, char *buffer, size_t len)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
if (menu_offset < rcheevos_locals->menuitem_count)
{
const rcheevos_racheevo_t* cheevo = rcheevos_locals->menuitems[menu_offset].cheevo;
if (cheevo && buffer)
{
strlcpy(buffer, cheevo->description, len);
return true;
}
}
if (buffer)
buffer[0] = '\0';
return false;
}
void rcheevos_menu_reset_badges(void)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
rcheevos_racheevo_t* cheevo = rcheevos_locals->patchdata.core;
rcheevos_racheevo_t* stop = cheevo + rcheevos_locals->patchdata.core_count;
while (cheevo < stop)
{
if (cheevo->menu_badge_texture)
video_driver_texture_unload(&cheevo->menu_badge_texture);
++cheevo;
}
cheevo = rcheevos_locals->patchdata.unofficial;
stop = cheevo + rcheevos_locals->patchdata.unofficial_count;
while (cheevo < stop)
{
if (cheevo->menu_badge_texture)
video_driver_texture_unload(&cheevo->menu_badge_texture);
++cheevo;
}
}
static rcheevos_menuitem_t* rcheevos_menu_allocate(
rcheevos_locals_t* rcheevos_locals, rcheevos_racheevo_t* cheevo)
{
rcheevos_menuitem_t* menuitem;
if (rcheevos_locals->menuitem_count == rcheevos_locals->menuitem_capacity)
{
if (rcheevos_locals->menuitems)
{
rcheevos_menuitem_t* new_menuitems;
rcheevos_locals->menuitem_capacity += 32;
new_menuitems = (rcheevos_menuitem_t*)realloc(rcheevos_locals->menuitems,
rcheevos_locals->menuitem_capacity * sizeof(rcheevos_menuitem_t));
if (new_menuitems)
{
rcheevos_locals->menuitems = new_menuitems;
}
else
{
/* realloc failed */
CHEEVOS_ERR(RCHEEVOS_TAG " could not allocate space for %u menu items\n",
rcheevos_locals->menuitem_capacity);
rcheevos_locals->menuitem_capacity -= 32;
return NULL;
}
}
else
{
rcheevos_locals->menuitem_capacity = 64;
rcheevos_locals->menuitems = (rcheevos_menuitem_t*)
malloc(rcheevos_locals->menuitem_capacity * sizeof(rcheevos_menuitem_t));
if (!rcheevos_locals->menuitems)
{
/* malloc failed */
CHEEVOS_ERR(RCHEEVOS_TAG " could not allocate space for %u menu items\n",
rcheevos_locals->menuitem_capacity);
rcheevos_locals->menuitem_capacity = 0;
return NULL;
}
}
}
menuitem = &rcheevos_locals->menuitems[rcheevos_locals->menuitem_count++];
menuitem->cheevo = cheevo;
menuitem->state_label_idx = MSG_UNKNOWN;
return menuitem;
}
static void rcheevos_menu_append_header(rcheevos_locals_t* rcheevos_locals,
enum msg_hash_enums label)
{
rcheevos_menuitem_t* menuitem = rcheevos_menu_allocate(rcheevos_locals, NULL);
if (menuitem)
menuitem->state_label_idx = label;
}
static void rcheevos_menu_update_badge(rcheevos_racheevo_t* cheevo)
{
bool badge_grayscale = false;
switch (cheevo->menu_bucket)
{
case RCHEEVOS_MENUITEM_BUCKET_LOCKED:
case RCHEEVOS_MENUITEM_BUCKET_UNSUPPORTED:
case RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE:
case RCHEEVOS_MENUITEM_BUCKET_ACTIVE_CHALLENGE:
badge_grayscale = true;
break;
default:
badge_grayscale = false;
break;
}
if (!cheevo->menu_badge_texture || cheevo->menu_badge_grayscale != badge_grayscale)
{
uintptr_t new_badge_texture =
rcheevos_get_badge_texture(cheevo->badge, badge_grayscale);
if (new_badge_texture)
{
if (cheevo->menu_badge_texture)
video_driver_texture_unload(&cheevo->menu_badge_texture);
cheevo->menu_badge_texture = new_badge_texture;
cheevo->menu_badge_grayscale = badge_grayscale;
}
/* menu_badge_grayscale is overloaded such that any value greater than 1 indicates
* the server default image is being used */
else if (cheevo->menu_badge_grayscale < 2)
{
if (cheevo->menu_badge_texture)
video_driver_texture_unload(&cheevo->menu_badge_texture);
/* requested badge is not available, check for server default */
cheevo->menu_badge_texture =
rcheevos_get_badge_texture("00000", false);
if (cheevo->menu_badge_texture)
cheevo->menu_badge_grayscale = 2;
}
}
}
static void rcheevos_menu_append_items(rcheevos_locals_t* rcheevos_locals,
bool cheevos_test_unofficial, enum rcheevos_menuitem_bucket bucket)
{
const settings_t *settings = config_get_ptr();
rcheevos_racheevo_t* cheevo = rcheevos_locals->patchdata.core;
rcheevos_racheevo_t* stop = cheevo + rcheevos_locals->patchdata.core_count;
bool processing_unofficial = false;
const unsigned first_index = rcheevos_locals->menuitem_count;
do
{
if (cheevo == stop)
{
if (!cheevos_test_unofficial || processing_unofficial)
break;
processing_unofficial = true;
cheevo = rcheevos_locals->patchdata.unofficial;
stop = cheevo + rcheevos_locals->patchdata.unofficial_count;
continue;
}
if (cheevo->menu_bucket == bucket)
{
rcheevos_menuitem_t* menuitem = rcheevos_menu_allocate(rcheevos_locals, cheevo);
if (!menuitem)
return;
switch (cheevo->menu_bucket)
{
case RCHEEVOS_MENUITEM_BUCKET_UNSUPPORTED:
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_UNSUPPORTED_ENTRY;
break;
case RCHEEVOS_MENUITEM_BUCKET_RECENTLY_UNLOCKED:
{
/* insert the item such that the unlock times are descending */
unsigned entry_index = rcheevos_locals->menuitem_count - 1;
while (entry_index > first_index)
{
rcheevos_menuitem_t* prev_menuitem = menuitem - 1;
if (prev_menuitem->cheevo->unlock_time >= cheevo->unlock_time)
break;
memcpy(menuitem, prev_menuitem, sizeof(rcheevos_menuitem_t));
menuitem = prev_menuitem;
--entry_index;
}
menuitem->cheevo = cheevo;
}
/* fallthrough to RCHEEVOS_MENUITEM_BUCKET_UNLOCKED */
case RCHEEVOS_MENUITEM_BUCKET_UNLOCKED:
if (!(cheevo->active & RCHEEVOS_ACTIVE_HARDCORE))
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY_HARDCORE;
else
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY;
break;
case RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE:
{
/* insert the item such that the progresses are descending */
unsigned entry_index = rcheevos_locals->menuitem_count - 1;
while (entry_index > first_index)
{
rcheevos_menuitem_t* prev_menuitem = menuitem - 1;
if (prev_menuitem->cheevo->menu_progress >= cheevo->menu_progress)
break;
memcpy(menuitem, prev_menuitem, sizeof(rcheevos_menuitem_t));
menuitem = prev_menuitem;
--entry_index;
}
menuitem->cheevo = cheevo;
}
/* fallthrough to default */
default:
if (processing_unofficial)
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_UNOFFICIAL_ENTRY;
else if (!(cheevo->active & RCHEEVOS_ACTIVE_SOFTCORE))
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY;
else
menuitem->state_label_idx = MENU_ENUM_LABEL_VALUE_CHEEVOS_LOCKED_ENTRY;
break;
}
if (cheevo->badge && cheevo->badge[0] && settings &&
settings->bools.cheevos_badges_enable)
{
rcheevos_menu_update_badge(cheevo);
}
}
++cheevo;
} while (true);
}
uintptr_t rcheevos_menu_get_badge_texture(unsigned menu_offset)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
if (menu_offset < rcheevos_locals->menuitem_count)
{
rcheevos_racheevo_t* cheevo = rcheevos_locals->menuitems[menu_offset].cheevo;
if (cheevo)
{
/* if we're using the placeholder badge, check to see if the real badge
* has become available (do this roughly once a second) */
if (cheevo->menu_badge_grayscale >= 2)
{
if (++cheevo->menu_badge_grayscale == 64)
{
cheevo->menu_badge_grayscale = 2;
rcheevos_menu_update_badge(cheevo);
}
}
return cheevo->menu_badge_texture;
}
}
return 0;
}
void rcheevos_menu_populate_hardcore_pause_submenu(void* data)
{
const rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
menu_displaylist_info_t* info = (menu_displaylist_info_t*)data;
const settings_t* settings = config_get_ptr();
const bool cheevos_hardcore_mode_enable = settings->bools.cheevos_hardcore_mode_enable;
if (cheevos_hardcore_mode_enable && rcheevos_locals->loaded)
{
if (rcheevos_locals->hardcore_active)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE_CANCEL),
msg_hash_to_str(MENU_ENUM_SUBLABEL_ACHIEVEMENT_PAUSE_CANCEL),
MENU_ENUM_LABEL_ACHIEVEMENT_PAUSE_CANCEL,
MENU_SETTING_ACTION_CLOSE, 0, 0);
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE),
msg_hash_to_str(MENU_ENUM_LABEL_ACHIEVEMENT_PAUSE),
MENU_ENUM_LABEL_ACHIEVEMENT_PAUSE,
MENU_SETTING_ACTION_PAUSE_ACHIEVEMENTS, 0, 0);
}
else
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_RESUME_CANCEL),
msg_hash_to_str(MENU_ENUM_SUBLABEL_ACHIEVEMENT_RESUME_CANCEL),
MENU_ENUM_LABEL_ACHIEVEMENT_RESUME_CANCEL,
MENU_SETTING_ACTION_CLOSE, 0, 0);
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_RESUME),
msg_hash_to_str(MENU_ENUM_LABEL_ACHIEVEMENT_RESUME),
MENU_ENUM_LABEL_ACHIEVEMENT_RESUME,
MENU_SETTING_ACTION_RESUME_ACHIEVEMENTS, 0, 0);
}
}
}
void rcheevos_menu_populate(void* data)
{
menu_displaylist_info_t* info = (menu_displaylist_info_t*)data;
rcheevos_locals_t* rcheevos_locals = get_rcheevos_locals();
const settings_t* settings = config_get_ptr();
const bool cheevos_test_unofficial = settings->bools.cheevos_test_unofficial;
unsigned num_locked = 0;
unsigned num_unlocked = 0;
unsigned num_recently_unlocked = 0;
unsigned num_unsupported = 0;
unsigned num_active_challenges = 0;
unsigned num_almost_there = 0;
if (rcheevos_locals->loaded)
{
const retro_time_t now = cpu_features_get_time_usec();
const retro_time_t recent_unlock_time = now - (10 * 60 * 1000000); /* 10 minutes ago */
bool processing_unofficial = false;
rcheevos_racheevo_t* cheevo = NULL;
rcheevos_racheevo_t* stop = NULL;
/* first menu item is the Pause/Resume Hardcore option (unless hardcore is disabled) */
if (settings->bools.cheevos_enable && settings->bools.cheevos_hardcore_mode_enable)
{
if (rcheevos_locals->hardcore_active)
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE_MENU),
MENU_ENUM_LABEL_ACHIEVEMENT_PAUSE_MENU,
MENU_SETTING_ACTION_PAUSE_ACHIEVEMENTS, 0, 0);
else
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_RESUME),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_PAUSE_MENU),
MENU_ENUM_LABEL_ACHIEVEMENT_PAUSE_MENU,
MENU_SETTING_ACTION_RESUME_ACHIEVEMENTS, 0, 0);
}
/* update the bucket for each achievement */
rcheevos_menu_update_buckets(cheevos_test_unofficial);
/* count items in each bucket */
cheevo = rcheevos_locals->patchdata.core;
stop = cheevo + rcheevos_locals->patchdata.core_count;
do
{
if (cheevo == stop)
{
if (!cheevos_test_unofficial || processing_unofficial)
break;
processing_unofficial = true;
cheevo = rcheevos_locals->patchdata.unofficial;
stop = cheevo + rcheevos_locals->patchdata.unofficial_count;
continue;
}
switch (cheevo->menu_bucket)
{
case RCHEEVOS_MENUITEM_BUCKET_UNLOCKED:
if (cheevo->unlock_time && cheevo->unlock_time >= recent_unlock_time)
{
cheevo->menu_bucket = RCHEEVOS_MENUITEM_BUCKET_RECENTLY_UNLOCKED;
++num_recently_unlocked;
}
else
{
++num_unlocked;
}
break;
case RCHEEVOS_MENUITEM_BUCKET_LOCKED:
++num_locked;
break;
case RCHEEVOS_MENUITEM_BUCKET_UNSUPPORTED:
++num_unsupported;
break;
case RCHEEVOS_MENUITEM_BUCKET_ACTIVE_CHALLENGE:
++num_active_challenges;
break;
case RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE:
++num_almost_there;
break;
}
++cheevo;
} while(true);
if (!rcheevos_locals->menuitems)
{
/* reserve space for all achievements and up to 6 headers before we need to realloc */
rcheevos_locals->menuitem_capacity = rcheevos_locals->patchdata.core_count + 6;
if (cheevos_test_unofficial)
rcheevos_locals->menuitem_capacity += rcheevos_locals->patchdata.unofficial_count;
rcheevos_locals->menuitems = (rcheevos_menuitem_t*)
malloc(rcheevos_locals->menuitem_capacity * sizeof(rcheevos_menuitem_t));
if (!rcheevos_locals->menuitems)
rcheevos_locals->menuitem_capacity = 0;
}
}
/* reset menu */
rcheevos_locals->menuitem_count = 0;
/* active challenges */
if (num_active_challenges)
{
rcheevos_menu_append_header(rcheevos_locals,
MENU_ENUM_LABEL_VALUE_CHEEVOS_ACTIVE_CHALLENGES_ENTRY);
rcheevos_menu_append_items(rcheevos_locals, cheevos_test_unofficial,
RCHEEVOS_MENUITEM_BUCKET_ACTIVE_CHALLENGE);
}
/* recently unlocked */
if (num_recently_unlocked)
{
rcheevos_menu_append_header(rcheevos_locals,
MENU_ENUM_LABEL_VALUE_CHEEVOS_RECENTLY_UNLOCKED_ENTRY);
rcheevos_menu_append_items(rcheevos_locals, cheevos_test_unofficial,
RCHEEVOS_MENUITEM_BUCKET_RECENTLY_UNLOCKED);
}
/* almost there */
if (num_almost_there)
{
rcheevos_menu_append_header(rcheevos_locals,
MENU_ENUM_LABEL_VALUE_CHEEVOS_ALMOST_THERE_ENTRY);
rcheevos_menu_append_items(rcheevos_locals, cheevos_test_unofficial,
RCHEEVOS_MENUITEM_BUCKET_ALMOST_THERE);
}
/* locked */
if (num_locked)
{
if (rcheevos_locals->menuitem_count > 0)
{
rcheevos_menu_append_header(rcheevos_locals,
MENU_ENUM_LABEL_VALUE_CHEEVOS_LOCKED_ENTRY);
}
rcheevos_menu_append_items(rcheevos_locals, cheevos_test_unofficial,
RCHEEVOS_MENUITEM_BUCKET_LOCKED);
}
/* unlocked */
if (num_unlocked)
{
if (rcheevos_locals->menuitem_count > 0)
{
rcheevos_menu_append_header(rcheevos_locals,
MENU_ENUM_LABEL_VALUE_CHEEVOS_UNLOCKED_ENTRY);
}
rcheevos_menu_append_items(rcheevos_locals, cheevos_test_unofficial,
RCHEEVOS_MENUITEM_BUCKET_UNLOCKED);
}
if (rcheevos_locals->menuitem_count > 0)
{
/* convert to menu entries */
rcheevos_menuitem_t* menuitem = rcheevos_locals->menuitems;
rcheevos_menuitem_t* stop = menuitem + rcheevos_locals->menuitem_count;
char buffer[128];
unsigned idx = 0;
do
{
if (menuitem->cheevo)
{
menu_entries_append_enum(info->list, menuitem->cheevo->title,
menuitem->cheevo->description,
MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY,
MENU_SETTINGS_CHEEVOS_START + idx, 0, 0);
}
else
{
snprintf(buffer, sizeof(buffer), "----- %s -----",
msg_hash_to_str(menuitem->state_label_idx));
menu_entries_append_enum(info->list, buffer, "",
MENU_ENUM_LABEL_CHEEVOS_LOCKED_ENTRY,
MENU_SETTINGS_CHEEVOS_START + idx, 0, 0);
}
++idx;
++menuitem;
} while (menuitem != stop);
}
else
{
/* no achievements found */
if (!rcheevos_locals->core_supports)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CANNOT_ACTIVATE_ACHIEVEMENTS_WITH_THIS_CORE),
msg_hash_to_str(MENU_ENUM_LABEL_CANNOT_ACTIVATE_ACHIEVEMENTS_WITH_THIS_CORE),
MENU_ENUM_LABEL_CANNOT_ACTIVATE_ACHIEVEMENTS_WITH_THIS_CORE,
FILE_TYPE_NONE, 0, 0);
}
else if (!rcheevos_locals->token[0])
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_LOGGED_IN),
msg_hash_to_str(MENU_ENUM_LABEL_NOT_LOGGED_IN),
MENU_ENUM_LABEL_NOT_LOGGED_IN,
FILE_TYPE_NONE, 0, 0);
}
else
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ACHIEVEMENTS_TO_DISPLAY),
msg_hash_to_str(MENU_ENUM_LABEL_NO_ACHIEVEMENTS_TO_DISPLAY),
MENU_ENUM_LABEL_NO_ACHIEVEMENTS_TO_DISPLAY,
FILE_TYPE_NONE, 0, 0);
}
}
}
#endif /* HAVE_MENU */
uintptr_t rcheevos_get_badge_texture(const char *badge, bool locked)
{
char badge_file[24];
char fullpath[PATH_MAX_LENGTH];
uintptr_t tex = 0;
if (!badge)
return 0;
snprintf(badge_file, sizeof(badge_file), "%s%s%s", badge,
locked ? "_lock" : "", FILE_PATH_PNG_EXTENSION);
fill_pathname_application_special(fullpath, sizeof(fullpath),
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
if (!gfx_display_reset_textures_list(badge_file, fullpath,
&tex, TEXTURE_FILTER_MIPMAP_LINEAR, NULL, NULL))
{
tex = 0;
}
return tex;
}
+17 -11
View File
@@ -1,5 +1,6 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2015-2018 - Andre Leiradella
* Copyright (C) 2019-2021 - Brian Weiss
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
@@ -13,23 +14,28 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_CHEEVOS_BADGE_H
#define __RARCH_CHEEVOS_BADGE_H
#ifndef __RARCH_CHEEVOS_MENU_H
#define __RARCH_CHEEVOS_MENU_H
#ifdef HAVE_MENU
#include <stdint.h>
#include <retro_common_api.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
#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
uintptr_t cheevos_get_badge_texture(const char* badge, bool locked);
void rcheevos_menu_populate(void* data);
void rcheevos_menu_populate_hardcore_pause_submenu(void* data);
bool rcheevos_menu_get_state(unsigned menu_offset, char* buffer, size_t buffer_size);
bool rcheevos_menu_get_sublabel(unsigned menu_offset, char* buffer, size_t buffer_size);
uintptr_t rcheevos_menu_get_badge_texture(unsigned menu_offset);
RETRO_END_DECLS
#endif
#endif /* HAVE_MENU */
#endif /* __RARCH_CHEEVOS_MENU_H */
+227 -320
View File
@@ -1,13 +1,14 @@
#include "parser.h"
#include "cheevos_parser.h"
#include "hash.h"
#include "util.h"
#include "cheevos_locals.h"
#include <encodings/utf.h>
#include <formats/jsonsax.h>
#include <formats/rjson.h>
#include <string/stdstring.h>
#include <compat/strl.h>
#include "../deps/rcheevos/include/rcheevos.h"
/* C89 wants only int values in enums. */
#define CHEEVOS_JSON_KEY_GAMEID 0xb4960eecU
#define CHEEVOS_JSON_KEY_ACHIEVEMENTS 0x69749ae1U
@@ -30,114 +31,118 @@
#define CHEEVOS_JSON_KEY_SUCCESS 0x110461deU
#define CHEEVOS_JSON_KEY_ERROR 0x0d2011cfU
typedef struct
{
char* value;
int is_key;
size_t length;
unsigned key_hash;
} rcheevos_getvalueud_t;
#define CHEEVOS_RJSON_OPTIONS \
/* Inside the field RichPresencePatch newlines are
* encoded as '\r\n'. This will filter the \r out. */ \
RJSON_OPTION_IGNORE_STRING_CARRIAGE_RETURN \
/* This matches the behavior of the previously used
* json parser. It is probably not required */ \
| RJSON_OPTION_ALLOW_TRAILING_DATA
/*****************************************************************************
Gets a value in a JSON
*****************************************************************************/
typedef struct
static uint32_t rcheevos_djb2(const char* str, size_t length)
{
unsigned key_hash;
int is_key;
const char* value;
size_t length;
} rcheevos_getvalueud_t;
const unsigned char* aux = (const unsigned char*)str;
uint32_t hash = 5381;
static int rcheevos_getvalue_key(void* userdata,
while (length--)
hash = (hash << 5) + hash + *aux++;
return hash;
}
static bool rcheevos_getvalue_key(void* userdata,
const char* name, size_t length)
{
rcheevos_getvalueud_t* ud = (rcheevos_getvalueud_t*)userdata;
ud->is_key = rcheevos_djb2(name, length) == ud->key_hash;
return 0;
return true;
}
static int rcheevos_getvalue_string(void* userdata,
static bool rcheevos_getvalue_string(void* userdata,
const char* string, size_t length)
{
rcheevos_getvalueud_t* ud = (rcheevos_getvalueud_t*)userdata;
if (ud->is_key)
if (ud->is_key && ud->length > length)
{
ud->value = string;
ud->length = length;
ud->is_key = 0;
strlcpy(ud->value, string, ud->length);
ud->is_key = 2;
return false;
}
return 0;
return true;
}
static int rcheevos_getvalue_boolean(void* userdata, int istrue)
static bool rcheevos_getvalue_boolean(void* userdata, bool istrue)
{
rcheevos_getvalueud_t* ud = (rcheevos_getvalueud_t*)userdata;
if (ud->is_key)
{
if (istrue)
if (istrue && ud->length > 4)
{
ud->value = "true";
ud->length = 4;
strlcpy(ud->value, "true", ud->length);
ud->is_key = 2;
return false;
}
else
if (!istrue && ud->length > 5)
{
ud->value = "false";
ud->length = 5;
strlcpy(ud->value, "false", ud->length);
ud->is_key = 2;
return false;
}
ud->is_key = 0;
}
return 0;
return true;
}
static int rcheevos_getvalue_null(void* userdata)
static bool rcheevos_getvalue_null(void* userdata)
{
rcheevos_getvalueud_t* ud = (rcheevos_getvalueud_t*)userdata;
if (ud->is_key )
if (ud->is_key && ud->length > 4)
{
ud->value = "null";
ud->length = 4;
ud->is_key = 0;
strlcpy(ud->value, "null", ud->length);
ud->is_key = 2;
return false;
}
return 0;
return true;
}
static int rcheevos_get_value(const char* json, unsigned key_hash,
char* value, size_t length)
{
static const jsonsax_handlers_t handlers =
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
rcheevos_getvalue_key,
NULL,
rcheevos_getvalue_string,
rcheevos_getvalue_string, /* number */
rcheevos_getvalue_boolean,
rcheevos_getvalue_null
};
rcheevos_getvalueud_t ud;
ud.key_hash = key_hash;
ud.is_key = 0;
ud.value = NULL;
ud.length = 0;
ud.value = value;
ud.length = length;
*value = 0;
if ((jsonsax_parse(json, &handlers, (void*)&ud) == JSONSAX_OK)
&& ud.value && ud.length < length)
{
strlcpy(value, ud.value, ud.length + 1);
return 0;
}
rjson_parse_quick(json, &ud, CHEEVOS_RJSON_OPTIONS,
rcheevos_getvalue_key,
rcheevos_getvalue_string,
rcheevos_getvalue_string, /* number */
NULL, NULL, NULL, NULL,
rcheevos_getvalue_boolean,
rcheevos_getvalue_null, NULL);
return -1;
return (ud.is_key == 2 ? 0 : -1);
}
/*****************************************************************************
@@ -174,16 +179,16 @@ typedef struct
unsigned lboard_count;
} rcheevos_countud_t;
static int rcheevos_count_end_array(void* userdata)
static bool rcheevos_count_end_array(void* userdata)
{
rcheevos_countud_t* ud = (rcheevos_countud_t*)userdata;
ud->in_cheevos = 0;
ud->in_lboards = 0;
return 0;
return true;
}
static int rcheevos_count_key(void* userdata,
static bool rcheevos_count_key(void* userdata,
const char* name, size_t length)
{
rcheevos_countud_t* ud = (rcheevos_countud_t*)userdata;
@@ -197,10 +202,10 @@ static int rcheevos_count_key(void* userdata,
else if (ud->field_hash == CHEEVOS_JSON_KEY_ERROR)
ud->has_error = 1;
return 0;
return true;
}
static int rcheevos_count_number(void* userdata,
static bool rcheevos_count_number(void* userdata,
const char* number, size_t length)
{
rcheevos_countud_t* ud = (rcheevos_countud_t*)userdata;
@@ -217,30 +222,14 @@ static int rcheevos_count_number(void* userdata,
else if (ud->in_lboards && ud->field_hash == CHEEVOS_JSON_KEY_ID)
ud->lboard_count++;
return 0;
return true;
}
static int rcheevos_count_cheevos(const char* json,
static bool rcheevos_count_cheevos(const char* json,
unsigned* core_count, unsigned* unofficial_count,
unsigned* lboard_count, int* has_error)
{
static const jsonsax_handlers_t handlers =
{
NULL,
NULL,
NULL,
NULL,
NULL,
rcheevos_count_end_array,
rcheevos_count_key,
NULL,
NULL,
rcheevos_count_number,
NULL,
NULL
};
int res;
bool res;
rcheevos_countud_t ud;
ud.in_cheevos = 0;
ud.in_lboards = 0;
@@ -249,7 +238,14 @@ static int rcheevos_count_cheevos(const char* json,
ud.unofficial_count = 0;
ud.lboard_count = 0;
res = jsonsax_parse(json, &handlers, (void*)&ud);
res = rjson_parse_quick(json, &ud, CHEEVOS_RJSON_OPTIONS,
rcheevos_count_key,
NULL,
rcheevos_count_number,
NULL, NULL, NULL,
rcheevos_count_end_array,
NULL, NULL, NULL);
*core_count = ud.core_count;
*unofficial_count = ud.unofficial_count;
@@ -263,164 +259,92 @@ static int rcheevos_count_cheevos(const char* json,
Parses the cheevos in the JSON
*****************************************************************************/
typedef struct
{
const char* string;
size_t length;
} rcheevos_field_t;
typedef struct
{
int in_cheevos;
int in_lboards;
int is_game_id;
int is_title;
int is_console_id;
int is_richpresence;
int lboard_had_id;
unsigned core_count;
unsigned unofficial_count;
unsigned lboard_count;
rcheevos_field_t* field;
rcheevos_field_t id, memaddr, title, desc, points, author;
rcheevos_field_t modified, created, badge, flags, format;
unsigned cheevo_flags;
const char* lboard_format;
const char** field_string;
unsigned* field_unsigned;
rcheevos_racheevo_t cheevo;
rcheevos_ralboard_t lboard;
rcheevos_rapatchdata_t* patchdata;
} rcheevos_readud_t;
static char* rcheevos_unescape_string(const char* string, size_t length)
{
const char* end = string + length;
char* buffer = (char*)malloc(length + 1);
char* buffer_it = buffer;
if (buffer == NULL)
return NULL;
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)
static bool rcheevos_new_cheevo(rcheevos_readud_t* ud)
{
rcheevos_racheevo_t* cheevo = NULL;
unsigned flags = (unsigned)strtol(ud->flags.string, NULL, 10);
if (flags == 3)
if (ud->cheevo_flags == 3)
cheevo = ud->patchdata->core + ud->core_count++;
else if (flags == 5)
else if (ud->cheevo_flags == 5)
cheevo = ud->patchdata->unofficial + ud->unofficial_count++;
else
return 0;
ud->cheevo_flags = 0;
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);
if ( !cheevo->title
|| !cheevo->description
|| !cheevo->badge
|| !cheevo->memaddr)
if (!cheevo
|| !ud->cheevo.title
|| !ud->cheevo.description
|| !ud->cheevo.badge
|| !ud->cheevo.memaddr)
{
CHEEVOS_FREE(cheevo->title);
CHEEVOS_FREE(cheevo->description);
CHEEVOS_FREE(cheevo->badge);
CHEEVOS_FREE(cheevo->memaddr);
return -1;
CHEEVOS_FREE(ud->cheevo.title);
CHEEVOS_FREE(ud->cheevo.description);
CHEEVOS_FREE(ud->cheevo.badge);
CHEEVOS_FREE(ud->cheevo.memaddr);
memset(&ud->cheevo, 0, sizeof(ud->cheevo));
return (cheevo ? false : true);
}
return 0;
*cheevo = ud->cheevo;
memset(&ud->cheevo, 0, sizeof(ud->cheevo));
return true;
}
static int rcheevos_new_lboard(rcheevos_readud_t* ud)
static bool rcheevos_new_lboard(rcheevos_readud_t* ud)
{
rcheevos_ralboard_t* lboard = ud->patchdata->lboards + ud->lboard_count++;
rcheevos_ralboard_t* lboard = NULL;
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 (ud->lboard_had_id)
lboard = ud->patchdata->lboards + ud->lboard_count++;
ud->lboard_had_id = 0;
if ( !lboard->title
|| !lboard->description
|| !lboard->format
|| !lboard->mem)
if (!lboard
|| !ud->lboard.title
|| !ud->lboard.description
|| !ud->lboard.mem)
{
CHEEVOS_FREE(lboard->title);
CHEEVOS_FREE(lboard->description);
CHEEVOS_FREE(lboard->format);
CHEEVOS_FREE(lboard->mem);
return -1;
CHEEVOS_FREE(ud->lboard.title);
CHEEVOS_FREE(ud->lboard.description);
CHEEVOS_FREE(ud->lboard.mem);
memset(&ud->lboard, 0, sizeof(ud->lboard));
CHEEVOS_FREE(ud->lboard_format);
ud->lboard_format = NULL;
return (lboard ? false : true);
}
return 0;
*lboard = ud->lboard;
memset(&ud->lboard, 0, sizeof(ud->lboard));
if (ud->lboard_format)
{
lboard->format = rc_parse_format(ud->lboard_format);
CHEEVOS_FREE(ud->lboard_format);
ud->lboard_format = NULL;
}
return true;
}
static int rcheevos_read_end_object(void* userdata)
static bool rcheevos_read_end_object(void* userdata)
{
rcheevos_readud_t* ud = (rcheevos_readud_t*)userdata;
@@ -430,26 +354,26 @@ static int rcheevos_read_end_object(void* userdata)
if (ud->in_lboards)
return rcheevos_new_lboard(ud);
return 0;
return true;
}
static int rcheevos_read_end_array(void* userdata)
static bool rcheevos_read_end_array(void* userdata)
{
rcheevos_readud_t* ud = (rcheevos_readud_t*)userdata;
ud->in_cheevos = 0;
ud->in_lboards = 0;
return 0;
return true;
}
static int rcheevos_read_key(void* userdata,
static bool rcheevos_read_key(void* userdata,
const char* name, size_t length)
{
rcheevos_readud_t* ud = (rcheevos_readud_t*)userdata;
int common = ud->in_cheevos || ud->in_lboards;
uint32_t hash = rcheevos_djb2(name, length);
ud->field = NULL;
ud->field_unsigned = NULL;
ud->field_string = NULL;
switch (hash)
{
@@ -460,145 +384,121 @@ static int rcheevos_read_key(void* userdata,
ud->in_lboards = 1;
break;
case CHEEVOS_JSON_KEY_CONSOLE_ID:
ud->is_console_id = 1;
ud->field_unsigned = &ud->patchdata->console_id;
break;
case CHEEVOS_JSON_KEY_RICHPRESENCE:
ud->is_richpresence = 1;
ud->field_string = (const char**)&ud->patchdata->richpresence_script;
break;
case CHEEVOS_JSON_KEY_ID:
if (common)
ud->field = &ud->id;
if (ud->in_cheevos)
ud->field_unsigned = &ud->cheevo.id;
else if (ud->in_lboards)
{
ud->field_unsigned = &ud->lboard.id;
ud->lboard_had_id = 1;
}
else
ud->is_game_id = 1;
ud->field_unsigned = &ud->patchdata->game_id;
break;
case CHEEVOS_JSON_KEY_MEMADDR:
if (ud->in_cheevos)
ud->field = &ud->memaddr;
ud->field_string = &ud->cheevo.memaddr;
break;
case CHEEVOS_JSON_KEY_MEM:
if (ud->in_lboards)
ud->field = &ud->memaddr;
ud->field_string = &ud->lboard.mem;
break;
case CHEEVOS_JSON_KEY_TITLE:
if (common)
ud->field = &ud->title;
if (ud->in_cheevos)
ud->field_string = &ud->cheevo.title;
else if (ud->in_lboards)
ud->field_string = &ud->lboard.title;
else
ud->is_title = 1;
ud->field_string = (const char**)&ud->patchdata->title;
break;
case CHEEVOS_JSON_KEY_DESCRIPTION:
if (common)
ud->field = &ud->desc;
if (ud->in_cheevos)
ud->field_string = &ud->cheevo.description;
else if (ud->in_lboards)
ud->field_string = &ud->lboard.description;
break;
case CHEEVOS_JSON_KEY_POINTS:
if (ud->in_cheevos)
ud->field = &ud->points;
ud->field_unsigned = &ud->cheevo.points;
break;
/* UNUSED
case CHEEVOS_JSON_KEY_AUTHOR:
if (ud->in_cheevos)
ud->field = &ud->author;
ud->field_string = &ud->cheevo.author;
break;
case CHEEVOS_JSON_KEY_MODIFIED:
if (ud->in_cheevos)
ud->field = &ud->modified;
ud->field_string = &ud->cheevo.modified;
break;
case CHEEVOS_JSON_KEY_CREATED:
if (ud->in_cheevos)
ud->field = &ud->created;
break;
ud->field_string = &ud->cheevo.created;
break; */
case CHEEVOS_JSON_KEY_BADGENAME:
if (ud->in_cheevos)
ud->field = &ud->badge;
ud->field_string = &ud->cheevo.badge;
break;
case CHEEVOS_JSON_KEY_FLAGS:
if (ud->in_cheevos)
ud->field = &ud->flags;
ud->field_unsigned = &ud->cheevo_flags;
break;
case CHEEVOS_JSON_KEY_FORMAT:
if (ud->in_lboards)
ud->field = &ud->format;
ud->field_string = &ud->lboard_format;
break;
default:
break;
}
return 0;
return true;
}
static int rcheevos_read_string(void* userdata,
static bool rcheevos_read_string(void* userdata,
const char* string, size_t length)
{
rcheevos_readud_t* ud = (rcheevos_readud_t*)userdata;
if (ud->field)
if (ud->field_string)
{
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;
if (*ud->field_string)
CHEEVOS_FREE((*ud->field_string));
*ud->field_string = strdup(string);
ud->field_string = NULL;
}
return 0;
return true;
}
static int rcheevos_read_number(void* userdata,
static bool rcheevos_read_number(void* userdata,
const char* number, size_t length)
{
rcheevos_readud_t* ud = (rcheevos_readud_t*)userdata;
if (ud->field)
if (ud->field_unsigned)
{
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);
ud->is_console_id = 0;
*ud->field_unsigned = (unsigned)strtol(number, NULL, 10);
ud->field_unsigned = NULL;
}
return 0;
return true;
}
int rcheevos_get_patchdata(const char* json, rcheevos_rapatchdata_t* patchdata)
{
static const jsonsax_handlers_t handlers =
{
NULL,
NULL,
NULL,
rcheevos_read_end_object,
NULL,
rcheevos_read_end_array,
rcheevos_read_key,
NULL,
rcheevos_read_string,
rcheevos_read_number,
NULL,
NULL
};
rcheevos_readud_t ud;
int res;
bool 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, &has_error);
if (res != JSONSAX_OK || has_error)
if (!res || has_error)
return -1;
/* Allocate the achievements. */
@@ -627,19 +527,27 @@ int rcheevos_get_patchdata(const char* json, rcheevos_rapatchdata_t* patchdata)
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;
ud.lboard_count = 0;
memset(&ud, 0, sizeof(ud));
ud.patchdata = patchdata;
if (jsonsax_parse(json, &handlers, (void*)&ud) != JSONSAX_OK)
res = rjson_parse_quick(json, &ud, CHEEVOS_RJSON_OPTIONS,
rcheevos_read_key,
rcheevos_read_string,
rcheevos_read_number,
NULL, rcheevos_read_end_object,
NULL, rcheevos_read_end_array,
NULL, NULL, NULL);
CHEEVOS_FREE(ud.cheevo.title);
CHEEVOS_FREE(ud.cheevo.description);
CHEEVOS_FREE(ud.cheevo.badge);
CHEEVOS_FREE(ud.cheevo.memaddr);
CHEEVOS_FREE(ud.lboard.title);
CHEEVOS_FREE(ud.lboard.description);
CHEEVOS_FREE(ud.lboard.mem);
CHEEVOS_FREE(ud.lboard_format);
if (!res)
{
rcheevos_free_patchdata(patchdata);
return -1;
@@ -684,7 +592,6 @@ void rcheevos_free_patchdata(rcheevos_rapatchdata_t* patchdata)
{
CHEEVOS_FREE(lboard->title);
CHEEVOS_FREE(lboard->description);
CHEEVOS_FREE(lboard->format);
CHEEVOS_FREE(lboard->mem);
}
@@ -699,6 +606,8 @@ void rcheevos_free_patchdata(rcheevos_rapatchdata_t* patchdata)
patchdata->core = NULL;
patchdata->unofficial = NULL;
patchdata->lboards = NULL;
patchdata->title = NULL;
patchdata->richpresence_script = NULL;
patchdata->core_count = 0;
patchdata->unofficial_count = 0;
patchdata->lboard_count = 0;
@@ -715,15 +624,23 @@ typedef struct
void* userdata;
} rcheevos_deactivate_t;
static int rcheevos_deactivate_index(void* userdata, unsigned int index)
static bool rcheevos_deactivate_elements_begin(void* userdata)
{
rcheevos_deactivate_t* ud = (rcheevos_deactivate_t*)userdata;
ud->is_element = 1;
return 0;
return true;
}
static int rcheevos_deactivate_number(void* userdata,
static bool rcheevos_deactivate_elements_stop(void* userdata)
{
rcheevos_deactivate_t* ud = (rcheevos_deactivate_t*)userdata;
ud->is_element = 0;
return true;
}
static bool rcheevos_deactivate_number(void* userdata,
const char* number, size_t length)
{
rcheevos_deactivate_t* ud = (rcheevos_deactivate_t*)userdata;
@@ -731,40 +648,30 @@ static int rcheevos_deactivate_number(void* userdata,
if (ud->is_element)
{
ud->is_element = 0;
id = (unsigned)strtol(number, NULL, 10);
ud->unlock_cb(id, ud->userdata);
}
return 0;
return true;
}
void rcheevos_deactivate_unlocks(const char* json, rcheevos_unlock_cb_t unlock_cb, void* userdata)
{
static const jsonsax_handlers_t handlers =
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
rcheevos_deactivate_index,
NULL,
rcheevos_deactivate_number,
NULL,
NULL
};
rcheevos_deactivate_t ud;
ud.is_element = 0;
ud.unlock_cb = unlock_cb;
ud.userdata = userdata;
jsonsax_parse(json, &handlers, (void*)&ud);
rjson_parse_quick(json, &ud, CHEEVOS_RJSON_OPTIONS,
NULL, NULL,
rcheevos_deactivate_number,
rcheevos_deactivate_elements_stop,
rcheevos_deactivate_elements_stop,
rcheevos_deactivate_elements_begin,
rcheevos_deactivate_elements_stop,
NULL, NULL, NULL);
}
/*****************************************************************************
@@ -16,46 +16,10 @@
#ifndef __RARCH_CHEEVOS_PARSER_H
#define __RARCH_CHEEVOS_PARSER_H
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "cheevos_locals.h"
RETRO_BEGIN_DECLS
typedef struct {
const char* title;
const char* description;
const char* badge;
const char* memaddr;
unsigned points;
unsigned id;
} rcheevos_racheevo_t;
typedef struct {
const char* title;
const char* description;
const char* format;
const char* mem;
unsigned id;
} 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;
unsigned lboard_count;
} rcheevos_rapatchdata_t;
typedef void (*rcheevos_unlock_cb_t)(unsigned id, void* userdata);
int rcheevos_get_json_error(const char* json, char* token, size_t length);
Loaded 100 of 2484 files, more files were not shown because too many files have changed in this diff. Show more