uncart/source/platform.c

16 lines
293 B
C
Raw Permalink Normal View History

2015-05-04 15:32:23 -07:00
#include "common.h"
#include "platform.h"
#define CONFIG_PLATFORM_REG ((volatile u32*)0x10140FFC)
2015-05-14 21:30:39 -04:00
Platform GetUnitPlatform(void)
2015-05-04 15:32:23 -07:00
{
switch (*CONFIG_PLATFORM_REG) {
case 7:
return PLATFORM_N3DS;
case 1:
default:
return PLATFORM_3DS;
}
}