made a module out of ResDir. I think it's cleaner

Signed-off-by: Lasconik <caillouxnicolas@gmail.com>