akmenu-next/arm9/source/launcher/ILauncher.h
lifehackerhansol 95ff08bdc6
launcher: tell user when loader is missing
At the moment it will just do nothing and go back to menu; instead
print a hopefully helpful text that the file is missing.
2024-10-14 17:12:41 -07:00

23 lines
534 B
C++

/*
Copyright (C) 2024 lifehackerhansol
SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <nds/ndstypes.h>
#include "../language.h"
#include "../ui/msgbox.h"
static inline void printLoaderNotFound(std::string loaderPath) {
akui::messageBox(NULL, LANG("loader", "not found"), loaderPath, MB_OK);
}
class ILauncher {
public:
virtual ~ILauncher() {}
virtual bool launchRom(std::string romPath, std::string savePath, u32 flags, u32 cheatOffset,
u32 cheatSize) = 0;
};