diff options
| author | 2018-09-02 11:58:58 -0400 | |
|---|---|---|
| committer | 2018-09-02 12:35:30 -0400 | |
| commit | 1242c1ec0aab88d91b0bb4faf6200e4f20e4bdc2 (patch) | |
| tree | f540b9cbc6db29bb5d41668f7efa8fc5c4e44469 /src/core/hle/service/service.h | |
| parent | Merge pull request #1213 from DarkLordZach/octopath-fs (diff) | |
| download | yuzu-1242c1ec0aab88d91b0bb4faf6200e4f20e4bdc2.tar.gz yuzu-1242c1ec0aab88d91b0bb4faf6200e4f20e4bdc2.tar.xz yuzu-1242c1ec0aab88d91b0bb4faf6200e4f20e4bdc2.zip | |
service: Migrate global named port map to the KernelCore class
Now that we have a class representing the kernel in some capacity, we
now have a place to put the named port map, so we move it over and get
rid of another piece of global state within the core.
Diffstat (limited to 'src/core/hle/service/service.h')
| -rw-r--r-- | src/core/hle/service/service.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index cd9c74f3d..7a051523e 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <cstddef> | 7 | #include <cstddef> |
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <unordered_map> | ||
| 10 | #include <boost/container/flat_map.hpp> | 9 | #include <boost/container/flat_map.hpp> |
| 11 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 12 | #include "core/hle/kernel/hle_ipc.h" | 11 | #include "core/hle/kernel/hle_ipc.h" |
| @@ -187,10 +186,4 @@ void Init(std::shared_ptr<SM::ServiceManager>& sm, | |||
| 187 | /// Shutdown ServiceManager | 186 | /// Shutdown ServiceManager |
| 188 | void Shutdown(); | 187 | void Shutdown(); |
| 189 | 188 | ||
| 190 | /// Map of named ports managed by the kernel, which can be retrieved using the ConnectToPort SVC. | ||
| 191 | extern std::unordered_map<std::string, Kernel::SharedPtr<Kernel::ClientPort>> g_kernel_named_ports; | ||
| 192 | |||
| 193 | /// Adds a port to the named port table | ||
| 194 | void AddNamedPort(std::string name, Kernel::SharedPtr<Kernel::ClientPort> port); | ||
| 195 | |||
| 196 | } // namespace Service | 189 | } // namespace Service |