diff options
| author | 2018-09-04 12:16:06 -0400 | |
|---|---|---|
| committer | 2018-09-04 12:16:06 -0400 | |
| commit | 9a07e9f8057323dbec477a8e90e626bf80fc1a61 (patch) | |
| tree | 12fa8788cbe0e913bbcbee452ccbac65fdef742f /src/core | |
| parent | Merge pull request #1223 from DarkLordZach/custom-nand-sd-dirs (diff) | |
| parent | core: Use a raw pointer in GetGPUDebugContext. (diff) | |
| download | yuzu-9a07e9f8057323dbec477a8e90e626bf80fc1a61.tar.gz yuzu-9a07e9f8057323dbec477a8e90e626bf80fc1a61.tar.xz yuzu-9a07e9f8057323dbec477a8e90e626bf80fc1a61.zip | |
Merge pull request #1237 from degasus/optimizations
Optimizations
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/core.cpp | 4 | ||||
| -rw-r--r-- | src/core/core.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 29983b9b4..cbab80881 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -441,8 +441,8 @@ void System::SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context) { | |||
| 441 | impl->debug_context = std::move(context); | 441 | impl->debug_context = std::move(context); |
| 442 | } | 442 | } |
| 443 | 443 | ||
| 444 | std::shared_ptr<Tegra::DebugContext> System::GetGPUDebugContext() const { | 444 | Tegra::DebugContext* System::GetGPUDebugContext() const { |
| 445 | return impl->debug_context; | 445 | return impl->debug_context.get(); |
| 446 | } | 446 | } |
| 447 | 447 | ||
| 448 | void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { | 448 | void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) { |
diff --git a/src/core/core.h b/src/core/core.h index eee1fecc1..5c3c0e2a1 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -209,7 +209,7 @@ public: | |||
| 209 | 209 | ||
| 210 | void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context); | 210 | void SetGPUDebugContext(std::shared_ptr<Tegra::DebugContext> context); |
| 211 | 211 | ||
| 212 | std::shared_ptr<Tegra::DebugContext> GetGPUDebugContext() const; | 212 | Tegra::DebugContext* GetGPUDebugContext() const; |
| 213 | 213 | ||
| 214 | void SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs); | 214 | void SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs); |
| 215 | 215 | ||