idRehashGo

command module
v1.4.3-0...-57c6354 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

idRehashGo

Build Status

DOOM Eternal .resources rehasher, rewritten in Go.

Usage

First, idRehashGo needs to generate an idRehash.map file to get the resource hash offsets. You can generate one by running:

./idRehash --getoffsets

After that, you can rehash the resource offsets on meta.resources by running:

./idRehash

Compiling

The project requires the go toolchain to be compiled. Additionally, a GCC toolchain such as MinGW is required on Windows.

To compile, run:

go build -o idRehash -ldflags="-s -w" .

To set a version number, build with:

go build -o idRehash -ldflags="-s -w -X 'main.Version=vX.Y.Z'" .

(replace vX.Y.Z with the version number you prefer).

Additionally, you may use UPX to compress the binary:

upx --best idRehash

Credits

  • proteh and emoose: For creating the original idRehash.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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