Compare commits

...
1 Commits
Author SHA1 Message Date
mount 3283b66044 Fixed issues with LAN mod for version v0.111.0, compilable on Linux 2026-09-12 13:01:42 +02:00
7 changed files with 11 additions and 7 deletions
+1
View File
@@ -1,3 +1,4 @@
./sts2_src
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
@@ -64,7 +64,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components
{
var locString = new LocString("main_menu_ui", LocKeyPrefix);
SetTextAutoSize(locString.GetFormattedText());
this.ApplyLocaleFontSubstitution(FontType.Regular, ThemeConstants.Label.font);
this.ApplyLocaleFontSubstitution(FontType.Regular, ThemeConstants.Label.Font);
}
}
}
@@ -48,7 +48,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Components
{
var locString = new LocString("main_menu_ui", _locKeyPrefix);
SetTextAutoSize(locString.GetFormattedText());
this.ApplyLocaleFontSubstitution(FontType.Regular, ThemeConstants.Label.font);
this.ApplyLocaleFontSubstitution(FontType.Regular, ThemeConstants.Label.Font);
}
}
}
@@ -9,6 +9,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Models
public string playerName;
public bool ShouldBroadcast => false;
public bool ShouldBuffer => false;
public NetTransferMode Mode => NetTransferMode.Reliable;
public LogLevel LogLevel => LogLevel.Info;
@@ -10,6 +10,7 @@ namespace SlayTheSpire2.LAN.Multiplayer.Models
public PlayerNames playerNames;
public bool ShouldBroadcast => false;
public bool ShouldBuffer => false;
public NetTransferMode Mode => NetTransferMode.Reliable;
public LogLevel LogLevel => LogLevel.Info;
@@ -15,7 +15,7 @@ using SlayTheSpire2.LAN.Multiplayer.Services;
namespace SlayTheSpire2.LAN.Multiplayer.Patchs
{
[HarmonyPatch(typeof(RunSaveManager), "SaveRun")]
[HarmonyPatch(typeof(RunSaveManager), "SaveRun", new[] { typeof(AbstractRoom) })]
internal class RunSaveManagerSaveRunPatch
{
private static bool Prefix(RunSaveManager __instance, AbstractRoom? preFinishedRoom, bool ____forceSynchronous,
@@ -6,6 +6,7 @@
<Nullable>enable</Nullable>
<AssemblyVersion>1.6.3.0</AssemblyVersion>
<FileVersion>1.6.3.0</FileVersion>
<GodotProjectDir>$(MSBuildProjectDirectory)</GodotProjectDir>
</PropertyGroup>
<ItemGroup>
@@ -14,16 +15,16 @@
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>V:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64\0Harmony.dll</HintPath>
<HintPath>$(HOME)/.steam/steam/steamapps/common/Slay the Spire 2/data_sts2_linuxbsd_x86_64/0Harmony.dll</HintPath>
</Reference>
<Reference Include="GodotSharp">
<HintPath>V:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64\GodotSharp.dll</HintPath>
<HintPath>$(HOME)/.steam/steam/steamapps/common/Slay the Spire 2/data_sts2_linuxbsd_x86_64/GodotSharp.dll</HintPath>
</Reference>
<Reference Include="Steamworks.NET">
<HintPath>V:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64\Steamworks.NET.dll</HintPath>
<HintPath>$(HOME)/.steam/steam/steamapps/common/Slay the Spire 2/data_sts2_linuxbsd_x86_64/Steamworks.NET.dll</HintPath>
</Reference>
<Reference Include="sts2">
<HintPath>V:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64\sts2.dll</HintPath>
<HintPath>$(HOME)/.steam/steam/steamapps/common/Slay the Spire 2/data_sts2_linuxbsd_x86_64/sts2.dll</HintPath>
</Reference>
</ItemGroup>