git » fp-git.git » commit 33a35e4

added output init and stop

author ecalot
2004-06-20 16:42:05 UTC
committer ecalot
2004-06-20 16:42:05 UTC
parent 3148bb950f371bf9d617649e4a6222cc5ac4697c

added output init and stop

FP/src/ker/kernel.c +4 -1

diff --git a/FP/src/ker/kernel.c b/FP/src/ker/kernel.c
index 0c1187d..a69d217 100644
--- a/FP/src/ker/kernel.c
+++ b/FP/src/ker/kernel.c
@@ -32,6 +32,7 @@ resources.h: Princed Resources : Resource Handler headers
 
 #include "kernel.h"
 #include "resources.h"
+#include "output.h"
 
 int kernel(int optionflag,int level) {
 /* levels=-1 is default
@@ -42,7 +43,8 @@ int kernel(int optionflag,int level) {
 	
 	tData* testResource;
 	int i;
-			
+	
+	outputInit();
 	printf("Hello, I'm a dummy kernel, I was called to do the stuff\nwith '%x' options and go to the level '%d'\n",optionflag,level);
 	testResource=resLoad(RES_ANIM_RUN_LEFT);	
 	
@@ -63,6 +65,7 @@ int kernel(int optionflag,int level) {
 		printf("frame %d: size=%d\n",i,((tMemory*)(testResource->pFrames[i]))->size);
 	}
 	
+	outputStop();
 	return 0;
 }