Skip to content

Commit 3fd00e0

Browse files
committed
2025-03-31-01-39-57
1 parent c939a2b commit 3fd00e0

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Common IntelliJ Platform excludes
22

33
/Build
4-
/Publish
4+
/Logs
55

66
# User specific
77
**/.idea/**/workspace.xml
@@ -35,4 +35,4 @@ _UpgradeReport_Files/
3535

3636
Thumbs.db
3737
Desktop.ini
38-
.DS_Store
38+
.DS_Store

SteamAchievementUnlocker/Program.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
using Serilog;
55
using SteamAchievementUnlocker;
66

7+
string exePath = Process.GetCurrentProcess().MainModule!.FileName;
8+
string exeDirectory = Path.GetDirectoryName(exePath)!;
9+
Directory.SetCurrentDirectory(exeDirectory);
10+
711
Process.GetProcessesByName("SteamAchievementUnlockerAgent")
812
.ToList()
913
.ForEach(x => x.Kill());
@@ -24,10 +28,10 @@
2428
}
2529
var app = "SteamAchievementUnlockerAgent.exe";
2630
#elif LINUX || MAC
27-
Log.Information("Make sure Steam is running and logged in");
28-
Log.Information("Otherwise the following will all fail\n");
29-
string app = "SteamAchievementUnlockerAgent";
30-
Environment.SetEnvironmentVariable("LD_PRELOAD", Path.Combine(Directory.GetCurrentDirectory(), "libsteam_api.so"));
31+
Log.Information("Make sure Steam is running and logged in");
32+
Log.Information("Otherwise the following will all fail\n");
33+
string app = "SteamAchievementUnlockerAgent";
34+
Environment.SetEnvironmentVariable("LD_PRELOAD", Path.Combine(Directory.GetCurrentDirectory(), "libsteam_api.so"));
3135
#endif
3236

3337
const string clearString = "--clear";

0 commit comments

Comments
 (0)