Unless you use a cheating device like GameShark, CodeBreaker, ...
PegPeregoGaucho
🦈
PegPeregoGaucho
Or cheat engine
PegPeregoGaucho
AdrienTD
In the emulator (like mGBA), there is a Cheat window where you can put cheat codes there
AdrienTD
And maybe we could make a cheat code for inifinte potion (by overwriting the potion timer in RAM)
AdrienTD
But I haven't found any proper guide on how to create valid cheat codes
AdrienTD
PegPeregoGaucho
What even are cheat codes
PegPeregoGaucho
From what I have seen it's always 2 hexadecimal values but what do they do
AdrienTD
Normally it should be like first value is address and second one is value to replace
AdrienTD
But most cheat code formats are more advanced (allow incrementing, conditions, ...)
AdrienTD
and they are also encrypted...
PegPeregoGaucho
schmeling65
Thinking about additional stuff I'd say you need to find the function that registers the cheat codes and call it via functionpointer with the parameters you want/need. Also you'll have to create something that is connected to that type of code so that gets executed the moment you enter the cheat code.
That would be my guess without looking at the game.
Martyste Tendertail
Sounds like a SM64 Romhack of XXL GBA might very well be possible now 😮
PegPeregoGaucho
When you take a look at https://gamehacking.org/faqs/hackv500c.html#gba_encryption
Cheat codes dont get registered, they are like encrypted pseudocode