Flatten these envs into one. There's no reason to have four envs for retrieving filenames.
Add userdata to all libretro functions, and a couple of functions for managing the userdata.