From 729a6624ee729b731954cc01010aa83e84d11f9e Mon Sep 17 00:00:00 2001 From: d1str4ught <> Date: Tue, 19 Aug 2025 19:03:32 +0200 Subject: [PATCH] config files moved under config folder --- src/UserInterface/PythonSystem.cpp | 8 ++++---- src/UserInterface/UserInterface.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/UserInterface/PythonSystem.cpp b/src/UserInterface/PythonSystem.cpp index 3a43389..3c3bd2c 100644 --- a/src/UserInterface/PythonSystem.cpp +++ b/src/UserInterface/PythonSystem.cpp @@ -387,7 +387,7 @@ bool CPythonSystem::LoadConfig() { FILE * fp = NULL; - if (NULL == (fp = fopen("metin2.cfg", "rt"))) + if (NULL == (fp = fopen("config/metin2.cfg", "rt"))) return false; char buf[256]; @@ -496,7 +496,7 @@ bool CPythonSystem::SaveConfig() { FILE *fp; - if (NULL == (fp = fopen("metin2.cfg", "wt"))) + if (NULL == (fp = fopen("config/metin2.cfg", "wt"))) return false; fprintf(fp, "WIDTH %d\n" @@ -551,7 +551,7 @@ bool CPythonSystem::SaveConfig() bool CPythonSystem::LoadInterfaceStatus() { FILE * File; - File = fopen("interface.cfg", "rb"); + File = fopen("config/interface.cfg", "rb"); if (!File) return false; @@ -570,7 +570,7 @@ void CPythonSystem::SaveInterfaceStatus() FILE * File; - File = fopen("interface.cfg", "wb"); + File = fopen("config/interface.cfg", "wb"); if (!File) { diff --git a/src/UserInterface/UserInterface.cpp b/src/UserInterface/UserInterface.cpp index c9dcbfb..fdb377e 100644 --- a/src/UserInterface/UserInterface.cpp +++ b/src/UserInterface/UserInterface.cpp @@ -501,7 +501,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi ApplicationStringTable_Initialize(hInstance); - LocaleService_LoadConfig("locale.cfg"); + LocaleService_LoadConfig("config/locale.cfg"); SetDefaultCodePage(LocaleService_GetCodePage()); #ifdef XTRAP_CLIENT_ENABLE