Commit Graph

124 Commits (11331eb6c366b404f440bb9eee29df8a08e8e94c)

Author SHA1 Message Date
Stenzek 67bb75250b
Cheats: Search local cheats/patches for multi-disc games
Was already done for archives, just not local files.
3 weeks ago
Davide Pesavento 84ff881721 Deps: Remove version number from FontAwesome header
Reduces code churn on version bumps.
3 weeks ago
Stenzek a43e05472a
Host: Split into multiple files
Translation, actual host, and core for settings management.
4 weeks ago
Stenzek 1cc5fe081c
ImGuiManager: Remove duration parameter from OSD messages
Use a type instead.
2 months ago
Stenzek 529da22ef5
System: Use new OSD message variants 3 months ago
Stenzek 90e6078543
Cheats: Show OSD warning when parsing fails 3 months ago
Stenzek 286f9dddec
Qt: Validate cheats before saving edits 3 months ago
Stenzek bfcd3d4220
Cheats: Strip whitespace on code body when editing 3 months ago
Stenzek 98761961bc
Cheats: Remove unnecessary std::move() 3 months ago
Stenzek cf0b602476
Settings: Rearrange fields
To make space in the bitfield.
4 months ago
Stenzek eadca6cd7b
Settings: Prefer widescreen patches over GTE hack
Since they tend to work better.
4 months ago
Stenzek fa8a995d7e
Cheats: Fix uninitialized data read in parsing 4 months ago
Stenzek fb60691afc
Cheats: Pack state in struct 4 months ago
Stenzek 6c1ee0ca87
Settings: Store custom aspect ratios in main key
What a pain. But allows patches to override aspect ratio to any
arbitrary value.
4 months ago
Stenzek dc1882dd3e
System: Fix patch setting override desync on safe mode toggle 4 months ago
Stenzek 8bfc31a59c
GameDatabase: Refactor disc sets
Store the sets in a separate file, and use pointers to reference instead
of string matching. This allows us to use the unsuffixed display names.
5 months ago
Stenzek a8b4bb3fce
GameDatabase: Add sort title, localized title, and save title fields 5 months ago
Stenzek 835390fa99
Cheats: Make message OSD key consistent 5 months ago
Stenzek 87f2c54ddd
FullscreenUI: Unify Prefer GLES option name 5 months ago
Davide Pesavento 69da2df8e9 Make all single-argument constructors explicit 6 months ago
Stenzek fb7772871c
GameDatabase: Use string_view for disc sets
Avoid the allocations, apparently forgot this one.
7 months ago
KamFretoZ fa0a926133
Deps: Bump FontAwesome to 6.7.2 (#3456) 7 months ago
Stenzek 59f7d0b2ff
Cheats: Fix compiler warnings 8 months ago
Sheng Jiang 蒋晟 b195f747cf
implement ExtConstantBitClear/Set on ExtImprovedSlide (#3430) 8 months ago
Stenzek 21aaec99f1
Qt: Note when patches are not allowed for achievements 8 months ago
Stenzek 871323f4e1
Cheats: Fix setting overrides applying for blacklisted patches 8 months ago
Stenzek f4df18b7cf
Cheats: Make FormatCodeForFile() public
Needed for Android.
9 months ago
Stenzek f7f17a077c
Cheats: Add Enable8MBRAM option for patches 11 months ago
Stenzek 369f62318f
Cheats: Only display codes for selected revision 11 months ago
Stenzek ce616f1c5c
Cheats: Reapply frame end codes immediately on reload
Otherwise you end up with a single frame where the old code is used.
11 months ago
Stenzek 46ae3e55ea
Cheats: Show disabled code count when HC/safe mode is active 11 months ago
Stenzek 8132c51a12
Cheats: Add 'Ignore' field to file format
Codes with Ignore set to true will not be listed/loaded.
11 months ago
Stenzek 4236beabaf
System: Fix setting-altering patches not applying on startup 11 months ago
Stenzek c03b6f3d84
Misc: Replace isspace() usage with StringUtil::IsWhitespace()
Avoids the UB if the character is negative (e.g. reading from a binary
file), as well as locale-specific rubbish.
1 year ago
Stenzek 1952869cdc
Cheats: Author field should be exported 1 year ago
Stenzek 05b0b03fd6
Cheats: Order special characters before alpha characters 1 year ago
Stenzek 93a7e7cef5
Cheats: Add bounds check to 5107/5147 1 year ago
PugsyMAME a26cac18e9
Cheats: Added register cheat types 5107 & 5147 (#3352)
This is new cheat type uses the general purpose cheat registers in a relative easy method to allow arrays of arrays cheats to be quickly created and will also cut down massively on cheats. For instance this method allows the following 15 cheats for Vandal Hearts II which would otherwise need 18886 separate cheats to replicate:

#Technique Slot Modifier\[MASTER] Select Slot Number for following cheats to act on (1 - 1349)
518500F1 001CF3C3
514500F2 0000000F
514500F3 0000????
514500F4 0000D0D0
OptionRange = 1:1349
#Technique Slot Modifier\Select Weapon
510700F1 000000??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 1 Learned
510700F1 00020001
#Technique Slot Modifier\Select Technique 1
510700F1 000300??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 2 Learned
510700F1 00040001
#Technique Slot Modifier\Select Technique 2
510700F1 000500??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 3 Learned
510700F1 00060001
#Technique Slot Modifier\Select Technique 3
510700F1 000700??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 4 Learned
510700F1 00080001
#Technique Slot Modifier\Select Technique 4
510700F1 000900??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 5 Learned
510700F1 000A0001
#Technique Slot Modifier\Select Technique 5
510700F1 000B00??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\Technique 6 Learned
510700F1 000C0001
#Technique Slot Modifier\Select Technique 6
510700F1 000D00??
OptionRange = 0x00:0xFF
#Technique Slot Modifier\100% (Max) Technique Learned
510700F1 000E0064
1 year ago
Stenzek 78ccbc710c
Cheats: Fix error while exporting 1 year ago
Stenzek 88cd086633
Cheats: Eliminate extra newlines during code editing 1 year ago
Stenzek 468c907fd6
Cheats: Compiler warning fix 1 year ago
Stenzek e1bd5690ac
Misc: Slightly reduce include pollution from settings.h 1 year ago
Stenzek cc567d9498
Cheats: Fix hash-suffixed files incorrectly loading 1 year ago
Stenzek 3a661a1c3d
Cheats: Move file clearing into core
Needed for Android.
1 year ago
Stenzek eeee1e691a
Cheats: Support importing native format
Compared to only replacing the .cht file.
1 year ago
Stenzek 208e6c4b35
Cheats: Strip whitespace from code names 1 year ago
Stenzek 3f41dcc97d
Log: Add option coloured variants 1 year ago
PugsyMAME 5caadec34d
Cheat bugfix and new A8 cheat type (#3328)
* Bugfix for import and entering new cheats

Added needed g_emu_thread->reloadCheats calls after the reloadList() calls on entering a new code or importing new codes.

Without it I had to import new codes and then manually edit one of them for it to show up in the cheat counts and possibly even work

* Added Cheat Type A8

Added cheat type A8 which is the byte equivalent of the A7 cheat type as there will be a need of this type.

* Changed boolean parameters in last PR

Changed boolean parameters in last PR as per discord
1 year ago
Stenzek 0fc719c4cf
Cheats: Simplify code merging on import
The save file already does replacement.
1 year ago
Stenzek a8bc364a2b
Cheats: Fix importing hash-formatted codes 1 year ago