From 40390b568d97fca3ec135d9c9c8beb3dae49af32 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Sun, 11 Sep 2022 23:41:29 +0200 Subject: [PATCH] Add extra log msg if shortcuts.vdf doesn't exist --- GlosSIConfig/UIModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GlosSIConfig/UIModel.cpp b/GlosSIConfig/UIModel.cpp index 212bb4c..bda74a0 100644 --- a/GlosSIConfig/UIModel.cpp +++ b/GlosSIConfig/UIModel.cpp @@ -424,6 +424,11 @@ bool UIModel::foundSteam() const void UIModel::parseShortcutVDF() { const std::filesystem::path config_path = std::wstring(getSteamPath()) + user_data_path_.toStdWString() + getSteamUserId() + shortcutsfile_.toStdWString(); + if (!std::filesystem::exists(config_path)) { + qDebug() << "Shortcuts file does not exist."; + return; + } + try { shortcuts_vdf_ = VDFParser::Parser::parseShortcuts(config_path, qDebug()); }