change define name

This commit is contained in:
NOTPIES 2026-03-08 22:19:39 -03:00
parent 6e2afbde93
commit 09000cc4a1
7 changed files with 14 additions and 14 deletions

View file

@ -242,7 +242,7 @@ void CMinecraftApp::DebugPrintf(const char *szFormat, ...)
vsnprintf(buf, sizeof(buf), szFormat, ap);
va_end(ap);
OutputDebugStringA(buf);
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
bool hasContent = false;
for (const char *p = buf; *p; p++) {
if (*p != ' ' && *p != '\t' && *p != '\n' && *p != '\r' && *p != '=') {
@ -324,7 +324,7 @@ LPCWSTR CMinecraftApp::GetString(int iID)
{
//return L"Değişiklikler ve Yenilikler";
//return L"ÕÕÕÕÖÖÖÖ";
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
if (!app.m_stringTable) return L"";
#endif
return app.m_stringTable->getString(iID);

View file

@ -790,7 +790,7 @@ int CGameNetworkManager::JoinFromInvite_SignInReturned(void *pParam,bool bContin
void CGameNetworkManager::UpdateAndSetGameSessionData(INetworkPlayer *pNetworkPlayerLeaving)
{
#ifndef _DEDICATED_SERVER
#ifndef WITH_SERVER_CODE
Minecraft *pMinecraft = Minecraft::GetInstance();
TexturePack *tPack = pMinecraft->skins->getSelected();
s_pPlatformNetworkManager->SetSessionTexturePackParentId( tPack->getDLCParentPackId() );

View file

@ -5046,7 +5046,7 @@ void Minecraft::handleClientTextureReceived(const wstring &textureName)
unsigned int Minecraft::getCurrentTexturePackId()
{
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
return 0;
#else
return skins->getSelected()->getId();
@ -5055,7 +5055,7 @@ unsigned int Minecraft::getCurrentTexturePackId()
ColourTable *Minecraft::getColourTable()
{
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
return NULL;
#else
TexturePack *selected = skins->getSelected();

View file

@ -50,7 +50,7 @@
#include "PS3\PS3Extras\ShutdownManager.h"
#include "ServerCommandDispatcher.h"
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
#include "..\Minecraft.Server\ServerCommands.h"
#endif
@ -275,7 +275,7 @@ bool MinecraftServer::initServer(__int64 seed, NetworkGameInitData *initData, DW
g_NetworkManager.ServerReady(); // 4J added
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
{
extern QNET_STATE _iQNetStubState;
_iQNetStubState = QNET_STATE_GAME_PLAY;
@ -1087,7 +1087,7 @@ void MinecraftServer::run(__int64 seed, void *lpParameter)
}
}
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
{
__int64 doneTime = System::currentTimeMillis();
app.DebugPrintf("Done! For help, type \"help\" or \"?\"");
@ -1546,7 +1546,7 @@ void MinecraftServer::tick()
}
Entity::tickExtraWandering(); // 4J added
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
g_NetworkManager.DoWork();
WinsockNetLayer::FlushPendingData();
#endif
@ -1584,7 +1584,7 @@ void MinecraftServer::handleConsoleInputs()
AUTO_VAR(it, consoleInput.begin());
ConsoleInput *input = *it;
consoleInput.erase(it);
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
HandleServerCommand(input->msg, input->source, this);
delete input;
#else

View file

@ -130,14 +130,14 @@ void PlayerConnection::disconnect(DisconnectPacket::eDisconnectReason reason)
if(getWasKicked())
{
server->getPlayers()->broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(player->name, ChatPacket::e_ChatPlayerKickedFromGame) ) );
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
app.DebugPrintf("%ls was kicked from the game", player->name.c_str());
#endif
}
else
{
server->getPlayers()->broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(player->name, ChatPacket::e_ChatPlayerLeftGame) ) );
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
app.DebugPrintf("%ls left the game", player->name.c_str());
#endif
}

View file

@ -236,7 +236,7 @@ void PlayerList::placeNewPlayer(Connection *connection, shared_ptr<ServerPlayer>
//server->players->broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(L"<22>e" + playerEntity->name + L" joined the game.") ) );
broadcastAll( shared_ptr<ChatPacket>( new ChatPacket(player->name, ChatPacket::e_ChatPlayerJoinedGame) ) );
#ifdef _DEDICATED_SERVER
#ifdef WITH_SERVER_CODE
app.DebugPrintf("%ls joined the game", player->name.c_str());
#endif

View file

@ -922,7 +922,7 @@ void ServerLevel::saveToDisc(ProgressListener *progressListener, bool autosave)
// 4J-PB - check that saves are enabled
if(StorageManager.GetSaveDisabled()) return;
#ifndef _DEDICATED_SERVER
#ifndef WITH_SERVER_CODE
// Check if we are using a trial version of a texture pack (which will be the case for going into the mash-up pack world with a trial version)
if(!Minecraft::GetInstance()->skins->isUsingDefaultSkin())
{