diff options
Diffstat (limited to 'src/game/localization.h')
| -rw-r--r-- | src/game/localization.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/localization.h b/src/game/localization.h index 277d637e..49edd860 100644 --- a/src/game/localization.h +++ b/src/game/localization.h @@ -11,7 +11,7 @@ class CLocalizationDatabase { public: unsigned m_Hash; - + // TODO: do this as an const char * and put everything on a incremental heap string m_Replacement; @@ -23,14 +23,14 @@ class CLocalizationDatabase sorted_array<CString> m_Strings; int m_VersionCounter; int m_CurrentVersion; - + public: CLocalizationDatabase(); bool Load(const char *pFilename, class IStorage *pStorage, class IConsole *pConsole); int Version() { return m_CurrentVersion; } - + void AddString(const char *pOrgStr, const char *pNewStr); const char *FindString(unsigned Hash); }; @@ -46,7 +46,7 @@ class CLocConstString public: CLocConstString(const char *pStr); void Reload(); - + inline operator const char *() { if(m_Version != g_Localization.Version()) |