Skip to content

Commit

Permalink
Version 1.6.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Mar 5, 2024
1 parent 1423f3c commit 0e34a29
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Art/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Coroner",
"version_number": "1.6.1",
"version_number": "1.6.2",
"website_url": "https://github.com/EliteMasterEric/Coroner",
"description": "Rework the Performance Report with new info, including cause of death.",
"dependencies": [
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 1.6.2
# Fixed
- Fixed an issue where Coroner fails to detect the config folder (even when it is in the proper location).

# 1.6.1
# Fixed
- Improved the clarity of the error messages for when people install the mod incorrectly (you won't get this error if you use R2Modman!).
Expand Down
2 changes: 1 addition & 1 deletion Coroner/Coroner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Company>EliteMasterEric</Company>
<AssemblyName>Coroner</AssemblyName>
<GUID>com.elitemastereric.coroner</GUID>
<Version>1.6.1</Version>
<Version>1.6.2</Version>

<Title>Coroner</Title>
<Description>Rework the Performance Report with new info, including cause of death.</Description>
Expand Down
6 changes: 3 additions & 3 deletions Coroner/LanguageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class LanguageHandler {
XDocument languageData;

public LanguageHandler(string languageCode) {
Plugin.Instance.PluginLogger.LogInfo($"{PluginInfo.PLUGIN_NAME} loading Language Support: {languageCode}");
Plugin.Instance.PluginLogger.LogInfo($"{PluginInfo.PLUGIN_NAME} loading language support: {languageCode}");
this.languageCode = languageCode;

ValidateLanguage(languageCode);
Expand All @@ -104,13 +104,13 @@ void ValidateLanguage(string languageCode) {
void LoadLanguageData(string languageCode) {
try
{
Plugin.Instance.PluginLogger.LogInfo($"Loading Coroner language data from config folder, at {Plugin.Instance.GetConfigPath()}");
Plugin.Instance.PluginLogger.LogInfo($"Loading language data from config folder: {Plugin.Instance.GetConfigPath()}");
// R2Modman is a weirdo.
// languageData = XDocument.Load($"./BepInEx/Lang/Coroner/Strings_{languageCode}.xml");
// languageData = XDocument.Load($"./BepInEx/plugins/{PluginInfo.PLUGIN_AUTHOR}-{PluginInfo.PLUGIN_NAME}/Strings_{languageCode}.xml");
// languageData = XDocument.Load($"{Plugin.AssemblyDirectory}/Strings_{languageCode}.xml");

if (!File.Exists(Plugin.Instance.GetConfigPath()))
if (!Directory.Exists(Plugin.Instance.GetConfigPath()))
{
Plugin.Instance.PluginLogger.LogError($"Config folder not found at: {Plugin.Instance.GetConfigPath()}");
var wrongConfigPath = $"{Plugin.AssemblyDirectory}/BepInEx/config/{PluginInfo.PLUGIN_AUTHOR}-{PluginInfo.PLUGIN_NAME}/Strings_{languageCode}.xml";
Expand Down
2 changes: 1 addition & 1 deletion Coroner/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class PluginInfo
public const string PLUGIN_ID = "Coroner";
public const string PLUGIN_NAME = "Coroner";
public const string PLUGIN_AUTHOR = "EliteMasterEric";
public const string PLUGIN_VERSION = "1.6.1";
public const string PLUGIN_VERSION = "1.6.2";
public const string PLUGIN_GUID = "com.elitemastereric.coroner";
}

Expand Down
2 changes: 1 addition & 1 deletion Examples/PirateLanguage/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"website_url": "https://github.com/EliteMasterEric/Coroner",
"description": "A modpack which adds a Pirate language to Coroner..",
"dependencies": [
"EliteMasterEric-Coroner-1.6.1"
"EliteMasterEric-Coroner-1.6.2"
]
}

0 comments on commit 0e34a29

Please sign in to comment.