mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-18 19:40:54 +00:00
Lua: Fix more compile errors for windows
This commit is contained in:
+2
-2
@@ -38,10 +38,10 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
|
|||||||
auto NRead = std::fread(Contents->data(), 1, Contents->size(), File);
|
auto NRead = std::fread(Contents->data(), 1, Contents->size(), File);
|
||||||
if (NRead == Contents->size()) {
|
if (NRead == Contents->size()) {
|
||||||
beammp_debug("Successfully read \"" + Entry.string() + "\" (" + std::to_string(NRead) + " Bytes)");
|
beammp_debug("Successfully read \"" + Entry.string() + "\" (" + std::to_string(NRead) + " Bytes)");
|
||||||
mFileContents[fs::relative(Entry)] = Contents;
|
mFileContents[fs::relative(Entry).string()] = Contents;
|
||||||
// Execute first time
|
// Execute first time
|
||||||
auto Result = mEngine.EnqueueScript(mConfig.StateId, Contents);
|
auto Result = mEngine.EnqueueScript(mConfig.StateId, Contents);
|
||||||
ResultsToCheck.emplace_back(Entry, std::move(Result));
|
ResultsToCheck.emplace_back(Entry.string(), std::move(Result));
|
||||||
} else {
|
} else {
|
||||||
beammp_error("Error while reading script file \"" + Entry.string() + "\". Did the file change while reading?");
|
beammp_error("Error while reading script file \"" + Entry.string() + "\". Did the file change while reading?");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user