iOS driver: Add doc comments
This commit is contained in:
@@ -4,12 +4,14 @@ extern "C" {
|
|||||||
#include "ios_driver.h"
|
#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 ABS
|
||||||
#undef NO
|
#undef NO
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "emulator.hpp"
|
#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")))
|
#define IOS_EXPORT extern "C" __attribute__((visibility("default")))
|
||||||
|
|
||||||
std::unique_ptr<Emulator> emulator = nullptr;
|
std::unique_ptr<Emulator> emulator = nullptr;
|
||||||
@@ -22,6 +24,7 @@ IOS_EXPORT void iosCreateEmulator() {
|
|||||||
hidService = &emulator->getServiceManager().getHID();
|
hidService = &emulator->getServiceManager().getHID();
|
||||||
emulator->initGraphicsContext(nullptr);
|
emulator->initGraphicsContext(nullptr);
|
||||||
|
|
||||||
|
// TODO: Add game selection on iOS frontend
|
||||||
auto path = emulator->getAppDataRoot() / "toon_shading.elf";
|
auto path = emulator->getAppDataRoot() / "toon_shading.elf";
|
||||||
emulator->loadROM(path);
|
emulator->loadROM(path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user