pmachapman / helpdeco

WinHelp Decompiler
GNU General Public License v3.0
25 stars 4 forks source link

Using in 2023 #5

Open gingerbeardman opened 1 year ago

gingerbeardman commented 1 year ago

In light of there being no binary download that I can see, I tried building using gcc on macOS 12.6.6

$ cd gcc
$ make
gcc -Wall   -c -o ../src/helpdeco.o ../src/helpdeco.c
In file included from ../src/helpdeco.c:25:
../src/helpdeco.h:26:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
1 error generated.
make: *** [../src/helpdeco.o] Error 1

I can resolve that with:

#if defined(__MACH__)
  #include <stdlib.h>
#else 
  #include <malloc.h>
#endif  

But further issues appear.

pmachapman commented 1 year ago

I have updated helpdeco to build on macOS in Xcode or via the command line using GCC or Clang.

I have successfully built and run helpdeco on OS X El Capitan 10.11.6.

gingerbeardman commented 1 year ago

Many thanks!

Sadly I had no luck getting sensible results decompiling the HLP file I have, which is in Japanese. It looks like the text encoding is not considered?

THEWALLJ.HLP.zip

gingerbeardman commented 1 year ago

FWIW I was able to extract the contents of a CHM using 7z. Sadly no joy with HLP files.