From 7a0db794771a8ea59021ee1442aa129caaccb3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sat, 5 Mar 2022 00:47:05 +0100 Subject: [PATCH] fix: forgot to change an hardcoded path --- src/emulator/redis_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emulator/redis_manager.py b/src/emulator/redis_manager.py index 5fea66e..db68bf2 100644 --- a/src/emulator/redis_manager.py +++ b/src/emulator/redis_manager.py @@ -20,7 +20,7 @@ async def save(core: mgba.core.Core) -> None: async def load(core: mgba.core.Core, filename: str) -> None: state = ffi.new("unsigned char[]", core._core.stateSize(core._core)) - with open(f"states/{filename}.state", "rb") as state_file: + with open(f"{EMULATOR_STATES_PATH}/{filename}.state", "rb") as state_file: state_file.readinto(ffi.buffer(state)) core.load_raw_state(state) logging.debug(f"state loaded : {filename}.state")