2020-12-05 13:08:24 +01:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2019-12-18 23:48:23 +01:00
|
|
|
#include "cellRemotePlay.h"
|
2015-07-31 00:53:52 +02:00
|
|
|
|
2018-08-25 14:39:00 +02:00
|
|
|
LOG_CHANNEL(cellRemotePlay);
|
2015-07-31 00:53:52 +02:00
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
template <>
|
|
|
|
|
void fmt_class_string<CellRemotePlayError>::format(std::string& out, u64 arg)
|
|
|
|
|
{
|
|
|
|
|
format_enum(out, arg, [](CellRemotePlayError value)
|
|
|
|
|
{
|
2025-04-05 21:50:45 +02:00
|
|
|
switch (value)
|
|
|
|
|
{
|
|
|
|
|
STR_CASE(CELL_REMOTEPLAY_ERROR_INTERNAL);
|
|
|
|
|
}
|
2019-12-18 23:48:23 +01:00
|
|
|
|
2025-04-05 21:50:45 +02:00
|
|
|
return unknown;
|
|
|
|
|
});
|
2019-12-18 23:48:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_code cellRemotePlayGetStatus()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayGetStatus()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlaySetComparativeVolume(f32 comparativeAudioVolume)
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-12-18 23:48:23 +01:00
|
|
|
cellRemotePlay.todo("cellRemotePlaySetComparativeVolume(comparativeAudioVolume=%f)", comparativeAudioVolume);
|
2019-09-02 13:41:57 +02:00
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayGetPeerInfo()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayGetPeerInfo()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayGetSharedMemory()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayGetSharedMemory()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayEncryptAllData()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayEncryptAllData()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayStopPeerVideoOut()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayStopPeerVideoOut()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayGetComparativeVolume(vm::ptr<f32> pComparativeAudioVolume)
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-12-18 23:48:23 +01:00
|
|
|
cellRemotePlay.todo("cellRemotePlayGetComparativeVolume(pComparativeAudioVolume=*0x%x)", pComparativeAudioVolume);
|
|
|
|
|
|
|
|
|
|
if (pComparativeAudioVolume)
|
|
|
|
|
{
|
|
|
|
|
*pComparativeAudioVolume = 1.f;
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-02 13:41:57 +02:00
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2019-12-18 23:48:23 +01:00
|
|
|
error_code cellRemotePlayBreak()
|
2015-07-31 00:53:52 +02:00
|
|
|
{
|
2019-09-02 13:41:57 +02:00
|
|
|
cellRemotePlay.todo("cellRemotePlayBreak()");
|
|
|
|
|
return CELL_OK;
|
2015-07-31 00:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellRemotePlay)("cellRemotePlay", []()
|
2025-04-05 21:50:45 +02:00
|
|
|
{
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayGetStatus);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlaySetComparativeVolume);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayGetPeerInfo);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayGetSharedMemory);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayEncryptAllData);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayStopPeerVideoOut);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayGetComparativeVolume);
|
|
|
|
|
REG_FUNC(cellRemotePlay, cellRemotePlayBreak);
|
|
|
|
|
});
|