Skip to content

Commit

Permalink
Auto Log Ver
Browse files Browse the repository at this point in the history
  • Loading branch information
marcussacana committed May 19, 2019
1 parent f250810 commit 68fb9bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SRL/Reloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ internal static void Init() {

if (Debugging)
{
Log(ConsoleColor.Green, "Strings Reloads - v4.0", true);
Log(ConsoleColor.Green, "Strings Reloads - v" + SRLVersion, true);
Log(ConsoleColor.Green, "Soft-Translation Engine - By Marcussacana", true);
Log(ConsoleColor.Green, "Debug Mode Enabled...", true);
}
Expand Down
6 changes: 6 additions & 0 deletions SRL/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ internal static bool IsWine {
return isWine.Value;
}
}
internal static string SRLVersion {
get {
var Version = System.Diagnostics.FileVersionInfo.GetVersionInfo(SrlDll);
return Version.FileMajorPart + "." + Version.FileMinorPart;
}
}
private static bool GameStarted() {
try {
return !string.IsNullOrWhiteSpace(System.Diagnostics.Process.GetCurrentProcess().MainWindowTitle);
Expand Down

0 comments on commit 68fb9bb

Please sign in to comment.