From 2aba1fc4723e908fe75cbc261e71d6e313744c2b Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Tue, 15 Oct 2024 17:03:49 +0100 Subject: [addons] compare file open flags to addon enum instead of Kodi core's --- xbmc/addons/interfaces/Filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbmc/addons/interfaces/Filesystem.cpp b/xbmc/addons/interfaces/Filesystem.cpp index 9f22b67ecc..1056807056 100644 --- a/xbmc/addons/interfaces/Filesystem.cpp +++ b/xbmc/addons/interfaces/Filesystem.cpp @@ -151,7 +151,7 @@ unsigned int Interface_Filesystem::TranslateFileReadBitsToKodi(unsigned int addo kodiFlags |= READ_AUDIO_VIDEO; if (addonFlags & ADDON_READ_AFTER_WRITE) kodiFlags |= READ_AFTER_WRITE; - if (addonFlags & READ_REOPEN) + if (addonFlags & ADDON_READ_REOPEN) kodiFlags |= READ_REOPEN; return kodiFlags; -- cgit v1.2.3 From 553a17fd3738756f27a413543d31e59ff9ad0d4d Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Tue, 15 Oct 2024 16:42:00 +0100 Subject: [addons] add missing flag to filesystem translation from binary add-ons --- xbmc/addons/interfaces/Filesystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xbmc/addons/interfaces/Filesystem.cpp b/xbmc/addons/interfaces/Filesystem.cpp index 1056807056..eb35cb7b54 100644 --- a/xbmc/addons/interfaces/Filesystem.cpp +++ b/xbmc/addons/interfaces/Filesystem.cpp @@ -153,6 +153,9 @@ unsigned int Interface_Filesystem::TranslateFileReadBitsToKodi(unsigned int addo kodiFlags |= READ_AFTER_WRITE; if (addonFlags & ADDON_READ_REOPEN) kodiFlags |= READ_REOPEN; + //! @todo Add ADDON_READ_NO_BUFFER to filesystem.h in the binary addon devkit + if (addonFlags & READ_NO_BUFFER) + kodiFlags |= READ_NO_BUFFER; return kodiFlags; } -- cgit v1.2.3