Skip to content

Commit

Permalink
Convert directory to string
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Feb 13, 2025
1 parent ba4e73d commit 481ba2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ int main(int argc, char **argv) {
std::cout << json << std::endl;
if (json["directories"] != nullptr) {
for (const auto& directory : json["directories"]) {
if (std::ifstream file(directory); !file.good()) {
std::cerr << "Unable to find direcotry " << directory << std::endl;
if (std::ifstream file(directory.get<std::string>()); !file.good()) {
std::cerr << "Unable to find directory " << directory << std::endl;
continue;
}
romDirectories.emplace_back(directory.get<std::string>());
Expand Down

0 comments on commit 481ba2e

Please sign in to comment.