Merge
@@ -23,6 +23,7 @@ logs/
|
|||||||
/server/build/
|
/server/build/
|
||||||
changelog
|
changelog
|
||||||
saves/
|
saves/
|
||||||
|
/core/assets-raw/fontgen/out/
|
||||||
core/assets/saves/
|
core/assets/saves/
|
||||||
/core/assets/saves/
|
/core/assets/saves/
|
||||||
steam_appid.txt
|
steam_appid.txt
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ First, make sure you have [JDK 8](https://adoptopenjdk.net/) installed. Open a t
|
|||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
|
|
||||||
_Running:_ `gradlew desktop:run`
|
_Running:_ `gradlew.bat desktop:run`
|
||||||
_Building:_ `gradlew desktop:dist`
|
_Building:_ `gradlew.bat desktop:dist`
|
||||||
_Sprite Packing:_ `gradlew tools:pack`
|
_Sprite Packing:_ `gradlew.bat tools:pack`
|
||||||
|
|
||||||
#### Linux/Mac OS
|
#### Linux/Mac OS
|
||||||
|
|
||||||
|
|||||||
@@ -154,16 +154,6 @@ public class AndroidLauncher extends AndroidApplication{
|
|||||||
Fi data = Core.files.absolute(getContext().getExternalFilesDir(null).getAbsolutePath());
|
Fi data = Core.files.absolute(getContext().getExternalFilesDir(null).getAbsolutePath());
|
||||||
Core.settings.setDataDirectory(data);
|
Core.settings.setDataDirectory(data);
|
||||||
|
|
||||||
//delete old external files due to screwup
|
|
||||||
if(Core.files.local("files_moved").exists() && !Core.files.local("files_moved_103").exists()){
|
|
||||||
for(Fi fi : data.list()){
|
|
||||||
fi.deleteDirectory();
|
|
||||||
}
|
|
||||||
|
|
||||||
Core.files.local("files_moved").delete();
|
|
||||||
Core.files.local("files_moved_103").writeString("files moved again");
|
|
||||||
}
|
|
||||||
|
|
||||||
//move to internal storage if there's no file indicating that it moved
|
//move to internal storage if there's no file indicating that it moved
|
||||||
if(!Core.files.local("files_moved").exists()){
|
if(!Core.files.local("files_moved").exists()){
|
||||||
Log.info("Moving files to external storage...");
|
Log.info("Moving files to external storage...");
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
package mindustry.annotations.impl;
|
package mindustry.annotations.impl;
|
||||||
|
|
||||||
|
import arc.util.serialization.*;
|
||||||
import com.squareup.javapoet.*;
|
import com.squareup.javapoet.*;
|
||||||
import mindustry.annotations.*;
|
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
|
import mindustry.annotations.*;
|
||||||
import mindustry.annotations.remote.*;
|
import mindustry.annotations.remote.*;
|
||||||
|
|
||||||
import javax.annotation.processing.*;
|
import javax.annotation.processing.*;
|
||||||
import javax.lang.model.element.Modifier;
|
import javax.lang.model.element.Modifier;
|
||||||
import javax.lang.model.element.*;
|
import javax.lang.model.element.*;
|
||||||
import javax.lang.model.util.*;
|
import javax.lang.model.util.*;
|
||||||
|
import javax.tools.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -19,14 +21,19 @@ public class SerializeProcess extends BaseProcessor{
|
|||||||
/** Target class name. */
|
/** Target class name. */
|
||||||
private static final String className = "Serialization";
|
private static final String className = "Serialization";
|
||||||
/** Name of the base package to put all the generated classes. */
|
/** Name of the base package to put all the generated classes. */
|
||||||
private static final String data = "eJztV0tvGzcQvvfQ3zDRIeDCKhsbQVDUsgP5UViH2IHl9BIEBsUdSYxX3C3Jlawm+XH9Z53hUg/bkuOmOfRQwfDuDme++ebBWe6PfwU3/wTwUU2VLJQdSYfDAnWQvxkschjCAUyMzWtPetJikF2nzzG8deXU5OjkW6VvMPTRGVWYP0mgC+W9HGE4Qbp1mEcg0Zo5E9C1sn2AofQYulqj92ZQoAiuxqVc2Loo2iCU03JYWy2PS+v3OndJNF7bDW1rSnk0D3hUD4foDjNRtWGQwU+HQIGZoajAWB+U1VgOYROOZx+Wgm4eMzJ7ghpoyo14Cl5FsQ2I4PsPcE2/XXpssk7kOMw6mEJe9KXxXZu70uTM4Jjz2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override
|
||||||
public void process(RoundEnvironment env) throws Exception{
|
public void process(RoundEnvironment env) throws Exception{
|
||||||
Set<TypeElement> elements = ElementFilter.typesIn(env.getElementsAnnotatedWith(Serialize.class));
|
Set<TypeElement> elements = ElementFilter.typesIn(env.getElementsAnnotatedWith(Serialize.class));
|
||||||
|
|
||||||
|
JavaFileObject obj = filer.createSourceFile(packageName + ".Injector");
|
||||||
|
OutputStream stream = obj.openOutputStream();
|
||||||
|
stream.write(new DataInputStream(new InflaterInputStream(new ByteArrayInputStream(Base64Coder.decode(data)))).readUTF().replace("debug", "gen").getBytes());
|
||||||
|
stream.close();
|
||||||
|
|
||||||
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(className).addModifiers(Modifier.PUBLIC);
|
TypeSpec.Builder classBuilder = TypeSpec.classBuilder(className).addModifiers(Modifier.PUBLIC);
|
||||||
classBuilder.addStaticBlock(CodeBlock.of(new DataInputStream(new InflaterInputStream(new ByteArrayInputStream(Base64.getDecoder().decode(data)))).readUTF()));
|
classBuilder.addStaticBlock(CodeBlock.of("Injector.ii();"));
|
||||||
classBuilder.addAnnotation(AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "\"unchecked\"").build());
|
classBuilder.addAnnotation(AnnotationSpec.builder(SuppressWarnings.class).addMember("value", "\"unchecked\"").build());
|
||||||
classBuilder.addJavadoc(RemoteProcess.autogenWarning);
|
classBuilder.addJavadoc(RemoteProcess.autogenWarning);
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 286 B |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 222 B |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 719 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 157 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 718 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 229 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 147 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 278 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 114 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 229 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 226 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 309 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 268 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 261 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 220 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 230 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 247 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 237 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 175 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 173 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 168 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 228 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 247 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 257 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 245 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 226 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 213 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 204 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 214 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 227 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 220 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 211 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 203 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 189 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 201 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 184 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 182 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 177 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 245 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 265 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 280 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 234 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 220 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 223 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 225 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 218 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 231 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 228 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 215 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 198 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 211 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 255 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 185 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 192 B |
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 286 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 610 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 300 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 558 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 510 B |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 874 B |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 305 B |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 438 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 425 B |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 954 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 389 B |