diff foosdk/sdk/foobar2000/SDK/commandline.cpp @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/foosdk/sdk/foobar2000/SDK/commandline.cpp	Mon Jan 05 02:15:46 2026 -0500
@@ -0,0 +1,16 @@
+#include "foobar2000-sdk-pch.h"
+
+#include "commandline.h"
+#include "metadb.h"
+#include "console.h"
+
+void commandline_handler_metadb_handle::on_file(const char * url) {
+	metadb_handle_list handles;
+	try {
+		metadb_io::get()->path_to_handles_simple(url, handles);
+	} catch(std::exception const & e) {
+		console::complain("Path evaluation failure", e);
+		return;
+	}
+	for(t_size walk = 0; walk < handles.get_size(); ++walk) on_file(handles[walk]);
+}