pak

package
v0.0.0-...-0713623 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pak loads Quake PAK files.

QPov

Copyright (C) Thomas Habets <thomas@habets.se> 2015 https://github.com/ThomasHabets/qpov

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Pos  uint32
	Size uint32
}

type MultiPak

type MultiPak []*Pak

func MultiOpen

func MultiOpen(fns ...string) (MultiPak, error)

func (MultiPak) Close

func (m MultiPak) Close()

func (MultiPak) Get

func (m MultiPak) Get(s string) (*reader, error)

func (MultiPak) List

func (m MultiPak) List() []string

type Pak

type Pak struct {
	File    *os.File
	Entries map[string]Entry
}

func Open

func Open(f *os.File) (*Pak, error)

func (*Pak) Get

func (p *Pak) Get(fn string) (*reader, error)

Jump to

Keyboard shortcuts

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