psxact/src/psxact.cpp
2016-11-25 00:39:20 -07:00

30 lines
544 B
C++

#include "bus.hpp"
#include "cpu/cpu_core.hpp"
#include "dma/dma_core.hpp"
#include "gpu/gpu_core.hpp"
#include "renderer.hpp"
int main(int argc, char *argv[]) {
if (argc != 3) {
return -1;
}
freopen("C:/Users/Adam.Becker/stdout.log", "w", stdout);
std::string bios_file_name(argv[1]);
std::string game_file_name(argv[2]);
cpu::initialize();
bus::initialize(bios_file_name, game_file_name);
renderer::initialize();
while (renderer::render()) {
cpu::run(33868800 / 60);
}
renderer::destroy();
return 0;
}