-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Turn on more warnings. * Exclude externals from warnings. * Fix warnings in modParser * Fix warnings in commons * More mod parser fixes * More fixes in OS layer * Fixes for localization db * Parser helper fixes * Parser fixes * Converter version updates * ModLoader updates * ConverterVersion updates * GameVersion updates * Update a few 'find path' functions * Deprecate some more functions. * Add missing file to cmake, fix compile errors. * Add another function duplicate * Sort some headers * using statements * Another override * path -> u8path in overrides. * Review comment. * Include path fix. * Formatting. * Apply warnings stuff to MSVC project * Make zip external * Fix borken tests. * Linux updates * Disable warning on linux * More formatting. * Revert "Disable warning on linux" This reverts commit 93dcb52. * Disable a linux warning. * Fix last commit * Formatting * Try again. * Try again * Turn off unknown pragmas * Restore function. * Undo bad formatting. * Fix some tests on linux. * Fix another test. * UTF16ToUTF8() on linux * Reference instead of copy * Only set up coverage if this is a top-level project
- Loading branch information
Showing
51 changed files
with
1,619 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
#include "BulkParser.h" | ||
#include "CommonFunctions.h" | ||
|
||
void commonItems::bulkParser::ParseGameFile(const std::string& relative_path, const ModFilesystem& mod_fs) | ||
|
||
|
||
using std::filesystem::path; | ||
|
||
|
||
|
||
void commonItems::bulkParser::ParseGameFile(const path& relative_path, const ModFilesystem& mod_fs) | ||
{ | ||
if (const auto file_path = mod_fs.GetActualFileLocation(relative_path); file_path) | ||
parseFile(*file_path); | ||
} | ||
|
||
void commonItems::bulkParser::ParseGameFolder(const std::string& relative_path, | ||
const ModFilesystem& mod_fs, | ||
const std::set<std::string>& extensions, | ||
bool recursive) | ||
|
||
void commonItems::bulkParser::ParseGameFolder(const path& relative_path, const ModFilesystem& mod_fs, const std::set<path>& extensions, bool recursive) | ||
{ | ||
std::set<std::string> all_files; | ||
std::set<path> all_files; | ||
if (recursive) | ||
all_files = mod_fs.GetAllFilesInFolderRecursive(relative_path); | ||
else | ||
all_files = mod_fs.GetAllFilesInFolder(relative_path); | ||
|
||
for (const auto& file: all_files) | ||
if (extensions.contains(getExtension(file))) | ||
if (extensions.contains(file.extension())) | ||
parseFile(file); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.