From b6a540634ee4bc2b19e566b0a267f21892c10907 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 4 Dec 2023 12:37:14 +0100 Subject: [PATCH] Fix compile --- armorsculpt/Sources/arm/io/ImportMesh.hx | 2 +- base/Sources/arm/App.hx | 2 +- base/Sources/arm/Project.hx | 4 ++-- base/Sources/arm/io/ExportTexture.hx | 2 +- base/Sources/arm/io/ImportMesh.hx | 2 +- base/Sources/arm/ui/BoxExport.hx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/armorsculpt/Sources/arm/io/ImportMesh.hx b/armorsculpt/Sources/arm/io/ImportMesh.hx index 7cf218e2..beeaa58e 100644 --- a/armorsculpt/Sources/arm/io/ImportMesh.hx +++ b/armorsculpt/Sources/arm/io/ImportMesh.hx @@ -41,7 +41,7 @@ class ImportMesh { Project.meshAssets = [path]; #if (krom_android || krom_ios) - kha.Window.get(0).title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf(".")); + kha.Window.get().title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf(".")); #end } diff --git a/base/Sources/arm/App.hx b/base/Sources/arm/App.hx index 836aa44f..dacf02c8 100644 --- a/base/Sources/arm/App.hx +++ b/base/Sources/arm/App.hx @@ -186,7 +186,7 @@ class App { Translator.loadTranslations(Config.raw.locale); UIFiles.filename = tr("untitled"); #if (krom_android || krom_ios) - kha.Window.get(0).title = tr("untitled"); + kha.Window.get().title = tr("untitled"); #end // Baked font for fast startup diff --git a/base/Sources/arm/Project.hx b/base/Sources/arm/Project.hx index 36708c8f..3ed19c55 100644 --- a/base/Sources/arm/Project.hx +++ b/base/Sources/arm/Project.hx @@ -90,9 +90,9 @@ class Project { #if krom_ios var documentDirectory = Krom.saveDialog("", ""); documentDirectory = documentDirectory.substr(0, documentDirectory.length - 8); // Strip /'untitled' - filepath = documentDirectory + "/" + kha.Window.get(0).title + ".arm"; + filepath = documentDirectory + "/" + kha.Window.get().title + ".arm"; #elseif krom_android - filepath = Krom.savePath() + "/" + kha.Window.get(0).title + ".arm"; + filepath = Krom.savePath() + "/" + kha.Window.get().title + ".arm"; #else projectSaveAs(saveAndQuit); return; diff --git a/base/Sources/arm/io/ExportTexture.hx b/base/Sources/arm/io/ExportTexture.hx index 3a1e56ac..d09cd94f 100644 --- a/base/Sources/arm/io/ExportTexture.hx +++ b/base/Sources/arm/io/ExportTexture.hx @@ -141,7 +141,7 @@ class ExportTexture { var textureSizeY = Config.getTextureResY(); var formatQuality = Context.raw.formatQuality; #if (krom_android || krom_ios) - var f = kha.Window.get(0).title; + var f = kha.Window.get().title; #else var f = UIFiles.filename; #end diff --git a/base/Sources/arm/io/ImportMesh.hx b/base/Sources/arm/io/ImportMesh.hx index 99f1b41f..918b26ad 100644 --- a/base/Sources/arm/io/ImportMesh.hx +++ b/base/Sources/arm/io/ImportMesh.hx @@ -59,7 +59,7 @@ class ImportMesh { Project.meshAssets = [path]; #if (krom_android || krom_ios) - kha.Window.get(0).title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf(".")); + kha.Window.get().title = path.substring(path.lastIndexOf(Path.sep) + 1, path.lastIndexOf(".")); #end } diff --git a/base/Sources/arm/ui/BoxExport.hx b/base/Sources/arm/ui/BoxExport.hx index 0fda8cfc..c603a104 100644 --- a/base/Sources/arm/ui/BoxExport.hx +++ b/base/Sources/arm/ui/BoxExport.hx @@ -364,7 +364,7 @@ class BoxExport { UIBox.hide(); UIFiles.show(Context.raw.exportMeshFormat == FormatObj ? "obj" : "arm", true, false, function(path: String) { #if (krom_android || krom_ios) - var f = kha.Window.get(0).title; + var f = kha.Window.get().title; #else var f = UIFiles.filename; #end