diff options
| author | 2018-03-01 22:14:31 -0500 | |
|---|---|---|
| committer | 2018-03-01 22:14:31 -0500 | |
| commit | 46fc7d85023f4449b542f0c58830421d667f92b7 (patch) | |
| tree | a605aabd8c776bebea1111fccd8df01d569d5170 /src/core/loader/nro.cpp | |
| parent | Merge pull request #224 from Armada651/clear-process (diff) | |
| parent | SaveData: Use the current titleid when opening the savedata archive. (diff) | |
| download | yuzu-46fc7d85023f4449b542f0c58830421d667f92b7.tar.gz yuzu-46fc7d85023f4449b542f0c58830421d667f92b7.tar.xz yuzu-46fc7d85023f4449b542f0c58830421d667f92b7.zip | |
Merge pull request #216 from Subv/savedata
Implemented the SaveData archive and MountSaveData.
Diffstat (limited to 'src/core/loader/nro.cpp')
| -rw-r--r-- | src/core/loader/nro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp index 6f8a2f21e..c557b66dc 100644 --- a/src/core/loader/nro.cpp +++ b/src/core/loader/nro.cpp | |||
| @@ -83,7 +83,7 @@ bool AppLoader_NRO::LoadNro(const std::string& path, VAddr load_base) { | |||
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | // Build program image | 85 | // Build program image |
| 86 | Kernel::SharedPtr<Kernel::CodeSet> codeset = Kernel::CodeSet::Create("", 0); | 86 | Kernel::SharedPtr<Kernel::CodeSet> codeset = Kernel::CodeSet::Create(""); |
| 87 | std::vector<u8> program_image; | 87 | std::vector<u8> program_image; |
| 88 | program_image.resize(PageAlignSize(nro_header.file_size)); | 88 | program_image.resize(PageAlignSize(nro_header.file_size)); |
| 89 | file.Seek(0, SEEK_SET); | 89 | file.Seek(0, SEEK_SET); |
| @@ -125,7 +125,7 @@ ResultStatus AppLoader_NRO::Load(Kernel::SharedPtr<Kernel::Process>& process) { | |||
| 125 | return ResultStatus::Error; | 125 | return ResultStatus::Error; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | process = Kernel::Process::Create("main"); | 128 | process = Kernel::Process::Create("main", 0); |
| 129 | 129 | ||
| 130 | // Load NRO | 130 | // Load NRO |
| 131 | static constexpr VAddr base_addr{Memory::PROCESS_IMAGE_VADDR}; | 131 | static constexpr VAddr base_addr{Memory::PROCESS_IMAGE_VADDR}; |