summaryrefslogtreecommitdiff
path: root/typelibrary.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2024-07-25 21:34:55 -0400
committerkat <kat@vector35.com>2024-07-26 01:36:37 -0400
commit85c04eac52abe3aa0c54cd079bf87e64a60b62bd (patch)
treea19146f692a4ebd206b51a0343d903e48d9c3cc9 /typelibrary.cpp
parent326cb30bfa0d8a4bc2e37d56b20b95624e85f3d8 (diff)
Properly check for/log failures and return status on Typelib.write_to_file
Diffstat (limited to 'typelibrary.cpp')
-rw-r--r--typelibrary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/typelibrary.cpp b/typelibrary.cpp
index b3c1293b..a56c6db3 100644
--- a/typelibrary.cpp
+++ b/typelibrary.cpp
@@ -38,9 +38,9 @@ Ref<TypeLibrary> TypeLibrary::LookupByGuid(Ref<Architecture> arch, const std::st
}
-void TypeLibrary::WriteToFile(const std::string& path)
+bool TypeLibrary::WriteToFile(const std::string& path)
{
- BNWriteTypeLibraryToFile(m_object, path.c_str());
+ return BNWriteTypeLibraryToFile(m_object, path.c_str());
}