view dep/animia/test/main.cpp @ 56:6ff7aabeb9d7

deps: add animia for open files detection
author Paper <mrpapersonic@gmail.com>
date Thu, 28 Sep 2023 12:35:21 -0400
parents
children 4c6dd5999b39
line wrap: on
line source

#include "animia.h"
#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";
		}
	}
}