Skip to content

Commit

Permalink
[Windows] Select video output from GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Risca committed May 5, 2013
1 parent 1337ee7 commit f39ab9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions confighandler_windows.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
#include "confighandler_windows.h"

ConfigHandler_windows::~ConfigHandler_windows()
{
unMount();
}
#include <QDir>
#include <QDebug>

bool ConfigHandler_windows::implemented()
{
return false;
return true;
}

bool ConfigHandler_windows::mount(const QString &device)
{
return false;
// Windows defaults to mounted, but we can at least save the path
filename = device + "config.txt";
if (!QDir().exists(filename)) {
qDebug() << "Could not find config:" << filename;
return false;
}
return true;
}

void ConfigHandler_windows::unMount()
{
// We don't unmount stuff on windows
}
2 changes: 1 addition & 1 deletion confighandler_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ConfigHandler_windows : public ConfigHandler
{
public:
ConfigHandler_windows() {}
~ConfigHandler_windows();
~ConfigHandler_windows() {}

bool implemented();
bool mount(const QString &device);
Expand Down

0 comments on commit f39ab9b

Please sign in to comment.