- Changed the config file location to follow the freedesktop.org XDG Base Directory Specification. There is no point to be compatible with the old location since we haven't made a release yet.
This commit is contained in:
bgk 2008-09-26 17:23:12 +00:00
parent 1892a3ebb6
commit 2af55d0f0b
2 changed files with 7 additions and 7 deletions

View File

@ -10,12 +10,6 @@ SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts )
INCLUDE(CMakeScripts/CMakeDetermineASMCompiler.cmake)
INCLUDE(CMakeScripts/CMakeASMInformation.cmake)
# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m
# OS X users will have to compile and install SDL form source.
if( APPLE )
SET(SDLMAIN_LIBRARY "-lSDLmain")
endif( APPLE )
# The project's name is VBA-M it uses assembly, C and C++ code
PROJECT(VBA-M ASM C CXX)
@ -33,6 +27,12 @@ IF( NOT VERSION )
SET( VERSION "1.8.0-SVN" )
ENDIF( NOT VERSION )
# Fill in SDLMAIN_LIBRARY on OS X manually to avoid using SDLMain.m
# OS X users will have to compile and install SDL form source.
if( APPLE )
SET(SDLMAIN_LIBRARY "-lSDLmain")
endif( APPLE )
# Look for some dependencies using builtin CMake scripts
FIND_PACKAGE ( ZLIB REQUIRED )
FIND_PACKAGE ( PNG REQUIRED )

View File

@ -120,7 +120,7 @@ Window::Window(GtkWindow * _pstWindow, const Glib::RefPtr<Xml> & _poXml) :
// Get config
//
m_sUserDataDir = Glib::get_home_dir() + "/.gvba";
m_sUserDataDir = Glib::get_user_config_dir() + "/gvbam";
m_sConfigFile = m_sUserDataDir + "/config";
vInitConfig();