summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/frd
diff options
context:
space:
mode:
authorpurpasmart96 <kanzoconfigz@hotmail.com>2015-06-12 00:12:16 +0200
committerpurpasmart96 <kanzoconfigz@hotmail.com>2015-06-12 05:41:59 +0200
commit7933dbe6a0eee766a64b26f7d4461a40e473fcdc (patch)
tree91ae37d96b1e508f63055f285c64225811237b8a /src/core/hle/service/frd
parentMerge pull request #848 from lioncash/ldm (diff)
downloadyuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.gz
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.bz2
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.lz
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.xz
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.tar.zst
yuzu-7933dbe6a0eee766a64b26f7d4461a40e473fcdc.zip
Diffstat (limited to 'src/core/hle/service/frd')
-rw-r--r--src/core/hle/service/frd/frd.cpp29
-rw-r--r--src/core/hle/service/frd/frd.h20
-rw-r--r--src/core/hle/service/frd/frd_a.cpp20
-rw-r--r--src/core/hle/service/frd/frd_a.h22
-rw-r--r--src/core/hle/service/frd/frd_u.cpp29
-rw-r--r--src/core/hle/service/frd/frd_u.h22
6 files changed, 142 insertions, 0 deletions
diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp
new file mode 100644
index 000000000..2911ab402
--- /dev/null
+++ b/src/core/hle/service/frd/frd.cpp
@@ -0,0 +1,29 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/service/service.h"
+#include "core/hle/service/frd/frd.h"
+#include "core/hle/service/frd/frd_a.h"
+#include "core/hle/service/frd/frd_u.h"
+
+#include "core/hle/kernel/event.h"
+#include "core/hle/kernel/shared_memory.h"
+#include "core/hle/hle.h"
+
+namespace Service {
+namespace FRD {
+
+void Init() {
+ using namespace Kernel;
+
+ AddService(new FRD_A_Interface);
+ AddService(new FRD_U_Interface);
+}
+
+void Shutdown() {
+}
+
+} // namespace FRD
+
+} // namespace Service
diff --git a/src/core/hle/service/frd/frd.h b/src/core/hle/service/frd/frd.h
new file mode 100644
index 000000000..41f7a2f6b
--- /dev/null
+++ b/src/core/hle/service/frd/frd.h
@@ -0,0 +1,20 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/kernel/kernel.h"
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace FRD {
+
+/// Initialize FRD service(s)
+void Init();
+
+/// Shutdown FRD service(s)
+void Shutdown();
+
+} // namespace FRD
+} // namespace Service
diff --git a/src/core/hle/service/frd/frd_a.cpp b/src/core/hle/service/frd/frd_a.cpp
new file mode 100644
index 000000000..1c438a337
--- /dev/null
+++ b/src/core/hle/service/frd/frd_a.cpp
@@ -0,0 +1,20 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/hle.h"
+#include "core/hle/service/frd/frd.h"
+#include "core/hle/service/frd/frd_a.h"
+
+namespace Service {
+namespace FRD {
+
+// Empty arrays are illegal -- commented out until an entry is added.
+// const Interface::FunctionInfo FunctionTable[] = { };
+
+FRD_A_Interface::FRD_A_Interface() {
+ //Register(FunctionTable);
+}
+
+} // namespace FRD
+} // namespace Service
diff --git a/src/core/hle/service/frd/frd_a.h b/src/core/hle/service/frd/frd_a.h
new file mode 100644
index 000000000..006d1cadd
--- /dev/null
+++ b/src/core/hle/service/frd/frd_a.h
@@ -0,0 +1,22 @@
+// Copyright 2015 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace FRD {
+
+class FRD_A_Interface : public Service::Interface {
+public:
+ FRD_A_Interface();
+
+ std::string GetPortName() const override {
+ return "frd:a";
+ }
+};
+
+} // namespace FRD
+} // namespace Service
diff --git a/src/core/hle/service/frd/frd_u.cpp b/src/core/hle/service/frd/frd_u.cpp
new file mode 100644
index 000000000..439c7282e
--- /dev/null
+++ b/src/core/hle/service/frd/frd_u.cpp
@@ -0,0 +1,29 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "core/hle/hle.h"
+#include "core/hle/service/frd/frd.h"
+#include "core/hle/service/frd/frd_u.h"
+
+namespace Service {
+namespace FRD {
+
+const Interface::FunctionInfo FunctionTable[] = {
+ {0x00050000, nullptr, "GetFriendKey"},
+ {0x00080000, nullptr, "GetMyPresence"},
+ {0x00100040, nullptr, "GetPassword"},
+ {0x00190042, nullptr, "GetFriendFavoriteGame"},
+ {0x001A00C4, nullptr, "GetFriendInfo"},
+ {0x001B0080, nullptr, "IsOnFriendList"},
+ {0x001C0042, nullptr, "DecodeLocalFriendCode"},
+ {0x001D0002, nullptr, "SetCurrentlyPlayingText"},
+ {0x00320042, nullptr, "SetClientSdkVersion"}
+};
+
+FRD_U_Interface::FRD_U_Interface() {
+ Register(FunctionTable);
+}
+
+} // namespace FRD
+} // namespace Service
diff --git a/src/core/hle/service/frd/frd_u.h b/src/core/hle/service/frd/frd_u.h
new file mode 100644
index 000000000..07e43f155
--- /dev/null
+++ b/src/core/hle/service/frd/frd_u.h
@@ -0,0 +1,22 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace FRD {
+
+class FRD_U_Interface : public Service::Interface {
+public:
+ FRD_U_Interface();
+
+ std::string GetPortName() const override {
+ return "frd:u";
+ }
+};
+
+} // namespace FRD
+} // namespace Service