Rename Shared.cpp to Platform.Common.cpp

This commit is contained in:
ζeh Matt 2023-06-27 21:48:21 +03:00
parent cf7c486c5f
commit d8009291c4
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
2 changed files with 13 additions and 4 deletions

View File

@ -351,7 +351,7 @@
<ClInclude Include="object\WaterEntry.h" />
<ClInclude Include="object\WaterObject.h" />
<ClInclude Include="OpenRCT2.h" />
<ClInclude Include="openrct2_pch.h" Condition="'$(UsePCH)'=='true'"/>
<ClInclude Include="openrct2_pch.h" Condition="'$(UsePCH)'=='true'" />
<ClInclude Include="paint\Boundbox.h" />
<ClInclude Include="paint\Paint.Entity.h" />
<ClInclude Include="paint\Paint.h" />
@ -875,10 +875,10 @@
<ClCompile Include="PlatformEnvironment.cpp" />
<ClCompile Include="platform\Crash.cpp" />
<ClCompile Include="platform\Platform.Android.cpp" />
<ClCompile Include="platform\Platform.Common.cpp" />
<ClCompile Include="platform\Platform.Linux.cpp" />
<ClCompile Include="platform\Platform.Posix.cpp" />
<ClCompile Include="platform\Platform.Win32.cpp" />
<ClCompile Include="platform\Shared.cpp" />
<ClCompile Include="profiling\Profiling.cpp" />
<ClCompile Include="rct12\RCT12.cpp" />
<ClCompile Include="rct12\SawyerChunk.cpp" />
@ -1054,9 +1054,10 @@
<ClCompile Include="world\Wall.cpp" />
<ClCompile Include="..\thirdparty\duktape\duktape.cpp">
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<ForcedIncludeFiles></ForcedIncludeFiles>
<ForcedIncludeFiles>
</ForcedIncludeFiles>
<WarningLevel>TurnOffAllWarnings</WarningLevel>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
</Project>

View File

@ -24,7 +24,9 @@
#include <algorithm>
#include <array>
#include <chrono>
#include <cstring>
#include <thread>
#include <time.h>
#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