forked from Ports/perfect_dark
portx64: pd-extract: renamed fin_marker
This commit is contained in:
1 parent
40273bdba1
commit
e36df05a4f
4 files changed
+4
-4
No files matched your search
@@ -16,7 +16,7 @@ void add_marker(u32 ptr_src, uintptr_t ptr_host)
|
||||
m_NumPtrMarkers++;
|
||||
}
|
||||
|
||||
struct ptrmarker* find_marker(uintptr_t ptr_src)
|
||||
struct ptrmarker* find_ptr_marker(uintptr_t ptr_src)
|
||||
{
|
||||
for (int i = 0; i < m_NumPtrMarkers; i++) {
|
||||
if (m_PtrMarkers[i].ptr_src == ptr_src) {
|
||||
|
||||
@@ -83,7 +83,7 @@ struct ptrmarker {
|
||||
};
|
||||
|
||||
void add_marker(u32 ptr_src, uintptr_t ptr_host);
|
||||
struct ptrmarker* find_marker(uintptr_t ptr_src);
|
||||
struct ptrmarker* find_ptr_marker(uintptr_t ptr_src);
|
||||
void reset_markers();
|
||||
|
||||
#endif
|
||||
@@ -302,7 +302,7 @@ void relink_ptr(uintptr_t** ptr)
|
||||
{
|
||||
if (!*ptr) return;
|
||||
|
||||
struct ptrmarker* marker = find_marker(*ptr);
|
||||
struct ptrmarker* marker = find_ptr_marker(*ptr);
|
||||
if (!marker) {
|
||||
fprintf(stderr, "[BG] WARNING: Unable to relink pointer: %p\n", ptr);
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
@@ -1126,7 +1126,7 @@ static u32 convert_lists(u8 *dst, u8 *src, u32 dstpos, u32 src_ofs)
|
||||
ailist->ptr_list = (u8*)dstpos;
|
||||
|
||||
// multiple ailists can point to the same list, so we need to check if it was already copied
|
||||
struct ptrmarker *marker = find_marker(src_ptr_list);
|
||||
struct ptrmarker *marker = find_ptr_marker(src_ptr_list);
|
||||
if (marker) {
|
||||
ailist->ptr_list = marker->ptr_host;
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user