diff --git a/pcsx2/Recording/InputRecordingFile.cpp b/pcsx2/Recording/InputRecordingFile.cpp index e4d7bd0992..d3b856e6a9 100644 --- a/pcsx2/Recording/InputRecordingFile.cpp +++ b/pcsx2/Recording/InputRecordingFile.cpp @@ -66,12 +66,12 @@ const std::string& InputRecordingFile::getFilename() const noexcept return m_filename; } -unsigned long InputRecordingFile::getTotalFrames() const noexcept +u32 InputRecordingFile::getTotalFrames() const noexcept { return m_totalFrames; } -unsigned long InputRecordingFile::getUndoCount() const noexcept +u32 InputRecordingFile::getUndoCount() const noexcept { return m_undoCount; } @@ -237,7 +237,7 @@ std::vector InputRecordingFile::bulkReadPadData(u32 frameStart, u32 fra } // TODO - no multi-tap support - for (uint64_t currFrame = frameStart; currFrame < frameEnd; currFrame++) + for (u32 currFrame = frameStart; currFrame < frameEnd; currFrame++) { const auto padData = readPadData(currFrame, port, 0); if (padData) diff --git a/pcsx2/Recording/InputRecordingFile.h b/pcsx2/Recording/InputRecordingFile.h index fe25c1aafc..732f372837 100644 --- a/pcsx2/Recording/InputRecordingFile.h +++ b/pcsx2/Recording/InputRecordingFile.h @@ -68,8 +68,8 @@ public: // Retrieve the input recording's filename (not the path) const std::string& getFilename() const noexcept; - unsigned long getTotalFrames() const noexcept; - unsigned long getUndoCount() const noexcept; + u32 getTotalFrames() const noexcept; + u32 getUndoCount() const noexcept; void logRecordingMetadata(); std::vector bulkReadPadData(u32 frameStart, u32 frameEnd, const uint port); @@ -92,8 +92,8 @@ private: bool m_savestate = false; // An signed 32-bit frame limit is equivalent to 1.13 years of continuous 60fps footage - unsigned long m_totalFrames = 0; - unsigned long m_undoCount = 0; + u32 m_totalFrames = 0; + u32 m_undoCount = 0; // Calculates the position of the current frame in the input recording size_t getRecordingBlockSeekPoint(const u32 frame) const noexcept;