Skip to content

Commit

Permalink
📝 update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Feb 7, 2024
1 parent 298af78 commit 5d86457
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions sa/sa.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"meta": {
"last_update": 1707122841420,
"last_update": 1707280940363,
"version": "0.547",
"url": "https://library.sannybuilder.com/#/sa"
},
Expand Down Expand Up @@ -59601,13 +59601,13 @@
}
],
"id": "2401",
"name": "READ_STRUCT",
"name": "READ_MEMORY_WITH_OFFSET",
"num_params": 4,
"attrs": {
"is_static": true
},
"class": "Memory",
"member": "ReadStruct",
"member": "ReadWithOffset",
"short_desc": "Reads a value from the given offset from the memory address (see: 2402)"
},
{
Expand Down Expand Up @@ -59648,13 +59648,13 @@
}
],
"id": "2403",
"name": "FORGET_MEMORY",
"name": "WRITE_MEMORY_WITH_OFFSET",
"num_params": 1,
"class": "Memory",
"member": "Forget",
"attrs": {
"is_static": true
},
"member": "WriteWithOffset",
"short_desc": "Removes block allocated with 0AC8 from CLEO's clean-up list, so memory persists load/start new game events. Forgotten memory still will be released when game closes causing no leaks"
},
{
Expand Down
4 changes: 2 additions & 2 deletions sa/snippets/memory/2401.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
int ptr = get_this_script_struct

int baseIp = read_struct ptr {offset} 0x10 {size} 4 // get CRunningScript::BaseIP
shortString name = read_struct ptr {offset} 0x08 {size} 8 // get CRunningScript::Name
int baseIp = read_memory_with_offset ptr {offset} 0x10 {size} 4 // get CRunningScript::BaseIP
shortString name = read_memory_with_offset ptr {offset} 0x08 {size} 4 // get CRunningScript::Name

0 comments on commit 5d86457

Please sign in to comment.