aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-05-16 02:31:22 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-05-16 02:31:22 -0400
commit42c6590349761af3f2513f53a4eda534215e8f02 (patch)
tree9bc2cdd7b5ffbc6f99926fb1a4d27298ebe6b889 /src
parentba2fe7f795ebc8da4acd247436afeefb900645d3 (diff)
parent0fd727f3adc9611f1df62743d395e4e0ebdc6a46 (diff)
Merge pull request #778 from purpasmart96/apt_assert_fix
APT/FS: Remove asserts that were causing false positives in games
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/apt/apt.cpp2
-rw-r--r--src/core/hle/service/fs/fs_user.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp
index 09d463dd..3fd4cfb0 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -269,8 +269,6 @@ void GetAppCpuTimeLimit(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
u32 value = cmd_buff[1];
- ASSERT(cpu_percent != 0);
-
if (value != 1) {
LOG_ERROR(Service_APT, "This value should be one, but is actually %u!", value);
}
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp
index 0d2a426b..b25c8941 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -650,7 +650,7 @@ static void SetPriority(Service::Interface* self) {
cmd_buff[1] = RESULT_SUCCESS.raw;
- LOG_DEBUG(Service_FS, "called priority=0x%08X", priority);
+ LOG_DEBUG(Service_FS, "called priority=0x%X", priority);
}
/**
@@ -664,12 +664,14 @@ static void SetPriority(Service::Interface* self) {
static void GetPriority(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();
- ASSERT(priority != -1);
+ if (priority == -1) {
+ LOG_INFO(Service_FS, "priority was not set, priority=0x%X", priority);
+ }
cmd_buff[1] = RESULT_SUCCESS.raw;
cmd_buff[2] = priority;
- LOG_DEBUG(Service_FS, "called priority=0x%08X", priority);
+ LOG_DEBUG(Service_FS, "called priority=0x%X", priority);
}
const Interface::FunctionInfo FunctionTable[] = {