mirror of
https://github.com/ModOrganizer2/libbsarch.git
synced 2026-07-27 14:06:31 -07:00
833129004717a7b75a9960d9698fa324bbb0740c
BSArchive DLL and C++ bindings
BSArchive Dynamic Link Library and C++ bindings
How to build
- Create a
XEditPathenvironment variable and set it to the directory containing the XEdit code - Build the DLL in Delphi by opening the
libbsarch.dprojproject - Build the LIB in Visual Studio by opening the
libbsarch.slnproject
How to use
With CMake:
Use add_subdirectory and target_link_library
Then #include "libbsarch.h" for the C wrapper, or #include "bs_archive_auto" for the C++ wrapper.
See the example for code use.
Without CMake:
Use libbsarch.dll (provided in delphi/lib), libbsarch.lib and libbsarch.h in your project.
Credits
The original BSArchive can be found at: https://github.com/TES5Edit/TES5Edit/tree/dev/Tools/BSArchive The version in this project had been modified for better compatibility with C/C++ and allow the users to allocate their own memory in some cases.
Languages
Pascal
71.1%
C++
20.5%
CMake
4.3%
C
4.1%