summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/interf.c
diff options
context:
space:
mode:
authorAnton Romanov <theli@rockbox.org>2006-09-25 09:44:10 +0000
committerAnton Romanov <theli@rockbox.org>2006-09-25 09:44:10 +0000
commitec2a5cce1a4e3609535a9ae902a80933fbb0f341 (patch)
treebd2874b573d5b29ba695e1f13c7ee5d908a473e6 /apps/plugins/zxbox/interf.c
parent52f4c4c82bb038f3704007016a5df1639c6af443 (diff)
downloadrockbox-ec2a5cce1a4e3609535a9ae902a80933fbb0f341.tar.gz
rockbox-ec2a5cce1a4e3609535a9ae902a80933fbb0f341.zip
yet more code cleanup, quick snapshot feature,sound should no longer crash,light optimizations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11041 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/zxbox/interf.c')
-rw-r--r--apps/plugins/zxbox/interf.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/plugins/zxbox/interf.c b/apps/plugins/zxbox/interf.c
index b57a46ab1f..8e39e35d39 100644
--- a/apps/plugins/zxbox/interf.c
+++ b/apps/plugins/zxbox/interf.c
@@ -32,7 +32,10 @@ char msgbuf[MAXMSGLEN];
32char *spif_get_filename(void) 32char *spif_get_filename(void)
33{ 33{
34 char *name=NULL; 34 char *name=NULL;
35/* char *name, *s; 35#if 0
36/* should be implemented when adding ability */
37/* to open snapshots from within zxbox */
38 char *name, *s;
36 39
37 s = get_filename_line(); 40 s = get_filename_line();
38 for(; *s && isspace((int) *s); s++); 41 for(; *s && isspace((int) *s); s++);
@@ -44,7 +47,7 @@ char *spif_get_filename(void)
44 printf("Canceled!\n"); 47 printf("Canceled!\n");
45 return NULL; 48 return NULL;
46 } 49 }
47*/ 50#endif
48 return name; 51 return name;
49} 52}
50 53
@@ -52,7 +55,11 @@ char *spif_get_tape_fileinfo(int *startp, int *nump)
52{ 55{
53 *startp=*nump=0; 56 *startp=*nump=0;
54 char *name=NULL; 57 char *name=NULL;
55 /* char *name, *s; 58#if 0
59/* should be implemented when adding ability */
60/* to tapes snapshots from within zxbox */
61
62 char *name, *s;
56 int res; 63 int res;
57 64
58 s = get_filename_line(); 65 s = get_filename_line();
@@ -81,14 +88,14 @@ char *spif_get_tape_fileinfo(int *startp, int *nump)
81 88
82 if(res < 2) *startp = -1; 89 if(res < 2) *startp = -1;
83 if(res < 3) *nump = -1; 90 if(res < 3) *nump = -1;
84*/ 91#endif
85 return name; 92 return name;
86} 93}
87 94
88void put_msg(const char *msg) 95void put_msg(const char *msg)
89{ 96{
90#ifndef USE_GRAY 97#ifndef USE_GRAY
91 rb->splash (HZ/10,true , msg ); 98 rb->splash (HZ/2,true , msg );
92#else 99#else
93 LOGF(msg); 100 LOGF(msg);
94 (void)msg; 101 (void)msg;