mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 07:40:34 +00:00
Merge remote-tracking branch 'origin/master' into miami
# Conflicts: # premake5.lua # src/render/Coronas.cpp # src/render/Timecycle.cpp # src/render/Timecycle.h
This commit is contained in:
commit
1c1fa25e6c
5 changed files with 44 additions and 7 deletions
|
@ -1863,7 +1863,11 @@ void PlayMovieInWindow(int cmdShow, const char* szFile)
|
|||
MultiByteToWideChar(CP_ACP, 0, szFile, -1, wFileName, sizeof(wFileName) - 1);
|
||||
|
||||
// Initialize COM
|
||||
#ifdef FIX_BUGS // will also return S_FALSE if it has already been inited in the same thread
|
||||
CoInitialize(nil);
|
||||
#else
|
||||
JIF(CoInitialize(nil));
|
||||
#endif
|
||||
|
||||
// Get the interface for DirectShow's GraphBuilder
|
||||
JIF(CoCreateInstance(CLSID_FilterGraph, nil, CLSCTX_INPROC,
|
||||
|
@ -2233,9 +2237,10 @@ WinMain(HINSTANCE instance,
|
|||
|
||||
case GS_INIT_INTRO_MPEG:
|
||||
{
|
||||
#ifndef NO_MOVIES
|
||||
CloseClip();
|
||||
|
||||
CoUninitialize();
|
||||
#endif
|
||||
|
||||
if ( FrontEndMenuManager.OS_Language == LANG_FRENCH || FrontEndMenuManager.OS_Language == LANG_GERMAN )
|
||||
PlayMovieInWindow(cmdShow, "movies\\GTAtitlesGER.mpg");
|
||||
|
@ -2269,8 +2274,10 @@ WinMain(HINSTANCE instance,
|
|||
|
||||
case GS_INIT_ONCE:
|
||||
{
|
||||
#ifndef NO_MOVIES
|
||||
CloseClip();
|
||||
CoUninitialize();
|
||||
#endif
|
||||
|
||||
#ifdef FIX_BUGS
|
||||
// draw one frame because otherwise we'll end up looking at black screen for a while if vsync is on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue