mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
some constants defines
This commit is contained in:
parent
d7247f9e8d
commit
7dc1f0a47b
|
@ -2,6 +2,8 @@
|
|||
#include "Libs.h"
|
||||
#include "../Loader/Elf.h"
|
||||
#include "../../../Debug.h"
|
||||
#include "VideoOut/VideoOutCodes.h"
|
||||
#include "UserManagement/UsrMngCodes.h"
|
||||
|
||||
namespace HLE::Libs::LibSceVideoOut {
|
||||
|
||||
|
@ -41,7 +43,11 @@ namespace HLE::Libs::LibSceVideoOut {
|
|||
|
||||
int32_t PS4_SYSV_ABI sceVideoOutOpen(SceUserServiceUserId userId, int32_t busType, int32_t index, const void* param)
|
||||
{
|
||||
if (busType != 0)
|
||||
if (userId != SCE_USER_SERVICE_USER_ID_SYSTEM)
|
||||
{
|
||||
BREAKPOINT();
|
||||
}
|
||||
if (busType != SCE_VIDEO_OUT_BUS_TYPE_MAIN)
|
||||
{
|
||||
BREAKPOINT();
|
||||
}
|
||||
|
|
12
src/Core/PS4/HLE/UserManagement/UsrMngCodes.h
Normal file
12
src/Core/PS4/HLE/UserManagement/UsrMngCodes.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
//constants
|
||||
|
||||
constexpr int SCE_USER_SERVICE_MAX_LOGIN_USERS = 4; //max users logged in at once
|
||||
constexpr int SCE_USER_SERVICE_MAX_USER_NAME_LENGTH = 16;//Max length for user name
|
||||
|
||||
constexpr int SCE_USER_SERVICE_USER_ID_INVALID = -1;//invalid user ID
|
||||
constexpr int SCE_USER_SERVICE_USER_ID_SYSTEM = 255; //generic id for device
|
||||
constexpr int SCE_USER_SERVICE_USER_ID_EVERYONE = 254; // generic id for user (mostly used in common dialogs)
|
||||
|
||||
|
7
src/Core/PS4/HLE/VideoOut/VideoOutCodes.h
Normal file
7
src/Core/PS4/HLE/VideoOut/VideoOutCodes.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
// SceVideoOutBusType
|
||||
|
||||
constexpr int SCE_VIDEO_OUT_BUS_TYPE_MAIN = 0; //Main output
|
||||
constexpr int SCE_VIDEO_OUT_BUS_TYPE_AUX_SOCIAL_SCREEN = 5; //Aux output for social
|
||||
constexpr int SCE_VIDEO_OUT_BUS_TYPE_AUX_GAME_LIVE_STREAMING = 6; //Aux output for screaming
|
Loading…
Reference in a new issue