fix formatting

This commit is contained in:
DH 2025-04-05 23:10:22 +03:00
parent 4797d1401b
commit c08f7b4ef2
7 changed files with 18 additions and 12 deletions

View file

@ -1903,6 +1903,7 @@ error_code cellAudioAdd2chData(u32 portNum, vm::ptr<float> src, u32 samples, flo
{ {
dst[i * 8 + 0] += src[i * 2 + 0] * volume; // mix L ch dst[i * 8 + 0] += src[i * 2 + 0] * volume; // mix L ch
dst[i * 8 + 1] += src[i * 2 + 1] * volume; // mix R ch dst[i * 8 + 1] += src[i * 2 + 1] * volume; // mix R ch
// dst[i * 8 + 2] += 0.0f; // center // dst[i * 8 + 2] += 0.0f; // center
// dst[i * 8 + 3] += 0.0f; // LFE // dst[i * 8 + 3] += 0.0f; // LFE
// dst[i * 8 + 4] += 0.0f; // rear L // dst[i * 8 + 4] += 0.0f; // rear L
@ -1956,6 +1957,7 @@ error_code cellAudioAdd6chData(u32 portNum, vm::ptr<float> src, float volume)
dst[i * 8 + 3] += src[i * 6 + 5] * volume; // mix LFE dst[i * 8 + 3] += src[i * 6 + 5] * volume; // mix LFE
dst[i * 8 + 4] += src[i * 6 + 3] * volume; // mix rear L dst[i * 8 + 4] += src[i * 6 + 3] * volume; // mix rear L
dst[i * 8 + 5] += src[i * 6 + 4] * volume; // mix rear R dst[i * 8 + 5] += src[i * 6 + 4] * volume; // mix rear R
// dst[i * 8 + 6] += 0.0f; // side L // dst[i * 8 + 6] += 0.0f; // side L
// dst[i * 8 + 7] += 0.0f; // side R // dst[i * 8 + 7] += 0.0f; // side R
} }

View file

@ -786,6 +786,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
{ {
cellSaveData.notice("savedata_op(): dirNamePrefix is '*'. Listing all entries starting with '%s'. operation=%d", Emu.GetTitleID(), operation); cellSaveData.notice("savedata_op(): dirNamePrefix is '*'. Listing all entries starting with '%s'. operation=%d", Emu.GetTitleID(), operation);
prefix_list.front() = Emu.GetTitleID(); // TODO: Let's be cautious for now and only list savedata starting with this game's ID prefix_list.front() = Emu.GetTitleID(); // TODO: Let's be cautious for now and only list savedata starting with this game's ID
// prefix_list.front().clear(); // List savedata of all the games of this user // prefix_list.front().clear(); // List savedata of all the games of this user
} }

View file

@ -245,6 +245,7 @@ void populate_music_info(CellSearchMusicInfo& info, const utils::media_info& mi,
info.codec = CELL_SEARCH_CODEC_AT3P; info.codec = CELL_SEARCH_CODEC_AT3P;
break; break;
case 88078: // AV_CODEC_ID_ATRAC3AL case 88078: // AV_CODEC_ID_ATRAC3AL
// case 88079: // AV_CODEC_ID_ATRAC3PAL TODO: supported ? // case 88079: // AV_CODEC_ID_ATRAC3PAL TODO: supported ?
info.codec = CELL_SEARCH_CODEC_ATALL; info.codec = CELL_SEARCH_CODEC_ATALL;
break; break;
@ -332,6 +333,7 @@ void populate_video_info(CellSearchVideoInfo& info, const utils::media_info& mi,
info.audioCodec = CELL_SEARCH_CODEC_AT3P; info.audioCodec = CELL_SEARCH_CODEC_AT3P;
break; break;
case 88078: // AV_CODEC_ID_ATRAC3AL case 88078: // AV_CODEC_ID_ATRAC3AL
// case 88079: // AV_CODEC_ID_ATRAC3PAL TODO: supported ? // case 88079: // AV_CODEC_ID_ATRAC3PAL TODO: supported ?
info.audioCodec = CELL_SEARCH_CODEC_ATALL; info.audioCodec = CELL_SEARCH_CODEC_ATALL;
break; break;

View file

@ -468,7 +468,8 @@ inline void generateInstructions(std::set<std::string> &composites,
} }
if (inst["opname"] == "OpTypeVoid") { if (inst["opname"] == "OpTypeVoid") {
instructionDecoderBody += " if (voidType != nullptr) {\n"; instructionDecoderBody += " if (voidType != nullptr) {\n";
instructionDecoderBody += " voidType.replaceAllUsesWith(inst);\n"; instructionDecoderBody +=
" voidType.replaceAllUsesWith(inst);\n";
instructionDecoderBody += " voidType.remove();\n"; instructionDecoderBody += " voidType.remove();\n";
instructionDecoderBody += " }\n"; instructionDecoderBody += " }\n";
instructionDecoderBody += " voidType = inst;\n"; instructionDecoderBody += " voidType = inst;\n";