diff options
Diffstat (limited to 'src/KingSystem/System/VideoRecorder.cpp')
| -rw-r--r-- | src/KingSystem/System/VideoRecorder.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/KingSystem/System/VideoRecorder.cpp b/src/KingSystem/System/VideoRecorder.cpp new file mode 100644 index 00000000..53430f92 --- /dev/null +++ b/src/KingSystem/System/VideoRecorder.cpp @@ -0,0 +1,18 @@ +#include "KingSystem/System/VideoRecorder.h" + +namespace ksys { + +SEAD_SINGLETON_DISPOSER_IMPL(VideoRecorder) + +void VideoRecorder::postCalc() { + if (!isCaptureEnabled()) + return; + u32 framenum = mFrameNumber; + sead::FixedSafeString<0x100> output; + output.format("%s/%04d.tga", mFilename.cstr(), framenum); + agl::utl::ScreenShotMgr::instance()->reserveCaptureWithDebugHeap( + true, agl::TextureDataSerializerTGA::TGAFormat::_1, output, false); + mFrameNumber++; +} + +} // namespace ksys
\ No newline at end of file |
