project-plus: add fullscreen/analytics option

This commit is contained in:
ooks-io 2025-01-16 11:07:07 +11:00
parent 0873f56c28
commit d91bb7c006
2 changed files with 25 additions and 13 deletions

View file

@ -22,6 +22,7 @@ in {
}; };
ooknet.gaming.project-plus = { ooknet.gaming.project-plus = {
enable = true; enable = true;
startFullscreen = true;
netplay.nickname = "ooks"; netplay.nickname = "ooks";
}; };
}; };

View file

@ -62,6 +62,12 @@ in {
}; };
}; };
analytics = {
enable = mkEnableOption "Enable anaylytics";
};
startFullscreen = mkEnableOption "Start emulated game fullscreen";
gamesDir = mkOption { gamesDir = mkOption {
type = str; type = str;
default = "./Games"; default = "./Games";
@ -94,8 +100,7 @@ in {
Core = { Core = {
DefaultISO = "${cfg.userDir}/Games/brawl.iso"; DefaultISO = "${cfg.userDir}/Games/brawl.iso";
}; };
Netplay = Netplay = {
{
SelectedHostGame = "Project+ Netplay Launcher.dol"; SelectedHostGame = "Project+ Netplay Launcher.dol";
BufferSize = cfg.netplay.buffer; BufferSize = cfg.netplay.buffer;
Nickname = cfg.netplay.nickname; Nickname = cfg.netplay.nickname;
@ -105,8 +110,14 @@ in {
ConnectPort = "0x0a42"; ConnectPort = "0x0a42";
HostCode = 00000000; HostCode = 00000000;
TraversalChoice = "traversal"; TraversalChoice = "traversal";
} };
// cfg.extraSettings; Analytics = {
Enabled = cfg.analytics.enable;
PermissionAsked = true;
};
Display = {
Fullscreen = cfg.startFullscreen;
};
}; };
}; };
# Copy dolphin GameSettings configuration from faster-project-plus config # Copy dolphin GameSettings configuration from faster-project-plus config