Make NativeImage work with asar archive
This commit is contained in:
parent
98a7f08be2
commit
3678f13dfb
3 changed files with 28 additions and 2 deletions
|
@ -23,6 +23,9 @@ bool GetAsarArchivePath(const base::FilePath& full_path,
|
|||
base::FilePath* asar_path,
|
||||
base::FilePath* relative_path);
|
||||
|
||||
// Same with base::ReadFileToString but supports asar Archive.
|
||||
bool ReadFileToString(const base::FilePath& path, std::string* contents);
|
||||
|
||||
} // namespace asar
|
||||
|
||||
#endif // ATOM_COMMON_ASAR_ASAR_UTIL_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue