This project is mirrored from https://*****@github.com/libretro/vbam-libretro.git. Pull mirroring updated .
  1. 27 Aug, 2017 4 commits
    • Rafael Kitover's avatar
      fix rebuilds on git changes · 2179215a
      Rafael Kitover authored
      Use cmake to generate the version.h from version.h.in which is a cleaned
      up version of the old version.h with the git short sha into the build
      directory, and include the version.h from there.
      
      Continue to use the GetGitRevisionDescription plugin to make the cmake
      configuration state depend on the current sha of HEAD, but throw away
      the results (for the time being.)
      
      This makes rebuilds after git changes such as a commit only recompile a
      couple of files instead of the whole tree.
      2179215a
    • Zach Bacon's avatar
      Say good bye to cairo · 23ed930d
      Zach Bacon authored
      23ed930d
    • Zach Bacon's avatar
    • Rafael Kitover's avatar
      "no throttle" fixes/cleanups · 1a8f2f98
      Rafael Kitover authored
      `throttle == 0` is supposed to emulate at full speed and drop audio
      data, this is different from `throttle == 100` which is emulation
      throttled at normal speed, the default setting.
      
      Fix the recently rewritten SoundSDL sound driver to make `throttle == 0`
      work, and make some minor changes to clean up the relevant code in the
      XAudio2 sound driver.
      1a8f2f98
  2. 17 Aug, 2017 2 commits
    • Rafael Kitover's avatar
      document how to provide symbolic backtraces · 9bca4f72
      Rafael Kitover authored
      Add a "REPORTING CRASH BUGS" section to the README.md with instructions
      for how to provide a symbolic backtrace on Linux and MSYS2.
      
      Add a "Crash bugs" section the the issue template with a link to said
      README.md section.
      9bca4f72
    • Rafael Kitover's avatar
      cleanup SoundSDL #139 #130 #97 #67 #65 #46 #47 · 1e3a85a3
      Rafael Kitover authored
      Rewrite SoundSDL (the SDL sound driver).
      
      Clean up the code and eliminate all deadlocks/hangs/crashes (hopefully.)
      
      Many of the deadlocks were caused by initialize() not de-initializing
      properly and causing the audio callback thread to deadlock, fix this.
      
      Also use better logic for the semaphore controls, which will also
      hopefully increase audio quality.
      
      Use better logic for the throttle control, with throttle == 0 being the
      same as throttle == 100 and implement setThrottle().
      
      Also increase the buffer size to 300ms and the number of samples to
      2048, for hopefully less choppiness in audio overall.
      1e3a85a3
  3. 16 Aug, 2017 4 commits
  4. 15 Aug, 2017 1 commit
    • Rafael Kitover's avatar
      temp fix for deadlocks in SoundSDL on pause #139 · 03a20820
      Rafael Kitover authored
      SDL_PauseAudioDevice seems to be causing thread deadlocks in combination
      with Wx threads (e.g. on menu activation or modal dialogs.)
      
      Remove these calls from SoundSDL::pause() and SoundSDL::resume() for the
      time being so that deadlocks do not happen.
      
      This effectively allows pausing, but on resume there is no sound for 2-3
      seconds until the buffer is filled again.
      
      This will need a proper fix at a later time.
      03a20820
  5. 14 Aug, 2017 1 commit
  6. 09 Aug, 2017 3 commits
    • Rafael Kitover's avatar
      fix memory viewer xrc on wx 3.1+ #127 · fb15aed2
      Rafael Kitover authored
      Remove the wxALIGN_CENTRE_VERTICAL flag from items that have the
      wxEXPAND flag in the MemViewer.xrc because wx 3.1+ warns about the flags
      being incompatible.
      fb15aed2
    • Rafael Kitover's avatar
      let cmake escape -D preproc. definitions · 1d0eece0
      Rafael Kitover authored
      As cmake now warns when policies are set to OLD, change the CMP0005
      policy to NEW.
      
      What this does is have cmake escape -D preprocessor definitions passed
      to e.g. add_definitions() starting in cmake 2.6 . This is fine since the
      minimum cmake version we support is 2.8.12 . It also makes the code
      cleaner since we don't have to escape quotes anymore ourselves. This
      will also work better on different platforms, where different escapes
      may be needed.
      
      Remove all quote escapes from string params to add_definitions() for
      this policy change to work.
      1d0eece0
    • Avindra Goolcharan's avatar
      SUSE Lint: fix a few classes of warnings #136 · 0bdbcf31
      Avindra Goolcharan authored
      - drop unused variables
      
      - unused-but-set-variable
      
      - stray trailing comments
      
      - in viewsupt.cpp replace redundant expression with variable that holds the same value
      0bdbcf31
  7. 08 Aug, 2017 1 commit
    • Avindra Goolcharan's avatar
      fix errors reported by SUSE's post-build linter · dd91abf7
      Avindra Goolcharan authored
      In StartRFUSocket() in gba/GBALink.cpp move a postincrement out of an
      expression to a following statement, because the evaluation order is
      undefined.
      
      In GetDevices() in wx/openal.cpp replace an #else with an #endif so that
      the function has a default return statement visible to the linter.
      
      In FilterThread::Entry() add a `return 0;` (ExitCode) statement at the
      end even though it is probably never reached.
      
      In the TransferToWindow() for the positive double validator widget in
      wx/widgets/wxmisc.cpp add a default `return true;`, for the rare case
      there is no double value, in which case the string representation would
      be displayed (since it is a subclass of wxGenericValidator(wxString&) .)
      dd91abf7
  8. 04 Aug, 2017 1 commit
  9. 03 Aug, 2017 1 commit
  10. 03 Jun, 2017 2 commits
  11. 24 May, 2017 1 commit
  12. 12 May, 2017 9 commits
  13. 11 May, 2017 6 commits
  14. 05 May, 2017 1 commit
    • Rafael Kitover's avatar
      Add #include <cmath> for std::ceil() #113 · fed6f238
      Rafael Kitover authored
      A couple files that use the std::ceil() math ceiling function were not
      including the required header <cmath> and this seemed to have been
      causing build errors on some Linux distributions.
      
      Add the necessary #include <cmath> statement to both files.
      fed6f238
  15. 27 Apr, 2017 3 commits
    • Rafael Kitover's avatar
      fix portability issue with strerror_r() · 01dd7cef
      Rafael Kitover authored
      If _GNU_SOURCE is defined on linux, then strerror_r() is an alternate,
      non-POSIX version.
      
      Undefine _GNU_SOURCE when including <string.h> in ConfigManager.cpp to
      get the POSIX version of strerror_r(), and initialize the error string
      buffer to "unknown error" so that the code does not crash whichever
      version of the library function is being used, or strerror_r() fails for
      some reason.
      01dd7cef
    • Rafael Kitover's avatar
      SDL: fix deflt bat saving, improve dir checking · 05555a23
      Rafael Kitover authored
      By default the SDL port tried to save the battery to a nonexistant
      directory in saveDir, because if (saveDir) {...} evaluted to true since
      saveDir was a non-NULL pointer but empty.
      
      Change sdlCheckDirectory to return a bool indicating if the directory is
      good or not, and if not set screenShotDir, saveDir and batteryDir to
      NULL so that code that checks for their existance works correctly.
      05555a23
    • Rafael Kitover's avatar
      SDL: improve error msg for unwritable config #105 · 02a1e38e
      Rafael Kitover authored
      Following up on 1ba2eefe which fixed a crash caused by trying to write to
      a NULL FILE* due to fopen() failure: write the error message to stderr
      instead of trace.log and show the OS error using strerror_r().
      02a1e38e