X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/687631532197750696d35aa12c40406b04fb878d..479d1656ef745f0bb51e0e6226b0d98cc6d6a8f1:/projects/stargazer/store_loader.cpp?ds=inline diff --git a/projects/stargazer/store_loader.cpp b/projects/stargazer/store_loader.cpp index 0dceb81d..d27c0902 100644 --- a/projects/stargazer/store_loader.cpp +++ b/projects/stargazer/store_loader.cpp @@ -54,7 +54,7 @@ bool STORE_LOADER::Load() { if (isLoaded) { - errorStr = "Store plugin '" + pluginFileName + "' was alredy loaded!"; + errorStr = "Store plugin '" + pluginFileName + "' was already loaded!"; printfd(__FILE__, "STORE_LOADER::Load() - %s\n", errorStr.c_str()); return false; } @@ -79,7 +79,7 @@ if (!handle) isLoaded = true; STORE * (*GetStore)(); -GetStore = (STORE * (*)())dlsym(handle, "GetStore"); +GetStore = reinterpret_cast(dlsym(handle, "GetStore")); if (!GetStore) { errorStr = std::string("GetStore() not found! ") + dlerror();