mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 07:45:33 +01:00
UICommon/GameFile: Use in-class initializers where applicable
Allows deduplicating code within the constructor initializer list.
This commit is contained in:
parent
800d875faa
commit
49ca31467d
@ -111,8 +111,7 @@ GameFile::LookupUsingConfigLanguage(const std::map<DiscIO::Language, std::string
|
|||||||
return Lookup(GetConfigLanguage(), strings);
|
return Lookup(GetConfigLanguage(), strings);
|
||||||
}
|
}
|
||||||
|
|
||||||
GameFile::GameFile(const std::string& path)
|
GameFile::GameFile(const std::string& path) : m_file_path(path)
|
||||||
: m_file_path(path), m_region(DiscIO::Region::Unknown), m_country(DiscIO::Country::Unknown)
|
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
std::string name, extension;
|
std::string name, extension;
|
||||||
|
@ -126,8 +126,8 @@ private:
|
|||||||
u64 m_title_id{};
|
u64 m_title_id{};
|
||||||
std::string m_maker_id{};
|
std::string m_maker_id{};
|
||||||
|
|
||||||
DiscIO::Region m_region{};
|
DiscIO::Region m_region{DiscIO::Region::Unknown};
|
||||||
DiscIO::Country m_country{};
|
DiscIO::Country m_country{DiscIO::Country::Unknown};
|
||||||
DiscIO::Platform m_platform{};
|
DiscIO::Platform m_platform{};
|
||||||
DiscIO::BlobType m_blob_type{};
|
DiscIO::BlobType m_blob_type{};
|
||||||
u16 m_revision{};
|
u16 m_revision{};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user