Commit Graph

4921 Commits

Author SHA1 Message Date
4bca193ee1 FileSystem: Include <limits.h> for PATH_MAX 2020-12-26 00:47:02 +10:00
8856099092 Build: Fix threads detection on libc with built-in support
As noted in the FindThreads documentation[0], CMAKE_THREAD_LIBS_INIT
may be empty if no special flags are needed to use thread support.
Instead, use Threads_FOUND to determine if threads are supported.

[0] https://cmake.org/cmake/help/latest/module/FindThreads.html
2020-12-26 00:47:02 +10:00
7a40a843d4 Common/FileSystem: Fix misspelling of 'separator' 2020-12-26 00:47:02 +10:00
d0398c8a83 Common/FileSystem: Fix canonicalization of paths beginning with ./
If we don't skip past the following separator when the destination
is empty, then `./file` gets canonicalized as `/file`.

Also, consider the case where we end up with an empty string (for
example, from `foo/..`). Canonicalize this as `.`.
2020-12-26 00:47:02 +10:00
64c0ca14a3 System: Fix some bugs in GetTitleForPath
The previous implementation had a few issues in certain edge cases:
- If the path contained no '/' or '\', then the string_view constructor
  is called with a count that exceeds the length of the string
  (effectively `title_end - (char *)0`, which is undefined behavior,
  at least in C).
- If the only '/' was the filesystem root, the last character of
  the title was truncated, and the '/' remained. For example,
  "/title.bin" resulted in "/titl".
- At least in C, it is undefined behavior to use the the < operator
  with a null pointer, which is done in std::max if the path did
  not have both '/' and '\'.

The first issue results in a std::bad_alloc exception on my machine.
2020-12-26 00:47:02 +10:00
fcc6bf0cb7 Update README with dev vs preview builds 2020-12-26 00:47:02 +10:00
3f410ebbac Cheats: Add additional code types from @PugsyMAME 2020-12-26 00:47:02 +10:00
7dcacc2cda Qt: Implement GDB server 2020-12-26 00:47:02 +10:00
abd2399aaf Core: Implement GDB protocol 2020-12-26 00:47:02 +10:00
9b40c8ffa6 Settings: Add GDB server settings 2020-12-26 00:47:02 +10:00
9bd28f39a5 StringUtil: Add base support and hexadecimal functions 2020-12-26 00:47:02 +10:00
fd39f09aa7 scmversion: Second part of beta -> preview 2020-12-25 13:58:50 +10:00
c0cc0a371b Fixed Slide Code cheat type
Address increment is a u8 and value increment is a u16. The changes will make this work correctly:-

50000AA4 FFFF
801CC760 0400
which is a example slide code representing:-
801CC760 0400
801CC804 03FF
801CC8A8 03FE
801CC94C 03FD
801CC9F0 03FC
801CCA94 03FB
801CCB38 03FA
801CCBDC 03F9
801CCC80 03F8
801CCD24 03F7
2020-12-25 13:53:28 +10:00
b468f643fb CI: Remove unused scripts 2020-12-25 13:53:28 +10:00
e5495b43c6 CI: Rename beta builds to preview builds, stable to development 2020-12-25 13:53:28 +10:00
add6754381 libretro: Remove guncon/mouse/negcon controller types
These were never supported. Use the standalone version if you want to
use these controller types.
2020-12-25 13:53:28 +10:00
aedfff7e3f Adding 2 more games that needs CPU PGXP - Alundra 2 and Disney's Aladdin in Nasira's Revenge (#1287)
* Adding PGXP CPU for 2 games

* Revert "Adding PGXP CPU for 2 games"

This reverts commit 35e9ad743f8d505f43388ff00f1c2fc4066ba3ea.

* Update gamesettings.ini

Adding 2 more games that need CPU PGXP
2020-12-25 13:51:23 +10:00
7f6fbd6b80 Merge pull request #1289 from andercard0/patch-51
Atualização Português do Brasil
2020-12-25 13:51:02 +10:00
8fcb3d6690 Merge pull request #1297 from zkdpower/master
Update Simple-Chinese language file to latest
2020-12-25 13:50:51 +10:00
2e3ce32819 Merge pull request #1301 from ggrtk/cmake-fix-missing-translations
CMake: Fix missing translation files
2020-12-25 13:50:39 +10:00
f63291b8ec CMake: Fix missing translation files 2020-12-24 12:01:33 -08:00
3f22f55338 Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2020-12-24 13:05:50 +08:00
33fdbe48a5 Atualização Português do Brasil
Update Pt-Br to the latest.
2020-12-22 16:51:05 -03:00
095bc280cb Qt: Fix default value of PGXP depth buffer 2020-12-23 02:26:47 +10:00
31f7ec7538 Update README.md 2020-12-23 01:56:18 +10:00
f798877704 Update README.md 2020-12-23 01:54:44 +10:00
ee5ba8d90a Merge pull request #1284 from zkdpower/master
Update Simple-Chinese language file to latest
2020-12-23 01:44:35 +10:00
4f9a5d0241 Merge pull request #1285 from CookiePLMonster/memcard-slashes-fix
Memory Card Editor fixes
2020-12-23 01:44:13 +10:00
ce4e9f4f17 Update Simple-Chinese language file to latest
Update Simple-Chinese language file to latest
2020-12-22 23:41:05 +08:00
51eb494340 Memcard Editor: Fix relative shared paths not opening in Memcard Editor by default 2020-12-22 16:39:59 +01:00
744cfbd924 Frontends: Add PGXP Depth Buffer options 2020-12-23 01:39:49 +10:00
d320d5c830 GameSettings: Add game settings/hotkey for PGXP depth 2020-12-23 01:39:49 +10:00
aa1543271e GPU: Support emulating a depth buffer from PGXP depth values 2020-12-23 01:39:49 +10:00
f393ea618e Shaders/Cccalibrator: Fix compile errors 2020-12-23 01:39:49 +10:00
9384f3a8e9 Qt/CheatManager: Fix checking groups not updating child nodes 2020-12-23 01:34:32 +10:00
972872a0c8 Merge pull request #1278 from andercard0/patch-50
Atualização Português do Brasil
2020-12-23 01:21:32 +10:00
bb528fb15c Fix inconsistent forward/backward slashes in Memcard Editor
Memcard Editor looks for an exact string match, so slashes must be
consistent.
2020-12-22 16:14:22 +01:00
19980426fb Atualização Português do Brasil
Update language Pt-Br to latest.
2020-12-21 14:53:52 -03:00
ca84925ff8 HostDisplay: Support screenshotting 16-bit display formats 2020-12-22 03:24:51 +10:00
189656cbc4 CommonHostInterface: Fully clear controller section before loading profile 2020-12-22 03:24:51 +10:00
a5f04f2a8e CommonHostInterface: Don't save/load input profile rumble for motorless controller types 2020-12-22 03:24:51 +10:00
7249825c16 Qt: Support multiple updater channels 2020-12-22 03:24:51 +10:00
14c227a813 scmversion: Fix incorrect tagging after stable/beta split 2020-12-22 03:24:19 +10:00
3ab017c32e CI: Set prerelease tag only on beta release 2020-12-22 02:40:27 +10:00
80ce7bde26 CI: Generate master->beta, stable->latest releases 2020-12-22 02:18:15 +10:00
b24245dd1d GameList: Bump cache list version
Required due to aspect ratio change.
2020-12-22 02:16:11 +10:00
d130fc9465 Android: Possible fix for white overlay with controller 2020-12-22 02:15:55 +10:00
295f369519 Added PAL games to cheat database + other modifications
1. Cleaned up and added cheats for non-softwarelist games, mainly for PAL regions this has doubled the size of the database.
2. Added information about the various 32 bit by 32 bit cheat types to the cheat file header.
3. Added information for cheat types 31, 32 ,81, 82, 91 & 92 which are BIT set and clear cheat types - I'll do a PR for these in the next week.
4. Grouped some more cheats
2020-12-22 00:58:34 +10:00
d5d9cb623d GPU/Vulkan: Fix possible framebuffer destroy-while-in-use 2020-12-22 00:56:55 +10:00
c0d8e44548 Merge pull request #1263 from andercard0/patch-48
Atualização Português do Brasil
2020-12-22 00:53:36 +10:00