1
0
forked from metin2/client

Added configuration utility, consolidated language config

This commit is contained in:
2024-12-14 20:38:00 +02:00
parent c4236ba185
commit a7eac9dedf
33 changed files with 1332 additions and 30 deletions

View File

@ -18,11 +18,10 @@ const char* LSS_GLOBAL = "GLOBAL";
static bool IS_CHEONMA = false;
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;
char MULTI_LOCALE_SERVICE[256] = "EUROPE";
char MULTI_LOCALE_PATH[256] = "locale/en";
char MULTI_LOCALE_NAME[256] = "en";
int MULTI_LOCALE_CODE = 1252;
void LocaleService_LoadConfig(const char* fileName)
{
@ -34,13 +33,11 @@ void LocaleService_LoadConfig(const char* fileName)
char line[256];
char name[256];
int code;
int id;
if (fgets(line, sizeof(line)-1, fp))
{
line[sizeof(line)-1] = '\0';
sscanf(line, "%d %d %s", &id, &code, name);
sscanf(line, "%d %s", &code, name);
MULTI_LOCALE_REPORT_PORT = id;
MULTI_LOCALE_CODE = code;
strcpy(MULTI_LOCALE_NAME, name);
sprintf(MULTI_LOCALE_PATH, "locale/%s", MULTI_LOCALE_NAME);

View File

@ -126,8 +126,8 @@ IDI_METIN2 ICON "metin2.ico"
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,3,0,0
PRODUCTVERSION 0,3,0,0
FILEVERSION 0,3,1,0
PRODUCTVERSION 0,3,1,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -144,12 +144,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "The Old Metin2 Project"
VALUE "FileDescription", "The Metin2 Client"
VALUE "FileVersion", "0.3.0.0"
VALUE "FileVersion", "0.3.1.0"
VALUE "InternalName", "Metin2Client"
VALUE "LegalCopyright", "Copyright (C) 2024"
VALUE "OriginalFilename", "Metin2.exe"
VALUE "ProductName", "Metin2Client"
VALUE "ProductVersion", "0.3.0.0"
VALUE "ProductVersion", "0.3.1.0"
END
END
BLOCK "VarFileInfo"