-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare release of Bemuse v47.0.0 (#571)
Prepare release of Bemuse v47.0.0
- Loading branch information
Showing
14 changed files
with
379 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { getPreloadArchiveFlag } from './query-flags' | ||
|
||
let pending: string | null = String(getPreloadArchiveFlag() || '') || null | ||
|
||
/** | ||
* Returns `true` if there is a pending archive to be downloaded. | ||
* | ||
* @see https://github.com/bemusic/bemuse/pull/568 | ||
*/ | ||
export function hasPendingArchiveToLoad() { | ||
return !!pending | ||
} | ||
|
||
/** | ||
* Returns the URL to the pending archive to be downloaded. | ||
* This function can be called once. | ||
* After the URL is consumed, the pending URL is cleared. | ||
* | ||
* @see https://github.com/bemusic/bemuse/pull/568 | ||
*/ | ||
export function consumePendingArchiveURL() { | ||
try { | ||
return pending | ||
} finally { | ||
pending = null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
import query from 'bemuse/utils/query' | ||
|
||
/** | ||
* The `?server` flag specifies a URL to a Bemuse custom music server. | ||
* | ||
* @see https://bemuse.ninja/project/docs/music-server.html | ||
*/ | ||
export function getMusicServer() { | ||
return query.BEMUSE_MUSIC_SERVER || query.server | ||
} | ||
|
||
export function getInitialGrepString() { | ||
return query.grep | ||
/** | ||
* The `?archive` flag specifies a URL to a BMS archive file to be downloaded when the player enters the game. | ||
* | ||
* @see https://github.com/bemusic/bemuse/pull/568 | ||
* @see https://twitter.com/Nekokan_Server/status/1173186650865713153 | ||
*/ | ||
export function getPreloadArchiveFlag() { | ||
return query.archive | ||
} | ||
|
||
export function getTimeSynchroServer() { | ||
return query.BEMUSE_TIMESYNCHRO_SERVER | ||
/** | ||
* The `?grep` flag specifies the initials search text to be pre-filled when the player enters the music selection screen. | ||
*/ | ||
export function getInitialGrepString() { | ||
return query.grep | ||
} | ||
|
||
/** | ||
* The `?song` flag specifies the title of the song to be pre-selected when the player enters the music selection screen. | ||
*/ | ||
export function getInitiallySelectedSong() { | ||
return query.song | ||
} | ||
|
||
export function getTimeSynchroServer() { | ||
return query.BEMUSE_TIMESYNCHRO_SERVER | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.