changed projects structure

This commit is contained in:
2026-07-27 16:46:46 +01:00
parent e94b26690f
commit 0f97ae9293
9 changed files with 69 additions and 48 deletions
+26
View File
@@ -0,0 +1,26 @@
class ConsoleApi {
constructor(mem) {
this.mem = mem;
}
trace = (str_ptr, str_len) => {
console.trace(this.mem.loadString(str_ptr, str_len));
};
debug = (str_ptr, str_len) => {
console.debug(this.mem.loadString(str_ptr, str_len));
};
info = (str_ptr, str_len) => {
console.info(this.mem.loadString(str_ptr, str_len));
};
warn = function(str_ptr, str_len) {
console.warn(this.mem.loadString(str_ptr, str_len));
};
error = (str_ptr, str_len) => {
console.error(this.mem.loadString(str_ptr, str_len));
};
}