Added experimental 'Shared Favorite Songs' option.

This commit is contained in:
Thome Valentin
2022-05-16 06:47:59 +02:00
parent 90651282c0
commit 4a8e0707f0
8 changed files with 145 additions and 10 deletions

View File

@@ -18,7 +18,11 @@ export function isRequiredCoreVersion(major: number, minor: number) {
return core_major > major || (core_major === major && core_minor >= minor)
};
export function isAsphyxiaDebugMode() {
export function isAsphyxiaDebugMode() : boolean {
const argv = process.argv
return argv.includes("--dev") || argv.includes("--console")
}
export function isSharedFavoriteMusicEnabled() : boolean{
return Boolean(U.GetConfig("shared_favorite_songs"))
}