News for hackers. Stuff that matters.
Re:Windows Recovery Environment and Bootable USB Creator in ... by Mogzol on Saturday July 27, 2024 @01:52AM (#41084695)
Speaking of large batch files, if anyone has ever softmodded a Wii, there is a good chance you used ModMii, which is by far the largest batch program I've seen. The main script [1] is a batch file that clocks in at over a megabyte. I used to be pretty into the Wii modding scene and remember talking with the author of that script about random batch things a few times. I can't imagine maintaining a file that big.

[1] https://github.com/modmii/modmii.github.io/blob/master/Suppo...

Re:Windows Recovery Environment and Bootable USB Creator in ... by nyanpasu64 on Saturday July 27, 2024 @03:24AM (#41084989)
It's sad that so many projects simply stopped updating a decade or more ago... the first 90% of work is building a USB loader and the second 90% is maintaining it, and neither the author nor I want to figure it out. I read online that SNEEK lets you screenshot games... it doesn't work (wrong filesystem? neek2o and sneek have a different feature set?). Also god all those Exception (DSI) and learning a decade later they were segfaults... yummy memory-unsafe embedded programming.

I found that ModMii leaked some global variables from a (failed) SNEEK install to a system menu mod('s help file), and being written in Batch certainly explains things...

Re:Windows Recovery Environment and Bootable USB Creator in ... by sllabres on Saturday July 27, 2024 @06:25AM (#41085606)
I once knew a (very old) old accounting system that had to work around a 64kB limit and therefor used a programmatically generated set of many hundreds batch files batch files calling each other (not containing the program logic of course). But each of them was less than 100 lines long.

But 27 kLOC for the WII thing or 3 kLOC for the recovery tool which even looks a bit more convoluted then the WII thing sounds interesting to maintain. On the other hand, if it works, no dependencies no 200 MB binary blob.

Re:Windows Recovery Environment and Bootable USB Creator in ... by sunaookami on Saturday July 27, 2024 @06:54AM (#41085711)
Don't forget that it even has a GUI made with Wizard's Apprentice which is created and controlled by a similar large batch file: https://github.com/modmii/modmii.github.io/blob/master/Suppo... :D
Re:Windows Recovery Environment and Bootable USB Creator in ... by torphedo on Saturday July 27, 2024 @06:51PM (#41089905)
21k loc, one file... dear god. that trumps it all, for sure. and wow, the repo is still getting active commits.