2013-10-21 18:41:01 +02:00
|
|
|
/*-------------------------------------------------------------
|
|
|
|
|
|
|
|
detect_settings.h -- detects various system settings
|
|
|
|
|
|
|
|
Copyright (C) 2008 tona
|
2014-02-10 16:00:50 +01:00
|
|
|
Copyright (C) 2014 JoostinOnline
|
2013-10-21 18:41:01 +02:00
|
|
|
Unless other credit specified
|
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any
|
|
|
|
damages arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any
|
|
|
|
purpose, including commercial applications, and to alter it and
|
|
|
|
redistribute it freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1.The origin of this software must not be misrepresented; you
|
|
|
|
must not claim that you wrote the original software. If you use
|
|
|
|
this software in a product, an acknowledgment in the product
|
|
|
|
documentation would be appreciated but is not required.
|
|
|
|
|
|
|
|
2.Altered source versions must be plainly marked as such, and
|
|
|
|
must not be misrepresented as being the original software.
|
|
|
|
|
|
|
|
3.This notice may not be removed or altered from any source
|
|
|
|
distribution.
|
|
|
|
|
|
|
|
-------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#ifndef __SYSMENUINFO_H__
|
|
|
|
#define __SYSMENUINFO_H__
|
|
|
|
|
2014-02-10 16:00:50 +01:00
|
|
|
|
2013-10-21 18:41:01 +02:00
|
|
|
#define SADR_LENGTH 0x1007+1
|
|
|
|
#define round_up(x,n) (-(-(x) & -(n)))
|
|
|
|
|
|
|
|
typedef struct {
|
2014-02-10 16:00:50 +01:00
|
|
|
u32 deviceID;
|
2013-10-21 18:41:01 +02:00
|
|
|
u32 boot2version;
|
2014-02-10 16:00:50 +01:00
|
|
|
u32 sysMenuVer;
|
|
|
|
u32 dvdSupport;
|
2013-10-21 18:41:01 +02:00
|
|
|
s32 sysMenuIOS;
|
2014-02-10 16:00:50 +01:00
|
|
|
float sysNinVersion;
|
2013-10-21 18:41:01 +02:00
|
|
|
char sysMenuRegion;
|
2014-02-10 16:00:50 +01:00
|
|
|
s32 systemRegion;
|
|
|
|
char country[44];
|
|
|
|
char miosInfo[128];
|
|
|
|
u32 countTitles;
|
|
|
|
u32 countBCMIOS;
|
|
|
|
u32 countIOS;
|
|
|
|
u32 countStubs;
|
|
|
|
u8 shopcode;
|
|
|
|
u8 priiloader;
|
|
|
|
bool nandAccess;
|
2013-10-21 18:41:01 +02:00
|
|
|
} SYSSETTINGS;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char name[ISFS_MAXPATH + 1];
|
|
|
|
int type;
|
|
|
|
} dirent_t;
|
|
|
|
|
|
|
|
char getSystemMenuRegionFromContent();
|
|
|
|
|
|
|
|
#endif
|