mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add compatibility with other files
This commit is contained in:
parent
62125b14b4
commit
91ad9cc64c
9 changed files with 25 additions and 25 deletions
|
|
@ -38,7 +38,7 @@ LevelController* scripting::controller = nullptr;
|
|||
|
||||
static void load_script(const fs::path& name, bool throwable) {
|
||||
auto paths = scripting::engine->getPaths();
|
||||
fs::path file = paths->getResources() / fs::path("scripts") / name;
|
||||
fs::path file = paths->getResourcesFolder() / fs::path("scripts") / name;
|
||||
|
||||
std::string src = files::read_string(file);
|
||||
auto L = lua::get_main_thread();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue