package ethanjones.modularworld.core.platform.android;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import ethanjones.modularworld.core.Branding;
import ethanjones.modularworld.core.compatibility.Compatibility;
import ethanjones.modularworld.core.events.EventHandler;
import ethanjones.modularworld.core.events.setting.AfterProcessSettingEvent;
import ethanjones.modularworld.core.settings.Settings;
import ethanjones.modularworld.graphics.AssetManager;

public class AndroidCompatibility extends Compatibility {

  protected AndroidCompatibility() {
    super(Application.ApplicationType.Android);
  }

  @EventHandler
  public void compatibilitySettings(AfterProcessSettingEvent event) {
    Settings.renderer_block_viewDistance.getIntegerSetting().setValue(0);
  }

  @Override
  public FileHandle getBaseFolder() {
    return Gdx.files.external(Branding.NAME);
  }

  @Override
  public FileHandle getWorkingFolder() {
    return Gdx.files.internal(".");
  }

  @Override
  public void getAssets(AssetManager assetManager) {
    super.extractAssets(assetManager);
  }
}

@@ -579,37 +579,112 @@
   pr
-otected AndroidCompatibility(
+ivate AndroidLauncher androidLauncher;%0A%0A  protected AndroidCompatibility(AndroidLauncher androidLauncher
 ) %7B%0A
@@ -731,16 +731,60 @@
 droid);%0A
+    this.androidLauncher = androidLauncher;%0A
   %7D%0A%0A  @
@@ -1219,14 +1219,10 @@
 per.
+g
 e
-xtrac
 tAss

Fix android compatibility