diff --git a/Minecraft.Client/ModLoader.cpp b/Minecraft.Client/ModLoader.cpp index a44aa99e..78a7755c 100644 --- a/Minecraft.Client/ModLoader.cpp +++ b/Minecraft.Client/ModLoader.cpp @@ -364,11 +364,7 @@ void ModLoader::OpenLogFile() { m_logFile = CreateFileW(logPath.c_str(), GENERIC_WRITE, FILE_SHARE_READ, nullptr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr); - if (m_logFile != INVALID_HANDLE_VALUE) { - BYTE bom[3] = { 0xEF, 0xBB, 0xBF }; - DWORD written; - WriteFile(m_logFile, bom, 3, &written, nullptr); - } + } void ModLoader::Log(const std::string& msg) { diff --git a/Minecraft.Client/x64/Debug/Minecraft.Client.log b/Minecraft.Client/x64/Debug/Minecraft.Client.log index 4216d97a..b88fc0f0 100644 --- a/Minecraft.Client/x64/Debug/Minecraft.Client.log +++ b/Minecraft.Client/x64/Debug/Minecraft.Client.log @@ -3,7 +3,7 @@ C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.3520 (compiling source file '/ModLoader.cpp') C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xutility(4813,18): the template instantiation context (the oldest one first) is - S:\GitHub\Faucet\Minecraft.Client\ModLoader.cpp(285,30): + S:\GitHub\Faucet\Minecraft.Client\ModLoader.cpp(268,27): see reference to function template instantiation 'std::basic_string,std::allocator>::basic_string>>,0>(_Iter,_Iter,const _Alloc &)' being compiled with [ @@ -11,7 +11,7 @@ C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.3520 _Iter=std::_String_const_iterator>>, _Alloc=std::allocator ] - S:\GitHub\Faucet\Minecraft.Client\ModLoader.cpp(285,17): + S:\GitHub\Faucet\Minecraft.Client\ModLoader.cpp(268,27): see the first reference to 'std::basic_string,std::allocator>::basic_string' in 'ModLoader::LoadOneMod' C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\xstring(812,17): see reference to function template instantiation 'void std::basic_string,std::allocator>::_Construct_from_iter(_Iter,const _Sent,_Size)' being compiled diff --git a/Minecraft.Client/x64/Debug/ModLoader.obj b/Minecraft.Client/x64/Debug/ModLoader.obj index f8872977..f6531719 100644 Binary files a/Minecraft.Client/x64/Debug/ModLoader.obj and b/Minecraft.Client/x64/Debug/ModLoader.obj differ diff --git a/x64/Debug/Faucet.exe b/x64/Debug/Faucet.exe index 412877d5..55606c9f 100644 Binary files a/x64/Debug/Faucet.exe and b/x64/Debug/Faucet.exe differ diff --git a/x64/Debug/mods/modloader.log b/x64/Debug/mods/modloader.log index 88a53887..29dc8bae 100644 Binary files a/x64/Debug/mods/modloader.log and b/x64/Debug/mods/modloader.log differ