mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
DolphinQt: Turn the compress/decompress action into a dialog
This commit is contained in:
@ -116,6 +116,7 @@ GameFile::GameFile(std::string path) : m_file_path(std::move(path))
|
||||
m_blob_type = volume->GetBlobType();
|
||||
m_file_size = volume->GetRawSize();
|
||||
m_volume_size = volume->GetSize();
|
||||
m_volume_size_is_accurate = volume->IsSizeAccurate();
|
||||
|
||||
m_internal_name = volume->GetInternalName();
|
||||
m_game_id = volume->GetGameID();
|
||||
@ -136,6 +137,7 @@ GameFile::GameFile(std::string path) : m_file_path(std::move(path))
|
||||
{
|
||||
m_valid = true;
|
||||
m_file_size = m_volume_size = File::GetSize(m_file_path);
|
||||
m_volume_size_is_accurate = true;
|
||||
m_platform = DiscIO::Platform::ELFOrDOL;
|
||||
m_blob_type = DiscIO::BlobType::DIRECTORY;
|
||||
}
|
||||
@ -296,6 +298,7 @@ void GameFile::DoState(PointerWrap& p)
|
||||
|
||||
p.Do(m_file_size);
|
||||
p.Do(m_volume_size);
|
||||
p.Do(m_volume_size_is_accurate);
|
||||
|
||||
p.Do(m_short_names);
|
||||
p.Do(m_long_names);
|
||||
|
@ -89,6 +89,7 @@ public:
|
||||
const std::string& GetApploaderDate() const { return m_apploader_date; }
|
||||
u64 GetFileSize() const { return m_file_size; }
|
||||
u64 GetVolumeSize() const { return m_volume_size; }
|
||||
bool IsVolumeSizeAccurate() const { return m_volume_size_is_accurate; }
|
||||
const GameBanner& GetBannerImage() const;
|
||||
const GameCover& GetCoverImage() const;
|
||||
void DoState(PointerWrap& p);
|
||||
@ -124,6 +125,7 @@ private:
|
||||
|
||||
u64 m_file_size{};
|
||||
u64 m_volume_size{};
|
||||
bool m_volume_size_is_accurate{};
|
||||
|
||||
std::map<DiscIO::Language, std::string> m_short_names;
|
||||
std::map<DiscIO::Language, std::string> m_long_names;
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
namespace UICommon
|
||||
{
|
||||
static constexpr u32 CACHE_REVISION = 16; // Last changed in PR 8313
|
||||
static constexpr u32 CACHE_REVISION = 17; // Last changed in PR 8738
|
||||
|
||||
std::vector<std::string> FindAllGamePaths(const std::vector<std::string>& directories_to_scan,
|
||||
bool recursive_scan)
|
||||
|
Reference in New Issue
Block a user