core: fix gamemode import path

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-05 01:03:42 -07:00
parent f12f48b166
commit f25f435275

View file

@ -1331,7 +1331,7 @@ fn wantGamemode(allocator: std.mem.Allocator) error{ OutOfMemory, InvalidUtf8 }!
}
fn initLinuxGamemode() bool {
const gamemode = @import("mach-gamemode");
const gamemode = @import("../../../main.zig").gamemode;
gamemode.start();
if (!gamemode.isActive()) return false;
log.info("gamemode: activated", .{});
@ -1339,7 +1339,7 @@ fn initLinuxGamemode() bool {
}
fn deinitLinuxGamemode() void {
const gamemode = @import("mach-gamemode");
const gamemode = @import("../../../main.zig").gamemode;
gamemode.stop();
}