Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023. If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe
The code you posted needs to be adjusted for it to be a generic dat file extractor/creator, as the main function just builds one from a "data" subfolder in the current folder. This is effort that I'm not sure people will want to do, if the only reason you won't do it yourself is mere lazyness..
Nevertheless, it should also not be too difficult a task.
For convencience, I've attached the actual CPP file of your post here .
You do not have the required permissions to view the files attached to this post.