Core/Movie: Add ability to run code in Host context

EndPlayInput runs on the CPU thread so it can't directly call
UpdateWantDeterminism. PlayController also tries to ChangeDisc
from the CPU Thread which is also invalid. It now just pauses
execution and posts a request to the Host to fix it instead.

The Core itself also did dodgy things like PauseAndLock-ing
from the CPU Thread and SetState from EmuThread which have been
removed.
This commit is contained in:
EmptyChaos
2016-05-12 01:18:30 +00:00
parent e8dfc8e654
commit c1944f623b
12 changed files with 227 additions and 30 deletions

View File

@ -102,7 +102,7 @@ bool VolumeIsValid();
// Disc detection and swapping
void SetDiscInside(bool _DiscInside);
bool IsDiscInside();
void ChangeDisc(const std::string& fileName);
void ChangeDisc(const std::string& fileName); // [NOT THREADSAFE] Host only
// DVD Access Functions
bool ChangePartition(u64 offset);