mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
fix headless mode fatal error in some systems
This commit is contained in:
parent
618b3d7f61
commit
bcfcd9ca76
5 changed files with 11 additions and 11 deletions
|
|
@ -12,7 +12,7 @@
|
|||
#include "logic/scripting/scripting.hpp"
|
||||
#include "core_defs.hpp"
|
||||
|
||||
static void load_configs(Input& input, const io::path& root) {
|
||||
static void load_configs(Input* input, const io::path& root) {
|
||||
auto configFolder = root / "config";
|
||||
}
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ static std::vector<io::path> default_content_sources {
|
|||
ContentControl::ContentControl(
|
||||
const Project& project,
|
||||
EnginePaths& paths,
|
||||
Input& input,
|
||||
Input* input,
|
||||
std::function<void()> postContent
|
||||
)
|
||||
: paths(paths),
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public:
|
|||
ContentControl(
|
||||
const Project& project,
|
||||
EnginePaths& paths,
|
||||
Input& input,
|
||||
Input* input,
|
||||
std::function<void()> postContent
|
||||
);
|
||||
~ContentControl();
|
||||
|
|
@ -49,7 +49,7 @@ public:
|
|||
const std::vector<io::path>& getContentSources() const;
|
||||
private:
|
||||
EnginePaths& paths;
|
||||
Input& input;
|
||||
Input* input;
|
||||
std::unique_ptr<Content> content;
|
||||
std::function<void()> postContent;
|
||||
std::vector<std::string> basePacks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue