akmenu-next/arm9/source/launcher/ILauncher.h
Kei c14071457d Rework build steps & small icons
- Rework how the package is built
- Added small icons view mode
- Fixed view mode not being saved
- Reverted DSiWare support (User is notified instead)
- Autoboot files are now part of the repo
- Added option to force DS-Only mode.
- Added new default theme
2025-04-27 00:41:21 +01:00

31 lines
787 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);
}
static inline void printMessage(std::string infoMsg) {
akui::messageBox(NULL, LANG("loader", "info"), infoMsg, MB_OK);
}
static inline void printError(std::string errorMsg) {
akui::messageBox(NULL, LANG("loader", "error"), errorMsg, MB_OK);
}
class ILauncher {
public:
virtual ~ILauncher() {}
virtual bool launchRom(std::string romPath, std::string savePath, u32 flags, u32 cheatOffset,
u32 cheatSize) = 0;
};