summaryrefslogtreecommitdiff
path: root/src/app_console/app_console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_console/app_console.cpp')
-rw-r--r--src/app_console/app_console.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp
index 3e2d8067..6faa27d0 100644
--- a/src/app_console/app_console.cpp
+++ b/src/app_console/app_console.cpp
@@ -112,17 +112,13 @@ int CmdPlayFile(int argc, char** argv) {
database::TrackId id = std::atoi(argv[1]);
AppConsole::sTrackQueue->AddLast(id);
} else {
- // TODO.
- /*
std::ostringstream path;
path << '/' << argv[1];
for (int i = 2; i < argc; i++) {
path << ' ' << argv[i];
}
- events::Dispatch<audio::PlayFile, audio::AudioState>(
- audio::PlayFile{.filename = path.str()});
- */
+ events::Audio().Dispatch(audio::PlayFile{.filename = path.str()});
}
return 0;