Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Need Help Understanding Chunk of Code

Featured Replies

  • Author
  • Localization

Arefu, posted Tue Apr 17, 2018 3:32 am (34093)


https://pastebin.com/iGwhCEV8


I see that this is the function I presume to be loading a lot of the game's core files, I can't seem to work out where it actually opens these files, the Load_File_To_PTR is strange, I can't see anywhere where it would be calling fopen or fopen_s, I've found out when the game runs it stores the result of that func to a vairable which points to memory.

I want to see how it lays out the data structure to read these files myself so I can make a program that lets people edit them.
But I can't figure it out, this is for my project; https://github.com/Arefu/Wolf/
  • Author
  • Localization

Arefu, posted Tue Apr 17, 2018 3:42 am (34094)


So after a tad bit more research

Code:
v4 = Load_File_To_Ptr(&Memory, "bin/CARD_INTID_YGO2.bin");

v4 is assigned the location in memory that Load_File_To_Ptr returns, it seems to be poking the whole file in memory, but I need to figure out how it's loading the other files and parsing their structures so I can manipulate them.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.