summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscExtractor.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-06-17 16:53:55 +0200
committerJosJuice <josjuice@gmail.com>2017-06-28 22:22:13 +0200
commitbaf3a3b188cb996a9994c18960e914f292b43841 (patch)
treef98f54f49f814d023ab38a4a435e85350105be81 /Source/Core/DiscIO/DiscExtractor.cpp
parent89c901780edb286df7cfbdce8cb1b38a6cb529e2 (diff)
DiscExtractor: Don't hardcode names in ExportApploader and ExportDOL
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
-rw-r--r--Source/Core/DiscIO/DiscExtractor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp
index 8adbcf02fe..323fe706f2 100644
--- a/Source/Core/DiscIO/DiscExtractor.cpp
+++ b/Source/Core/DiscIO/DiscExtractor.cpp
@@ -72,7 +72,7 @@ bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo
}
bool ExportApploader(const Volume& volume, const Partition& partition,
- const std::string& export_folder)
+ const std::string& export_filename)
{
if (!IsDisc(volume.GetVolumeType()))
return false;
@@ -85,7 +85,7 @@ bool ExportApploader(const Volume& volume, const Partition& partition,
*apploader_size += *trailer_size + header_size;
DEBUG_LOG(DISCIO, "Apploader size -> %x", *apploader_size);
- return ExportData(volume, partition, 0x2440, *apploader_size, export_folder + "/apploader.img");
+ return ExportData(volume, partition, 0x2440, *apploader_size, export_filename);
}
std::optional<u64> GetBootDOLOffset(const Volume& volume, const Partition& partition)
@@ -129,7 +129,7 @@ std::optional<u32> GetBootDOLSize(const Volume& volume, const Partition& partiti
return dol_size;
}
-bool ExportDOL(const Volume& volume, const Partition& partition, const std::string& export_folder)
+bool ExportDOL(const Volume& volume, const Partition& partition, const std::string& export_filename)
{
if (!IsDisc(volume.GetVolumeType()))
return false;
@@ -141,7 +141,7 @@ bool ExportDOL(const Volume& volume, const Partition& partition, const std::stri
if (!dol_size)
return false;
- return ExportData(volume, partition, *dol_offset, *dol_size, export_folder + "/boot.dol");
+ return ExportData(volume, partition, *dol_offset, *dol_size, export_filename);
}
} // namespace DiscIO