luboslenco 2 هفته پیش
والد
کامیت
993e4a49e6

+ 2 - 1
base/tests/cube/project.js

@@ -2,11 +2,12 @@
 let flags = globalThis.flags;
 flags.with_iron = true;
 flags.lite = true;
+flags.with_eval = false;
 
 let project = new Project("test");
 project.add_project("../../");
 project.add_tsfiles("sources");
-project.add_tsfiles("../../sources/ts/iron");
+project.add_tsfiles("../../sources/ts");
 project.add_shaders("../../shaders/draw/*.kong");
 project.add_shaders("shaders/*.kong");
 project.add_assets("assets/*", { destination: "data/{name}" });

+ 1 - 1
base/tests/cube/sources/main.ts

@@ -131,4 +131,4 @@ function spin_cube() {
 	transform_rotate(cube.transform, vec4_create(0, 0, 1), 0.01);
 }
 
-function tr(id: string, vars: map_t<string, string> = null): string {}
+function tr(id: string, vars: map_t<string, string> = null): string { return id; }

+ 2 - 1
base/tests/fall/project.js

@@ -2,12 +2,13 @@
 let flags = globalThis.flags;
 flags.with_iron = true;
 flags.lite = true;
+flags.with_eval = false;
 
 let project = new Project("test");
 project.add_project("../../");
 project.add_tsfiles("sources");
 project.add_cfiles("../../sources/libs/asim.c");
-project.add_tsfiles("../../sources/ts/iron");
+project.add_tsfiles("../../sources/ts");
 project.add_shaders("../../shaders/draw/*.kong");
 project.add_shaders("shaders/*.kong");
 project.add_assets("assets/*", { destination: "data/{name}" });

+ 1 - 1
base/tests/fall/sources/main.ts

@@ -162,4 +162,4 @@ function scene_update() {
 	transform_build_matrix(t);
 }
 
-function tr(id: string, vars: map_t<string, string> = null): string {}
+function tr(id: string, vars: map_t<string, string> = null): string { return id; }

+ 1 - 1
base/tests/triangle/main.ts

@@ -66,4 +66,4 @@ function main() {
 	_iron_set_update_callback(render);
 }
 
-function tr(id: string, vars: map_t<string, string> = null): string {}
+function tr(id: string, vars: map_t<string, string> = null): string { return id; }

+ 1 - 1
base/tests/triangle/project.js

@@ -7,6 +7,6 @@ flags.with_eval = false;
 let project = new Project("test");
 project.add_project("../../");
 project.add_tsfiles("./");
-project.add_tsfiles("../../sources/ts/iron");
+project.add_tsfiles("../../sources/ts");
 project.add_shaders("./*.kong");
 return project;

+ 1 - 1
base/tools/pad/sources/main.ts

@@ -386,4 +386,4 @@ let config_raw: config_t;
 function strings_check_internet_connection(): string { return ""; }
 function console_error(s: string) {}
 function plugin_embed() {}
-function tr(id: string, vars: map_t<string, string> = null): string {}
+function tr(id: string, vars: map_t<string, string> = null): string { return id; }