mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
More windows fixes
This commit is contained in:
parent
d84051bdd3
commit
d7a4322313
@ -30,7 +30,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
|
|||||||
for (const auto& Entry : Entries) {
|
for (const auto& Entry : Entries) {
|
||||||
// read in entire file
|
// read in entire file
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
std::FILE* File = _wfopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
|
std::FILE* File = _wfopen(reinterpret_cast<const wchar_t*>(Entry.c_str()), "r");
|
||||||
#else
|
#else
|
||||||
std::FILE* File = std::fopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
|
std::FILE* File = std::fopen(reinterpret_cast<const char*>(Entry.c_str()), "r");
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user