mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
⚡🐛 fixed initial setup problem
This commit is contained in:
parent
cbcfc1118c
commit
2599897788
3 changed files with 3 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ AVX2_CFLAGS=-mavx2 SSSE3_CFLAGS=-mssse3 SSE41_CFLAGS=-msse4.1 SSE42_CFLAGS=-msse
|
||||||
cd ../..
|
cd ../..
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
mv ../config.json config.json
|
cp ../config.json config.json
|
||||||
|
cp ../users.dat users.dat
|
||||||
```
|
```
|
||||||
|
|
||||||
### CMake Flags
|
### CMake Flags
|
||||||
|
|
|
||||||
|
|
@ -341,6 +341,7 @@ void Bank::Load()
|
||||||
std::ifstream users_load(users_location, std::ios::out | std::ios::binary);
|
std::ifstream users_load(users_location, std::ios::out | std::ios::binary);
|
||||||
if (!users_load.is_open())
|
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");
|
throw std::invalid_argument("Cannot access loading file\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
BIN
users.dat
Normal file
BIN
users.dat
Normal file
Binary file not shown.
Loading…
Reference in a new issue