forked from Dynamitos/Seele
Formatted EVERYTHING
This commit is contained in:
1 parent
f18bf8acbe
commit
d95dab850c
265 files changed
+8002
-12310
No files matched your search
@@ -2,26 +2,14 @@
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
GameInterface::GameInterface(std::string soPath)
|
||||
: lib(NULL)
|
||||
, soPath(soPath)
|
||||
{
|
||||
}
|
||||
GameInterface::GameInterface(std::string soPath) : lib(NULL), soPath(soPath) {}
|
||||
|
||||
GameInterface::~GameInterface()
|
||||
{
|
||||
|
||||
}
|
||||
GameInterface::~GameInterface() {}
|
||||
|
||||
Game* GameInterface::getGame()
|
||||
{
|
||||
return game;
|
||||
}
|
||||
Game* GameInterface::getGame() { return game; }
|
||||
|
||||
void GameInterface::reload()
|
||||
{
|
||||
if(lib != NULL)
|
||||
{
|
||||
void GameInterface::reload() {
|
||||
if (lib != NULL) {
|
||||
destroyInstance(game);
|
||||
dlclose(lib);
|
||||
}
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
#include "Game.h"
|
||||
#include "dlfcn.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class GameInterface
|
||||
{
|
||||
public:
|
||||
namespace Seele {
|
||||
class GameInterface {
|
||||
public:
|
||||
GameInterface(std::string soPath);
|
||||
~GameInterface();
|
||||
Game* getGame();
|
||||
void reload();
|
||||
private:
|
||||
|
||||
private:
|
||||
void* lib;
|
||||
std::string soPath;
|
||||
Game* game;
|
||||
|
||||
@@ -2,26 +2,14 @@
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
GameInterface::GameInterface(std::string soPath)
|
||||
: lib(NULL)
|
||||
, soPath(soPath)
|
||||
{
|
||||
}
|
||||
GameInterface::GameInterface(std::string soPath) : lib(NULL), soPath(soPath) {}
|
||||
|
||||
GameInterface::~GameInterface()
|
||||
{
|
||||
|
||||
}
|
||||
GameInterface::~GameInterface() {}
|
||||
|
||||
Game* GameInterface::getGame()
|
||||
{
|
||||
return game;
|
||||
}
|
||||
Game* GameInterface::getGame() { return game; }
|
||||
|
||||
void GameInterface::reload()
|
||||
{
|
||||
if(lib != NULL)
|
||||
{
|
||||
void GameInterface::reload() {
|
||||
if (lib != NULL) {
|
||||
destroyInstance(game);
|
||||
dlclose(lib);
|
||||
}
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
#include "Game.h"
|
||||
#include "dlfcn.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class GameInterface
|
||||
{
|
||||
public:
|
||||
namespace Seele {
|
||||
class GameInterface {
|
||||
public:
|
||||
GameInterface(std::string soPath);
|
||||
~GameInterface();
|
||||
Game* getGame();
|
||||
void reload();
|
||||
private:
|
||||
|
||||
private:
|
||||
void* lib;
|
||||
std::string soPath;
|
||||
Game* game;
|
||||
|
||||
@@ -2,25 +2,14 @@
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
GameInterface::GameInterface(std::string dllPath)
|
||||
: dllPath(dllPath)
|
||||
{
|
||||
}
|
||||
GameInterface::GameInterface(std::string dllPath) : dllPath(dllPath) {}
|
||||
|
||||
GameInterface::~GameInterface()
|
||||
{
|
||||
|
||||
}
|
||||
GameInterface::~GameInterface() {}
|
||||
|
||||
Game* GameInterface::getGame()
|
||||
{
|
||||
return game;
|
||||
}
|
||||
Game* GameInterface::getGame() { return game; }
|
||||
|
||||
void GameInterface::reload()
|
||||
{
|
||||
if(lib != NULL)
|
||||
{
|
||||
void GameInterface::reload() {
|
||||
if (lib != NULL) {
|
||||
destroyInstance(game);
|
||||
FreeLibrary(lib);
|
||||
}
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
#include "Game.h"
|
||||
#include "Windows.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class GameInterface
|
||||
{
|
||||
public:
|
||||
namespace Seele {
|
||||
class GameInterface {
|
||||
public:
|
||||
GameInterface(std::string dllPath);
|
||||
~GameInterface();
|
||||
Game* getGame();
|
||||
void reload();
|
||||
private:
|
||||
|
||||
private:
|
||||
HMODULE lib = NULL;
|
||||
std::string dllPath;
|
||||
Game* game;
|
||||
|
||||
Reference in new issue
Block a user