Author Topic: Getting calculator ID  (Read 3060 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Getting calculator ID
« on: July 11, 2014, 08:48:30 pm »
Is there a quick way to get a calculator's ID?

What I'm trying to achieve is a levelpack system where a user's progress and scores while playing a levelpack are stored in an appvar along with the levelpack tilemap and the current calculator ID. If a user transfers a level pack to a different calculator, the game would notice that the calculator ID changed and wipe the progress/scores immediately, so it's a clean game for everyone.




Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Getting calculator ID
« Reply #1 on: July 11, 2014, 09:00:18 pm »
I swear I've answered this question in an old thread... but I can't find it, so I'll re-answer it. You want B_CALL(_GetCalcSerial), which puts the first five bytes of the calculator ID (should be unique enough) in OP4.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Getting calculator ID
« Reply #2 on: July 11, 2014, 09:48:32 pm »
Thanks!

Yeah, I couldn't find any posts about it either—was it on the previous forum iteration?