#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

51
Scripts/Misc/DataPath.cs Normal file
View 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() );
}
}
}
}