mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-02 00:15:06 +01:00
Merge pull request #3236 from Tilka/block_name
cfg: refer to ConsoleModelBlockID by name
This commit is contained in:
commit
69caf8c5dc
@ -227,7 +227,8 @@ void GetSystemModel(Service::Interface* self) {
|
|||||||
|
|
||||||
// TODO(Subv): Find out the correct error codes
|
// TODO(Subv): Find out the correct error codes
|
||||||
cmd_buff[1] =
|
cmd_buff[1] =
|
||||||
Service::CFG::GetConfigInfoBlock(0x000F0004, 4, 0x8, reinterpret_cast<u8*>(&data)).raw;
|
Service::CFG::GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast<u8*>(&data))
|
||||||
|
.raw;
|
||||||
cmd_buff[2] = data & 0xFF;
|
cmd_buff[2] = data & 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +238,8 @@ void GetModelNintendo2DS(Service::Interface* self) {
|
|||||||
|
|
||||||
// TODO(Subv): Find out the correct error codes
|
// TODO(Subv): Find out the correct error codes
|
||||||
cmd_buff[1] =
|
cmd_buff[1] =
|
||||||
Service::CFG::GetConfigInfoBlock(0x000F0004, 4, 0x8, reinterpret_cast<u8*>(&data)).raw;
|
Service::CFG::GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast<u8*>(&data))
|
||||||
|
.raw;
|
||||||
|
|
||||||
u8 model = data & 0xFF;
|
u8 model = data & 0xFF;
|
||||||
if (model == Service::CFG::NINTENDO_2DS)
|
if (model == Service::CFG::NINTENDO_2DS)
|
||||||
|
Loading…
Reference in New Issue
Block a user