summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
AgeCommit message (Collapse)Author
2025-10-02Merge pull request #13907 from TryTwo/PR_Cheat_RefreshJMC47
Cheats: Refresh active code after editing it.
2025-08-25CodeWidgets: Show code approval in Hardcore modeDentomologist
When Hardcore mode is enabled, show an icon for each code in ARCodeWidget and GeckoCodeWidget indicating whether it's an approved code or not.
2025-08-24Cheats: Refresh active code after editing it.TryTwo
2025-06-07DolphinQt: Replace widespread SetQWidgetWindowDecorations calls with an ↵Jordan Woyak
event filter.
2025-05-26DolphinQt: Make GeckoCodeWidget default size not taller than it needs to be.Jordan Woyak
2025-05-26DolphinQt: Make WrapInScrollArea and GetWrappedWidget less hacky.Jordan Woyak
2025-03-15Fixed Multi Config Code ApprovalsLillyJadeKatrin
Refactors the AR/Gecko/Patch code approval process to verify from every possible game ini, not just the base game ID. This fixes codes on specific revisions or codes general to any region.
2024-11-27Add Gecko Code Whitelist ApprovalLillyJadeKatrin
2024-10-27Merge pull request #13096 from mitaclaw/ranges-modernization-7-rewriteJMC47
Ranges Algorithms Modernization - Rewrite
2024-10-10Modernize `std::find` with rangesmitaclaw
2024-10-09Simplify `std::stable_sort` with `std::ranges::stable_partition`mitaclaw
2024-08-25CheatsManager: Create ARCodeWidget and GeckoCodeWidget only once.Dentomologist
Create ARCodeWidget and GeckoCodeWidget once on startup rather than every time a game is launched or shutdown. In addition to losing focus on the tab (since the previous widget and tab no longer existed), the behavior prior to this commit could cause a crash if the user initiated a game shutdown and then opened a code edit window since the AR/GeckoCodeWidget would get deleted in the meantime.
2024-08-25Extract ARCodeWidget/GeckoCodeWidget code loading to functionsDentomologist
2024-08-25ARWidget: Disable Edit and Remove buttons when no code is selectedDentomologist
Also some minor refactoring of nearby/related code: * Make non-obvious variable types explicit instead of auto. * Throw some consts around. * Use setDisabled(empty) instead of setEnabled(!empty).
2024-07-26Adjust order and spacing of various #includesDentomologist
Move some #includes around to match the Contributing guidelines.
2024-03-31CheatsManager: Allow making the window smallerDentomologist
Move CheatManager's child widgets into scroll areas to allow making the window smaller than the default. In CheatSearchWidget, enable word wrapping for the label describing the address space and search type to help it fit better inside a narrower window.
2023-12-02Disable cheats in hardcore modeLillyJadeKatrin
RetroAchievements does not allow cheats such as Action Replay or Gecko in hardcore mode, for fairness.
2023-08-12DolphinQt: Set window decorations for all top-level QWidgets.Admiral H. Curtiss
2023-05-02GeckoCode: Add sort by enabled stateSepalani
2023-04-13Common/IniFile: Move interface into Common namespaceLioncash
Gets this out of the global namespace and into the Common namespace
2022-03-08Add NonDefaultQPushButton to set autoDefault of buttons to falseMartin
2021-09-16Qt/GeckoCodeWidget: Disable functionality if no game id is given.Admiral H. Curtiss
2021-08-28Split out code for serializing/deserializing cheat linesJosJuice
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-06GeckoCodeWidget: Take game ID and revision directly instead of through GameFile.Admiral H. Curtiss
2019-09-01Remove double space in GeckoCodeWidget code viewdreamsyntax
2019-08-09Merge pull request #8277 from lioncash/codeConnor McLaughlin
DolphinQt/Config/ARCodeWidget: Avoid unnecessary disk operations
2019-07-31DolphinQt/Config/GeckoCodeWidget: Use forward declarations where applicableLioncash
Avoids propagating headers into scopes where they're not needed.
2019-07-31DolphinQt/Config/GeckoCodeWidget: Call LoadDefaultGameIni() directlyLioncash
This is a static class function, so we don't need to go through the SConfig instance in order to call it.
2019-07-31DolphinQt/Config/GeckoCodeWidget: Make exec() outcomes explicitLioncash
Makes it a little more explicit which dialog outcomes we're expecting. While we're at it, we can invert them into guard clauses to unindent code a little bit.
2019-07-31DolphinQt/Config/GeckoCodeWidget: Deduplicate ini pathLioncash
We can store this to a local variable to avoid duplicating the same string creation twice.
2019-07-30DolphinQt: Replace QStringLiteral with alternatives where applicableLioncash
QStringLiterals generate a buffer so that during runtime there's very little cost to constructing a QString. However, this also means that duplicated strings cannot be optimized out into a single entry that gets referenced everywhere, taking up space in the binary. Rather than use QStringLiteral(""), we can just use QString{} (the default constructor) to signify the empty string. This gets rid of an unnecessary string buffer from being created, saving a tiny bit of space. While we're at it, we can just use the character overloads of particular functions when they're available instead of using a QString overload. The characters in this case are Latin-1 to begin with, so we can just specify the characters as QLatin1Char instances to use those overloads. These will automatically convert to QChar if needed, so this is safe.
2019-07-24Connect numerous QPushButtons to use clicked signal instead of pressed. This ↵Silent
unifies UI behaviour more.
2019-06-22Config/GeckoCodeWidget: Add option for alphabetical sortingspycrab
2019-06-22Qt/GeckoCodeWidget: Support drag and drop reorderingspycrab
2019-03-04Qt: Use ModalMessageBox everywherespycrab
2019-02-25Keep track of GameTDB ID separately from game IDJosJuice
The difference between Dolphin's game IDs and GameTDB's game IDs is that GameTDB uses four characters for non-disc titles, whereas Dolphin uses six characters for all titles. This fixes: - TitleDatabase considering Datel discs to be NHL Hitz 2002 - Gecko code downloading not working for discs with IDs starting with P - Cover downloading mixing up discs with channels (e.g. Mario Kart Wii and Mario Kart Channel) and making extra HTTP requests. (Android was actually doing a better job at this than DolphinQt!)
2018-10-09Change gecko sorting back to manualsp00nd
Gecko codes are a core foundation of most netplay sessions and most general modding cases. It has gone so far as to now have an ini for almost every game. After the massive UI overhaul, the gecko code sorting defaults to Alphabetical with no option to change it. This removes the possibility for netplay builds to have important and necessary codes at the top for easy selecting, and removes the ability to sort massive code lists in categories. This will also make the sorting consistent with AR codes, which are sorted manually.
2018-07-07Move DolphinQt2 to DolphinQtspycrab