This commit is contained in:
Dima353
2026-07-23 03:11:33 +03:00
parent dea91bd448
commit 9054a062ec
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -1,3 +1,8 @@
// Vita-only (SceGxm message dialog). Guarded so the file is an empty translation
// unit when the premake/CMake source glob pulls it into non-PSP2 platform builds;
// the Vita target itself builds via its own Makefile.
#ifdef PSP2
#include <cstdlib>
#include <psp2/display.h>
@@ -117,3 +122,5 @@ int fileExists(const char *path) {
SceIoStat stat;
return sceIoGetstat(path, &stat) >= 0;
}
#endif // PSP2
+6
View File
@@ -1,6 +1,10 @@
#ifndef MESSAGE_H
#define MESSAGE_H
// Vita-only (SceGxm). Everything here pulls psp2/* headers, so keep it out of
// non-PSP2 builds that include this header via the source glob. See message.cpp.
#ifdef PSP2
#include <array>
#include <cstdint>
@@ -44,4 +48,6 @@ private:
void showMsgDialog(const char *message);
int fileExists(const char *path);
#endif // PSP2
#endif //MESSAGE_H