From 7b255f53293b935177371f0dc2b082b98482ce3c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 10 Feb 2025 09:33:14 +0000 Subject: [PATCH] Update libloadorder to 18.2.2 --- CMakeLists.txt | 4 ++-- src/tests/api/internals/game/game_test.h | 5 +++++ src/tests/api/internals/game/load_order_handler_test.h | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4babaa40..df7e9d89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,8 +107,8 @@ else() endif() if(NOT DEFINED LIBLOADORDER_URL) - set(LIBLOADORDER_URL "https://github.com/Ortham/libloadorder/archive/refs/tags/18.2.1.tar.gz") - set(LIBLOADORDER_HASH "SHA256=b453e28493aef9bdc7578ca3aa19c390cab44e6e411a44df879de7e617177066") + set(LIBLOADORDER_URL "https://github.com/Ortham/libloadorder/archive/refs/tags/18.2.2.tar.gz") + set(LIBLOADORDER_HASH "SHA256=5e4c12e91180abbf201be70b3073fce791bdee2d70f33f89b35942446d3b5782") endif() ExternalProject_Add(libloadorder diff --git a/src/tests/api/internals/game/game_test.h b/src/tests/api/internals/game/game_test.h index a6b822af..7de7fb6f 100644 --- a/src/tests/api/internals/game/game_test.h +++ b/src/tests/api/internals/game/game_test.h @@ -93,6 +93,11 @@ TEST_P( if (GetParam() == GameType::fo4) { // Create the file that indicates it's a Microsoft Store install. touch(gamePath / "appxmanifest.xml"); + } else if (GetParam() == GameType::openmw) { + std::ofstream out(gamePath / "openmw.cfg"); + out << "data-local=\"" << (localPath / "data").u8string() << "\"" + << std::endl + << "config=\"" << localPath.u8string() << "\""; } Game game = Game(GetParam(), gamePath, localPath); diff --git a/src/tests/api/internals/game/load_order_handler_test.h b/src/tests/api/internals/game/load_order_handler_test.h index 5e7e18e3..0e80f185 100644 --- a/src/tests/api/internals/game/load_order_handler_test.h +++ b/src/tests/api/internals/game/load_order_handler_test.h @@ -233,6 +233,11 @@ TEST_P(LoadOrderHandlerTest, getAdditionalDataPathsShouldReturnValidData) { if (GetParam() == GameType::fo4) { // Create the file that indicates it's a Microsoft Store install. touch(gamePath / "appxmanifest.xml"); + } else if (GetParam() == GameType::openmw) { + std::ofstream out(gamePath / "openmw.cfg"); + out << "data-local=\"" << (localPath / "data").u8string() << "\"" + << std::endl + << "config=\"" << localPath.u8string() << "\""; } auto loadOrderHandler = createHandler();