Fix for generating launch links
This commit is contained in:
@@ -757,11 +757,17 @@ async function BuildLaunchLink(engine, core, platformId, gameId, romId, isMediaG
|
||||
console.log('RomId is invalid!');
|
||||
}
|
||||
|
||||
// check if isMediaGroup is a boolean in a number format
|
||||
if (typeof (isMediaGroup) == 'boolean' && (Number(isMediaGroup) == 0 || Number(isMediaGroup) == 1)) {
|
||||
// check if isMediaGroup is a boolean in a number format - if not, verify it is a boolean
|
||||
if (isMediaGroup == 0 || isMediaGroup == 1) {
|
||||
// value is a number, and is valid
|
||||
} else {
|
||||
if (isMediaGroup == true || isMediaGroup == false) {
|
||||
// value is a boolean, and is valid
|
||||
} else {
|
||||
isValid = false;
|
||||
console.log('IsMediaGroup is invalid!');
|
||||
}
|
||||
}
|
||||
|
||||
// check if filename is a string
|
||||
if (typeof (filename) != 'string') {
|
||||
|
Reference in New Issue
Block a user