| 2500 | } |
| 2501 | |
| 2502 | extern "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 | |
| 2522 | extern "C" std::string _rpcsx_systemInfo() { |
| 2523 | std::string result; |
nothing calls this directly
no test coverage detected