This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_variables.gd
52 lines (44 loc) · 11.4 KB
/
project_variables.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
extends Node
var CLIENT_VERSION = '1.0.0'
var MINECRAFT_DIR = ''
var BUBBLECLIENT_DIR = ''
var CLIENT_STATUS
const ICON = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAD7AAAA+wBSobVeQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAABxdSURBVHic7Z15fBRltvd/p6p6TToLWSFBQHZCQjAICMiOOgIiYsBtXC6OM+LFYd7PXBkZZ66OcgVn5uMyM27jrsMdgoqIy1xRjI6yhz2EfSeQANnTnXRX1Xn/aJYASVdVV3XSRL9/Jd1dVU/VOc95znOe85wiXK6MZikrpbKTTQxkMiOdgTSBkcagZBAlgDkBhAQCPABcDLgBchPYCQBg2ECQzvwtgxAI/kkNAHsJ8ALwMVALRhWIqsBcRaCTDJRBoDKCUhZQbEeLTyaWopDktnoUZqC2bkAoRo9mqTLpRG8WhT4CqBcTehGjB4iuADgDgNjWbQxCMoBSZj4M4r0A7WLmPaSoO7ecTt8VzcoRNQqQlV9sF5CaLQnqYAYNBSOHwX2JyNHWbTMDMzcSqATAFgI2MrioqtxbdLCwW0Nbtw1oQwXoeu8BZ1y9axiRMIYIY5k573IXtl4YaCBgIxiFTPxNg09YvevjlNq2aEurKkDOLaczSVInATwF4DE/FIFrwUADGIUgfEqkfLL5nx0Ptta1I64APfKPp7gF260Cq3cwMJwoeoadqITBADaC8C4RLdn0z5TSSF4uYsLIua38WmLMIcZN57ztHzEGQ2bCxwC/smVx6gqA2OpLWKs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X4HvnHU2JImEZEtzPjWmrFbOPLEgaDsEFlvIeA659bl3rKI3m5VhXGwJsOd2KHYxIEupnBY9rj2kKY+AB8DcZnJNs+2fRhoqG6jWZos96Ylc92G5VfzRCuJ+KxDOT9ULakBadvKAJQqDAX2n3KqnDm8FYQNeY4K7/YLiA1WyD1aiIawkAOgH6Xu1IwuAGgHQRsVRmbmHm9ilNFxUuy2j52jChSgGbJZ7G/cLqXqCp9iMSeTGovYvQAcVeAOiF6nMsAgGNgHGLC3mARRnG3HPDv2i513G2l12410a0AocgvEPuLwzuRImWKhDQIQiqzmg6mZBAngCkBhARieJjgBuAiZjeCpfBEDu4KcwLnTDIDUMDcyEReAD5ieJlQC0YViKvAVAmBThFQBqYyRVXKWZSPble+L8WS6VEr5FD8f1fkHiIUBuB4AAAAAElFTkSuQmCC'
const FNA_81NAFI = [
'd557fb71674846cca0baf6c044e35cbe',
'7ab68294fdd74ac7b25025d6e20ad882',
'0c46f392235e47efa5ca98688f71027c',
'a703fb7ae41f458bbc27765b2147bb1d'
]
func set_client_status(value):
CLIENT_STATUS = value
func setup() -> void:
var dir = Directory.new()
if OS.get_environment('APPDATA'): # Windows
dir.open(OS.get_environment('APPDATA') + '/.minecraft')
MINECRAFT_DIR = dir.get_current_dir()
dir.make_dir(OS.get_environment('APPDATA') + '/.minecraft/BubbleClient')
dir.open(OS.get_environment('APPDATA') + '/.minecraft/BubbleClient')
BUBBLECLIENT_DIR = dir.get_current_dir()
elif OS.get_environment('HOME'): # Unix
dir.open(OS.get_environment('HOME') + '/.minecraft')
MINECRAFT_DIR = dir.get_current_dir()
dir.make_dir(OS.get_environment('HOME') + '/.minecraft/BubbleClient')
dir.open(OS.get_environment('HOME') + '/.minecraft/BubbleClient')
BUBBLECLIENT_DIR = dir.get_current_dir()
else:
OS.alert('Error: Unknown system\nOnly Linux and Windows are supported!', 'BubbleClient Hub')
get_tree().quit(1)
func get_server_url(url: String) -> String:
return 'https://raw.githubusercontent.com/bubblefish-dev/bubbleclient-server/main/' + CLIENT_VERSION + '/' + url
func get_absolute_server_url(url: String) -> String:
return 'https://raw.githubusercontent.com/bubblefish-dev/bubbleclient-server/main/' + url
func get_client_status(path: String = '') -> JSONParseResult:
var file = File.new()
file.open('user://client_status.json', File.READ)
var contents = file.get_as_text()
var output = JSON.parse(contents).get_result()
if path != '':
output = JSON.parse(contents).get_result()[path]
file.close()
return output