diff options
| author | 2018-10-13 11:25:13 -0400 | |
|---|---|---|
| committer | 2018-10-13 11:36:35 -0400 | |
| commit | 0149162dba67e2019366a055f25de6a1080061d1 (patch) | |
| tree | 21c54abe9ce8d0778bb787c9338d7bd195fb46e0 /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #1409 from DarkLordZach/key-derivation (diff) | |
| download | yuzu-0149162dba67e2019366a055f25de6a1080061d1.tar.gz yuzu-0149162dba67e2019366a055f25de6a1080061d1.tar.xz yuzu-0149162dba67e2019366a055f25de6a1080061d1.zip | |
filesystem: Make CreateFactories() and InstallInterface() take a VfsFilesystem instance by reference
Neither of these functions alter the ownership of the provided pointer,
so we can simply make the parameters a reference rather than a direct
shared pointer alias. This way we also disallow passing incorrect memory values like
nullptr.
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 27aba95f6..c8b93b85b 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -175,7 +175,7 @@ int main(int argc, char** argv) { | |||
| 175 | 175 | ||
| 176 | Core::System& system{Core::System::GetInstance()}; | 176 | Core::System& system{Core::System::GetInstance()}; |
| 177 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); | 177 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); |
| 178 | Service::FileSystem::CreateFactories(system.GetFilesystem()); | 178 | Service::FileSystem::CreateFactories(*system.GetFilesystem()); |
| 179 | 179 | ||
| 180 | SCOPE_EXIT({ system.Shutdown(); }); | 180 | SCOPE_EXIT({ system.Shutdown(); }); |
| 181 | 181 | ||