Add exists_in_package script function (#86)

* add exists_in_package script function

* Update index.txt
This commit is contained in:
GenevensiS
2024-09-27 04:03:27 +02:00
committed by GitHub
parent d0522f6a09
commit e72ee85525
8 changed files with 80 additions and 5 deletions
+7 -1
View File
@@ -132,10 +132,16 @@ public:
// --------------------------------------------------- : Managing the inside of the package
/// Check if a file is in the package.
bool existsIn(const String& file);
inline bool existsIn(const LocalFileName& file) {
return existsIn(file.fn);
}
/// Open an input stream for a file in the package.
unique_ptr<wxInputStream> openIn(const String& file);
inline unique_ptr<wxInputStream> openIn(const LocalFileName& file) {
return openIn(file.fn);
return openIn(file.fn);
}
/// Open an output stream for a file in the package.