mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add 'script' entry point
This commit is contained in:
parent
1aca4957a4
commit
dc93cac1b9
3 changed files with 14 additions and 1 deletions
|
|
@ -83,6 +83,9 @@ Engine::Engine(CoreParameters coreParameters)
|
|||
paths.setResourcesFolder(params.resFolder);
|
||||
paths.setUserFilesFolder(params.userFolder);
|
||||
paths.prepare();
|
||||
if (!params.scriptFile.empty()) {
|
||||
paths.setScriptFolder(params.scriptFile.parent_path());
|
||||
}
|
||||
loadSettings();
|
||||
|
||||
auto resdir = paths.getResourcesFolder();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue