]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/android/mainthread.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / android / mainthread.h
index 22309eee3d3d2ca47584573210ebb7a8935f7234..9ce9428568c5bada1529c762e6b2fa04fdeb3ca3 100644 (file)
@@ -20,10 +20,10 @@ public:
        sigc::signal<void, AInputQueue *> signal_input_queue_destroyed;
 
 private:
-       ANativeActivity *activity;
-       AAssetManager *asset_manager;
+       ANativeActivity *activity = nullptr;
+       AAssetManager *asset_manager = nullptr;
        FS::Path int_data_path;
-       bool starting_up;
+       bool starting_up = true;
        Mutex startup_mutex;
 
 public:
@@ -34,6 +34,7 @@ public:
        void wait_for_app_created();
        void resume_startup();
 
+       JavaVM *get_java_vm() const;
        AAssetManager *get_asset_manager() const { return asset_manager; }
        const FS::Path &get_internal_data_path() const { return int_data_path; }