mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 12:31:40 +12:00
Embed LuaJIT part 1
This commit is contained in:
parent
c0e3d6d7dd
commit
b908f3efc1
7 changed files with 99 additions and 2 deletions
|
@ -82,11 +82,13 @@ Emulator::Emulator()
|
|||
}
|
||||
}
|
||||
|
||||
lua.initialize();
|
||||
reset(ReloadOption::NoReload);
|
||||
}
|
||||
|
||||
Emulator::~Emulator() {
|
||||
config.save(std::filesystem::current_path() / "config.toml");
|
||||
lua.close();
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
||||
discordRpc.stop();
|
||||
|
@ -357,6 +359,8 @@ void Emulator::run() {
|
|||
|
||||
if (path.extension() == ".amiibo") {
|
||||
loadAmiibo(path);
|
||||
} else if (path.extension() == ".lua") {
|
||||
lua.loadFile(droppedDir);
|
||||
} else {
|
||||
loadROM(path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue