Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskarth committed Oct 25, 2019
1 parent 35e4553 commit 6341077
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions SatisfactoryModLoader/mod/ModHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,11 @@ namespace SML {
//check if modloader's version is the same as the mod's target version
size_t modTVOffset = mod->info.loaderVersion.find_last_of(".");
size_t SMLOffset = modLoaderVersion.find_last_of(".");
if (supressErrors) {
if (!(mod->info.loaderVersion.substr(0, modTVOffset) == modLoaderVersion.substr(0, SMLOffset))) {
if (!(mod->info.loaderVersion.substr(0, modTVOffset) == modLoaderVersion.substr(0, SMLOffset))) {
if (!supressErrors) {
std::string msg = mod->info.name + " does not match SML's version! Please ask the mod developer (" + mod->info.authors + ") to update their mod. Press OK to continue mod loading.";
MessageBoxA(NULL, msg.c_str(), "SatisfactoryModLoader Warning", MB_ICONWARNING);
if (!unsafeMode) {
FreeLibrary(dll);
}
continue;
}
} else {
if (!unsafeMode) {
FreeLibrary(dll);
}
Expand Down

0 comments on commit 6341077

Please sign in to comment.