~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/c64/cart/supergames.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include "c64cart.h"
34
34
#include "c64cartmem.h"
 
35
#include "c64export.h"
35
36
#include "c64mem.h"
36
37
#include "supergames.h"
37
38
#include "types.h"
38
39
 
39
40
 
 
41
static const c64export_resource_t export_res = {
 
42
    "Super Games", 0, 1, 1, 1
 
43
};
 
44
 
 
45
 
40
46
void REGPARM2 supergames_io2_store(WORD addr, BYTE value)
41
47
{
42
48
    cartridge_romhbank_set(value & 3);
86
92
        if (fread(&rawcart[chipheader[0xb] << 14], 0x4000, 1, fd) < 1)
87
93
            return -1;
88
94
    }
 
95
 
 
96
    if (c64export_add(&export_res) < 0)
 
97
        return -1;
 
98
 
89
99
    return 0;
90
100
}
91
101
 
 
102
void supergames_detach(void)
 
103
{
 
104
    c64export_remove(&export_res);
 
105
}
 
106