We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72df8fe commit 7ecc50cCopy full SHA for 7ecc50c
src/gui/windows/save_creation.zig
@@ -148,7 +148,7 @@ pub fn onOpen() void {
148
while(true) {
149
const path = std.fmt.allocPrint(main.stackAllocator.allocator, "saves/Save{}", .{num}) catch unreachable;
150
defer main.stackAllocator.free(path);
151
- if(!main.files.cwd().hasDir(path)) break;
+ if(!main.files.cubyzDir().hasDir(path)) break;
152
num += 1;
153
}
154
const name = std.fmt.allocPrint(main.stackAllocator.allocator, "Save{}", .{num}) catch unreachable;
0 commit comments