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

« back to all changes in this revision

Viewing changes to src/c64/cart/atomicpower.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
#include "atomicpower.h"
33
33
#include "c64cart.h"
34
34
#include "c64cartmem.h"
 
35
#include "c64export.h"
35
36
#include "types.h"
36
37
#include "util.h"
37
38
#include "vicii-phi1.h"
38
39
 
39
40
 
 
41
static const c64export_resource_t export_res = {
 
42
    "Action Power", 1, 1, 1, 1
 
43
};
 
44
 
40
45
/* Atomic Power RAM hack.  */
41
46
static int export_ram_at_a000 = 0;
42
47
 
140
145
        UTIL_FILE_LOAD_SKIP_ADDRESS) < 0)
141
146
        return -1;
142
147
 
 
148
    if (c64export_add(&export_res) < 0)
 
149
        return -1;
 
150
 
143
151
    return 0;
144
152
}
145
153
 
159
167
            return -1;
160
168
    }
161
169
 
 
170
    if (c64export_add(&export_res) < 0)
 
171
        return -1;
 
172
 
162
173
    return 0;
163
174
}
164
175
 
 
176
void atomicpower_detach(void)
 
177
{
 
178
    c64export_remove(&export_res);
 
179
}
 
180