diff options
Diffstat (limited to 'App')
| -rw-r--r-- | App/App.vcxproj | 5 | ||||
| -rw-r--r-- | App/Main.cpp | 3 | ||||
| -rw-r--r-- | App/Version.h | 2 |
3 files changed, 8 insertions, 2 deletions
| diff --git a/App/App.vcxproj b/App/App.vcxproj index 1633837..2597b8d 100644 --- a/App/App.vcxproj +++ b/App/App.vcxproj | |||
| @@ -72,15 +72,19 @@ | |||
| 72 | <PropertyGroup Label="UserMacros" /> | 72 | <PropertyGroup Label="UserMacros" /> |
| 73 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 73 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 74 | <LinkIncremental>true</LinkIncremental> | 74 | <LinkIncremental>true</LinkIncremental> |
| 75 | <TargetName>WitnessRandomizer</TargetName> | ||
| 75 | </PropertyGroup> | 76 | </PropertyGroup> |
| 76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 77 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 77 | <LinkIncremental>true</LinkIncremental> | 78 | <LinkIncremental>true</LinkIncremental> |
| 79 | <TargetName>WitnessRandomizer</TargetName> | ||
| 78 | </PropertyGroup> | 80 | </PropertyGroup> |
| 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 81 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 80 | <LinkIncremental>false</LinkIncremental> | 82 | <LinkIncremental>false</LinkIncremental> |
| 83 | <TargetName>WitnessRandomizer</TargetName> | ||
| 81 | </PropertyGroup> | 84 | </PropertyGroup> |
| 82 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 85 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 83 | <LinkIncremental>false</LinkIncremental> | 86 | <LinkIncremental>false</LinkIncremental> |
| 87 | <TargetName>WitnessRandomizer</TargetName> | ||
| 84 | </PropertyGroup> | 88 | </PropertyGroup> |
| 85 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 89 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 86 | <ClCompile> | 90 | <ClCompile> |
| @@ -151,6 +155,7 @@ | |||
| 151 | <LanguageStandard>stdcpp17</LanguageStandard> | 155 | <LanguageStandard>stdcpp17</LanguageStandard> |
| 152 | <AdditionalIncludeDirectories>..\Source;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | 156 | <AdditionalIncludeDirectories>..\Source;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
| 153 | <TreatWarningAsError>true</TreatWarningAsError> | 157 | <TreatWarningAsError>true</TreatWarningAsError> |
| 158 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| 154 | </ClCompile> | 159 | </ClCompile> |
| 155 | <Link> | 160 | <Link> |
| 156 | <SubSystem>Windows</SubSystem> | 161 | <SubSystem>Windows</SubSystem> |
| diff --git a/App/Main.cpp b/App/Main.cpp index 6ebef7e..7a8e7f3 100644 --- a/App/Main.cpp +++ b/App/Main.cpp | |||
| @@ -54,7 +54,8 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) | |||
| 54 | GetWindowText(hwndSeed, &text[0], 100); | 54 | GetWindowText(hwndSeed, &text[0], 100); |
| 55 | int seed = _wtoi(text.c_str()); | 55 | int seed = _wtoi(text.c_str()); |
| 56 | 56 | ||
| 57 | if (seedIsRNG || text.empty()) { | 57 | // TODO: text needs to be resized! |
| 58 | if (seedIsRNG || wcslen(text.c_str()) == 0) { | ||
| 58 | seed = Random::RandInt(0, 100000); | 59 | seed = Random::RandInt(0, 100000); |
| 59 | seedIsRNG = true; | 60 | seedIsRNG = true; |
| 60 | } | 61 | } |
| diff --git a/App/Version.h b/App/Version.h index 8029020..04b6d2b 100644 --- a/App/Version.h +++ b/App/Version.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #define MAJOR 4 | 6 | #define MAJOR 4 |
| 7 | #define MINOR 0 | 7 | #define MINOR 0 |
| 8 | #define PATCH 4 | 8 | #define PATCH 5 |
| 9 | 9 | ||
| 10 | #define VERSION_STR TO_STRING(MAJOR) L"." TO_STRING(MINOR) L"." TO_STRING(PATCH) | 10 | #define VERSION_STR TO_STRING(MAJOR) L"." TO_STRING(MINOR) L"." TO_STRING(PATCH) |
| 11 | #define VERSION MAJOR, MINOR, PATCH | 11 | #define VERSION MAJOR, MINOR, PATCH |
