diff --git a/docs/building.md b/docs/building.md index a39588c..e737bbf 100644 --- a/docs/building.md +++ b/docs/building.md @@ -52,7 +52,8 @@ AVX2_CFLAGS=-mavx2 SSSE3_CFLAGS=-mssse3 SSE41_CFLAGS=-msse4.1 SSE42_CFLAGS=-msse cd ../.. mkdir build cd build -mv ../config.json config.json +cp ../config.json config.json +cp ../users.dat users.dat ``` ### CMake Flags diff --git a/src/bank.cpp b/src/bank.cpp index 9273090..85f2326 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -341,6 +341,7 @@ void Bank::Load() std::ifstream users_load(users_location, std::ios::out | std::ios::binary); if (!users_load.is_open()) { + std::ofstream users_save(users_location, std::ios::out | std::ios::binary); throw std::invalid_argument("Cannot access loading file\n"); } diff --git a/users.dat b/users.dat new file mode 100644 index 0000000..adebace Binary files /dev/null and b/users.dat differ