Implement LZ4 strip and make tools write errors to err instead of out

This commit is contained in:
Jaby
2023-01-03 16:34:39 +01:00
parent cdb3abd43f
commit da2bfa77d8
11 changed files with 140 additions and 34 deletions

View File

@@ -20,17 +20,13 @@
"label": "make",
"type": "shell",
"command": "./run_make.bat ${input:target} ${input:build cfg}",
"group": {
"kind": "build"
}
"group": "build"
},
{
"label": "Build Libary and Tools",
"type": "shell",
"command": "./build_all.bat ${input:target}",
"group": {
"kind": "build"
},
"group": "build",
"options": {
"cwd": "../.."
}

View File

@@ -17,7 +17,7 @@ namespace JabyEngine {
static size_t decompress_logo() {
LZ4Decompressor lz4_decomp(reinterpret_cast<uint8_t*>(&__boot_loader_end));
const auto [progress, bytes_ready] = lz4_decomp.process(ArrayRange(SplashScreen + 11, (sizeof(SplashScreen) - 11 - 4)));
const auto [progress, bytes_ready] = lz4_decomp.process(ArrayRange(SplashScreen, sizeof(SplashScreen)));
switch(progress) {
case Progress::InProgress:
printf("Decompressing still in progress... %llu\n", bytes_ready);