Wii-U-Firmware-Emulator/src/main.cpp
linkmauve 70974277af
debugger: Use libreadline for the prompt (#11)
* debugger: Use libreadline for the prompt

This fixes the issue where ^D would put the debugger into an infinite
loop, and adds support for persistent history, with familiar
keybindings.

I originally tried to make this new dependency optional, but your
usage of make doesn’t really tend itself to this, feel free to tell me
if you prefer another option.

Co-authored-by: Yannik Marchand <ymarchand@me.com>
2021-12-01 08:14:07 +01:00

16 lines
265 B
C++

#include "emulator.h"
#include "history.h"
#include "common/logger.h"
int main(int argc, const char *argv[]) {
Logger::init(Logger::DEBUG);
History::init();
Emulator *emulator = new Emulator();
emulator->run();
delete emulator;
return 0;
}