shadowninja108 / Starlight

An enviroment for linking to Splatoon 2’s executable and implementing hooks.
MIT License
72 stars 23 forks source link

Properly grab root heap #10

Closed shadowninja108 closed 5 years ago

shadowninja108 commented 5 years ago

Currently all data must be allocated in the .data/bss segments. @OatmealDome has a workaround by getting the ResMgr's heap, but it's not ideal. The game's own new operator should be operational once a proper heap can be grabbed.

3096 commented 5 years ago

What would you consider as a "proper heap"?

OatmealDome commented 5 years ago

I assume not using one of the game's heaps, but making a dedicated heap just for Starlight

3096 commented 5 years ago

Alternatively, we could override operator new to use malloc.

khang06 commented 5 years ago

splatoon 2 malloc or glib malloc? glib malloc fucks things up on games

3096 commented 5 years ago

splatoon 2 malloc obv