steam_helper: Catch JSON exceptions
This commit is contained in:
parent
432cb93797
commit
ee8e065367
1 changed files with 10 additions and 1 deletions
|
@ -397,7 +397,16 @@ static bool convert_linux_vrpaths(void)
|
||||||
|
|
||||||
static void setup_vrpaths(void)
|
static void setup_vrpaths(void)
|
||||||
{
|
{
|
||||||
if(!convert_linux_vrpaths())
|
bool success = false;
|
||||||
|
|
||||||
|
try{
|
||||||
|
success = convert_linux_vrpaths();
|
||||||
|
}catch(std::exception e){
|
||||||
|
WINE_ERR("got error parsing vrpaths file\n");
|
||||||
|
success = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!success)
|
||||||
{
|
{
|
||||||
/* delete the windows file only if the linux conversion fails */
|
/* delete the windows file only if the linux conversion fails */
|
||||||
WCHAR windows_vrpaths[MAX_PATH];
|
WCHAR windows_vrpaths[MAX_PATH];
|
||||||
|
|
Loading…
Reference in a new issue