mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2025-01-20 02:33:05 +00:00
import: credit splash screen, move code over to a different file
This commit is contained in:
parent
57fd8f3f15
commit
450c0d0012
27
src/scr_credit.c
Normal file
27
src/scr_credit.c
Normal file
@ -0,0 +1,27 @@
|
||||
//
|
||||
// Early Splash Screen, on the GS Version
|
||||
// Since it takes a while to initialize
|
||||
//
|
||||
#include "system.h"
|
||||
#include "game.h"
|
||||
|
||||
|
||||
#ifdef IIGS
|
||||
segment "screen";
|
||||
#pragma noroot
|
||||
#endif
|
||||
|
||||
#include <Memory.h>
|
||||
|
||||
extern char credits_lz4;
|
||||
|
||||
void scr_credit()
|
||||
{
|
||||
// Keep the Screen on
|
||||
*VIDEO_REGISTER|=0xC0;
|
||||
// Blank the screen, so you don't see trash in the Frame Buffer
|
||||
memset((void*)0xE19E00, (int)0, (size_t)32);
|
||||
memset((void*)0xE19D00, (int)0, (size_t)200);
|
||||
// Display the Credits
|
||||
LZ4_Unpack((char*)(0xE12000), &credits_lz4);
|
||||
}
|
20
src/xrick.c
20
src/xrick.c
@ -20,7 +20,8 @@
|
||||
|
||||
|
||||
#include <Memory.h>
|
||||
extern char credits_lz4;
|
||||
|
||||
void scr_credit();
|
||||
|
||||
/*
|
||||
* main
|
||||
@ -28,21 +29,10 @@ extern char credits_lz4;
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
printf("Hello from xrick IIgs\n");
|
||||
// tHandle = (U32*)NewHandle(0x10000, userid(), 0xC014, 0);
|
||||
// LZ4_Unpack((char*)*tHandle, &samerica_lz4);
|
||||
// Get the credit screen up ASAP
|
||||
scr_credit();
|
||||
|
||||
// NTPprepare((void*)*tHandle);
|
||||
// NTPplay(1);
|
||||
// Keep the Screen on
|
||||
*VIDEO_REGISTER|=0xC0;
|
||||
// Blank the screen, so you don't see trash in the Frame Buffer
|
||||
memset((void*)0xE19D00, (int)0, (size_t)200);
|
||||
memset((void*)0xE19E00, (int)0, (size_t)32);
|
||||
// Display the Credits
|
||||
LZ4_Unpack((char*)(0xE12000), &credits_lz4);
|
||||
// printf("%08x\n", &img_splash_lz4 );
|
||||
// printf("%08x\n", IMG_SPLASH );
|
||||
printf("Hello from xrick IIgs\n");
|
||||
|
||||
sys_init(argc, argv);
|
||||
if (sysarg_args_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user