cmake build system + OS X support / cleanups for Humble Release #8
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <SDL2/SDL_filesystem.h>
|
||||
|
||||
#include <boost/program_options/options_description.hpp>
|
||||
#include <boost/program_options/parsers.hpp>
|
||||
#include <boost/program_options/variables_map.hpp>
|
||||
|
@ -46,7 +48,13 @@ Config::Config()
|
|||
solidFonts(false),
|
||||
gameFolder("."),
|
||||
allowSymlinks(false)
|
||||
{}
|
||||
{
|
||||
char *dataDir = SDL_GetBasePath();
|
||||
if (dataDir) {
|
||||
gameFolder = dataDir;
|
||||
SDL_free(dataDir);
|
||||
}
|
||||
}
|
||||
|
||||
void Config::read()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue