From f059a84c8c29f23f1931842f91cb2f137ae34209 Mon Sep 17 00:00:00 2001 From: Cekis Date: Wed, 3 Nov 2021 14:39:09 -0400 Subject: [PATCH] Fixed issues loading string tables. --- .../ours/library/localization/src/shared/LocalizedString.h | 4 ++-- .../library/localization/src/shared/LocalizedStringTable.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/external/ours/library/localization/src/shared/LocalizedString.h b/external/ours/library/localization/src/shared/LocalizedString.h index bd3b8cb3..c897cd10 100755 --- a/external/ours/library/localization/src/shared/LocalizedString.h +++ b/external/ours/library/localization/src/shared/LocalizedString.h @@ -38,8 +38,8 @@ public: // TODO: make these typedefs platform dependent - typedef unsigned long id_type; - typedef unsigned long crc_type; + typedef uint32_t id_type; + typedef uint32_t crc_type; LocalizedString(id_type id, crc_type sourceCrc, Unicode::String const & str); LocalizedString(id_type id, Unicode::String const & str); // GENERATE Crc FROM UNICODE. diff --git a/external/ours/library/localization/src/shared/LocalizedStringTable.h b/external/ours/library/localization/src/shared/LocalizedStringTable.h index cea6635e..dfcc3d2b 100755 --- a/external/ours/library/localization/src/shared/LocalizedStringTable.h +++ b/external/ours/library/localization/src/shared/LocalizedStringTable.h @@ -46,7 +46,7 @@ public: typedef std::map NameMap_t; // TODO: make this typedef platform dependent - typedef long magic_type; + typedef uint32_t magic_type; static const magic_type ms_MAGIC; explicit LocalizedStringTable (const std::string & filename);