summaryrefslogtreecommitdiffstats
path: root/src/skel/win
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-02-18 22:55:26 +0100
committerwithmorten <morten.with@gmail.com>2021-02-18 22:55:26 +0100
commit781617d484ae7f7966ee7d3f1abe557c9ad9230c (patch)
treeb074bd2e34a66cf354270f4af7cb99a6f1657f00 /src/skel/win
parentupdate librw; render groups only if extension supported (diff)
downloadre3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar.gz
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar.bz2
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar.lz
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar.xz
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.tar.zst
re3-781617d484ae7f7966ee7d3f1abe557c9ad9230c.zip
Diffstat (limited to 'src/skel/win')
-rw-r--r--src/skel/win/win.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index 89c901b2..21bd0eb0 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -2273,7 +2273,7 @@ WinMain(HINSTANCE instance,
case GS_START_UP:
{
#ifdef NO_MOVIES
- gGameState = GS_INIT_ONCE;
+ gGameState = gbNoMovies ? GS_INIT_ONCE : GS_INIT_LOGO_MPEG;
#else
gGameState = GS_INIT_LOGO_MPEG;
#endif
@@ -2314,8 +2314,11 @@ WinMain(HINSTANCE instance,
case GS_INIT_INTRO_MPEG:
{
-#ifndef NO_MOVIES
+#ifdef NO_MOVIES
+ if (!gbNoMovies)
+#endif
CloseClip();
+#ifndef FIX_BUGS
CoUninitialize();
#endif
@@ -2353,8 +2356,11 @@ WinMain(HINSTANCE instance,
case GS_INIT_ONCE:
{
-#ifndef NO_MOVIES
+#ifdef NO_MOVIES
+ if (!gbNoMovies)
+#endif
CloseClip();
+#ifndef FIX_BUGS
CoUninitialize();
#endif