mirror of
https://github.com/wiiu-env/RPXLoadingModule.git
synced 2025-02-19 18:52:50 +01:00
Check if a file exist when loading a RPX/WUHB
This commit is contained in:
parent
74ade220f1
commit
59fafb0cd9
@ -129,7 +129,14 @@ RPXLoaderStatus RL_PrepareLaunchFromSD(const char *bundle_path) {
|
|||||||
|
|
||||||
bool metaLoaded = false;
|
bool metaLoaded = false;
|
||||||
|
|
||||||
std::string completePath = std::string("/vol/external01/") + bundle_path;
|
std::string completePath = std::string("/vol/external01/") + bundle_path;
|
||||||
|
std::string completeNewLibPath = std::string("fs:/vol/external01/") + bundle_path;
|
||||||
|
|
||||||
|
struct stat st {};
|
||||||
|
if (stat(completeNewLibPath.c_str(), &st) < 0) {
|
||||||
|
DEBUG_FUNCTION_LINE_ERR("Failed to prepare launch from SD, file (%s) not found.", bundle_path);
|
||||||
|
return RPX_LOADER_RESULT_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
bool isBundle = false;
|
bool isBundle = false;
|
||||||
auto rpxInfo = WUHBUtils_GetRPXInfo(completePath.c_str(), BundleSource_FileDescriptor_CafeOS, &fileInfo);
|
auto rpxInfo = WUHBUtils_GetRPXInfo(completePath.c_str(), BundleSource_FileDescriptor_CafeOS, &fileInfo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user