Exemplo n.º 1
0
        /// <summary>
        /// Reads a file from the mod
        /// </summary>
        /// <param name="resourcePath">Path of the resource file, relative to the directory in which the mod.json or the modpack.json is located.</param>
        /// <returns>An array of byte containing the resource data</returns>
        public byte[] ReadResourceArray(string resourcePath)
        {
            var absolutePath = Path.Combine(GetBaseDirectory(), resourcePath);

            return(fileSystem.ReadAllBytes(absolutePath));
        }