Skip to content

Commit

Permalink
Fix wrong options file path in shaderpacks manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Nullkooland committed May 9, 2021
1 parent 3722b61 commit d27f6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GBCLV3/Services/Auxiliary/ShaderPackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ShaderPackService(GamePathService gamePathService, LogService logService)

public Task<ImmutableArray<ShaderPack>> LoadAllAsync()
{
string opttionsFile = _gamePathService.RootDir + "/optionsshaders.txt";
string opttionsFile = _gamePathService.WorkingDir + "/optionsshaders.txt";
string enabledPackId = null;

if (File.Exists(opttionsFile))
Expand Down Expand Up @@ -112,7 +112,7 @@ public Task<ImmutableArray<ShaderPack>> MoveLoadAllAsync(IEnumerable<string> pat

public void WriteToOptions(ShaderPack enabledPack)
{
string opttionsFile = _gamePathService.RootDir + "/optionsshaders.txt";
string opttionsFile = _gamePathService.WorkingDir + "/optionsshaders.txt";
if (!File.Exists(opttionsFile))
{
return;
Expand Down

0 comments on commit d27f6f3

Please sign in to comment.