Loading screen

This commit is contained in:
elasota
2020-10-16 20:06:47 -04:00
parent ad5a0795f4
commit bfb2c727ea
10 changed files with 165 additions and 27 deletions

View File

@@ -9,7 +9,8 @@ namespace PortabilityLayer
HostSuspendCallID_Unknown,
HostSuspendCallID_Delay,
HostSuspendCallID_CallOnVOSThread,
HostSuspendCallID_CallOnVOSThread,
HostSuspendCallID_ForceSyncFrame
};
}

View File

@@ -108,6 +108,11 @@ void Delay(int ticks, UInt32 *endTickCount)
*endTickCount = PortabilityLayer::DisplayDeviceManager::GetInstance()->GetTickCount();
}
void ForceSyncFrame()
{
PLSysCalls::ForceSyncFrame();
}
short FindWindow(Point point, WindowPtr *window)
{
short part = 0;

View File

@@ -216,6 +216,7 @@ void InitCursor();
void HideCursor();
void Delay(int ticks, UInt32 *endTickCount);
void ForceSyncFrame();
short FindWindow(Point point, WindowPtr *window); // Translates global coordinates to window coordinates, returns a region ID
bool TrackGoAway(WindowPtr window, Point point); // Returns true if the close box was actually clicked (?)

View File

@@ -184,4 +184,9 @@ namespace PLSysCalls
AnimationManager::GetInstance()->TickPlayers(ticks);
}
}
void ForceSyncFrame()
{
PortabilityLayer::SuspendApplication(PortabilityLayer::HostSuspendCallID_ForceSyncFrame, nullptr, nullptr);
}
}

View File

@@ -7,4 +7,5 @@
namespace PLSysCalls
{
void Sleep(uint32_t ticks);
void ForceSyncFrame();
}