Jump to content
  • 0
Sign in to follow this  
Triedge

get and set info of mapreg

Question

I'm doing a modification from the source , but I need that they can be read and modified certain integer values ​​in mapreg table.

 

{// integer variable				data->type = C_INT;		switch( reg[0] ) {			case '@':				data->u.num = pc->readreg(sd, script->add_str(reg));				break;			case '$':				data->u.num = mapreg->readreg(script->add_str(reg));				break;			case '#':				if( reg[1] == '#' )					data->u.num = pc_readaccountreg2(sd, script->add_str(reg));// global				else					data->u.num = pc_readaccountreg(sd, script->add_str(reg));// local				break;			default:				data->u.num = pc_readglobalreg(sd, script->add_str(reg));				break;		}	

I have seen this in the source , but not exactly as I modify it to read certain things from the source .

 

And yes, I can read values ​​mapreg from scripts , but I need this to a modification from the source .

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.