Skip to content

Commit

Permalink
Windows: Support long paths
Browse files Browse the repository at this point in the history
  • Loading branch information
complexlogic committed Dec 17, 2023
1 parent e3d7da3 commit 81e8a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/rsgain.manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<application>
<windowsSettings>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
</assembly>
2 changes: 1 addition & 1 deletion src/easymode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ static void load_preset(const std::filesystem::path &preset)

// Check user directory
#ifdef _WIN32
char buffer[MAX_PATH];
char buffer[1024];
if (GetEnvironmentVariableA("USERPROFILE", buffer, sizeof(buffer)))
path = join_paths(buffer, "." EXECUTABLE_TITLE, "presets", preset_basename);
#else
Expand Down

0 comments on commit 81e8a52

Please sign in to comment.