From 6668091131f2e2b0153512813297e22ada3c886c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 10 Nov 2023 17:21:46 -0500 Subject: [PATCH] Update libphysis, prevent more crashes with invalid game data --- external/libphysis | 2 +- launcher/src/profile.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/external/libphysis b/external/libphysis index 99105e9..5c4b513 160000 --- a/external/libphysis +++ b/external/libphysis @@ -1 +1 @@ -Subproject commit 99105e92caac2fd4eff70c5ca7fc81ebe4fac415 +Subproject commit 5c4b5132ee95e2a6cd529f64464580148bc4808d diff --git a/launcher/src/profile.cpp b/launcher/src/profile.cpp index 27b0963..32b7655 100644 --- a/launcher/src/profile.cpp +++ b/launcher/src/profile.cpp @@ -74,6 +74,10 @@ void Profile::readDalamudInfo() void Profile::readGameData() { + if (!physis_gamedata_exists(m_gameData, "exd/exversion.exh")) { + return; + } + auto header = physis_gamedata_extract_file(m_gameData, "exd/exversion.exh"); physis_EXH *exh = physis_parse_excel_sheet_header(header); if (exh != nullptr) {