private void Start() { Hooks.Patch(); dir = Path.Combine(Paths.PluginPath, "StudioAnimLoader"); extDir = Path.Combine(StudioAnimLoader.OtherGameDir.Value, "abdata"); groupOffset = StudioAnimLoader.GroupOffset.Value; groupSuffix = StudioAnimLoader.GroupSuffix.Value; force = StudioAnimLoader.Overwrite.Value; info = Info.Instance; if (!Directory.Exists(dir) || !Directory.Exists(StudioAnimLoader.OtherGameDir.Value)) { Logger.Log(LogLevel.Message, "StudioAnimLoader Aborted: Problem with InfoDir or OtherGameDir settings."); return; } LoadAll(); }
private void OnDestroy() { Hooks.Unpatch(); }