commit c7f2715130055ffafea162d05549c371d5ed1cbd
parent 31df33c9da9446ced92e0f16c8510673c89e7a4e
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date: Thu, 16 Aug 2012 09:54:47 -0700
Platfrom-specific initialisation
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/spek-platform.hh b/src/spek-platform.hh
@@ -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);
diff --git a/src/spek.cc b/src/spek.cc
@@ -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();