OpenHoW icon indicating copy to clipboard operation
OpenHoW copied to clipboard

Implement unmangle function to deal with frontend resources

Open hogsy opened this issue 7 years ago • 3 comments

The original PSX implementation can be found here - keep in mind this is written using the MIPS instruction set, so it's going to need conversion.

Can probably just be added to pork_utils.c as pork_unmangle

hogsy avatar Apr 26 '18 11:04 hogsy

The Sony Playstation 1 has a RISC R3000A processor which uses the MIPS 1 instruction set.

It has a branch delay slot which means...

		beq	t0,zero,exit 			; Zero byte indicates end of data
		andi	t0,t0,$003f				; Mask bits 0 to 5

... andi is executed before and regardless of beq being taken or not.

DummkopfOfHachtenduden avatar Apr 28 '18 16:04 DummkopfOfHachtenduden

UNMANGLE.H UNMANGLE.C

This unmangle implementation is compatible with the mangled files in hogs of war.

DummkopfOfHachtenduden avatar Jul 05 '18 11:07 DummkopfOfHachtenduden

Fortunately this can sit low on our list of priorities as at this time supporting both the PSX and PC releases would be an absolute mess - and the PC version only appears to have the frontend resources mangled.

hogsy avatar Feb 07 '19 14:02 hogsy