From 9054a062ecdcc5e490d6e846e344fe3d010d7211 Mon Sep 17 00:00:00 2001 From: Dima353 <75039669+Dima353@users.noreply.github.com> Date: Thu, 23 Jul 2026 03:11:33 +0300 Subject: [PATCH] Fix CI --- src/skel/message.cpp | 7 +++++++ src/skel/message.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/skel/message.cpp b/src/skel/message.cpp index 7051eaf5..84c4095b 100644 --- a/src/skel/message.cpp +++ b/src/skel/message.cpp @@ -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 #include @@ -117,3 +122,5 @@ int fileExists(const char *path) { SceIoStat stat; return sceIoGetstat(path, &stat) >= 0; } + +#endif // PSP2 diff --git a/src/skel/message.h b/src/skel/message.h index c8fb6aa0..7fb06622 100644 --- a/src/skel/message.h +++ b/src/skel/message.h @@ -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 #include @@ -44,4 +48,6 @@ private: void showMsgDialog(const char *message); int fileExists(const char *path); +#endif // PSP2 + #endif //MESSAGE_H