forked from cafeberry/cafeberry
LCEMP Commit: add dedicated server check to sessioninfo
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
#include "ServerCommandDispatcher.h"
|
||||
|
||||
#ifdef _DEDICATED_SERVER
|
||||
#include "..\Minecraft.Server\ServerCommands.h"
|
||||
#include "..\Minecraft.Server\Commands\ServerCommands.h"
|
||||
#endif
|
||||
|
||||
#include "..\Minecraft.World\BiomeSource.h"
|
||||
@@ -1006,12 +1006,16 @@ void MinecraftServer::stopServer(bool didInit)
|
||||
// 4J-PB - If the primary player has signed out, then don't attempt to save anything
|
||||
|
||||
// also need to check for a profile switch here - primary player signs out, and another player signs in before dismissing the dash
|
||||
#ifdef _DURANGO
|
||||
#ifdef _DEDICATED_SERVER
|
||||
{
|
||||
{
|
||||
#elif defined(_DURANGO)
|
||||
// On Durango check if the primary user is signed in OR mid-sign-out
|
||||
if(ProfileManager.GetUser(0, true) != nullptr)
|
||||
#else
|
||||
if((m_bPrimaryPlayerSignedOut==false) && ProfileManager.IsSignedIn(ProfileManager.GetPrimaryPad()))
|
||||
#endif
|
||||
#ifndef _DEDICATED_SERVER
|
||||
{
|
||||
#if defined(_XBOX_ONE) || defined(__ORBIS__)
|
||||
// Always save on exit! Except if saves are disabled.
|
||||
@@ -1020,6 +1024,7 @@ void MinecraftServer::stopServer(bool didInit)
|
||||
// if trial version or saving is disabled, then don't save anything. Also don't save anything if we didn't actually get through the server initialisation.
|
||||
if(m_saveOnExit && ProfileManager.IsFullVersion() && (!StorageManager.GetSaveDisabled()) && didInit)
|
||||
{
|
||||
#endif
|
||||
if (players != NULL)
|
||||
{
|
||||
players->saveAll(Minecraft::GetInstance()->progressRenderer, true);
|
||||
|
||||
Reference in New Issue
Block a user