Platfrom-specific initialisation

This commit is contained in:
Alexander Kojevnikov 2012-08-16 09:54:47 -07:00
parent 31df33c9da
commit c7f2715130
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class SpekPlatform
{
public:
// Platform-specific initialisation code.
void init();
static void init();
// Not quite XDG-compatible, but close enough.
static wxString config_path(const wxString& app_name);

View File

@ -20,6 +20,7 @@
#include <wx/log.h>
#include "spek-audio.h"
#include "spek-platform.hh"
#include "spek-preferences.hh"
#include "spek-window.hh"
@ -39,6 +40,7 @@ IMPLEMENT_APP(Spek)
bool Spek::OnInit()
{
SpekPlatform::init();
SpekPreferences::get().init();
spek_audio_init();