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 = {
enable = true;
startFullscreen = true;
netplay.nickname = "ooks";
};
};

View file

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