Convert Yoshi font and setup auto lba

This commit is contained in:
jaby 2023-06-14 22:04:01 +02:00
parent 4b02b9a7d2
commit 501ed1cd35
9 changed files with 42 additions and 5 deletions

View File

@ -1,10 +1,10 @@
{ {
"slot_0": { "slot_0": {
"timer_tests": { "timer_tests": {
"pattern": "bin/*/src/TimerTests/*.o" "pattern": "bin/*/src/Overlay/TimerTests/*.o"
}, },
"gpu_tests": { "gpu_tests": {
"pattern": "bin/*/src/GPUTests/*.o" "pattern": "bin/*/src/Overlay/GPUTests/*.o"
} }
} }
} }

View File

@ -0,0 +1,8 @@
#ifndef __ASSETS_HPP__
#define __ASSETS_HPP__
namespace Assets {
void load_for_main();
}
#endif //!__ASSETS_HPP__

View File

@ -1,5 +1,7 @@
#include "assets.hpp"
#include <stdio.h> #include <stdio.h>
void main() { void main() {
Assets::load_for_main();
printf("Planschbecken c:\n"); printf("Planschbecken c:\n");
} }

View File

@ -0,0 +1,18 @@
#include "assets.hpp"
#include <PSX/File/Processor/cd_file_processor.hpp>
#include <PSX/AutoLBA/auto_lba_declaration.hpp>
#include <stdio.h>
namespace Assets {
enum LBA {
__jabyengine_start_lba_request
__jabyengine_request_lba_for(FONT, "ASSETS/MAIN/FONT.BIN"),
__jabyengine_end_lba_request
};
__declare_lba_header(LBA);
void load_for_main() {
printf("Loading assets! %i\n", lba[LBA::FONT].get_lba());
}
}

View File

@ -11,7 +11,10 @@ $(OUTPUT_DIR)/IconTexture.bin: IconTexture.png
@mkdir -p $(OUTPUT_DIR) @mkdir -p $(OUTPUT_DIR)
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --semi-trans --color-trans jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --semi-trans --color-trans
all: $(OUTPUT_DIR)/TexturePage.bin $(OUTPUT_DIR)/IconTexture.bin $(OUTPUT_DIR)/YoshiFont.bin: YoshiFont.png
jaby_engine_fconv --lz4 $< -o $@ simple-tim clut4 --color-trans
all: $(OUTPUT_DIR)/TexturePage.bin $(OUTPUT_DIR)/IconTexture.bin $(OUTPUT_DIR)/YoshiFont.bin
clean: clean:
rm -fr $(OUTPUT_DIR) rm -fr $(OUTPUT_DIR)

BIN
examples/PoolBox/assets/YoshiFont.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -5,8 +5,11 @@
</Description> </Description>
<Track> <Track>
<File name = "SYSTEM.CNF">iso/System.cnf</File> <File name = "SYSTEM.CNF">iso/System.cnf</File>
<Main name = "XXXX_AAA.AA">application/bin/PSX-release/PoolBox.psexe</Main> <Main name = "XXXX_AAA.AA" lba_source = "application/src/main_assets.cpp">application/bin/PSX-release/PoolBox.psexe</Main>
<Directory name="ASSETS"> <Directory name="ASSETS" hidden = "true">
<Directory name = "MAIN">
<File name = "FONT.BIN" lz4 = "already">assets/bin/YoshiFont.bin</File>
</Directory>
<File name = "FONT.BIN" lz4 = "already">assets/bin/TexturePage.bin</File> <File name = "FONT.BIN" lz4 = "already">assets/bin/TexturePage.bin</File>
<File name = "ICON.BIN" lz4 = "already">assets/bin/IconTexture.bin</File> <File name = "ICON.BIN" lz4 = "already">assets/bin/IconTexture.bin</File>
</Directory> </Directory>