bktr: Fix missing includes and optimize style

This commit is contained in:
Zach Hilman 2018-08-26 10:53:31 -04:00
parent f92b3512e0
commit 9664ce255d
12 changed files with 108 additions and 102 deletions

View file

@ -189,7 +189,7 @@ ResultStatus AppLoader_DeconstructedRomDirectory::ReadTitle(std::string& title)
return ResultStatus::Success;
}
bool AppLoader_DeconstructedRomDirectory::IsRomFSUpdatable() {
bool AppLoader_DeconstructedRomDirectory::IsRomFSUpdatable() const {
return false;
}

View file

@ -44,7 +44,7 @@ public:
ResultStatus ReadIcon(std::vector<u8>& buffer) override;
ResultStatus ReadProgramId(u64& out_program_id) override;
ResultStatus ReadTitle(std::string& title) override;
bool IsRomFSUpdatable() override;
bool IsRomFSUpdatable() const override;
private:
FileSys::ProgramMetadata metadata;

View file

@ -210,7 +210,7 @@ public:
* the base game it should be set to false.
* @return bool whether or not updatable.
*/
virtual bool IsRomFSUpdatable() {
virtual bool IsRomFSUpdatable() const {
return true;
}

View file

@ -233,7 +233,7 @@ ResultStatus AppLoader_NRO::ReadTitle(std::string& title) {
return ResultStatus::Success;
}
bool AppLoader_NRO::IsRomFSUpdatable() {
bool AppLoader_NRO::IsRomFSUpdatable() const {
return false;
}

View file

@ -39,7 +39,7 @@ public:
ResultStatus ReadProgramId(u64& out_program_id) override;
ResultStatus ReadRomFS(FileSys::VirtualFile& dir) override;
ResultStatus ReadTitle(std::string& title) override;
bool IsRomFSUpdatable() override;
bool IsRomFSUpdatable() const override;
private:
bool LoadNro(FileSys::VirtualFile file, VAddr load_base);