RunUO 2.4 will be the latest release supporting the 2.0 .NET Framework.

Framework_4_0 preprocessors have been removed. ScriptCompiler will set Framework_4_0 as legacy.
This commit is contained in:
Mark Sturgill 2013-10-30 11:28:34 -07:00
parent 951f8b7d01
commit e67faba4d8
20 changed files with 43 additions and 623 deletions

View file

@ -18,7 +18,6 @@
*
***************************************************************************/
#if Framework_4_0
using System;
using System.Collections.Generic;
@ -158,8 +157,6 @@ namespace Server
return commitTask;
}
private Task SaveMobiles()
{
//Start the blocking consumer; this runs in background.
@ -313,5 +310,4 @@ namespace Server
}
}
}
#endif
}

View file

@ -31,17 +31,10 @@ namespace Server
{
int processorCount = Core.ProcessorCount;
#if Framework_4_0
if (processorCount > 2)
{
return new DualSaveStrategy(); // return new DynamicSaveStrategy();
return new DualSaveStrategy(); // return new DynamicSaveStrategy(); (4.0 or return new ParallelSaveStrategy(processorCount); (2.0)
}
#else
if (processorCount > 16)
{
return new DualSaveStrategy(); // return new ParallelSaveStrategy(processorCount);
}
#endif
else
{
return new DualSaveStrategy();