Create Splash.cpp

This commit is contained in:
jaby 2022-09-28 20:53:32 +02:00
parent 403cfc1948
commit 6d86f4e99f
4 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,6 @@
#Add the JabyEngine tools to path
export PATH := $(JABY_ENGINE_DIR)/bin/:$(PATH)
#Build architecture/variant string, possible values: x86, armv7le, etc...
PLATFORM ?= PSX

View File

@ -1,3 +1,5 @@
JABY_ENGINE_DIR = ../../
ARTIFACT = libJabyEngine
BUILD_DIR = bin
@ -21,7 +23,7 @@ $(LIB_DIR)/$(ARTIFACT).a: $(TARGET).a
cp $(TARGET).a $(LIB_DIR)/$(ARTIFACT).a
ressources/Splash.cpp: ressources/Splash.png
echo wuff
jaby_engine_fconv $< simple-tim full16 | cpp_out --name SplashScreen -o $@
#Rules section for default compilation and linking
splash: ressources/Splash.cpp

BIN
src/Library/ressources/Splash.png (Stored with Git LFS)

Binary file not shown.

View File

@ -51,7 +51,7 @@ fn encode<T: PSXImageConverter>(image: T, clut_align: ClutAlignment, mut output:
}
};
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size {}, {} needs to be even", width, height)}))?;
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size (width: {}, height: {}) needs to be even", width, height)}))?;
tool_helper::raw::write_generic(&mut output, header)?;
if let Some(palette) = palette {