From 1ac428a93244e455098a3e95312e804e2da23d06 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Thu, 16 Mar 2023 21:12:29 +0100 Subject: [PATCH] Pulled in some changes from "Rename the project" --- CMakeLists.txt | 2 +- src/common/platform/win32/i_crash.cpp | 6 ++--- src/common/scripting/frontend/zcc_parser.cpp | 4 ++-- src/version.h | 24 ++++++++++++-------- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94101d28a1..a2bdc0636d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,7 +155,7 @@ IF( NOT CMAKE_BUILD_TYPE ) ENDIF() set( ZDOOM_OUTPUT_DIR ${CMAKE_BINARY_DIR} CACHE PATH "Directory where zdoom.pk3 and the executable will be created." ) -set( ZDOOM_EXE_NAME "gzdoom" CACHE FILEPATH "Name of the executable to create" ) +set( ZDOOM_EXE_NAME "vkdoom" CACHE FILEPATH "Name of the executable to create" ) if( MSVC ) # Allow the user to use ZDOOM_OUTPUT_DIR as a single release point. # Use zdoom, zdoomd, zdoom64, and zdoomd64 for the binary names diff --git a/src/common/platform/win32/i_crash.cpp b/src/common/platform/win32/i_crash.cpp index ab65b2ea59..6fa5ebd2a4 100644 --- a/src/common/platform/win32/i_crash.cpp +++ b/src/common/platform/win32/i_crash.cpp @@ -1796,8 +1796,8 @@ static INT_PTR CALLBACK OverviewDlgProc (HWND hDlg, UINT message, WPARAM wParam, SetWindowTextW(edit, L"Please tell us about this problem.\n" "The information will NOT be sent to Microsoft.\n\n" "An error report has been created that you can submit to help improve " GAMENAME ". " - "You can either save it to disk and make a report in the bugs forum at " FORUM_URL ", " - "or you can send it directly without letting other people know about it."); + /*"You can either save it to disk and make a report in the bugs forum at " FORUM_URL ", " + "or you can send it directly without letting other people know about it."*/); SendMessageW(edit, EM_SETSEL, 0, 81); SendMessageW(edit, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&charFormat); SendMessageW(edit, EM_SETEVENTMASK, 0, ENM_LINK); @@ -1822,7 +1822,7 @@ static INT_PTR CALLBACK OverviewDlgProc (HWND hDlg, UINT message, WPARAM wParam, { if (link->msg == WM_LBUTTONDOWN) { - ShellExecuteA (NULL, "open", BUGS_FORUM_URL, NULL, NULL, 0); + //ShellExecuteA (NULL, "open", BUGS_FORUM_URL, NULL, NULL, 0); SetWindowLongPtrW (hDlg, DWLP_MSGRESULT, 1); return TRUE; } diff --git a/src/common/scripting/frontend/zcc_parser.cpp b/src/common/scripting/frontend/zcc_parser.cpp index 978006054a..42917e560a 100644 --- a/src/common/scripting/frontend/zcc_parser.cpp +++ b/src/common/scripting/frontend/zcc_parser.cpp @@ -456,9 +456,9 @@ PNamespace *ParseOneScript(const int baselump, ZCCParseState &state) { sc.ScriptError("Bad version directive"); } - if (state.ParseVersion > MakeVersion(VER_MAJOR, VER_MINOR, VER_REVISION)) + if (state.ParseVersion > MakeVersion(ZSCRIPT_VER_MAJOR, ZSCRIPT_VER_MINOR, ZSCRIPT_VER_REVISION)) { - sc.ScriptError("The file you are attempting to run requires a newer version of " GAMENAME ".\n\nA version with ZScript version %d.%d.%d is required, but your copy of " GAMENAME " only supports %d.%d.%d. Please upgrade!", state.ParseVersion.major, state.ParseVersion.minor, state.ParseVersion.revision, VER_MAJOR, VER_MINOR, VER_REVISION); + sc.ScriptError("The file you are attempting to run requires a newer version of " GAMENAME ".\n\nA version with ZScript version %d.%d.%d is required, but your copy of " GAMENAME " only supports %d.%d.%d. Please upgrade!", state.ParseVersion.major, state.ParseVersion.minor, state.ParseVersion.revision, ZSCRIPT_VER_MAJOR, ZSCRIPT_VER_MINOR, ZSCRIPT_VER_REVISION); } } else diff --git a/src/version.h b/src/version.h index 5a5428c600..d583b93dbe 100644 --- a/src/version.h +++ b/src/version.h @@ -41,20 +41,26 @@ const char *GetVersionString(); /** Lots of different version numbers **/ -#define VERSIONSTR "4.11.0" +#define VERSIONSTR "5.0pre" // The version as seen in the Windows resource -#define RC_FILEVERSION 4,11,0,0 -#define RC_PRODUCTVERSION 4,11,0,0 +#define RC_FILEVERSION 5,0,9999,0 +#define RC_PRODUCTVERSION 5,0,9999,0 #define RC_PRODUCTVERSION2 VERSIONSTR + // These are for content versioning. -#define VER_MAJOR 4 -#define VER_MINOR 11 +#define VER_MAJOR 5 +#define VER_MINOR 0 #define VER_REVISION 0 +// These are for zscript versioning. +#define ZSCRIPT_VER_MAJOR 5 +#define ZSCRIPT_VER_MINOR 0 +#define ZSCRIPT_VER_REVISION 0 + // This should always refer to the GZDoom version a derived port is based on and not reflect the derived port's version number! -#define ENG_MAJOR 4 -#define ENG_MINOR 11 +#define ENG_MAJOR 5 +#define ENG_MINOR 0 #define ENG_REVISION 0 // Version identifier for network games. @@ -101,8 +107,8 @@ const char *GetVersionString(); #define GAMENAME "GZDoom" #define WGAMENAME L"GZDoom" #define GAMENAMELOWERCASE "gzdoom" -#define FORUM_URL "http://forum.zdoom.org/" -#define BUGS_FORUM_URL "http://forum.zdoom.org/viewforum.php?f=2" +//#define FORUM_URL "http://forum.zdoom.org/" +//#define BUGS_FORUM_URL "http://forum.zdoom.org/viewforum.php?f=2" #if defined(__APPLE__) || defined(_WIN32) #define GAME_DIR GAMENAME