| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Desktop Mode — Games framework config. | |
| 3 | + * OpenStation — Games framework config. | |
| 4 | 4 | * |
| 5 | 5 | * Framework-level values every game receives on its launch-context |
| 6 | 6 | * `config` (merged in by the `serverGames` payload builder; a game's |
| 7 | 7 | * own `config` keys win on collision): |
| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | * framework asset, not a per-game one: it is |
| 12 | 12 | * identical for every player, which is what lets |
| 13 | 13 | * seeded games generate the same puzzle worldwide. |
| 14 | 14 | * |
| 15 | - * @package WPDesktopMode | |
| 15 | + * @package OpenStation | |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | 18 | defined( 'ABSPATH' ) || exit; |
| 19 | 19 | |
| @@ -23,11 +23,11 @@ | ||
| 23 | 23 | * otherwise). |
| 24 | 24 | * |
| 25 | 25 | * @return string The dictionary URL. |
| 26 | 26 | */ |
| 27 | -function desktop_mode_games_words_url() { | |
| 28 | - $words_file = DESKTOP_MODE_DIR . 'assets/games/words.txt'; | |
| 29 | - $words_url = DESKTOP_MODE_URL . 'assets/games/words.txt'; | |
| 27 | +function openstation_games_words_url() { | |
| 28 | + $words_file = OPENSTATION_DIR . 'assets/games/words.txt'; | |
| 29 | + $words_url = OPENSTATION_URL . 'assets/games/words.txt'; | |
| 30 | 30 | if ( file_exists( $words_file ) ) { |
| 31 | 31 | $words_url = add_query_arg( 'ver', (string) filemtime( $words_file ), $words_url ); |
| 32 | 32 | } |
| 33 | 33 | |
| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | * all users (a translated list, a themed list), not per user. |
| 40 | 40 | * |
| 41 | 41 | * @param string $words_url The dictionary URL (with `ver` cache-bust). |
| 42 | 42 | */ |
| 43 | - return (string) apply_filters( 'desktop_mode_games_words_url', $words_url ); | |
| 43 | + return (string) apply_filters( 'openstation_games_words_url', $words_url ); | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * The framework-level `config` keys merged into every game's launch |
| @@ -50,9 +50,9 @@ | ||
| 50 | 50 | * @internal |
| 51 | 51 | * |
| 52 | 52 | * @return array Framework config keys. |
| 53 | 53 | */ |
| 54 | -function desktop_mode_games_framework_config() { | |
| 54 | +function openstation_games_framework_config() { | |
| 55 | 55 | return array( |
| 56 | - 'wordsUrl' => esc_url_raw( desktop_mode_games_words_url() ), | |
| 56 | + 'wordsUrl' => esc_url_raw( openstation_games_words_url() ), | |
| 57 | 57 | ); |
| 58 | 58 | } |