Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Log(char * text)
- {
- FILE* Log = NULL;
- fopen_s ( &Log, "Loot.txt", "a+" );
- fprintf (Log, text);
- fclose ( Log );
- }
- void Log(int i)
- {
- FILE* Log = NULL;
- fopen_s ( &Log, "Loot.txt", "a+" );
- fprintf (Log, "%x", i);
- fclose ( Log );
- }
- void NameDump2()
- {
- char * pos = (char *)Names_offset;
- char * name = pos;
- bool run = true;
- while(run)
- {
- char c = *pos;
- pos++;
- run = false;
- if(c!=0)
- run = true;
- else
- {
- FILE* L = NULL;
- fopen_s ( &L, "Loot.txt", "a+" );
- fprintf (L, "%p", name);
- fclose ( L );
- Log(" : ");
- Log(name);
- Log("\n");
- int* test = (int *)pos;
- if(*test!=0)
- {
- run = true;
- pos += 8;
- name = pos;
- }
- }
- }
- }
- void onAttach()
- {
- Log("Hello World\n");
- FILE* Log = NULL;
- fopen_s ( &Log, "Loot.txt", "a+" );
- fprintf (Log, "%i\n", Names->Num());
- fprintf (Log, "%i\n", GObjObjects->Num());
- fclose ( Log );
- NameDump2();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement