1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Portability fix for „Win64”. 32-bit DLLs (bink, smack) cannot be loaded, so an empty player-placeholder is used to capture calls we can't properly handle.

Probably some fixes for Linux will be needed. (I guess the whole thing could use some refactoring to unify more code)
This commit is contained in:
Michał W. Urbańczyk
2011-08-08 07:12:18 +00:00
parent b05a0c7c83
commit 05f166f751
4 changed files with 42 additions and 10 deletions

View File

@@ -258,7 +258,11 @@ int main(int argc, char** argv)
tlog0 <<"\tInitializing screen: "<<pomtime.getDif() << std::endl;
// Initialize video
#if defined _M_X64 && defined _WIN32 //Win64 -> cannot load 32-bit DLLs for video handling
CCS->videoh = new CEmptyVideoPlayer;
#else
CCS->videoh = new CVideoPlayer;
#endif
tlog0<<"\tInitializing video: "<<pomtime.getDif()<<std::endl;
//we can properly play intro only in the main thread, so we have to move loading to the separate thread