View Full Version: C++ Pointer get value at address

CheatSync.net Forums > Developement > C++ Pointer get value at address


Title: C++ Pointer get value at address


emcp - June 1, 2007 12:41 PM (GMT)
hi
im not to excited at programming with c++ right now seeing all my pc's rejects the compliers

anyway im hoping to get this wee bit done for my VCS CHEATERS

waterbottle gived me this

CODE
#include <pspkernel.h>
#include <pspctrl.h>


PSP_MODULE_INFO("vcs", 0x1000, 1, 0);
PSP_MAIN_THREAD_ATTR(0);

// Writes a message using gta:vcs' text printer
void writemessage(char* message)
{
   short *p = (short*) 0x08e90ed8;
   while( (*p++ = *message++) );
}


int mainThread (SceSize args, void *argp)
{
   SceCtrlData pad;
   while(1)
   {
       sceCtrlPeekBufferPositive(&pad, 1);
       if( pad.Buttons & PSP_CTRL_CIRCLE )
       {
           writemessage( "Hello World!" );
       }
       sceKernelDelayThread( 10000 );
   }
   return 0;
}

int module_start (SceSize args, void *argp)
{
SceUID thid;

thid = sceKernelCreateThread("vcs", mainThread, 0x18, 0x1000, 0, NULL);
if (thid >= 0) sceKernelStartThread(thid, args, argp);

return 0;

}

int module_stop (void)
{
return 0;
}




now what this does is it points to the memory address used to print text onto the screen while playing vcs (there are many cheats that do the same)
and then it send the value "Helloworld" to it

what i want done to get the value at an address and not send it

ive been working on VCS CHEATERS CHEAT MANAGER but i took a break doing other tools and games and i now want to get the other tools done now (seeing quite surprisingly alot of people contacted me about it LOL)
(they wont take long after this seeing its pretty much copy, paste modify)

id also need someone to compile my wee finished bit so if youve got it set up and have some time could you help us out

THANKS

Freestyle - June 1, 2007 03:14 PM (GMT)
Ask ddm he's good at it. Better then I am

Waterbottle - June 1, 2007 03:39 PM (GMT)
int getint( int address )
{
return *((int*)address);
}

should work.

emcp - June 1, 2007 03:50 PM (GMT)
thanks WB now i just have to get pspdev on again grgrgrgr

see what i was doing was getting the players co-ordinates and making a menu and all the it will save the co-ordinates into a file then my app will load the co-ordinates and you select which ones to use and from there you can spawn vehicles and other things




Hosted for free by InvisionFree