Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Eikum <aeikum@codeweavers.com>2020-05-19 15:48:58 +0300
committerAndrew Eikum <aeikum@codeweavers.com>2020-06-10 15:43:32 +0300
commitee8e0653676568eb3b3c2a973a3b1723d094f537 (patch)
treeb8901f26fe81fbd56b05b9f357c2ab3cf1a24c72
parent432cb93797f08de1215419fa57c8679fc8099048 (diff)
steam_helper: Catch JSON exceptions
-rw-r--r--steam_helper/steam.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/steam_helper/steam.cpp b/steam_helper/steam.cpp
index bc0d8afb..b168618c 100644
--- a/steam_helper/steam.cpp
+++ b/steam_helper/steam.cpp
@@ -397,7 +397,16 @@ static bool convert_linux_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 */
WCHAR windows_vrpaths[MAX_PATH];