git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed some old experimental things.
[stg.git]
/
projects
/
stargazer
/
store_loader.cpp
diff --git
a/projects/stargazer/store_loader.cpp
b/projects/stargazer/store_loader.cpp
index dbb6d36edc8ddd0a0153e17c332813635a9567f8..d27c09023603f8745a02df66554d84cff694c862 100644
(file)
--- a/
projects/stargazer/store_loader.cpp
+++ b/
projects/stargazer/store_loader.cpp
@@
-30,9
+30,9
@@
#include <dlfcn.h>
#include <dlfcn.h>
+#include "stg/common.h"
+#include "stg/store.h"
#include "store_loader.h"
#include "store_loader.h"
-#include "common.h"
-#include "store.h"
#include "settings_impl.h"
STORE_LOADER::STORE_LOADER(const SETTINGS_IMPL & settings)
#include "settings_impl.h"
STORE_LOADER::STORE_LOADER(const SETTINGS_IMPL & settings)
@@
-54,7
+54,7
@@
bool STORE_LOADER::Load()
{
if (isLoaded)
{
{
if (isLoaded)
{
- errorStr = "Store plugin '" + pluginFileName + "' was alredy loaded!";
+ errorStr = "Store plugin '" + pluginFileName + "' was alre
a
dy loaded!";
printfd(__FILE__, "STORE_LOADER::Load() - %s\n", errorStr.c_str());
return false;
}
printfd(__FILE__, "STORE_LOADER::Load() - %s\n", errorStr.c_str());
return false;
}
@@
-79,7
+79,7
@@
if (!handle)
isLoaded = true;
STORE * (*GetStore)();
isLoaded = true;
STORE * (*GetStore)();
-GetStore =
(STORE * (*)())dlsym(handle, "GetStore"
);
+GetStore =
reinterpret_cast<STORE * (*)()>(dlsym(handle, "GetStore")
);
if (!GetStore)
{
errorStr = std::string("GetStore() not found! ") + dlerror();
if (!GetStore)
{
errorStr = std::string("GetStore() not found! ") + dlerror();