Hello and apologies for the one year bump. I didn't find this info elsewhere so I thought my trick might help other people.
It isn't too easy and you can't get the overlay working with BloodGDX (despite libGDX running through OpenGL if I'm not mistaken) but at least GOG Galaxy will count your playtime this way.
The following assumes both GOG Galaxy and Java are installed with the default installation path (so within Program FIles (x86). Oh, and that you have properly placed BloodGDX in the Blood folder.
First, I guess it is best to disable automatic updates for the game ("MORE" > "Settings", in Galaxy). Then open the Blood game folder ("MORE > "Manage Installation" > "Show Folder"). And quit GOG Galaxy.
In the open folder, locate the .info file (goggame-1207658856.info or similar), back it up just in case, and open it in a text editor (notepad etc.).
Find this chunk of code:
{
"isPrimary" : true,
"type" : "FileTask",
"path" : "DOSBOX\\dosbox.exe",
"workingDir" : "DOSBOX",
"arguments" : "-conf \"..\\dosboxBlood.conf\" -conf \"..\\dosboxBlood_single.conf\" -noconsole -c \"exit\""
},
and replace it with the following:
{
"isPrimary" : true,
"type" : "FileTask",
"path" : "..\\..\\..\\Common Files\\Oracle\\Java\\javapath\\javaw.exe",
"arguments" : "-jar BloodGDX.jar"
},
GOG Galaxy may now be started again and Blood should still be in the installed games list. If it isn't, something must have gone amiss (restore the backup of the .info file (might have to tell Galaxy to scan the folder again), or check the path to javaw.exe, I guess).
With this new path, GOG Galaxy will look for javaw.exe starting from the Blood folder, going up three levels (to Program Files (x86)), then back down within the directory to javaw.exe via the javapath shortcut. Then will tell javaw.exe to run BloodGDX.jar.
If you have Java in a portable way rather than the default install, you'll have to edit the path to javaw.exe. To make it easier, I suggest Portable Java be extracted either in the Blood folder as well or in the above level, Games folder. While writing the path, notice how backslashes have to be doubled.
Good luck!
edit: I should mention this trick should work in a similar fashion for RedneckGDX.
Post edited January 13, 2019 by Toshiba-3