#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
51
Scripts/Misc/DataPath.cs
Normal file
51
Scripts/Misc/DataPath.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.Win32;
|
||||
using Server;
|
||||
|
||||
namespace Server.Misc
|
||||
{
|
||||
public class DataPath
|
||||
{
|
||||
private static string CustomPath = "Data/Files";
|
||||
|
||||
/* The following is a list of files which a required for proper execution:
|
||||
Cliloc.enu
|
||||
map0.mul
|
||||
map1.mul
|
||||
map2.mul
|
||||
map3.mul
|
||||
map4.mul
|
||||
map5.mul
|
||||
multi.idx
|
||||
multi.mul
|
||||
staidx0.mul
|
||||
staidx1.mul
|
||||
staidx2.mul
|
||||
staidx3.mul
|
||||
staidx4.mul
|
||||
staidx5.mul
|
||||
statics0.mul
|
||||
statics1.mul
|
||||
statics2.mul
|
||||
statics3.mul
|
||||
statics4.mul
|
||||
statics5.mul
|
||||
tiledata.mul
|
||||
*/
|
||||
|
||||
public static void Configure()
|
||||
{
|
||||
if ( CustomPath != null )
|
||||
Core.DataDirectories.Add( CustomPath );
|
||||
|
||||
if ( Core.DataDirectories.Count == 0 && !Core.Service )
|
||||
{
|
||||
Console.WriteLine( "Enter the map files directory:" );
|
||||
Console.Write( "> " );
|
||||
|
||||
Core.DataDirectories.Add( Console.ReadLine() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue