[Projec64] Change language class to use standard types
This commit is contained in:
parent
b6c6e192ee
commit
1f6ac35166
|
@ -641,7 +641,7 @@ std::wstring CLanguage::GetLangString(const char * FileName, LanguageStringID ID
|
|||
LANG_STR CLanguage::GetNextLangString(void * OpenFile)
|
||||
{
|
||||
enum { MAX_STRING_LEN = 400 };
|
||||
int StringID;
|
||||
int32_t StringID;
|
||||
char szString[MAX_STRING_LEN]; //temp store the string from the file
|
||||
|
||||
FILE * file = (FILE *)OpenFile;
|
||||
|
@ -686,7 +686,7 @@ LANG_STR CLanguage::GetNextLangString(void * OpenFile)
|
|||
StringID = EMPTY_STRING; return LANG_STR(0, L"");
|
||||
}
|
||||
|
||||
int pos = 0;
|
||||
int32_t pos = 0;
|
||||
fread(&token, 1, 1, file);
|
||||
while (token != '"' && !feof(file))
|
||||
{
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
#include <string> //stl string
|
||||
#include <map> //stl map
|
||||
#include <list> //stl list
|
||||
#include <common/stdtypes.h>
|
||||
|
||||
typedef std::map<int, std::wstring, std::less<int> > LANG_STRINGS;
|
||||
typedef std::map<int32_t, std::wstring, std::less<int32_t> > LANG_STRINGS;
|
||||
typedef LANG_STRINGS::value_type LANG_STR;
|
||||
|
||||
struct LanguageFile
|
||||
|
|
Loading…
Reference in New Issue