Homebrew RELEASE SYS-CW - Sysmodule to circumvent Tinfoils restrictions

Slluxx

GBATemp Mayor
OP
Developer
Joined
Jul 17, 2019
Messages
607
Trophies
0
XP
2,143
Country
Germany
Hey, whats up.

sys-cw (Cling-Wrap) is a sysmodule that detects when Tinfoil starts and circumvents their arbitrary restrictions against Hekate users.
Once Tinfoil is closed, sys-cw will revert everything back.

Cling-Wrap existed as Homebrew and Overlay before (so not an original idea) but i noticed that its extremly easy to forget that its enabled and you needed a PC to fix your Bootloader folder again (which sucks if your are not at home!).

The code i used is heavily based on sys-clk by RetroNX team. Its basically their sysmodule but with all the clockspeeds stuff removed. I dont know how resource-heavy it is (ram) but for people that have problems or concerns with it, there is still CommonProblemResolver (Payload by TeamNeptune that will fix clingwrap too).

Anyway, i hope its useful to atleast one person. Have a good day :)


Source and downloads are on Github: https://github.com/Slluxx/sys-cw
 
Last edited by Slluxx,

Slluxx

GBATemp Mayor
OP
Developer
Joined
Jul 17, 2019
Messages
607
Trophies
0
XP
2,143
Country
Germany
Can someone confirm this actually working? Somehow Tinfoil doesnt want to launch on my system at all.
I just had one other person test it
 

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
530
Trophies
0
XP
919
Country
Bulgaria
that sysmodule is nice but you can rebuild Hekate payload so Hekate reads the patches from what ever filename you put i do that never had any issues its very easy to do anyone can given they spend 10min on reading
 

Meliodas2255

It makes sense
Member
Joined
Jan 4, 2017
Messages
249
Trophies
0
Age
32
XP
425
Country
United States
I haven't tested it, this is what i was looking for. I will tested and will provide feedback. As an alternative to this, and what I've been using is that I setup emuMMC(file version) with hekate and adding to the hekate config file autoboot to payload "fusee-primary". I still boot through hekate first which boots me to atmosphere-EmuMMC(fusee-primary.bin) automatically. I've tested for a month now, and found no differences between fusee patches and hekate patches, all my modules and patches work as intented and I can still access hekate if I want to. (no additional module needed in this case or compiling a new hekate version that would need to be recreated with new versions). With that said there is a lot misconceptions out there that you cannot boot to emuMMC with fusee-primary. and the most acceptable method of setting up atmosphere is through hekate and its patches(that is what the almighty guide says). I can see the usefulness of this sysmodule. This looks as a fool-proof method that could be an addition to the guides instructions. I'd still prefer the alternative method I mentioned since I found no difference in booting fusee-primary and secondary and I still boot through hekate first.

Edit:
I tried it on Switch(Erista) 12.0.3, hekate(5.5.7) patches, atmosphere 19.4, with sysmodules, nt-bred, mission control alpha, sys-ftpd-light,tesla sysmodule, everything works but TinFoil refuses to launch.
 
Last edited by Meliodas2255,

Slluxx

GBATemp Mayor
OP
Developer
Joined
Jul 17, 2019
Messages
607
Trophies
0
XP
2,143
Country
Germany
does this work when booting via fss0?
A Orgon pointed out, therestrictions are only in place for FSS0 booting, thus its made for it.


that sysmodule is nice but you can rebuild Hekate payload so Hekate reads the patches from what ever filename you put i do that never had any issues its very easy to do anyone can given they spend 10min on reading

Someone did this and thats why i made this tool. Hekate is not the plsce to fix a restriction like that.
If you fork hekate to do this, you have to maintain it to keep up to date with its new features. And you are forced to maintain it for all the other people that chose to use the forked hekate. Its 100% bad practice and should never be done. Hekate is a bootloader and not a tool you should just abuse whenever you want.


I tried it on Switch(Erista) 12.0.3, hekate(5.5.7) patches, atmosphere 19.4, with sysmodules, nt-bred, mission control alpha, sys-ftpd-light,tesla sysmodule, everything works but TinFoil refuses to launch.

Can you elaborate a little bit on "refuses to launch"? Do you get an error message, a red screen in tinfoil?
 
Last edited by Slluxx,
  • Like
Reactions: ov3rkill

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,239
Trophies
1
XP
3,246
Country
United States
Someone did this and thats why i made this tool. Hekate is not the plsce to fix a restriction like that.
If you fork hekate to do this, you have to maintain it to keep up to date with its new features. And you are forced to maintain it for all the other people that chose to use the forked hekate. Its 100% bad practice and should never be done. Hekate is a bootloader and not a tool you should just abuse whenever you want.
Plus, you'd have to manually pull and recompile your forked Hekate every time there is a new version/commit.
 
D

Deleted User

Guest
Someone did this and thats why i made this tool. Hekate is not the plsce to fix a restriction like that.
If you fork hekate to do this, you have to maintain it to keep up to date with its new features. And you are forced to maintain it for all the other people that chose to use the forked hekate. Its 100% bad practice and should never be done. Hekate is a bootloader and not a tool you should just abuse whenever you want.
Lol. Hekate is open source, people can do what they want with it.
Besides, downloading the source and changing some lines takes at most 5 minutes.
 

Slluxx

GBATemp Mayor
OP
Developer
Joined
Jul 17, 2019
Messages
607
Trophies
0
XP
2,143
Country
Germany
@Slluxx
Super nice! Thank you!
Maybe this module can intercept and export gdrive links to download NSZ files from repos with PC?..

Uhh. i am not sure. This answer from Stackoverflow states that a hostname can and probably is encryptet but the part you are really after (/something?file=ID) is always. I am not sure if there is a way to intercept/decrypt those.


Lol. Hekate is open source, people can do what they want with it.
Besides, downloading the source and changing some lines takes at most 5 minutes.
True, but just because you can do doesnt mean you should or that it makes sense/is mart to do so. Im not saying you cant. You clearly dont understand the burden you place on yourself by doing this. But if you want to fork hekate and do this, hey man. Do whatever you want to. No need to tell me that it is possible.
 
Last edited by Slluxx,

Carlos_DobleC

Well-Known Member
Member
Joined
Sep 22, 2016
Messages
237
Trophies
0
Age
27
XP
1,339
Country
Spain
I also confirm that it works wonderfully.
Just a doubt, if I quit Tinfoil using Home + X to close the program, it also restores the Hekate folders?
 

Slluxx

GBATemp Mayor
OP
Developer
Joined
Jul 17, 2019
Messages
607
Trophies
0
XP
2,143
Country
Germany
I also confirm that it works wonderfully.
Just a doubt, if I quit Tinfoil using Home + X to close the program, it also restores the Hekate folders?
yes, closing tinfoil in any way will restore it back. i am not sure how it is if you restart your switch while tinfoil is active but it should at least boot fine. maybe the patches wont work. but starting tinfoil and closing it again should fix that too (another restart would be needed in this case).
 
  • Like
Reactions: Carlos_DobleC

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Ohkay