MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / CheckConsoleType

Function CheckConsoleType

src/dolphin/src/eth/ethsec.c:19–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17vu16 __OSDeviceCode : (OS_BASE_CACHED | 0x30E6);
18
19static inline BOOL CheckConsoleType() {
20 if (__OSGetDIConfig() == 0xFF) {
21 switch (__OSDeviceCode) {
22 case 0x8200: {
23 return TRUE;
24 }
25 case 0x8001: {
26 if (OSGetPhysicalMemSize() == 0x3000000) {
27 return TRUE;
28 }
29 return FALSE;
30 }
31 }
32 return FALSE;
33 }
34
35 if ((OSGetConsoleType() & OS_CONSOLE_MASK) == 0) {
36 return FALSE;
37 }
38
39 return TRUE;
40}
41
42static s16 AT_IP4_IsMyAddrMask(u8 val) { return 0; }
43

Callers 1

__ETHFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected