1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Pull asset version from the game

This commit is contained in:
Ethan O'Brien
2025-01-10 12:07:16 -06:00
parent 7d25483e5d
commit f5eb4d0a37
2 changed files with 18 additions and 6 deletions

View File

@@ -55,6 +55,16 @@ const char gVersionInfoFull[] = OPENRCT2_NAME ", "
#endif
;
#ifdef __EMSCRIPTEN__
// This must be wrapped in extern "C", according to the emscripten docs, "to prevent C++ name mangling"
extern "C" {
const char* GetVersion()
{
return gVersionInfoFull;
}
}
#endif
NewVersionInfo GetLatestVersion()
{
// If the check doesn't succeed, provide current version so we don't bother user