mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
InputRecording: Use u32 for frames since that's what the core uses (warning fixes)
This commit is contained in:
@@ -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<PadData> 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)
|
||||
|
||||
@@ -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<PadData> 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;
|
||||
|
||||
Reference in New Issue
Block a user