mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,sdl] use new JSON config reader
This commit is contained in:
@@ -41,10 +41,7 @@ namespace fs = std::experimental::filesystem;
|
||||
SdlPref::WINPR_JSONPtr SdlPref::get()
|
||||
{
|
||||
auto config = get_pref_file();
|
||||
|
||||
std::ifstream ifs(config);
|
||||
std::string content((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>()));
|
||||
return { WINPR_JSON_ParseWithLength(content.c_str(), content.size()), WINPR_JSON_Delete };
|
||||
return { WINPR_JSON_ParseFromFile(config.c_str()), WINPR_JSON_Delete };
|
||||
}
|
||||
|
||||
WINPR_JSON* SdlPref::get_item(const std::string& key)
|
||||
|
||||
Reference in New Issue
Block a user