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

Function _rpcsx_installKey

android/src/rpcsx-android.cpp:2502–2520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2500}
2501
2502extern "C" bool _rpcsx_installKey(JNIEnv *env, int fd, long progressId,
2503 std::string_view gamePath) {
2504 auto file = fs::file::from_native_handle(fd);
2505 AtExit atExit{[&] { file.release_handle(); }};
2506
2507 auto type = getFileType(file);
2508 file.seek(0);
2509
2510 if (type == FileType::Rap) {
2511 return installRap(env, std::move(file), progressId, gamePath);
2512 }
2513
2514 if (type == FileType::Edat) {
2515 return installEdat(env, std::move(file), progressId, gamePath);
2516 }
2517
2518 Progress(env, progressId).failure("Unsupported key type");
2519 return false;
2520}
2521
2522extern "C" std::string _rpcsx_systemInfo() {
2523 std::string result;

Callers

nothing calls this directly

Calls 7

installRapFunction · 0.85
installEdatFunction · 0.85
ProgressClass · 0.85
release_handleMethod · 0.80
getFileTypeFunction · 0.70
seekMethod · 0.45
failureMethod · 0.45

Tested by

no test coverage detected