Writing Files
Use gameWrapper->GetBakkesModPath()
and use that as the base path to write to (this will be %appdata%/bakkesmod/bakkesmod
). This works for both Epic and Steam installs
Make sure you’ve included fstream
|
|
C++17
|
|
|
|
We highly recommend using C++17. This is the default in the template. If not using the template, in Visual Studio go to your project’s properties -> C/C++ -> Language -> C++ Language Standard -> ISO C++17 Standard (/std:c++17)
.
This will allow you to use std::filesystem::path which prevents a lot of pathing errors (like weird characters in folder names and missing/mixed folder separators) and in general is just much easier to work with.
Written by bakkes. Collaborations from ubelhj