mirror of
				https://github.com/MewoLab/AquaDX.git
				synced 2025-10-26 12:32:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			749 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			749 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using HarmonyLib;
 | |
| using Monitor;
 | |
| 
 | |
| namespace AquaMai.UX
 | |
| {
 | |
|     public class SkipWarningScreen
 | |
|     {
 | |
|         /*
 | |
|          * Patch PlayLogo to disable the warning screen
 | |
|          */
 | |
|         [HarmonyPrefix]
 | |
|         [HarmonyPatch(typeof (WarningMonitor), "PlayLogo")]
 | |
|         public static bool PlayLogo()
 | |
|         {
 | |
|             // Return false to block the original method
 | |
|             return false;
 | |
|         }
 | |
|         
 | |
|         [HarmonyPrefix]
 | |
|         [HarmonyPatch(typeof (WarningMonitor), "IsLogoAnimationEnd")]
 | |
|         public static bool IsLogoAnimationEnd(ref bool __result)
 | |
|         {
 | |
|             // Always return true to indicate the animation has ended
 | |
|             __result = true;
 | |
|             return false;
 | |
|         }
 | |
|     }
 | |
| } | 
