From d6c3d74b3f854345e01fec1ed79cdc584d6d43d7 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 22 Jul 2023 15:36:51 +0300 Subject: [PATCH] Clarify proto_make_path address --- src/proto.cc | 12 ++++++------ src/proto.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/proto.cc b/src/proto.cc index 007c580..234cf5b 100644 --- a/src/proto.cc +++ b/src/proto.cc @@ -187,8 +187,8 @@ static char** _perk_code_strs; // 0x6648BC static char** _critter_stats_list; -// NOTE: Inlined. -void _proto_make_path(char* path, int pid) +// 0x49E270 +void proto_make_path(char* path, int pid) { strcpy(path, _cd_path_base); strcat(path, _proto_path_base); @@ -211,7 +211,7 @@ int _proto_list_str(int pid, char* proto_path) } char path[COMPAT_MAX_PATH]; - _proto_make_path(path, pid); + proto_make_path(path, pid); strcat(path, "\\"); strcat(path, artGetObjectTypeName(PID_TYPE(pid))); strcat(path, ".lst"); @@ -1521,7 +1521,7 @@ static int _proto_header_load() ptr->max_entries_num = 1; char path[COMPAT_MAX_PATH]; - _proto_make_path(path, index << 24); + proto_make_path(path, index << 24); strcat(path, "\\"); strcat(path, artGetObjectTypeName(index)); strcat(path, ".lst"); @@ -1931,7 +1931,7 @@ int _proto_save_pid(int pid) } char path[260]; - _proto_make_path(path, pid); + proto_make_path(path, pid); strcat(path, "\\"); _proto_list_str(pid, path + strlen(path)); @@ -1952,7 +1952,7 @@ int _proto_save_pid(int pid) static int _proto_load_pid(int pid, Proto** protoPtr) { char path[COMPAT_MAX_PATH]; - _proto_make_path(path, pid); + proto_make_path(path, pid); strcat(path, "\\"); if (_proto_list_str(pid, path + strlen(path)) == -1) { diff --git a/src/proto.h b/src/proto.h index a9a6126..61c7575 100644 --- a/src/proto.h +++ b/src/proto.h @@ -102,7 +102,7 @@ extern char _cd_path_base[COMPAT_MAX_PATH]; extern MessageList gProtoMessageList; extern char* _proto_none_str; -void _proto_make_path(char* path, int pid); +void proto_make_path(char* path, int pid); int _proto_list_str(int pid, char* proto_path); size_t proto_size(int type); bool _proto_action_can_use(int pid);