Add a convenience helper to load a file oneshot.

This commit is contained in:
Unknown W. Brackets committed 2013-12-08 11:05:36 -08:00
1 parent 93d501518a
commit 18bcf63ee9
2 files changed
+20

No files matched your search

+3
View File
@@ -105,6 +105,9 @@ public:
// TODO: void IoCtl(...)
// Convenience helper - returns < 0 on failure.
u32 ReadEntireFile(const std::string &filename, std::string &data);
void SetStartingDirectory(const std::string &dir) {
lock_guard guard(lock);
startingDirectory = dir;