mupen64plus / mupen64plus-video-rice

Video plugin for the Mupen64Plus v2.0 project, using OpenGL. This plugin is based on the RiceVideoLinux plugin from earlier versions of Mupen64Plus.
31 stars 40 forks source link

Need a way to configure which directory hi-res textures are loaded from. #59

Open carlsmith opened 8 years ago

carlsmith commented 8 years ago

I tried setting SharedDataPath in [Core] to a directory that contained a copy of hires_texture, thinking that would work, but it didn't. I'm new to the project, but suggest adding config options under [Video-Rice] where we can set the paths for dumps and loads.

By the way, thanks for everyone's work on this project.

richard42 commented 8 years ago

I looked at the code to see how this is currently being handled, and Rice is hard-coded to use our User Data path for the root of the directory where it loads and stores the textures. It could be changed easily enough to add an option to configure this directory.

You can actually sort-of hack it yourself to select this directory with the existing code, due to our support of the "XDG" protocol. The first place that we look is based on an environment variable named "XDG_DATA_HOME". So if you set this to something like "/Users/MyUser" before you launch mupen64plus, then Rice will search for hires textures in "/Users/MyUser/mupen64plus/hires_texture/RomGameName" and it will dump them in "/Users/MyUser/mupen64plus/texture_dump/RomGameName".

Richard

On 10/18/2015 03:45 PM, Carl Smith wrote:

Having to edit files inside |~/.local| is a pain in the ass on OS X.

You can set Finder to show hidden files, but you still can't open them from within GIMP (the internal Open/Save dialogue doesn't show hidden files). There's no obvious way to export a PNG to a hidden directory either. Because GIMP uses it own file format, it kind of forgets where the original lives too.

I tried setting |SharedDataPath| in |[Core]| to a directory that contained a copy of |hires_textures|, thinking that would work, but it didn't. I'm new to the project, but suggest adding config options under |[Video-Rice]| where we can set the paths for dumps and loads.

By the way, thanks for everyone's work on this project. It's a badass emulator.

— Reply to this email directly or view it on GitHub https://github.com/mupen64plus/mupen64plus-video-rice/issues/59.