From 2f3efb9100f51833f12f244e993155b85fa59621 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Sun, 8 Mar 2026 01:25:22 -0600 Subject: Remove FUSE passthrough (CAP_SYS_ADMIN incompatible with AppImage), remove bsplugins, fix bsatk types - Remove FUSE passthrough code: requesting FUSE_CAP_PASSTHROUGH without CAP_SYS_ADMIN caused session cleanup crash on shutdown - Remove bsplugins library (unneeded port) - Fix bsatk: use uint32_t instead of unsigned long for BSAULong (LP64 compat) Co-Authored-By: Claude Opus 4.6 --- libs/bsatk/src/bsaarchive.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/bsatk/src/bsaarchive.cpp') diff --git a/libs/bsatk/src/bsaarchive.cpp b/libs/bsatk/src/bsaarchive.cpp index 4ae94a6..172a0b2 100644 --- a/libs/bsatk/src/bsaarchive.cpp +++ b/libs/bsatk/src/bsaarchive.cpp @@ -282,7 +282,7 @@ EErrorCode Archive::read(const char* fileName, bool testHashes) // flat list of folders as they were stored in the archive std::vector folders; - for (unsigned long i = 0; i < header.folderCount; ++i) { + for (BSAUInt i = 0; i < header.folderCount; ++i) { folders.push_back(m_RootFolder->addFolder(m_File, header.fileNameLength, header.offset, header.type)); } @@ -619,7 +619,7 @@ void Archive::getDX10Header(DirectX::DDS_HEADER_DXT10& DX10Header, File::Ptr fil DX10Header.miscFlags2 = 0; } -static const unsigned long CHUNK_SIZE = 128 * 1024; +static const BSAULong CHUNK_SIZE = 128 * 1024; EErrorCode Archive::extractDirect(File::Ptr file, std::ofstream& outFile) const { @@ -683,7 +683,7 @@ EErrorCode Archive::extractDirect(File::Ptr file, std::ofstream& outFile) const std::unique_ptr inBuffer(new char[CHUNK_SIZE]); try { - unsigned long sizeLeft = file->m_FileSize; + BSAULong sizeLeft = file->m_FileSize; while (sizeLeft > 0) { int chunkSize = (std::min)(sizeLeft, CHUNK_SIZE); -- cgit v1.3.1