// We're going to hijack the existing session and load a new savegame into it. This will mainly occur when users click on links in Bugzilla that will automatically copy saves and load them
// We're going to hijack the existing session and load a new savegame into it. This will mainly occur when users click on links in Bugzilla that will automatically copy saves and load them
// directly from the web browser. The -hijack command prevents the launcher from objecting that there is already an instance of the game.
// directly from the web browser. The -hijack command prevents the launcher from objecting that there is already an instance of the game.
if(CommandLine()->CheckParm("-hijack"))
if(CommandLine()->CheckParm("-hijack"))
@ -1430,12 +1437,12 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
}
}
else
else
{
{
if(!multiRun){
if(!g_MultiRun){
::MessageBox(NULL,"Only one instance of the game can be running at one time.","Source - Warning",MB_ICONINFORMATION|MB_OK);
::MessageBox(NULL,"Only one instance of the game can be running at one time.","Source - Warning",MB_ICONINFORMATION|MB_OK);
}
}
}
}
if(!multiRun){
if(!g_MultiRun){
returnretval;
returnretval;
}
}
}
}
@ -1443,7 +1450,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
#elif defined( POSIX )
#elif defined( POSIX )
else
else
{
{
if(!GrabSourceMutex())
if(!GrabSourceMutex()&&!g_MultiRun)
{
{
::MessageBox(NULL,"Only one instance of the game can be running at one time.","Source - Warning",0);
::MessageBox(NULL,"Only one instance of the game can be running at one time.","Source - Warning",0);