Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
truthfully i lowk forgot how to contribute to stuff so ignore the fact this isnt on master branch LOL

# TarkovMonitor

[![build-dev](https://github.com/the-hideout/TarkovMonitor/actions/workflows/build-dev.yml/badge.svg)](https://github.com/the-hideout/TarkovMonitor/actions/workflows/build-dev.yml)
Expand Down
12 changes: 9 additions & 3 deletions TarkovMonitor/GameWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,16 @@ public int AccountId
public event EventHandler<ProfileEventArgs> InitialReadComplete;
public event EventHandler<ControlSettingsEventArgs> ControlSettings;

public static string GetDefaultLogsFolder()
public static string GetDefaultLogsFolder()
{
using RegistryKey key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\EscapeFromTarkov") ?? throw new Exception("EFT install registry entry not found");
return Path.Combine(key.GetValue("InstallLocation")?.ToString() ?? throw new Exception("InstallLocation registry value not found"), "Logs");
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov"))
if (key != null)
return Path.Combine(key.GetValue("InstallLocation")?.ToString() ?? throw new Exception("InstallLocation registry value not found"), "Logs");

using (RegistryKey? steamKey = Registry.CurrentUser.OpenSubKey(@"Software\Valve\Steam"))
return Path.Combine(steamKey?.GetValue("SteamPath")?.ToString() ?? throw new Exception("Steam registry value not found"), @"steamapps\common\Escape from Tarkov\build\Logs");

throw new Exception("Tarkov isnt installed?");
}

public static Dictionary<string, string> MapBundles = new() {
Expand Down