Add Citra CHeck
This commit is contained in:
parent
8bec3356e5
commit
5d3db56ee4
@ -25,6 +25,7 @@ INI::INIStructure cfgstruct;
|
|||||||
bool rd7_superreselution;
|
bool rd7_superreselution;
|
||||||
u8 consoleModel = 0;
|
u8 consoleModel = 0;
|
||||||
u8 sysRegion = CFG_REGION_USA;
|
u8 sysRegion = CFG_REGION_USA;
|
||||||
|
bool is_citra = false;
|
||||||
//---------------------------------------
|
//---------------------------------------
|
||||||
|
|
||||||
std::string D_app_name;
|
std::string D_app_name;
|
||||||
@ -618,9 +619,13 @@ Result RenderD7::Init::Main(std::string app_name)
|
|||||||
mt_txtSize = RenderD7::Convert::StringtoFloat(cfgstruct["metrik-settings"]["txtSize"]);
|
mt_txtSize = RenderD7::Convert::StringtoFloat(cfgstruct["metrik-settings"]["txtSize"]);
|
||||||
mt_screen = RenderD7::Convert::StringtoInt(cfgstruct["metrik-settings"]["Screen"]);
|
mt_screen = RenderD7::Convert::StringtoInt(cfgstruct["metrik-settings"]["Screen"]);
|
||||||
rd7_superreselution = RenderD7::Convert::FloatToBool(RenderD7::Convert::StringtoFloat(cfgstruct["settings"]["super-reselution"]));
|
rd7_superreselution = RenderD7::Convert::FloatToBool(RenderD7::Convert::StringtoFloat(cfgstruct["settings"]["super-reselution"]));
|
||||||
|
//Check if citra
|
||||||
|
s64 citracheck = 0;
|
||||||
|
svcGetSystemInfo(&citracheck, 0x20000, 0);
|
||||||
|
is_citra = citracheck ? true : false;
|
||||||
|
//Speedup
|
||||||
osSetSpeedupEnable(true);
|
osSetSpeedupEnable(true);
|
||||||
if (rd7_superreselution)
|
if (!is_citra && rd7_superreselution)
|
||||||
{
|
{
|
||||||
if (consoleModel != 3) gfxSetWide(true);
|
if (consoleModel != 3) gfxSetWide(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user