Coding

 Reply to this postStart new topic

How SCM hooking works?

alabanda
post Jun 1 2013, 02:41 PM
Post #1


The New Guy!

Posts: 2
Joined: 1-June 13



I downloaded spooky's scm hook to see how custom scm code injecting works, but i dont get it. i am interested in writing a simple cleo-like program to run my small scripts. i need an explanation to how to achieve this. not the code, just how scm hook manages to inject it. thanks.
Go to the top of the page
 
+Quote Post
liamnrory
post Jun 8 2013, 02:09 PM
Post #2


The New Guy!

Posts: 2
Joined: 8-June 13



I want this but it's pretty much hard to do so I quit. I wish you can accomplish it.
Go to the top of the page
 
+Quote Post
ricardelily
post Sep 30 2013, 04:50 AM
Post #3


The New Guy!

Posts: 2
Joined: 29-September 13



I think the codes would be easier to explain. LOL
Go to the top of the page
 
+Quote Post
alabanda
post Nov 13 2013, 09:39 PM
Post #4


The New Guy!

Posts: 2
Joined: 1-June 13



if anyone interested; it starts when game is ready for script execution, and everytime game tries to execute a buffer (buffer may include opcodes more than one) it also executes program's custom code. it sets script_ip for game_script_thread class (custom buffer position minus game's scm base) and then calls process_one_command.
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: