pyctr.type.config.blocks module

class pyctr.type.config.blocks.SystemModel(value)[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, *, fs)[source]
Parameters:
  • fn (FilePath)

  • fs (FS | None)