fix: Use Mode::Create instead of Mode::Write when creating crash file (#1134)
This commit is contained in:
parent
f0be585fd8
commit
cac9a69ea2
@ -39,7 +39,7 @@ namespace hex::crash {
|
||||
};
|
||||
|
||||
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Config)) {
|
||||
wolv::io::File file(path / "crash.json", wolv::io::File::Mode::Write);
|
||||
wolv::io::File file(path / "crash.json", wolv::io::File::Mode::Create);
|
||||
if (file.isValid()) {
|
||||
file.writeString(crashData.dump(4));
|
||||
file.close();
|
||||
|
Loading…
Reference in New Issue
Block a user