Merge pull request #21463 from hrydgard/misc

Add a new file dumping setting to dump the raw ISO file from NPDRM-packed demos
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-03-19 22:18:01 +01:00
commit 910b60defc
15 files changed
+101 -37

No files matched your search

+3 -3
View File
@@ -96,7 +96,7 @@ static std::string FormatRCheevosMD5(uint8_t digest[16]) {
// Consumes the blockDevice.
// If failed, returns an empty string, otherwise a 32-character string with the hash in hex format.
static std::string ComputePSPISOHash(BlockDevice *blockDevice) {
static std::string ComputePSPISOHash(std::shared_ptr<BlockDevice> blockDevice) {
md5_context md5;
ppsspp_md5_starts(&md5);
@@ -1068,7 +1068,7 @@ void SetGame(const Path &path, IdentifiedFileType fileType, FileLoader *fileLoad
// TODO: Fish the block device out of the loading process somewhere else. Though, probably easier to just do it here,
// we need a temporary blockdevice anyway since it gets consumed by ComputePSPISOHash.
std::string errorString;
BlockDevice *blockDevice(ConstructBlockDevice(fileLoader, &errorString));
std::shared_ptr<BlockDevice> blockDevice(ConstructBlockDevice(fileLoader, &errorString));
if (!blockDevice) {
ERROR_LOG(Log::Achievements, "Failed to construct block device for '%s' - can't identify: %s", path.c_str(), errorString.c_str());
g_isIdentifying = false;
@@ -1132,7 +1132,7 @@ void ChangeUMD(const Path &path, FileLoader *fileLoader) {
}
std::string errorString;
BlockDevice *blockDevice = ConstructBlockDevice(fileLoader, &errorString);
std::shared_ptr<BlockDevice> blockDevice(ConstructBlockDevice(fileLoader, &errorString));
if (!blockDevice) {
ERROR_LOG(Log::Achievements, "Failed to construct block device for '%s' - can't identify: %s", path.c_str(), errorString.c_str());
return;