mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +00:00
Merge pull request #32 from jakcron/codeobj-development
[nxtool] Add get() methods to Nso & Nro Processes for access to .ro data
This commit is contained in:
commit
b67ac235e7
|
@ -91,6 +91,11 @@ void NroProcess::setAssetRomfsExtractPath(const std::string& path)
|
||||||
mAssetProc.setRomfsExtractPath(path);
|
mAssetProc.setRomfsExtractPath(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const RoMetadataProcess& NroProcess::getRoMetadataProcess() const
|
||||||
|
{
|
||||||
|
return mRoMeta;
|
||||||
|
}
|
||||||
|
|
||||||
void NroProcess::importHeader()
|
void NroProcess::importHeader()
|
||||||
{
|
{
|
||||||
fnd::Vec<byte_t> scratch;
|
fnd::Vec<byte_t> scratch;
|
||||||
|
|
|
@ -31,6 +31,8 @@ public:
|
||||||
void setAssetIconExtractPath(const std::string& path);
|
void setAssetIconExtractPath(const std::string& path);
|
||||||
void setAssetNacpExtractPath(const std::string& path);
|
void setAssetNacpExtractPath(const std::string& path);
|
||||||
void setAssetRomfsExtractPath(const std::string& path);
|
void setAssetRomfsExtractPath(const std::string& path);
|
||||||
|
|
||||||
|
const RoMetadataProcess& getRoMetadataProcess() const;
|
||||||
private:
|
private:
|
||||||
const std::string kModuleName = "NroProcess";
|
const std::string kModuleName = "NroProcess";
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,11 @@ void NsoProcess::setListSymbols(bool listSymbols)
|
||||||
mRoMeta.setListSymbols(listSymbols);
|
mRoMeta.setListSymbols(listSymbols);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const RoMetadataProcess& NsoProcess::getRoMetadataProcess() const
|
||||||
|
{
|
||||||
|
return mRoMeta;
|
||||||
|
}
|
||||||
|
|
||||||
void NsoProcess::importHeader()
|
void NsoProcess::importHeader()
|
||||||
{
|
{
|
||||||
fnd::Vec<byte_t> scratch;
|
fnd::Vec<byte_t> scratch;
|
||||||
|
|
|
@ -24,6 +24,8 @@ public:
|
||||||
void setInstructionType(nx::npdm::InstructionType type);
|
void setInstructionType(nx::npdm::InstructionType type);
|
||||||
void setListApi(bool listApi);
|
void setListApi(bool listApi);
|
||||||
void setListSymbols(bool listSymbols);
|
void setListSymbols(bool listSymbols);
|
||||||
|
|
||||||
|
const RoMetadataProcess& getRoMetadataProcess() const;
|
||||||
private:
|
private:
|
||||||
const std::string kModuleName = "NsoProcess";
|
const std::string kModuleName = "NsoProcess";
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,31 @@ void RoMetadataProcess::setListSymbols(bool listSymbols)
|
||||||
mListSymbols = listSymbols;
|
mListSymbols = listSymbols;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::vector<SdkApiString>& RoMetadataProcess::getSdkVerApiList() const
|
||||||
|
{
|
||||||
|
return mSdkVerApiList;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std::vector<SdkApiString>& RoMetadataProcess::getPublicApiList() const
|
||||||
|
{
|
||||||
|
return mPublicApiList;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std::vector<SdkApiString>& RoMetadataProcess::getDebugApiList() const
|
||||||
|
{
|
||||||
|
return mDebugApiList;
|
||||||
|
}
|
||||||
|
|
||||||
|
const std::vector<SdkApiString>& RoMetadataProcess::getPrivateApiList() const
|
||||||
|
{
|
||||||
|
return mPrivateApiList;
|
||||||
|
}
|
||||||
|
|
||||||
|
const fnd::List<ElfSymbolParser::sElfSymbol>& RoMetadataProcess::getSymbolList() const
|
||||||
|
{
|
||||||
|
return mSymbolList.getSymbolList();
|
||||||
|
}
|
||||||
|
|
||||||
void RoMetadataProcess::importApiList()
|
void RoMetadataProcess::importApiList()
|
||||||
{
|
{
|
||||||
if (mApiInfo.size > 0)
|
if (mApiInfo.size > 0)
|
||||||
|
|
|
@ -27,6 +27,12 @@ public:
|
||||||
void setInstructionType(nx::npdm::InstructionType type);
|
void setInstructionType(nx::npdm::InstructionType type);
|
||||||
void setListApi(bool listApi);
|
void setListApi(bool listApi);
|
||||||
void setListSymbols(bool listSymbols);
|
void setListSymbols(bool listSymbols);
|
||||||
|
|
||||||
|
const std::vector<SdkApiString>& getSdkVerApiList() const;
|
||||||
|
const std::vector<SdkApiString>& getPublicApiList() const;
|
||||||
|
const std::vector<SdkApiString>& getDebugApiList() const;
|
||||||
|
const std::vector<SdkApiString>& getPrivateApiList() const;
|
||||||
|
const fnd::List<ElfSymbolParser::sElfSymbol>& getSymbolList() const;
|
||||||
private:
|
private:
|
||||||
const std::string kModuleName = "RoMetadataProcess";
|
const std::string kModuleName = "RoMetadataProcess";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue