fix: forgot to change an hardcoded path
This commit is contained in:
parent
14aa100ab2
commit
7a0db79477
|
@ -20,7 +20,7 @@ async def save(core: mgba.core.Core) -> None:
|
||||||
|
|
||||||
async def load(core: mgba.core.Core, filename: str) -> None:
|
async def load(core: mgba.core.Core, filename: str) -> None:
|
||||||
state = ffi.new("unsigned char[]", core._core.stateSize(core._core))
|
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))
|
state_file.readinto(ffi.buffer(state))
|
||||||
core.load_raw_state(state)
|
core.load_raw_state(state)
|
||||||
logging.debug(f"state loaded : {filename}.state")
|
logging.debug(f"state loaded : {filename}.state")
|
||||||
|
|
Loading…
Reference in a new issue