import: credit splash screen, move code over to a different file

This commit is contained in:
dwsJason 2019-09-08 15:17:29 -04:00
parent 57fd8f3f15
commit 450c0d0012
2 changed files with 32 additions and 15 deletions

27
src/scr_credit.c Normal file
View 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);
}

View File

@ -20,7 +20,8 @@
#include <Memory.h> #include <Memory.h>
extern char credits_lz4;
void scr_credit();
/* /*
* main * main
@ -28,21 +29,10 @@ extern char credits_lz4;
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
printf("Hello from xrick IIgs\n"); // Get the credit screen up ASAP
// tHandle = (U32*)NewHandle(0x10000, userid(), 0xC014, 0); scr_credit();
// LZ4_Unpack((char*)*tHandle, &samerica_lz4);
// NTPprepare((void*)*tHandle); printf("Hello from xrick IIgs\n");
// 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 );
sys_init(argc, argv); sys_init(argc, argv);
if (sysarg_args_data) if (sysarg_args_data)