changed the API - funcid_t is now index only rather than a code address
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40353
This commit is contained in:
@@ -44,6 +44,7 @@ namespace SourceMod
|
||||
Admin_Password, /* Set a server password */
|
||||
Admin_RCON, /* Use RCON */
|
||||
Admin_Cheats, /* Change sv_cheats and use its commands */
|
||||
Admin_Root, /* All access by default */
|
||||
/* --- */
|
||||
AdminFlags_TOTAL,
|
||||
};
|
||||
|
||||
@@ -461,12 +461,11 @@ namespace SourcePawn
|
||||
/**
|
||||
* @brief Executes a function ID located in this context.
|
||||
*
|
||||
* @param funcid Function id to execute.
|
||||
* @param code_addr Address to execute at.
|
||||
* @param result Pointer to store the return value (required).
|
||||
* @return Error code (if any) from the VM.
|
||||
*/
|
||||
virtual int Execute(uint32_t funcid, cell_t *result) =0;
|
||||
|
||||
virtual int Execute(uint32_t code_addr, cell_t *result) =0;
|
||||
|
||||
/**
|
||||
* @brief Throws a error and halts any current execution.
|
||||
|
||||
Reference in New Issue
Block a user