You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
700 B
28 lines
700 B
/* |
|
* Copyright (C) 2022 Riyyi |
|
* Copyright (C) 2022 Th3FrankXD |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#include "loader.h" |
|
#include "ruc/argparser.h" |
|
#include "ruc/format/print.h" |
|
#include "ruc/timer.h" |
|
#include <string_view> |
|
|
|
int main(int argc, const char* argv[]) |
|
{ |
|
std::string_view bootrom_path = "gbc_bios.bin"; |
|
std::string_view rom_path; |
|
|
|
ruc::ArgParser argParser; |
|
argParser.addOption(bootrom_path, 'b', "bootrom", nullptr, nullptr, "", ruc::ArgParser::Required::Yes); |
|
argParser.addOption(rom_path, 'r', "rom", nullptr, nullptr, "", ruc::ArgParser::Required::Yes); |
|
argParser.parse(argc, argv); |
|
|
|
Loader::the().setBootromPath(bootrom_path); |
|
Loader::the().loadRom(rom_path); |
|
|
|
return 0; |
|
}
|
|
|