mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 09:18:40 +12:00
Add License Area Setting
This commit is contained in:
parent
5ca2b1200d
commit
54fd224fd8
9 changed files with 53 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/System.h"
|
||||
#include "Emu/system_config.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
#include "cellSysutil.h"
|
||||
|
||||
|
@ -9,16 +9,9 @@ s32 cellSysutilGetLicenseArea()
|
|||
{
|
||||
cellSysutilMisc.warning("cellSysutilGetLicenseArea()");
|
||||
|
||||
switch (const char region = Emu.GetTitleID().size() >= 3u ? Emu.GetTitleID().at(2) : '\0')
|
||||
{
|
||||
case 'J': return CELL_SYSUTIL_LICENSE_AREA_J;
|
||||
case 'U': return CELL_SYSUTIL_LICENSE_AREA_A;
|
||||
case 'E': return CELL_SYSUTIL_LICENSE_AREA_E;
|
||||
case 'H': return CELL_SYSUTIL_LICENSE_AREA_H;
|
||||
case 'K': return CELL_SYSUTIL_LICENSE_AREA_K;
|
||||
case 'A': return CELL_SYSUTIL_LICENSE_AREA_C;
|
||||
default: cellSysutilMisc.todo("Unknown license area: %s", Emu.GetTitleID()); return CELL_SYSUTIL_LICENSE_AREA_OTHER;
|
||||
}
|
||||
const CellSysutilLicenseArea license_area = g_cfg.sys.license_area;
|
||||
cellSysutilMisc.notice("cellSysutilGetLicenseArea(): %s", license_area);
|
||||
return license_area;
|
||||
}
|
||||
|
||||
DECLARE(ppu_module_manager::cellSysutilMisc)("cellSysutilMisc", []()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue