allowing emulators to change method flags

This commit is contained in:
2026-04-27 20:14:34 +03:00
parent 72fd316310
commit 21eca5db92
4 changed files with 43 additions and 10 deletions

View File

@@ -480,7 +480,7 @@ int main(int argc, char **argv) {
nn_mountComponent(c, screen, -1, false);
nn_mountComponent(c, ocelotCard, -1, false);
//nn_mountComponent(c, tmpfs, -1, false);
nn_mountComponent(c, keyboard, -1, false);
nn_mountComponent(c, keyboard, -1, false);
nn_mountComponent(c, eepromCard, 0, false);
nn_mountComponent(c, managedfs, 1, false);
nn_mountComponent(c, gpuCard, 2, false);
@@ -619,6 +619,11 @@ skipDrawScreen:;
printf("error: %s\n", nn_getError(c));
goto cleanup;
}
e = nn_tickSynchronized(c);
if(e != NN_OK) {
printf("sync method error: %s\n", nn_getError(c));
goto cleanup;
}
nn_ComputerState state = nn_getComputerState(c);
if(state == NN_POWEROFF) break;