mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
RichPresence enable guard
This commit is contained in:
parent
a447b80307
commit
9f02302d7f
@ -52,6 +52,8 @@ namespace NewHorizons.OtherMods.OWRichPresence
|
|||||||
|
|
||||||
public static void OnStarSystemLoaded(string name)
|
public static void OnStarSystemLoaded(string name)
|
||||||
{
|
{
|
||||||
|
if (!Enabled) return;
|
||||||
|
|
||||||
if (name == "SolarSystem") return;
|
if (name == "SolarSystem") return;
|
||||||
|
|
||||||
var localizedName = ShipLogStarChartMode.UniqueIDToName(name);
|
var localizedName = ShipLogStarChartMode.UniqueIDToName(name);
|
||||||
@ -62,6 +64,8 @@ namespace NewHorizons.OtherMods.OWRichPresence
|
|||||||
|
|
||||||
public static void OnChangeStarSystem(string destination)
|
public static void OnChangeStarSystem(string destination)
|
||||||
{
|
{
|
||||||
|
if (!Enabled) return;
|
||||||
|
|
||||||
var localizedName = ShipLogStarChartMode.UniqueIDToName(destination);
|
var localizedName = ShipLogStarChartMode.UniqueIDToName(destination);
|
||||||
var message = TranslationHandler.GetTranslation("RICH_PRESENCE_WARPING", TranslationHandler.TextType.UI).Replace("{0}", localizedName);
|
var message = TranslationHandler.GetTranslation("RICH_PRESENCE_WARPING", TranslationHandler.TextType.UI).Replace("{0}", localizedName);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user