Database installer adjustments for Linux.
Thanks to L2Hanesfor.
This commit is contained in:
		@@ -17,6 +17,7 @@
 | 
			
		||||
package org.l2jmobius.tools.dbinstaller;
 | 
			
		||||
 | 
			
		||||
import java.awt.HeadlessException;
 | 
			
		||||
import java.io.File;
 | 
			
		||||
 | 
			
		||||
import javax.swing.UIManager;
 | 
			
		||||
 | 
			
		||||
@@ -31,8 +32,9 @@ public class LauncherGS extends AbstractDBLauncher
 | 
			
		||||
{
 | 
			
		||||
	public static void main(String[] args) throws Exception
 | 
			
		||||
	{
 | 
			
		||||
		final File file = new File(LauncherGS.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
 | 
			
		||||
		final String dir = file.getParent() + "/" + "sql/game/";
 | 
			
		||||
		final String defDatabase = "l2jmobiusclassic";
 | 
			
		||||
		final String dir = "sql/game/";
 | 
			
		||||
		
 | 
			
		||||
		if ((args != null) && (args.length > 0))
 | 
			
		||||
		{
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,7 @@
 | 
			
		||||
package org.l2jmobius.tools.dbinstaller;
 | 
			
		||||
 | 
			
		||||
import java.awt.HeadlessException;
 | 
			
		||||
import java.io.File;
 | 
			
		||||
 | 
			
		||||
import javax.swing.UIManager;
 | 
			
		||||
 | 
			
		||||
@@ -31,8 +32,9 @@ public class LauncherLS extends AbstractDBLauncher
 | 
			
		||||
{
 | 
			
		||||
	public static void main(String[] args) throws Exception
 | 
			
		||||
	{
 | 
			
		||||
		final File file = new File(LauncherLS.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
 | 
			
		||||
		final String dir = file.getParent() + "/" + "sql/login/";
 | 
			
		||||
		final String defDatabase = "l2jmobiusclassic";
 | 
			
		||||
		final String dir = "sql/login/";
 | 
			
		||||
		
 | 
			
		||||
		if ((args != null) && (args.length > 0))
 | 
			
		||||
		{
 | 
			
		||||
 
 | 
			
		||||
@@ -154,7 +154,7 @@ public class DBConfigGUI extends JFrame
 | 
			
		||||
				final DBInstallerGUI dbi = new DBInstallerGUI(connector.getConnection());
 | 
			
		||||
				setVisible(false);
 | 
			
		||||
				
 | 
			
		||||
				if (_dir.equals("sql/login/"))
 | 
			
		||||
				if (_dir.contains("sql/login/"))
 | 
			
		||||
				{
 | 
			
		||||
					final Object[] options =
 | 
			
		||||
					{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user