mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
112e18a5d1
This used an invalid pointer, which was only valid within AddFrame. This drops a feature which shall dump the last frame as it might was dropped before. A good implementation however should "overwrite" the last frame if the time matches. But this needs to delay every frame a bit.
22 lines
473 B
C++
22 lines
473 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class AVIDump
|
|
{
|
|
private:
|
|
static bool CreateFile();
|
|
static void CloseFile();
|
|
static void CheckResolution(int width, int height);
|
|
|
|
public:
|
|
static bool Start(int w, int h);
|
|
static void AddFrame(const u8* data, int width, int height, int stride, u64 ticks);
|
|
static void Stop();
|
|
static void DoState();
|
|
};
|