pub enum PFHFileType {
    Boot,
    Release,
    Patch,
    Mod,
    Movie,
    Other(u32),
}
Expand description

This enum represents the Type of a PackFile.

The possible types are, in the order they’ll load when the game starts (their numeric value is the number besides them):

  • Boot (0): Used in CA PackFiles, not useful for modding.
  • Release (1): Used in CA PackFiles, not useful for modding.
  • Patch (2): Used in CA PackFiles, not useful for modding.
  • Mod (3): Used for mods. PackFiles of this type are only loaded in the game if they are enabled in the Mod Manager/Launcher.
  • Movie (4): Used in CA PackFiles and for some special mods. Unlike Mod PackFiles, these ones always get loaded.
  • Other(u32): Wildcard for any type that doesn’t fit in any of the other categories. The type’s value is stored in the Variant.

Variants

Boot

Release

Patch

Mod

Movie

Other(u32)

Implementations

This function returns the PackFile’s Type in u32 format. To know what value corresponds with what type, check their definition’s comment.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.