Ebenblues has made a lot of progress on the gui/nogui merge, and as part of this work he is adding the functionality which will allow Mupen64 to be installed in a normal way with binary distributions.
Just wanted to start a new thread to discuss what multi-user support entails. My understanding is we want to add support for multi-user config (~/.mupen64 directory) and support for a 'make install' target in the Makefile.
Regarding the ~/.mupen64. Here are my initial thoughts:
- When mupen64 first starts, if a dir called .mupen64 exists in the user's home directory, and Userdir=0 is not set in the config file, set the working directory to that dir and print an info message informing the user of this (will appear in the statusbar in gui or console in NOGUI_ONLY version).
- If ~/.mupen64 doesn't exist and Userdir=0 is not set in the config file, ask the user if they want to create it. in GUI mode, this will be a confirmation dialog box that pops up. The dialog will have a "don't ask me again" checkbox which, if checked and the user selects no, will set "Userdir=0" in the config file.
- If the user chooses yes, create the .mupen64 dir and copy all default config files from the install dir (see below) to ~/.mupen64. symlink plugins, language files, and icons from install dir.
As for the 'make install' option, honestly, my first thought is why aren't we using autoconf? I could picture all of the options we're passing to make today as options to ./configure, then make && make install would install everything. This would make it very distro-friendly.
Let me know what you think.