iOS driver: Add doc comments
This commit is contained in:
@@ -4,12 +4,14 @@ extern "C" {
|
||||
#include "ios_driver.h"
|
||||
}
|
||||
|
||||
// Apple's Foundation headers define some macros globablly that create issues with our own code, so remove the definitions
|
||||
#undef ABS
|
||||
#undef NO
|
||||
|
||||
#include <memory>
|
||||
#include "emulator.hpp"
|
||||
|
||||
// The Objective-C++ bridge functions must be exported without name mangling in order for the SwiftUI frontend to be able to call them
|
||||
#define IOS_EXPORT extern "C" __attribute__((visibility("default")))
|
||||
|
||||
std::unique_ptr<Emulator> emulator = nullptr;
|
||||
@@ -22,6 +24,7 @@ IOS_EXPORT void iosCreateEmulator() {
|
||||
hidService = &emulator->getServiceManager().getHID();
|
||||
emulator->initGraphicsContext(nullptr);
|
||||
|
||||
// TODO: Add game selection on iOS frontend
|
||||
auto path = emulator->getAppDataRoot() / "toon_shading.elf";
|
||||
emulator->loadROM(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user