mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Delete old save file if it's been migrated
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -667,6 +667,9 @@ pub fn main() !void {
|
||||
.session_index = session.label.current,
|
||||
};
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user