File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 4
4
<TargetFramework >net6.0</TargetFramework >
5
5
<AssemblyName >NobetaTrainer</AssemblyName >
6
6
<Description >Little Witch Nobeta speedrun Trainer tool</Description >
7
- <Version >1.4.3 </Version >
7
+ <Version >1.4.4 </Version >
8
8
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
9
- <LangVersion >latest </LangVersion >
9
+ <LangVersion >preview </LangVersion >
10
10
<RestoreAdditionalProjectSources >
11
11
https://api.nuget.org/v3/index.json;
12
12
https://nuget.bepinex.dev/v3/index.json;
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ protected override Task PostInitialized()
27
27
28
28
IL2CPP . il2cpp_thread_attach ( IL2CPP . il2cpp_domain_get ( ) ) ;
29
29
NobetaProcessUtils . OverlayWindowHandle = NobetaProcessUtils . FindWindow ( null , "NobetaTrainer" ) ;
30
- NobetaProcessUtils . HideOverlayFromTaskbar ( ) ;
30
+
31
+ // Do not hide window if running under Proton/Wine
32
+ if ( ! NobetaProcessUtils . IsProton ( ) )
33
+ {
34
+ NobetaProcessUtils . HideOverlayFromTaskbar ( ) ;
35
+ }
31
36
32
37
return Task . CompletedTask ;
33
38
}
Original file line number Diff line number Diff line change @@ -169,4 +169,9 @@ public static void FocusNobetaWindow()
169
169
SetForegroundWindow ( GameWindowHandle ) ;
170
170
ShowWindow ( GameWindowHandle , ( int ) ShowWindowCommands . SW_SHOW ) ;
171
171
}
172
+
173
+ public static bool IsProton ( )
174
+ {
175
+ return Process . GetProcessesByName ( "winlogon" ) . Length is 0 ;
176
+ }
172
177
}
You can’t perform that action at this time.
0 commit comments