Skip to content

Commit f454f9e

Browse files
committed
re-add quickstart launch argument
1 parent 74b995a commit f454f9e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/patches.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,18 @@ bool InitPatchesAndHooks()
134134
return false;
135135
}
136136

137+
#ifdef DEBUG
138+
bool quick_start = true;
139+
#else
140+
bool quick_start = (strstr(GetCommandLine(), "-quickstart") != nullptr);
141+
#endif
142+
137143
// enable quick start
138-
meow_hook::put(GetAddress(VAR_QUICK_START), true);
139-
meow_hook::put(GetAddress(IS_INTRO_SEQUENCE_COMPLETE), 0x90C301B0);
140-
meow_hook::put(GetAddress(IS_INTRO_MOVIE_COMPLETE), 0x90C301B0);
144+
if (quick_start) {
145+
meow_hook::put(GetAddress(VAR_QUICK_START), true);
146+
meow_hook::put(GetAddress(IS_INTRO_SEQUENCE_COMPLETE), 0x90C301B0);
147+
meow_hook::put(GetAddress(IS_INTRO_MOVIE_COMPLETE), 0x90C301B0);
148+
}
141149

142150
// WndProc
143151
pfn_WndProc = MH_STATIC_DETOUR(GetAddress(WND_PROC), WndProc);

0 commit comments

Comments
 (0)