From 0f5a4b37ee8e00210b211953969f10bfb48c5aaa Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 14 Jul 2019 15:49:42 +0200 Subject: DiscIO: Add functions CreateDisc and CreateWAD ...in addition to the existing function CreateVolume (renamed from CreateVolumeFromFilename). Lets code easily add constraints such as not letting the user select a WAD file when using the disc changing functionality. --- Source/Core/UICommon/GameFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/UICommon/GameFile.cpp') diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp index fb8c3d0a67..5431face3a 100644 --- a/Source/Core/UICommon/GameFile.cpp +++ b/Source/Core/UICommon/GameFile.cpp @@ -121,7 +121,7 @@ GameFile::GameFile(std::string path) : m_file_path(std::move(path)) SplitPath(m_file_path, nullptr, &name, &extension); m_file_name = name + extension; - std::unique_ptr volume(DiscIO::CreateVolumeFromFilename(m_file_path)); + std::unique_ptr volume(DiscIO::CreateVolume(m_file_path)); if (volume != nullptr) { m_platform = volume->GetVolumeType(); -- cgit v1.2.3