pgs

Function structure

Source
pub fn structure(save: &str) -> PGSv2
Expand description

Converts a borrowed string of a PGS save file (which is in plain text) to a PGSv2 structure.

Blank pokemon values in the save file will terminate the search for more pokemon and return the file. Destructure will automatically fix this and put the valid amount of padding back.

Only accepts version 2 PGS save files, those starting with VERSION2SAVEFILEIDENTIFIER.