From 5fe9a2c430fac2cde129b2628fb5ce94ed5bc01b Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Sun, 21 Feb 2010 19:58:54 +0200 Subject: [PATCH] Warn on non-dispatchable ECI calls --- Changelog.utf8 | 1 + org/jpc/pluginsbase/Plugins.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Changelog.utf8 b/Changelog.utf8 index 2323ef2..a012388 100644 --- a/Changelog.utf8 +++ b/Changelog.utf8 @@ -14,6 +14,7 @@ Changes since JPC-RR Release 8: - HUD support framework. - New HUD primitive: Box. - New HUD primitive: Bitmap. +- Print warnings on non-dispatchable ECI calls. Changes from JPC-RR Release 8 to JPC-RR Release 8.1: ==================================================== diff --git a/org/jpc/pluginsbase/Plugins.java b/org/jpc/pluginsbase/Plugins.java index 9a3838f..ca18e0b 100644 --- a/org/jpc/pluginsbase/Plugins.java +++ b/org/jpc/pluginsbase/Plugins.java @@ -315,6 +315,8 @@ public class Plugins boolean done = false; for(Plugin plugin : plugins) done = done || invokeCommand(plugin, cmd, args, false); + if(!done) + System.err.println("Warning: ECI invocation '" + cmd + "' not delivereble."); } //Invoke the external command interface. @@ -323,6 +325,8 @@ public class Plugins boolean done = false; for(Plugin plugin : plugins) done = done || invokeCommand(plugin, cmd, args, true); + if(!done) + System.err.println("Warning: Synchronous ECI invocation '" + cmd + "' not delivereble."); } //Invoke the external command interface. @@ -335,6 +339,7 @@ public class Plugins if(valueReturned) return returnValueObj; } + System.err.println("Warning: ECI call '" + cmd + "' not delivereble."); return null; } -- 2.11.4.GIT