summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-29 00:43:31 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-29 00:43:31 -0400
commitd49eb880115fefae406edfdf38fbff54acf8ba44 (patch)
tree378e087b0b6d70243c85bef7d06215457579d97d /src/SMAPI.Web/Framework
parenta9e3458a3b93649f62919566c3ffacf27f16332c (diff)
downloadSMAPI-d49eb880115fefae406edfdf38fbff54acf8ba44.tar.gz
SMAPI-d49eb880115fefae406edfdf38fbff54acf8ba44.tar.bz2
SMAPI-d49eb880115fefae406edfdf38fbff54acf8ba44.zip
show game path on log parser page instead of mods path
Diffstat (limited to 'src/SMAPI.Web/Framework')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/LogParser.cs1
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/ParsedLog.cs3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
index 9e44f163..f49fb05c 100644
--- a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
@@ -135,6 +135,7 @@ namespace StardewModdingAPI.Web.Framework.LogParsing
{
Match match = this.ModPathPattern.Match(message.Text);
log.ModPath = match.Groups["path"].Value;
+ log.GamePath = new FileInfo(log.ModPath).Directory.FullName;
}
// log UTC timestamp line
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/ParsedLog.cs b/src/SMAPI.Web/Framework/LogParsing/Models/ParsedLog.cs
index a82b6a1b..87b20eb0 100644
--- a/src/SMAPI.Web/Framework/LogParsing/Models/ParsedLog.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/ParsedLog.cs
@@ -32,6 +32,9 @@ namespace StardewModdingAPI.Web.Framework.LogParsing.Models
/// <summary>The player's operating system.</summary>
public string OperatingSystem { get; set; }
+ /// <summary>The game install path.</summary>
+ public string GamePath { get; set; }
+
/// <summary>The mod folder path.</summary>
public string ModPath { get; set; }