chore: set default scale to 3

This commit is contained in:
Amish K. Naidu 2022-08-21 20:29:55 +05:30
parent eec6d79cd0
commit e57870d7ab
2 changed files with 5 additions and 3 deletions

View file

@ -42,7 +42,7 @@ int main(int argc, char** argv)
<< "Usage: SimpleNES [options] rom-path\n\n"
<< "Options:\n"
<< "-h, --help Print this help text and exit\n"
<< "-s, --scale Set video scale. Default: 2.\n"
<< "-s, --scale Set video scale. Default: 3.\n"
<< " Scale of 1 corresponds to " << sn::NESVideoWidth << "x" << sn::NESVideoHeight << std::endl
<< "-w, --width Set the width of the emulation screen (height is\n"
<< " set automatically to fit the aspect ratio)\n"
@ -98,7 +98,9 @@ int main(int argc, char** argv)
if (path.empty())
{
std::cout << "Argument required: ROM path" << std::endl;
return 1;
path = "Super Mario Bros. 3 (USA).nes";
path = "NEStress.NES";
// return 1;
}
sn::parseControllerConf("keybindings.conf", p1, p2);

View file

@ -10,7 +10,7 @@ namespace sn
Emulator::Emulator() :
m_cpu(m_bus),
m_ppu(m_pictureBus, m_emulatorScreen),
m_screenScale(2.f),
m_screenScale(3.f),
m_cycleTimer(),
m_cpuCycleDuration(std::chrono::nanoseconds(559))
{