mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Loading screen
This commit is contained in:
@@ -9,7 +9,8 @@ namespace PortabilityLayer
|
||||
HostSuspendCallID_Unknown,
|
||||
|
||||
HostSuspendCallID_Delay,
|
||||
HostSuspendCallID_CallOnVOSThread,
|
||||
HostSuspendCallID_CallOnVOSThread,
|
||||
HostSuspendCallID_ForceSyncFrame
|
||||
};
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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 (?)
|
||||
|
@@ -184,4 +184,9 @@ namespace PLSysCalls
|
||||
AnimationManager::GetInstance()->TickPlayers(ticks);
|
||||
}
|
||||
}
|
||||
|
||||
void ForceSyncFrame()
|
||||
{
|
||||
PortabilityLayer::SuspendApplication(PortabilityLayer::HostSuspendCallID_ForceSyncFrame, nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
|
@@ -7,4 +7,5 @@
|
||||
namespace PLSysCalls
|
||||
{
|
||||
void Sleep(uint32_t ticks);
|
||||
void ForceSyncFrame();
|
||||
}
|
||||
|
Reference in New Issue
Block a user