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

Method MakeElf

rpcs3/Crypto/unself.cpp:1224–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224fs::file SELFDecrypter::MakeElf(bool isElf32)
1225{
1226 // Create a new ELF file.
1227 fs::file e = fs::make_stream<std::vector<u8>>();
1228
1229 if (isElf32)
1230 {
1231 WriteElf(e, elf32_hdr, shdr32_arr, phdr32_arr);
1232 }
1233 else
1234 {
1235 WriteElf(e, elf64_hdr, shdr64_arr, phdr64_arr);
1236 }
1237
1238 return e;
1239}
1240
1241bool SELFDecrypter::GetKeyFromRap(const char* content_id, u8* npdrm_key)
1242{

Callers 1

decrypt_selfFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected