From 9593c58d1246e902330700b85a74e6e3da6a148d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 2 Nov 2026 18:42:30 +0100 Subject: [PATCH 1/2] Net: Don't require a JVM on Android Headless has none, and asserted at startup. Without one there's no HTTPS. Co-Authored-By: Claude Opus 5.5 --- Common/Net/Resolve.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Common/Net/Resolve.cpp b/Common/Net/Resolve.cpp index 48ca14eeca..7e50b8a43d 100644 --- a/Common/Net/Resolve.cpp +++ b/Common/Net/Resolve.cpp @@ -51,8 +51,10 @@ void Init() { // either. HTTPSAvailable is cheap to ask twice - on Linux it's a cached dlopen result. #ifndef HTTPS_NOT_AVAILABLE #if PPSSPP_PLATFORM(ANDROID) - _assert_(gJvm != nullptr); - naettInit(gJvm); + // Headless has no JVM, and so no HTTPS. + if (gJvm) { + naettInit(gJvm); + } #else if (HTTPSAvailable()) { naettInit(NULL); @@ -64,7 +66,9 @@ void Init() { bool HTTPSAvailable() { #ifdef HTTPS_NOT_AVAILABLE return false; -#elif PPSSPP_PLATFORM(LINUX) && !PPSSPP_PLATFORM(ANDROID) +#elif PPSSPP_PLATFORM(ANDROID) + return gJvm != nullptr; +#elif PPSSPP_PLATFORM(LINUX) return naettCurlLoad() != 0; #else return true; From 09dd40f7a6dc779ca9f518fc102a493a996894c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 2 Nov 2026 18:42:30 +0100 Subject: [PATCH 2/2] Headless: Accept an http:// game The loader streams it (HTTPFileLoader), but headless rejected anything File::Exists doesn't find. This lets a phone run a game served from another machine, over adb reverse or the LAN. Co-Authored-By: Claude Opus 5.5 --- headless/Headless.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headless/Headless.cpp b/headless/Headless.cpp index e4a2fba86d..f4d4b1f4b6 100644 --- a/headless/Headless.cpp +++ b/headless/Headless.cpp @@ -860,7 +860,8 @@ int RunTests(GraphicsContext *graphicsContext, CoreParameter &coreParameter, con for (size_t i = 0; i < testFilenames.size(); ++i) { coreParameter.fileToStart = Path(testFilenames[i]); - if (!File::Exists(coreParameter.fileToStart)) { + // An http:// game is streamed by the loader (HTTPFileLoader), which reports its own errors. + if (coreParameter.fileToStart.Type() != PathType::HTTP && !File::Exists(coreParameter.fileToStart)) { fprintf(stderr, "File not found: %s\n", coreParameter.fileToStart.c_str()); missingTests.push_back(testFilenames[i]); continue;