Strict mode checking - no way to forget detaching now.

And if we forget to attach, boom. Hopefully I caught all of them.
This commit is contained in:
Henrik Rydgård 2023-01-03 23:29:22 +01:00
parent 916404f0e4
commit b56eef487c
17 changed files with 84 additions and 19 deletions

View file

@ -164,6 +164,9 @@ namespace SaveState
compressThread_.join();
compressThread_ = std::thread([=]{
SetCurrentThreadName("SaveStateCompress");
AndroidJNIThreadContext jniContext;
Compress(*result, *state, *base);
});
}