Skip to content

Instantly share code, notes, and snippets.

@wwylele
Created September 22, 2017 13:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wwylele/9c530dfe566ab8d3e67d71ed12ddca84 to your computer and use it in GitHub Desktop.
Save wwylele/9c530dfe566ab8d3e67d71ed12ddca84 to your computer and use it in GitHub Desktop.
3DS "area:" archive research
"$(country_id)_LZ.bin"
[LZ]{
struct {
u32 entry_count?;
struct { // size=0x818
struct {
u8 zero?
u8 zero?
u8 region_id;
u8 country_id;
} address_id;
struct {
char16_t region_name[0x40]
} region_names[0x10];
u8 sort_index?[0x10];
u16 latitude; // 0x0000~0x4000 -> +0~+90; 0xC000~0xFFFF -> -90~-0
u16 longitude; // 0x0000~0x8000 -> +0~+180; 0x8000~0xFFFF-> -180~-0
} regions[1+entry_count]
} sections?[?]
u8 ?[entry_count_0+1?][0x10]
//...
}
"country_LZ.bin"
[LZ]{
struct{
u32 entry_count;
struct { // size=0x83C
struct {
u8 zero?
u8 zero?
u8 zero?
u8 country_id;
} address_id;
u32 region_count?; // max_region_id?
u32 ?; //bool?
struct {
char16_t country_name[0x40]
} country_names[0x10];
u8 sort_index?[0x10];
u8 zero_padding[0x20];
} country_entries[entry_count];
} sections?[2]
u8 ?[entry_count_0][0x10]
//..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment