From 1ed58cfb3456897c291130e6539be56c4075851c Mon Sep 17 00:00:00 2001 From: Exkywor Date: Wed, 26 May 2021 15:16:23 -0600 Subject: [PATCH] Add prompt for pressing Enter to exit the program --- CHANGELOG.md | 2 ++ README.md | 2 +- res/INFO.rc | 10 +++++----- res/info.res | Bin 13848 -> 13848 bytes src/MECamCalc.c | 7 +++++++ 5 files changed, 15 insertions(+), 6 deletions(-) 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 18c9d781a94140cb586d69d116e0cb300a79581f..406821f16675168379cfca4daca59399f2ee0744 100644 GIT binary patch delta 43 vcmbP{Gb3liB4bV_1_lO3AZD7JXec}Rgz*zbqsePc+=1j*lf^)CrfEF@93&0n delta 39 rcmbP{Gb3liB4bttAYh!FXs9^(gz*zbgUM@6+=1j*lf^)CrfEF@4B`#h 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; }