o add missing files
This commit is contained in:
26
tools/bsnes/system/config/config.cpp
Executable file
26
tools/bsnes/system/config/config.cpp
Executable file
@@ -0,0 +1,26 @@
|
||||
#ifdef SYSTEM_CPP
|
||||
|
||||
Configuration config;
|
||||
|
||||
Configuration::Configuration() {
|
||||
controller_port1 = Input::DeviceJoypad;
|
||||
controller_port2 = Input::DeviceJoypad;
|
||||
expansion_port = System::ExpansionBSX;
|
||||
region = System::Autodetect;
|
||||
|
||||
cpu.version = 2;
|
||||
cpu.ntsc_clock_rate = 21477272;
|
||||
cpu.pal_clock_rate = 21281370;
|
||||
cpu.alu_mul_delay = 2;
|
||||
cpu.alu_div_delay = 2;
|
||||
cpu.wram_init_value = 0x55;
|
||||
|
||||
smp.ntsc_clock_rate = 32041 * 768;
|
||||
smp.pal_clock_rate = 32041 * 768;
|
||||
|
||||
ppu1.version = 1;
|
||||
ppu2.version = 3;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
33
tools/bsnes/system/config/config.hpp
Executable file
33
tools/bsnes/system/config/config.hpp
Executable file
@@ -0,0 +1,33 @@
|
||||
struct Configuration {
|
||||
unsigned controller_port1;
|
||||
unsigned controller_port2;
|
||||
unsigned expansion_port;
|
||||
unsigned region;
|
||||
|
||||
struct CPU {
|
||||
unsigned version;
|
||||
unsigned ntsc_clock_rate;
|
||||
unsigned pal_clock_rate;
|
||||
unsigned alu_mul_delay;
|
||||
unsigned alu_div_delay;
|
||||
unsigned wram_init_value;
|
||||
} cpu;
|
||||
|
||||
struct SMP {
|
||||
unsigned ntsc_clock_rate;
|
||||
unsigned pal_clock_rate;
|
||||
} smp;
|
||||
|
||||
struct PPU1 {
|
||||
unsigned version;
|
||||
} ppu1;
|
||||
|
||||
struct PPU2 {
|
||||
unsigned version;
|
||||
} ppu2;
|
||||
|
||||
Configuration();
|
||||
};
|
||||
|
||||
extern Configuration config;
|
||||
|
||||
Reference in New Issue
Block a user