MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / _rpcsx_isInstallableFile

Function _rpcsx_isInstallableFile

android/src/rpcsx-android.cpp:2446–2454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2444}
2445
2446extern "C" bool _rpcsx_isInstallableFile(jint fd) {
2447 auto file = fs::file::from_native_handle(fd);
2448 AtExit atExit{[&] { file.release_handle(); }};
2449
2450 auto type = getFileType(file);
2451 file.seek(0);
2452 return type != FileType::Unknown &&
2453 type != FileType::Rap; // FIXME: implement rap preinstallation
2454}
2455
2456extern "C" jstring _rpcsx_getDirInstallPath(JNIEnv *env, jint fd) {
2457 auto file = fs::file::from_native_handle(fd);

Callers

nothing calls this directly

Calls 3

release_handleMethod · 0.80
getFileTypeFunction · 0.70
seekMethod · 0.45

Tested by

no test coverage detected