mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
Fix build.
This commit is contained in:
parent
08af9aab51
commit
883dd91a89
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ void ExtractDir(Namco::CSys147NANDReader& reader, uint32 dirSector, fs::path& ou
|
||||||
printf("Extracting %s.\n", dirEntry.name);
|
printf("Extracting %s.\n", dirEntry.name);
|
||||||
auto fileContents = reader.ReadFile(absSector, dirEntry.size);
|
auto fileContents = reader.ReadFile(absSector, dirEntry.size);
|
||||||
auto outputFile = outputDir / dirEntry.name;
|
auto outputFile = outputDir / dirEntry.name;
|
||||||
auto outputStream = Framework::CreateOutputStdStream(entryOutputPath);
|
auto outputStream = Framework::CreateOutputStdStream(entryOutputPath.native());
|
||||||
outputStream.Write(fileContents.data(), fileContents.size());
|
outputStream.Write(fileContents.data(), fileContents.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ int main(int argc, char** argv)
|
||||||
auto nandPath = fs::path(argv[1]);
|
auto nandPath = fs::path(argv[1]);
|
||||||
int32 rootSector = strtol(argv[2], nullptr, 0);
|
int32 rootSector = strtol(argv[2], nullptr, 0);
|
||||||
auto outputDir = fs::path(argv[3]);
|
auto outputDir = fs::path(argv[3]);
|
||||||
auto inputStream = Framework::CreateInputStdStream(nandPath);
|
auto inputStream = Framework::CreateInputStdStream(nandPath.native());
|
||||||
Namco::CSys147NANDReader reader(inputStream, rootSector);
|
Namco::CSys147NANDReader reader(inputStream, rootSector);
|
||||||
ExtractDir(reader, 0, outputDir);
|
ExtractDir(reader, 0, outputDir);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue