Commit d2d1c7d3 authored by Pierre Bürki's avatar Pierre Bürki
Browse files

Remove "file watcher"

parent 2334d8fb
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -179,8 +179,6 @@ void ofApp::setup(){
    capMesh.reSize(4);
    
	ofLog(OF_LOG_NOTICE) << "Setup over";

	lastSettingsWriteTime = boost::filesystem::last_write_time(networkSettingsPath);
}

//--------------------------------------------------------------
@@ -192,9 +190,6 @@ void ofApp::setupViewports(){
	device->setWidth(MENU_WIDTH / 2);
	device->setPosition(ofGetWidth() - MENU_WIDTH / 2, ofGetHeight() / 2);
#endif

	networkMng.panel->setWidth(MENU_WIDTH / 2);
	networkMng.panel->setPosition(ofGetWidth() - MENU_WIDTH / 2, 20);
}

#ifdef BLOB
@@ -249,8 +244,6 @@ void ofApp::update(){

	ofBackground(100, 100, 100);

	checkSettingsUpdate();

#ifdef BLOB
	if(realSense->update(ofxRealSenseTwo::PointCloud::VIDEO)) {

@@ -302,16 +295,6 @@ void ofApp::loadSettings()
#endif
}

void ofApp::checkSettingsUpdate() {
	std::time_t newLastWriteTime = boost::filesystem::last_write_time(networkSettingsPath);

	if (newLastWriteTime > lastSettingsWriteTime) {
		lastSettingsWriteTime = newLastWriteTime;

		loadSettings();
	}
}

void ofApp::draw() {
	ofSetColor(255, 255, 255);

+1 −5
Original line number Diff line number Diff line
@@ -170,10 +170,6 @@ public:
    void saveSettings();
    void loadSettings();  

    void checkSettingsUpdate();
    const boost::filesystem::path networkSettingsPath = ofFilePath::getAbsolutePath("broadcast.xml");
    std::time_t lastSettingsWriteTime;    

    //////////
    // HELP //
    //////////