RELEASE Thinfoil - stripped down fork of Tinfoil

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by uyjulian, Sep 17, 2019.

  1. uyjulian
    OP

    uyjulian Homebrewer

    Member
    9
    Nov 26, 2012
    United States
    United States
    [​IMG]
    Thinfoil is a stripped down fork of Tinfoil focused on USB installation.
    For full features, use other programs.​

    Differences from upstream:

    USB install only; all other features removed
    Toggle between internal memory and TF card with X
    Toggle between enforcing and ignoring required firmware version with Y
    All files sent are installed; there is no menu selection for files to be installed
    Threading is removed
    Replaced GetCNMTNCAInfo with CreateNSPCNMTContentRecord
    USB packet padding is added for the drivers that require it to function properly

    1MB buffer version: https://github.com/uyjulian/Tinfoil/releases/download/v0.2.1-thinfoil1/Tinfoil.nro
    8MB buffer version: https://github.com/uyjulian/Tinfoil/releases/download/v0.2.1-thinfoil2/Tinfoil.nro

    Source code: https://github.com/uyjulian/Tinfoil.git (thinfoil branch)
    Big thanks to all forks of Tinfoil that I pulled code from: https://github.com/Adubbz/Tinfoil/network/members
     
    Last edited by uyjulian, Sep 19, 2019
  2. Jayro

    Jayro MediCat USB and Mini Windows 10 Developer

    Member
    15
    GBAtemp Patron
    Jayro is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 23, 2012
    United States
    Octo Canyon
    Neat, if you're always docked. Kinda useless and redundant if you're not.
     
  3. xamphear

    xamphear Member

    Newcomer
    4
    Dec 16, 2005
    United States
    Awesome, thank you!
     
  4. hippy dave

    hippy dave BBMB

    Member
    15
    Apr 30, 2012
    United Kingdom
    This is what the world needs, thanks!
     
  5. designgears

    designgears GBAtemp Regular

    Member
    4
    Aug 8, 2016
    United States
    Garou likes this.
  6. blawar

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    i’m confused, you seem concerned about min-maxing speed by tuning the buffer sizes, but then you go and remove threading which cuts the install speed in half, and you call it a feature?

    you took this from the fastest usb installer, and brought it down to goldleaf speeds.
     
    designgears likes this.
  7. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
    Great work here
     
  8. designgears

    designgears GBAtemp Regular

    Member
    4
    Aug 8, 2016
    United States
    Not really, he succeeded in tanking the install speed, that's about all.
     
  9. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
    Try the 8mb buffer. Maybe your using the 1mb buffer. Besides other tinfoil build randomly crash. So far I have tested his release and I find it better than other installers.
     
    Last edited by GnK23, Sep 17, 2019
  10. designgears

    designgears GBAtemp Regular

    Member
    4
    Aug 8, 2016
    United States
    still no where near the original codes speed.
     
  11. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
    Okay. :)
     
  12. blawar

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    No,the buffer size doesn’t matter here. he is killing the install speed by making it single threaded. literally cutting it in half pretty much. it’s prettty easy to understand: the original tinfoil could read and write at the same time. he removed that and made it so tinfoil can only read or write, but not both at the same time.
     
  13. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
    What do you suggest for the reason behind the random crashes of other builds? When I tested the 8mb buffer app install speed ranges from 20-30+mbps. The 1mb buffer only speed up until 12-16mbps.
     
  14. Mthodmn101

    Mthodmn101 GBAtemp Advanced Fan

    Member
    6
    Jan 31, 2008
    United States
    Is there an updated build around?
     
  15. blawar

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    i get a solid 40 MB/sec from stock adubbz code. you just proved my point.
     
  16. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
    The original adubbz code may have been faster but it crashes a lot especially when installing batch dlc and updates. So I guess the real question here is speed vs stability
     
  17. blawar

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    rommy667 likes this.
  18. tatundria

    tatundria GBAtemp Fan

    Member
    5
    Feb 24, 2009
    Argentina
    Could you update this with better speed?
     
  19. blawar

    blawar GBAtemp Maniac

    Member
    11
    Nov 21, 2016
    United States
    I have not experienced any crashes, but even if that is the case, the solution is not to strip everything out, its to fix the bug that is making it crash.
     
  20. GnK23

    GnK23 Advanced Member

    Newcomer
    3
    Apr 6, 2016
    United States
Quick Reply
Draft saved Draft deleted
Loading...