Final Burn Neo > FBN Development

Fix for Chinese directories

<< < (2/2)

netbug:
There is a generating RomCenter dat's error  resulting from the use function
setlocale(LC_ALL, ("Chinese_China")) in main.cpp.
My ameliorative solving method as follows(it may also adapt to other OS,
such as Taiwan,Hongkong,japan,brazil,spain and so forth):

dat.cpp
add
#include  // for use setlocale

find
if ((fDat = _tfopen(szFilename, _T("w")))==0)
      return -1;
add after:
setlocale( LC_ALL, "English" );

find
nRet =  write_datfile(nDatType, fDat);
fclose(fDat);

add atfer:(finally fixed)
//char szNativeLanguageName[40];
//GetLocaleInfo(LOCALE_SYSTEM_DEFAULT,LOCALE_SENGLANGUAGE,szNativeLanguageName,sizeof(szNativeLanguageName));
//setlocale(LC_ALL,szNativeLanguageName);
setlocale(LC_ALL,"");


p.s:You may fix corresponding code in main.cpp. :D

Navigation

[0] Message Index

[*] Previous page

Go to full version