diff options
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/app_console.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/app_console.cpp b/src/main/app_console.cpp index 281454dc..a0ada735 100644 --- a/src/main/app_console.cpp +++ b/src/main/app_console.cpp @@ -55,12 +55,13 @@ void RegisterListDir() { int CmdPlayFile(int argc, char** argv) { static const std::string usage = "usage: play [file]"; - if (argc < 2 || argc > 3) { + if (argc != 2) { std::cout << usage << std::endl; return 1; } - sInstance->playback_->Play(toSdPath(argv[1])); + std::string path = "/"; + sInstance->playback_->Play(path + argv[1]); return 0; } |
