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

@ -93,7 +93,7 @@ struct PKGHeader
char title_id[48]; // Title ID char title_id[48]; // Title ID
be_t<u64> qa_digest[2]; // This should be the hash of "files + attribs" be_t<u64> qa_digest[2]; // This should be the hash of "files + attribs"
be_t<u128> klicensee; // Nonce be_t<u128> klicensee; // Nonce
// + some stuff // + some stuff
}; };
// Extended header in PSP and PSVita packages // Extended header in PSP and PSVita packages

View file

@ -1903,7 +1903,8 @@ 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
// dst[i * 8 + 5] += 0.0f; // rear R // dst[i * 8 + 5] += 0.0f; // rear R
@ -1956,7 +1957,8 @@ 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,7 +786,8 @@ 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
} }
// get the saves matching the supplied prefix // get the saves matching the supplied prefix

View file

@ -245,7 +245,8 @@ 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;
// TODO: Find out if any of this works // TODO: Find out if any of this works
@ -332,7 +333,8 @@ 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;
// TODO: Find out if any of this works // TODO: Find out if any of this works

View file

@ -501,10 +501,10 @@ extern const spu_imm_table_t g_spu_imm;
enum FPSCR_EX enum FPSCR_EX
{ {
// Single-precision exceptions // Single-precision exceptions
FPSCR_SOVF = 1 << 2, // Overflow FPSCR_SOVF = 1 << 2, // Overflow
FPSCR_SUNF = 1 << 1, // Underflow FPSCR_SUNF = 1 << 1, // Underflow
FPSCR_SDIFF = 1 << 0, // Different (could be IEEE non-compliant) FPSCR_SDIFF = 1 << 0, // Different (could be IEEE non-compliant)
// Double-precision exceptions // Double-precision exceptions
FPSCR_DOVF = 1 << 13, // Overflow FPSCR_DOVF = 1 << 13, // Overflow
FPSCR_DUNF = 1 << 12, // Underflow FPSCR_DUNF = 1 << 12, // Underflow
FPSCR_DINX = 1 << 11, // Inexact FPSCR_DINX = 1 << 11, // Inexact

View file

@ -174,7 +174,7 @@ private:
{0x0E6F, 0x200A, 0x200A, "Kamen Rider Summonride Portal", nullptr, nullptr}, {0x0E6F, 0x200A, 0x200A, "Kamen Rider Summonride Portal", nullptr, nullptr},
// Cameras // Cameras
// {0x1415, 0x0020, 0x2000, "Sony Playstation Eye", nullptr, nullptr}, // TODO: verifiy // {0x1415, 0x0020, 0x2000, "Sony Playstation Eye", nullptr, nullptr}, // TODO: verifiy
// Music devices // Music devices
{0x1415, 0x0000, 0x0000, "Singstar Microphone", nullptr, nullptr}, {0x1415, 0x0000, 0x0000, "Singstar Microphone", nullptr, nullptr},

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";