Repository navigation
Cheats: a code cheat can be a one-click action (once = true gives it the panel's Apply button) - #2023
Open
UserDerezzed wants to merge 1 commit into
Open
UserDerezzed wants to merge 1 commit into
UserDerezzed wants to merge 1 commit into
Conversation
…eta's once column, the panel's Apply), as action = "set" marks a data cheat; once on another entry, on a master or with a non-boolean value is refused
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
cheat_anchor.pygetsonce = trueforcodeentries, by @UserDerezzed. A code cheat marked with it is applied once: the meta file'soncecolumn is 1, so the Cheats panel shows an Apply button instead of a switch, and the host runs the cheat for one pass and then turns it off. This is whataction = "set"already does for a data cheat. Until now a code program could not ask for it.onceis refused on any entry other thancode, on a master, and with a value other thantrueorfalse. The host side is already in main (hle_cheats.c'sonce, the panel's Apply, theoncecolumn in the cheats folder), so this changes only the compiler, its test and one sentence indocs/development.md.Map select (#1963)
This is for Ocarina of Time's map select, #1963. Each of its 48 locations is a Warp now row: Apply writes the location's strings, the warp cave and its hook, then the flag that starts the warp. The game warps as from a loading zone, and the row turns itself off. As a switch, the row would stay on and warp again on every pass;
oncemakes it a single action. #1963 carries this commit so it compiles on its own; whichever of the two merges first, the other drops it.#2014, which folds the panel's sections, also came out of that list's length.
Checked
once = trueWarp now rows, compiled with this branch: the cheat file's words are identical to the file played, the meta file is identical except for the compile date in its header, and all 48 rows haveonce1.test_cheat_anchor.pyhas a new test,test_code_entry_applied_once: the meta row, and the refusals on a data entry, a master and a non-boolean value.python3 -m unittest dm/tools/tests/test_cheat_anchor.py dm/tools/tests/test_docs.py: pass.test_dmsh_abi.pyfails on main itself: 70b9a68 added a third"?"literal tonvn_mtl.m, where its ratchet allows two.