Merge branch 'master' into medusa

This commit is contained in:
Vicki Pfau 2017-04-06 11:55:11 -07:00
commit 8f66e29021
6 changed files with 12 additions and 8 deletions

View File

@ -39,6 +39,7 @@ Bugfixes:
- GB: Fix flickering when screen is strobed quickly - GB: Fix flickering when screen is strobed quickly
- FFmpeg: Fix overflow and general issues with audio encoding - FFmpeg: Fix overflow and general issues with audio encoding
- Core: Don't save state if core fails to serialize - Core: Don't save state if core fails to serialize
- Qt: Fix crash when changing audio settings after a game is closed
Misc: Misc:
- SDL: Remove scancode key input - SDL: Remove scancode key input
- GBA Video: Clean up unused timers - GBA Video: Clean up unused timers
@ -87,6 +88,7 @@ Misc:
- Qt: Re-enable QtMultimedia on Windows - Qt: Re-enable QtMultimedia on Windows
- FFmpeg: Return false if a file fails to open - FFmpeg: Return false if a file fails to open
- FFmpeg: Force MP4 files to YUV420P - FFmpeg: Force MP4 files to YUV420P
- Qt: Make "Mute" able to be bound to a key
0.5.2: (2016-12-31) 0.5.2: (2016-12-31)
Bugfixes: Bugfixes:

View File

@ -1,7 +1,9 @@
Trey Boyer Jaime J. Denizard
Christopher Cole Fog
Reilly Grant
Philip Horton Philip Horton
Jordan Jorgensen Jordan Jorgensen
Joshua Minor
Rohit Nirmal Rohit Nirmal
Rhys Powell
rootfather
Yuri Kunde Schlesner Yuri Kunde Schlesner

View File

@ -654,6 +654,7 @@ void GameController::cleanGame() {
delete[] m_frontBuffer; delete[] m_frontBuffer;
m_threadContext.core->deinit(m_threadContext.core); m_threadContext.core->deinit(m_threadContext.core);
m_threadContext.core = nullptr;
m_gameOpen = false; m_gameOpen = false;
} }
@ -1236,7 +1237,7 @@ void GameController::updateKeys() {
} }
void GameController::redoSamples(int samples) { void GameController::redoSamples(int samples) {
if (m_threadContext.core) { if (m_gameOpen && m_threadContext.core) {
m_threadContext.core->setAudioBufferSize(m_threadContext.core, samples); m_threadContext.core->setAudioBufferSize(m_threadContext.core, samples);
} }
m_audioProcessor->inputParametersChanged(); m_audioProcessor->inputParametersChanged();

View File

@ -1338,11 +1338,12 @@ void Window::setupMenu(QMenuBar* menubar) {
avMenu->addSeparator(); avMenu->addSeparator();
ConfigOption* mute = m_config->addOption("mute"); ConfigOption* mute = m_config->addOption("mute");
mute->addBoolean(tr("Mute"), avMenu); QAction* muteAction = mute->addBoolean(tr("Mute"), avMenu);
mute->connect([this](const QVariant& value) { mute->connect([this](const QVariant& value) {
reloadConfig(); reloadConfig();
}, this); }, this);
m_config->updateOption("mute"); m_config->updateOption("mute");
addControlledAction(avMenu, muteAction, "mute");
QMenu* target = avMenu->addMenu(tr("FPS target")); QMenu* target = avMenu->addMenu(tr("FPS target"));
ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget"); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget");

View File

@ -6,7 +6,6 @@ if (SDL_VERSION EQUAL "2")
if (SDL2_FOUND) if (SDL2_FOUND)
set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS}) set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS})
set(SDL_LIBRARY ${SDL2_LIBRARIES}) set(SDL_LIBRARY ${SDL2_LIBRARIES})
set(SDLMAIN_LIBRARY "")
link_directories(${SDL2_LIBDIR}) link_directories(${SDL2_LIBDIR})
set(SDL_VERSION_DEBIAN "2-2.0-0") set(SDL_VERSION_DEBIAN "2-2.0-0")
endif() endif()

View File

@ -27,7 +27,6 @@
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <sys/time.h>
#define PORT "sdl" #define PORT "sdl"
@ -37,7 +36,7 @@ static void mSDLDeinit(struct mSDLRenderer* renderer);
static int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args); static int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args);
int main(int argc, char** argv) { int main(int argc, char** argv) {
struct mSDLRenderer renderer = {}; struct mSDLRenderer renderer = {0};
struct mCoreOptions opts = { struct mCoreOptions opts = {
.useBios = true, .useBios = true,