Files
InstanceBrick--nightcap/include/runtime/payload_update_preflight.h
T
LightZirconite b5eac34e0f Report why the Roblox update preflight failed
A first launch that cannot reach the APK provider only ever showed
"Mocktail could not update or verify the Roblox installation.", while the
actual cause stayed in the session log. For a user that is
indistinguishable between a provider outage, a rejected signature, and a
full disk.

Name the host in HTTP transfer failures, so "HTTPS request returned status
503" becomes "api.pureapk.com request returned status 503", and relay the
updater child's stderr through the launcher: every line still reaches the
session log, and the last failure it reported is now attached to the
preflight result. The failure dialog shows that reason and the session log
directory instead of the generic sentence.
2026-08-19 10:40:55 +02:00

30 lines
794 B
C++

#ifndef MOCKTAIL_RUNTIME_PAYLOAD_UPDATE_PREFLIGHT_H_
#define MOCKTAIL_RUNTIME_PAYLOAD_UPDATE_PREFLIGHT_H_
#include <string>
#include "runtime/environment.h"
#include "runtime/runtime_paths.h"
namespace mocktail {
namespace runtime {
struct PayloadUpdatePreflightResult {
bool attempted = false;
std::string error;
// Last failure the updater reported on its own stderr. Empty when the
// updater never ran or never explained itself.
std::string details;
explicit operator bool() const { return error.empty(); }
};
PayloadUpdatePreflightResult RunPayloadUpdatePreflight(
const Environment& environment, const RuntimePaths& paths,
bool force_run_latest = false);
} // namespace runtime
} // namespace mocktail
#endif // MOCKTAIL_RUNTIME_PAYLOAD_UPDATE_PREFLIGHT_H_