Commit Graph

162 Commits

Author SHA1 Message Date
Henrik Rydgård cc0ece038c Clean up the string type in RequestCallback - somehow was both char* and std::string????
Might be related to #21695
2026-05-18 14:16:34 +02:00
Henrik Rydgård ec681b1f56 Add translations, modify a string 2026-05-16 22:35:10 +02:00
Henrik Rydgård 91b3741a57 Implement a simple cheat database download facility 2026-05-16 22:31:13 +02:00
Henrik Rydgård 27d5719a40 MainScreen/CwCheatScreen: Don't ask for keyboard input if the keyboard is "soft"
Fixes bug reported in the comments of #21637
2026-05-05 09:27:50 +02:00
Henrik Rydgård fd11659b8d Fix screen layout in portrait mode on TouchControlLayoutScreen, fix move/resize selector visual status 2026-05-04 01:08:44 +02:00
Henrik Rydgård 71d04bfcae Implement cheat search on mobile 2026-05-04 00:36:16 +02:00
Henrik Rydgård 691c1f3251 Add a way for titles to always be visible in the cheat search 2026-05-04 00:15:03 +02:00
Henrik Rydgård f02624ba32 Implement type-to-search in cheats dialog 2026-05-03 18:08:00 +02:00
Henrik Rydgård 56229ea468 Improved error and success messages for cheat import 2026-05-01 20:45:42 +02:00
Henrik Rydgård a9017b301e Also support the "Post-comment" syntax used by cheats.db for comments 2026-04-24 14:41:47 +02:00
Henrik Rydgård c97007adfe CwCheat screen: Detect titles and display them as large text instead of checkboxes 2026-04-24 14:29:09 +02:00
Henrik Rydgård 77122f3c5a Better portrait layout for the cheats screen 2025-11-24 01:26:23 +01:00
Henrik Rydgård 2b9f2672bb UI screens header cleanup 2025-10-29 00:15:41 +01:00
Henrik Rydgård 7ffd72b32e Rename some screen classes 2025-10-29 00:02:43 +01:00
Henrik Rydgård b4b9ae2d3c Fix the OnClick behavior on checkboxes, oops. Fixes cheats. 2025-09-30 12:38:38 -05:00
Henrik Rydgård 58456ae950 Remove the UI::EventReturn return values. Makes editing the UI nicer. 2025-09-15 11:09:00 -06:00
Henrik Rydgård c17fb20ac5 Remove UI::EVENT_SKIPPED, not any real need for it 2025-09-15 10:15:08 -06:00
Henrik Rydgård 3e198c53b2 More include cleanup 2024-12-18 13:57:26 +01: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 c5791764d8 Make the i18n T function use std::string_view
Buildfixes, crashfixes

One more

Android buildfix

Buildfix Qt
2024-02-12 18:44:39 +01:00
Henrik Rydgård 18ecef1aa5 Fix Refresh interval translation string 2024-01-29 20:13:46 +01:00
Henrik Rydgård a5fafb8321 Fix logic, cleanup 2024-01-28 16:56:07 +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 1f129b6dca Replace "ReadFileToString" with a few semantically clearer wrappers. 2024-01-25 09:55:54 +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 f1d19cd736 CwCheats: Retry looking in g_gameInfoCache until the data is there.
Replaces #18733

Fixes at least one instance of #18694, don't know if there are other
causes.
2024-01-20 20:07:38 +01:00
Henrik Rydgård b71ccfdb71 CwCheats: Add ms unit, rename to Refresh Interval. 2024-01-19 15:12:53 +01:00
Henrik Rydgård 1304d04161 Fix a particular type of race condition in file dialog requests
It seems to be possible for a user to back out of a screen before
receiving the "dialog completed" callback on Android, in which case
things pointed to by the callback might be gone.

In this case, it's better to simply not call the callback, rather than
crashing.

This is accomplished by assigning "Tokens" to screens that cause
requests, and in ~Screen, invalidate any pending requests belonging to
that token.
2024-01-18 12:25:55 +01:00
Bashar Astifan 9b0577351f Review's changes, more fixes and better structure 2023-05-02 00:09:22 +04:00
Bashar Astifan d0b6935592 UWP Improved Support 2023-04-28 23:22:17 +04:00
Henrik Rydgård ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård 6f9339b011 Add defaults for all int-slider settings too 2023-04-05 10:50:53 +02:00
Henrik Rydgård 84f33d9346 Button text fix, required adding a new translation line. 2023-03-23 13:46:07 +01:00
Henrik Rydgård f5afc91f23 Change Enable/Disable All to just a Disable All button. 2023-03-23 10:32:11 +01:00
Henrik Rydgård e21867315b Fix browsing for Cheat DB files. Easy now after the refactor! 2023-03-23 10:18:21 +01:00
Henrik Rydgård ac66deeb25 Improve cheats UX 2023-03-23 10:18:21 +01:00
Henrik Rydgård d3955b42bb Rename some system functions, merge the Launch* ones.
android launchurl buildfix
2023-03-21 12:22:59 +01:00
Henrik Rydgård 575560f679 Enable game backgrounds on more screens 2022-11-22 22:53:54 +01:00
lainon fec708489a Correct cleaning string and remove unused vars 2022-09-30 12:26:30 +03:00
Henrik Rydgård 46342ee92d Warning fix 2022-08-08 16:42:29 +02:00
Richard Ainger 7506fc9f00 Fixed infinite loop and crash which could occur when using "Import from cheat.db". 2022-08-07 12:50:57 +10:00
Unknown W. Brackets a397bf811b UI: Fix some sign/size comparison warnings.
Mostly size_t vs int.
2022-01-06 20:40:29 -08:00
Unknown W. Brackets 3e73ce87ee Path: Check for PSP case insensitively.
This allows a game to look up ms0:/psp/ eve with the PSP special case path
handling.
2021-12-16 15:06:15 -08:00
Unknown W. Brackets b8ab7f39df jit: Lock around changes to the jit pointer. 2021-11-28 10:04:22 -08:00
Unknown W. Brackets 931ba43216 UI: Remove scroll to top on size change.
It wasn't actually used anywhere, and I don't see a reason for it now.
2021-09-27 23:39:33 -07:00
Unknown W. Brackets fc78b408b2 UI: Have scroll views directly remember their pos.
Kinda like checkboxes, cleaner this way.
2021-09-27 23:25:41 -07:00
LunaMoo 8e66239404 Fix UI import cheat crash. 2021-05-24 22:54:04 +02:00
Henrik Rydgård ae06499a0c Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes

Buildfix
2021-05-13 10:39:16 +02:00
Henrik Rydgård 025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00