static load()

in src/PlatformJson.js [30:39]


    static load (plugins_dir, platform) {
        const filePath = path.join(plugins_dir, `${platform}.json`);
        let root = null;
        if (fs.existsSync(filePath)) {
            const jsonStr = fs.readFileSync(filePath, 'utf8');
            root = JSON.parse(stripBom(jsonStr));
        }

        return new PlatformJson(filePath, platform, root);
    }