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

« back to all changes in this revision

Viewing changes to src/c64/cart/epyxfastload.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 "epyxfastload.h"
36
37
#include "types.h"
37
38
 
38
39
 
 
40
static const c64export_resource_t export_res = {
 
41
    "Epyx Fastload", 0, 1, 0, 0
 
42
};
 
43
 
 
44
 
39
45
BYTE REGPARM1 epyxfastload_io2_read(WORD addr)
40
46
{
41
47
    if (addr == 0xdf18)
66
72
    if (fread(rawcart, 0x2000, 1, fd) < 1)
67
73
        return -1;
68
74
 
 
75
    if (c64export_add(&export_res) < 0)
 
76
        return -1;
 
77
 
69
78
    return 0;
70
79
}
71
80
 
 
81
void epyxfastload_detach(void)
 
82
{
 
83
    c64export_remove(&export_res);
 
84
}
 
85