mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
⚡ updated Save() and Load() paths
This commit is contained in:
parent
30c4344055
commit
ab1e154ab8
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue