You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This simple block of code below can recursively read a directory of mappings, and merge them all into one file for the user to import.
an easy temporary solution for anyone who needs this.
constfs=require("fs")constfiles=fs.readdirSync("./yarn-1.20.4/mappings",{recursive: true},(err)=>{if(err)thrownewError("error reading directory: "+err)})console.log(files)letcontentArray=[]for(constfileoffiles){if(!file.endsWith(".mapping"))continueconstcontent=fs.readFileSync("./yarn-1.20.4/mappings/"+file)contentArray.push(content)}// yarn mappings already have trailing newlines for some reasonlettotalContent=contentArray.join("\n")fs.writeFileSync("yarn-mappings-full.mapping",totalContent)
Engima has the option to split mappings into a directory structure, modeling packages and each class as a file in those directories.
For instance: https://github.com/FabricMC/yarn/tree/1.20.4/mappings
We can let users pick a directory, merge all the files then use the existing engima mapping support
The text was updated successfully, but these errors were encountered: