diff options
Diffstat (limited to 'tools/bookmaker/parserCommon.cpp')
-rw-r--r-- | tools/bookmaker/parserCommon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bookmaker/parserCommon.cpp b/tools/bookmaker/parserCommon.cpp index 2e9ad81e45..072c996df3 100644 --- a/tools/bookmaker/parserCommon.cpp +++ b/tools/bookmaker/parserCommon.cpp @@ -14,13 +14,13 @@ static void debug_out(int len, const char* data) { SkDebugf("%.*s", len, data); } -bool ParserCommon::parseFile(const char* fileOrPath, const char* suffix) { +bool ParserCommon::parseFile(const char* fileOrPath, const char* suffix, OneFile oneFile) { if (!sk_isdir(fileOrPath)) { if (!this->parseFromFile(fileOrPath)) { SkDebugf("failed to parse %s\n", fileOrPath); return false; } - } else { + } else if (OneFile::kNo == oneFile) { SkOSFile::Iter it(fileOrPath, suffix); for (SkString file; it.next(&file); ) { SkString p = SkOSPath::Join(fileOrPath, file.c_str()); |