File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ public partial class AuthPlugin : BasePlugin
2020 [ LibraryImport ( "libstarlight.so" , EntryPoint = "get_string" , StringMarshalling = StringMarshalling . Utf8 ) ]
2121 private static unsafe partial string get_string ( string key ) ;
2222
23+ [ LibraryImport ( "libstarlight.so" , EntryPoint = "quit_app" ) ]
24+ private static unsafe partial void quit_app ( ) ;
25+
2326 public override void Load ( )
2427 {
2528 Harmony . CreateAndPatchAll ( Assembly . GetExecutingAssembly ( ) , Id ) ;
@@ -70,6 +73,16 @@ public static GameObject FindInactiveByName(string name)
7073 return null ;
7174 }
7275
76+ [ HarmonyPatch ( typeof ( SceneChanger ) , nameof ( SceneChanger . ExitGame ) ) ]
77+ public static class ExitPatch
78+ {
79+ public static bool Prefix ( )
80+ {
81+ quit_app ( ) ;
82+ return false ;
83+ }
84+ }
85+
7386 [ HarmonyPatch ( typeof ( ServerDropdown ) , nameof ( ServerDropdown . FillServerOptions ) ) ]
7487 public static class ServerDropdownPatch
7588 {
You can’t perform that action at this time.
0 commit comments