[Release] Cthulhu - app for managing play time, step history and cached icon data

Discussion in '3DS - Homebrew Development and Emulators' started by Ryuzaki_MrL, Aug 27, 2016.

  1. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Cthulhu is a homebrew application for managing play time history, step history and cached icon data. The goal of this app is to provide an open-source alternative to some of the 3DS Development Unit Software, alongside with extra features.

    Current version: v1.3.2 (May 28, 2017)

    Why "Cthulhu"?
    I found the pronunciation similar to "Cache Tool". It's also a cool name.


    Current Features:
    - Clear play time history: clears your play time history (it can be seen at Activity Log under "Daily Records"). This can't be undone without a backup of your PTM savefile.
    - Clear step history: clears your step history (it can be seen at Activity Log under "Daily Records"). This can't be undone without a backup of your PTM savefile.
    - Clear software library: clears your software library (it can be seen at Activity Log under "Software Library").
    - Edit software library: allows editing of individual entries on your software library.

    - Clear shared icon cache: clear all shared cached icon data, used by Activity Log, Friends List and Notifications (this will also clear your Activity Log title list).
    - Update shared icon cache: iterates through all entries and replaces outdated ones.
    - Restore shared icon cache: restores the previous shared icon cache in case something goes wrong while updating it.
    - Clear HOME Menu icon cache: clears the icon cache used by HOME Menu, then reboots the console so HOME Menu can create it again.
    - Update HOME Menu icon cache: iterates through all entries and replaces outdated ones.
    - Restore HOME Menu icon cache: restores the previous HOME Menu icon cache in case something goes wrong while updating it.
    - Software gift unwrapper: unwraps all software on HOME Menu. Suggestion of @Clydefrosch
    - Demo Play Count Reset: resets play count of all installed demos. Suggestion of @DavidRO99
    - Folder Count Reset: resets HOME Menu's folder count so that the next folder created is "1". (Only works if you run Cthulhu from Test Menu).
    - Replace/remove custom eShop music: self explanatory.
    - Clear Game Notes: deletes all your game notes at once.
    - Change accepted EULA version: useful for allowing out-of-region online play (when set to FF.FF).
    - Toggle HOME/Test menu: changes which menu the 3DS will boot on startup (Test Menu needs UNITINFO patch AND having test menu installed for it to work).


    Future Features:
    - Misc. features seen on dev unit software.
    (Suggestions are also welcomed)


    Download:
    - Github (3DSX and CIA)
    - TitleDB (CIA only. Download from FBI or Homebr3w)


    Source:
    - Github


    Obs.: Because HOME Menu doesn't allow accessing its icon cache while it's running, Cthulhu runs on extended memory mode.
     
    Last edited by Ryuzaki_MrL, May 31, 2017


  2. Wolfvak

    Wolfvak *yawn*

    Member
    807
    1,061
    Oct 25, 2015
    Uruguay
    What about N3DS?
     
  3. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    I don't have a N3DS, so I couldn't test it.
    It should work since Sm4sh and Monster Hunter also runs on 80MB mode.
     
  4. ih8ih8sn0w

    ih8ih8sn0w Koreaboo

    Member
    1,669
    732
    Aug 22, 2015
    United States
    Hell
    Before I do something potentially dumb, is everything that this modifies stored in nand or on sd? I can test n3ds rn btw.
     
  5. Wolfvak

    Wolfvak *yawn*

    Member
    807
    1,061
    Oct 25, 2015
    Uruguay
    Yeah but it never reboots your device, hence home menu is still running in the background. Just thought I'd let you know.
     
  6. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    HOME Menu cache is stored on SD card.
    Everything else is stored on NAND.
    The worst that can happen, and happened to me on early testings, is PTM savefile corruption (play time data, pedometer data, user and system time data).
    The PTM module will then just create another savefile, as stated on 3dbrew.

    It shouldn't happen anymore since I'm not using PTMSYSM_FormatSavedata anymore.

    Hm. Can anyone with a N3DS test HOME Menu icon cache clearing/updating from the CIA version?

    EDIT: Nevermind
     
    Last edited by Ryuzaki_MrL, Aug 27, 2016
  7. Clydefrosch

    Clydefrosch GBAtemp Psycho!

    Member
    4,127
    1,181
    Jan 2, 2009
    Gambia, The
    sooo... i have a feeling this should get the ability to make a backup and restore that PTM thing

    and since its already dealing with home menu things... you think theres a way to make this unpack like all games on homescreen?
     
  8. ih8ih8sn0w

    ih8ih8sn0w Koreaboo

    Member
    1,669
    732
    Aug 22, 2015
    United States
    Hell
    I cleared it, and my theme reset, it regenerated home menu stuff, then icons took a while to render.
    edit: not sure how to test if updating works correctly. It went through it successfully though I think.
     
    Last edited by ih8ih8sn0w, Aug 27, 2016
  9. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Then it worked.
     
    ih8ih8sn0w likes this.
  10. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Cthulhu doesn't directly accesses the PTM savefile, instead it calls the ptm:sysm service to do the job: https://www.3dbrew.org/wiki/PTM_Services#SysMenu_PTM_Service_.22ptm:sysm.22
    That's how Activity Log gets the Daily Records data, but via the ptm : play service instead.

    Sorry, I didn't get it.
     
    Last edited by Ryuzaki_MrL, Aug 27, 2016
  11. Clydefrosch

    Clydefrosch GBAtemp Psycho!

    Member
    4,127
    1,181
    Jan 2, 2009
    Gambia, The
    at some times, you end up with a million gift wrapped icons on homescreen. like when you remove the 0000000098 folder during a9hl installation. it would be cool if there was something to unpack all of that instantly
     
  12. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Ah, understood.
    It would be a nice addition. Added to OP.
     
  13. Xenosaiga

    Xenosaiga That one guy that doesn't give a shit anymore

    Member
    1,478
    838
    Oct 9, 2015
    United States
    The Shadows
    Let me ask this then, I believe I understand but Inwant to ask directly.

    Say you had a Homebrew installed as a cia, and that Homebrew had a name change, but it still shows up as the old name in play history. Does this allow you to fix that?
     
  14. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Exactly! The icon is also updated.
     
  15. LinkSoraZelda

    LinkSoraZelda GBAtemp Advanced Maniac

    Member
    1,980
    625
    Aug 12, 2015
    United States
    Land of the Rising Orange
    n3DS also has a mode that reboots the console. Maybe there should be seperate downloads for o3DS and n3DS.
     
  16. NANASHI89

    NANASHI89 GBAtemp Maniac

    Member
    1,109
    122
    May 3, 2012
    United States
    Before I download, is there a 3dsx version? If not, can you make a 3dsx version?
     
  17. ih8ih8sn0w

    ih8ih8sn0w Koreaboo

    Member
    1,669
    732
    Aug 22, 2015
    United States
    Hell
    It doesn't really matter tbh, it works on n3ds fine from what I tested.
     
  18. Xenosaiga

    Xenosaiga That one guy that doesn't give a shit anymore

    Member
    1,478
    838
    Oct 9, 2015
    United States
    The Shadows
    I would just select the update shared icon data? Just wanting to make sure as that is the only thing I am trying to accomplish is fixing the name of said Homebrew.
     
    Last edited by Xenosaiga, Aug 27, 2016 - Reason: Fixed the question to reflect as a question.
  19. Ryuzaki_MrL
    OP

    Ryuzaki_MrL Furry Addict

    Member
    744
    720
    Jun 23, 2015
    Brazil
    Last edited by Ryuzaki_MrL, Aug 27, 2016
  20. CatmanFan

    CatmanFan nope

    Member
    1,284
    407
    Aug 14, 2016
    Morocco
    OK, so what does HOME Menu icon cache mean? Is it related to the themes or software installed?