From 9ea57e0525f946f5025e2dfd2bccdd15ad3b4c7b Mon Sep 17 00:00:00 2001 From: maj00r Date: Thu, 10 Sep 2026 14:35:10 +0200 Subject: [PATCH] fix the Windows-only sources and the resource encoding LPT.cpp and PoKeys55.cpp never imported the modules holding WriteLog, ToLower and contains. Neither file is compiled on Linux, so nothing had caught it; Console.cpp, which is built the same way, already had its imports. eu07.rc.in was stored in CP1250 - the o-acute in "pojazdow" is a single 0xF3 byte. rc.exe guessed a codepage, llvm-rc refuses to. Re-encoded as UTF-8 with a BOM, which both recognise. --- Console/LPT.cpp | 1 + Console/PoKeys55.cpp | 1 + eu07.rc.in | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Console/LPT.cpp b/Console/LPT.cpp index e218f865..f41d7a77 100644 --- a/Console/LPT.cpp +++ b/Console/LPT.cpp @@ -3,6 +3,7 @@ module; #include module eu07.console.lpt; +import eu07.utilities.logs; // WriteLog /* This Source Code Form is subject to the terms of the Mozilla Public License, v. diff --git a/Console/PoKeys55.cpp b/Console/PoKeys55.cpp index bd4af51d..dbf8cfde 100644 --- a/Console/PoKeys55.cpp +++ b/Console/PoKeys55.cpp @@ -6,6 +6,7 @@ module; #include "utilities/utilities_macros.h" module eu07.console.pokeys55; +import eu07.utilities.utilities; // ToLower, contains /* This Source Code Form is subject to the terms of the Mozilla Public License, v. diff --git a/eu07.rc.in b/eu07.rc.in index 733a273d..617fca4d 100644 --- a/eu07.rc.in +++ b/eu07.rc.in @@ -1,4 +1,4 @@ -#include +#include IDI_ICON1 ICON "eu07.ico" GLFW_ICON ICON "eu07.ico" @@ -17,7 +17,7 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "CompanyName", "eu07.pl\0" - VALUE "FileDescription", "MaSzyna - Symulator pojazdów szynowych\0" + VALUE "FileDescription", "MaSzyna - Symulator pojazdów szynowych\0" VALUE "FileVersion", "@VERSION_STRING@\0" VALUE "ProductName", "MaSzyna\0" VALUE "ProductVersion", "@VERSION_STRING@\0"