Example #1
0
        /// <summary>
        /// (re)load information from default binary (protocol buffers) config file(s) of a specific version number
        /// </summary>
        /// <param name="version">version number is required since there may be multiple gamelib versions on disk to choose from</param>
        /// <exception cref="">various IO exceptions may occur when library file could not be found/loaded</exception>
        public void LoadBin(int version)
        {
            GardenItem g  = GardenItem.ConstructGameLibItem(version);
            string     fn = g.GameFolder + "\\" + GardenConfig.Instance.GameLibraryFilenameBin;

            LoadBin(fn);
            this.version = version;
        }