mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-11 20:25:55 +00:00
fixing build on linux and mac
This commit is contained in:
parent
0d6e8e227a
commit
5c4ac98d49
6 changed files with 14 additions and 20 deletions
|
@ -9,8 +9,6 @@
|
|||
#include "core/libraries/kernel/thread_management.h"
|
||||
#include "core/libraries/libs.h"
|
||||
|
||||
#include <algorithm> // std::max, std::min
|
||||
|
||||
namespace Libraries::AvPlayer {
|
||||
|
||||
using namespace Kernel;
|
||||
|
@ -119,11 +117,6 @@ bool PS4_SYSV_ABI sceAvPlayerGetVideoDataEx(SceAvPlayerHandle handle,
|
|||
return res;
|
||||
}
|
||||
|
||||
constexpr u32 GetPriority(u32 base, u32 offset) {
|
||||
// (27D <= base_priority <= 2FC) + offset <= 2FF
|
||||
return std::min(std::min(std::max(637u, base), 764u) + offset, 767u);
|
||||
}
|
||||
|
||||
SceAvPlayerHandle PS4_SYSV_ABI sceAvPlayerInit(SceAvPlayerInitData* data) {
|
||||
LOG_TRACE(Lib_AvPlayer, "called");
|
||||
if (data == nullptr) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue