all repos — mgba @ 8f66e290216250238db714268a0e6c83104cb78b

mGBA Game Boy Advance Emulator

Merge branch 'master' into medusa
Vicki Pfau vi@endrift.com
Thu, 06 Apr 2017 11:55:11 -0700
commit

8f66e290216250238db714268a0e6c83104cb78b

parent

2fa3b3089ac50b86b4e03f62dd7fe2eb82893847

M CHANGESCHANGES

@@ -39,6 +39,7 @@ - SDL: Fix race condition with audio thread when starting

- GB: Fix flickering when screen is strobed quickly - FFmpeg: Fix overflow and general issues with audio encoding - Core: Don't save state if core fails to serialize + - Qt: Fix crash when changing audio settings after a game is closed Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers

@@ -87,6 +88,7 @@ - Qt: Remove audio buffer sizing in AudioProcessorQt

- Qt: Re-enable QtMultimedia on Windows - FFmpeg: Return false if a file fails to open - FFmpeg: Force MP4 files to YUV420P + - Qt: Make "Mute" able to be bound to a key 0.5.2: (2016-12-31) Bugfixes:
M res/patrons.txtres/patrons.txt

@@ -1,7 +1,9 @@

-Trey Boyer -Christopher Cole +Jaime J. Denizard +Fog +Reilly Grant Philip Horton Jordan Jorgensen -Joshua Minor Rohit Nirmal +Rhys Powell +rootfather Yuri Kunde Schlesner
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -654,6 +654,7 @@ delete[] m_drawContext;

delete[] m_frontBuffer; m_threadContext.core->deinit(m_threadContext.core); + m_threadContext.core = nullptr; m_gameOpen = false; }

@@ -1236,7 +1237,7 @@ }

} void GameController::redoSamples(int samples) { - if (m_threadContext.core) { + if (m_gameOpen && m_threadContext.core) { m_threadContext.core->setAudioBufferSize(m_threadContext.core, samples); } m_audioProcessor->inputParametersChanged();
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -1338,11 +1338,12 @@

avMenu->addSeparator(); ConfigOption* mute = m_config->addOption("mute"); - mute->addBoolean(tr("Mute"), avMenu); + QAction* muteAction = mute->addBoolean(tr("Mute"), avMenu); mute->connect([this](const QVariant& value) { reloadConfig(); }, this); m_config->updateOption("mute"); + addControlledAction(avMenu, muteAction, "mute"); QMenu* target = avMenu->addMenu(tr("FPS target")); ConfigOption* fpsTargetOption = m_config->addOption("fpsTarget");
M src/platform/sdl/CMakeLists.txtsrc/platform/sdl/CMakeLists.txt

@@ -6,7 +6,6 @@ pkg_search_module(SDL2 sdl2)

if (SDL2_FOUND) set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS}) set(SDL_LIBRARY ${SDL2_LIBRARIES}) - set(SDLMAIN_LIBRARY "") link_directories(${SDL2_LIBDIR}) set(SDL_VERSION_DEBIAN "2-2.0-0") endif()
M src/platform/sdl/main.csrc/platform/sdl/main.c

@@ -27,7 +27,6 @@ #include <SDL.h>

#include <errno.h> #include <signal.h> -#include <sys/time.h> #define PORT "sdl"

@@ -37,7 +36,7 @@

static int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args); int main(int argc, char** argv) { - struct mSDLRenderer renderer = {}; + struct mSDLRenderer renderer = {0}; struct mCoreOptions opts = { .useBios = true,