mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DiscIO: Remove C/I/S prefixes from class names
These prefixes were inconsistent with the rest of Dolphin.
I'm also renaming VolumeWiiCrypted to VolumeWii because of 1113b13
.
This commit is contained in:
@ -32,18 +32,17 @@ namespace
|
||||
class WiiPartition final : public wxTreeItemData
|
||||
{
|
||||
public:
|
||||
WiiPartition(std::unique_ptr<DiscIO::IFileSystem> filesystem_)
|
||||
: filesystem{std::move(filesystem_)}
|
||||
WiiPartition(std::unique_ptr<DiscIO::FileSystem> filesystem_) : filesystem{std::move(filesystem_)}
|
||||
{
|
||||
}
|
||||
|
||||
std::unique_ptr<DiscIO::IFileSystem> filesystem;
|
||||
std::unique_ptr<DiscIO::FileSystem> filesystem;
|
||||
};
|
||||
|
||||
class IntegrityCheckThread final : public wxThread
|
||||
{
|
||||
public:
|
||||
explicit IntegrityCheckThread(const DiscIO::IVolume* volume, DiscIO::Partition partition)
|
||||
explicit IntegrityCheckThread(const DiscIO::Volume* volume, DiscIO::Partition partition)
|
||||
: wxThread{wxTHREAD_JOINABLE}, m_volume{volume}, m_partition{partition}
|
||||
{
|
||||
Create();
|
||||
@ -55,7 +54,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
const DiscIO::IVolume* const m_volume;
|
||||
const DiscIO::Volume* const m_volume;
|
||||
const DiscIO::Partition m_partition;
|
||||
};
|
||||
|
||||
@ -85,14 +84,14 @@ wxImageList* LoadIconBitmaps(const wxWindow* context)
|
||||
}
|
||||
|
||||
size_t CreateDirectoryTree(wxTreeCtrl* tree_ctrl, wxTreeItemId parent,
|
||||
const std::vector<DiscIO::SFileInfo>& file_infos,
|
||||
const std::vector<DiscIO::FileInfo>& file_infos,
|
||||
const size_t first_index, const size_t last_index)
|
||||
{
|
||||
size_t current_index = first_index;
|
||||
|
||||
while (current_index < last_index)
|
||||
{
|
||||
const DiscIO::SFileInfo& file_info = file_infos[current_index];
|
||||
const DiscIO::FileInfo& file_info = file_infos[current_index];
|
||||
std::string file_path = file_info.m_FullPath;
|
||||
|
||||
// Trim the trailing '/' if it exists.
|
||||
@ -127,7 +126,7 @@ size_t CreateDirectoryTree(wxTreeCtrl* tree_ctrl, wxTreeItemId parent,
|
||||
}
|
||||
|
||||
size_t CreateDirectoryTree(wxTreeCtrl* tree_ctrl, wxTreeItemId parent,
|
||||
const std::vector<DiscIO::SFileInfo>& file_infos)
|
||||
const std::vector<DiscIO::FileInfo>& file_infos)
|
||||
{
|
||||
if (file_infos.empty())
|
||||
return 0;
|
||||
@ -155,7 +154,7 @@ WiiPartition* FindWiiPartition(wxTreeCtrl* tree_ctrl, const wxString& label)
|
||||
} // Anonymous namespace
|
||||
|
||||
FilesystemPanel::FilesystemPanel(wxWindow* parent, wxWindowID id,
|
||||
const std::unique_ptr<DiscIO::IVolume>& opened_iso)
|
||||
const std::unique_ptr<DiscIO::Volume>& opened_iso)
|
||||
: wxPanel{parent, id}, m_opened_iso{opened_iso}
|
||||
{
|
||||
CreateGUI();
|
||||
@ -204,7 +203,7 @@ bool FilesystemPanel::PopulateFileSystemTree()
|
||||
{
|
||||
for (size_t i = 0; i < partitions.size(); ++i)
|
||||
{
|
||||
std::unique_ptr<DiscIO::IFileSystem> file_system(
|
||||
std::unique_ptr<DiscIO::FileSystem> file_system(
|
||||
DiscIO::CreateFileSystem(m_opened_iso.get(), partitions[i]));
|
||||
if (file_system)
|
||||
{
|
||||
@ -310,7 +309,7 @@ void FilesystemPanel::OnExtractDirectories(wxCommandEvent& event)
|
||||
|
||||
void FilesystemPanel::OnExtractHeaderData(wxCommandEvent& event)
|
||||
{
|
||||
DiscIO::IFileSystem* file_system = nullptr;
|
||||
DiscIO::FileSystem* file_system = nullptr;
|
||||
const wxString path = wxDirSelector(_("Choose the folder to extract to"));
|
||||
|
||||
if (path.empty())
|
||||
@ -451,9 +450,9 @@ void FilesystemPanel::ExtractSingleDirectory(const wxString& output_folder)
|
||||
|
||||
void FilesystemPanel::ExtractDirectories(const std::string& full_path,
|
||||
const std::string& output_folder,
|
||||
DiscIO::IFileSystem* filesystem)
|
||||
DiscIO::FileSystem* filesystem)
|
||||
{
|
||||
const std::vector<DiscIO::SFileInfo>& fst = filesystem->GetFileList();
|
||||
const std::vector<DiscIO::FileInfo>& fst = filesystem->GetFileList();
|
||||
|
||||
u32 index = 0;
|
||||
u32 size = 0;
|
||||
|
@ -14,15 +14,15 @@ class wxTreeEvent;
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
class IFileSystem;
|
||||
class IVolume;
|
||||
class FileSystem;
|
||||
class Volume;
|
||||
}
|
||||
|
||||
class FilesystemPanel final : public wxPanel
|
||||
{
|
||||
public:
|
||||
explicit FilesystemPanel(wxWindow* parent, wxWindowID id,
|
||||
const std::unique_ptr<DiscIO::IVolume>& opened_iso);
|
||||
const std::unique_ptr<DiscIO::Volume>& opened_iso);
|
||||
~FilesystemPanel();
|
||||
|
||||
private:
|
||||
@ -51,15 +51,15 @@ private:
|
||||
void ExtractSingleFile(const wxString& output_file_path) const;
|
||||
void ExtractSingleDirectory(const wxString& output_folder);
|
||||
void ExtractDirectories(const std::string& full_path, const std::string& output_folder,
|
||||
DiscIO::IFileSystem* filesystem);
|
||||
DiscIO::FileSystem* filesystem);
|
||||
|
||||
wxString BuildFilePathFromSelection() const;
|
||||
wxString BuildDirectoryPathFromSelection() const;
|
||||
|
||||
wxTreeCtrl* m_tree_ctrl;
|
||||
|
||||
const std::unique_ptr<DiscIO::IVolume>& m_opened_iso;
|
||||
const std::unique_ptr<DiscIO::Volume>& m_opened_iso;
|
||||
|
||||
std::unique_ptr<DiscIO::IFileSystem> m_filesystem;
|
||||
std::unique_ptr<DiscIO::FileSystem> m_filesystem;
|
||||
bool m_has_partitions;
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ class wxTextCtrl;
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
class IVolume;
|
||||
class Volume;
|
||||
}
|
||||
|
||||
namespace Gecko
|
||||
@ -60,7 +60,7 @@ public:
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
std::unique_ptr<DiscIO::IVolume> m_open_iso;
|
||||
std::unique_ptr<DiscIO::Volume> m_open_iso;
|
||||
|
||||
std::vector<PatchEngine::Patch> onFrame;
|
||||
PHackData m_PHack_Data;
|
||||
|
@ -142,7 +142,7 @@ int FindPreferredLanguageIndex(DiscIO::Language preferred_language,
|
||||
} // Anonymous namespace
|
||||
|
||||
InfoPanel::InfoPanel(wxWindow* parent, wxWindowID id, const GameListItem& item,
|
||||
const std::unique_ptr<DiscIO::IVolume>& opened_iso)
|
||||
const std::unique_ptr<DiscIO::Volume>& opened_iso)
|
||||
: wxPanel{parent, id}, m_game_list_item{item}, m_opened_iso{opened_iso}
|
||||
{
|
||||
CreateGUI();
|
||||
|
@ -16,7 +16,7 @@ class wxTextCtrl;
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
class IVolume;
|
||||
class Volume;
|
||||
enum class Language;
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ class InfoPanel final : public wxPanel
|
||||
{
|
||||
public:
|
||||
InfoPanel(wxWindow* parent, wxWindowID id, const GameListItem& item,
|
||||
const std::unique_ptr<DiscIO::IVolume>& opened_iso);
|
||||
const std::unique_ptr<DiscIO::Volume>& opened_iso);
|
||||
|
||||
private:
|
||||
enum
|
||||
@ -53,7 +53,7 @@ private:
|
||||
void EmitTitleChangeEvent(const wxString& new_title);
|
||||
|
||||
const GameListItem& m_game_list_item;
|
||||
const std::unique_ptr<DiscIO::IVolume>& m_opened_iso;
|
||||
const std::unique_ptr<DiscIO::Volume>& m_opened_iso;
|
||||
|
||||
wxTextCtrl* m_internal_name;
|
||||
wxTextCtrl* m_game_id;
|
||||
|
Reference in New Issue
Block a user