Framework_4_0 preprocessor is necessary for legacy compatibility.

This commit is contained in:
mark 2012-01-03 00:36:52 +00:00
parent 12fe97babd
commit 558fcf495a
15 changed files with 755 additions and 46 deletions

View file

@ -31,10 +31,13 @@ namespace Server
{
int processorCount = Core.ProcessorCount;
//TODO: Upon realworld verification of DynamicSaveStrategy, change this method around.
if (processorCount > 16)
{
#if Framework_4_0
return new DynamicSaveStrategy();
#else
return new ParallelSaveStrategy(processorCount);
#endif
}
else
{