Browse Source

Move file stuff back to plFile for gcc.

Darryl Pogue 12 years ago
parent
commit
d40e7a5ca5
  1. 4
      Sources/Plasma/Apps/plClient/plClient.cpp
  2. 2
      Sources/Plasma/Apps/plClient/winmain.cpp
  3. 2
      Sources/Plasma/Apps/plFileEncrypt/main.cpp
  4. 4
      Sources/Plasma/Apps/plFileSecure/main.cpp
  5. 4
      Sources/Plasma/Apps/plPageInfo/plPageInfo.cpp
  6. 12
      Sources/Plasma/Apps/plPageOptimizer/main.cpp
  7. 26
      Sources/Plasma/Apps/plPageOptimizer/pfAllCreatables.cpp
  8. 44
      Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.cpp
  9. 6
      Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.h
  10. 2
      Sources/Plasma/Apps/plPythonPack/main.cpp
  11. 2
      Sources/Plasma/Apps/plUruLauncher/Pch.h
  12. 7
      Sources/Plasma/CoreLib/CMakeLists.txt
  13. 409
      Sources/Plasma/CoreLib/hsFiles_Mac.cpp
  14. 84
      Sources/Plasma/CoreLib/hsFiles_PS2.cpp
  15. 2
      Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp
  16. 2
      Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp
  17. 2
      Sources/Plasma/FeatureLib/pfCrashHandler/plCrashSrv.cpp
  18. 2
      Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp
  19. 2
      Sources/Plasma/FeatureLib/pfPython/plPythonPack.cpp
  20. 2
      Sources/Plasma/FeatureLib/pfSecurePreloader/pfSecurePreloader.cpp
  21. 2
      Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp
  22. 4
      Sources/Plasma/PubUtilLib/plAgeDescription/plAgeManifest.cpp
  23. 2
      Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp
  24. 2
      Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp
  25. 4
      Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp
  26. 4
      Sources/Plasma/PubUtilLib/plAudioCore/plSoundBuffer.cpp
  27. 12
      Sources/Plasma/PubUtilLib/plFile/CMakeLists.txt
  28. 0
      Sources/Plasma/PubUtilLib/plFile/hsFiles.cpp
  29. 0
      Sources/Plasma/PubUtilLib/plFile/hsFiles.h
  30. 0
      Sources/Plasma/PubUtilLib/plFile/hsFiles_Unix.cpp
  31. 0
      Sources/Plasma/PubUtilLib/plFile/hsFiles_Win.cpp
  32. 2
      Sources/Plasma/PubUtilLib/plFile/plFileUtils.cpp
  33. 0
      Sources/Plasma/PubUtilLib/plFile/plFileUtils.h
  34. 2
      Sources/Plasma/PubUtilLib/plGImage/plFontCache.cpp
  35. 2
      Sources/Plasma/PubUtilLib/plGImage/plWinFontCache.cpp
  36. 2
      Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp
  37. 2
      Sources/Plasma/PubUtilLib/plNetClientRecorder/plNetClientRecorder.cpp
  38. 2
      Sources/Plasma/PubUtilLib/plResMgr/plLocalization.cpp
  39. 2
      Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp
  40. 4
      Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp
  41. 2
      Sources/Plasma/PubUtilLib/plSDL/plSDLParser.cpp
  42. 2
      Sources/Plasma/PubUtilLib/plStatGather/plAutoProfile.cpp
  43. 2
      Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp
  44. 4
      Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp
  45. 4
      Sources/Tools/MaxComponent/Pch.h
  46. 2
      Sources/Tools/MaxComponent/plAudioComponents.cpp
  47. 2
      Sources/Tools/MaxComponent/plGUIComponents.cpp
  48. 4
      Sources/Tools/MaxComponent/plMiscComponents.cpp
  49. 2
      Sources/Tools/MaxComponent/plResponderLink.cpp
  50. 2
      Sources/Tools/MaxConvert/hsMaterialConverter.cpp
  51. 2
      Sources/Tools/MaxExport/Pch.h
  52. 2
      Sources/Tools/MaxExport/SimpleExport.cpp
  53. 2
      Sources/Tools/MaxExport/plExportDlg.cpp
  54. 4
      Sources/Tools/MaxMain/Pch.h
  55. 2
      Sources/Tools/MaxMain/main.cpp
  56. 2
      Sources/Tools/MaxMain/plAgeDescInterface.cpp
  57. 2
      Sources/Tools/MaxMain/plPythonMgr.cpp
  58. 2
      Sources/Tools/plResBrowser/plResBrowserWndProc.cpp

4
Sources/Plasma/Apps/plClient/plClient.cpp

@ -58,7 +58,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTimer.h"
#include "plPipeline/hsG3DDeviceSelector.h"
#include "plFile/plEncryptedStream.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plInputCore/plInputManager.h"
#include "plInputCore/plInputInterfaceMgr.h"
#include "plInputCore/plInputDevice.h"
@ -84,7 +84,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pfConsole/pfConsoleDirSrc.h"
#include "plScene/plPageTreeMgr.h"
#include "plScene/plVisMgr.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "pfKI/pfKI.h"

2
Sources/Plasma/Apps/plClient/winmain.cpp

@ -75,7 +75,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plStatusLog/plStatusLog.h"
#include "pnProduct/pnProduct.h"
#include "plNetGameLib/plNetGameLib.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plPhysX/plSimulationMgr.h"

2
Sources/Plasma/Apps/plFileEncrypt/main.cpp

@ -39,7 +39,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plFile/plEncryptedStream.h"
#include "pnProduct/pnProduct.h"

4
Sources/Plasma/Apps/plFileSecure/main.cpp

@ -39,8 +39,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include "hsFiles.h"
#include "plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plFile/plSecureStream.h"
#include "pnProduct/pnProduct.h"

4
Sources/Plasma/Apps/plPageInfo/plPageInfo.cpp

@ -41,8 +41,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "hsTimer.h"
#include "hsFiles.h"
#include "plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plResMgr/plResManager.h"
#include "plResMgr/plResMgrSettings.h"

12
Sources/Plasma/Apps/plPageOptimizer/main.cpp

@ -39,14 +39,14 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include "../plResMgr/plResManager.h"
#include "../pfPython/plPythonFileMod.h"
#include "../plGImage/plFontCache.h"
#include "../plPhysX/plSimulationMgr.h"
#include "../plAvatar/plAvatarMgr.h"
#include "plResMgr/plResManager.h"
#include "pfPython/plPythonFileMod.h"
#include "plGImage/plFontCache.h"
#include "plPhysX/plSimulationMgr.h"
#include "plAvatar/plAvatarMgr.h"
#include "plPageOptimizer.h"
#include "../plFile/plFileUtils.h"
#include "plFile/plFileUtils.h"
int main(int argc, char* argv[])
{

26
Sources/Plasma/Apps/plPageOptimizer/pfAllCreatables.cpp

@ -39,16 +39,16 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
Mead, WA 99021
*==LICENSE==*/
#include "../pfCharacter/pfCharacterCreatable.h"
#include "../pfCamera/pfCameraCreatable.h"
#include "../pfAnimation/pfAnimationCreatable.h"
#include "../pfConditional/plConditionalObjectCreatable.h"
//#include "../pfConsole/pfConsoleCreatable.h"
#include "../pfSurface/pfSurfaceCreatable.h"
#include "../pfMessage/pfMessageCreatable.h"
#include "../pfAudio/pfAudioCreatable.h"
#include "../pfPython/pfPythonCreatable.h"
#include "../pfGameGUIMgr/pfGameGUIMgrCreatable.h"
#include "../pfCCR/plCCRCreatable.h"
#include "../pfJournalBook/pfJournalBookCreatable.h"
#include "../pfGameMgr/pfGameMgrCreatables.h"
#include "pfCharacter/pfCharacterCreatable.h"
#include "pfCamera/pfCameraCreatable.h"
#include "pfAnimation/pfAnimationCreatable.h"
#include "pfConditional/plConditionalObjectCreatable.h"
//#include "pfConsole/pfConsoleCreatable.h"
#include "pfSurface/pfSurfaceCreatable.h"
#include "pfMessage/pfMessageCreatable.h"
#include "pfAudio/pfAudioCreatable.h"
#include "pfPython/pfPythonCreatable.h"
#include "pfGameGUIMgr/pfGameGUIMgrCreatable.h"
#include "pfCCR/plCCRCreatable.h"
#include "pfJournalBook/pfJournalBookCreatable.h"
#include "pfGameMgr/pfGameMgrCreatables.h"

44
Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.cpp

@ -41,16 +41,16 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "plPageOptimizer.h"
#include "../pnKeyedObject/plUoid.h"
#include "../plResMgr/plResManager.h"
#include "../plResMgr/plRegistryHelpers.h"
#include "../plResMgr/plKeyFinder.h"
#include "../plResMgr/plRegistryNode.h"
#include "pnKeyedObject/plUoid.h"
#include "plResMgr/plResManager.h"
#include "plResMgr/plRegistryHelpers.h"
#include "plResMgr/plKeyFinder.h"
#include "plResMgr/plRegistryNode.h"
#include "../pnFactory/plFactory.h"
#include "../pnKeyedObject/plKeyImp.h"
#include "pnFactory/plFactory.h"
#include "pnKeyedObject/plKeyImp.h"
#include "../plFile/plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "hsStream.h"
plPageOptimizer* plPageOptimizer::fInstance = nil;
@ -163,7 +163,7 @@ void plPageOptimizer::Optimize()
void plPageOptimizer::KeyedObjectProc(plKey key)
{
const char* keyName = key->GetName();
plString keyName = key->GetName();
const char* className = plFactory::GetNameOfClass(key->GetUoid().GetClassType());
// For now, ignore any key that isn't in the location we're looking at. That means stuff like textures.
@ -176,7 +176,7 @@ void plPageOptimizer::KeyedObjectProc(plKey key)
KeySet::iterator it = loadedKeys.lower_bound(key);
if (it != loadedKeys.end() && *it == key)
{
printf("Keyed object %s(%s) loaded more than once\n", keyName, className);
printf("Keyed object %s(%s) loaded more than once\n", keyName.c_str(), className);
}
else
{
@ -247,35 +247,35 @@ void plPageOptimizer::IRewritePage()
uint32_t oldKeyStart = pageInfo.GetIndexStart();
oldPage.SetPosition(oldKeyStart);
uint32_t numTypes = oldPage.ReadSwap32();
newPage.WriteSwap32(numTypes);
uint32_t numTypes = oldPage.ReadLE32();
newPage.WriteLE32(numTypes);
for (uint32_t i = 0; i < numTypes; i++)
{
uint16_t classType = oldPage.ReadSwap16();
uint32_t len = oldPage.ReadSwap32();
uint16_t classType = oldPage.ReadLE16();
uint32_t len = oldPage.ReadLE32();
uint8_t flags = oldPage.ReadByte();
uint32_t numKeys = oldPage.ReadSwap32();
uint32_t numKeys = oldPage.ReadLE32();
newPage.WriteSwap16(classType);
newPage.WriteSwap32(len);
newPage.WriteLE16(classType);
newPage.WriteLE32(len);
newPage.WriteByte(flags);
newPage.WriteSwap32(numKeys);
newPage.WriteLE32(numKeys);
for (uint32_t j = 0; j < numKeys; j++)
{
plUoid uoid;
uoid.Read(&oldPage);
uint32_t startPos = oldPage.ReadSwap32();
uint32_t dataLen = oldPage.ReadSwap32();
uint32_t startPos = oldPage.ReadLE32();
uint32_t dataLen = oldPage.ReadLE32();
// Get the new start pos
plKeyImp* key = (plKeyImp*)fResMgr->FindKey(uoid);
startPos = key->GetStartPos();
uoid.Write(&newPage);
newPage.WriteSwap32(startPos);
newPage.WriteSwap32(dataLen);
newPage.WriteLE32(startPos);
newPage.WriteLE32(dataLen);
}
}

6
Sources/Plasma/Apps/plPageOptimizer/plPageOptimizer.h

@ -42,8 +42,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#ifndef plPageOptimizer_h_inc
#define plPageOptimizer_h_inc
#include "../pnKeyedObject/plKey.h"
#include "../pnKeyedObject/plUoid.h"
#include "pnKeyedObject/plKey.h"
#include "pnKeyedObject/plUoid.h"
#include <vector>
#include <set>
@ -83,4 +83,4 @@ public:
void Optimize();
};
#endif // plPageOptimizer_h_inc
#endif // plPageOptimizer_h_inc

2
Sources/Plasma/Apps/plPythonPack/main.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "PythonInterface.h"
#include "hsStream.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include <vector>
#include <string>

2
Sources/Plasma/Apps/plUruLauncher/Pch.h

@ -63,7 +63,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnNetCli/pnNetCli.h"
#include "plNetGameLib/plNetGameLib.h"
#include "pnEncryption/plChecksum.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plCompression/plZlibStream.h"
#include "plClientPatcher/UruPlayer.h"

7
Sources/Plasma/CoreLib/CMakeLists.txt

@ -1,4 +1,3 @@
include_directories(../PubUtilLib/plUnifiedTime) # EVIL: For plFileUtils.cpp
add_definitions(-D_LIB)
if(NOT WCHAR_BYTES)
@ -20,7 +19,6 @@ set(CoreLib_SOURCES
hsCritSect.cpp
hsExceptionStack.cpp
hsFastMath.cpp
hsFiles.cpp
hsGeometry3.cpp
hsMatrix33.cpp
hsMatrix44.cpp
@ -36,7 +34,6 @@ set(CoreLib_SOURCES
hsThread.cpp
hsWide.cpp
pcSmallRect.cpp
plFileUtils.cpp
plGeneric.cpp
plLoadMask.cpp
plString.cpp
@ -46,13 +43,11 @@ set(CoreLib_SOURCES
if(WIN32 AND NOT CYGWIN)
set(CoreLib_SOURCES ${CoreLib_SOURCES}
hsThread_Win.cpp
hsFiles_Win.cpp
)
endif(WIN32 AND NOT CYGWIN)
if(UNIX)
set(CoreLib_SOURCES ${CoreLib_SOURCES}
hsThread_Unix.cpp
hsFiles_Unix.cpp
)
endif(UNIX)
@ -66,7 +61,6 @@ set(CoreLib_HEADERS
hsCritSect.h
hsExceptions.h
hsFastMath.h
hsFiles.h
hsGeometry3.h
hsHashTable.h
hsMatrix44.h
@ -85,7 +79,6 @@ set(CoreLib_HEADERS
hsWide.h
hsWindows.h
pcSmallRect.h
plFileUtils.h
plGeneric.h
plLoadMask.h
plQuality.h

409
Sources/Plasma/CoreLib/hsFiles_Mac.cpp

@ -1,409 +0,0 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/
#include "hsFiles.h"
#include "hsUtils.h"
#include "hsMemory.h"
#if HS_BUILD_FOR_MAC
#include <Files.h>
#include <Folders.h>
#include <Errors.h>
///////////////////////////////////////////////////////////////////////////
hsMacFile::hsMacFile() : fFlags(kRefNum_Dirty)
{
fSpec.name[0] = 0;
}
hsMacFile::hsMacFile(const char pathAndName[]) : hsFile(pathAndName), fFlags(kRefNum_Dirty)
{
this->SetSpecFromName();
}
hsMacFile::hsMacFile(const FSSpec* spec) : fFlags(kRefNum_Dirty)
{
this->SetSpec(spec);
}
hsMacFile::~hsMacFile()
{
this->Close();
}
void hsMacFile::SetSpec(const FSSpec* spec)
{
if (spec)
fSpec = *spec;
else
fSpec.name[0] = 0;
fFlags |= kPathName_Dirty;
}
void hsMacFile::SetSpecFromName()
{
Str255 pstr;
if (fPathAndName == nil)
fSpec.name[0] = 0;
else
{ hsC2PString(fPathAndName, pstr);
::FSMakeFSSpec(0, 0, pstr, &fSpec);
}
}
void hsMacFile::SetNameFromSpec()
{
CInfoPBRec pb;
Str255 dirNameP;
char dirName[256], temp[256];
int err;
hsP2CString(fSpec.name, temp);
pb.dirInfo.ioNamePtr = dirNameP;
pb.dirInfo.ioVRefNum = fSpec.vRefNum;
pb.dirInfo.ioDrParID = fSpec.parID;
pb.dirInfo.ioFDirIndex = -1;
do {
pb.dirInfo.ioDrDirID = pb.dirInfo.ioDrParID;
err = PBGetCatInfoSync(&pb);
hsThrowIfOSErr(err);
hsP2CString(dirNameP, dirName);
strcat(dirName,":");
strcat(dirName, temp);
strcpy(temp, dirName);
} while( pb.dirInfo.ioDrDirID != fsRtDirID);
hsAssert(fPathAndName == nil, "pathname should be nil");
fPathAndName = hsStrcpy(temp);
}
bool hsMacFile::Create(OSType creator, OSType fileType, ScriptCode scriptCode)
{
this->Close();
OSErr err;
(void)::FSpDelete(&fSpec);
err = ::FSpCreate(&fSpec, creator, fileType, scriptCode);
hsIfDebugMessage(err != 0, "FSpCreate failed", err);
return err == 0;
}
#define kFileNotFound_Err -43
bool hsMacFile::OpenDataFork(Sint8_t perm, int16_t* refnum)
{
this->Close();
OSErr err;
err = ::FSpOpenDF(&fSpec, perm, &fRefNum);
if (err == kFileNotFound_Err && (perm & fsWrPerm) && (perm & fsRdPerm) == 0)
{ if (this->Create('HdSp', '????'))
err = ::FSpOpenDF(&fSpec, perm, &fRefNum);
}
if (err == 0)
{ fFlags &= ~kRefNum_Dirty;
if (refnum)
*refnum = fRefNum;
return true;
}
return false;
}
const char* hsMacFile::GetPathAndName()
{
if (fFlags & kPathName_Dirty)
{ this->SetNameFromSpec();
fFlags &= ~kPathName_Dirty;
}
return fPathAndName;
}
void hsMacFile::SetPathAndName(const char pathAndName[])
{
this->hsFile::SetPathAndName(pathAndName);
this->SetSpecFromName();
}
hsStream* hsMacFile::OpenStream(const char mode[], bool throwIfFailure)
{
hsThrowIfNilParam(mode);
short refnum;
Sint8_t perm = 0;
if (::strchr(mode, 'r'))
perm |= fsRdPerm;
if (::strchr(mode, 'w'))
perm |= fsWrPerm;
if (this->OpenDataFork(perm, &refnum))
{ hsFileStream* stream = new hsFileStream;
stream->SetFileRef(refnum);
return stream;
}
hsThrowIfTrue(throwIfFailure);
return nil;
}
void hsMacFile::Close()
{
if (fFlags & kRefNum_Dirty)
{ OSErr err = ::FSClose(fRefNum);
hsIfDebugMessage(err != 0, "FSClose failed", err);
fFlags &= ~kRefNum_Dirty;
}
this->hsFile::Close();
}
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
struct hsFolderIterator_Data {
FSSpec fSpec;
OSType fFileType;
OSType fCreator;
char fCName[_MAX_PATH];
int16_t fCurrIndex;
bool fValid;
};
hsFolderIterator::hsFolderIterator(const char path[])
{
fData = new hsFolderIterator_Data;
fData->fCurrIndex = 0;
fData->fValid = false;
#if HS_BUILD_FOR_WIN32
this->SetPath(path);
#else
this->SetMacFolder(path);
#endif
}
hsFolderIterator::hsFolderIterator(const struct FSSpec* spec) // Alt Constructor - pass in FSSpec from OpenDlg()
{
fData = new hsFolderIterator_Data;
fData->fCurrIndex = 0;
fData->fValid = false;
SetMacFolder(spec->vRefNum, spec->parID);
}
hsFolderIterator::~hsFolderIterator()
{
delete fData;
}
void hsFolderIterator::SetPath(const char path[])
{
fPath[0] = 0;
fData->fValid = false;
fData->fCurrIndex = 0;
if (path)
{
::strcpy(fPath, path);
}
}
///////////////////////////////////////////////////////////////////////////
void hsFolderIterator::SetMacFolder(OSType folderType)
{
fData->fCurrIndex = 0;
fData->fValid = ::FindFolder(kOnSystemDisk, folderType, false,
&fData->fSpec.vRefNum, &fData->fSpec.parID) == 0;
this->Reset();
}
void hsFolderIterator::SetMacFolder(int16_t vRefNum, int32_t dirID)
{
fData->fSpec.vRefNum = vRefNum;
fData->fSpec.parID = dirID;
fData->fCurrIndex = 0;
fData->fValid = true;
this->Reset();
}
void hsFolderIterator::SetMacFolder(const char path[])
{
char tmp[255];
FSSpec fileSpec;
OSErr err;
hsCPathToMacPath(&tmp[1], (char*)path);
tmp[0] = hsStrlen(&tmp[1]);
SetPath((char*)&tmp[1]);
err = FSMakeFSSpec(0, 0, (const unsigned char*)tmp, &fileSpec);
if(err == fnfErr)
{
HSDebugProc("XCmd directory does not exist.");
return;
}
hsAssert(err == noErr, "Error making file spec.");
// by now we should have the file spec for the given
// directory, however, the DirID is the PARENT directory,
// not the child directory. The following steps should
// give us the items we want.
CInfoPBRec pb;
pb.hFileInfo.ioVRefNum = fileSpec.vRefNum;
pb.hFileInfo.ioNamePtr = (StringPtr)fileSpec.name; // The name of the child directory.
pb.hFileInfo.ioDirID = fileSpec.parID; // The ID of the parent directory.
pb.hFileInfo.ioFDirIndex = 0;
pb.hFileInfo.ioCompletion = 0;
err = ::PBGetCatInfoSync(&pb);
hsAssert(err == noErr, "PBGetCatInfoSync() failure.");
fData->fSpec.vRefNum = fileSpec.vRefNum; // Volume reference
fData->fSpec.parID = pb.dirInfo.ioDrDirID; // child directory ID (Finally!)
fData->fCurrIndex = 0;
fData->fValid = true;
this->Reset();
}
///////////////////////////////////////////////////////////////////////////
void hsFolderIterator::Reset()
{
if (fData->fValid)
fData->fCurrIndex = 1;
#ifdef HS_DEBUGGING
else
hsAssert(fData->fCurrIndex == 0, "bad currindex");
#endif
}
bool hsFolderIterator::NextFile()
{
if (fData->fCurrIndex == 0)
return false;
CInfoPBRec pb;
do {
pb.hFileInfo.ioVRefNum = fData->fSpec.vRefNum;
pb.hFileInfo.ioNamePtr = (StringPtr)fData->fSpec.name;
pb.hFileInfo.ioDirID = fData->fSpec.parID;
pb.hFileInfo.ioFDirIndex = fData->fCurrIndex++;
OSErr err = ::PBGetCatInfoSync(&pb);
if (err)
{
fData->fCurrIndex = 0;
return false;
}
} while (pb.hFileInfo.ioFlAttrib & ioDirMask);
fData->fFileType = pb.hFileInfo.ioFlFndrInfo.fdType;
fData->fCreator = pb.hFileInfo.ioFlFndrInfo.fdCreator;
return true;
}
const char* hsFolderIterator::GetFileName() const
{
if (fData->fCurrIndex == 0)
throw "end of folder";
// Copy our filename (in pascal format) into a cstring and then return
HSMemory::BlockMove(&fData->fSpec.name[1], fData->fCName, fData->fSpec.name[0]);
fData->fCName[fData->fSpec.name[0]] = 0;
return fData->fCName;
}
////////////////////////////////////////////////////////////////////////////
bool hsFolderIterator::NextMacFile(OSType targetFileType, OSType targetCreator)
{
for (;;)
{ if (this->NextFile() == false)
return false;
if ((targetFileType == 0 || targetFileType == this->GetMacFileType()) &&
(targetCreator == 0 || targetCreator == this->GetMacCreator()))
return true;
}
}
const FSSpec* hsFolderIterator::GetMacSpec() const
{
if (fData->fCurrIndex == 0)
throw "end of folder";
return &fData->fSpec;
}
OSType hsFolderIterator::GetMacFileType() const
{
if (fData->fCurrIndex == 0)
throw "end of folder";
return fData->fFileType;
}
OSType hsFolderIterator::GetMacCreator() const
{
if (fData->fCurrIndex == 0)
throw "end of folder";
return fData->fCreator;
}
bool hsFolderIterator::IsDirectory( void ) const
{
hsAssert( false, "hsFolderIterator::IsDirectory() not defined on this platform!!!" );
return false;
}
#endif // HS_BUILD_FOR_MAC

84
Sources/Plasma/CoreLib/hsFiles_PS2.cpp

@ -1,84 +0,0 @@
/*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Additional permissions under GNU GPL version 3 section 7
If you modify this Program, or any covered work, by linking or
combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
(or a modified version of those libraries),
containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
licensors of this Program grant you additional
permission to convey the resulting work. Corresponding Source for a
non-source form of such a combination shall include the source code for
the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
work.
You can contact Cyan Worlds, Inc. by email legal@cyan.com
or by snail mail at:
Cyan Worlds, Inc.
14617 N Newport Hwy
Mead, WA 99021
*==LICENSE==*/
#include "hsFiles.h"
#if HS_BUILD_FOR_PS2
hsFolderIterator::hsFolderIterator(const char path[])
{
hsAssert(0,"No folder Interator defined for PS2 -- yet");
}
hsFolderIterator::~hsFolderIterator()
{
}
void hsFolderIterator::SetPath(const char path[])
{
}
///////////////////////////////////////////////////////////////////////////////
void hsFolderIterator::Reset()
{
}
bool hsFolderIterator::NextFile()
{
}
const char* hsFolderIterator::GetFileName() const
{
}
bool hsFolderIterator::IsDirectory( void ) const
{
hsAssert( false, "hsFolderIterator::IsDirectory() not defined on this platform!!!" );
return false;
}
#endif // HS_BUILD_FOR_PS2

2
Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp

@ -155,7 +155,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plUnifiedTime/plUnifiedTime.h"
//end for agedefn test
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "pnSceneObject/plAudioInterface.h"
#include "plStatusLog/plStatusLog.h"

2
Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommandsNet.cpp

@ -84,7 +84,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plUnifiedTime/plUnifiedTime.h"
//end for agedefn test
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plStatusLog/plStatusLog.h"

2
Sources/Plasma/FeatureLib/pfCrashHandler/plCrashSrv.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plCrashSrv.h"
#include "plCrash_Private.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "pnProduct/pnProduct.h"
#ifdef HS_BUILD_FOR_WIN32

2
Sources/Plasma/FeatureLib/pfLocalizationMgr/pfLocalizationDataMgr.cpp

@ -51,7 +51,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plResMgr/plLocalization.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plFile/plEncryptedStream.h"
#include "plStatusLog/plStatusLog.h"

2
Sources/Plasma/FeatureLib/pfPython/plPythonPack.cpp

@ -54,7 +54,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plPythonPack.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plFile/plSecureStream.h"
#include "plFile/plStreamSource.h"

2
Sources/Plasma/FeatureLib/pfSecurePreloader/pfSecurePreloader.cpp

@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plgDispatch.h"
#include "plCompression/plZlibStream.h"
#include "pnEncryption/plChecksum.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plFile/plSecureStream.h"
#include "plFile/plStreamSource.h"
#include "plMessage/plNetCommMsgs.h"

2
Sources/Plasma/PubUtilLib/plAgeDescription/plAgeDescription.cpp

@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAgeDescription.h"
#include "hsStlUtils.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plFile/plInitFileReader.h"
#include "plFile/plEncryptedStream.h"
#include "hsStringTokenizer.h"

4
Sources/Plasma/PubUtilLib/plAgeDescription/plAgeManifest.cpp

@ -51,8 +51,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAgeManifest.h"
#include "hsFiles.h"
#include "plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plFile/plInitFileReader.h"
#include "hsStringTokenizer.h"

2
Sources/Plasma/PubUtilLib/plAgeLoader/plResPatcher.cpp

@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAgeLoader/plAgeLoader.h"
#include "plCompression/plZlibStream.h"
#include "pnEncryption/plChecksum.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plMessage/plResPatcherMsg.h"
#include "pnNetBase/pnNbError.h"
#include "plNetGameLib/plNetGameLib.h"

2
Sources/Plasma/PubUtilLib/plAudio/plWin32StreamingSound.cpp

@ -44,7 +44,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsGeometry3.h"
#include "plgDispatch.h"
#include "plProfile.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plWin32Sound.h"
#include "plWin32StreamingSound.h"

4
Sources/Plasma/PubUtilLib/plAudioCore/plAudioFileReader.cpp

@ -55,8 +55,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAudioCore.h"
//#include "hsTimer.h"
#include "hsFiles.h"
#include "plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plUnifiedTime/plUnifiedTime.h"
#include "plBufferedFileReader.h"
#include "plCachedFileReader.h"

4
Sources/Plasma/PubUtilLib/plAudioCore/plSoundBuffer.cpp

@ -49,8 +49,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plgDispatch.h"
#include "hsResMgr.h"
#include "pnMessage/plRefMsg.h"
#include "plFileUtils.h"
#include "hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plUnifiedTime/plUnifiedTime.h"
#include "plStatusLog/plStatusLog.h"
#include "hsTimer.h"

12
Sources/Plasma/PubUtilLib/plFile/CMakeLists.txt

@ -5,16 +5,28 @@ include_directories("../../PubUtilLib")
include_directories(${ZLIB_INCLUDE_DIR})
set(plFile_SOURCES
hsFiles.cpp
plBrowseFolder.cpp
plEncryptedStream.cpp
plFileUtils.cpp
plInitFileReader.cpp
plSecureStream.cpp
plStreamSource.cpp
)
if(WIN32 AND NOT CYGWIN)
set(plFile_SOURCES ${plFile_SOURCES} hsFiles_Win.cpp)
endif(WIN32 AND NOT CYGWIN)
if(UNIX)
set(plFile_SOURCES ${plFile_SOURCES} hsFiles_Unix.cpp)
endif(UNIX)
set(plFile_HEADERS
hsFiles.h
plBrowseFolder.h
plEncryptedStream.h
plFileUtils.h
plInitFileReader.h
plSecureStream.h
plStreamSource.h

0
Sources/Plasma/CoreLib/hsFiles.cpp → Sources/Plasma/PubUtilLib/plFile/hsFiles.cpp

0
Sources/Plasma/CoreLib/hsFiles.h → Sources/Plasma/PubUtilLib/plFile/hsFiles.h

0
Sources/Plasma/CoreLib/hsFiles_Unix.cpp → Sources/Plasma/PubUtilLib/plFile/hsFiles_Unix.cpp

0
Sources/Plasma/CoreLib/hsFiles_Win.cpp → Sources/Plasma/PubUtilLib/plFile/hsFiles_Win.cpp

2
Sources/Plasma/CoreLib/plFileUtils.cpp → Sources/Plasma/PubUtilLib/plFile/plFileUtils.cpp

@ -58,7 +58,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsStringTokenizer.h"
#include "plUnifiedTime.h"
#include "plUnifiedTime/plUnifiedTime.h"
#include <time.h>
#include <sys/types.h>

0
Sources/Plasma/CoreLib/plFileUtils.h → Sources/Plasma/PubUtilLib/plFile/plFileUtils.h

2
Sources/Plasma/PubUtilLib/plGImage/plFontCache.cpp

@ -57,7 +57,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plFont.h"
#include "plStatusLog/plStatusLog.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "pnMessage/plRefMsg.h"
#include "hsResMgr.h"

2
Sources/Plasma/PubUtilLib/plGImage/plWinFontCache.cpp

@ -63,7 +63,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plWinFontCache.h"
#include "plStatusLog/plStatusLog.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plGImage/plDynSurfaceWriter.h"
#if HS_BUILD_FOR_WIN32

2
Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp

@ -63,7 +63,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plNetMessage/plNetMessage.h"
#include "plAvatar/plAvatarMgr.h"
#include "plAvatar/plArmatureMod.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
/*****************************************************************************

2
Sources/Plasma/PubUtilLib/plNetClientRecorder/plNetClientRecorder.cpp

@ -56,7 +56,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plMessage/plAgeLoadedMsg.h"
#include "plStatusLog/plStatusLog.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
plNetClientRecorder::plNetClientRecorder(TimeWrapper* timeWrapper) :
fTimeWrapper(timeWrapper)

2
Sources/Plasma/PubUtilLib/plResMgr/plLocalization.cpp

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "plLocalization.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
plLocalization::Language plLocalization::fLanguage = plLocalization::kEnglish;

2
Sources/Plasma/PubUtilLib/plResMgr/plRegistryNode.cpp

@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnKeyedObject/plKeyImp.h"
#include "plStatusLog/plStatusLog.h"
#include "pnFactory/plFactory.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "hsStlUtils.h"
#include "plVersion.h"

4
Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

@ -60,8 +60,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plObjRefMsg.h"
#include "plMessage/plAgeLoadedMsg.h"
#include "pnMessage/plClientMsg.h"
#include "hsFiles.h"
#include "plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plFile/plFileUtils.h"
#include "pnFactory/plCreator.h"
#include "pnNetCommon/plSynchedObject.h"
#include "pnNetCommon/plNetApp.h"

2
Sources/Plasma/PubUtilLib/plSDL/plSDLParser.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "hsStlUtils.h"
#include "plSDL.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plFile/plStreamSource.h"
#include "pnNetCommon/pnNetCommon.h"
#include "pnNetCommon/plNetApp.h"

2
Sources/Plasma/PubUtilLib/plStatGather/plAutoProfile.cpp

@ -57,7 +57,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pnMessage/plClientMsg.h"
#include "plAgeLoader/plAgeLoader.h"
#include "plProfileManagerFull.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plPipeline/plDebugText.h"
#include "pnMessage/plTimeMsg.h"

2
Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp

@ -50,7 +50,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsStream.h"
#include "pnUtils/pnUtils.h"
#include "plUnifiedTime/plUnifiedTime.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
plProfileManagerFull::plProfileManagerFull() :
fVars(plProfileManager::Instance().fVars),

4
Sources/Plasma/PubUtilLib/plStatusLog/plStatusLog.cpp

@ -61,10 +61,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTemplates.h"
#include "hsTimer.h"
#include "hsStlUtils.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plStatusLog.h"
#include "hsStlUtils.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plUnifiedTime/plUnifiedTime.h"
#include "pnProduct/pnProduct.h"

4
Sources/Tools/MaxComponent/Pch.h

@ -60,8 +60,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plAudible.h"
#include "plCreatableIndex.h"
#include "plgDispatch.h"
#include "plFileUtils.h"
#include "hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plFile/hsFiles.h"
#include "hsGeometry3.h"
#include "plLoadMask.h"
#include "hsMatrix44.h"

2
Sources/Tools/MaxComponent/plAudioComponents.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "plgDispatch.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "plAnimComponent.h"
#include "plAudioComponents.h"

2
Sources/Tools/MaxComponent/plGUIComponents.cpp

@ -42,7 +42,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "plgDispatch.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "hsTemplates.h"
#include "plComponent.h"

4
Sources/Tools/MaxComponent/plMiscComponents.cpp

@ -43,8 +43,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "plCreatableIndex.h"
#include "plgDispatch.h"
#include "plFileUtils.h"
#include "hsFiles.h"
#include "plFile/plFileUtils.h"
#include "plFile/hsFiles.h"
#include "plComponentReg.h"
#include "plMiscComponents.h"

2
Sources/Tools/MaxComponent/plResponderLink.cpp

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "hsResMgr.h"
#include "plComponentBase.h"

2
Sources/Tools/MaxConvert/hsMaterialConverter.cpp

@ -71,7 +71,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plSurface/hsGMaterial.h"
#include "pnSceneObject/plSceneObject.h"
#include "UserPropMgr.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "hsConverterUtils.h"
#include "hsControlConverter.h"

2
Sources/Tools/MaxExport/Pch.h

@ -58,7 +58,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "hsExceptionStack.h"
#include "hsExceptions.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "hsStlSortUtils.h"
#include "hsStream.h"

2
Sources/Tools/MaxExport/SimpleExport.cpp

@ -45,7 +45,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "HeadSpin.h"
#include "hsExceptionStack.h"
#include "plFileUtils.h"
#include "plFile/plFileUtils.h"
#include "hsStream.h"
#include <bitmap.h>

2
Sources/Tools/MaxExport/plExportDlg.cpp

@ -327,7 +327,7 @@ void plExportDlgImp::IExportCurrentFile(const char* exportPath)
GetCOREInterface()->ExportToFile(exportPath);
}
#include "hsFiles.h"
#include "plFile/hsFiles.h"
void plExportDlgImp::IDoExport()
{

4
Sources/Tools/MaxMain/Pch.h

@ -61,7 +61,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsColorRGBA.h"
#include "plgDispatch.h"
#include "hsFastMath.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "hsGeometry3.h"
#include "pnKeyedObject/plKey.h"
#include "plLoadMask.h"
@ -108,4 +108,4 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
// Python
#include <Python.h>
#endif // _MaxMain_Pch_inc_
#endif // _MaxMain_Pch_inc_

2
Sources/Tools/MaxMain/main.cpp

@ -41,7 +41,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "hsTemplates.h"
#include "MaxComponent/plComponentMgr.h"

2
Sources/Tools/MaxMain/plAgeDescInterface.cpp

@ -40,7 +40,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "hsStream.h"
#include "hsTemplates.h"
#include "hsWindows.h"

2
Sources/Tools/MaxMain/plPythonMgr.cpp

@ -40,7 +40,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/
#include "HeadSpin.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#include "plgDispatch.h"
#include "hsWindows.h"

2
Sources/Tools/plResBrowser/plResBrowserWndProc.cpp

@ -53,7 +53,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plResMgr/plResManager.h"
#include "plResMgr/plResMgrSettings.h"
#include "plWinRegistryTools.h"
#include "hsFiles.h"
#include "plFile/hsFiles.h"
#define IDC_REGTREEVIEW 1000

Loading…
Cancel
Save