Skip to content

Commit

Permalink
Some more revisions to iOS version
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed May 22, 2018
1 parent d70dd05 commit b4088dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions core/src/io/anuke/mindustry/ui/dialogs/AboutDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public AboutDialog(){
ScrollPane pane = new ScrollPane(in, "clear");

for(LinkEntry link : Links.getLinks()){
if(ios && link.name.equals("google-play")){ //because Apple doesn't like me mentioning android
continue;
}

Table table = new Table("button");
table.margin(0);
table.table(img -> {
Expand Down
2 changes: 1 addition & 1 deletion ios/robovm.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ app.version=3.5
app.id=io.anuke.mindustry
app.mainclass=io.anuke.mindustry.IOSLauncher
app.executable=IOSLauncher
app.build=6
app.build=10
app.name=Mindustry
7 changes: 3 additions & 4 deletions ios/src/io/anuke/mindustry/IOSLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import io.anuke.mindustry.io.SaveIO;
import io.anuke.mindustry.io.Saves.SaveSlot;
import io.anuke.mindustry.net.Net;
import io.anuke.ucore.core.Timers;
import io.anuke.ucore.scene.ui.TextField;
import io.anuke.ucore.scene.ui.layout.Unit;
import io.anuke.ucore.util.Bundles;
Expand Down Expand Up @@ -116,10 +115,10 @@ public boolean didFinishLaunching(UIApplication application, UIApplicationLaunch
}

void openURL(NSURL url){
FileHandle file = Gdx.files.absolute(getDocumentsDirectory()).child(url.getLastPathComponent());
Gdx.files.absolute(url.getPath()).copyTo(file);

Timers.runTask(30f, () -> {
Gdx.app.postRunnable(() -> {
FileHandle file = Gdx.files.absolute(getDocumentsDirectory()).child(url.getLastPathComponent());
Gdx.files.absolute(url.getPath()).copyTo(file);

if(file.extension().equalsIgnoreCase("mins")){ //open save

Expand Down

0 comments on commit b4088dc

Please sign in to comment.