exe_mapped

package
v0.106.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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 DirOffset added in v0.60.0

func DirOffset(a uint32) int

func GetAllInfocards

func GetAllInfocards(filesystem *filefind.Filesystem, dll_names []string) *infocard.Config

func ParseDLL added in v0.60.0

func ParseDLL(fileData []byte, out *infocard.Config, globalOffset int)

func ParseDLLs

func ParseDLLs(dll_fnames []*file.File) *infocard.Config

func ReadPE added in v0.60.0

func ReadPE(fullImage []byte) (uint32, []byte, error)

func Struct added in v0.60.0

func Struct[T any](rawData []byte, offset int) (T, error)

Types

type BinaryResource added in v0.60.0

type BinaryResource struct {
	Name uint32
	Data []byte
}

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

func Read added in v0.7.0

func Read(input_file *iniload.IniLoader) *Config

func (*Config) GetDlls added in v0.14.0

func (r *Config) GetDlls() []string

func (*Config) Write

func (frelconfig *Config) Write() *file.File

type IMAGE_RESOURCE_DATA_ENTRY added in v0.60.0

type IMAGE_RESOURCE_DATA_ENTRY struct {
	OffsetToData uint32
	Size         uint32
	CodePage     uint32
	Reserved     uint32
}

type IMAGE_RESOURCE_DIRECTORY added in v0.60.0

type IMAGE_RESOURCE_DIRECTORY struct {
	Characteristics      uint32
	TimeDateStamp        uint32
	MajorVersion         uint16
	MinorVersion         uint16
	NumberOfNamedEntries uint16
	NumberOfIdEntries    uint16
}

type IMAGE_RESOURCE_DIRECTORY_ENTRY added in v0.60.0

type IMAGE_RESOURCE_DIRECTORY_ENTRY struct {
	Name         uint32
	OffsetToData uint32
}

type Resource added in v0.60.0

type Resource struct {
	Name    uint32
	Locales []ResourceData
}

type ResourceData added in v0.60.0

type ResourceData struct {
	Locale uint32
	Data   []byte
}

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

type ResourceTable struct {
	Type      uint32
	Resources []Resource
}

func ReadResourceTable added in v0.60.0

func ReadResourceTable(rsrcOffset uint32, offset int, rsrc []byte, rtype uint32) (ResourceTable, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL