Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion gta3/SCM.INI
Original file line number Diff line number Diff line change
Expand Up @@ -1343,4 +1343,31 @@ DATE=2021-11-11
; CLEO 2.0 MemoryModule.cleo
0BA2=2,%2h% = memory_load_library %1s%
0BA3=1,memory_free_library %1h%
0BA4=3,%3d% = memory_get_proc_address %1s% library %2d%
0BA4=3,%3d% = memory_get_proc_address %1s% library %2d%

; Android CLEO opcodes
0DD0=2,%1d% = get_label_addr %2p% ; android
0DD1=2,%1d% = get_func_addr_by_cstr_name %2d% ; android
0DD2=1,context_call_func %1d% ; android
0DD3=2,context_set_reg %1d% value %2d% ; android
0DD4=2,%1d% = context_get_reg %2d% ; android
0DD5=1,%1d% = get_platform ; android
0DD6=1,%1d% = get_game_version ; android
0DD7=1,%1d% = get_image_base ; android
0DD8=4,%1d% = read_mem_addr %2d% size %3d% add_ib %4d% ; android
0DD9=5,write_mem_addr %1d% value %2d% size %3d% add_ib %4d% protect %5d% ; android
0DDA=3,%1d% = get_pattern_addr_cstr %2d% index %3d% ; android
0DDB=3,get_game_ver_ex name_hash %1d% ver_hash %2d% ver_code %3d% ; android
0DDC=2,set_mutex_var %1d% to %2d% ; android
0DDD=2,%1d% = get_mutex_var %2d% ; android
0DDE=-1, call_func %1d% add_ib %2d% ; android
0DE0=3,%1d% = get_touch_point_state %2d% mintime %3d% ; android
0DE1=5,%1d% = get_touch_slide_state from %2d% to %3d% mintime %4d% maxtime %5d% ; android
0DE2=1,%1d% = get_menu_button_state ; read opcode info before using ; android
0DE3=2,%1d% = get_menu_button_pressed mintime %2d% ; read opcode info before using ; android
0DF2=2,create_menu %1d% items %2d% ; android
0DF3=0,delete_menu ; android
0DF4=2,%1d% = get_menu_touched_item_index maxtime %2d% ; android
0DF5=1,set_menu_active_item_index %1d% ; android
0DF6=1,%1d% = get_menu_active_item_index ; android
1000=-1, opcode_func ; android
26 changes: 25 additions & 1 deletion gta3/opcodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -900,4 +900,28 @@
0B21: write_clipboard_data_from 0@ size 64
0BA2: 15@ = memory_load_library 15@ // IF and SET
0BA4: 10@ = memory_get_proc_address "?SetPointers@@YAXPAM000@Z" library 15@ // IF and SET
0BA3: memory_free_library 15@
0BA3: memory_free_library 15@
0DD0: 0@ = get_label_addr @func // android
0DD1: 0@ = get_func_addr_by_cstr_name 0@ // android
0DD2: context_call_func 0@ // android
0DD3: context_set_reg 0 value 1@ // android
0DD4: 10@ = context_get_reg 0 // android
0DD5: 0@ = get_platform // android
0DD6: 0@ = get_game_version // android
0DD7: 0@ = get_image_base // android
0DD8: 6@ = read_mem_addr 0x00123456 size 4 add_ib 1 // android
0DD9: write_mem_addr 0x00123456 value 6@ size 4 add_ib 1 protect 0 // android
0DDA: 2@ = get_pattern_addr_cstr 2@ index 1 // android
0DDB: get_game_ver_ex name_hash 0@ ver_hash 1@ ver_code 2@ // android
0DDC: set_mutex_var 0 to 1 // android
0DDD: 0@ = get_mutex_var 0 // android
0DDE: call_func 1@ add_ib 0 'i' 0 'f' 0@ // android
0DE0: 10@ = get_touch_point_state 7 mintime 1000 // android
0DE1: 10@ = get_touch_slide_state from 4 to 6 mintime 300 maxtime 1000 // android
0DE2: 0@ = get_menu_button_state // read opcode info before using // android
0DE3: 1@ = get_menu_button_pressed mintime 500 // read opcode info before using // android
0DF2: create_menu 0@ items 30 // android
0DF3: delete_menu // android
0DF4: 10@ = get_menu_touched_item_index maxtime 1000 // android
0DF5: set_menu_active_item_index 11@ // android
0DF6: 12@ = get_menu_active_item_index // android
18 changes: 16 additions & 2 deletions lcs/keywords.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
0001=wait
0002=goto
0002=jump
004D=jf
0003=shake_camera
004d=else_jump
004d=jf
004e=end_thread
004e=terminate_this_script
004f=create_thread
004f=start_new_script
0050=gosub
0051=return
00DB=if
00db=if
03a9=thread
03a9=script_name
016f=fade
0170=fading
01bb=set_weather
00dc=create_thread_wb
00dd=mission_cleanup
27 changes: 27 additions & 0 deletions lcs_mobile/LCSSCM.CLEO.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[CLEO]
; Android CLEO opcodes
0DD0=2,%1d% = get_label_addr %2p% ; android
0DD1=2,%1d% = get_func_addr_by_cstr_name %2d% ; android
0DD2=1,context_call_func %1d% ; android
0DD3=2,context_set_reg %1d% value %2d% ; android
0DD4=2,%1d% = context_get_reg %2d% ; android
0DD5=1,%1d% = get_platform ; android
0DD6=1,%1d% = get_game_version ; android
0DD7=1,%1d% = get_image_base ; android
0DD8=4,%1d% = read_mem_addr %2d% size %3d% add_ib %4d% ; android
0DD9=5,write_mem_addr %1d% value %2d% size %3d% add_ib %4d% protect %5d% ; android
0DDA=3,%1d% = get_pattern_addr_cstr %2d% index %3d% ; android
0DDB=3,get_game_ver_ex name_hash %1d% ver_hash %2d% ver_code %3d% ; android
0DDC=2,set_mutex_var %1d% to %2d% ; android
0DDD=2,%1d% = get_mutex_var %2d% ; android
0DDE=-1, call_func %1d% add_ib %2d% ; android
0DE0=3,%1d% = get_touch_point_state %2d% mintime %3d% ; android
0DE1=5,%1d% = get_touch_slide_state from %2d% to %3d% mintime %4d% maxtime %5d% ; android
0DE2=1,%1d% = get_menu_button_state ; read opcode info before using ; android
0DE3=2,%1d% = get_menu_button_pressed mintime %2d% ; read opcode info before using ; android
0DF2=2,create_menu %1d% items %2d% ; android
0DF3=0,delete_menu ; android
0DF4=2,%1d% = get_menu_touched_item_index maxtime %2d% ; android
0DF5=1,set_menu_active_item_index %1d% ; android
0DF6=1,%1d% = get_menu_active_item_index ; android
1000=-1, opcode_func ; android
Loading