Kernel: Remove g_program_id
This has been obsoleted by the field in Process.
This commit is contained in:
parent
6d60acf0f1
commit
a5eba2f984
6 changed files with 3 additions and 21 deletions
|
@ -131,7 +131,6 @@ ResultStatus LoadFile(const std::string& filename) {
|
|||
|
||||
// Load application and RomFS
|
||||
if (ResultStatus::Success == app_loader.Load()) {
|
||||
Kernel::g_program_id = app_loader.GetProgramId();
|
||||
Service::FS::RegisterArchiveType(Common::make_unique<FileSys::ArchiveFactory_RomFS>(app_loader), Service::FS::ArchiveIdCode::RomFS);
|
||||
return ResultStatus::Success;
|
||||
}
|
||||
|
|
|
@ -293,8 +293,4 @@ ResultStatus AppLoader_NCCH::ReadRomFS(std::vector<u8>& buffer) const {
|
|||
return ResultStatus::ErrorNotUsed;
|
||||
}
|
||||
|
||||
u64 AppLoader_NCCH::GetProgramId() const {
|
||||
return *reinterpret_cast<u64 const*>(&ncch_header.program_id[0]);
|
||||
}
|
||||
|
||||
} // namespace Loader
|
||||
|
|
|
@ -213,12 +213,6 @@ public:
|
|||
*/
|
||||
ResultStatus ReadRomFS(std::vector<u8>& buffer) const override;
|
||||
|
||||
/*
|
||||
* Gets the program id from the NCCH header
|
||||
* @return u64 Program id
|
||||
*/
|
||||
u64 GetProgramId() const;
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue