-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now displays local friend code seed. Storage sizes now display appropriately according to your available/total storage. MB is no longer the default unit. Also cleaned up main.c, now uses separate headers like 3DSident-GUI
- Loading branch information
Showing
20 changed files
with
463 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <3ds.h> | ||
#include <malloc.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
Handle actHandle; | ||
int actRefCount; | ||
|
||
u32 *act_shareMemAddr; | ||
u32 act_shareMemSize; | ||
Handle act_shareMemHandle; | ||
|
||
Result actInit(u32 sdkVer, u32 sharedMemSize); | ||
void actExit(void); | ||
Result ACT_Initialize(u32 sdkVer, void *addr, u32 memSize); | ||
Result ACT_GetAccountInfo(void *buffer, u32 size, u32 blkId); | ||
Result actuInit(void); | ||
Result actuExit(void); | ||
Result ACTU_Initialize(u32 sdkVersion, u32 unknown, Handle handle); | ||
Result ACTU_GetAccountDataBlock(u32 unknown, u32 size, u32 blockId, void* output); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <3ds.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
Handle amHandle; | ||
|
||
char * base64encode(const char * input); | ||
Result amNetGetDeviceCert(u8 const * buffer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <3ds.h> | ||
|
||
Handle cfgHandle; | ||
|
||
Result cfgsInit(); | ||
Result cfgsExit(); | ||
Result CFG_GetConfig(u32 size, u32 blkID, u8* outData); | ||
Result cfgsSecureInfoGetSerialNo(char *serial); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include <3ds.h> | ||
#include <string.h> | ||
|
||
Handle frdHandle; | ||
|
||
typedef struct | ||
{ | ||
u32 principalId; | ||
u64 localFriendCode; | ||
} FriendKey; | ||
|
||
typedef struct | ||
{ | ||
u8 region; | ||
u8 country; | ||
u8 area; | ||
u8 language; | ||
u8 platform; | ||
} FrdProfile; | ||
|
||
Result frdInit(); | ||
Result frdExit(); | ||
Result frdSetClientSdkVersion(u32 sdkVer); | ||
u64 frdPrincipalIdToFriendCode(u64 *fc, u64 pid); | ||
Result frdGetMyFriendKey(FriendKey *key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <3ds.h> | ||
#include <stdbool.h> | ||
#include <stdio.h> | ||
#include <sys/stat.h> | ||
|
||
FS_Archive sdmcArchive; | ||
|
||
void openSdArchive(); | ||
void closeSdArchive(); | ||
int makeDir(const char * path); | ||
bool fileExists(char * path); | ||
bool dirExists(const char * path); | ||
bool deleteFile(const char *path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <3ds.h> | ||
|
||
Handle gspLcdHandle; | ||
|
||
Result GSPLCD_GetBrightness(u32 screen, u32 *brightness); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <3ds.h> | ||
|
||
Handle mcuhwcHandle; | ||
|
||
Result mcuInit(); | ||
Result mcuExit(); | ||
Result mcuGetBatteryLevel(u8* out); | ||
Result mcuGetBatteryVoltage(u8* out); | ||
Result mcuGetVolume(u8* out); | ||
Result GetMcuFwVerHigh(u8* out); | ||
Result GetMcuFwVerLow(u8* out); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <3ds.h> | ||
|
||
u32 titleCount(FS_MediaType mediaType); | ||
bool detectSD(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include <3ds.h> | ||
|
||
const char * batteryStatus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <png.h> | ||
#include <zlib.h> | ||
#include <3ds.h> | ||
|
||
#define NUM_LEVELS (Z_BEST_COMPRESSION - Z_NO_COMPRESSION + 1) | ||
|
||
char fileName[256]; | ||
|
||
int level, screenCapture; | ||
unsigned int format_choice; | ||
GSPGPU_FramebufferFormats format; // = GSP_RGBA8_OES | ||
void captureScreenshot(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <3ds.h> | ||
|
||
const char * getModel(); | ||
const char * getRegion(); | ||
const char * getLang(); | ||
char * getMacAddress(); | ||
char * getScreenType(); | ||
u64 principalIdToFriendCode(u64 pid); | ||
u64 getLocalFriendCodeSeed(); | ||
FriendKey getMyFriendKey(void); | ||
char * getSerialNum(void); | ||
u32 getDeviceId(void); | ||
u64 getSoapId(void); | ||
char * getDeviceCert(void); | ||
char * getNNID(void); | ||
char * isDebugModeEnabled(); | ||
char * getBrightness(u32 screen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <3ds.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
|
||
void getSizeString(char *string, uint64_t size); | ||
char * base64Encode(u8 const * input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,7 +173,7 @@ AccessControlInfo: | |
- hid:USER | ||
- mcu::HWC | ||
- ndm:u | ||
- news:s | ||
- ps:ps | ||
- nwm::UDS | ||
- ptm:u | ||
- pxi:dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.