Skip to content

Commit 4d9c7c6

Browse files
committed
doc: update Readme.md
1 parent be23bf4 commit 4d9c7c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Usage of this software is also discussed in the in-game help (press h in game).
99

1010
## GENERAL INFORMATION
1111

12+
- To launch this program, `cd into the main directory` and execute `bin/main`. If your working directory is not the main directory, default input and saves will fail to load resulting most likely in a crash if the user wants to use these features. If you want to use these features without launching using the said method, you need to recompile this codebase after you change `std::ifstream myFile("input.txt");` from GoL.cpp `readFromFile` function and `std::fstream appFile("saves.txt", std::fstream::app);` from GoL.cpp `saveGameState` function to include the absolute path to `input.txt` and `saves.txt`.
1213
- You can use "w", "a", "s", "d" to move around the map.
1314
- You can use the mouse wheel to zoom-in (scroll up) and zoom-out (scroll down).
1415
- Press "x" to delete all living squares.

src/GoL.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
void fatalError(std::string errorString){
1212
std::cout << errorString << std::endl;
1313
std::cout << "press enter to quit...";
14-
std::cin.get();
1514
SDL_Quit();
15+
std::cin.get();
1616
exit(1);
1717
}
1818

0 commit comments

Comments
 (0)