Mercurial > minori
diff dep/animia/src/main.cpp @ 62:4c6dd5999b39
*: update
1. updated animia
2. use widestrings for filesystem on Windows
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 06:16:06 -0400 |
parents | 6ff7aabeb9d7 |
children | 18979b066284 |
line wrap: on
line diff
--- a/dep/animia/src/main.cpp Fri Sep 29 15:52:31 2023 -0400 +++ b/dep/animia/src/main.cpp Sun Oct 01 06:16:06 2023 -0400 @@ -1,13 +1,12 @@ #include "bsd.h" #include "linux.h" #include "win32.h" -#include <vector> #include <string> #include <unordered_map> +#include <vector> #ifdef __linux__ # define ON_LINUX -#elif (defined(unix) || defined(__unix__) || defined(__unix) || \ - (defined(__APPLE__) && defined(__MACH__))) +#elif (defined(unix) || defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) # define ON_UNIX #elif defined(_WIN32) # define ON_WINDOWS @@ -51,6 +50,14 @@ #endif } +std::vector<std::string> filter_system_files(const std::vector<std::string>& source) { +#ifdef ON_WINDOWS + return Windows::filter_system_files(source); +#else + return source; +#endif +} + std::unordered_map<int, std::vector<std::string>> get_all_open_files() { #ifdef ON_UNIX return Unix::get_all_open_files(); @@ -63,4 +70,4 @@ #endif } -} +} // namespace Animia