Skip to content
  • 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