Fix erroneous use of C4UpdateDlg

Julius Michaelis 2012-03-14 22:53:05 +01:00
parent 67cc074f95
commit 14251a7a31
2 changed files with 4 additions and 3 deletions

View File

@ -144,7 +144,7 @@ bool C4Application::DoInit(int argc, char * argv[])
if (!IsResStrTableLoaded())
Log("WARNING: No language string table loaded!");
#ifdef WIN32
#if defined(WIN32) && defined(WITH_AUTOMATIC_UDPATE)
// Windows: handle incoming updates directly, even before starting up the gui
// because updates will be applied in the console anyway.
if (Application.IncomingUpdate)

View File

@ -21,10 +21,11 @@
*/
// dialogs for update, and the actual update application code
#include "C4Include.h"
// Don't compile this class if automatic update is disabled
#ifdef WITH_AUTOMATIC_UPDATE
#include "C4Include.h"
#include "C4UpdateDlg.h"
#include "C4DownloadDlg.h"