Check If Channel May 18, 2009 05:33PM | Registered: 15 years ago Posts: 5 |
Re: Check If Channel July 03, 2009 01:53AM | Registered: 15 years ago Posts: 234 |
#ifdef HW_RVL char * sig = (char *)0x80001804; if( sig[0] == 'S' && sig[1] == 'T' && sig[2] == 'U' && sig[3] == 'B' && sig[4] == 'H' && sig[5] == 'A' && sig[6] == 'X' && sig[7] == 'X') HBC=1; // Exit to HBC #endifIt loadmii also makes HBC=1. Launching this app via forwarder channel or installed channel both leave HBC=0;. I haven't tested out any other methods so I can't say how it will respond, but it works well enough for me. Check the snes9x or usbloader gx code because we also have a check that isn't just for this stub if you want to go that way.
Re: Check If Channel July 03, 2009 08:40AM | Registered: 16 years ago Posts: 1,012 |
Re: Check If Channel July 04, 2009 09:01AM | Registered: 16 years ago Posts: 1,012 |
Re: Check If Channel July 04, 2009 10:52AM | Registered: 15 years ago Posts: 59 |
Re: Check If Channel July 04, 2009 03:19PM | Registered: 16 years ago Posts: 265 |
Re: Check If Channel July 07, 2009 01:45PM | Registered: 16 years ago Posts: 1,012 |
Re: Check If Channel August 24, 2009 11:15AM | Registered: 15 years ago Posts: 161 |
Quote
giantpune
I've been using this little snippet from snes9x to check it. Just have int HBC=0; then this and HBC will be 1 if this app was launched from there.#ifdef HW_RVL char * sig = (char *)0x80001804; if( sig[0] == 'S' && sig[1] == 'T' && sig[2] == 'U' && sig[3] == 'B' && sig[4] == 'H' && sig[5] == 'A' && sig[6] == 'X' && sig[7] == 'X') HBC=1; // Exit to HBC #endifIt loadmii also makes HBC=1. Launching this app via forwarder channel or installed channel both leave HBC=0;. I haven't tested out any other methods so I can't say how it will respond, but it works well enough for me. Check the snes9x or usbloader gx code because we also have a check that isn't just for this stub if you want to go that way.
Re: Check If Channel September 02, 2009 11:40AM | Registered: 15 years ago Posts: 234 |
Re: Check If Channel September 03, 2009 12:11AM | Registered: 15 years ago Posts: 13 |