mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-07 15:52:59 +12:00
More iOS progress
This commit is contained in:
parent
1948bea209
commit
9bc50a4b9c
6 changed files with 67 additions and 26 deletions
|
@ -15,7 +15,7 @@ extern "C" {
|
|||
std::unique_ptr<Emulator> emulator = nullptr;
|
||||
HIDService* hidService = nullptr;
|
||||
|
||||
extern "C" __attribute__((visibility("default"))) void iosCreateEmulator() {
|
||||
IOS_EXPORT void iosCreateEmulator() {
|
||||
printf("Creating emulator\n");
|
||||
|
||||
emulator = std::make_unique<Emulator>();
|
||||
|
@ -23,12 +23,14 @@ extern "C" __attribute__((visibility("default"))) void iosCreateEmulator() {
|
|||
emulator->initGraphicsContext(nullptr);
|
||||
|
||||
// auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds";
|
||||
// auto path = emulator->getAppDataRoot() / "Kirb Demo.3ds";
|
||||
|
||||
auto path = emulator->getAppDataRoot() / "SimplerTri.elf";
|
||||
emulator->loadROM(path);
|
||||
|
||||
while (1) {
|
||||
emulator->runFrame();
|
||||
}
|
||||
|
||||
printf("Created emulator\n");
|
||||
}
|
||||
|
||||
IOS_EXPORT void iosRunFrame(void* drawable, void* drawableTexture) {
|
||||
emulator->getRenderer()->setMTKDrawable(drawable, drawableTexture);
|
||||
emulator->runFrame();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue