mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Mocks are no longer needed
This commit is contained in:
parent
328c6db22e
commit
bd062dfe70
@ -1,59 +0,0 @@
|
||||
#ifndef __MOCKS_C64_H__
|
||||
#define __MOCKS_C64_H__
|
||||
|
||||
/* Network connection type */
|
||||
enum
|
||||
{
|
||||
NONE,
|
||||
CONNECT,
|
||||
MASTER,
|
||||
CLIENT
|
||||
};
|
||||
|
||||
class C64
|
||||
{
|
||||
public:
|
||||
C64()
|
||||
{
|
||||
this->have_a_break = false;
|
||||
}
|
||||
|
||||
void Pause()
|
||||
{
|
||||
this->have_a_break = true;
|
||||
}
|
||||
|
||||
void Resume()
|
||||
{
|
||||
this->have_a_break = false;
|
||||
}
|
||||
|
||||
bool IsPaused()
|
||||
{
|
||||
return this->have_a_break;
|
||||
}
|
||||
|
||||
void startFakeKeySequence(const char *what)
|
||||
{
|
||||
printf("Faking %s\n", what);
|
||||
}
|
||||
|
||||
void LoadSnapshot(const char *name)
|
||||
{
|
||||
printf("Loading savegame %s\n", name);
|
||||
}
|
||||
|
||||
void SaveSnapshot(const char *name)
|
||||
{
|
||||
printf("Saving savegame %s\n", name);
|
||||
}
|
||||
|
||||
int network_connection_type;
|
||||
|
||||
private:
|
||||
bool have_a_break;
|
||||
};
|
||||
|
||||
extern C64 *TheC64;
|
||||
|
||||
#endif /*__MOCKS_C64_H__ */
|
@ -1,9 +0,0 @@
|
||||
#ifndef __MOCKS_NETWORK_H__
|
||||
#define __MOCKS_NETWORK_H__
|
||||
|
||||
class Network
|
||||
{
|
||||
public:
|
||||
};
|
||||
|
||||
#endif /*__MOCKS_NETWORK_H__ */
|
@ -1,61 +0,0 @@
|
||||
#ifndef __MOCK_PREFS_HH__
|
||||
#define __MOCK_PREFS_HH__
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define SPEED_95 30
|
||||
#define SPEED_100 20
|
||||
#define SPEED_110 18
|
||||
|
||||
enum
|
||||
{
|
||||
/* ASCII values before these */
|
||||
JOY_NONE = 0,
|
||||
JOY_HORIZ = 256,
|
||||
JOY_VERT = 258,
|
||||
JOY_FIRE = 259,
|
||||
};
|
||||
|
||||
/* Insanely high, but the Wii has insanely many of these */
|
||||
#define MAX_JOYSTICK_AXES 32
|
||||
#define MAX_JOYSTICK_BUTTONS 32
|
||||
#define MAX_JOYSTICK_HATS 8
|
||||
|
||||
class Prefs
|
||||
{
|
||||
public:
|
||||
Prefs()
|
||||
{
|
||||
/* Set to NONE by default */
|
||||
memset(this->JoystickAxes, 0, sizeof(this->JoystickAxes));
|
||||
memset(this->JoystickButtons, 0, sizeof(this->JoystickButtons));
|
||||
memset(this->JoystickHats, 0, sizeof(this->JoystickHats));
|
||||
|
||||
strcpy(this->NetworkName, "Unset name");
|
||||
strcpy(this->NetworkServer, "play.c64-network.org");
|
||||
this->NetworkPort = 46214;
|
||||
|
||||
this->Emul1541Proc = 0;
|
||||
this->ShowLEDs = 0;
|
||||
this->DisplayOption = 0;
|
||||
this->MsPerFrame = SPEED_100;
|
||||
memset(this->DrivePath, 0, sizeof(this->DrivePath));
|
||||
}
|
||||
|
||||
char DrivePath[4][256]; // Path for drive 8..11
|
||||
|
||||
char NetworkName[32];
|
||||
char NetworkServer[128];
|
||||
int NetworkPort;
|
||||
int Emul1541Proc;
|
||||
int ShowLEDs;
|
||||
int DisplayOption;
|
||||
unsigned int MsPerFrame;
|
||||
|
||||
/* This is borrowed from UAE */
|
||||
int JoystickAxes[MAX_JOYSTICK_AXES];
|
||||
int JoystickHats[MAX_JOYSTICK_HATS];
|
||||
int JoystickButtons[MAX_JOYSTICK_BUTTONS];
|
||||
};
|
||||
|
||||
#endif /* __MOCK_PREFS_HH__ */
|
Loading…
Reference in New Issue
Block a user