Merge pull request #3995 from RisingFog/remove_vi_movie_playback
Remove VI count limit on Movie playback
This commit is contained in:
commit
6204a813fd
|
@ -901,13 +901,12 @@ void UpdateTitle()
|
|||
std::string SFPS;
|
||||
|
||||
if (Movie::IsPlayingInput())
|
||||
SFPS = StringFromFormat("VI: %u/%u - Input: %u/%u - FPS: %.0f - VPS: %.0f - %.0f%%",
|
||||
(u32)Movie::g_currentFrame, (u32)Movie::g_totalFrames,
|
||||
(u32)Movie::g_currentInputCount, (u32)Movie::g_totalInputCount, FPS,
|
||||
VPS, Speed);
|
||||
SFPS = StringFromFormat("Input: %u/%u - VI: %u - FPS: %.0f - VPS: %.0f - %.0f%%",
|
||||
(u32)Movie::g_currentInputCount, (u32)Movie::g_totalInputCount,
|
||||
(u32)Movie::g_currentFrame, FPS, VPS, Speed);
|
||||
else if (Movie::IsRecordingInput())
|
||||
SFPS = StringFromFormat("VI: %u - Input: %u - FPS: %.0f - VPS: %.0f - %.0f%%",
|
||||
(u32)Movie::g_currentFrame, (u32)Movie::g_currentInputCount, FPS, VPS,
|
||||
SFPS = StringFromFormat("Input: %u - VI: %u - FPS: %.0f - VPS: %.0f - %.0f%%",
|
||||
(u32)Movie::g_currentInputCount, (u32)Movie::g_currentFrame, FPS, VPS,
|
||||
Speed);
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1035,10 +1035,10 @@ void LoadInput(const std::string& filename)
|
|||
{
|
||||
afterEnd = true;
|
||||
PanicAlertT("Warning: You loaded a save that's after the end of the current movie. (byte %u "
|
||||
"> %u) (frame %u > %u). You should load another save before continuing, or load "
|
||||
"> %u) (input %u > %u). You should load another save before continuing, or load "
|
||||
"this state with read-only mode off.",
|
||||
(u32)s_currentByte + 256, (u32)s_totalBytes + 256, (u32)g_currentFrame,
|
||||
(u32)g_totalFrames);
|
||||
(u32)s_currentByte + 256, (u32)s_totalBytes + 256, (u32)g_currentInputCount,
|
||||
(u32)g_totalInputCount);
|
||||
}
|
||||
else if (s_currentByte > 0 && s_totalBytes > 0)
|
||||
{
|
||||
|
@ -1134,7 +1134,7 @@ void LoadInput(const std::string& filename)
|
|||
// NOTE: CPU Thread
|
||||
static void CheckInputEnd()
|
||||
{
|
||||
if (g_currentFrame > g_totalFrames || s_currentByte >= s_totalBytes ||
|
||||
if (s_currentByte >= s_totalBytes ||
|
||||
(CoreTiming::GetTicks() > s_totalTickCount && !IsRecordingInputFromSaveState()))
|
||||
{
|
||||
EndPlayInput(!s_bReadOnly);
|
||||
|
|
|
@ -312,7 +312,9 @@ void Renderer::DrawDebugText()
|
|||
{
|
||||
final_cyan += StringFromFormat("Frame: %llu", (unsigned long long)Movie::g_currentFrame);
|
||||
if (Movie::IsPlayingInput())
|
||||
final_cyan += StringFromFormat(" / %llu", (unsigned long long)Movie::g_totalFrames);
|
||||
final_cyan +=
|
||||
StringFromFormat("\nInput: %llu / %llu", (unsigned long long)Movie::g_currentInputCount,
|
||||
(unsigned long long)Movie::g_totalInputCount);
|
||||
}
|
||||
|
||||
final_cyan += "\n";
|
||||
|
|
Loading…
Reference in New Issue