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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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