Browse Source
The argument is now always treated as a plain string and passed directly to the cheat. This is the behavior expected by all the functions in xCheat.py, which parse the string argument manually where needed. The previous implementation evaluated the argument value as a Python expression. This theoretically allowed passing non-string arguments, but none of the cheats use this (and it's also a potential code execution issue). If no argument was passed, the function was called with no arguments, which is also not supported by any of the cheats. In practice, this required unintuitive syntax for calling the cheats correctly, for example: Python.Cheat GetPlayerID None Python.Cheat GetSDL "'FirstWeekClothing'" With the new argument handling, these have been simplified to: Python.Cheat GetPlayerID Python.Cheat GetSDL FirstWeekClothingtickets/54/54/1
dgelessus
1 year ago
3 changed files with 22 additions and 35 deletions
Loading…
Reference in new issue