File tree Expand file tree Collapse file tree 5 files changed +45
-8
lines changed
source/funkin/backend/client Expand file tree Collapse file tree 5 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 23
23
run : |
24
24
haxelib setup ~/haxelib
25
25
haxelib install hxcpp > /dev/null --quiet
26
- haxelib install hmm --quiet
27
- haxelib run hmm install
26
+ haxe -cp ./setup -D analyzer-optimize -main Main --interp
28
27
- name : Skip SScript setup mode
29
28
run : echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
30
29
- name : Create Version Tag
Original file line number Diff line number Diff line change 21
21
run : |
22
22
haxelib setup ~/haxelib
23
23
haxelib install hxcpp > /dev/null --quiet
24
- haxelib install hmm --quiet
25
- haxelib run hmm install
24
+ haxe -cp ./setup -D analyzer-optimize -main Main --interp
26
25
- name : Skip SScript setup mode
27
26
run : echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
28
27
- name : Create Version Tag
Original file line number Diff line number Diff line change 20
20
run : |
21
21
haxelib setup C:/haxelib
22
22
haxelib install hxcpp > /dev/null --quiet
23
- haxelib install hmm --quiet
24
- haxelib run hmm install
23
+ haxe -cp ./setup -D analyzer-optimize -main Main --interp
25
24
shell : cmd
26
25
- name : Skip SScript setup mode
27
26
run : echo 'oy9:showMacroty8:loopCosti25y10:includeAllfg' >> ~/settings.cocoa
Original file line number Diff line number Diff line change
1
+ package ;
2
+
3
+ import haxe .Json ;
4
+ import sys .FileSystem ;
5
+ import sys .io .File ;
6
+
7
+ typedef Library = {
8
+ name : String , type : String ,
9
+ version : String , dir : String ,
10
+ ref : String , url : String
11
+ }
12
+
13
+ class Main {// stolen from psych source
14
+ public static function main (): Void {
15
+ // Create a folder to prevent messing with hmm libraries
16
+ if (! FileSystem .exists (" .haxelib" ))
17
+ FileSystem .createDirectory (" .haxelib" );
18
+
19
+ // brief explanation: first we parse a json containing the library names, data, and such
20
+ final libs : Array <Library > = Json .parse (File .getContent (' ./hmm.json' )).dependencies ;
21
+
22
+ // now we loop through the data we currently have
23
+ for (data in libs ) {
24
+ // and install the libraries, based on their type
25
+ switch (data .type ) {
26
+ case " install" , " haxelib" : // for libraries only available in the haxe package manager
27
+ final version : String = data .version == null ? " " : data .version ;
28
+ Sys .command (' haxelib --quiet install ${data .name } ${version }' );
29
+ case " git" : // for libraries that contain git repositories
30
+ final ref : String = data .ref == null ? " " : data .ref ;
31
+ Sys .command (' haxelib --quiet git ${data .name } ${data .url } ${data .ref }' );
32
+ default : // and finally, throw an error if the library has no type
33
+ Sys .println (' [ASTRO ENGINE SETUP]: Unable to resolve library of type " ${data .type }" for library " ${data .name }"' );
34
+ }
35
+ }
36
+
37
+ // after the loop, we can leave
38
+ Sys .exit (0 );
39
+ }
40
+ }
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ class DiscordClient
51
51
var requestPtr : cpp. Star <DiscordUser > = cpp. ConstPointer .fromRaw (request ).ptr ;
52
52
53
53
if (Std .parseInt (cast (requestPtr .discriminator , String )) != 0 ) // New Discord IDs/Discriminator system
54
- traceFr (' Connected to User [ ${cast (requestPtr .username , String )}# ${cast (requestPtr .discriminator , String )}] ' );
54
+ traceFr (' Connected to User ( ${cast (requestPtr .username , String )}# ${cast (requestPtr .discriminator , String )}) ' );
55
55
else // Old discriminators
56
- traceFr (' Connected to User [ ${cast (requestPtr .username , String )}] ' );
56
+ traceFr (' Connected to User ( ${cast (requestPtr .username , String )}) ' );
57
57
58
58
changePresence ();
59
59
}
You can’t perform that action at this time.
0 commit comments