Originally posted by YouViolateMe
I made something like this for PC just to test stuff :p Anyways nice tool/post. Sure this will help lots of people. Have you thought about releasing the source as well?
Like John said it's not really something people should need the source for, but I don't encrypt my tools so if anyone wants to look at the source they can reflect it or whatever.
But anyway, for people who don't want to look through the source all I am doing is iterating through the ScriptParseTree and since it's a simple struct:
struct ScriptParseTree
{
const char *name;
int len;
char *buffer;
};
I just read the buffer which contains the pointer to where the GSC is located in memory and also the the len so I can have the size of the GSC so then when I have those 2 things I can just use a GetMemory function and put it into a buffer so that I can save it.
Though if you do that you won't really be able to dump custom GSCs, seeing as no tool I have seen updates the len in the struct when they inject a GSC. So to get the right size of a custom GSC you have to get it from the compiled GSC itself as every GSC contains the size in the binary of the file which you can see in HxD, I made a custom function for this which is just the buffer address + 0x24 and that will get the correct size of any GSC.
Originally posted by John
People shouldn't need the source, this is something that's really easy to make. I'm surprised it took this long for someone to release one.
All that you need to make something like this is public information
Yeah I had surprised no one had released one by now, but seeing as how the GSC people are it is not really surprising after all lol. Though I did hear people were just dumping the whole PS3s memory for a GSC XD.