• Show log

    Commit

  • Hash : 658975f3
    Author : Sam Lantinga
    Date : 2017-08-11T11:32:00

    Fixed bug 3639 - SDL_GetPrefPath returns a path with two consecutive slashes on Unix if org is omitted Fabian Greffrath we use SDL_GetPrefPath() in Chocolate Doom to get a reasonable directory to save and restore config files and savegames: https://github.com/chocolate-doom/chocolate-doom/blob/sdl2-branch/src/m_config.c#L2162 However, since there is no "organization" behind Chocolate Doom and there is really only one "product" called Chocolate Doom, we pass an empty string for the org parameter and the package string for app. This leads to two consecutive slashes in the path returned by SDL_GetPrefPath() like this: /home/user/.local/share//chocolate-doom/ While this is harmless, it sure looks bad. I believe that it should be possible to either pass a NULL pointer for the org parameter or at least have the function detect an empty string as a means to express "there is no origanization, just a single product". The generation of the path string to be returned by the function will have to get adapted accordingly.

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_w thodg_m thodg_l kc3_lang_org thodg www_kmx_io
    Tags

  • README

  • These are test programs for the SDL library:
    
    	checkkeys	Watch the key events to check the keyboard
    	loopwave	Audio test -- loop playing a WAV file
    	loopwavequeue	Audio test -- loop playing a WAV file with SDL_QueueAudio
    	testaudioinfo	Lists audio device capabilities
    	testerror	Tests multi-threaded error handling
    	testfile	Tests RWops layer
    	testgl2		A very simple example of using OpenGL with SDL
    	testiconv	Tests international string conversion
    	testjoystick	List joysticks and watch joystick events
    	testkeys	List the available keyboard keys
    	testloadso	Tests the loadable library layer
    	testlock	Hacked up test of multi-threading and locking
    	testmultiaudio	Tests using several audio devices
    	testoverlay2	Tests the overlay flickering/scaling during playback.
    	testplatform	Tests types, endianness and cpu capabilities
    	testsem		Tests SDL's semaphore implementation
    	testshape	Tests shaped windows
    	testsprite2	Example of fast sprite movement on the screen
    	testthread	Hacked up test of multi-threading
    	testtimer	Test the timer facilities
    	testver		Check the version and dynamic loading and endianness
    	testwm2		Test window manager -- title, icon, events
    	torturethread	Simple test for thread creation/destruction
    	controllermap   Useful to generate Game Controller API compatible maps
    
    
    
    This directory contains sample.wav, which is a sample from Will Provost's
    song, The Living Proof:
    
         From the album The Living Proof
         Publisher: 5 Guys Named Will
         Copyright 1996 Will Provost
    
    You can get a copy of the full song (and album!) from iTunes...
    
        https://itunes.apple.com/us/album/the-living-proof/id4153978
    
    or Amazon...
    
        http://www.amazon.com/The-Living-Proof-Will-Provost/dp/B00004R8RH
    
    Thanks to Will for permitting us to distribute this sample with SDL!