Skip to content

Commit

Permalink
fix: ScriptX inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 21, 2024
1 parent 9305239 commit 6254d46
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/engine/EngineManager.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "main/PluginManager.h"
#include "scriptx/include/ScriptX/ScriptX.h"
#include "ScriptX/ScriptX.h"
#include <map>
#include <string>
#include <vector>
Expand All @@ -20,4 +20,4 @@ class EngineManager {
bool onlyLocalEngine = false);

static std::string getEngineType(script::ScriptEngine *engine);
};
};
4 changes: 2 additions & 2 deletions src/engine/MessageSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "api/APIHelp.h"
#include "engine/OperationCount.h"
#include <map>
#include <scriptx/include/scriptx/ScriptX.h>
#include <ScriptX/ScriptX.h>
#include <string>
#include <vector>
#include <windows.h>
Expand Down Expand Up @@ -89,4 +89,4 @@ class ModuleMessage {
///////////////////////////// Funcs /////////////////////////////
void InitMessageSystem();
void MessageSystemLoopOnce();
bool EndMessageSystemLoop();
bool EndMessageSystemLoop();
4 changes: 2 additions & 2 deletions src/main/NodeJsHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "main/Configs.h"
#include <map>
#include <node.h>
#include <scriptx/include/scriptx/ScriptX.h>
#include <ScriptX/ScriptX.h>
#include <string>

namespace NodeJsHelper {
Expand Down Expand Up @@ -32,4 +32,4 @@ int executeNpmCommand(std::string cmd,

} // namespace NodeJsHelper

#endif
#endif
4 changes: 2 additions & 2 deletions src/main/PythonHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "Configs.h"
#include <filesystem>
#include <map>
#include <scriptx/include/scriptx/ScriptX.h>
#include <ScriptX/ScriptX.h>
#include <string>

namespace PythonHelper {
Expand Down Expand Up @@ -41,4 +41,4 @@ bool unpatchPython310CreateStdio();

} // namespace PythonHelper

#endif
#endif
4 changes: 2 additions & 2 deletions src/main/SafeGuardRecord.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "main/Configs.h"
#include <filesystem>
#include <fstream>
#include <scriptx/include/scriptx/ScriptX.h>
#include <ScriptX/ScriptX.h>

std::ofstream record;

Expand All @@ -17,4 +17,4 @@ void RecordOperation(const std::string &pluginName,
if (record.is_open())
record << "[" << operation << "]<" << pluginName << "> " << content
<< std::endl;
}
}
2 changes: 1 addition & 1 deletion src/utils/UsingScriptX.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <scriptx/include/ScriptX/ScriptX.h>
#include <ScriptX/ScriptX.h>

using script::Arguments;
using script::Array;
Expand Down

0 comments on commit 6254d46

Please sign in to comment.