view dep/animia/test/main.cpp @ 70:64e5f427c6a2

services/anilist: remove unordered_map usage for enum classes for some reason in C++11 unordered_maps don't work on enumerations. so instead we'll just use a switch statement :P
author Paper <mrpapersonic@gmail.com>
date Tue, 03 Oct 2023 04:45:05 -0400
parents 4c6dd5999b39
children
line wrap: on
line source

#include "animia.h"
#include <iostream>

int main() {
	/* 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";
			}
		}
	}
}