mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 03:05:35 +08:00
added more debug for http
This commit is contained in:
parent
658bd82689
commit
08e70c79c0
@ -469,7 +469,7 @@ std::string Local_Storage::get_user_appdata_path()
|
||||
{
|
||||
std::string user_appdata_path("SAVE");
|
||||
#if defined(STEAM_WIN32)
|
||||
WCHAR szPath[MAX_PATH * 10] = {};
|
||||
WCHAR szPath[MAX_PATH] = {};
|
||||
|
||||
HRESULT hr = SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, szPath);
|
||||
|
||||
@ -521,6 +521,7 @@ static std::string sanitize_file_name(std::string name)
|
||||
name = replace_with(name, "*", ".ASTERISK.");
|
||||
name = replace_with(name, "\"", ".QUOTE.");
|
||||
name = replace_with(name, "?", ".Q_MARK.");
|
||||
name = replace_with(name, "%", ".PERCENT.");
|
||||
|
||||
return name;
|
||||
}
|
||||
@ -538,6 +539,7 @@ static std::string desanitize_file_name(std::string name)
|
||||
name = replace_with(name, ".ASTERISK.", "*");
|
||||
name = replace_with(name, ".QUOTE.", "\"");
|
||||
name = replace_with(name, ".Q_MARK.", "?");
|
||||
name = replace_with(name, ".PERCENT.", "%");
|
||||
|
||||
return name;
|
||||
}
|
||||
|
@ -222,8 +222,9 @@ void Steam_HTTP::online_http_request(Steam_Http_Request *request, SteamAPICall_t
|
||||
directory_path = ".";
|
||||
file_name = request->target_filepath;
|
||||
}
|
||||
PRINT_DEBUG("directory: '%s', filename '%s'", directory_path.c_str(), file_name.c_str());
|
||||
PRINT_DEBUG("directory: '%s', filename '%s', target_filepath '%s'", directory_path.c_str(), file_name.c_str(), request->target_filepath.c_str());
|
||||
Local_Storage::store_file_data(directory_path, file_name, (char *)"", sizeof(""));
|
||||
PRINT_DEBUG("Temp file created with empty data"); //TODO remove this
|
||||
|
||||
FILE *hfile = std::fopen(request->target_filepath.c_str(), "wb");
|
||||
if (!hfile) {
|
||||
|
Loading…
Reference in New Issue
Block a user