mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
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:
15 files changed
+101
-37
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user