Commit 21dcef7
KSA r3646 added `Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory)`
at the top of Program.Main() to fix a Linux startup crash. When launched via StarMap,
AppDomain.CurrentDomain.BaseDirectory resolves to StarMap's directory instead of the
game directory, causing the game to look for assets in the wrong location.
Fix by setting APP_CONTEXT_BASE_DIRECTORY to the game directory, which is the backing
store for AppDomain.CurrentDomain.BaseDirectory in .NET.
Fixes #55
Co-authored-by: Maximilian Neßlauer <maximiliannesslauer@gmail.com>
1 parent b11699d commit 21dcef7
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments