HomebrewTitleIDGenerator - Unused TitleID's & TitleID Check

Discussion in '3DS - Homebrew Development and Emulators' started by iKlikla, Jan 6, 2017.

  1. iKlikla
    OP

    iKlikla Member

    Newcomer
    14
    32
    Oct 12, 2015
    Gambia, The
  2. Suiginou

    Suiginou (null)

    Member
    565
    588
    Jun 26, 2012
    Gambia, The
    pc + 8
    "Here's an unused Homebrew TitleID: 00040000003"

    A few things:

    1. This is too short. A title ID is exactly 8 bytes (16 characters). It needs zero-padding at the end.
    2. Sometimes this gives titleIDs with non-zero variations. The variation should always be 0. See https://3dbrew.org/wiki/Titles#Title_IDs

    So this would mean, the maximum allowed title ID should be 0x000400000ff7ff00 as per 3dbrew's maximum TID, and the minimum should be something in the uniqueid at least in the 0x10000 range to make sure there are no collisions with retail titles.

    EDIT: OP fixed it, as per edited post below.
     
    Last edited by Suiginou, Jan 6, 2017
  3. iKlikla
    OP

    iKlikla Member

    Newcomer
    14
    32
    Oct 12, 2015
    Gambia, The
    Edit: Update got pushed, thank you very much!
     
    Last edited by iKlikla, Jan 6, 2017
  4. Justin14p

    Justin14p GBAtemp Regular

    Member
    168
    85
    Jun 5, 2016
    Poland
    [​IMG]
    wut
     
    Last edited by Justin14p, Jan 6, 2017
  5. Ryuzaki_MrL

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    [​IMG]

    Back on topic: nice tool.
     
    RedHat, OctoNezd and Justin14p like this.
  6. DanTheMan827

    DanTheMan827 GBAtemp Advanced Fan

    Member
    630
    394
    May 3, 2015
    United States
    Wisconsin
  7. RedHat

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    [​IMG] [​IMG]

    Might want to fix that in case somebody types in a lower case title ID!

    Don't know if this matters, but title ID's in the makefiles look something like this:
    UNIQUE_ID := 0x099AA
    Maybe this should check short titleIDs too?
     
    Last edited by RedHat, Jan 7, 2017
    Kyubnyan likes this.
  8. DanTheMan827

    DanTheMan827 GBAtemp Advanced Fan

    Member
    630
    394
    May 3, 2015
    United States
    Wisconsin
    I have a pull request for @iKlikla to accept that fixes this and adds the short ID format along with checking against the eShop title id list as well...
     
  9. RedHat

    RedHat GBAtemp Regular

    Member
    230
    217
    Oct 10, 2015
    United States
    Mii Plaza
    Alright sweet! Hope he accepts it!
     
  10. iKlikla
    OP

    iKlikla Member

    Newcomer
    14
    32
    Oct 12, 2015
    Gambia, The
    Accepted the pull request and fixed some other things. Thanks for your contributions!

    — Posts automatically merged - Please don't double post! —

    The uniqueID is highlighted now.