Jump to content

[C++] How to put locale.cfg in binary


Recommended Posts

Hi guys,

I edited client source, and I see this line..

UserInterface.cpp

LocaleService_LoadConfig("locale.cfg");

My idea is hide locale.cfg from client in binary..

Someone know how to? Etc, give me code for example? I dont want load file from client.

Thanks for requests..

SOLVED!

If anyone need too this change, here is solution:
 

Locale.cpp

char	MULTI_LOCALE_SERVICE[256]		= "YMIR";
char	MULTI_LOCALE_PATH[256]			= "locale/ymir";
char	MULTI_LOCALE_NAME[256]			= "ymir";
int		MULTI_LOCALE_CODE		= 949;
int		MULTI_LOCALE_REPORT_PORT	= 10000;

Edit code for example:
 

char	MULTI_LOCALE_SERVICE[256]		= "CZ";
char	MULTI_LOCALE_PATH[256]			= "locale/cz";
char	MULTI_LOCALE_NAME[256]			= "cz";
int		MULTI_LOCALE_CODE		= 1250;
int		MULTI_LOCALE_REPORT_PORT	= 10019;

Now delete file "locale.cfg" in client.

  • Love 3
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.