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:
parent
8b3e21b5f3
commit
6d073c136d
10
prefs.cpp
10
prefs.cpp
@ -105,9 +105,15 @@ void prefs_t::init()
|
|||||||
key("scores", scoredir, ""); desc("Score File Path");
|
key("scores", scoredir, ""); desc("Score File Path");
|
||||||
|
|
||||||
comment("--- Global leaderboard ---------------------");
|
comment("--- Global leaderboard ---------------------");
|
||||||
// Default off: this code is shipped dormant until the backend at
|
// Web build ships with the leaderboard on by default — players land on
|
||||||
// leaderboard_url exists. Flip on once the server is live.
|
// 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);
|
yesno("global_leaderboard", global_leaderboard, 0);
|
||||||
|
#endif
|
||||||
desc("Submit Scores to Global Leaderboard");
|
desc("Submit Scores to Global Leaderboard");
|
||||||
key("leaderboard_board", leaderboard_board, "");
|
key("leaderboard_board", leaderboard_board, "");
|
||||||
desc("Leaderboard Board Name (shared with friends)");
|
desc("Leaderboard Board Name (shared with friends)");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user