1 |
|
/* |
2 |
|
* C64.cpp - Put the pieces together |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
4 |
> |
* Frodo Copyright (C) Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
103 |
|
memset(RAM1541, 0, DRIVE_RAM_SIZE); |
104 |
|
|
105 |
|
// Open joystick drivers if required |
106 |
< |
open_close_joysticks(false, false, ThePrefs.Joystick1On, ThePrefs.Joystick2On); |
106 |
> |
open_close_joysticks(0, 0, ThePrefs.Joystick1Port, ThePrefs.Joystick2Port); |
107 |
|
joykey = 0xff; |
108 |
|
|
109 |
– |
#ifdef FRODO_SC |
109 |
|
CycleCounter = 0; |
111 |
– |
#endif |
110 |
|
|
111 |
|
// System-dependent things |
112 |
|
c64_ctor2(); |
119 |
|
|
120 |
|
C64::~C64() |
121 |
|
{ |
122 |
< |
open_close_joysticks(ThePrefs.Joystick1On, ThePrefs.Joystick2On, false, false); |
122 |
> |
open_close_joysticks(ThePrefs.Joystick1Port, ThePrefs.Joystick2Port, 0, 0); |
123 |
|
|
124 |
|
delete TheJob1541; |
125 |
|
delete TheREU; |
177 |
|
|
178 |
|
void C64::NewPrefs(Prefs *prefs) |
179 |
|
{ |
180 |
< |
open_close_joysticks(ThePrefs.Joystick1On, ThePrefs.Joystick2On, prefs->Joystick1On, prefs->Joystick2On); |
180 |
> |
open_close_joysticks(ThePrefs.Joystick1Port, ThePrefs.Joystick2Port, prefs->Joystick1Port, prefs->Joystick2Port); |
181 |
|
PatchKernal(prefs->FastReset, prefs->Emul1541Proc); |
182 |
|
|
183 |
|
TheDisplay->NewPrefs(prefs); |
711 |
|
#endif |
712 |
|
|
713 |
|
#ifdef __unix |
714 |
< |
#include "C64_x.h" |
714 |
> |
# if defined(QTOPIA) or defined(MAEMO) |
715 |
> |
# include "C64_Embedded.h" |
716 |
> |
# else |
717 |
> |
# include "C64_x.h" |
718 |
> |
# endif |
719 |
|
#endif |
720 |
|
|
721 |
|
#ifdef __mac__ |