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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
FD4DerivedSingletonandFD4Singletonsearch routines.
Traits§
- From
Singleton - 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
Noneif 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
Noneif the singleton was not found.