From 6d073c136d48b37db16466fbe4590eacadee781c Mon Sep 17 00:00:00 2001 From: Ville Lindholm Date: Fri, 5 Jun 2026 12:04:00 +0300 Subject: [PATCH] Default global_leaderboard on in the web build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- prefs.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/prefs.cpp b/prefs.cpp index 595d63b..6b09186 100644 --- a/prefs.cpp +++ b/prefs.cpp @@ -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)");