Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of ActualInteriorTitleCards v1.0.4
BepInEx/plugins/ActualInteriorTitleCards.dll
Decompiled 15 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("ActualInteriorTitleCards")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("ActualInteriorTitleCards")] [assembly: AssemblyTitle("ActualInteriorTitleCards")] [assembly: AssemblyVersion("1.0.0.0")] namespace ActualInteriorTitleCards; [BepInPlugin("Fighter.ActualInteriorTitleCards", "ActualInteriorTitleCards", "1.0.1")] public class TitleCardLoader : BaseUnityPlugin { private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Have to move title cards from ActualInteriorTitleCards mod, so initialize we do..."); string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TitleCardAssets"); string destinationDir = Path.Combine(Paths.PluginPath, "InteriorTitleCardsImages", "user"); try { if (Directory.Exists(text)) { CopyDirectory(text, destinationDir); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Successfully copied title cards to InteriorTitleCardsImages folder!"); } else { ((BaseUnityPlugin)this).Logger.LogError((object)("Source assets folder not found at: " + text)); } } catch (Exception ex) { ((BaseUnityPlugin)this).Logger.LogError((object)("Failed to move title cards: " + ex.Message)); } } private static void CopyDirectory(string sourceDir, string destinationDir) { Directory.CreateDirectory(destinationDir); string[] files = Directory.GetFiles(sourceDir); foreach (string text in files) { string destFileName = Path.Combine(destinationDir, Path.GetFileName(text)); File.Copy(text, destFileName, overwrite: true); } files = Directory.GetDirectories(sourceDir); foreach (string text2 in files) { string destinationDir2 = Path.Combine(destinationDir, Path.GetFileName(text2)); CopyDirectory(text2, destinationDir2); } } }