From 6752576de99c1bf37b4edfb3745385c6cd5600c0 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 8 Dec 2017 06:56:00 +0000 Subject: [PATCH] cfg: refer to ConsoleModelBlockID by name --- src/core/hle/service/cfg/cfg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index f78c25fb24..2c48288abf 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -227,7 +227,8 @@ void GetSystemModel(Service::Interface* self) { // TODO(Subv): Find out the correct error codes cmd_buff[1] = - Service::CFG::GetConfigInfoBlock(0x000F0004, 4, 0x8, reinterpret_cast(&data)).raw; + Service::CFG::GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast(&data)) + .raw; cmd_buff[2] = data & 0xFF; } @@ -237,7 +238,8 @@ void GetModelNintendo2DS(Service::Interface* self) { // TODO(Subv): Find out the correct error codes cmd_buff[1] = - Service::CFG::GetConfigInfoBlock(0x000F0004, 4, 0x8, reinterpret_cast(&data)).raw; + Service::CFG::GetConfigInfoBlock(ConsoleModelBlockID, 4, 0x8, reinterpret_cast(&data)) + .raw; u8 model = data & 0xFF; if (model == Service::CFG::NINTENDO_2DS)