Undertale: Change Save Data Folder Location (#1966)

Co-authored-by: Witchybun <elnendil@gmail.com>
This commit is contained in:
Witchybun
2023-07-19 16:39:57 -05:00
committed by GitHub
parent 62657df3fb
commit 8fd805235d
2 changed files with 26 additions and 0 deletions

View File

@@ -32,6 +32,12 @@ class UndertaleCommandProcessor(ClientCommandProcessor):
self.ctx.patch_game()
self.output("Patched.")
def _cmd_savepath(self, directory: str):
"""Redirect to proper save data folder. (Use before connecting!)"""
if isinstance(self.ctx, UndertaleContext):
UndertaleContext.save_game_folder = directory
self.output("Changed to the following directory: " + directory)
@mark_raw
def _cmd_auto_patch(self, steaminstall: typing.Optional[str] = None):
"""Patch the game automatically."""