Fix tests
This commit is contained in:
@@ -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}" });
|
||||
|
||||
@@ -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,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}" });
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user