aboutsummaryrefslogtreecommitdiff
path: root/libs/preview_nif/CMakePresets.json
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-12 17:54:45 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-12 17:54:45 -0500
commita0355c9b897281d0bfea48bec9d490724ecabd96 (patch)
tree42c56ea4f4829a6115f688956858ada3e59fd9ef /libs/preview_nif/CMakePresets.json
parentfa43a71f9d05b3673d42296a80decb2228d68f83 (diff)
Add NIF previewer plugin with Linux-specific fixes
Vendored from github.com/Parapets/mo2-preview_nif and adapted for Linux: - BSA texture resolution via MO2 virtual tree with case-insensitive fallback walk (Linux FS is case-sensitive; NIFs reference textures with arbitrary case against files on disk) - Process-wide cached BSA candidate list, keyed by profile path, priority-sorted, filtering disabled mods - Path backslash normalization before loose-file lookup - Polygon offset on SLSF1_Decal-flagged shapes to break z-ties with coincident base meshes (road decals, moss overlays) - Opaque framebuffer via glColorMask alpha lock so alpha-blended shapes can't bleed the dialog background through the preview area - QMouseEvent::globalPosition().toPoint() for Qt6 compatibility Preview dialog behavior (organizercore.cpp): - Switch previewFile and previewFileWithAlternatives from stack-allocated exec() to heap + ApplicationModal + show() + WA_DeleteOnClose. - Parent passed as nullptr so preview lifetime is decoupled from the stack-allocated ModInfoDialog that spawns it. Nested exec() inside the enclosing dialog's exec() was softlocking on close. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'libs/preview_nif/CMakePresets.json')
-rw-r--r--libs/preview_nif/CMakePresets.json72
1 files changed, 72 insertions, 0 deletions
diff --git a/libs/preview_nif/CMakePresets.json b/libs/preview_nif/CMakePresets.json
new file mode 100644
index 0000000..d00c664
--- /dev/null
+++ b/libs/preview_nif/CMakePresets.json
@@ -0,0 +1,72 @@
+{
+ "version": 3,
+ "configurePresets": [
+ {
+ "name": "windows-2022",
+ "generator": "Visual Studio 17 2022",
+ "binaryDir": "${sourceDir}/vsbuild",
+ "cacheVariables": {
+ "CMAKE_BUILD_TYPE": {
+ "type": "STRING",
+ "value": "Release"
+ },
+ "DEPENDENCIES_DIR": {
+ "type": "PATH",
+ "value": "${sourceDir}/../.."
+ },
+ "BOOST_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../boost_1_83_0"
+ },
+ "BOOST_LIBRARYDIR": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../boost_1_83_0/lib64-msvc-14.3/lib"
+ },
+ "FMT_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../fmt-8.1.1"
+ },
+ "SPDLOG_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../spdlog-v1.10.0"
+ },
+ "LOOT_PATH": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../libloot-0.22.1-win64"
+ },
+ "LZ4_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../lz4-v1.9.4"
+ },
+ "QT_ROOT": {
+ "type": "PATH",
+ "value": "C:/Qt/6.5.3/msvc2019_64"
+ },
+ "ZLIB_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../zlib-v1.3"
+ },
+ "PYTHON_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../python-3.11.5"
+ },
+ "SEVENZ_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../7zip-23.01"
+ },
+ "LIBBSARCH_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../libbsarch-0.0.9-release-x64"
+ },
+ "BOOST_DI_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../di"
+ },
+ "GTEST_ROOT": {
+ "type": "PATH",
+ "value": "${sourceDir}/../../googletest"
+ }
+ }
+ }
+ ]
+} \ No newline at end of file