hedge-dev / HMMCodes

Hedge Mod Manager community codes repository
14 stars 16 forks source link

[Sonic Origins] Various Additions and Fixes #107

Closed MegAmi24 closed 6 months ago

MegAmi24 commented 7 months ago
hyperbx commented 7 months ago

It would be worth making a function in the RSDK library instead to detect which game is currently running, rather than working it out on a per-code basis.

For example;

public EGame GetCurrentGame()
{
    // ...
    return EGame.Unknown;
}

public enum EGame
{
    Unknown = -1,
    Sonic1,
    SonicCD,
    Sonic2,
    Sonic3K
}
MegAmi24 commented 7 months ago

That'd be great, however my current implementation of the game check can only distinguish between Sonic 1 and 2; it doesn't work for CD or S3&K. I'm not sure how Origins properly stores which game you're currently playing, and even if I did, writing SigScans for RAM memory sounds like a nightmare to me at the moment.

thesupersonic16 commented 7 months ago

You can check the RSDK version for CD and S3K.

MegAmi24 commented 6 months ago

Alright, I've added about all I wanted to.

thesupersonic16 commented 6 months ago

All codes for S3K appear to be working as expected.