You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed OptionSelectEngine invalid centring time when using simple option select
fixed issues with cardodge left/right moving checker (in MoveUserCarLeft/Right), and positioning of bottomRight.X variable across the whole game
Fixed incorrect error messages or error messages not showing up in FileCryptor command
Consistency: add newlines to success messages in FileCryptor command
Consistency: add success messages for Windows encryption/decryption
Fix error checking not working in delete command
Fix issues with configuration file formatting under Windows 7
Fix ZeeTerminal crashing when cancel pressed in filecryptor or delete command
Colour change for Windows Dialogue instructions for Delete and FileCryptor commands
Make CarDodge front screen more spatious in terms of decorative cars being more spaced out from the main menu text, to better properly support the old OptionSelectEngine.
std::cout << "File/folder encryption complete!\n" << nNumberOfFailedFiles << " files have not been encrypted due to an error. Errors have been displayed above.\nElapsed Time: " << ElapsedSeconds.count() << " seconds.\n\n";
std::cout << "File/folder decryption complete!\n" << nNumberOfFailedFiles << " files have not been decrypted due to an error. Errors have been displayed above.\nElapsed Time: " << ElapsedSeconds.count() << " seconds.\n\n";
std::cout << wordWrap("\n\nThis command allows you to delete files or folders permanently.\nType in \"*open\" for Windows File Dialogue, or \"*openfolder\" for Windows Folder Dialogue.\n\n");
330
+
std::cout << wordWrap("\n\nThis command allows you to delete files or folders permanently.\n");
331
+
colour(LCYN, ConfigObjMain.sColourGlobalBack);
332
+
std::cout << wordWrap("Type in \"*open\" for Windows File Dialogue, or \"*openfolder\" for Windows Folder Dialogue.\n\n");
// 2. Check if open successful; if not, use default location; if not, return false
113
113
if (CreateConfigOut.fail() == true) {
114
114
VerbosityDisplay("In ConfigFileSystem::CreateConfigFile(): Warning - User file location cannot be opened. Attempting to create config file in default location.\n", nObjectID);
VerbosityDisplay("In ConfigFileSystem::CreateConfigFile(): ERROR - Default location could not be opened. Configuration file creation failed.", nObjectID);
// 3. Test for file existence in user-set location and ZeeTerminal folder
148
148
if (TestStreamIn.fail() == true) {
149
149
VerbosityDisplay("In ConfigFileSystem::WriteConfigFile(): Warning- User-defined file seems to be nonexistent. Attempting to write to default location.\n", nObjectID);
// 3. Test for file existence in user-set location and ZeeTerminal folder
215
215
if (TestStreamIn.fail() == true) {
216
216
VerbosityDisplay("In ConfigFileSystem::ReadConfigFile(): Warning- User-defined file seems to be nonexistent. Attempting to read from default location.\n", nObjectID);
// Ensure that terminal is suitable for playing the game
206
201
if (!VerifyIfGameIsRunnable(true, true)) {
207
202
std::cout << "Take your time to resize the main menu window. The CarDodge main menu will reappear when the window is resized.\nPress any key to exit the game.\n";
203
+
bool bExitGame = false;
208
204
while (true) {
209
205
// Check if user inputted anything
210
206
if (_kbhit()) {
211
207
_getch();
212
-
return;
208
+
bExitGame = true;
209
+
break;
213
210
}
214
211
215
212
// Check window size repeatedly
@@ -221,6 +218,9 @@ void CarDodgeMainMenu()
221
218
sleep(1);
222
219
}
223
220
221
+
// Game needs to be exited as user pressed a key - break out of main while loop
222
+
if (bExitGame) break;
223
+
224
224
// Clear screen to start terminal afresh from any error messages
0 commit comments