Commit Graph

251 Commits

Author SHA1 Message Date
Henrik Rydgård 71533ac2b7 Trash handling is too high level for FileUtil, move it up. 2025-04-15 17:42:24 +02:00
Henrik Rydgård 7712cf5331 When deleting important files like savedata or games, move to trash.
This currently only works on Windows, where it changes the Delete button
to "Move to trash".
2025-04-10 09:02:44 +02:00
Henrik Rydgård bc3d4fe477 Fix a rare UI race condition (if 'region' changed on a background thread) 2025-04-02 17:27:46 +02:00
Henrik Rydgård f3c1fa7c05 Quick sanity check for EBOOT deletion. Fixes #20187, although arguably we should be even stricter. 2025-03-31 12:30:47 +02:00
Henrik Rydgård a50b303a38 Redesign the recent files API a bit. 2025-03-26 17:59:30 +01:00
Henrik Rydgård ee90971762 Fix layout issue on savedata screen
Fixes #20030
2025-02-25 09:47:42 -06:00
Henrik Rydgård 4b2bce388c Minor error handling improvements, remove redundant Exists checks 2025-02-18 10:56:49 -06:00
Henrik Rydgård 8b340aa4ed Refactor out the replacement icon loading, use for EBOOTs too. 2025-02-13 11:00:07 -06:00
LunaMoo ed9b202671 Basic custom icon support (through texture replacement)
uses path textures/gameID/icon.png, or icon.png from textures.zip.

requires restart to re-load icons.
2025-02-13 10:47:58 -06:00
Henrik Rydgård 5c1eaf1933 Faster savedata deletion 2024-11-30 02:44:01 +01:00
Henrik Rydgård f60e66b186 GameInfoCache: Use directory prefix filtering to speed things up.
Probably not much improvement in practice.
2024-11-29 11:14:52 +01:00
Henrik Rydgård 59a56d66c7 Add a "reason" argument to sleep_ms().
sleep_ms() should generally be avoided when possible. This can be used to try
to track down unnecessary sleeps by adding some logging.

This commit on its own doesn't actually add any logging.
2024-11-21 15:28:51 +01:00
Henrik Rydgård 8fbe46ab9e Prevent soft-locking the emulator on invalid PBP files, or crashes in some cases. 2024-10-03 18:38:54 +02:00
Henrik Rydgård 8186f14a57 Much more UI work on savedata import
fix
2024-09-07 15:28:57 +02:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård ecdc7940f4 Android: Fix issue where shortcuts wouldn't override the currently running game. 2024-05-14 00:02:59 +02:00
Henrik Rydgård 699a41a3fa GameInfoCache: Fix issue reloading the BG texture after wiping it from memory
Fixes #19077
2024-05-10 14:15:26 +02:00
Henrik Rydgård 68c192b892 Fix some symbol clashes apparently affecting the docker build 2024-04-13 01:06:18 +02:00
Herman Semenov 9e126b5f00 Fixed possible accidental conversion memsize type to strict 32 bit 2024-04-02 19:03:12 +03:00
Henrik Rydgård 3424d24605 Fix hang when trying to load non-existing file or folder. 2024-03-26 15:10:06 +01:00
Henrik Rydgård d284ad4496 Remove warning for bad CHDs 2024-03-16 20:52:21 +01:00
Henrik Rydgård 9322b4c6dc Warning fix, some paranoid zero init 2024-02-12 18:33:38 +01:00
Henrik Rydgård 3831ec1921 Warn the user about bad CHDs
If they're not created with "chdman createdvd", they will perform really
badly.
2024-01-31 22:15:47 +01:00
Henrik Rydgård c7ed87b352 Assorted paranoia and improved checks 2024-01-31 10:22:03 +01:00
Henrik Rydgård 9792453b27 Fix missing titles for some file types 2024-01-30 12:31:56 +01:00
Henrik Rydgård 76242cb9f7 More gameinfocache fixes 2024-01-30 12:27:58 +01:00
Henrik Rydgård bf8a1684d1 Fix per-game configs, thanks Verymelon 2024-01-29 18:59:15 +01:00
Henrik Rydgård a93b55c215 Handle icon loading failures better (avoid retrying every frame). 2024-01-29 10:44:46 +01:00
Henrik Rydgård 82f269cd48 GameInfoCache: Properly lock around accesses to the gameinfo map. 2024-01-29 00:54:18 +01:00
Henrik Rydgård 884c366692 Fix some longstanding issues with the GameInfoCache and optimize away double work 2024-01-28 16:23:27 +01:00
Henrik Rydgård 9b3c14a931 GameInfoCache: Break out a couple functions 2024-01-28 14:50:16 +01:00
Henrik Rydgård 1f129b6dca Replace "ReadFileToString" with a few semantically clearer wrappers. 2024-01-25 09:55:54 +01:00
Henrik Rydgård f0af76ec40 GameInfoCache: Check read size before using the data. 2024-01-25 09:43:06 +01:00
Henrik Rydgård 77d52b83db Fix icon reading bug in GameInfoCache 2024-01-23 01:06:56 +01:00
Henrik Rydgård 2e16fd3bcc Fix fake game ID generation to work with scoped storage 2024-01-23 01:06:56 +01:00
Henrik Rydgård bd388fc094 Add some comments and logging 2024-01-22 11:55:42 +01:00
Henrik Rydgård 53cfecf8fa Remove superfluous error message 2024-01-20 23:11:42 +01:00
Henrik Rydgård f73d0587d4 Comments, make locking more consistent in GameInfoCache 2024-01-19 14:56:29 +01:00
Henrik Rydgård 74f5be02a1 GameInfo: Try to reduce the locking a bit. 2024-01-18 22:52:56 +01:00
Henrik Rydgård e29f59a102 GameInfoCache: Move some I/O out of the mutex. There's more to do. 2024-01-18 20:04:29 +01:00
Henrik Rydgård 00f53ad767 Handle file type detection of extracted ISO directories better. Reported by Nemoumbra. 2024-01-12 15:37:53 +01:00
Henrik Rydgård 2aca8fe3f9 Get rid of more unnecessary uses of ManagedTexture 2023-12-12 23:13:45 +01:00
Henrik Rydgård 75e96df448 Don't use ManagedTexture in GameInfoCache, not needed. 2023-12-12 22:34:31 +01:00
Henrik Rydgård 82bdc9ec50 Add CreateTextureFromFileData (without ManagedTexture) 2023-12-12 22:24:13 +01:00
Henrik Rydgård d2e10a058e Some renaming 2023-12-12 22:15:55 +01:00
Henrik Rydgård a22450320b Some minor changes and comments after memory profiling 2023-12-08 12:22:12 +01:00
Henrik Rydgård 5a972be7ef Fix the display of uncompressed size of things that aren't ISO and CSO 2023-12-02 23:41:20 +01:00
Henrik Rydgård 87ddb3f3b1 Add easy way to verify games against the Redump database, supplied as CSV. 2023-10-23 19:11:01 -05:00
Henrik Rydgård 04351a18f6 Address feedback 2023-07-16 00:20:09 +02:00
Henrik Rydgård 667abd0a48 GameInfoCache: Some fixes for the icon loaded flag.
Not really important but why not. Extracted from #17646
2023-07-02 17:18:13 +02:00