Skip to content

Commit

Permalink
Rename last_process to game_process
Browse files Browse the repository at this point in the history
  • Loading branch information
wins1ey committed Jun 2, 2024
1 parent 2ef27d1 commit bd0ba23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "process.h"

bool memory_error;
extern last_process process;
extern game_process process;

#define READ_MEMORY_FUNCTION(value_type) \
value_type read_memory_##value_type(uint64_t mem_address, int32_t* err) \
Expand Down
2 changes: 1 addition & 1 deletion src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "process.h"
#include "auto-splitter.h"

struct last_process process;
struct game_process process;
#define MAPS_CACHE_MAX_SIZE 32
ProcessMap p_maps_cache[MAPS_CACHE_MAX_SIZE];
uint32_t p_maps_cache_size = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

#include <luajit.h>

struct last_process
struct game_process
{
const char *name;
int pid;
uintptr_t base_address;
uintptr_t dll_address;
};
typedef struct last_process last_process;
typedef struct game_process game_process;

typedef struct ProcessMap {
uint64_t start;
Expand Down

0 comments on commit bd0ba23

Please sign in to comment.