projects
/
multipass-eu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ab6836
)
Changed MSG_ID_SET_SONGNAME arguments.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 29 Apr 2005 14:31:53 +0000
(14:31 +0000)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 29 Apr 2005 14:31:53 +0000
(14:31 +0000)
src/message_handler.sma
patch
|
blob
|
history
diff --git
a/src/message_handler.sma
b/src/message_handler.sma
index ff3244093232ac298269402816c72afbb471a474..b956bbb799515a168da929ff5bc3e7326b34c181 100644
(file)
--- a/
src/message_handler.sma
+++ b/
src/message_handler.sma
@@
-1,4
+1,4
@@
-/* $Id: message_handler.sma 1
2005-04-19 09:41:42
Z tilman $ */
+/* $Id: message_handler.sma 1
9 2005-04-29 14:31:53
Z tilman $ */
#define MSG_ID_SET_SONGNAME 0
#define MSG_ID_SET_SONGNAME 0
@@
-6,12
+6,15
@@
public message (Msg_Type:type, id, ...)
{
switch (id) {
case MSG_ID_SET_SONGNAME: {
{
switch (id) {
case MSG_ID_SET_SONGNAME: {
- new buf[256], len;
+ new buf[256],
artist[128], title[128],
len;
- if (type != MSG_STRING)
+ if (type != MSG_STRING
_SET || numargs () != 4
)
return;
return;
- len = snprintf (buf, 256, "%s", getarg (2));
+ getsarg (2, artist, 128);
+ getsarg (3, title, 128);
+
+ len = snprintf (buf, 256, "%s - %s", artist, title);
set_songname (buf, len);
}
}
set_songname (buf, len);
}
}