mirror of
https://github.com/nzp-team/quakespasm.git
synced 2025-02-16 16:41:39 +00:00
VITA/NX: Restore loading screen support
This commit is contained in:
parent
3e574000da
commit
ed78a74b7f
1 changed files with 12 additions and 19 deletions
|
@ -1244,7 +1244,7 @@ char *ReturnLoadingtex (void)
|
|||
}
|
||||
return "wut wut";
|
||||
}
|
||||
qboolean load_screen_exists;
|
||||
|
||||
char lpath[MAX_QPATH];
|
||||
void SCR_DrawLoadScreen (void)
|
||||
{
|
||||
|
@ -1256,31 +1256,24 @@ void SCR_DrawLoadScreen (void)
|
|||
if (!con_forcedup)
|
||||
return;
|
||||
|
||||
load_screen_exists = false;
|
||||
|
||||
if (loadingScreen) {
|
||||
if (!loadscreeninit) {
|
||||
sprintf(lpath, "gfx/lscreen/%s.png", loadname2);
|
||||
lscreen = Draw_CachePic(lpath);
|
||||
lscreen = Draw_CachePic(va("gfx/lscreen/%s.png", loadname2));
|
||||
|
||||
if (lscreen == NULL) {
|
||||
lscreen = Draw_CachePic(va("gfx/lscreen/%s.tga", loadname2));
|
||||
}
|
||||
|
||||
if (lscreen == NULL) {
|
||||
lscreen = Draw_CachePic("gfx/lscreen/lscreen.png");
|
||||
}
|
||||
|
||||
//awoo = Draw_CachePic("gfx/menu/awoo.png");
|
||||
|
||||
// naievil -- go to default loadingscreen
|
||||
if (lscreen == NULL) {
|
||||
sprintf(lpath, "gfx/lscreen/lscreen.png", loadname2);
|
||||
lscreen = Draw_CachePic(lpath);
|
||||
}
|
||||
|
||||
// naievil -- if that fails, we need to not load anything
|
||||
if (lscreen == NULL) {
|
||||
load_screen_exists = false;
|
||||
} else {
|
||||
load_screen_exists = true;
|
||||
loadscreeninit = true;
|
||||
}
|
||||
loadscreeninit = true;
|
||||
}
|
||||
|
||||
if (load_screen_exists == true) {
|
||||
if (lscreen != NULL) {
|
||||
#ifdef VITA
|
||||
Draw_StretchPic(0, 0, lscreen, vid.width, vid.height);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue