Fix builds for non-Win32

This commit is contained in:
Chris Burgener 2016-09-01 20:09:56 -04:00
parent 7ca90872fb
commit 78d1af4b50
2 changed files with 14 additions and 1 deletions

View File

@ -1190,6 +1190,12 @@ else()
ext/disarm.cpp)
endif()
if (NOT MOBILE_DEVICE)
set(CoreExtra ${CoreExtra}
Core/AVIDump.cpp
Core/AVIDump.h)
endif()
if(ARMV7)
set(CORE_NEON Core/Util/AudioFormatNEON.cpp Core/Util/AudioFormatNEON.h)
endif()

View File

@ -32,7 +32,9 @@
#include "Common/KeyMap.h"
#ifndef MOBILE_DEVICE
#include "Core/AVIDump.h"
#endif
#include "Core/Config.h"
#include "Core/CoreTiming.h"
#include "Core/CoreParameter.h"
@ -71,7 +73,9 @@
#include "Windows/MainWindow.h"
#endif
#ifndef MOBILE_DEVICE
AVIDump avi;
#endif
static bool frameStep_;
static int lastNumFlips;
@ -85,7 +89,7 @@ static void __EmuScreenVblank()
Core_EnableStepping(true);
lastNumFlips = gpuStats.numFlips;
}
#ifndef MOBILE_DEVICE
if (g_Config.bDumpFrames && !startDumping)
{
avi.Start(PSP_CoreParameter().renderWidth, PSP_CoreParameter().renderHeight);
@ -102,6 +106,7 @@ static void __EmuScreenVblank()
osm.Show("AVI Dump stopped.", 3.0f);
startDumping = false;
}
#endif
}
EmuScreen::EmuScreen(const std::string &filename)
@ -249,12 +254,14 @@ EmuScreen::~EmuScreen() {
// If we were invalid, it would already be shutdown.
PSP_Shutdown();
}
#ifndef MOBILE_DEVICE
if (g_Config.bDumpFrames && startDumping)
{
avi.Stop();
osm.Show("AVI Dump stopped.", 3.0f);
startDumping = false;
}
#endif
}
void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {