public static void Main(string[] args) { // TODO: move this elsewhere, let the config handle this. using (WindowTitle.Set("Caesura Solace Manager")) { CreateHostBuilder(args).Build().Run(); } }
public void OnApplicationStart() { try { HarmonyInstance harmony = HarmonyInstance.Create("com.jackbaron.beatsaber.owoSaber"); harmony.PatchAll(Assembly.GetExecutingAssembly()); Logger.Log("Patched successfully!"); } catch (Exception e) { Logger.Log( "This plugin requires Harmony. Make sure you installed the plugin " + "properly, as the Harmony DLL should have been installed with it.", Logger.LogLevel.Warning); Console.WriteLine(e); } string title = WindowTitle.Get(); string replaced = Replacement.ReplaceText(title); WindowTitle.Set(replaced); }