-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added region autodetect, header guarding and moved structs to their own
file.
- Loading branch information
ev1l0rd
committed
Apr 10, 2018
1 parent
9612a9c
commit c832153
Showing
8 changed files
with
112 additions
and
39 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,12 @@ | ||
#ifndef _CONSTH_ | ||
#define _CONSTH_ | ||
|
||
#define PAL_TITLEID 0x00040000001BFB00 | ||
#define USA_TITLEID 0x00040000001BB200 | ||
#define JPN_TITLEID 0x00040000001BFC00 | ||
|
||
#define PAL_LOWID 0x001BFB00 | ||
#define USA_LOWID 0x001BB200 | ||
#define JPN_LOWID 0x001BFC00 | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
#ifndef _EDITPROFILEH_ | ||
#define _EDITPROFILEH_ | ||
|
||
#include <3ds.h> | ||
#include <stdio.h> | ||
|
||
Result edit_profile(char profile_num, int fusion_mode); | ||
Result edit_profile(char profile_num, bool fusion_mode); | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#ifndef _MAINH_ | ||
#define _MAINH_ | ||
|
||
#include <stdio.h> | ||
#include <3ds.h> | ||
#include "editprofile.h" | ||
int main(); | ||
void printSaveSelect(); | ||
void printFusionSelect(); | ||
void printFusionSelect(); | ||
|
||
#endif |
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 @@ | ||
#ifndef _STRUCTH_ | ||
#define _STRUCTH_ | ||
|
||
typedef struct Regions { | ||
bool PAL; | ||
bool USA; | ||
bool JPN; | ||
int total_regions; | ||
} Regions; | ||
|
||
#endif |
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
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
#ifndef _TITLEH_ | ||
#define _TITLEH_ | ||
|
||
#include <3ds.h> | ||
#include <stdio.h> | ||
u32 title_check(); | ||
int valid_title(u64 title_id, u32 *lowid); | ||
#include "struct.h" | ||
#include "const.h" | ||
|
||
u32 title_check(Regions *regions_found); | ||
int valid_title(u64 title_id, u32 *lowid, Regions *regions_found); | ||
|
||
#endif |