Fix compile

This commit is contained in:
luboslenco
2023-12-04 12:37:14 +01:00
parent 4ec136871c
commit b6a540634e
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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