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