]> Shamusworld >> Repos - virtualjaguar/blob - src/log.cpp
bdbab62c4a8a366c4d6f551a5545f8ea7ddd8321
[virtualjaguar] / src / log.cpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 //////////////////////////////////////////////////////////////////////////////
4 //
5 //
6 //
7 //
8 //
9 //
10 //////////////////////////////////////////////////////////////////////////////
11
12 #include "include/log.h"
13
14 FILE    *log_stream=NULL;
15
16 //////////////////////////////////////////////////////////////////////////////
17 //
18 //////////////////////////////////////////////////////////////////////////////
19 //
20 //
21 //
22 //
23 //
24 //
25 //////////////////////////////////////////////////////////////////////////////
26 int log_init(char *path)
27 {
28         log_stream=fopen(path,"wrt");
29         if (log_stream==NULL)
30                 return(0);
31         return(1);
32 }
33 //////////////////////////////////////////////////////////////////////////////
34 //
35 //////////////////////////////////////////////////////////////////////////////
36 //
37 //
38 //
39 //
40 //
41 //
42 //////////////////////////////////////////////////////////////////////////////
43 FILE *log_get(void)
44 {
45         return(log_stream);
46 }
47 //////////////////////////////////////////////////////////////////////////////
48 //
49 //////////////////////////////////////////////////////////////////////////////
50 //
51 //
52 //
53 //
54 //
55 //
56 //////////////////////////////////////////////////////////////////////////////
57 void log_done(void)
58 {
59         fclose(log_stream);
60 }