Fix formatting

This commit is contained in:
goaaats
2018-01-19 15:04:07 +01:00
parent 309a498978
commit 1278de0601
6 changed files with 14 additions and 14 deletions

View File

@@ -124,6 +124,8 @@ add_library(core STATIC
hle/service/pctl/pctl_a.h
hle/service/service.cpp
hle/service/service.h
hle/service/set/set.cpp
hle/service/set/set.h
hle/service/sm/controller.cpp
hle/service/sm/controller.h
hle/service/sm/sm.cpp
@@ -139,8 +141,6 @@ add_library(core STATIC
hle/service/vi/vi.h
hle/service/vi/vi_m.cpp
hle/service/vi/vi_m.h
hle/service/set/set.cpp
hle/service/set/set.h
hle/shared_page.cpp
hle/shared_page.h
hw/hw.cpp

View File

@@ -15,8 +15,8 @@ public:
~ACC_U0() = default;
private:
void GetUserExistence( Kernel::HLERequestContext& ctx );
void GetProfile( Kernel::HLERequestContext& ctx );
void GetUserExistence(Kernel::HLERequestContext& ctx);
void GetProfile(Kernel::HLERequestContext& ctx);
void InitializeApplicationInfo(Kernel::HLERequestContext& ctx);
void GetBaasAccountManagerForApplication(Kernel::HLERequestContext& ctx);
};

View File

@@ -316,7 +316,7 @@ private:
}
void GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
IPC::RequestBuilder rb{ctx, 2};
IPC::RequestBuilder rb{ctx, 4};
rb.Push(RESULT_SUCCESS);
rb.Push<u64>(1); // English?
LOG_WARNING(Service, "(STUBBED) called");

View File

@@ -24,12 +24,12 @@
#include "core/hle/service/nvdrv/nvdrv.h"
#include "core/hle/service/pctl/pctl.h"
#include "core/hle/service/service.h"
#include "core/hle/service/set/set.h"
#include "core/hle/service/sm/controller.h"
#include "core/hle/service/sm/sm.h"
#include "core/hle/service/sockets/sockets.h"
#include "core/hle/service/time/time.h"
#include "core/hle/service/vi/vi.h"
#include "core/hle/service/set/set.h"
using Kernel::ClientPort;
using Kernel::ServerPort;

View File

@@ -13,20 +13,20 @@ namespace Service {
namespace Set {
void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
constexpr u8 data[13] = {
constexpr std::array<u8, 13> lang_codes{{
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
};
}};
const auto& output_buffer = ctx.BufferDescriptorC()[0];
Memory::WriteBlock( output_buffer.Address(), data, sizeof( data ) );
Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size());
IPC::RequestBuilder rb{ ctx, 4 };
IPC::RequestBuilder rb{ctx, 4};
rb.Push( RESULT_SUCCESS );
rb.Push( static_cast<u64>( sizeof( data ) ) );
rb.Push(RESULT_SUCCESS);
rb.Push(static_cast<u64>(lang_codes.size()));
LOG_WARNING( Service, "(STUBBED) called" );
LOG_WARNING(Service, "(STUBBED) called");
}
SET::SET(const char* name) : ServiceFramework(name) {

View File

@@ -18,7 +18,7 @@ private:
void GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx);
};
/// Registers all Time services with the specified service manager.
/// Registers all Set services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace Set