Example #1
0
        private static void LoadKeybinds()
        {
            if (FileIo.KeybindsExist())
            {
                FileIo.StreamLoadKeybinds(out WaveMaker.Keybinds);

                if (WaveMaker.Keybinds == null)
                {
                    Logging.Log("Internal Error", "Unable to load keybinds file");
                    throw new UnableToLoadException("Unable to load keybinds file");
                }
            }
            else
            {
                FileIo.CreateKeybinds(out WaveMaker.Keybinds);

                if (WaveMaker.Keybinds == null)
                {
                    Logging.Log("Internal Error", "Unable to create keybinds file");
                    throw new UnableToLoadException("Unable to create keybinds file");
                }
            }
        }