Add try/catch when reading Steam VR manifest
This commit is contained in:
@@ -372,6 +372,7 @@ std::vector<wivrn::steam::application> wivrn::steam::list_applications()
|
||||
{
|
||||
std::vector<wivrn::steam::application> res;
|
||||
// Steam games, from VR manifest
|
||||
try
|
||||
{
|
||||
std::ifstream manifest(root / "config/steamapps.vrmanifest");
|
||||
nlohmann::json json = nlohmann::json::parse(manifest);
|
||||
@@ -418,6 +419,9 @@ std::vector<wivrn::steam::application> wivrn::steam::list_applications()
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
}
|
||||
|
||||
// Shortcuts
|
||||
if (default_userid)
|
||||
|
||||
Reference in New Issue
Block a user