summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 21:06:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 21:06:17 +0000
commit13be12c8120a993406c8301fd84b9f130e465c58 (patch)
tree80930f3efe6764ba9d291bd479d26a31bbb87835
parent4a0a02a4ef790cb62e914652d3645eeaac1c1053 (diff)
Prompting for wether or not to wipe the .h and build from clean (default to no)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7272 e03df62e-2008-0410-955e-edbf42e46eb7
-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)