mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-13 05:18:44 +00:00
Update GetTickCount to GetTickCount64
This commit is contained in:
@@ -228,8 +228,8 @@ static int LoadSaveDataCallbackProc(LPVOID lpParam, const bool bIsCorrupt, const
|
||||
*/
|
||||
static bool WaitForSaveInfoResult(SaveInfoQueryContext *context, DWORD timeoutMs, WorldManagerTickProc tickProc)
|
||||
{
|
||||
DWORD start = GetTickCount();
|
||||
while ((GetTickCount() - start) < timeoutMs)
|
||||
DWORD64 start = GetTickCount64();
|
||||
while ((GetTickCount64() - start) < timeoutMs)
|
||||
{
|
||||
if (context->done)
|
||||
{
|
||||
@@ -270,8 +270,8 @@ static bool WaitForSaveInfoResult(SaveInfoQueryContext *context, DWORD timeoutMs
|
||||
*/
|
||||
static bool WaitForSaveLoadResult(SaveDataLoadContext *context, DWORD timeoutMs, WorldManagerTickProc tickProc)
|
||||
{
|
||||
DWORD start = GetTickCount();
|
||||
while ((GetTickCount() - start) < timeoutMs)
|
||||
DWORD64 start = GetTickCount64();
|
||||
while ((GetTickCount64() - start) < timeoutMs)
|
||||
{
|
||||
if (context->done)
|
||||
{
|
||||
@@ -611,11 +611,11 @@ WorldBootstrapResult BootstrapWorldForServer(
|
||||
*/
|
||||
bool WaitForWorldActionIdle(
|
||||
int actionPad,
|
||||
DWORD timeoutMs,
|
||||
DWORD64 timeoutMs,
|
||||
WorldManagerTickProc tickProc,
|
||||
WorldManagerHandleActionsProc handleActionsProc)
|
||||
{
|
||||
DWORD start = GetTickCount();
|
||||
DWORD64 start = GetTickCount64();
|
||||
while (app.GetXuiServerAction(actionPad) != eXuiServerAction_Idle && !MinecraftServer::serverHalted())
|
||||
{
|
||||
// Keep network and storage progressing while waiting
|
||||
@@ -628,7 +628,7 @@ bool WaitForWorldActionIdle(
|
||||
{
|
||||
handleActionsProc();
|
||||
}
|
||||
if ((GetTickCount() - start) >= timeoutMs)
|
||||
if ((GetTickCount64() - start) >= timeoutMs)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user