Default global_leaderboard on in the web build

Players landing on lindholm.dev/kobo/ are there specifically to play the
networked version, so on by default matches expectations. Native build
keeps the off default — desktop players didn't ask for network calls
from a single-player arcade game.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ville Lindholm 2026-06-05 12:04:00 +03:00
parent 8b3e21b5f3
commit 6d073c136d
No known key found for this signature in database
GPG Key ID: 89AE9EAA3B6FDE7C

View File

@ -105,9 +105,15 @@ void prefs_t::init()
key("scores", scoredir, ""); desc("Score File Path");
comment("--- Global leaderboard ---------------------");
// Default off: this code is shipped dormant until the backend at
// leaderboard_url exists. Flip on once the server is live.
// Web build ships with the leaderboard on by default — players land on
// lindholm.dev/kobo/ specifically to play it. Native build stays off
// until the user opts in; a desktop player may not want network calls
// from a single-player arcade game.
#ifdef __EMSCRIPTEN__
yesno("global_leaderboard", global_leaderboard, 1);
#else
yesno("global_leaderboard", global_leaderboard, 0);
#endif
desc("Submit Scores to Global Leaderboard");
key("leaderboard_board", leaderboard_board, "");
desc("Leaderboard Board Name (shared with friends)");