From a75edaf80e8beb394e2b64b4ff18b4de5f9fca01 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 28 Nov 2003 21:17:49 +0000 Subject: [PATCH] GetSysInfo --- .../Sound/RageSoundDriver_ALSA9_Software.cpp | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp index 3851512857..548a9f9fb3 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp @@ -8,6 +8,8 @@ #include "RageTimer.h" #include "ALSA9Dynamic.h" +#include "archutils/Unix/GetSysInfo.h" + #include #include @@ -153,30 +155,6 @@ int RageSound_ALSA9_Software::GetPosition(const RageSound *snd) const return pcm->GetPosition(); } -#include - -static void GetKernel( CString &sys, int &vers ) -{ - utsname uts; - uname( &uts ); - - sys = uts.sysname; - vers = 0; - - if( sys == "Linux" ) - { - static Regex ver( "([0-9]+)\\.([0-9]+)\\.([0-9]+)" ); - vector matches; - if( ver.Compare(uts.release, matches) ) - { - ASSERT( matches.size() >= 2 ); - int major = atoi(matches[0]); - int minor = atoi(matches[1]); - int revision = atoi(matches[2]); - vers = (major << 16) + (minor << 8) + (revision); - } - } -} RageSound_ALSA9_Software::RageSound_ALSA9_Software() {