Don't show resources download screen on Dreamcast and N64 builds

This commit is contained in:
UnknownShadow200 2024-01-06 10:12:55 +11:00
parent 5f96ca2eac
commit df7a5eefd4
4 changed files with 12 additions and 5 deletions

View File

@ -119,7 +119,11 @@ typedef cc_uint8 cc_bool;
#define CC_BUILD_FREETYPE #define CC_BUILD_FREETYPE
#ifndef CC_BUILD_FLATPAK
#define CC_BUILD_RESOURCES
#endif
/*#define CC_BUILD_GL11*/ /*#define CC_BUILD_GL11*/
#ifndef CC_BUILD_MANUAL #ifndef CC_BUILD_MANUAL
#if defined NXDK #if defined NXDK
/* XBox also defines _WIN32 */ /* XBox also defines _WIN32 */
@ -267,6 +271,7 @@ typedef cc_uint8 cc_bool;
#define CC_BUILD_MINFILES #define CC_BUILD_MINFILES
#define CC_BUILD_COOPTHREADED #define CC_BUILD_COOPTHREADED
#undef CC_BUILD_FREETYPE #undef CC_BUILD_FREETYPE
#undef CC_BUILD_RESOURCES
#elif defined __psp__ #elif defined __psp__
#define CC_BUILD_PSP #define CC_BUILD_PSP
#define CC_BUILD_OPENAL #define CC_BUILD_OPENAL
@ -307,6 +312,7 @@ typedef cc_uint8 cc_bool;
#define CC_BUILD_LOWMEM #define CC_BUILD_LOWMEM
#define CC_BUILD_CONSOLE #define CC_BUILD_CONSOLE
#undef CC_BUILD_FREETYPE #undef CC_BUILD_FREETYPE
#undef CC_BUILD_RESOURCES
#elif defined PLAT_PS3 #elif defined PLAT_PS3
#define CC_BUILD_PS3 #define CC_BUILD_PS3
#define CC_BUILD_OPENAL #define CC_BUILD_OPENAL
@ -324,6 +330,7 @@ typedef cc_uint8 cc_bool;
#define CC_BUILD_LOWMEM #define CC_BUILD_LOWMEM
#define CC_BUILD_CONSOLE #define CC_BUILD_CONSOLE
#undef CC_BUILD_FREETYPE #undef CC_BUILD_FREETYPE
#undef CC_BUILD_RESOURCES
#elif defined PLAT_PS2 #elif defined PLAT_PS2
#define CC_BUILD_PS2 #define CC_BUILD_PS2
#define CC_BUILD_OPENAL #define CC_BUILD_OPENAL

View File

@ -980,7 +980,7 @@ void MainScreen_SetActive(void) {
} }
#ifndef CC_BUILD_FLATPAK #ifdef CC_BUILD_RESOURCES
/*########################################################################################################################* /*########################################################################################################################*
*----------------------------------------------------CheckResourcesScreen-------------------------------------------------* *----------------------------------------------------CheckResourcesScreen-------------------------------------------------*
*#########################################################################################################################*/ *#########################################################################################################################*/

View File

@ -256,9 +256,7 @@ void Launcher_Run(void) {
Http_Component.Init(); Http_Component.Init();
CheckUpdateTask_Run(); CheckUpdateTask_Run();
#ifdef CC_BUILD_FLATPAK #ifdef CC_BUILD_RESOURCES
MainScreen_SetActive();
#else
Resources_CheckExistence(); Resources_CheckExistence();
if (Resources_Count) { if (Resources_Count) {
@ -266,6 +264,8 @@ void Launcher_Run(void) {
} else { } else {
MainScreen_SetActive(); MainScreen_SetActive();
} }
#else
MainScreen_SetActive();
#endif #endif
for (;;) { for (;;) {

View File

@ -1,5 +1,5 @@
#include "Resources.h" #include "Resources.h"
#if !defined CC_BUILD_WEB #ifdef CC_BUILD_RESOURCES
#include "Funcs.h" #include "Funcs.h"
#include "String.h" #include "String.h"
#include "Constants.h" #include "Constants.h"