Skip to content

Commit

Permalink
imp - brk|doc - Moved mod loading code (pt. 1)
Browse files Browse the repository at this point in the history
---

We've moved mod loading code to a separate addon. This is not done, so the
build fails.

---

Type: imp
Breaking: True
Doc Required: True
Backport Required: False
Part: 1/2
  • Loading branch information
AptiviCEO committed Jan 3, 2025
1 parent 2dc51f0 commit 4785ff1
Show file tree
Hide file tree
Showing 80 changed files with 51 additions and 293 deletions.
1 change: 0 additions & 1 deletion private/Nitrocid.Tests/InitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
using Nitrocid.Kernel.Extensions;
using Nitrocid.Kernel.Debugging;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Modifications;
using Terminaux.Base.Checks;
using System.Reflection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
using Nitrocid.Misc.Screensaver;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Misc.Splash;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Shell.Homepage;
using Nitrocid.Extras.Amusements.Amusements.Games;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.ArchiveShell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Misc.Screensaver;
using Nitrocid.Files.Paths;
using Nitrocid.Modifications;
using System.Linq;
using Terminaux.Colors;
using Terminaux.Colors.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Extras.BeepSynth.Commands;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Caffeine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Calculators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Extras.Calendar.Calendar;
using Nitrocid.Shell.Homepage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using Nitrocid.Extras.Chemistry.Screensavers;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Misc.Screensaver;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.ColorConvert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Shell.ShellBase.Switches;
using Nitrocid.Shell.Homepage;
Expand Down
1 change: 0 additions & 1 deletion public/Nitrocid.Addons/Nitrocid.Extras.Crc32/Crc32Init.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Nitrocid.Drivers;
using Nitrocid.Drivers.Encryption;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;

namespace Nitrocid.Extras.Crc32
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Nitrocid.Drivers;
using Nitrocid.Drivers.Encryption;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;

namespace Nitrocid.Extras.Crc32Castagnoli
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Diagnostics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Dictionary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Docking
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.Forecast
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Nitrocid.Extras.FtpShell.FTP;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
using Nitrocid.Files.Paths;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Kernel;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.GitShell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using Nitrocid.Extras.HttpShell.Settings;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Extras.Images.Commands;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using Nitrocid.Extras.JsonShell.Settings;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Shell.ShellBase.Switches;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using Nitrocid.Extras.MailShell.Settings;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
1 change: 0 additions & 1 deletion public/Nitrocid.Addons/Nitrocid.Extras.Md5/Md5Init.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Nitrocid.Drivers;
using Nitrocid.Drivers.Encryption;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;

namespace Nitrocid.Extras.Md5
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
using Nitrocid.Languages;
using Terminaux.Writer.FancyWriters;
using Nitrocid.Kernel.Exceptions;
using Nitrocid.Modifications;
using Nitrocid.Security.Permissions;
using Nitrocid.Files.Paths;
using Nitrocid.ConsoleBase.Colors;
using Terminaux.Writer.ConsoleWriters;
using Nitrocid.Extras.Mods.Modifications;

namespace Nitrocid.Shell.Shells.UESH.Commands
namespace Nitrocid.Extras.Mods.Commands
{
/// <summary>
/// Manages your mods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@
using Nitrocid.ConsoleBase.Writers;
using Nitrocid.Languages;
using Nitrocid.Kernel.Exceptions;
using Nitrocid.Modifications;
using Terminaux.Inputs.Interactive;
using Nitrocid.ConsoleBase.Colors;
using Nitrocid.Misc.Interactives;
using Nitrocid.Files;
using Nitrocid.Kernel.Debugging;
using System.IO;
using Nitrocid.Modifications.ManPages;
using System;
using Nitrocid.Extras.Mods.Modifications;
using Nitrocid.Extras.Mods.Modifications.ManPages;

namespace Nitrocid.Shell.Shells.UESH.Commands
namespace Nitrocid.Extras.Mods.Commands
{
/// <summary>
/// Opens the mod manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
using System.Linq;
using System.Reflection;

namespace Nitrocid.Modifications.Communication
namespace Nitrocid.Extras.Mods.Modifications.Communication
{
/// <summary>
/// Inter-Mod Communication tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

using Newtonsoft.Json;

namespace Nitrocid.Modifications.Dependencies
namespace Nitrocid.Extras.Mods.Modifications.Dependencies
{
/// <summary>
/// Mod dependency information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
using System.Linq;
using Textify.Versioning;

namespace Nitrocid.Modifications.Dependencies
namespace Nitrocid.Extras.Mods.Modifications.Dependencies
{
internal static class ModDependencySatisfier
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using System.IO;
using System.Text;

namespace Nitrocid.Modifications.ManPages
namespace Nitrocid.Extras.Mods.Modifications.ManPages
{
/// <summary>
/// Manual page class instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
using Terminaux.Inputs.Styles.Infobox;
using Terminaux.Inputs.Interactive;
using Nitrocid.Languages;
using Nitrocid.Modifications.ManPages;
using System.Collections.Generic;
using System.Text;
using Textify.General;

namespace Nitrocid.Misc.Interactives
namespace Nitrocid.Extras.Mods.Modifications.ManPages
{
/// <summary>
/// Manual viewer class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
using Nitrocid.Kernel.Exceptions;
using Nitrocid.Languages;

namespace Nitrocid.Modifications.ManPages
namespace Nitrocid.Extras.Mods.Modifications.ManPages
{
/// <summary>
/// Mod manual page management module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
using Nitrocid.Languages;
using Nitrocid.Misc.Text.Probers.Placeholder;

namespace Nitrocid.Modifications.ManPages
namespace Nitrocid.Extras.Mods.Modifications.ManPages
{
static class PageParser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
using System.Collections.Generic;
using System.Diagnostics;
using Nitrocid.Kernel.Exceptions;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Languages;

namespace Nitrocid.Modifications
namespace Nitrocid.Extras.Mods.Modifications
{
/// <summary>
/// Mod information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
using Nitrocid.Languages;
using Nitrocid.Kernel.Exceptions;
using Nitrocid.Files.Paths;
using Nitrocid.Modifications.ManPages;
using Nitrocid.ConsoleBase.Colors;
using Terminaux.Writer.ConsoleWriters;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Extras.Mods.Modifications.ManPages;

namespace Nitrocid.Modifications
namespace Nitrocid.Extras.Mods.Modifications
{
/// <summary>
/// Mod management module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@
using Nitrocid.Files.Paths;
using Nitrocid.Kernel.Events;
using Nitrocid.Security.Signing;
using Nitrocid.Modifications.Dependencies;
using Nitrocid.Languages.Decoy;
using Nitrocid.Kernel.Configuration;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Extras.Mods.Modifications.Dependencies;

namespace Nitrocid.Modifications
namespace Nitrocid.Extras.Mods.Modifications
{
/// <summary>
/// Mod parsing module
Expand Down
11 changes: 8 additions & 3 deletions public/Nitrocid.Addons/Nitrocid.Extras.Mods/ModsInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//

using Nitrocid.Extras.Mods.Modifications;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;

namespace Nitrocid.Extras.Mods
{
Expand All @@ -30,10 +30,15 @@ internal class ModsInit : IAddon
ModLoadPriority IAddon.AddonType => ModLoadPriority.Important;

void IAddon.FinalizeAddon()
{ }
{
if (Config.MainConfig.StartKernelMods)
ModManager.StartMods();
}

void IAddon.StartAddon()
{ }
{

}

void IAddon.StopAddon()
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Misc.Screensaver;
using Nitrocid.Modifications;
using System.Linq;

namespace Nitrocid.Extras.NameGen
Expand Down
1 change: 0 additions & 1 deletion public/Nitrocid.Addons/Nitrocid.Extras.Notes/NotesInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using System.Collections.Generic;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Shell.ShellBase.Shells;
using Nitrocid.Modifications;
using System.Linq;
using Nitrocid.Shell.Homepage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

using Nitrocid.Extras.Pastebin.Commands;
using Nitrocid.Kernel.Extensions;
using Nitrocid.Modifications;
using Nitrocid.Shell.ShellBase.Arguments;
using Nitrocid.Shell.ShellBase.Commands;
using Nitrocid.Shell.ShellBase.Shells;
Expand Down
Loading

0 comments on commit 4785ff1

Please sign in to comment.