mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-12-18 22:12:21 +00:00
Change Directory Iterator To Be Recursive (#11)
* Fix Directory Being Opened As File Fixed a bug where the directory would be opened as a file. Add a check to avoid this. * Add Recursive File Listing Changed the iterator to use recursive directory iterator
This commit is contained in:
parent
6fd80818d4
commit
db602accf4
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ int main(int argc, char** argv)
|
||||||
std::vector<std::unique_ptr<uint8_t[]>> files;
|
std::vector<std::unique_ptr<uint8_t[]>> files;
|
||||||
std::map<XXH64_hash_t, RecompiledShader> shaders;
|
std::map<XXH64_hash_t, RecompiledShader> shaders;
|
||||||
|
|
||||||
for (auto& file : std::filesystem::directory_iterator(input))
|
for (auto& file : std::filesystem::recursive_directory_iterator(input))
|
||||||
{
|
{
|
||||||
if (std::filesystem::is_directory(file))
|
if (std::filesystem::is_directory(file))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue