mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2025-01-21 09:34:23 +00:00
import: data.bat, which builds a data.lib, with the splash_lz4 data image
This commit is contained in:
parent
b0358651bf
commit
da3214b7e0
28
data.bat
Normal file
28
data.bat
Normal file
@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
setlocal
|
||||
rem
|
||||
rem Make the data lib, for xrick2gs
|
||||
rem
|
||||
|
||||
echo Y |del data.lib
|
||||
|
||||
if exist "bmp" (
|
||||
echo Y |del bmp\*
|
||||
rmdir bmp
|
||||
)
|
||||
|
||||
rem
|
||||
rem bmp directory if it doesn't exist
|
||||
rem
|
||||
if not exist "bmp" (
|
||||
mkdir bmp
|
||||
)
|
||||
|
||||
png2bmp -D bmp data\pics\*.png
|
||||
b2s bmp\splash.bmp
|
||||
lz4 -c2 bmp\splash.SHR#C10000 data\splash.lz4
|
||||
cd data
|
||||
iix mkobj splash_lz4 splash.lz4 splash.a
|
||||
cd ..
|
||||
iix makelib -P data.lib +data\splash.a
|
||||
|
@ -21,7 +21,7 @@
|
||||
//extern void waitkey();
|
||||
//extern void fbuffer();
|
||||
|
||||
extern char title_lz4;
|
||||
extern char splash_lz4;
|
||||
|
||||
char *VIDEO = (char*)0xE1C029;
|
||||
|
||||
@ -39,7 +39,7 @@ main(int argc, char *argv[])
|
||||
|
||||
printf("Unpacking Splash!");
|
||||
|
||||
LZ4_Unpack((char*)(0xE12000), &title_lz4);
|
||||
LZ4_Unpack((char*)(0xE12000), &splash_lz4);
|
||||
|
||||
//while (pChar[0])
|
||||
//{
|
||||
|
Loading…
x
Reference in New Issue
Block a user