forked from Dynamitos/Seele
Fixing command resource binding
This commit is contained in:
1 parent
5be15b4929
commit
e97beda2bc
13 files changed
+73
-57
No files matched your search
@@ -15,9 +15,9 @@ void GameInterface::reload() {
|
||||
destroyInstance(game);
|
||||
dlclose(lib);
|
||||
}
|
||||
std::filesystem::copy(soPath.parent_path().parent_path() / "res" / "shaders", "shaders/game", std::filesystem::copy_options::overwrite_existing);
|
||||
//std::filesystem::copy(soPath.parent_path().parent_path() / "res" / "shaders", "shaders/game", std::filesystem::copy_options::overwrite_existing);
|
||||
lib = dlopen(soPath.c_str(), RTLD_NOW);
|
||||
createInstance = (decltype(createInstance))dlsym(lib, "createInstance");
|
||||
destroyInstance = (decltype(destroyInstance))dlsym(lib, "destroyInstance");
|
||||
game = createInstance();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user