summaryrefslogtreecommitdiff
path: root/Sources.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2019-05-19 17:29:26 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2019-05-19 17:29:26 -0700
commit0a49c9d7028bea50d6d73f313c286f608a84b71b (patch)
treecf64f1833040ff6a31084be5c67fd31d1e172bda /Sources.h
parent5735c325ca335a79f28d2e20b77629c6e1f0f080 (diff)
Remove all broken hardcoded usage of Cache folder.
Diffstat (limited to 'Sources.h')
-rw-r--r--Sources.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Sources.h b/Sources.h
index 2defaf6..c3de58a 100644
--- a/Sources.h
+++ b/Sources.h
@@ -28,6 +28,9 @@ void CydiaWriteSources();
void CydiaAddSource(NSDictionary *source);
void CydiaAddSource(NSString *href, NSString *distribution, NSArray *sections = nil);
-#define SOURCES_LIST "/var/mobile/Library/Caches/com.saurik.Cydia/sources.list"
+extern NSString *Cache_;
+NSString *Cache(const char *file);
+
+#define SOURCES_LIST Cache("sources.list")
#endif//Sources_H