add a gazillion more error_code

This commit is contained in:
Megamouse 2020-07-16 12:14:57 +02:00
parent a00ebacef3
commit d854a39500
72 changed files with 2040 additions and 1349 deletions

View file

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "Emu/Cell/PPUModule.h"
#include "libsynth2.h"
@ -7,19 +7,35 @@
LOG_CHANNEL(libsynth2);
s32 cellSoundSynth2Config(s16 param, s32 value)
template<>
void fmt_class_string<CellSoundSynth2Error>::format(std::string& out, u64 arg)
{
format_enum(out, arg, [](auto error)
{
switch (error)
{
STR_CASE(CELL_SOUND_SYNTH2_ERROR_FATAL);
STR_CASE(CELL_SOUND_SYNTH2_ERROR_INVALID_PARAMETER);
STR_CASE(CELL_SOUND_SYNTH2_ERROR_ALREADY_INITIALIZED);
}
return unknown;
});
}
error_code cellSoundSynth2Config(s16 param, s32 value)
{
libsynth2.todo("cellSoundSynth2Config(param=%d, value=%d)", param, value);
return CELL_OK;
}
s32 cellSoundSynth2Init(s16 flag)
error_code cellSoundSynth2Init(s16 flag)
{
libsynth2.todo("cellSoundSynth2Init(flag=%d)", flag);
return CELL_OK;
}
s32 cellSoundSynth2Exit()
error_code cellSoundSynth2Exit()
{
libsynth2.todo("cellSoundSynth2Exit()");
return CELL_OK;
@ -47,7 +63,7 @@ u32 cellSoundSynth2GetSwitch(u16 reg)
return 0;
}
s32 cellSoundSynth2SetAddr(u16 reg, u32 value)
error_code cellSoundSynth2SetAddr(u16 reg, u32 value)
{
libsynth2.todo("cellSoundSynth2SetAddr(register=0x%x, value=0x%x)", reg, value);
return CELL_OK;
@ -59,13 +75,13 @@ u32 cellSoundSynth2GetAddr(u16 reg)
return 0;
}
s32 cellSoundSynth2SetEffectAttr(s16 bus, vm::ptr<CellSoundSynth2EffectAttr> attr)
error_code cellSoundSynth2SetEffectAttr(s16 bus, vm::ptr<CellSoundSynth2EffectAttr> attr)
{
libsynth2.todo("cellSoundSynth2SetEffectAttr(bus=%d, attr=*0x%x)", bus, attr);
return CELL_OK;
}
s32 cellSoundSynth2SetEffectMode(s16 bus, vm::ptr<CellSoundSynth2EffectAttr> attr)
error_code cellSoundSynth2SetEffectMode(s16 bus, vm::ptr<CellSoundSynth2EffectAttr> attr)
{
libsynth2.todo("cellSoundSynth2SetEffectMode(bus=%d, attr=*0x%x)", bus, attr);
return CELL_OK;
@ -76,19 +92,19 @@ void cellSoundSynth2SetCoreAttr(u16 entry, u16 value)
libsynth2.todo("cellSoundSynth2SetCoreAttr(entry=0x%x, value=0x%x)", entry, value);
}
s32 cellSoundSynth2Generate(u16 samples, vm::ptr<f32> Lout, vm::ptr<f32> Rout, vm::ptr<f32> Ls, vm::ptr<f32> Rs)
error_code cellSoundSynth2Generate(u16 samples, vm::ptr<f32> Lout, vm::ptr<f32> Rout, vm::ptr<f32> Ls, vm::ptr<f32> Rs)
{
libsynth2.todo("cellSoundSynth2Generate(samples=0x%x, Lout=*0x%x, Rout=*0x%x, Ls=*0x%x, Rs=*0x%x)", samples, Lout, Rout, Ls, Rs);
return CELL_OK;
}
s32 cellSoundSynth2VoiceTrans(s16 channel, u16 mode, vm::ptr<u8> m_addr, u32 s_addr, u32 size)
error_code cellSoundSynth2VoiceTrans(s16 channel, u16 mode, vm::ptr<u8> m_addr, u32 s_addr, u32 size)
{
libsynth2.todo("cellSoundSynth2VoiceTrans(channel=%d, mode=0x%x, m_addr=*0x%x, s_addr=0x%x, size=0x%x)", channel, mode, m_addr, s_addr, size);
return CELL_OK;
}
s32 cellSoundSynth2VoiceTransStatus(s16 channel, s16 flag)
error_code cellSoundSynth2VoiceTransStatus(s16 channel, s16 flag)
{
libsynth2.todo("cellSoundSynth2VoiceTransStatus(channel=%d, flag=%d)", channel, flag);
return CELL_OK;