Skip to content

Commit

Permalink
Merge pull request #190 from SubnauticaModding/fix-system-path-checks
Browse files Browse the repository at this point in the history
Fix system path checks
  • Loading branch information
toebeann authored Sep 16, 2020
2 parents 609fce7 + b4789c9 commit cd63097
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Data/latest-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.2.3
4.0.2.4
4 changes: 2 additions & 2 deletions Executable/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

[assembly: ComVisible(false)]

[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]
4 changes: 2 additions & 2 deletions Installer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

[assembly: Guid("8c6c9a0b-80c4-43d2-89f2-749e6f09fdda")]

[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]
2 changes: 1 addition & 1 deletion Installer/QModsInstallerScript.iss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#endif

#define Name "QModManager" ; The name of the game will be added after it
#define Version "4.0.2.3"
#define Version "4.0.2.4"
#define Author "QModManager"
#define URL "https://github.com/QModManager/QModManager"
#define SupportURL "https://discord.gg/UpWuWwq"
Expand Down
4 changes: 2 additions & 2 deletions QMMHarmonyShimmer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]
[assembly: NeutralResourcesLanguage("en")]
4 changes: 2 additions & 2 deletions QMMLoader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]
[assembly: NeutralResourcesLanguage("en")]
11 changes: 1 addition & 10 deletions QModManager/Patching/Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ internal static class Patcher
{
internal const string IDRegex = "[^0-9a-zA-Z_]";

internal static string QModBaseDir
{
get
{
if (Environment.CurrentDirectory.Contains("system32") && Environment.CurrentDirectory.Contains("Windows"))
return null;
else
return Path.Combine(Environment.CurrentDirectory, "QMods");
}
}
internal static string QModBaseDir => Path.Combine(Environment.CurrentDirectory, "QMods");

private static bool Patched = false;
internal static QModGame CurrentlyRunningGame { get; private set; } = QModGame.None;
Expand Down
4 changes: 2 additions & 2 deletions QModManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

[assembly: ComVisible(false)]

[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]

[assembly: InternalsVisibleTo("QMMTests")]
[assembly: InternalsVisibleTo("QModManager")]
Expand Down
4 changes: 2 additions & 2 deletions QModPluginEmulator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]
[assembly: NeutralResourcesLanguage("en")]

[assembly: InternalsVisibleTo("QModManager.QMMLoader")]
5 changes: 0 additions & 5 deletions QModPluginEmulator/QModPluginGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ private static void SaveQMMAssemblyCache()

private static void ClearBepInExCache()
{
if (BepInExCachePath.Contains("system32") || BepInExCachePath.Contains("Windows"))
{
throw new InvalidOperationException($"BepInEx Cache Path invalid! ({BepInExCachePath})");
}

if (!Directory.Exists(BepInExCachePath))
return;

Expand Down
4 changes: 2 additions & 2 deletions UnityAudioFixer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.2.3")]
[assembly: AssemblyFileVersion("4.0.2.3")]
[assembly: AssemblyVersion("4.0.2.4")]
[assembly: AssemblyFileVersion("4.0.2.4")]

0 comments on commit cd63097

Please sign in to comment.