make android ci apk build work, also launches and connects to tox
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
|
||||
#include "./start_screen.hpp"
|
||||
|
||||
#include <filesystem>
|
||||
#include <memory>
|
||||
#include <iostream>
|
||||
#include <string_view>
|
||||
@ -23,6 +24,11 @@ int main(int argc, char** argv) {
|
||||
args.push_back(argv[i]);
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
// change current working dir to internal storage
|
||||
std::filesystem::current_path(SDL_AndroidGetInternalStoragePath());
|
||||
#endif
|
||||
|
||||
// setup hints
|
||||
if (SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1") != SDL_TRUE) {
|
||||
std::cerr << "Failed to set '" << SDL_HINT_VIDEO_ALLOW_SCREENSAVER << "' to 1\n";
|
||||
|
Reference in New Issue
Block a user