mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Merge remote-tracking branch 'origin/master' into plString
Conflicts: Sources/Plasma/CoreLib/hsStream.h Sources/Plasma/FeatureLib/pfAudio/plListener.cpp Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp Sources/Plasma/FeatureLib/pfConsole/pfDispatchLog.cpp Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp Sources/Plasma/FeatureLib/pfPython/cyMisc.h Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.cpp Sources/Plasma/FeatureLib/pfPython/plPythonFileMod.h Sources/Plasma/FeatureLib/pfPython/pyImage.cpp Sources/Plasma/FeatureLib/pfPython/pyJournalBook.cpp Sources/Plasma/FeatureLib/pfPython/pyNetServerSessionInfo.h Sources/Plasma/NucleusLib/pnKeyedObject/plFixedKey.cpp Sources/Plasma/NucleusLib/pnKeyedObject/plKeyImp.cpp Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.cpp Sources/Plasma/NucleusLib/pnKeyedObject/plUoid.h Sources/Plasma/NucleusLib/pnMessage/plMessage.h Sources/Plasma/NucleusLib/pnNetCommon/plNetApp.h Sources/Plasma/PubUtilLib/plAvatar/plCoopCoordinator.cpp Sources/Plasma/PubUtilLib/plDrawable/plDrawableSpansExport.cpp Sources/Plasma/PubUtilLib/plDrawable/plDynaDecalMgr.cpp Sources/Plasma/PubUtilLib/plDrawable/plWaveSet7.cpp Sources/Plasma/PubUtilLib/plInputCore/plInputDevice.h Sources/Plasma/PubUtilLib/plNetClient/plNetClientMgr.h Sources/Plasma/PubUtilLib/plNetCommon/plClientGuid.h Sources/Plasma/PubUtilLib/plNetMessage/plNetMessage.cpp Sources/Plasma/PubUtilLib/plNetMessage/plNetMsgHelpers.h Sources/Plasma/PubUtilLib/plNetTransport/plNetTransportMember.h Sources/Plasma/PubUtilLib/plPhysX/plSimulationMgr.cpp Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp Sources/Plasma/PubUtilLib/plPipeline/plPlates.cpp Sources/Plasma/PubUtilLib/plResMgr/plKeyFinder.cpp Sources/Plasma/PubUtilLib/plResMgr/plKeyFinder.h Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.h Sources/Plasma/PubUtilLib/plScene/plRelevanceMgr.cpp Sources/Plasma/PubUtilLib/plScene/plRelevanceMgr.h Sources/Plasma/PubUtilLib/plSurface/plGrassShaderMod.cpp
This commit is contained in:
@ -193,7 +193,7 @@ void plAgeLoader::NotifyAgeLoaded( bool loaded )
|
||||
else
|
||||
fFlags &= ~kUnLoadingAge;
|
||||
|
||||
plAgeLoadedMsg * msg = TRACKED_NEW plAgeLoadedMsg;
|
||||
plAgeLoadedMsg * msg = new plAgeLoadedMsg;
|
||||
msg->fLoaded = loaded;
|
||||
msg->Send();
|
||||
}
|
||||
@ -212,11 +212,11 @@ bool plAgeLoader::ILoadAge(const char ageName[])
|
||||
nc->DebugMsg( "Net: Loading age %s", fAgeName);
|
||||
|
||||
if ((fFlags & kLoadMask) != 0)
|
||||
ErrorFatal(__LINE__, __FILE__, "Fatal Error:\nAlready loading or unloading an age.\n%S will now exit.", ProductShortName());
|
||||
ErrorAssert(__LINE__, __FILE__, "Fatal Error:\nAlready loading or unloading an age.\n%S will now exit.", ProductShortName());
|
||||
|
||||
fFlags |= kLoadingAge;
|
||||
|
||||
plAgeBeginLoadingMsg* ageBeginLoading = TRACKED_NEW plAgeBeginLoadingMsg();
|
||||
plAgeBeginLoadingMsg* ageBeginLoading = new plAgeBeginLoadingMsg();
|
||||
ageBeginLoading->Send();
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
@ -272,7 +272,7 @@ bool plAgeLoader::ILoadAge(const char ageName[])
|
||||
|
||||
|
||||
// Tell the client to load-and-hold all the keys for this age, to make the loading process work better
|
||||
plClientMsg *loadAgeKeysMsg = TRACKED_NEW plClientMsg( plClientMsg::kLoadAgeKeys );
|
||||
plClientMsg *loadAgeKeysMsg = new plClientMsg( plClientMsg::kLoadAgeKeys );
|
||||
loadAgeKeysMsg->SetAgeName( fAgeName);
|
||||
loadAgeKeysMsg->Send( clientKey );
|
||||
|
||||
@ -282,12 +282,12 @@ bool plAgeLoader::ILoadAge(const char ageName[])
|
||||
plUoid oid=nc->GetAgeSDLObjectUoid(fAgeName);
|
||||
plKey ageSDLObjectKey = hsgResMgr::ResMgr()->FindKey(oid);
|
||||
if (ageSDLObjectKey)
|
||||
hsgResMgr::ResMgr()->AddViaNotify(ageSDLObjectKey, TRACKED_NEW plGenRefMsg(nc->GetKey(), plRefMsg::kOnCreate, -1,
|
||||
hsgResMgr::ResMgr()->AddViaNotify(ageSDLObjectKey, new plGenRefMsg(nc->GetKey(), plRefMsg::kOnCreate, -1,
|
||||
plNetClientMgr::kAgeSDLHook), plRefFlags::kActiveRef);
|
||||
|
||||
int nPages = 0;
|
||||
|
||||
plClientMsg* pMsg1 = TRACKED_NEW plClientMsg(plClientMsg::kLoadRoom);
|
||||
plClientMsg* pMsg1 = new plClientMsg(plClientMsg::kLoadRoom);
|
||||
pMsg1->SetAgeName(fAgeName);
|
||||
|
||||
// Loop and ref!
|
||||
@ -308,7 +308,7 @@ bool plAgeLoader::ILoadAge(const char ageName[])
|
||||
pMsg1->Send(clientKey);
|
||||
|
||||
// Send the client a message to let go of the extra keys it was holding on to
|
||||
plClientMsg *dumpAgeKeys = TRACKED_NEW plClientMsg( plClientMsg::kReleaseAgeKeys );
|
||||
plClientMsg *dumpAgeKeys = new plClientMsg( plClientMsg::kReleaseAgeKeys );
|
||||
dumpAgeKeys->SetAgeName( fAgeName);
|
||||
dumpAgeKeys->Send( clientKey );
|
||||
|
||||
@ -358,7 +358,7 @@ bool plAgeLoader::IUnloadAge()
|
||||
hsAssert( (fFlags & kLoadMask)==0, "already loading or unloading an age?");
|
||||
fFlags |= kUnLoadingAge;
|
||||
|
||||
plAgeBeginLoadingMsg* msg = TRACKED_NEW plAgeBeginLoadingMsg();
|
||||
plAgeBeginLoadingMsg* msg = new plAgeBeginLoadingMsg();
|
||||
msg->fLoading = false;
|
||||
msg->Send();
|
||||
|
||||
@ -395,7 +395,7 @@ bool plAgeLoader::IUnloadAge()
|
||||
// before any messages get processed
|
||||
for( i = 0; i < newPageOuts.size(); i++ )
|
||||
{
|
||||
plClientMsg *pMsg1 = TRACKED_NEW plClientMsg( plClientMsg::kUnloadRoom );
|
||||
plClientMsg *pMsg1 = new plClientMsg( plClientMsg::kUnloadRoom );
|
||||
pMsg1->AddRoomLoc(newPageOuts[i]->GetUoid().GetLocation());
|
||||
pMsg1->Send( clientKey );
|
||||
}
|
||||
@ -415,7 +415,7 @@ void plAgeLoader::ExecPendingAgeFniFiles()
|
||||
int i;
|
||||
for (i=0;i<PendingAgeFniFiles().size(); i++)
|
||||
{
|
||||
plConsoleMsg *cMsg = TRACKED_NEW plConsoleMsg( plConsoleMsg::kExecuteFile, fPendingAgeFniFiles[i].c_str() );
|
||||
plConsoleMsg *cMsg = new plConsoleMsg( plConsoleMsg::kExecuteFile, fPendingAgeFniFiles[i].c_str() );
|
||||
plgDispatch::MsgSend( cMsg );
|
||||
}
|
||||
fPendingAgeFniFiles.clear();
|
||||
|
@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#ifndef plAgeLoader_h
|
||||
#define plAgeLoader_h
|
||||
|
||||
#include "hsTypes.h"
|
||||
#include "HeadSpin.h"
|
||||
#include "hsStlUtils.h"
|
||||
|
||||
#include "pnUtils/pnUtils.h"
|
||||
@ -80,7 +80,7 @@ private:
|
||||
|
||||
static plAgeLoader* fInstance;
|
||||
|
||||
UInt32 fFlags;
|
||||
uint32_t fFlags;
|
||||
plStringVec fPendingAgeFniFiles; // list of age .fni files to be parsed
|
||||
plStringVec fPendingAgeCsvFiles; // list of age .csv files to be parsed
|
||||
plKeyVec fPendingPageIns; // keys of rooms which are currently being paged in.
|
||||
|
@ -97,7 +97,7 @@ void plAgeLoader::FinishedPagingInRoom(plKey* rmKey, int numRms)
|
||||
plNetClientApp* nc = plNetClientApp::GetInstance();
|
||||
|
||||
// Send a msg to the server indicating that we have this room paged in
|
||||
plNetMsgPagingRoom * pagingMsg = TRACKED_NEW plNetMsgPagingRoom;
|
||||
plNetMsgPagingRoom * pagingMsg = new plNetMsgPagingRoom;
|
||||
pagingMsg->SetNetProtocol(kNetProtocolCli2Game);
|
||||
int i;
|
||||
for(i=0;i<numRms;i++)
|
||||
@ -126,7 +126,7 @@ void plAgeLoader::FinishedPagingInRoom(plKey* rmKey, int numRms)
|
||||
bool ageLoaded = (PendingPageIns().size()==0) && (fFlags & kLoadingAge);
|
||||
if (ageLoaded)
|
||||
{
|
||||
plAgeLoaded2Msg * msg = TRACKED_NEW plAgeLoaded2Msg;
|
||||
plAgeLoaded2Msg * msg = new plAgeLoaded2Msg;
|
||||
msg->Send();
|
||||
// join task will call NotifyAgeLoaded for us later
|
||||
}
|
||||
|
@ -66,9 +66,9 @@ public:
|
||||
fIsZipped = wcscmp(plFileUtils::GetFileExt(reqFile), L"gz") == 0;
|
||||
}
|
||||
|
||||
UInt32 Write(UInt32 count, const void* buf)
|
||||
uint32_t Write(uint32_t count, const void* buf)
|
||||
{
|
||||
fProgress->Increment((hsScalar)count);
|
||||
fProgress->Increment((float)count);
|
||||
if (fIsZipped)
|
||||
return plZlibStream::Write(count, buf);
|
||||
else
|
||||
@ -116,7 +116,7 @@ static void ManifestDownloaded(
|
||||
void* param,
|
||||
const wchar_t group[],
|
||||
const NetCliFileManifestEntry manifest[],
|
||||
UInt32 entryCount)
|
||||
uint32_t entryCount)
|
||||
{
|
||||
plResPatcher* patcher = (plResPatcher*)param;
|
||||
char* name = hsWStringToString(group);
|
||||
@ -129,7 +129,7 @@ static void ManifestDownloaded(
|
||||
return;
|
||||
}
|
||||
|
||||
for (UInt32 i = 0; i < entryCount; ++i)
|
||||
for (uint32_t i = 0; i < entryCount; ++i)
|
||||
{
|
||||
const NetCliFileManifestEntry mfs = manifest[i];
|
||||
char* fileName = hsWStringToString(mfs.clientName);
|
||||
@ -155,7 +155,7 @@ static void ManifestDownloaded(
|
||||
PatcherLog(kInfo, " Enqueueing %s: File Sizes Differ", fileName);
|
||||
|
||||
// If we're still here, then we need to update the file.
|
||||
patcher->GetProgress()->SetLength((hsScalar)mfs.fileSize + patcher->GetProgress()->GetMax());
|
||||
patcher->GetProgress()->SetLength((float)mfs.fileSize + patcher->GetProgress()->GetMax());
|
||||
patcher->RequestFile(mfs.downloadName, mfs.clientName);
|
||||
}
|
||||
|
||||
@ -280,7 +280,7 @@ void plResPatcher::Start()
|
||||
|
||||
void PatcherLog(PatcherLogType type, const char* format, ...)
|
||||
{
|
||||
UInt32 color = 0;
|
||||
uint32_t color = 0;
|
||||
switch (type)
|
||||
{
|
||||
case kHeader: color = plStatusLog::kWhite; break;
|
||||
|
Reference in New Issue
Block a user