This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # nro-lz4-fixup.py | |
| # simple script to fix the header of a .nro.lz4 file, | |
| # so you can decompress it with standard tools (namely, lz4, the cli utility) | |
| # doesn't work on all .nro.lz4 files. idk why. something stupid i'm sure. ymmv | |
| # License: MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # python 3.12.3+ | |
| # simple script to parse a .har file and spit out a CSV with a list of URLs,* | |
| # for scraping or some quick and dirty web archival. | |
| # (plug the output url list txt file into wget) | |
| # *: Right now, it spits out all the URLs for which the response was bigger than 1 MiB, or was a "partial-content" response type. | |
| # note: for PROPER archival of webpages, consider using something else, like wget, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** (incomplete) parser for control.nacp [Nintendo Switch] | |
| see also: | |
| https://switchbrew.org/wiki/NACP | |
| */ | |
| #pragma endian little | |
| import std.core; | |
| import std.io; | |
| import std.mem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| see: | |
| https://switchbrew.github.io/libnx/structNacpStruct.html | |
| https://switchbrew.github.io/libnx/structNacpLanguageEntry.html | |
| https://switchbrew.github.io/libnx/nacp_8h.html#details | |
| pseudocode: | |
| Result r = nsGetApplicationControlData(NsApplicationControlSource_Storage, appId, ctrlData, sizeof(NsApplicationControlData), &actualSize); | |
| ctrlData->nacp.lang[0].name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| UNLICENSE | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The OptiFine installer requires that MC be installed in the default launcher and has opened the version of MC at least once. Do this first. | |
| 1. Download OptiFine | |
| 2. Extract OptiFine | |
| a. Double click the download from step 1 | |
| b. Click Extract button | |
| c. Navigate to MultiMC instance you wish to install OptiFine into (C:\mc\MultiMC\instances\1.13\.minecraft\) | |
| 3. Move extracted Optifine to instance \ libraries folder (C:\mc\MultiMC\instances\1.13\libraries\) | |
| 4. In MultiMC edit instance, go to Version screen and select the Minecraft entry in the list. Then click Add to Minecraft.jar | |
| 5. Select the OptiFine file you extracted and moved in step 3. |