From eaf659d3c11ee1f2b21fc281206f2d3633fc7fc9 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 14 Jul 2022 10:00:34 +0300 Subject: [PATCH 1/2] fix saving text file of /listcube command when game language is not English --- PlugY/NewInterface_CubeListing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlugY/NewInterface_CubeListing.cpp b/PlugY/NewInterface_CubeListing.cpp index 1c54331..d4ba354 100644 --- a/PlugY/NewInterface_CubeListing.cpp +++ b/PlugY/NewInterface_CubeListing.cpp @@ -283,7 +283,7 @@ void listAllCubeFormula() D2FogGetSavePath(filename, MAX_PATH); strcat(filename, CUBEFORMULA_FILE); - FILE* file = fopen(filename, "w"); + FILE* file = fopen(filename, "wt, ccs=UTF-8"); if (!file) { log_msg("Failed to open save file.\n"); From afe4de9c34a3d79607652952e15530f98a783b28 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Thu, 14 Jul 2022 10:03:39 +0300 Subject: [PATCH 2/2] update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 8a10172..1699d0b 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ **/*.VC.VC.opendb **/UpgradeLog* /PlugYRun/PlugYRun.aps +**/Debug/ +/PlugY/Backup/