File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,17 @@ string BinaryNinja::GetUserDirectory(void)
95
95
}
96
96
97
97
98
+ string BinaryNinja::GetSystemCacheDirectory ()
99
+ {
100
+ char * dir = BNGetSystemCacheDirectory ();
101
+ if (!dir)
102
+ return string ();
103
+ std::string result (dir);
104
+ BNFreeString (dir);
105
+ return result;
106
+ }
107
+
108
+
98
109
string BinaryNinja::GetSettingsFileName ()
99
110
{
100
111
char * dir = BNGetSettingsFileName ();
Original file line number Diff line number Diff line change @@ -1241,6 +1241,8 @@ namespace BinaryNinja {
1241
1241
void SetBundledPluginDirectory(const std::string& path);
1242
1242
std::string GetUserDirectory();
1243
1243
1244
+ std::string GetSystemCacheDirectory();
1245
+
1244
1246
std::string GetSettingsFileName();
1245
1247
std::string GetRepositoriesDirectory();
1246
1248
std::string GetInstallDirectory();
Original file line number Diff line number Diff line change @@ -7512,6 +7512,7 @@ extern "C"
7512
7512
BINARYNINJACOREAPI char ** BNGetFilePathsInDirectory (const char * path, size_t * count);
7513
7513
BINARYNINJACOREAPI char * BNAppendPath (const char * path, const char * part);
7514
7514
BINARYNINJACOREAPI void BNFreePath (char * path);
7515
+ BINARYNINJACOREAPI char * BNGetSystemCacheDirectory ();
7515
7516
7516
7517
// Settings APIs
7517
7518
BINARYNINJACOREAPI BNSettings* BNCreateSettings (const char * schemaId);
You can’t perform that action at this time.
0 commit comments