forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
@ -273,6 +273,7 @@ function checkKorePlatform(platform: string) {
|
||||
|| platform === 'windowsapp'
|
||||
|| platform === 'ios'
|
||||
|| platform === 'osx'
|
||||
|| platform === 'macos'
|
||||
|| platform === 'android'
|
||||
|| platform === 'linux'
|
||||
|| platform === 'emscripten'
|
||||
@ -287,8 +288,12 @@ function checkKorePlatform(platform: string) {
|
||||
}
|
||||
|
||||
function koreplatform(platform: string) {
|
||||
if (platform.endsWith('-hl')) return platform.substr(0, platform.length - '-hl'.length);
|
||||
else return platform;
|
||||
if (platform.endsWith('-hl'))
|
||||
platform = platform.substr(0, platform.length - '-hl'.length);
|
||||
if (platform === 'macos')
|
||||
return 'osx'; // krafix only recognizes osx, not macos
|
||||
else
|
||||
return platform;
|
||||
}
|
||||
|
||||
let kore = false;
|
||||
|
||||
Reference in New Issue
Block a user