forked from Dynamitos/Seele
Replacing std::format with fmt::format
This commit is contained in:
1 parent
c0da7d77a1
commit
861c146b46
55 files changed
+304
-186
No files matched your search
@@ -18,7 +18,7 @@ Game* GameInterface::getGame()
|
||||
return game;
|
||||
}
|
||||
|
||||
void GameInterface::reload(AssetRegistry* registry)
|
||||
void GameInterface::reload()
|
||||
{
|
||||
if(lib != NULL)
|
||||
{
|
||||
@@ -28,5 +28,5 @@ void GameInterface::reload(AssetRegistry* registry)
|
||||
lib = dlopen(soPath.c_str(), RTLD_NOW);
|
||||
createInstance = (decltype(createInstance))dlsym(lib, "createInstance");
|
||||
destroyInstance = (decltype(destroyInstance))dlsym(lib, "destroyInstance");
|
||||
game = createInstance(registry);
|
||||
game = createInstance();
|
||||
}
|
||||
@@ -10,12 +10,12 @@ public:
|
||||
GameInterface(std::string soPath);
|
||||
~GameInterface();
|
||||
Game* getGame();
|
||||
void reload(AssetRegistry* registry);
|
||||
void reload();
|
||||
private:
|
||||
void* lib;
|
||||
std::string soPath;
|
||||
Game* game;
|
||||
Game* (*createInstance)(AssetRegistry*) = nullptr;
|
||||
Game* (*createInstance)() = nullptr;
|
||||
void (*destroyInstance)(Game*) = nullptr;
|
||||
};
|
||||
} // namespace Seele
|
||||
Reference in new issue
Block a user