• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 238 239 240 241 242 ... 321 Next »

Auto-load profile/switch in-game [solved-ish]
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Auto-load profile/switch in-game [solved-ish]
12-30-2012, 05:40 AM (This post was last modified: 12-30-2012, 05:57 AM by chinagreenelvis.)
#5
chinagreenelvis Offline
Junior Member
**
Posts: 27
Threads: 6
Joined: Aug 2011
I found a workaround - a rather complex one - in which you have to create duplicates of your SYSCONF and Dolphin.ini files and name the duplicates for the files you're trying to load. Then you run a batch file and pass an argument to it which temporarily renames your defaults, renames the custom settings to the defaults, loads Dolphin with the file you choose from a preset directory, and then renames them all back after the program closes. Put the batch folder in your main directory.

Code:
rename "User\Config\Dolphin.ini" "Dolphin.DEFAULT.ini"
rename "User\Config\Dolphin.%~1.ini" "Dolphin.ini"
rename "User\Wii\shared2\sys\SYSCONF" "SYSCONF.DEFAULT"
rename "User\Wii\shared2\sys\%~1.SYSCONF" "SYSCONF"
Dolphin.exe /e "C:\PATH\TO\ROMS\%~1"
rename "User\Config\Dolphin.ini" "Dolphin.%~1.ini"
rename "User\Config\Dolphin.DEFAULT.ini" "Dolphin.ini"
rename "User\Wii\shared2\sys\SYSCONF" "%~1.SYSCONF"
rename "User\Wii\shared2\sys\SYSCONF.DEFAULT" "SYSCONF"

So, if you're loading "C:\PATH\TO\ROMS\007GoldenEye.iso", you create the two following files:

User\Config\Dolphin.007Goldeneye.iso.ini
User\Wii\shared2\sys\007Goldeneye.iso.SYSCONF


Then, you'd run the command (or create a shortcut with the command):

Dolphin.bat "007GoldenEye.iso"

You'd have to exit out of the game and set your settings the way you want them for that game (or change the settings before you make the duplicate files), and the next time you run it from the batch file, those settings will be automatically loaded.

And, if you don't like batch windows, you can create an additional .vbs which loads the .bat in a windowless environment.

Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "Dolphin.bat" & Chr(34) & Chr(34) & WScript.Arguments(0) & Chr(34), 0
Set WshShell = Nothing

Instead, you run:

Dolphin.vbs "007Goldeneye.iso"

Make sure to use the quotes, just in case you have files with spaces in the names. The only real drawback is having to make the duplicate settings files for every game, and if you suddenly lose power in the middle of a game, you'll have to manually rename them back since the batch file won't have the chance. But if Dolphin were to suddenly crash, they should still be fine since the batch file would continue to run.

Also, you'll have to create more than one set of batch/vbs files if you keep your games in different directories.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Auto-load profile/switch in-game [solved-ish] - chinagreenelvis - 12-28-2012, 12:23 PM
RE: Auto-load profile/switch in-game - ExtremeDude2 - 12-28-2012, 12:34 PM
RE: Auto-load profile/switch in-game - chinagreenelvis - 12-28-2012, 12:38 PM
RE: Auto-load profile/switch in-game - RachelB - 12-30-2012, 12:56 AM
RE: Auto-load profile/switch in-game - chinagreenelvis - 12-30-2012, 05:40 AM
RE: Auto-load profile/switch in-game [solved-ish] - RachelB - 01-09-2013, 10:24 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode