config

package
v0.0.288 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config binds the db2tool settings files, tools/database/ generator-settings.json and ptr-generator-settings.json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Settings Settings `json:"Settings"`
	// TargetDirectory does double duty (listfile-key prefix AND output dir);
	// the FDID/listfile use must always see the raw value, never a
	// filesystem-resolved path.
	TargetDirectory        string   `json:"TargetDirectory"`
	GameTablesOutDirectory string   `json:"GameTablesOutDirectory"`
	GameTables             []string `json:"GameTables"`
	Tables                 []string `json:"Tables"`
}

func Load

func Load(path string) (*File, error)

type Settings

type Settings struct {
	Product string `json:"Product"`
	BaseDir string `json:"BaseDir"`
}

Settings is the settings file's "Settings" section: which product to extract and the install to read it from.

Jump to

Keyboard shortcuts

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