Skip to content

Commit

Permalink
WIP s10 port
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Sep 27, 2024
1 parent 5f2a4fe commit a6244d9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions s4_league_fps_unlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static void (__attribute__((thiscall)) *update_time_delta)(struct time_context *

// contains actor state
struct ctx_01b29540{
uint8_t unknown[0xb0];
uint8_t unknown[0xe0];
uint8_t actor_state;
uint8_t unknown_2[0x3];
uint32_t actor_substate_1;
Expand Down Expand Up @@ -502,8 +502,9 @@ void __attribute__((thiscall)) patched_move_actor_by(struct move_actor_by_ctx *c
// something odd is happening here after porting from s8 to s10, might have to reserve a float register here somehow

LOG_VERBOSE("%s: ctx 0x%08x, param_1 %f, param_2 %f, param_3 %f", __FUNCTION__, ctx, param_1, param_2, param_3);
LOG_VERBOSE("%s: called from 0x%08x -> 0x%08x -> 0x%08x", __FUNCTION__, __builtin_return_address(2), __builtin_return_address(1), ret_addr);
LOG_VERBOSE("%s: actx->actor_state %u", __FUNCTION__, actx->actor_state);
LOG("%s: called from 0x%08x -> 0x%08x -> 0x%08x", __FUNCTION__, __builtin_return_address(2), __builtin_return_address(1), ret_addr);
LOG("%s: actx 0x%08x", __FUNCTION__, actx);
LOG("%s: actx->actor_state %u", __FUNCTION__, actx->actor_state);
LOG_VERBOSE("%s: actx->actor_substate_1 0x%08x", __FUNCTION__, actx->actor_substate_1);
LOG_VERBOSE("%s: actx->actor_substate_2 0x%08x", __FUNCTION__, actx->actor_substate_2);

Expand Down Expand Up @@ -894,8 +895,9 @@ static void *delayed_init_thread(void *arg){
printf("config mutex init failed\n");
return 0;
}
LOG("delayed init thread started");
sleep(5);
int delay_sec = 10;
LOG("delayed init thread started, delaying for %d seconds\n", delay_sec);
sleep(delay_sec);

// might need to pause all threads here before hooking

Expand Down

0 comments on commit a6244d9

Please sign in to comment.