mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-26 18:27:52 -05:00
Services: Continue separation of services into their own folders
This commit is contained in:
29
src/core/hle/service/boss/boss.cpp
Normal file
29
src/core/hle/service/boss/boss.cpp
Normal file
@ -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/boss/boss.h"
|
||||
#include "core/hle/service/boss/boss_p.h"
|
||||
#include "core/hle/service/boss/boss_u.h"
|
||||
|
||||
#include "core/hle/kernel/event.h"
|
||||
#include "core/hle/kernel/shared_memory.h"
|
||||
#include "core/hle/hle.h"
|
||||
|
||||
namespace Service {
|
||||
namespace BOSS {
|
||||
|
||||
void Init() {
|
||||
using namespace Kernel;
|
||||
|
||||
AddService(new BOSS_P_Interface);
|
||||
AddService(new BOSS_U_Interface);
|
||||
}
|
||||
|
||||
void Shutdown() {
|
||||
}
|
||||
|
||||
} // namespace BOSS
|
||||
|
||||
} // namespace Service
|
20
src/core/hle/service/boss/boss.h
Normal file
20
src/core/hle/service/boss/boss.h
Normal file
@ -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 BOSS {
|
||||
|
||||
/// Initialize BOSS service(s)
|
||||
void Init();
|
||||
|
||||
/// Shutdown BOSS service(s)
|
||||
void Shutdown();
|
||||
|
||||
} // namespace BOSS
|
||||
} // namespace Service
|
20
src/core/hle/service/boss/boss_p.cpp
Normal file
20
src/core/hle/service/boss/boss_p.cpp
Normal file
@ -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/boss/boss.h"
|
||||
#include "core/hle/service/boss/boss_p.h"
|
||||
|
||||
namespace Service {
|
||||
namespace BOSS {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
// const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
BOSS_P_Interface::BOSS_P_Interface() {
|
||||
//Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace BOSS
|
||||
} // namespace Service
|
22
src/core/hle/service/boss/boss_p.h
Normal file
22
src/core/hle/service/boss/boss_p.h
Normal file
@ -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 BOSS {
|
||||
|
||||
class BOSS_P_Interface : public Service::Interface {
|
||||
public:
|
||||
BOSS_P_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "boss:P";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace BOSS
|
||||
} // namespace Service
|
21
src/core/hle/service/boss/boss_u.cpp
Normal file
21
src/core/hle/service/boss/boss_u.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
// 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/boss/boss.h"
|
||||
#include "core/hle/service/boss/boss_u.h"
|
||||
|
||||
namespace Service {
|
||||
namespace BOSS {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00020100, nullptr, "GetStorageInfo"},
|
||||
};
|
||||
|
||||
BOSS_U_Interface::BOSS_U_Interface() {
|
||||
Register(FunctionTable);
|
||||
}
|
||||
|
||||
} // namespace BOSS
|
||||
} // namespace Service
|
22
src/core/hle/service/boss/boss_u.h
Normal file
22
src/core/hle/service/boss/boss_u.h
Normal file
@ -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 BOSS {
|
||||
|
||||
class BOSS_U_Interface : public Service::Interface {
|
||||
public:
|
||||
BOSS_U_Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "boss:U";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace BOSS
|
||||
} // namespace Service
|
Reference in New Issue
Block a user