Skip to content

Commit 077c974

Browse files
committed
Adds support for custom Resizable Window Hook
1 parent 12aabb4 commit 077c974

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CollapseLauncher/XAMLs/MainApp/Pages/HomePage.GameLauncher.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,18 @@ private async void StartResizableWindowPayload(string executable
546546
return;
547547
}
548548

549+
if (gameType is GameNameType.Plugin)
550+
{
551+
await Task.Run(() => ((PluginPresetConfigWrapper)gamePreset)
552+
.UseToggledGameLaunchContext()
553+
.StartResizableWindowHookAsync(executableName,
554+
height,
555+
width,
556+
gameExecutableDirectory,
557+
ResizableWindowHookToken.Token));
558+
return;
559+
}
560+
549561
// Set the pos + size reinitialization to true if the game is Honkai: Star Rail or ZZZ
550562
// This is required for Honkai: Star Rail or ZZZ since the game will reset its pos + size. Making
551563
// it impossible to use custom resolution (but since you are using Collapse, it's now

0 commit comments

Comments
 (0)