~ubuntu-branches/ubuntu/precise/mame/precise-proposed

« back to all changes in this revision

Viewing changes to src/lib/formats/g64_dsk.c

  • Committer: Package Import Robot
  • Author(s): Cesare Falco
  • Date: 2011-11-30 18:50:10 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111130185010-02hcxybht1mn082w
Tags: 0.144-0ubuntu1
* New upstream release (LP: #913550)
* mame.install:
  - Added artwork/ images to be used with -effect switch
  - Be more selective with hash/ contents
* contrib/mame.ini: added /usr/share/games/mame/artwork/ to artpath

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    INLINE FUNCTIONS
48
48
***************************************************************************/
49
49
 
50
 
INLINE struct g64dsk_tag *get_tag(floppy_image *floppy)
 
50
INLINE struct g64dsk_tag *get_tag(floppy_image_legacy *floppy)
51
51
{
52
52
        return (g64dsk_tag *)floppy_tag(floppy);
53
53
}
66
66
    of heads in the disk image
67
67
-------------------------------------------------*/
68
68
 
69
 
static int g64_get_heads_per_disk(floppy_image *floppy)
 
69
static int g64_get_heads_per_disk(floppy_image_legacy *floppy)
70
70
{
71
71
        return get_tag(floppy)->heads;
72
72
}
76
76
    of DOS tracks in the disk image
77
77
-------------------------------------------------*/
78
78
 
79
 
static int g64_get_tracks_per_disk(floppy_image *floppy)
 
79
static int g64_get_tracks_per_disk(floppy_image_legacy *floppy)
80
80
{
81
81
        return get_tag(floppy)->tracks;
82
82
}
86
86
    the disk image for a given track
87
87
-------------------------------------------------*/
88
88
 
89
 
static floperr_t get_track_offset(floppy_image *floppy, int head, int track, UINT64 *offset)
 
89
static floperr_t get_track_offset(floppy_image_legacy *floppy, int head, int track, UINT64 *offset)
90
90
{
91
91
        struct g64dsk_tag *tag = get_tag(floppy);
92
92
        UINT64 offs = 0;
106
106
    g64_get_track_size - returns the track size
107
107
-------------------------------------------------*/
108
108
 
109
 
static UINT32 g64_get_track_size(floppy_image *floppy, int head, int track)
 
109
static UINT32 g64_get_track_size(floppy_image_legacy *floppy, int head, int track)
110
110
{
111
111
        /* get track offset */
112
112
        UINT64 track_offset;
128
128
    disk image
129
129
-------------------------------------------------*/
130
130
 
131
 
static floperr_t g64_read_track(floppy_image *floppy, int head, int track, UINT64 offset, void *buffer, size_t buflen)
 
131
static floperr_t g64_read_track(floppy_image_legacy *floppy, int head, int track, UINT64 offset, void *buffer, size_t buflen)
132
132
{
133
133
        struct g64dsk_tag *tag = get_tag(floppy);
134
134
        floperr_t err;
164
164
    disk image
165
165
-------------------------------------------------*/
166
166
 
167
 
static floperr_t g64_write_track(floppy_image *floppy, int head, int track, UINT64 offset, const void *buffer, size_t buflen)
 
167
static floperr_t g64_write_track(floppy_image_legacy *floppy, int head, int track, UINT64 offset, const void *buffer, size_t buflen)
168
168
{
169
169
        return FLOPPY_ERROR_UNSUPPORTED;
170
170
}