More changes

This commit is contained in:
godzil
2012-01-30 23:37:10 +00:00
parent 8e99ac85ff
commit 211b1f86c8
55 changed files with 3171 additions and 759 deletions

View File

@@ -15,6 +15,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <os_dependent.h>
#include <plugins/manager.h>
typedef struct Plugin_
@@ -44,10 +46,10 @@ void plugin_list()
{
Plugin *ptr = &(Plugins[0]);
int i = 1;
printf("Available plugins:\n");
console_printf(Console_Default, "Available plugins:\n");
while(ptr->name != NULL)
{
printf("%d - %s\n", i, ptr->name);
console_printf(Console_Default, "%d - %s\n", i, ptr->name);
ptr++; i++;
}
}
@@ -57,11 +59,11 @@ int plugin_load(int id)
Plugin *ptr = &(Plugins[0]);
int i = id;
printf("%s(%d)", __func__, id);
console_printf(Console_Default, "%s(%d)", __func__, id);
for ( ; i > 1 && ptr->name != NULL; i -- )
{
printf("%d - %s\n", i, ptr->name);
console_printf(Console_Default, "%d - %s\n", i, ptr->name);
ptr ++;
}