Documentation ¶
Index ¶
- Constants
- Variables
- func DirOffset(a uint32) int
- func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config
- func ParseDLL(fileData []byte, out *infocard.Config, globalOffset int)
- func ParseDLLs(dll_fnames []*file.File) *infocard.Config
- func ReadPE(fullImage []byte) (uint32, []byte, error)
- func Struct[T any](rawData []byte, offset int) (T, error)
- type BinaryResource
- type Config
- type IMAGE_RESOURCE_DATA_ENTRY
- type IMAGE_RESOURCE_DIRECTORY
- type IMAGE_RESOURCE_DIRECTORY_ENTRY
- type Resource
- type ResourceData
- type ResourceDll
- type ResourceTable
- type VersionInfoResource
Constants ¶
View Source
const ( RT_RCDATA = 23 RT_STRING = 6 IMAGE_RESOURCE_NAME_IS_STRING = 0x80000000 IMAGE_RESOURCE_DATA_IS_DIRECTORY = 0x80000000 )
View Source
const (
FILENAME_FL_INI = "freelancer.ini"
)
Variables ¶
View Source
var KEY_BASE_TERRAINS = [...]string{"terrain_tiny", "terrain_sml", "terrain_mdm", "terrain_lrg", "terrain_dyna_01", "terrain_dyna_02"}
Functions ¶
func GetAllInfocards ¶
func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config
Types ¶
type BinaryResource ¶ added in v0.60.0
type Config ¶
type Config struct { *iniload.IniLoader Dlls []*semantic.String Markets []*semantic.Path Goods []*semantic.Path Equips []*semantic.Path Universe []*semantic.Path Ships []*semantic.Path Loadouts []*semantic.Path }
func FixtureFLINIConfig ¶
func FixtureFLINIConfig() *Config
type IMAGE_RESOURCE_DATA_ENTRY ¶ added in v0.60.0
type IMAGE_RESOURCE_DIRECTORY ¶ added in v0.60.0
type IMAGE_RESOURCE_DIRECTORY_ENTRY ¶ added in v0.60.0
type Resource ¶ added in v0.60.0
type Resource struct { Name uint32 Locales []ResourceData }
type ResourceData ¶ added in v0.60.0
type ResourceDll ¶ added in v0.60.0
type ResourceDll struct { Strings map[int]string Infocards map[int]string Dialogs []BinaryResource Menus []BinaryResource VersionInfo *VersionInfoResource SavePath string }
type ResourceTable ¶ added in v0.60.0
func ReadResourceTable ¶ added in v0.60.0
type VersionInfoResource ¶ added in v0.60.0
type VersionInfoResource struct {
Data []byte
}
Directories ¶
Path | Synopsis |
---|---|
Package binary_pack performs conversions between some Go values represented as byte slices.
|
Package binary_pack performs conversions between some Go values represented as byte slices. |
Click to show internal directories.
Click to hide internal directories.