diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c17dad..ea61b92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 1.0.2 - 2021-05-26 +- The monkeys in my brain that made me forget to add a prompt to exit the program have been taken care of. Now, after displaying the results, the tool properly awaits for the user to press Enter to exit. ## 1.0.1 - 2021-05-25 - Improved user prompts and result styles. diff --git a/README.md b/README.md index 7a8140f..158d4c1 100644 --- a/README.md +++ b/README.md @@ -53,4 +53,4 @@ Rotation: 0.00 25.35 -113.74 ``` ## Important -As version 1.0.1, the input is not validated. However, there should be no issues as long as you input numerical values when prompted. \ No newline at end of file +As version 1.0.2, the input is not validated. However, there should be no issues as long as you input numerical values when prompted. \ No newline at end of file diff --git a/res/INFO.rc b/res/INFO.rc index 8ad501f..8b11ffa 100644 --- a/res/INFO.rc +++ b/res/INFO.rc @@ -1,18 +1,18 @@ img ICON "./me3.ico" 1 VERSIONINFO -FILEVERSION 1,0,1,0 -PRODUCTVERSION 1,0,1,0 +FILEVERSION 1,0,2,0 +PRODUCTVERSION 1,0,2,0 BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904E4" BEGIN VALUE "FileDescription", "Calculate Mass Effect camera motion values" - VALUE "FileVersion", "1.0.1" - VALUE "OriginalFilename", "MECamCalc_1.0.1.exe" + VALUE "FileVersion", "1.0.2" + VALUE "OriginalFilename", "MECamCalc_1.0.2.exe" VALUE "ProductName", "Mass Effect Camera Motion Calculator" - VALUE "ProductVersion", "1.0.1" + VALUE "ProductVersion", "1.0.2" END END BLOCK "VarFileInfo" diff --git a/res/info.res b/res/info.res index 18c9d78..406821f 100644 Binary files a/res/info.res and b/res/info.res differ diff --git a/src/MECamCalc.c b/src/MECamCalc.c index 8989c07..6215a7d 100644 --- a/src/MECamCalc.c +++ b/src/MECamCalc.c @@ -116,6 +116,13 @@ int main() { printVals(rotE); printf("\n"); + fflush(stdin); + int prompt; + do { + printf("Press Enter to exit the program"); + prompt = getchar(); + } while (prompt != '\n' && prompt != EOF); + return 0; }