You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/launcher/isaac_installation.h
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,32 @@ class InstallationData {
69
69
inlineboolIsValid() const {
70
70
return _isValid;
71
71
}
72
+
73
+
inline std::string GetUpdatedReason() const { //instalationdata is a const in a lot of places and I dont think this alone justifies changing it(or maybe Im just too lazy to do it rn)...so, here goes nothing.
74
+
if (_isCompatibleWithRepentogon) {
75
+
if (_needsPatch) {
76
+
return"Will work, the launcher has a patch to adapt it to a compatible version.";
77
+
}
78
+
else {
79
+
return"Should just work.";
80
+
}
81
+
}
82
+
else {
83
+
if (!strncmp(GetVersion(), "v1.7", strlen("v1.7"))) {
84
+
return"You need the Repentance+ dlc, you currently only have Repentance installed (WHICH IS NOT THE SAME).";
85
+
}
86
+
else {
87
+
return"You dont have a proper version or your exe is corrupted/cracked \n(verify your files with steam or download the specific version rgon uses)";
_CompatReason = "Will work, the launcher has a patch to adapt it to a compatible version.";
297
-
}
298
-
else {
299
-
_CompatReason = "Should just work.";
300
-
}
301
-
}
302
-
else {
303
-
if (!strncmp(GetVersion(), "v1.7", strlen("v1.7"))) {
304
-
_CompatReason = "You need the Repentance+ dlc, you currently only have Repentance installed.";
305
-
}
306
-
else {
307
-
_CompatReason = "You dont have a proper version or your exe is corrupted/cracked (verify your files with steam or download the specific version rgon uses)";
308
-
}
309
-
}
310
-
294
+
UpdateReason();
311
295
if (srgon::IsStandaloneFolder(sourcePath) && !repentogon) {
312
296
_gui->LogWarn("The main Isaac executable is located in a Repentogon installation, this likely indicates a broken configuration\n");
313
297
Logger::Error("Main Isaac executable %s is located inside a Repentogon installation", path.c_str());
_logWindow.LogError("Repair Failed!, Not compatible!. Reason: %s", reason);
994
+
wxMessageDialog dialog(this, "Repair Failed!, your Isaac instalation is not compatible with repentogon.\nReason: " + reason, "Incompatible Isaac Instalation!", wxOK);
_logWindow.Log("Repair Failed!, Could not remove the Repentogon folder!");
996
1002
}
997
1003
break;
998
1004
caseADVANCED_EVENT_FORCE_REPENTOGON_UPDATE:
1005
+
if (!_installation->GetIsaacInstallation().GetRepentogonInstallation().IsCompatibleWithRepentogon()) {
1006
+
_logWindow.LogWarn("Update may Fail!, Vanilla not compatible!. Reason: %s", _installation->GetIsaacInstallation().GetRepentogonInstallation().GetUpdatedReason());
0 commit comments