fix: forgot to change an hardcoded path

This commit is contained in:
Laureηt 2022-03-05 00:47:05 +01:00
parent 14aa100ab2
commit 7a0db79477
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

View file

@ -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")