mirror of
https://github.com/ytsodacan/Faucet.git
synced 2026-04-23 07:28:07 +00:00
wtf happened to the log 😭
This commit is contained in:
parent
40aea3e780
commit
e4684d18db
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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<char,std::char_traits<char>,std::allocator<char>>::basic_string<std::_String_const_iterator<std::_String_val<std::_Simple_types<_Elem>>>,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<std::_String_val<std::_Simple_types<wchar_t>>>,
|
||||
_Alloc=std::allocator<char>
|
||||
]
|
||||
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<char,std::char_traits<char>,std::allocator<char>>::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<char,std::char_traits<char>,std::allocator<char>>::_Construct_from_iter<const wchar_t*,const wchar_t*,_Size_type>(_Iter,const _Sent,_Size)' being compiled
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue