exe_mapped

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILENAME_FL_INI = "freelancer.ini"
)
View Source
const SEEK_SET = io.SeekStart // python default seek(offset, whence=os.SEEK_SET, /)

Variables

View Source
var BOMcheck []byte = []byte{'\xff', '\xfe'}
View Source
var KEY_BASE_TERRAINS = [...]string{"terrain_tiny", "terrain_sml", "terrain_mdm", "terrain_lrg", "terrain_dyna_01", "terrain_dyna_02"}

Functions

func DecodeUTF16 added in v0.6.0

func DecodeUTF16(b []byte) (string, error)

func GetAllInfocards

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

func GetResource

func GetResource(
	mem *bin.Bdatas,
	data []byte,
	out *infocard.Config,
	absloc int,
	datatype *DataType,
	idnum int,
	global_offset int,
	datalength int,
) error

func JoinSize

func JoinSize(size int, s ...[]byte) []byte

func ParseDLLs

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

func ReadText

func ReadText(fh *bytes.Reader, count int) string

Types

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
}

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 DLLSection

type DLLSection struct {
	VirtualSize          int //     DLL_Sections[name]['VirtualSize'], = struct.unpack('=l', fh.read(4))
	VirtualAddress       int //     DLL_Sections[name]['VirtualAddress'], = struct.unpack('=l', fh.read(4))
	SizeOfRawData        int //     DLL_Sections[name]['SizeOfRawData'], = struct.unpack('=l', fh.read(4))
	PointerToRawData     int //     DLL_Sections[name]['PointerToRawData'], = struct.unpack('=l', fh.read(4))
	PointerToRelocations int //     DLL_Sections[name]['PointerToRelocations'], = struct.unpack('=l', fh.read(4))
	PointerToLinenumbers int //     DLL_Sections[name]['PointerToLinenumbers'], = struct.unpack('=l', fh.read(4))
	NumberOfRelocations  int //     DLL_Sections[name]['NumberOfRelocations'], = struct.unpack('h', fh.read(2))
	NumberOfLinenumbers  int //     DLL_Sections[name]['NumberOfLinenumbers'], = struct.unpack('h', fh.read(2))
	Characteristics      int //     DLL_Sections[name]['Characteristics'], = struct.unpack('=l', fh.read(4))
}

type DataType

type DataType struct {
	Type_  int
	Offset int
}

atatypes.append({'type': dataType, 'offset': dataOffset})

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