summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/ARCodeWidget.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 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 AR Code Whitelist ApprovalLillyJadeKatrin
2024-10-09Simplify `std::stable_sort` with `std::ranges::stable_partition`mitaclaw
2024-08-25ARCodeWidget: Remove unnecessary call to OnSelectionChangedDentomologist
Before the call to OnSelectionChange, m_code_edit and m_code_remove are disabled and UpdateList calls m_code_list->clear(), thereby deselecting any selected items. When no items are selected, OnSelectionChange disables m_code_edit and m_code_remove and then returns. Since that was already done, the call doesn't change anything and can be removed.
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-02ARCode: 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
2022-02-12Remove unused includes of QButtonGroupPokechu22
2021-09-16Qt/ARCodeWidget: Disable functionality if no game id is given.Admiral H. Curtiss
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-06ARCodeWidget: Take game ID and revision directly instead of through GameFile.Admiral H. Curtiss
2020-12-11Core: Allow overriding the enabling of a codeJosJuice
If we want to enable codes in the default game INIs, we should have some way for users to disable them. This commit accomplishes that by adding a *_Disabled section corresponding to each *_Enabled section.
2019-08-09Merge pull request #8277 from lioncash/codeConnor McLaughlin
DolphinQt/Config/ARCodeWidget: Avoid unnecessary disk operations
2019-07-31DolphinQt/Config/ARCodeWidget: Use forward declarations where applicableLioncash
Avoids propagating headers into scopes where they're not necessary. Also uncovered reliance on an indirect inclusion within CheatsManager.cpp, which is now fixed.
2019-07-31DolphinQt/Config/ARCodeWidget: Call LoadDefaultGameIni() directlyLioncash
This is a static function, so we don't need to go through the instance of SConfig in order to call it.
2019-07-31DolphinQt/Config/ARCodeWidget: Avoid unnecessary disk operationsLioncash
If a user indicates that they want to clone and edit an AR code, then click cancel on the following dialog, we shouldn't actually clone the code. We also shouldn't resave the codes if the edit dialog is opened and then closed again via cancel, as there's nothing that actually changed. This way we don't perform disk accesses unless they're actually necessary.
2019-07-31DolphinQt/Config/ARCodeWidget: Deduplicate ini pathLioncash
We can just store this to a const local and use it to avoid doing the same work 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/ARCodeWidget: Add option for alphabetical sortingspycrab
2019-06-22Qt/ARCodeWidget: Support drag and drop reorderingspycrab
2018-07-07Move DolphinQt2 to DolphinQtspycrab