From d8eb918ceada0de19d2a4c1d9194df7d1e899f4f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 4 Nov 2024 13:47:55 +0300 Subject: [PATCH] filesystem: rename IVFileSystem009 to IFileSystem to avoid UBsan errors when debugging a mod that calls this interface using original headers --- filesystem/VFileSystem009.cpp | 2 +- filesystem/VFileSystem009.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/VFileSystem009.cpp b/filesystem/VFileSystem009.cpp index c8ecf525..a2e37e35 100644 --- a/filesystem/VFileSystem009.cpp +++ b/filesystem/VFileSystem009.cpp @@ -81,7 +81,7 @@ static inline void CopyAndFixSlashes( char *p, const char *in, size_t size ) COM_FixSlashes( p ); } -class CXashFS : public IVFileSystem009 +class CXashFS : public IFileSystem { private: class CSearchState diff --git a/filesystem/VFileSystem009.h b/filesystem/VFileSystem009.h index f42f2fb7..f8e0dab5 100644 --- a/filesystem/VFileSystem009.h +++ b/filesystem/VFileSystem009.h @@ -40,7 +40,7 @@ public: virtual ~IBaseInterface() {} }; -class IVFileSystem009 : public IBaseInterface { +class IFileSystem : public IBaseInterface { public: virtual void Mount() = 0; /* linkage=_ZN11IFileSystem5MountEv */