Changeset 00fe6bb in mainline for uspace/app/tetris/scores.c


Ignore:
Timestamp:
2009-06-27T09:41:55Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6408be3
Parents:
1fbe064b
Message:

Automatically try to mount FAT from disk0 on /data upon boot. Save Tetris score there. Automatically create disk image in sample config files, if it does not already exist. This tentatively reaches the Milanstone (t.m.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/scores.c

    r1fbe064b r00fe6bb  
    203203        int rc;
    204204
    205         f = fopen("/tetris.sco", "rb");
     205        f = fopen("/data/tetris.sco", "rb");
    206206        if (f == NULL)
    207207                return ENOENT;
     
    222222        int rc;
    223223
    224         f = fopen("/tetris.sco", "wb");
     224        f = fopen("/data/tetris.sco", "wb");
    225225        cnt = fwrite(scores, sizeof(struct highscore), NUMSPOTS, f);
    226226        rc = fclose(f);
Note: See TracChangeset for help on using the changeset viewer.