diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-03 05:05:17 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-03 05:50:57 +0200 |
commit | 9eb485702fdefbb029b7ad31c3b01eb887f41e73 (patch) | |
tree | c1f5893d97d77c7f61c5e919bff250928e448030 /src | |
parent | Merge pull request #306 from daniellimws/new-fmt-macros (diff) | |
download | yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar.gz yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar.bz2 yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar.lz yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar.xz yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.tar.zst yuzu-9eb485702fdefbb029b7ad31c3b01eb887f41e73.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/hle/service/friend/friend.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/friend/friend_u.cpp | 19 | ||||
-rw-r--r-- | src/core/hle/service/friend/friend_u.h | 18 |
4 files changed, 41 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 6f8104516..97d795d5f 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -130,6 +130,8 @@ add_library(core STATIC hle/service/friend/friend.h hle/service/friend/friend_a.cpp hle/service/friend/friend_a.h + hle/service/friend/friend_u.cpp + hle/service/friend/friend_u.h hle/service/hid/hid.cpp hle/service/hid/hid.h hle/service/lm/lm.cpp diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index 26593bb0c..fc5adc56d 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp @@ -6,6 +6,7 @@ #include "core/hle/ipc_helpers.h" #include "core/hle/service/friend/friend.h" #include "core/hle/service/friend/friend_a.h" +#include "core/hle/service/friend/friend_u.h" namespace Service { namespace Friend { @@ -22,6 +23,7 @@ Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) void InstallInterfaces(SM::ServiceManager& service_manager) { auto module = std::make_shared<Module>(); std::make_shared<Friend_A>(module)->InstallAsService(service_manager); + std::make_shared<Friend_U>(module)->InstallAsService(service_manager); } } // namespace Friend diff --git a/src/core/hle/service/friend/friend_u.cpp b/src/core/hle/service/friend/friend_u.cpp new file mode 100644 index 000000000..084388e5f --- /dev/null +++ b/src/core/hle/service/friend/friend_u.cpp @@ -0,0 +1,19 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/friend/friend_u.h" + +namespace Service { +namespace Friend { + +Friend_U::Friend_U(std::shared_ptr<Module> module) + : Module::Interface(std::move(module), "friend:u") { + static const FunctionInfo functions[] = { + {0, &Friend_U::Unknown, "Unknown"}, + }; + RegisterHandlers(functions); +} + +} // namespace Friend +} // namespace Service diff --git a/src/core/hle/service/friend/friend_u.h b/src/core/hle/service/friend/friend_u.h new file mode 100644 index 000000000..6be49ff01 --- /dev/null +++ b/src/core/hle/service/friend/friend_u.h @@ -0,0 +1,18 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/friend/friend.h" + +namespace Service { +namespace Friend { + +class Friend_U final : public Module::Interface { +public: + explicit Friend_U(std::shared_ptr<Module> module); +}; + +} // namespace Friend +} // namespace Service |