mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Replace some utils::bless usages
This commit is contained in:
parent
373e502501
commit
9635417ae5
5 changed files with 22 additions and 22 deletions
|
|
@ -643,17 +643,17 @@ skylander_creator_dialog::skylander_creator_dialog(QWidget* parent)
|
|||
std::array<u8, 0x40 * 0x10> buf{};
|
||||
const auto data = buf.data();
|
||||
// Set the block permissions
|
||||
*utils::bless<le_t<u32>>(&data[0x36]) = 0x690F0F0F;
|
||||
write_to_ptr<le_t<u32>>(data, 0x36, 0x690F0F0F);
|
||||
for (u32 index = 1; index < 0x10; index++)
|
||||
{
|
||||
*utils::bless<le_t<u32>>(&data[(index * 0x40) + 0x36]) = 0x69080F7F;
|
||||
write_to_ptr<le_t<u32>>(data, (index * 0x40) + 0x36, 0x69080F7F);
|
||||
}
|
||||
// Set the skylander infos
|
||||
*utils::bless<le_t<u16>>(&data[0]) = (sky_id | sky_var) + 1;
|
||||
*utils::bless<le_t<u16>>(&data[0x10]) = sky_id;
|
||||
*utils::bless<le_t<u16>>(&data[0x1C]) = sky_var;
|
||||
write_to_ptr<le_t<u16>>(data, (sky_id | sky_var) + 1);
|
||||
write_to_ptr<le_t<u16>>(data, 0x10, sky_id);
|
||||
write_to_ptr<le_t<u16>>(data, 0x1C, sky_var);
|
||||
// Set checksum
|
||||
*utils::bless<le_t<u16>>(&data[0x1E]) = skylander_crc16(0xFFFF, data, 0x1E);
|
||||
write_to_ptr<le_t<u16>>(data, 0x1E, skylander_crc16(0xFFFF, data, 0x1E));
|
||||
|
||||
sky_file.write(buf.data(), buf.size());
|
||||
sky_file.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue