mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-22 13:48:25 +07:00
add file picker interface for mods
This commit is contained in:
@ -11,6 +11,11 @@ const readBytes = path => Vars.mods.getScripts().readBytes(path)
|
||||
const loadMusic = path => Vars.mods.getScripts().loadMusic(path)
|
||||
const loadSound = path => Vars.mods.getScripts().loadSound(path)
|
||||
|
||||
const readFile = (purpose, ext, cons) => Vars.mods.scripts.readFile(purpose, ext, cons);
|
||||
const readBinFile = (purpose, ext, cons) => Vars.mods.scripts.readBinFile(purpose, ext, cons);
|
||||
const writeFile = (purpose, ext, str) => Vars.mods.scripts.writeFile(purpose, ext, str);
|
||||
const writeBinFile = (purpose, ext, bytes) => Vars.mods.scripts.writeBinFile(purpose, ext, bytes);
|
||||
|
||||
let scriptName = "base.js"
|
||||
let modName = "none"
|
||||
|
||||
|
Reference in New Issue
Block a user