extractor: cleanup, support unicode properly, and add multi-game support (#1609)

* extractor: refactor and cleanup for multi-game support

* deps: switch to `ghc::filesystem` as it is utf-8 everywhere by default

* extractor: finally working with unicode

* unicode: fix unicode cli args on windows in all `main` functions
This commit is contained in:
Tyler Wilding
2022-07-05 20:38:13 -04:00
committed by GitHub
parent ac1e620161
commit 6446389263
70 changed files with 7010 additions and 765 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
#include "test_runner.h"
#include <filesystem>
#include <string>
#include "inja.hpp"
@@ -118,8 +117,8 @@ void runtime_with_kernel_no_debug_segment() {
}
void createDirIfAbsent(const std::string& path) {
if (!std::filesystem::is_directory(path) || !std::filesystem::exists(path)) {
std::filesystem::create_directory(path);
if (!fs::is_directory(path) || !fs::exists(path)) {
fs::create_directory(path);
}
}
std::string getTemplateDir(const std::string& category) {