mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
hardcode messages for now
This commit is contained in:
parent
b13cba0cf4
commit
d590664583
@ -87,6 +87,11 @@
|
|||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_32bit/"/>
|
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_32bit/"/>
|
||||||
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_64bit/"/>
|
<copy file="target/bin/G-Earth.jar" todir="../Build/Windows_64bit/"/>
|
||||||
|
|
||||||
|
<copy file="src/main/resources/build/messages.json" todir="../Build/Mac/"/>
|
||||||
|
<copy file="src/main/resources/build/messages.json" todir="../Build/Linux/"/>
|
||||||
|
<copy file="src/main/resources/build/messages.json" todir="../Build/Windows_32bit/"/>
|
||||||
|
<copy file="src/main/resources/build/messages.json" todir="../Build/Windows_64bit/"/>
|
||||||
|
|
||||||
<copy todir="../Build/Mac/">
|
<copy todir="../Build/Mac/">
|
||||||
<fileset dir="src/main/resources/build/mac" includes="**/*" />
|
<fileset dir="src/main/resources/build/mac" includes="**/*" />
|
||||||
</copy>
|
</copy>
|
||||||
|
@ -78,7 +78,7 @@ public class Main extends Application {
|
|||||||
if (!gitv.equals(version)) {
|
if (!gitv.equals(version)) {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
String body = (String)object.get("body");
|
String body = (String)object.get("body");
|
||||||
boolean isForcedUpdate = body.contains("<F>");
|
boolean isForcedUpdate = body.contains("(!)");
|
||||||
|
|
||||||
Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, "G-Earth is outdated!", ButtonType.OK);
|
Alert alert = new Alert(isForcedUpdate ? Alert.AlertType.ERROR : Alert.AlertType.INFORMATION, "G-Earth is outdated!", ButtonType.OK);
|
||||||
|
|
||||||
|
@ -118,15 +118,16 @@ public class HarbleAPI {
|
|||||||
|
|
||||||
private void addMessage(HMessage.Direction direction, JSONObject object) {
|
private void addMessage(HMessage.Direction direction, JSONObject object) {
|
||||||
String name;
|
String name;
|
||||||
try {
|
String hash;
|
||||||
name = object.getString("Name");
|
try { name = object.getString("Name"); }
|
||||||
} catch (Exception e) {
|
catch (Exception e) { name = null; }
|
||||||
name = null;
|
try { hash = object.getString("Hash"); }
|
||||||
}
|
catch (Exception e) { hash = null; }
|
||||||
String hash = object.getString("Hash");
|
|
||||||
Integer headerId = object.getInt("Id");
|
|
||||||
String structure;
|
|
||||||
|
|
||||||
|
|
||||||
|
int headerId = object.getInt("Id");
|
||||||
|
|
||||||
|
String structure;
|
||||||
try {
|
try {
|
||||||
structure = object.getString("Structure");
|
structure = object.getString("Structure");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
1109
G-Earth/src/main/resources/build/messages.json
Normal file
1109
G-Earth/src/main/resources/build/messages.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user