diff --git a/src/file_utils_win32.cpp b/src/file_utils_win32.cpp new file mode 100644 index 00000000..211ddd89 --- /dev/null +++ b/src/file_utils_win32.cpp @@ -0,0 +1,67 @@ +#include "file_utils.h" +#include "string_utils.h" +#include +#include +#include + +std::string read_line(const std::string& filename) +{ + std::string line; + std::ifstream file(filename); + std::getline(file, line); + return line; +} + +bool find_folder(const char* root, const char* prefix, std::string& dest) +{ + return false; +} + +bool find_folder(const std::string& root, const std::string& prefix, std::string& dest) +{ + return find_folder(root.c_str(), prefix.c_str(), dest); +} + +std::vector ls(const char* root, const char* prefix, LS_FLAGS flags) +{ + std::vector list; + return list; +} + +bool file_exists(const std::string& path) +{ + return false; +} + +bool dir_exists(const std::string& path) +{ + return false; +} + +std::string get_exe_path() +{ + return std::string(); +} + +bool get_wine_exe_name(std::string& name, bool keep_ext) +{ + return false; +} + +std::string get_home_dir() +{ + std::string path; + return path; +} + +std::string get_data_dir() +{ + std::string path; + return path; +} + +std::string get_config_dir() +{ + std::string path; + return path; +} diff --git a/src/meson.build b/src/meson.build index 1c9936a7..cbecba49 100644 --- a/src/meson.build +++ b/src/meson.build @@ -34,6 +34,7 @@ vklayer_files = files( opengl_files = [] if ['windows', 'mingw'].contains(host_machine.system()) vklayer_files += files( + 'file_utils_win32.cpp', 'win/main.cpp', 'win/kiero.cpp', 'win/d3d12_hook.cpp',