Various changes.
This commit is contained in:
1 parent
bb90255002
commit
3475ca95c0
29 files changed
+110
-85
No files matched your search
+2
-2
@@ -740,12 +740,12 @@ fn serialize(self: *Settings) SaveError![]u8 {
|
||||
/// `~/.config/playpen/settings.json` when that isn't set.
|
||||
fn configPath(buf: []u8) ?[:0]const u8 {
|
||||
const dir = std.mem.span(glib.getUserConfigDir());
|
||||
return std.fmt.bufPrintZ(buf, "{s}/playpen/settings.json", .{dir}) catch null;
|
||||
return std.mem.printSentinel(buf, "{s}/playpen/settings.json", .{dir}, 0) catch null;
|
||||
}
|
||||
|
||||
fn configDir(buf: []u8) ?[:0]const u8 {
|
||||
const dir = std.mem.span(glib.getUserConfigDir());
|
||||
return std.fmt.bufPrintZ(buf, "{s}/playpen", .{dir}) catch null;
|
||||
return std.mem.printSentinel(buf, "{s}/playpen", .{dir}, 0) catch null;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user