mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-08 19:53:15 +00:00
More HLE stuff and fixes (#273)
* sceKernelOpen truncate is not neccesary * fixup scePthreadCondSignal * dummy error , ime dialogs stubbed * sceErrorDialog implemenation (no ui) * small fix in sceSaveDataGetEventResult and sceAppContentTemporaryDataMount2. * ime dialog structs and functions definations * added stubbed avplayer * Open folder should be first on context menu --------- Co-authored-by: raziel1000 <ckraziel@gmail.com>
This commit is contained in:
parent
d156dda7b6
commit
5beb607435
16 changed files with 701 additions and 14 deletions
|
@ -248,20 +248,12 @@ int PS4_SYSV_ABI sceSaveDataGetEventInfo() {
|
|||
|
||||
int PS4_SYSV_ABI sceSaveDataGetEventResult(const OrbisSaveDataEventParam* eventParam,
|
||||
OrbisSaveDataEvent* event) {
|
||||
LOG_INFO(Lib_SaveData, "called sceSaveDataGetEventResult : null = {}", (eventParam == nullptr));
|
||||
if (eventParam == nullptr)
|
||||
return ORBIS_SAVE_DATA_ERROR_PARAMETER;
|
||||
// eventParam can be 0/null.
|
||||
if (event == nullptr)
|
||||
return ORBIS_SAVE_DATA_ERROR_NOT_INITIALIZED;
|
||||
|
||||
const auto& mount_dir = Common::FS::GetUserPath(Common::FS::PathType::SaveDataDir) /
|
||||
std::to_string(1) / game_serial; // fix me
|
||||
|
||||
Common::FS::IOFile file(mount_dir / "param.txt", Common::FS::FileAccessMode::Read);
|
||||
OrbisSaveDataParam* param = new OrbisSaveDataParam{};
|
||||
file.ReadRaw<u8>(param, sizeof(OrbisSaveDataParam));
|
||||
|
||||
LOG_INFO(Lib_SaveData, "called");
|
||||
LOG_INFO(Lib_SaveData, "called: Todo.");
|
||||
event->userId = 1;
|
||||
|
||||
return ORBIS_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue