mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-13 01:33:43 +00:00
Compare commits
1 Commits
6d6c5417e2
...
ad3f3fe55e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad3f3fe55e |
@ -5,7 +5,6 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdexcept>
|
|
||||||
|
|
||||||
#include "Game.h"
|
#include "Game.h"
|
||||||
|
|
||||||
@ -37,10 +36,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Game* create(GameInternal* gameInternal) {
|
Game* create(GameInternal* gameInternal) {
|
||||||
if (this->creatorFunc == nullptr) {
|
if (this->creatorFunc == nullptr)
|
||||||
throw std::runtime_error("No game implementation registered!");
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
|
||||||
Game* game = (this->creatorFunc)();
|
Game* game = (this->creatorFunc)();
|
||||||
game->gameInternal = gameInternal;
|
game->gameInternal = gameInternal;
|
||||||
return game;
|
return game;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user