Cleanup
This commit is contained in:
@@ -87,7 +87,7 @@ class File {
|
||||
static function initCloud() {
|
||||
cloud = [];
|
||||
var files: Array<String> = [];
|
||||
var bytes = File.downloadBytes(Config.raw.server_dir);
|
||||
var bytes = File.downloadBytes(Config.raw.server);
|
||||
if (!File.exists(Path.workingDir() + Path.sep + Path.data() + Path.sep + "download.bin")) {
|
||||
cloud.set("cloud", []);
|
||||
Log.error(Strings.error5());
|
||||
|
||||
@@ -109,7 +109,6 @@ class Config {
|
||||
raw.dilate = DilateInstant;
|
||||
raw.dilate_radius = 2;
|
||||
raw.server = "https://armorpaint.fra1.digitaloceanspaces.com";
|
||||
raw.server_dir = "https://fra1.digitaloceanspaces.com/armorpaint";
|
||||
}
|
||||
else {
|
||||
// Upgrade config format created by older ArmorPaint build
|
||||
|
||||
@@ -51,5 +51,4 @@ typedef TConfig = {
|
||||
@:optional var dilate: Null<Int>;
|
||||
@:optional var dilate_radius: Null<Int>;
|
||||
@:optional var server: String;
|
||||
@:optional var server_dir: String;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user