mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 04:26:39 +00:00
refactor: replace POSIX/Win32 APIs with standard C++ equivalents
Replaces platform-specific APIs across 21 files with std::chrono, std::fstream, std::filesystem, and std::this_thread. Adds PlatformTime.h utility header wrapping std::chrono::steady_clock for GetTickCount/QueryPerformanceCounter patterns.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "Minecraft.World/Header Files/stdafx.h"
|
||||
#include "Minecraft.World/ConsoleHelpers/PlatformTime.h"
|
||||
#include <memory>
|
||||
#include "../../../net/minecraft/client/Minecraft.h"
|
||||
#include "../../../net/minecraft/client/multiplayer/MultiPlayerLocalPlayer.h"
|
||||
@@ -59,7 +60,7 @@ void TutorialMode::tick() {
|
||||
|
||||
/*
|
||||
if( tutorial.m_allTutorialsComplete && (tutorial.lastMessageTime +
|
||||
m_iTutorialDisplayMessageTime) < GetTickCount() )
|
||||
m_iTutorialDisplayMessageTime) < PlatformTime::GetTickCount() )
|
||||
{
|
||||
// Exit tutorial
|
||||
minecraft->gameMode = new SurvivalMode( this );
|
||||
|
||||
Reference in New Issue
Block a user