@@ -224,11 +224,13 @@ def actionPatchSelected(self):
224224 def actionOptionsSelected (self ):
225225 winSettings = SettingsWindow (self .winMain , self .settings .hiResEnabled , self .settings .app ,
226226 self .settings .wineProg , self .settings .wineDebug , self .settings .patchClient ,
227- self .settings .winePrefix , self .settings .gameDir , self .valHomeDir , self .osType , self .rootDir )
227+ self .settings .winePrefix , self .settings .gameDir , self .valHomeDir , self .osType , self .rootDir ,
228+ self .settings .gameClientIdx )
228229
229230 self .hideWinMain ()
230231 if winSettings .Run () == QtGui .QDialog .Accepted :
231232 self .settings .hiResEnabled = winSettings .getHiRes ()
233+ self .settings .gameClientIdx = winSettings .getGameClientIdx ()
232234 self .settings .app = winSettings .getApp ()
233235 self .settings .patchClient = winSettings .getPatchClient ()
234236 self .settings .gameDir = winSettings .getGameDir ()
@@ -252,6 +254,7 @@ def actionWizardSelected(self):
252254 self .settings .usingDND = winWizard .getUsingDND ()
253255 self .settings .usingTest = winWizard .getUsingTest ()
254256 self .settings .hiResEnabled = winWizard .getHiRes ()
257+ self .settings .gameClientIdx = winSettings .getGameClientIdx ()
255258 self .settings .app = winWizard .getApp ()
256259 self .settings .wineProg = winWizard .getProg ()
257260 self .settings .wineDebug = winWizard .getDebug ()
@@ -387,7 +390,16 @@ def AuthAccount(self):
387390 self .AddLog (self .account .messError )
388391
389392 def LaunchGame (self ):
390- game = StartGame (self .winMain , self .worldQueueConfig .gameClientFilename ,
393+ gameClientIdx = int (self .settings .gameClientIdx )
394+
395+ if gameClientIdx == 0 :
396+ gameClientFilename = self .worldQueueConfig .gameClientFilename32
397+ elif gameClientIdx == 1 :
398+ gameClientFilename = self .worldQueueConfig .gameClientFilenameLegacy
399+ elif gameClientIdx == 2 :
400+ gameClientFilename = "x64/" + self .worldQueueConfig .gameClientFilename64
401+
402+ game = StartGame (self .winMain , gameClientFilename ,
391403 self .worldQueueConfig .gameClientArgTemplate , self .accNumber , self .urlLoginServer ,
392404 self .account .ticket , self .urlChatServer ,
393405 self .langConfig .langList [self .uiMain .cboLanguage .currentIndex ()].code ,
0 commit comments