mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Use Mode::Create instead of Mode::Write when creating crash file (#1134)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user