juk3n/fluffypublic Fork
⑂ dda4a51
Commits
⬇ Clone ▾
git clone https://git.rickub.com/juk3n/fluffy.git
git clone ssh://git@rickub.com/juk3n/fluffy.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

removed unneeded cout functions

Adrian Duraj committed 2024-06-27T10:57:08+02:00 Browse files
dda4a51 parent: c47d640
modified src/main.cpp +3 -5
@@ -28,7 +28,7 @@ std::string database_initialization_command =
2828
2929 std::string select_all_games_command = "SELECT * FROM games;";
3030
31-bool debugRun = true;
31+bool debugRun = false;
3232
3333 void printMessage(std::string message) {
3434 if (debugRun) {
@@ -169,10 +169,8 @@ auto runConsoleApp(sqlite3* database) -> void {
169169 }
170170
171171 auto main(int argc, char const *argv[]) -> int {
172- auto appDirectory{ std::filesystem::path(argv[0])};
173- std::cout << appDirectory.parent_path().string() << std::endl;
174- auto databasePath{ std::filesystem::path(appDirectory.parent_path().string() + "/data.db")};
175- std::cout << databasePath.string() << std::endl;
172+ auto appPath{ std::filesystem::path(argv[0])};
173+ auto databasePath{ std::filesystem::path(appPath.parent_path().string() + "/data.db")};
176174 bool newCreation = not std::filesystem::exists(databasePath.string());
177175 char *messageError;
178176 sqlite3 *database;
@@ -28,7 +28,7 @@ std::string database_initialization_command =
28 28
29 std::string select_all_games_command = "SELECT * FROM games;";29 std::string select_all_games_command = "SELECT * FROM games;";
30 30
31-bool debugRun = true;31+bool debugRun = false;
32 32
33 void printMessage(std::string message) {33 void printMessage(std::string message) {
34 if (debugRun) {34 if (debugRun) {
@@ -169,10 +169,8 @@ auto runConsoleApp(sqlite3* database) -> void {
169 }169 }
170 170
171 auto main(int argc, char const *argv[]) -> int {171 auto main(int argc, char const *argv[]) -> int {
172- auto appDirectory{ std::filesystem::path(argv[0])};172+ auto appPath{ std::filesystem::path(argv[0])};
173- std::cout << appDirectory.parent_path().string() << std::endl;173+ auto databasePath{ std::filesystem::path(appPath.parent_path().string() + "/data.db")};
174- auto databasePath{ std::filesystem::path(appDirectory.parent_path().string() + "/data.db")};
175- std::cout << databasePath.string() << std::endl;
176 bool newCreation = not std::filesystem::exists(databasePath.string());174 bool newCreation = not std::filesystem::exists(databasePath.string());
177 char *messageError;175 char *messageError;
178 sqlite3 *database;176 sqlite3 *database;