diff options
| author | 2015-05-15 19:25:02 -0700 | |
|---|---|---|
| committer | 2015-05-15 19:25:02 -0700 | |
| commit | 0fd727f3adc9611f1df62743d395e4e0ebdc6a46 (patch) | |
| tree | 352b1903af7eec9a4ed4dc34b080691b1d21fe03 /src | |
| parent | Merge pull request #774 from lioncash/decodings (diff) | |
| download | yuzu-0fd727f3adc9611f1df62743d395e4e0ebdc6a46.tar.gz yuzu-0fd727f3adc9611f1df62743d395e4e0ebdc6a46.tar.xz yuzu-0fd727f3adc9611f1df62743d395e4e0ebdc6a46.zip | |
APT/FS: Remove asserts that were causing false positives
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/apt/apt.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/fs/fs_user.cpp | 8 |
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 09d463dd5..3fd4cfb08 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) { | |||
| 269 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 269 | u32* cmd_buff = Kernel::GetCommandBuffer(); |
| 270 | u32 value = cmd_buff[1]; | 270 | u32 value = cmd_buff[1]; |
| 271 | 271 | ||
| 272 | ASSERT(cpu_percent != 0); | ||
| 273 | |||
| 274 | if (value != 1) { | 272 | if (value != 1) { |
| 275 | LOG_ERROR(Service_APT, "This value should be one, but is actually %u!", value); | 273 | LOG_ERROR(Service_APT, "This value should be one, but is actually %u!", value); |
| 276 | } | 274 | } |
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index 0d2a426b0..b25c8941d 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) { | |||
| 650 | 650 | ||
| 651 | cmd_buff[1] = RESULT_SUCCESS.raw; | 651 | cmd_buff[1] = RESULT_SUCCESS.raw; |
| 652 | 652 | ||
| 653 | LOG_DEBUG(Service_FS, "called priority=0x%08X", priority); | 653 | LOG_DEBUG(Service_FS, "called priority=0x%X", priority); |
| 654 | } | 654 | } |
| 655 | 655 | ||
| 656 | /** | 656 | /** |
| @@ -664,12 +664,14 @@ static void SetPriority(Service::Interface* self) { | |||
| 664 | static void GetPriority(Service::Interface* self) { | 664 | static void GetPriority(Service::Interface* self) { |
| 665 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 665 | u32* cmd_buff = Kernel::GetCommandBuffer(); |
| 666 | 666 | ||
| 667 | ASSERT(priority != -1); | 667 | if (priority == -1) { |
| 668 | LOG_INFO(Service_FS, "priority was not set, priority=0x%X", priority); | ||
| 669 | } | ||
| 668 | 670 | ||
| 669 | cmd_buff[1] = RESULT_SUCCESS.raw; | 671 | cmd_buff[1] = RESULT_SUCCESS.raw; |
| 670 | cmd_buff[2] = priority; | 672 | cmd_buff[2] = priority; |
| 671 | 673 | ||
| 672 | LOG_DEBUG(Service_FS, "called priority=0x%08X", priority); | 674 | LOG_DEBUG(Service_FS, "called priority=0x%X", priority); |
| 673 | } | 675 | } |
| 674 | 676 | ||
| 675 | const Interface::FunctionInfo FunctionTable[] = { | 677 | const Interface::FunctionInfo FunctionTable[] = { |