Skip to content

Commit

Permalink
No patches needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Jul 8, 2024
1 parent 0c65241 commit 89b759e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
5 changes: 1 addition & 4 deletions OWRichPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
using OWML.ModHelper;
using DiscordRPC;
using DiscordRPC.Unity;
using HarmonyLib;
using UnityEngine;
using System;
using System.Collections.Generic;
using System.Reflection;
using OWRichPresence.API;
using OWRichPresence.Langs;

Expand Down Expand Up @@ -46,14 +44,13 @@ public class OWRichPresence : ModBehaviour
private void Awake()
{
Instance = this;
new Harmony("MegaPiggy.OWRichPresence").PatchAll(Assembly.GetExecutingAssembly());
}

private void Start()
{
// Starting here, you'll have access to OWML's mod helper.
InitializeTranslation();
TextTranslation.Get().OnLanguageChanged += InitializeTranslation;
TextTranslation.Get().OnLanguageChanged += InitializeTranslationWithReload;
ConsoleWriteLine($"My mod {nameof(OWRichPresence)} is loaded!", MessageType.Success);

var logger = new OWConsoleLogger(MessageType.Debug);
Expand Down
20 changes: 0 additions & 20 deletions Patches/TranslationPatches.cs

This file was deleted.

0 comments on commit 89b759e

Please sign in to comment.