main #3

Merged
LeenkxTeam merged 8 commits from Dante/LNXSDK:main into main 2026-05-31 05:25:07 +00:00
8 changed files with 25 additions and 13 deletions
Showing only changes of commit c467b54dd0 - Show all commits

Binary file not shown.

View File

@ -242,6 +242,7 @@ function checkKorePlatform(platform) {
|| platform === 'windowsapp'
|| platform === 'ios'
|| platform === 'osx'
|| platform === 'macos'
|| platform === 'android'
|| platform === 'linux'
|| platform === 'emscripten'
@ -256,7 +257,9 @@ function checkKorePlatform(platform) {
}
function koreplatform(platform) {
if (platform.endsWith('-hl'))
return platform.substr(0, platform.length - '-hl'.length);
platform = platform.substr(0, platform.length - '-hl'.length);
if (platform === 'macos')
return 'osx'; // krafix only recognizes osx, not macos
else
return platform;
}
@ -413,7 +416,7 @@ async function exportKhaProject(options) {
}
}
}
let shaderCompiler = new ShaderCompiler_1.ShaderCompiler(exporter, baseTarget, options.krafix, shaderDir, temp, buildDir, options, project.shaderMatchers);
let shaderCompiler = new ShaderCompiler_1.ShaderCompiler(exporter, options.target, options.krafix, shaderDir, temp, buildDir, options, project.shaderMatchers);
lastShaderCompiler = shaderCompiler;
try {
if (baseTarget !== Platform_1.Platform.Java && baseTarget !== Platform_1.Platform.WPF) {

View File

@ -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;