diff --git a/src/main.cpp b/src/main.cpp index 4f38a22..cf8dc90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1168,10 +1168,15 @@ int main() { bool exited = false; + bool skipped = false; + while(!exited) { + if(!skipped) std::cout << BOLDBLUE << name << ' ' << BOLDGREEN << version << RESET << "\n\n"; + skipped = true; + str action; std::cout << BOLDYELLOW << "Actions:\n\n"; @@ -1187,7 +1192,7 @@ int main() { getline(std::cin, action); - if(action == "n") { + if(action == "n") { gameState = {0, 0, 0, 0, 0, 0, 0, 0, false, false, false, false, false}; naming: @@ -1221,7 +1226,7 @@ naming: indexFileWrite << index.dump(4) << std::flush; std::cout << index.dump(4); - } else if (action == "l") { + } else if(action == "l") { std::ifstream indexFile("save/saveindex.json"); json index = json::parse(indexFile); @@ -1471,11 +1476,12 @@ select: CMD::kill(gameThread); - // + clearTempGameState(); } + skipped = false; rerun: - int useless = 0; + int useless = 0; } return 0; diff --git a/todo.txt b/todo.txt index 07c1060..a253274 100644 --- a/todo.txt +++ b/todo.txt @@ -1,25 +1,29 @@ -TODOLIST +# TODOLIST 0.0.2 [ ] -[x] refactoring { +[ ] refactoring { - - [x] move the upgrade and acheivement lists out of save - - [x] rename save to something better - - [x] redo the list command + - [x] move the upgrade and acheivement lists out of save + - [x] rename save to something better + - [x] redo the list command + - [ ] section off code into regions } -[ ] make intermideate interface { +[x] make main menu { + - [x] make game restart on termination - - [x] add game intermideate interface + - [x] add the meat - [x] remove load command - [x] index saves - - [ ] add save renaming and copy + - [x] add save renaming and copy } [ ] acheivements { - - [x] add interface functions - - [ ] add getcheck triggers - - [ ] add display subcommands + - [x] add interface functions + - [ ] add display subcommands + - [ ] add test acheivment and test + - [ ] add the rest + - [ ] make acheivements save }