Subversion Repositories freemyipod

Rev

Rev 717 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 717 Rev 753
Line 41... Line 41...
41
    size_t size;
41
    size_t size;
42
    int fd;
42
    int fd;
43
    struct note *buf;
43
    struct note *buf;
44
    unsigned int i, count;
44
    unsigned int i, count;
45
 
45
 
46
    fd = file_open("/song.dat", O_RDONLY);
46
    fd = file_open("/.apps/beeper/song.dat", O_RDONLY);
47
    
47
    
48
    if (fd <= 0)
48
    if (fd <= 0)
49
    {
49
    {
50
        cputs(3, "Unable to open /song.dat!\n");
50
        cputs(3, "Unable to open /.apps/beeper/song.dat!\n");
51
        return;
51
        return;
52
    }
52
    }
53
    
53
    
54
    cputs(3, "File opened\n");
54
    cputs(3, "File opened\n");
55
    size = filesize(fd);
55
    size = filesize(fd);