diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/xbox/MakeGameData/MakeScenes.cpp | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'utils/xbox/MakeGameData/MakeScenes.cpp')
| -rw-r--r-- | utils/xbox/MakeGameData/MakeScenes.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/utils/xbox/MakeGameData/MakeScenes.cpp b/utils/xbox/MakeGameData/MakeScenes.cpp new file mode 100644 index 0000000..4077978 --- /dev/null +++ b/utils/xbox/MakeGameData/MakeScenes.cpp @@ -0,0 +1,40 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: .360 file creation of Choreo VCD files +// +//=====================================================================================// + +#include "MakeGameData.h" +#include "sceneimage.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +class CDefaultStatus : public ISceneCompileStatus +{ +public: + virtual void UpdateStatus( char const *pchSceneName, bool bQuiet, int nIndex, int nCount ) + { + if ( !bQuiet ) + { + Msg( "Scenes: Compiling: %s\n", pchSceneName ); + } + } +}; + +bool CreateSceneImageFile( char const *pchModPath, bool bWriteToZip, bool bLittleEndian, bool bQuiet, DiskWriteMode_t eWriteModeForConversions ) +{ + CUtlBuffer targetBuffer; + + const char *pFilename = bLittleEndian ? "scenes/scenes.image" : "scenes/scenes.360.image"; + + CDefaultStatus statusHelper; + + bool bSuccess = g_pSceneImage->CreateSceneImageFile( targetBuffer, pchModPath, bLittleEndian, bQuiet, &statusHelper ); + if ( bSuccess ) + { + bSuccess = WriteBufferToFile( pFilename, targetBuffer, bWriteToZip, eWriteModeForConversions ); + } + + return bSuccess; +}
\ No newline at end of file |