From ab1e154ab8c0f1837dfda28b7dce443b162578c2 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Wed, 14 Jul 2021 23:02:34 -0700 Subject: [PATCH] :zap: updated Save() and Load() paths --- src/bank.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bank.cpp b/src/bank.cpp index 241b45d..b7f9497 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -289,7 +289,7 @@ const char *Bank::Save() { #endif save_start: - std::ofstream users_save("users.dat", std::ios::out | std::ios::binary); + std::ofstream users_save(users_location, std::ios::out | std::ios::binary); if (!users_save) { throw std::invalid_argument("Cannot access saving file\n"); @@ -337,7 +337,7 @@ const char *Bank::Save() //NOT THREAD SAFE, BY NO MEANS SHOULD THIS BE CALLED WHILE RECEIEVING REQUESTS void Bank::Load() { - std::ifstream users_save("users.dat", std::ios::out | std::ios::binary); + std::ifstream users_save(users_location, std::ios::out | std::ios::binary); if (!users_save) { throw std::invalid_argument("Cannot access saving file\n");