summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win/configure.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/win/configure.cpp b/win/configure.cpp
index 5e3ce8b18..bb8cacd0d 100644
--- a/win/configure.cpp
+++ b/win/configure.cpp
@@ -141,6 +141,16 @@ bad_rev:
int __stdcall WinMain(IN HINSTANCE hInstance, IN HINSTANCE hPrevInstance, IN LPSTR lpCmdLine, IN int nShowCmd )
{
+ FILE * j = fopen("inspircd_config.h", "r");
+ if (j)
+ {
+ if (MessageBox(0, "inspircd_config.h already exists. Remove it and build from clean?", "Configure program", MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2) != IDYES)
+ {
+ fclose(j);
+ exit(0);
+ }
+ }
+
AllocConsole();
// pipe standard handles to this console
@@ -194,14 +204,6 @@ void Run()
int revision = get_svn_revision(revision_text, MAX_PATH);
char version[514];
-
- FILE * j = fopen("inspircd_config.h", "r");
- if (j)
- {
- fclose(j);
- exit(0);
- }
-
// grab version
FILE * fI = fopen("..\\src\\version.sh", "r");
if(fI)