Hex editor HxD is PB friendly

Everything else that doesn't fall into one of the other PB categories.
infratec
Always Here
Always Here
Posts: 7699
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Hex editor HxD is PB friendly

Post by infratec »

I'm using HxD for a long time.
As version 2.0 was available, it has the possibility to write own plugins.
I tried this with PB and after some correspondence with the author, I was able to do this.

Maybe this was the reason why he also looked a bit to PB :mrgreen:

Yesterday I need to copy a graphic palette out of an exe file.
I was surprised that it is possible to export directly to Purebasic.

It generates a file like this:

Code: Select all

; C:\tmp\Debris32\debris32.exe (02.01.1999 11:15:52)
; StartOffset(h): 00000050, EndeOffset(h): 00000075, Länge(h): 00000026

#RawDataItemCount = 38

DataSection
  DS_RawData:
  Data.b $54, $68, $69, $73, $20, $70, $72, $6F, $67, $72, $61, $6D, $20, $6D
  Data.b $75, $73, $74, $20, $62, $65, $20, $72, $75, $6E, $20, $75, $6E, $64
  Data.b $65, $72, $20, $57, $69, $6E, $33, $32, $0D, $0A
EndDataSection

Structure RawDataArray
  Items.b[#RawDataItemCount]
EndStructure

Define *rawData.RawDataArray = ?DS_RawData
I thought: how nice is this :!:

I no longer need an editor and search and replace many things.

Simply mark the area you want to export and do it.

You can find it here:
https://mh-nexus.de/en/programs.php
BarryG
Addict
Addict
Posts: 4269
Joined: Thu Apr 18, 2019 8:17 am

Re: Hex editor HxD is PB friendly

Post by BarryG »

A very nice addition by HxD's author, indeed. Thanks for the heads-up!
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Hex editor HxD is PB friendly

Post by davido »

@infratec ,
Very useful.
Thank you for sharing this little gem. :D
DE AA EB
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: Hex editor HxD is PB friendly

Post by chi »

Thanks for the info... Was still on 1.7.7.0
Et cetera is my worst enemy
User avatar
NicTheQuick
Addict
Addict
Posts: 1537
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Hex editor HxD is PB friendly

Post by NicTheQuick »

How funny is it that the author of that software comes from the same city as me? :D
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: Hex editor HxD is PB friendly

Post by Mijikai »

Thanks was still on an old version.
TassyJim
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Jun 16, 2013 6:27 am
Location: Tasmania (Australia)

Re: Hex editor HxD is PB friendly

Post by TassyJim »

Thank you,
I was on version 2.3 but hadn't noticed that option.

Very handy

Jim
BarryG
Addict
Addict
Posts: 4269
Joined: Thu Apr 18, 2019 8:17 am

Re: Hex editor HxD is PB friendly

Post by BarryG »

LOL, I actually was on an older version, too. Seems like a lot of us were! Just goes to show how stable and good HxD is - that we never felt the need to check for updates!
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5526
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Hex editor HxD is PB friendly

Post by Kwai chang caine »

Waouuuuh !!! i believe it's the first time i see an export menu to PureBasic :shock:
It's the begining of the glory of our love PB 8)
it's FRED who will be happy and proud to see his baby enter the big leagues :shock: 8)

Thanks for the tip INFRATEC 8)
ImageThe happiness is a road...
Not a destination
Post Reply