Adapt C++ backend to changes

This commit adapts the C++ backend to the Kotlin frontend by moving to usage of file descriptors and, provides an interface to access frontend code via JNI which is used to check the state of the activity and catch events such as surface destruction. In addition, this commit fixes some minor linting errors and changes the CMake version to 3.10.2+.
This commit is contained in:
◱ PixelyIon
2019-12-02 23:10:53 +05:30
committed by ◱ PixelyIon
parent e4dc602f4d
commit b3e811d488
17 changed files with 163 additions and 144 deletions

View File

@ -30,13 +30,14 @@ namespace skyline::kernel {
* @param settings An instance of the Settings class
* @param window The ANativeWindow object to draw the screen to
*/
OS(std::shared_ptr<Logger> &logger, std::shared_ptr<Settings> &settings, ANativeWindow *window);
OS(std::shared_ptr<JvmManager>& jvmManager, std::shared_ptr<Logger> &logger, std::shared_ptr<Settings> &settings);
/**
* @brief Execute a particular ROM file. This launches the main process and calls the NCE class to handle execution.
* @param romFile The path to the ROM file to execute
* @param romFd A FD to the ROM file to execute
* @param romType The type of the ROM file
*/
void Execute(const std::string &romFile);
void Execute(const int romFd, const TitleFormat romType);
/**
* @brief Creates a new process