summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt10
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt3
-rw-r--r--src/android/app/src/main/jni/emu_window/emu_window.cpp16
-rw-r--r--src/android/app/src/main/jni/emu_window/emu_window.h4
-rw-r--r--src/android/app/src/main/jni/native_input.cpp8
-rw-r--r--src/core/file_sys/control_metadata.h4
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp5
-rw-r--r--src/core/hle/service/am/applet_manager.cpp18
-rw-r--r--src/core/hle/service/am/service/application_functions.cpp19
-rw-r--r--src/core/hle/service/am/service/application_functions.h1
-rw-r--r--src/core/hle/service/am/service/library_applet_self_accessor.cpp6
-rw-r--r--src/core/hle/service/am/service/library_applet_self_accessor.h2
-rw-r--r--src/core/hle/service/caps/caps_a.cpp11
-rw-r--r--src/core/hle/service/caps/caps_a.h3
-rw-r--r--src/core/hle/service/erpt/erpt.cpp12
-rw-r--r--src/core/hle/service/filesystem/fsp/fsp_srv.cpp9
-rw-r--r--src/core/hle/service/filesystem/fsp/fsp_srv.h1
17 files changed, 111 insertions, 21 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
index 0b70fccec..c962558a7 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/activities/EmulationActivity.kt
@@ -80,8 +80,14 @@ class EmulationActivity : AppCompatActivity(), SensorEventListener {
80 super.onCreate(savedInstanceState) 80 super.onCreate(savedInstanceState)
81 81
82 InputHandler.updateControllerData() 82 InputHandler.updateControllerData()
83 val playerOne = NativeConfig.getInputSettings(true)[0] 83 val players = NativeConfig.getInputSettings(true)
84 if (!playerOne.hasMapping() && InputHandler.androidControllers.isNotEmpty()) { 84 var hasConfiguredControllers = false
85 players.forEach {
86 if (it.hasMapping()) {
87 hasConfiguredControllers = true
88 }
89 }
90 if (!hasConfiguredControllers && InputHandler.androidControllers.isNotEmpty()) {
85 var params: ParamPackage? = null 91 var params: ParamPackage? = null
86 for (controller in InputHandler.registeredControllers) { 92 for (controller in InputHandler.registeredControllers) {
87 if (controller.get("port", -1) == 0) { 93 if (controller.get("port", -1) == 0) {
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
index d16f8a931..757463a0b 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
@@ -498,7 +498,8 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
498 this@MainActivity, 498 this@MainActivity,
499 titleId = R.string.content_install_notice, 499 titleId = R.string.content_install_notice,
500 descriptionId = R.string.content_install_notice_description, 500 descriptionId = R.string.content_install_notice_description,
501 positiveAction = { homeViewModel.setContentToInstall(documents) } 501 positiveAction = { homeViewModel.setContentToInstall(documents) },
502 negativeAction = {}
502 ) 503 )
503 } 504 }
504 }.show(supportFragmentManager, ProgressDialogFragment.TAG) 505 }.show(supportFragmentManager, ProgressDialogFragment.TAG)
diff --git a/src/android/app/src/main/jni/emu_window/emu_window.cpp b/src/android/app/src/main/jni/emu_window/emu_window.cpp
index 2768a01c9..06db55369 100644
--- a/src/android/app/src/main/jni/emu_window/emu_window.cpp
+++ b/src/android/app/src/main/jni/emu_window/emu_window.cpp
@@ -23,6 +23,22 @@ void EmuWindow_Android::OnSurfaceChanged(ANativeWindow* surface) {
23 window_info.render_surface = reinterpret_cast<void*>(surface); 23 window_info.render_surface = reinterpret_cast<void*>(surface);
24} 24}
25 25
26void EmuWindow_Android::OnTouchPressed(int id, float x, float y) {
27 const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
28 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchPressed(touch_x,
29 touch_y, id);
30}
31
32void EmuWindow_Android::OnTouchMoved(int id, float x, float y) {
33 const auto [touch_x, touch_y] = MapToTouchScreen(x, y);
34 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchMoved(touch_x,
35 touch_y, id);
36}
37
38void EmuWindow_Android::OnTouchReleased(int id) {
39 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchReleased(id);
40}
41
26void EmuWindow_Android::OnFrameDisplayed() { 42void EmuWindow_Android::OnFrameDisplayed() {
27 if (!m_first_frame) { 43 if (!m_first_frame) {
28 Common::Android::RunJNIOnFiber<void>( 44 Common::Android::RunJNIOnFiber<void>(
diff --git a/src/android/app/src/main/jni/emu_window/emu_window.h b/src/android/app/src/main/jni/emu_window/emu_window.h
index 34704ae95..d7b5fc6da 100644
--- a/src/android/app/src/main/jni/emu_window/emu_window.h
+++ b/src/android/app/src/main/jni/emu_window/emu_window.h
@@ -38,6 +38,10 @@ public:
38 void OnSurfaceChanged(ANativeWindow* surface); 38 void OnSurfaceChanged(ANativeWindow* surface);
39 void OnFrameDisplayed() override; 39 void OnFrameDisplayed() override;
40 40
41 void OnTouchPressed(int id, float x, float y);
42 void OnTouchMoved(int id, float x, float y);
43 void OnTouchReleased(int id);
44
41 std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override { 45 std::unique_ptr<Core::Frontend::GraphicsContext> CreateSharedContext() const override {
42 return {std::make_unique<GraphicsContext_Android>(m_driver_library)}; 46 return {std::make_unique<GraphicsContext_Android>(m_driver_library)};
43 } 47 }
diff --git a/src/android/app/src/main/jni/native_input.cpp b/src/android/app/src/main/jni/native_input.cpp
index ddf2f297b..37a65f2b8 100644
--- a/src/android/app/src/main/jni/native_input.cpp
+++ b/src/android/app/src/main/jni/native_input.cpp
@@ -190,8 +190,7 @@ void Java_org_yuzu_yuzu_1emu_features_input_NativeInput_onTouchPressed(JNIEnv* e
190 jint j_id, jfloat j_x_axis, 190 jint j_id, jfloat j_x_axis,
191 jfloat j_y_axis) { 191 jfloat j_y_axis) {
192 if (EmulationSession::GetInstance().IsRunning()) { 192 if (EmulationSession::GetInstance().IsRunning()) {
193 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchPressed( 193 EmulationSession::GetInstance().Window().OnTouchPressed(j_id, j_x_axis, j_y_axis);
194 j_id, j_x_axis, j_y_axis);
195 } 194 }
196} 195}
197 196
@@ -199,15 +198,14 @@ void Java_org_yuzu_yuzu_1emu_features_input_NativeInput_onTouchMoved(JNIEnv* env
199 jint j_id, jfloat j_x_axis, 198 jint j_id, jfloat j_x_axis,
200 jfloat j_y_axis) { 199 jfloat j_y_axis) {
201 if (EmulationSession::GetInstance().IsRunning()) { 200 if (EmulationSession::GetInstance().IsRunning()) {
202 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchMoved( 201 EmulationSession::GetInstance().Window().OnTouchMoved(j_id, j_x_axis, j_y_axis);
203 j_id, j_x_axis, j_y_axis);
204 } 202 }
205} 203}
206 204
207void Java_org_yuzu_yuzu_1emu_features_input_NativeInput_onTouchReleased(JNIEnv* env, jobject j_obj, 205void Java_org_yuzu_yuzu_1emu_features_input_NativeInput_onTouchReleased(JNIEnv* env, jobject j_obj,
208 jint j_id) { 206 jint j_id) {
209 if (EmulationSession::GetInstance().IsRunning()) { 207 if (EmulationSession::GetInstance().IsRunning()) {
210 EmulationSession::GetInstance().GetInputSubsystem().GetTouchScreen()->TouchReleased(j_id); 208 EmulationSession::GetInstance().Window().OnTouchReleased(j_id);
211 } 209 }
212} 210}
213 211
diff --git a/src/core/file_sys/control_metadata.h b/src/core/file_sys/control_metadata.h
index 555b9d8f7..667efbbab 100644
--- a/src/core/file_sys/control_metadata.h
+++ b/src/core/file_sys/control_metadata.h
@@ -64,8 +64,8 @@ struct RawNACP {
64 u64_le cache_storage_size; 64 u64_le cache_storage_size;
65 u64_le cache_storage_journal_size; 65 u64_le cache_storage_journal_size;
66 u64_le cache_storage_data_and_journal_max_size; 66 u64_le cache_storage_data_and_journal_max_size;
67 u64_le cache_storage_max_index; 67 u16_le cache_storage_max_index;
68 INSERT_PADDING_BYTES(0xE70); 68 INSERT_PADDING_BYTES(0xE76);
69}; 69};
70static_assert(sizeof(RawNACP) == 0x4000, "RawNACP has incorrect size."); 70static_assert(sizeof(RawNACP) == 0x4000, "RawNACP has incorrect size.");
71 71
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 29a10ad13..ee9795532 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -329,9 +329,8 @@ bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase&
329 329
330/// Returns if the system is allowing user registrations or not 330/// Returns if the system is allowing user registrations or not
331bool ProfileManager::CanSystemRegisterUser() const { 331bool ProfileManager::CanSystemRegisterUser() const {
332 return false; // TODO(ogniK): Games shouldn't have 332 // TODO: Both games and applets can register users. Determine when this condition is not meet.
333 // access to user registration, when we 333 return true;
334 // emulate qlaunch. Update this to dynamically change.
335} 334}
336 335
337bool ProfileManager::RemoveUser(UUID uuid) { 336bool ProfileManager::RemoveUser(UUID uuid) {
diff --git a/src/core/hle/service/am/applet_manager.cpp b/src/core/hle/service/am/applet_manager.cpp
index 4c7266f89..2e109181d 100644
--- a/src/core/hle/service/am/applet_manager.cpp
+++ b/src/core/hle/service/am/applet_manager.cpp
@@ -35,6 +35,21 @@ AppletStorageChannel& InitializeFakeCallerApplet(Core::System& system,
35 return applet->caller_applet_broker->GetInData(); 35 return applet->caller_applet_broker->GetInData();
36} 36}
37 37
38void PushInShowQlaunch(Core::System& system, AppletStorageChannel& channel) {
39 const CommonArguments arguments{
40 .arguments_version = CommonArgumentVersion::Version3,
41 .size = CommonArgumentSize::Version3,
42 .library_version = 0,
43 .theme_color = ThemeColor::BasicBlack,
44 .play_startup_sound = true,
45 .system_tick = system.CoreTiming().GetClockTicks(),
46 };
47
48 std::vector<u8> argument_data(sizeof(arguments));
49 std::memcpy(argument_data.data(), &arguments, sizeof(arguments));
50 channel.Push(std::make_shared<IStorage>(system, std::move(argument_data)));
51}
52
38void PushInShowAlbum(Core::System& system, AppletStorageChannel& channel) { 53void PushInShowAlbum(Core::System& system, AppletStorageChannel& channel) {
39 const CommonArguments arguments{ 54 const CommonArguments arguments{
40 .arguments_version = CommonArgumentVersion::Version3, 55 .arguments_version = CommonArgumentVersion::Version3,
@@ -284,6 +299,9 @@ void AppletManager::CreateAndInsertByFrontendAppletParameters(
284 299
285 // Starting from frontend, some applets require input data. 300 // Starting from frontend, some applets require input data.
286 switch (applet->applet_id) { 301 switch (applet->applet_id) {
302 case AppletId::QLaunch:
303 PushInShowQlaunch(m_system, InitializeFakeCallerApplet(m_system, applet));
304 break;
287 case AppletId::Cabinet: 305 case AppletId::Cabinet:
288 PushInShowCabinetData(m_system, InitializeFakeCallerApplet(m_system, applet)); 306 PushInShowCabinetData(m_system, InitializeFakeCallerApplet(m_system, applet));
289 break; 307 break;
diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp
index b788fddd4..63dd12a47 100644
--- a/src/core/hle/service/am/service/application_functions.cpp
+++ b/src/core/hle/service/am/service/application_functions.cpp
@@ -15,6 +15,7 @@
15#include "core/hle/service/cmif_serialization.h" 15#include "core/hle/service/cmif_serialization.h"
16#include "core/hle/service/filesystem/filesystem.h" 16#include "core/hle/service/filesystem/filesystem.h"
17#include "core/hle/service/filesystem/save_data_controller.h" 17#include "core/hle/service/filesystem/save_data_controller.h"
18#include "core/hle/service/glue/glue_manager.h"
18#include "core/hle/service/ns/ns.h" 19#include "core/hle/service/ns/ns.h"
19#include "core/hle/service/sm/sm.h" 20#include "core/hle/service/sm/sm.h"
20 21
@@ -40,7 +41,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_, std::shared_
40 {26, D<&IApplicationFunctions::GetSaveDataSize>, "GetSaveDataSize"}, 41 {26, D<&IApplicationFunctions::GetSaveDataSize>, "GetSaveDataSize"},
41 {27, D<&IApplicationFunctions::CreateCacheStorage>, "CreateCacheStorage"}, 42 {27, D<&IApplicationFunctions::CreateCacheStorage>, "CreateCacheStorage"},
42 {28, D<&IApplicationFunctions::GetSaveDataSizeMax>, "GetSaveDataSizeMax"}, 43 {28, D<&IApplicationFunctions::GetSaveDataSizeMax>, "GetSaveDataSizeMax"},
43 {29, nullptr, "GetCacheStorageMax"}, 44 {29, D<&IApplicationFunctions::GetCacheStorageMax>, "GetCacheStorageMax"},
44 {30, D<&IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed>, "BeginBlockingHomeButtonShortAndLongPressed"}, 45 {30, D<&IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed>, "BeginBlockingHomeButtonShortAndLongPressed"},
45 {31, D<&IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed>, "EndBlockingHomeButtonShortAndLongPressed"}, 46 {31, D<&IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed>, "EndBlockingHomeButtonShortAndLongPressed"},
46 {32, D<&IApplicationFunctions::BeginBlockingHomeButton>, "BeginBlockingHomeButton"}, 47 {32, D<&IApplicationFunctions::BeginBlockingHomeButton>, "BeginBlockingHomeButton"},
@@ -267,6 +268,22 @@ Result IApplicationFunctions::GetSaveDataSizeMax(Out<u64> out_max_normal_size,
267 R_SUCCEED(); 268 R_SUCCEED();
268} 269}
269 270
271Result IApplicationFunctions::GetCacheStorageMax(Out<u32> out_cache_storage_index_max,
272 Out<u64> out_max_journal_size) {
273 LOG_DEBUG(Service_AM, "called");
274
275 std::vector<u8> nacp;
276 R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id));
277
278 auto raw_nacp = std::make_unique<FileSys::RawNACP>();
279 std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size()));
280
281 *out_cache_storage_index_max = static_cast<u32>(raw_nacp->cache_storage_max_index);
282 *out_max_journal_size = static_cast<u64>(raw_nacp->cache_storage_data_and_journal_max_size);
283
284 R_SUCCEED();
285}
286
270Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) { 287Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) {
271 LOG_WARNING(Service_AM, "(STUBBED) called"); 288 LOG_WARNING(Service_AM, "(STUBBED) called");
272 289
diff --git a/src/core/hle/service/am/service/application_functions.h b/src/core/hle/service/am/service/application_functions.h
index 3548202f8..10025a152 100644
--- a/src/core/hle/service/am/service/application_functions.h
+++ b/src/core/hle/service/am/service/application_functions.h
@@ -40,6 +40,7 @@ private:
40 Result CreateCacheStorage(Out<u32> out_target_media, Out<u64> out_required_size, u16 index, 40 Result CreateCacheStorage(Out<u32> out_target_media, Out<u64> out_required_size, u16 index,
41 u64 normal_size, u64 journal_size); 41 u64 normal_size, u64 journal_size);
42 Result GetSaveDataSizeMax(Out<u64> out_max_normal_size, Out<u64> out_max_journal_size); 42 Result GetSaveDataSizeMax(Out<u64> out_max_normal_size, Out<u64> out_max_journal_size);
43 Result GetCacheStorageMax(Out<u32> out_cache_storage_index_max, Out<u64> out_max_journal_size);
43 Result BeginBlockingHomeButtonShortAndLongPressed(s64 unused); 44 Result BeginBlockingHomeButtonShortAndLongPressed(s64 unused);
44 Result EndBlockingHomeButtonShortAndLongPressed(); 45 Result EndBlockingHomeButtonShortAndLongPressed();
45 Result BeginBlockingHomeButton(s64 timeout_ns); 46 Result BeginBlockingHomeButton(s64 timeout_ns);
diff --git a/src/core/hle/service/am/service/library_applet_self_accessor.cpp b/src/core/hle/service/am/service/library_applet_self_accessor.cpp
index 7a3a86e88..94bd4dae6 100644
--- a/src/core/hle/service/am/service/library_applet_self_accessor.cpp
+++ b/src/core/hle/service/am/service/library_applet_self_accessor.cpp
@@ -284,17 +284,17 @@ Result ILibraryAppletSelfAccessor::GetCurrentApplicationId(Out<u64> out_applicat
284} 284}
285 285
286Result ILibraryAppletSelfAccessor::GetMainAppletAvailableUsers( 286Result ILibraryAppletSelfAccessor::GetMainAppletAvailableUsers(
287 Out<bool> out_no_users_available, Out<s32> out_users_count, 287 Out<bool> out_can_select_any_user, Out<s32> out_users_count,
288 OutArray<Common::UUID, BufferAttr_HipcMapAlias> out_users) { 288 OutArray<Common::UUID, BufferAttr_HipcMapAlias> out_users) {
289 const Service::Account::ProfileManager manager{}; 289 const Service::Account::ProfileManager manager{};
290 290
291 *out_no_users_available = true; 291 *out_can_select_any_user = false;
292 *out_users_count = -1; 292 *out_users_count = -1;
293 293
294 LOG_INFO(Service_AM, "called"); 294 LOG_INFO(Service_AM, "called");
295 295
296 if (manager.GetUserCount() > 0) { 296 if (manager.GetUserCount() > 0) {
297 *out_no_users_available = false; 297 *out_can_select_any_user = true;
298 *out_users_count = static_cast<s32>(manager.GetUserCount()); 298 *out_users_count = static_cast<s32>(manager.GetUserCount());
299 299
300 const auto users = manager.GetAllUsers(); 300 const auto users = manager.GetAllUsers();
diff --git a/src/core/hle/service/am/service/library_applet_self_accessor.h b/src/core/hle/service/am/service/library_applet_self_accessor.h
index a9743569f..3e60393c2 100644
--- a/src/core/hle/service/am/service/library_applet_self_accessor.h
+++ b/src/core/hle/service/am/service/library_applet_self_accessor.h
@@ -71,7 +71,7 @@ private:
71 ErrorCode error_code, InLargeData<ErrorContext, BufferAttr_HipcMapAlias> error_context); 71 ErrorCode error_code, InLargeData<ErrorContext, BufferAttr_HipcMapAlias> error_context);
72 Result GetMainAppletApplicationDesiredLanguage(Out<u64> out_desired_language); 72 Result GetMainAppletApplicationDesiredLanguage(Out<u64> out_desired_language);
73 Result GetCurrentApplicationId(Out<u64> out_application_id); 73 Result GetCurrentApplicationId(Out<u64> out_application_id);
74 Result GetMainAppletAvailableUsers(Out<bool> out_no_users_available, Out<s32> out_users_count, 74 Result GetMainAppletAvailableUsers(Out<bool> out_can_select_any_user, Out<s32> out_users_count,
75 OutArray<Common::UUID, BufferAttr_HipcMapAlias> out_users); 75 OutArray<Common::UUID, BufferAttr_HipcMapAlias> out_users);
76 Result ShouldSetGpuTimeSliceManually(Out<bool> out_should_set_gpu_time_slice_manually); 76 Result ShouldSetGpuTimeSliceManually(Out<bool> out_should_set_gpu_time_slice_manually);
77 Result Cmd160(Out<u64> out_unknown0); 77 Result Cmd160(Out<u64> out_unknown0);
diff --git a/src/core/hle/service/caps/caps_a.cpp b/src/core/hle/service/caps/caps_a.cpp
index 47ff072c5..52228b830 100644
--- a/src/core/hle/service/caps/caps_a.cpp
+++ b/src/core/hle/service/caps/caps_a.cpp
@@ -16,7 +16,7 @@ IAlbumAccessorService::IAlbumAccessorService(Core::System& system_,
16 // clang-format off 16 // clang-format off
17 static const FunctionInfo functions[] = { 17 static const FunctionInfo functions[] = {
18 {0, nullptr, "GetAlbumFileCount"}, 18 {0, nullptr, "GetAlbumFileCount"},
19 {1, nullptr, "GetAlbumFileList"}, 19 {1, C<&IAlbumAccessorService::GetAlbumFileList>, "GetAlbumFileList"},
20 {2, nullptr, "LoadAlbumFile"}, 20 {2, nullptr, "LoadAlbumFile"},
21 {3, C<&IAlbumAccessorService::DeleteAlbumFile>, "DeleteAlbumFile"}, 21 {3, C<&IAlbumAccessorService::DeleteAlbumFile>, "DeleteAlbumFile"},
22 {4, nullptr, "StorageCopyAlbumFile"}, 22 {4, nullptr, "StorageCopyAlbumFile"},
@@ -62,6 +62,15 @@ IAlbumAccessorService::IAlbumAccessorService(Core::System& system_,
62 62
63IAlbumAccessorService::~IAlbumAccessorService() = default; 63IAlbumAccessorService::~IAlbumAccessorService() = default;
64 64
65Result IAlbumAccessorService::GetAlbumFileList(
66 Out<u64> out_count, AlbumStorage storage,
67 OutArray<AlbumEntry, BufferAttr_HipcMapAlias> out_entries) {
68 LOG_INFO(Service_Capture, "called, storage={}", storage);
69
70 const Result result = manager->GetAlbumFileList(out_entries, *out_count, storage, 0);
71 R_RETURN(TranslateResult(result));
72}
73
65Result IAlbumAccessorService::DeleteAlbumFile(AlbumFileId file_id) { 74Result IAlbumAccessorService::DeleteAlbumFile(AlbumFileId file_id) {
66 LOG_INFO(Service_Capture, "called, application_id=0x{:0x}, storage={}, type={}", 75 LOG_INFO(Service_Capture, "called, application_id=0x{:0x}, storage={}, type={}",
67 file_id.application_id, file_id.storage, file_id.type); 76 file_id.application_id, file_id.storage, file_id.type);
diff --git a/src/core/hle/service/caps/caps_a.h b/src/core/hle/service/caps/caps_a.h
index 2cb9b4547..c7a5208e3 100644
--- a/src/core/hle/service/caps/caps_a.h
+++ b/src/core/hle/service/caps/caps_a.h
@@ -21,6 +21,9 @@ public:
21 ~IAlbumAccessorService() override; 21 ~IAlbumAccessorService() override;
22 22
23private: 23private:
24 Result GetAlbumFileList(Out<u64> out_count, AlbumStorage storage,
25 OutArray<AlbumEntry, BufferAttr_HipcMapAlias> out_entries);
26
24 Result DeleteAlbumFile(AlbumFileId file_id); 27 Result DeleteAlbumFile(AlbumFileId file_id);
25 28
26 Result IsAlbumMounted(Out<bool> out_is_mounted, AlbumStorage storage); 29 Result IsAlbumMounted(Out<bool> out_is_mounted, AlbumStorage storage);
diff --git a/src/core/hle/service/erpt/erpt.cpp b/src/core/hle/service/erpt/erpt.cpp
index 3ea862fad..39ae3a723 100644
--- a/src/core/hle/service/erpt/erpt.cpp
+++ b/src/core/hle/service/erpt/erpt.cpp
@@ -3,6 +3,8 @@
3 3
4#include <memory> 4#include <memory>
5 5
6#include "common/logging/log.h"
7#include "core/hle/service/cmif_serialization.h"
6#include "core/hle/service/erpt/erpt.h" 8#include "core/hle/service/erpt/erpt.h"
7#include "core/hle/service/server_manager.h" 9#include "core/hle/service/server_manager.h"
8#include "core/hle/service/service.h" 10#include "core/hle/service/service.h"
@@ -15,7 +17,7 @@ public:
15 explicit ErrorReportContext(Core::System& system_) : ServiceFramework{system_, "erpt:c"} { 17 explicit ErrorReportContext(Core::System& system_) : ServiceFramework{system_, "erpt:c"} {
16 // clang-format off 18 // clang-format off
17 static const FunctionInfo functions[] = { 19 static const FunctionInfo functions[] = {
18 {0, nullptr, "SubmitContext"}, 20 {0, C<&ErrorReportContext::SubmitContext>, "SubmitContext"},
19 {1, nullptr, "CreateReportV0"}, 21 {1, nullptr, "CreateReportV0"},
20 {2, nullptr, "SetInitialLaunchSettingsCompletionTime"}, 22 {2, nullptr, "SetInitialLaunchSettingsCompletionTime"},
21 {3, nullptr, "ClearInitialLaunchSettingsCompletionTime"}, 23 {3, nullptr, "ClearInitialLaunchSettingsCompletionTime"},
@@ -36,6 +38,14 @@ public:
36 38
37 RegisterHandlers(functions); 39 RegisterHandlers(functions);
38 } 40 }
41
42private:
43 Result SubmitContext(InBuffer<BufferAttr_HipcMapAlias> buffer_a,
44 InBuffer<BufferAttr_HipcMapAlias> buffer_b) {
45 LOG_WARNING(Service_SET, "(STUBBED) called, buffer_a_size={}, buffer_b_size={}",
46 buffer_a.size(), buffer_b.size());
47 R_SUCCEED();
48 }
39}; 49};
40 50
41class ErrorReportSession final : public ServiceFramework<ErrorReportSession> { 51class ErrorReportSession final : public ServiceFramework<ErrorReportSession> {
diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp
index 63c2d3a58..2d49f30c8 100644
--- a/src/core/hle/service/filesystem/fsp/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp/fsp_srv.cpp
@@ -336,7 +336,7 @@ FSP_SRV::FSP_SRV(Core::System& system_)
336 {1012, nullptr, "GetFsStackUsage"}, 336 {1012, nullptr, "GetFsStackUsage"},
337 {1013, nullptr, "UnsetSaveDataRootPath"}, 337 {1013, nullptr, "UnsetSaveDataRootPath"},
338 {1014, nullptr, "OutputMultiProgramTagAccessLog"}, 338 {1014, nullptr, "OutputMultiProgramTagAccessLog"},
339 {1016, nullptr, "FlushAccessLogOnSdCard"}, 339 {1016, &FSP_SRV::FlushAccessLogOnSdCard, "FlushAccessLogOnSdCard"},
340 {1017, nullptr, "OutputApplicationInfoAccessLog"}, 340 {1017, nullptr, "OutputApplicationInfoAccessLog"},
341 {1018, nullptr, "SetDebugOption"}, 341 {1018, nullptr, "SetDebugOption"},
342 {1019, nullptr, "UnsetDebugOption"}, 342 {1019, nullptr, "UnsetDebugOption"},
@@ -706,6 +706,13 @@ void FSP_SRV::GetProgramIndexForAccessLog(HLERequestContext& ctx) {
706 rb.Push(access_log_program_index); 706 rb.Push(access_log_program_index);
707} 707}
708 708
709void FSP_SRV::FlushAccessLogOnSdCard(HLERequestContext& ctx) {
710 LOG_DEBUG(Service_FS, "(STUBBED) called");
711
712 IPC::ResponseBuilder rb{ctx, 2};
713 rb.Push(ResultSuccess);
714}
715
709void FSP_SRV::GetCacheStorageSize(HLERequestContext& ctx) { 716void FSP_SRV::GetCacheStorageSize(HLERequestContext& ctx) {
710 IPC::RequestParser rp{ctx}; 717 IPC::RequestParser rp{ctx};
711 const auto index{rp.Pop<s32>()}; 718 const auto index{rp.Pop<s32>()};
diff --git a/src/core/hle/service/filesystem/fsp/fsp_srv.h b/src/core/hle/service/filesystem/fsp/fsp_srv.h
index 26980af99..59406e6f9 100644
--- a/src/core/hle/service/filesystem/fsp/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp/fsp_srv.h
@@ -58,6 +58,7 @@ private:
58 void SetGlobalAccessLogMode(HLERequestContext& ctx); 58 void SetGlobalAccessLogMode(HLERequestContext& ctx);
59 void GetGlobalAccessLogMode(HLERequestContext& ctx); 59 void GetGlobalAccessLogMode(HLERequestContext& ctx);
60 void OutputAccessLogToSdCard(HLERequestContext& ctx); 60 void OutputAccessLogToSdCard(HLERequestContext& ctx);
61 void FlushAccessLogOnSdCard(HLERequestContext& ctx);
61 void GetProgramIndexForAccessLog(HLERequestContext& ctx); 62 void GetProgramIndexForAccessLog(HLERequestContext& ctx);
62 void OpenMultiCommitManager(HLERequestContext& ctx); 63 void OpenMultiCommitManager(HLERequestContext& ctx);
63 void GetCacheStorageSize(HLERequestContext& ctx); 64 void GetCacheStorageSize(HLERequestContext& ctx);