pyctr.type.config.blocks module

class pyctr.type.config.blocks.SystemModel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Old3DS = 0
Old3DSXL = 1
New3DS = 2
Old2DS = 3
New3DSXL = 4
New2DSXL = 5
class pyctr.type.config.blocks.ConfigSaveBlockParser(save)[source]

Bases: object

Parses config blocks to provide easy access to information in the config save.

https://www.3dbrew.org/wiki/Config_Savegame

Parameters:

save (ConfigSaveReader) –

property username: str

Profile username. Can be up to 10 characters long.

Block ID: 0x000A0000

property user_time_offset: int

The offset to the Raw RTC in milliseconds.

Block ID: 0x00030001

property system_model: SystemModel

System model.

Block ID: 0x000F0004

classmethod load(fp)[source]
Parameters:

fp (BinaryIO) –

classmethod from_file(fn)[source]
Parameters:

fn (FilePath) –