mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-10 21:07:54 -04:00
Create the logs folder.
This commit is contained in:
parent
0c32d76a4a
commit
55fa0064b9
@ -218,6 +218,7 @@ pub fn main() !void {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// init logging.
|
// init logging.
|
||||||
|
try std.fs.cwd().makePath("logs");
|
||||||
logFile = std.fs.cwd().createFile("logs/latest.log", .{}) catch unreachable;
|
logFile = std.fs.cwd().createFile("logs/latest.log", .{}) catch unreachable;
|
||||||
defer logFile.close();
|
defer logFile.close();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user