Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
565f3a1
Fixed items being added in nested container instead of player inventory
Measurity Oct 9, 2025
09365b5
Moved extensions in NitroxClient to NitroxCient.Extensions namespace
Measurity Oct 10, 2025
0d42f7f
Removed redundant usings from NitroxClient and NitroxPatcher
Measurity Oct 10, 2025
dbcb461
Increased game version target that Nitrox works on
Measurity Oct 10, 2025
7e7aa7b
Added "GameName" property to Directory.Build.props and applied it to …
Measurity Oct 10, 2025
01b700f
Changed game version check to use minimum version
Measurity Oct 10, 2025
7afbbb4
Increased game version target that Nitrox works on (#2487)
Measurity Oct 10, 2025
32f3d25
Fixed '#' not being marked as a header in patchnotes (#2489)
Measurity Oct 10, 2025
f7a80cc
Fixed items being added in nested container instead of player invento…
dartasen Oct 11, 2025
f5481c2
Added perms reset on server join until we can improve security (#2498)
Measurity Oct 11, 2025
8aa1826
Central package management (#2476)
Measurity Oct 11, 2025
ea019cc
Renamed server project to Nitrox.Server.Subnautica (#2500)
Measurity Oct 11, 2025
8014524
Fix constructables sending one too many packet when being destroyed
tornac1234 Oct 12, 2025
e574b7b
Fix base building tracker thinking a newly built base's last operatio…
tornac1234 Oct 12, 2025
7b99d88
Fix server build processor crashing when failing to assign an already…
tornac1234 Oct 12, 2025
b260ec9
Replace AssignNewEntityToPlayer by TryAssignEntityToPlayer
tornac1234 Oct 12, 2025
4fca09b
Ensures vehicle charging only occurs on the simulating player
tornac1234 Oct 12, 2025
74e848c
Fix reefbacks barnacles being too small
tornac1234 Oct 12, 2025
d32fbc6
Fix reefbacks barnacles being too small (#2506)
dartasen Oct 12, 2025
162e573
Fix constructables sending one too many packet when being destroyed (…
dartasen Oct 12, 2025
73d7640
Fix vehicles not charging with multiple players connected (#2505)
dartasen Oct 12, 2025
3cac517
Fix bases bugs (#2504)
dartasen Oct 12, 2025
ef4a343
Added game version to Nitrox game-xxx.log
Measurity Oct 13, 2025
d7a0ad8
Fixed server list crashing out if parsing fails. Making Nitrox crash.
Measurity Oct 13, 2025
4a2c616
Used null-pattern-match in ServerList.From()
Measurity Oct 13, 2025
377f3e3
Fix server list (#2514)
Measurity Oct 13, 2025
b1a624f
Turned off verbosity for NtpSync
dartasen Oct 13, 2025
db73e20
Turned off verbosity for NtpSync (#2515)
dartasen Oct 13, 2025
5e74a8b
Fix certain world entities have global root level 100 (#2513)
tornac1234 Oct 13, 2025
6b8759c
Fixed index out of range error in server command parsing logic (#2516)
Measurity Oct 13, 2025
100b70f
Fixed focus on view show logic being done on non-UI thread (#2519)
Measurity Oct 13, 2025
8561ebb
Added nullability checks to IsValidSaveName
Measurity Oct 14, 2025
020f0fb
Added '--data-path' cli option which sets NitroxUser.AppDataPath
Measurity Oct 14, 2025
08cfd4d
Fixed server always creating "My World" save folder
Measurity Oct 14, 2025
f7a286b
Added --game-path option to specifc Subnautica install location
Measurity Oct 14, 2025
981df2f
Removed accidentally committed debug code in launchSettings
Measurity Oct 14, 2025
3a8ede2
Fixed command args removing extra ' on Windows
Measurity Oct 15, 2025
a6a879f
Fixed cli* variable to use nullable string
Measurity Oct 15, 2025
e4678f8
Changed IsValidSaveName EndsWith to single char '.' instead of string…
Measurity Oct 15, 2025
6a33dc7
Added --data-path and --game-path options (#2522)
Measurity Oct 15, 2025
c4a5901
Update CONTRIBUTING.md in regards to AI usage (#2527)
Jannify Oct 17, 2025
b55234b
Fixed handling of Console.WindowWidth (#2530)
Measurity Oct 18, 2025
4c14a21
Bump version to 1.8.0.1 (#2533)
dartasen Oct 18, 2025
ef9db08
Added helper namespace to patcher project
Measurity Oct 18, 2025
f96395d
Fix ghost/module destruction not being broadcasted (#2535)
tornac1234 Oct 18, 2025
e42f3c2
Added log when other mods are loaded with Nitrox
Measurity Oct 18, 2025
bcc90d5
Added log if mod detection fails
Measurity Oct 18, 2025
95dca3f
Allow the Enter/Return key to open Dev Console unless chat open (#2537)
NinjaPedroX Oct 18, 2025
614c5a5
Added log that will print other mods loaded with Nitrox (#2536)
Measurity Oct 19, 2025
b28bbf6
Fix exosuits falling through the ground (#2541)
tornac1234 Oct 19, 2025
bcf8d63
Prevent server from being blocked when finding level 100 world entiti…
tornac1234 Oct 19, 2025
2672e49
Moved most of Nitrox.Server.Subnautica types into "Models" namespace.
tornac1234 Oct 19, 2025
f594a1e
Moved Subnautica specific files from Nitrox.Model to Nitrox.Model.Sub…
Measurity Oct 11, 2025
bf80520
Merged ServerAutoFacRegistrar into SubnauticaServerAutoFacRegistrar t…
Measurity Oct 11, 2025
eb3e33d
Added save file upgrade targeting 1.8.0.1 to handle namespace changes
Measurity Oct 12, 2025
9eefe02
Fixed protobuf unit test regression
Measurity Oct 15, 2025
6264c01
Removed NitroxServer leftover files
Measurity Oct 19, 2025
641cbce
Renamed projects (#2502)
Measurity Oct 20, 2025
e54ce33
Fix world entity level 100 in GlobalRootData (#2542)
tornac1234 Oct 20, 2025
dae3b3c
Improve version mismatch message (#2544)
dartasen Oct 20, 2025
6ad2ce3
Fixed --data-path not being read by keyvaluestore (#2546)
Measurity Oct 20, 2025
cd7e29c
Merge para la update a la 1.8.0.1
Papela Oct 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--
Before filing a pull request please look at our guidelines: https://github.com/SubnauticaNitrox/Nitrox/blob/master/CONTRIBUTING.md.
We recommend that if you want to do a non trivial feature or a feature without an already open issue, to contact us on Discord https://discord.gg/E8B4X9s before investing your time.
-->
9 changes: 8 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Contributing

Please have a look at our [documentation site](https://subnauticanitrox.github.io/Documentation/) for contribution guidelines & information on how to get started.
Please have a look at our [documentation site](https://subnauticanitrox.github.io/Documentation/) for contribution guidelines & information on how to get started.

## Stand on AI and generated issues & PRs

We generally don't want to tell you what tools to use (you undoubting minimalistic vi enjoyer), but we ideally want to have clean and minimal code, issues and pull requests. \
For this reason we would prefer AI is not used in the creation of issues and PR descriptions. We don't have the resources to read 50 paragraphs on why changing 5 lines of code makes sense. Only explain yourself if the goal of your implementation is not a no-brainer. \
You are free to use AI to generate your code but we require you to review it before submitting. Nitrox is a special kind of software as it's interacting tightly with Subnautica's code base which makes good code generation difficult. Also keep in mind Subnautica's source code is under copyright and it's prohibited to upload it to an AI. \
As a last note, only place comments on functions which meaning is not obvious. Follow the principle of "A good comment explains the why not the what". A good example for where comments are needed/expected are the Harmony patches.
16 changes: 9 additions & 7 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Framework properties -->
<PropertyGroup>
<LangVersion>13</LangVersion>
<Version>1.8.0.0</Version>
<Version>1.8.0.1</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Prefer32Bit>false</Prefer32Bit>
<DebugType>embedded</DebugType>
Expand All @@ -28,6 +28,8 @@
<TestLibrary>false</TestLibrary>
<NitroxLibrary>false</NitroxLibrary>
<UnityModLibrary>false</UnityModLibrary>
<GameName>Subnautica</GameName>
<GameMinimumVersion>82304</GameMinimumVersion>
</PropertyGroup>

<PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectName), '^Nitrox.*$'))">
Expand All @@ -36,7 +38,7 @@
<PropertyGroup Condition="'$(NitroxProject)' == 'true' and '$(MSBuildProjectName)' != 'Nitrox.Test'">
<NitroxLibrary>true</NitroxLibrary>
</PropertyGroup>
<PropertyGroup Condition="'$(NitroxLibrary)' == 'true' and '$(MSBuildProjectName)' != 'NitroxModel' and '$(MSBuildProjectName)' != 'NitroxServer' and '$(MSBuildProjectName)' != 'Nitrox.Launcher'">
<PropertyGroup Condition="'$(NitroxLibrary)' == 'true' and '$(MSBuildProjectName)' != 'Nitrox.Model' and '$(MSBuildProjectName)' != 'Nitrox.Launcher'">
<UnityModLibrary>true</UnityModLibrary>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == 'Nitrox.Test'">
Expand All @@ -49,10 +51,10 @@

<!-- Shared dependencies for all Nitrox.* projects -->
<ItemGroup Condition="'$(NitroxProject)' == 'true'">
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0">
<PackageReference Include="JetBrains.Annotations">
<Aliases>JB</Aliases>
</PackageReference>
<PackageReference Include="PolySharp" Version="1.15.0">
<PackageReference Include="PolySharp">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand All @@ -62,15 +64,15 @@
<Choose>
<When Condition="'$(UnityModLibrary)' == 'true' or '$(TestLibrary)' == 'true'">
<ItemGroup>
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.2">
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Nitrox.Discovery.MSBuild" Version="0.1.0">
<PackageReference Include="Nitrox.Discovery.MSBuild">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Nitrox.Analyzers" Version="*">
<PackageReference Include="Nitrox.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
7 changes: 5 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<_Parameter1>GitShortHash</_Parameter1>
<_Parameter2>$(_GitShortHash)</_Parameter2>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>GameMinimumVersion</_Parameter1>
<_Parameter2>$(GameMinimumVersion)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -71,12 +75,11 @@
<PropertyGroup>
<GameManagedDir>$(GameDir)$(GameDataFolder)\Managed\</GameManagedDir>
<GameVersionFile>$(GameDir)$(GameDataFolder)\StreamingAssets\SNUnmanagedData\plastic_status.ignore</GameVersionFile>
<GameLegacyVersion>68598</GameLegacyVersion>
</PropertyGroup>
<ReadLinesFromFile File="$(GameVersionFile)">
<Output TaskParameter="Lines" ItemName="GameVersion" />
</ReadLinesFromFile>
<Error Condition="@(GameVersion) &lt;= $(GameLegacyVersion)" Text="Subnautica must not be on legacy branch. Expected version &gt;$(GameLegacyVersion) but was @(GameVersion)" />
<Error Condition="@(GameVersion) &lt; $(GameMinimumVersion)" Text="$(GameName) version is outdated. Expected version &gt;=$(GameMinimumVersion) but was @(GameVersion)" />
<Message Importance="high" Text="Game found at: '$(GameDir)' with version @(GameVersion)" />

<ItemGroup>
Expand Down
59 changes: 59 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageFloatingVersionsEnabled>true</CentralPackageFloatingVersionsEnabled>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="AssetsTools.NET" Version="3.0.0-preview1" />
<PackageVersion Include="Autofac" Version="[4.9.4]" />
<PackageVersion Include="Avalonia.Desktop" Version="11.3.4" />
<PackageVersion Include="Avalonia.Diagnostics" Version="11.3.4" />
<PackageVersion Include="Avalonia.Svg.Skia" Version="11.3.0" />
<PackageVersion Include="Avalonia.Themes.Fluent" Version="11.3.4" />
<PackageVersion Include="Avalonia.Xaml.Interactions" Version="11.3.0.6" />
<PackageVersion Include="Avalonia.Xaml.Interactivity" Version="11.3.0.6" />
<PackageVersion Include="Avalonia" Version="11.3.4" />
<PackageVersion Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.2" />
<PackageVersion Include="Bogus" Version="35.6.3" />
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageVersion Include="CompareNETObjects" Version="4.83.0" />
<PackageVersion Include="ConsoleAppFramework" Version="5.6.1" />
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="DiscordGameSDKWrapper" Version="3.2.1.1" />
<PackageVersion Include="dnlib" Version="4.4.0" />
<PackageVersion Include="FluentAssertions.Analyzers" Version="[0.34.1]" />
<PackageVersion Include="FluentAssertions" Version="[7.2.0]" />
<PackageVersion Include="HanumanInstitute.MvvmDialogs.Avalonia" Version="2.1.0" />
<PackageVersion Include="HarmonyX" Version="2.10.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageVersion Include="LiteNetLib" Version="1.2.0" />
<PackageVersion Include="LitJson" Version="0.19.0" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.8" />
<PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageVersion Include="Mono.Nat" Version="3.0.4" />
<PackageVersion Include="MSTest" Version="3.8.3" />
<PackageVersion Include="Newtonsoft.Json" Version="12.0.3" />
<PackageVersion Include="Nitrox.Analyzers" Version="*" />
<PackageVersion Include="Nitrox.BinaryPack" Version="2.0.1" />
<PackageVersion Include="Nitrox.Discovery.MSBuild" Version="0.1.1" />
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="PolySharp" Version="1.15.0" />
<PackageVersion Include="Serilog.Sinks.Async" Version="2.1.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageVersion Include="Serilog.Sinks.Map" Version="2.0.0" />
<PackageVersion Include="Serilog" Version="4.2.0" />
<PackageVersion Include="ServiceScan.SourceGenerator" Version="2.3.4" />
<PackageVersion Include="SixLabors.ImageSharp" Version="[2.1.11]" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux" Version="3.116.1" />
<PackageVersion Include="System.Buffers" Version="4.6.1" />
<PackageVersion Include="System.ComponentModel" Version="4.3.0" />
<PackageVersion Include="System.IO.Compression" Version="4.3.0" />
<PackageVersion Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageVersion Include="System.Memory" Version="4.6.3" />
<PackageVersion Include="System.Numerics.Vectors" Version="4.6.1" />
<PackageVersion Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.2" />
<PackageVersion Include="System.Text.Json" Version="9.0.4" />
<PackageVersion Include="System.ValueTuple" Version="4.6.1" />
</ItemGroup>
</Project>
7 changes: 4 additions & 3 deletions Nitrox.Launcher/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
using Nitrox.Launcher.Models.Validators;
using Nitrox.Launcher.ViewModels;
using Nitrox.Launcher.Views;
using NitroxModel.Helper;
using NitroxModel.Logger;
using NitroxModel.Platforms.OS.Shared;
using Nitrox.Model.Core;
using Nitrox.Model.Helper;
using Nitrox.Model.Logger;
using Nitrox.Model.Platforms.OS.Shared;

namespace Nitrox.Launcher;

Expand Down
6 changes: 3 additions & 3 deletions Nitrox.Launcher/GlobalStatic.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using Avalonia.Controls;
using NitroxModel.Platforms.OS.Shared;
using Nitrox.Model.Platforms.OS.Shared;

namespace Nitrox.Launcher;

Expand All @@ -13,10 +13,10 @@ internal static class GlobalStatic

public static string GetServerExeName()
{
string serverExeName = "NitroxServer-Subnautica.exe";
string serverExeName = "Nitrox.Server.Subnautica.exe";
if (!OperatingSystem.IsWindows())
{
serverExeName = "NitroxServer-Subnautica";
serverExeName = "Nitrox.Server.Subnautica";
}
return serverExeName;
}
Expand Down
4 changes: 2 additions & 2 deletions Nitrox.Launcher/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
global using NitroxModel;
global using NitroxModel.Extensions;
global using Nitrox.Model;
global using Nitrox.Model.Extensions;
global using Nitrox.Launcher.Models.Extensions;
global using static Nitrox.Launcher.GlobalStatic;
7 changes: 6 additions & 1 deletion Nitrox.Launcher/Models/Behaviors/FocusOnViewShowBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Avalonia.Controls;
using Avalonia.Threading;
using Avalonia.Xaml.Interactivity;
using CommunityToolkit.Mvvm.Messaging;

Expand All @@ -11,7 +12,11 @@ public class FocusOnViewShowBehavior : Behavior<Control>
{
protected override void OnAttached()
{
WeakReferenceMessenger.Default.Register<ShowViewMessage>(this, static (obj, _) => (obj as FocusOnViewShowBehavior)?.Focus());
WeakReferenceMessenger.Default.Register<ShowViewMessage>(this, static (obj, _) =>
{
// Need to queue this work on UI thread as calls via message originate from a different thread.
Dispatcher.UIThread.Invoke(() => (obj as FocusOnViewShowBehavior)?.Focus());
});
base.OnAttached();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Globalization;
using Avalonia.Media.Imaging;
using Nitrox.Launcher.Models.Utils;
using NitroxModel.Discovery.Models;
using Nitrox.Model.Discovery.Models;

namespace Nitrox.Launcher.Models.Converters;

Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Converters/ToStringConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Globalization;
using Avalonia.Data;
using NitroxModel.Helper;
using Nitrox.Model.Helper;

namespace Nitrox.Launcher.Models.Converters;

Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Design/EditorField.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;
using Avalonia.Collections;
using NitroxModel.Serialization;
using Nitrox.Model.Serialization;

namespace Nitrox.Launcher.Models.Design;

Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Design/KnownGame.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NitroxModel.Discovery.Models;
using Nitrox.Model.Discovery.Models;

namespace Nitrox.Launcher.Models.Design;

Expand Down
16 changes: 9 additions & 7 deletions Nitrox.Launcher/Models/Design/ServerEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.Mvvm.Messaging;
using Nitrox.Launcher.Models.Exceptions;
using NitroxModel.DataStructures.GameLogic;
using NitroxModel.Helper;
using NitroxModel.Logger;
using NitroxModel.Serialization;
using NitroxModel.Server;
using NitroxServer.Serialization;
using NitroxServer.Serialization.World;
using Nitrox.Model.Core;
using Nitrox.Model.DataStructures.GameLogic;
using Nitrox.Model.Helper;
using Nitrox.Model.Logger;
using Nitrox.Model.Serialization;
using Nitrox.Model.Server;
using Nitrox.Model.Subnautica.DataStructures.GameLogic;
using Nitrox.Server.Subnautica.Models.Serialization;
using Nitrox.Server.Subnautica.Models.Serialization.World;

namespace Nitrox.Launcher.Models.Design;

Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Design/StaticCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using CommunityToolkit.Mvvm.Input;
using Nitrox.Launcher.ViewModels;
using Nitrox.Launcher.Views.Abstract;
using NitroxModel.Logger;
using Nitrox.Model.Logger;

namespace Nitrox.Launcher.Models.Design;

Expand Down
15 changes: 12 additions & 3 deletions Nitrox.Launcher/Models/Extensions/DtoExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ public static NitroxChangelog FromDtoToLauncher(this NitroxWebsiteApiService.Cha
buffer.Clear();
foreach (string patchNote in changeLog.PatchNotes)
{
if (patchNote.StartsWith('-'))
if ((GetAsHeaderOrNull(patchNote, '-') ?? GetAsHeaderOrNull(patchNote, '#')) is {} header)
{
buffer.AppendLine($"\n[b][u]{patchNote.TrimStart('-', ' ')}[/u][/b]");
buffer.AppendLine(header);
}
else
{
buffer.AppendLine($"• {patchNote}");
}
}
return new NitroxChangelog(changeLog.Version, changeLog.Released.DateTime, buffer.ToString());
return new NitroxChangelog(changeLog.Version, changeLog.Released.DateTime, string.Join(Environment.NewLine, buffer.ToString()));

static string? GetAsHeaderOrNull(string line, char prefix)
{
if (line.StartsWith(prefix))
{
return $"\n[b][u]{line.TrimStart(prefix, ' ')}[/u][/b]";
}
return null;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NitroxModel.Helper;
using Nitrox.Model.Helper;

namespace Nitrox.Launcher.Models.Extensions;

Expand Down
4 changes: 2 additions & 2 deletions Nitrox.Launcher/Models/Extensions/ProcessExExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using NitroxModel.Platforms.OS.Shared;
using NitroxModel.Platforms.OS.Windows;
using Nitrox.Model.Platforms.OS.Shared;
using Nitrox.Model.Platforms.OS.Windows;

namespace Nitrox.Launcher.Models.Extensions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using Nitrox.Launcher.ViewModels.Abstract;
using Nitrox.Launcher.Views;
using Nitrox.Launcher.Views.Abstract;
using NitroxModel.Helper;
using Nitrox.Model.Helper;
using ServiceScan.SourceGenerator;

namespace Nitrox.Launcher.Models.Extensions;
Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Extensions/VisualExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using Avalonia;
using Avalonia.Controls;
using NitroxModel.Platforms.OS.Windows;
using Nitrox.Model.Platforms.OS.Windows;

namespace Nitrox.Launcher.Models.Extensions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using NitroxModel.Helper;
using Nitrox.Model.Helper;
using Serilog;

namespace Nitrox.Launcher.Models.HttpDelegatingHandlers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Threading;
using System.Threading.Tasks;
using Nitrox.Launcher.Models.Utils;
using NitroxModel.Helper;
using NitroxModel.Logger;
using Nitrox.Model.Helper;
using Nitrox.Model.Logger;

namespace Nitrox.Launcher.Models.HttpDelegatingHandlers;

Expand Down
2 changes: 1 addition & 1 deletion Nitrox.Launcher/Models/Services/DialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Nitrox.Launcher.Models.Utils;
using Nitrox.Launcher.ViewModels;
using Nitrox.Launcher.ViewModels.Abstract;
using NitroxModel.Logger;
using Nitrox.Model.Logger;

namespace Nitrox.Launcher.Models.Services;

Expand Down
Loading
Loading