Crate from_singleton

Crate from_singleton 

Source
Expand description

§FROM Singleton

FromSoftware singleton manipulation library.

This library provides a trait FromSingleton, which allows types to be associated with FD4Singleton and FD4DerivedSingleton static instances across the FromSoftware catalogue of games. It uses binary regex patterns and lazy evaluation, with a first time initialization time of 30-40 ms.

The singleton scanner idea is based on work by tremwil and vswarte.

Supported games (with versions tested):

  • DS3 1.15.0
  • DS3 1.15.2
  • Sekiro 1.06
  • ER 1.16
  • AC6 1.07.1
  • DigitalArtwork_MiniSoundtrack

§License

Licensed under either of

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Modules§

find
FD4DerivedSingleton and FD4Singleton search routines.

Traits§

FromSingleton
Assigns a type a name that can be used for Dantelion2 singleton reflection.

Functions§

address_of
Returns a pointer to a singleton instance using Dantelion2 reflection. May return None if the singleton was not found.
map
Returns a reference to the singleton map for the process, where keys are singleton names and values are pointers to the static singleton pointers.
static_of
Returns a pointer to the pointer to a singleton instance using Dantelion2 reflection. May return None if the singleton was not found.