mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-19 19:29:15 +12:00
Move mod loading to server entry point
This commit is contained in:
parent
518018e54e
commit
412430ec76
3 changed files with 11 additions and 6 deletions
|
@ -7,6 +7,7 @@ using HISP.Game.Horse;
|
|||
using HISP.Game.Items;
|
||||
using HISP.Game.Services;
|
||||
using HISP.Game.SwfModules;
|
||||
using HISP.Modding;
|
||||
using HISP.Security;
|
||||
using HISP.Server;
|
||||
using HTTP;
|
||||
|
@ -74,6 +75,8 @@ namespace HISP.Noobs
|
|||
BaseDir = Path.Combine(Environment.GetEnvironmentVariable("APPDATA"), "HISP", "N00BS");
|
||||
Directory.CreateDirectory(BaseDir);
|
||||
|
||||
ModLoader.ReloadModsFromFilesystem();
|
||||
|
||||
// Start Web Server
|
||||
try
|
||||
{
|
||||
|
@ -110,6 +113,7 @@ namespace HISP.Noobs
|
|||
ConfigReader.CrossDomainPolicyFile = Path.Combine(BaseDir, "CrossDomainPolicy.xml");
|
||||
ConfigReader.DatabaseName = Path.Combine(BaseDir, "game1.db");
|
||||
|
||||
|
||||
IncrementProgress();
|
||||
Database.OpenDatabase();
|
||||
IncrementProgress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue