From d8009291c472751f154ac46267849686a8704bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 27 Jun 2023 21:48:21 +0300 Subject: [PATCH] Rename Shared.cpp to Platform.Common.cpp --- src/openrct2/libopenrct2.vcxproj | 9 +++++---- .../platform/{Shared.cpp => Platform.Common.cpp} | 8 ++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) rename src/openrct2/platform/{Shared.cpp => Platform.Common.cpp} (96%) diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj index f502c74a9b..950019c42e 100644 --- a/src/openrct2/libopenrct2.vcxproj +++ b/src/openrct2/libopenrct2.vcxproj @@ -351,7 +351,7 @@ - + @@ -875,10 +875,10 @@ + - @@ -1054,9 +1054,10 @@ NotUsing - + + TurnOffAllWarnings - + \ No newline at end of file diff --git a/src/openrct2/platform/Shared.cpp b/src/openrct2/platform/Platform.Common.cpp similarity index 96% rename from src/openrct2/platform/Shared.cpp rename to src/openrct2/platform/Platform.Common.cpp index 661f9aebf3..e8744380f8 100644 --- a/src/openrct2/platform/Shared.cpp +++ b/src/openrct2/platform/Platform.Common.cpp @@ -24,7 +24,9 @@ #include #include +#include #include +#include #include #ifdef _WIN32 @@ -136,4 +138,10 @@ namespace Platform return 1; } #endif + + void Sleep(uint32_t ms) + { + std::this_thread::sleep_for(std::chrono::milliseconds(ms)); + } + } // namespace Platform