Mercurial > minori
diff dep/animia/test/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 |
line wrap: on
line diff
--- a/dep/animia/test/main.cpp Fri Sep 29 15:52:31 2023 -0400 +++ b/dep/animia/test/main.cpp Sun Oct 01 06:16:06 2023 -0400 @@ -2,10 +2,14 @@ #include <iostream> int main() { - std::unordered_map<int, std::vector<std::string>> map = Animia::get_all_open_files(); - for (int i = 0; i < map.size(); i++) { - for (std::string s: map[i]) { - std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n"; + /* getting all open files */ + std::vector<int> pids = Animia::get_all_pids(); + for (int i: pids) { + if (Animia::get_process_name(i) == "mpc-hc64.exe") { + std::vector<std::string> files = Animia::filter_system_files(Animia::get_open_files(i)); + for (std::string s: files) { + std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n"; + } } } }