nwhitehead / pzretro

libretro core to play PuzzleScript games
Other
11 stars 2 forks source link

No save state support. #6

Open minotalen opened 1 year ago

minotalen commented 1 year ago

Running this on an ARM miyoo mini+ w/ Onion OS. When I try to save a state, I am getting a debug message "Core does not support save states."

MikMarois commented 11 months ago

Hi there, just wanted to check if you managed to resolve this issue... I'm in the same boat as you trying to run this on a miyoo mini+ with Onion OS and I can't seem to get it to work. Did you build the binaries yourself? Any help you can provide would be super appreciated. Thanks!

RobLoach commented 9 months ago

Could it be the threads that are messing this up?

    while(js_thread_active) {
        if (waiting_serialize) {
            if (truncate_backups) {
                js_context->eval(std::string("_serialize_truncate_backups = true;"), "serialize");
            } else {
                js_context->eval(std::string("_serialize_truncate_backups = false;"), "serialize");
            }
            js_context->eval(std::string("_serialized = serialize();"), "serialize");
            serialized = js_context->get("_serialized");
            waiting_serialize = false;
        }
        if (waiting_deserialize) {
            js_context->set("_serialized", serialized);
            js_context->eval(std::string("deserialize(_serialized);"), "deserialize");
            waiting_deserialize = false;
        }
        js_context->eval(std::string("main();"), "main");
    }