mirror of https://github.com/fairyglade/ly.git
Delete old save file if it's been migrated
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
8995c590eb
commit
cab3a7d214
|
@ -667,6 +667,9 @@ pub fn main() !void {
|
||||||
.session_index = session.label.current,
|
.session_index = session.label.current,
|
||||||
};
|
};
|
||||||
ini.writeFromStruct(save_data, file.writer(), null, true, .{}) catch break :save_last_settings;
|
ini.writeFromStruct(save_data, file.writer(), null, true, .{}) catch break :save_last_settings;
|
||||||
|
|
||||||
|
// Delete previous save file if it exists
|
||||||
|
std.fs.cwd().deleteFile(config.save_file) catch {};
|
||||||
}
|
}
|
||||||
|
|
||||||
var shared_err = try SharedError.init();
|
var shared_err = try SharedError.init();
|
||||||
|
|
Loading…
Reference in New Issue