Add arg to ignore splash window

This commit is contained in:
MYT 2024-08-19 21:11:35 +01:00
parent af9ed58eef
commit b8f847e84c
2 changed files with 2988 additions and 3781 deletions

File diff suppressed because it is too large Load diff

View file

@ -469,16 +469,22 @@ const runVencordMain = once(() => require(join(VENCORD_FILES_DIR, "vencordDeskto
export async function createWindows() {
const startMinimized = process.argv.includes("--start-minimized");
const splash = createSplashWindow(startMinimized);
const noSplash = process.argv.includes("--no-splash");
let splash = undefined;
if (!noSplash) {
splash = createSplashWindow(startMinimized);
// SteamOS letterboxes and scales it terribly, so just full screen it
if (isDeckGameMode) splash.setFullScreen(true);
}
await ensureVencordFiles();
runVencordMain();
mainWin = createMainWindow();
mainWin.webContents.on("did-finish-load", () => {
if (splash) {
splash.destroy();
}
if (!startMinimized) {
mainWin!.show();