mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-18 13:35:51 +00:00
added preset loader class, some work on other preset utils
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@226 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
29
src/projectM-engine/PresetLoader.cpp
Normal file
29
src/projectM-engine/PresetLoader.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
//
|
||||
// C++ Implementation: PresetLoader
|
||||
//
|
||||
// Description:
|
||||
//
|
||||
//
|
||||
// Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2007
|
||||
//
|
||||
// Copyright: See COPYING file that comes with this distribution
|
||||
//
|
||||
//
|
||||
#include "PresetLoader.hpp"
|
||||
#include <iostream>
|
||||
extern "C" {
|
||||
#include <errno.h>
|
||||
}
|
||||
|
||||
PresetLoader::PresetLoader(std::string pathame) {
|
||||
|
||||
// Initialize a directory watcher
|
||||
#ifdef LINUX
|
||||
if ((m_notifyFD = inotify_init()) == -1) {
|
||||
std::cerr << "[PresetLoader] failed to initialize inotify instance (error " << errno << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user