mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-03-13 14:00:34 +03:00
steam_helper: create Config directory
This is checked by CEG.
This commit is contained in:
parent
bc54942ad0
commit
6fdc1b54bc
@ -1098,8 +1098,9 @@ static BOOL steam_protocol_handler(int argc, char *argv[])
|
||||
|
||||
static void setup_steam_files(void)
|
||||
{
|
||||
static const WCHAR libraryfolders_nameW[] = L"C:\\Program Files (x86)\\Steam\\steamapps\\libraryfolders.vdf";
|
||||
static const WCHAR config_pathW[] = L"C:\\Program Files (x86)\\Steam\\config";
|
||||
static const WCHAR steamapps_pathW[] = L"C:\\Program Files (x86)\\Steam\\steamapps";
|
||||
static const WCHAR libraryfolders_nameW[] = L"C:\\Program Files (x86)\\Steam\\steamapps\\libraryfolders.vdf";
|
||||
const char *steam_install_path = getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH");
|
||||
const char *steam_library_paths = getenv("STEAM_COMPAT_LIBRARY_PATHS");
|
||||
const char *start, *end, *next;
|
||||
@ -1107,6 +1108,12 @@ static void setup_steam_files(void)
|
||||
std::string contents;
|
||||
char idx_str[10];
|
||||
|
||||
if (!CreateDirectoryW(config_pathW, NULL) && GetLastError() != ERROR_ALREADY_EXISTS)
|
||||
{
|
||||
WINE_ERR("Failed to create config directory, GetLastError() %u.\n", GetLastError());
|
||||
return;
|
||||
}
|
||||
|
||||
if (!CreateDirectoryW(steamapps_pathW, NULL) && GetLastError() != ERROR_ALREADY_EXISTS)
|
||||
{
|
||||
WINE_ERR("Failed to create steamapps directory, GetLastError() %u.\n", GetLastError());
|
||||
|
Loading…
x
Reference in New Issue
Block a user