Skip to content

Commit

Permalink
Fix Android
Browse files Browse the repository at this point in the history
  • Loading branch information
gameknife committed Dec 22, 2024
1 parent 7032744 commit baadc86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AndroidMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "Utilities/Console.hpp"
#include "Utilities/Exception.hpp"
#include "Options.hpp"
#include "Runtime/Application.hpp"
#include "Runtime/Engine.hpp"
#include <algorithm>
#include <cstdlib>
#include <fmt/format.h>
Expand All @@ -16,7 +16,7 @@
#include <android/log.h>
#include <game-activity/native_app_glue/android_native_app_glue.h>

std::unique_ptr<NextRendererApplication> GApplication = nullptr;
std::unique_ptr<NextEngine> GApplication = nullptr;


void handle_cmd(android_app* app, int32_t cmd) {
Expand All @@ -32,7 +32,7 @@ void handle_cmd(android_app* app, int32_t cmd) {

const char* argv[] = { "gkNextRenderer", "--renderer=1" };
GOption = new Options(2, argv);
GApplication.reset(new NextRendererApplication(*GOption, app->window));
GApplication.reset(new NextEngine(*GOption, app->window));
GApplication->Start();
}
break;
Expand Down

0 comments on commit baadc86

Please sign in to comment.