Skip to content

Commit 51f5d13

Browse files
committed
Extra Stuff
1 parent 90e7234 commit 51f5d13

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

haxelib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"fnf"
1010
],
1111
"description": "An useful tool to work with GameJolt for FNF Mods and Haxe Games as well!",
12-
"version": "4.0.0",
12+
"version": "4.0.1",
1313
"classPath": "src/",
14-
"releasenote": "Every command is now included, along with a new interface!",
14+
"releasenote": "Minor changes!",
1515
"contributors": [
1616
"GamerPablito"
1717
],

src/gamejolt/GJRequest.hx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GJRequest {
2424
/**
2525
* If `true`, requests will use `Md5` encryptation when creating URLs, otherwise they'll use `Sha1` encryptation.
2626
*/
27-
public static var useMd5:Bool = true;
27+
public static var useMd5(default, set):Bool = true;
2828

2929
/**
3030
* The current URL this request contains to process.
@@ -55,7 +55,7 @@ class GJRequest {
5555
/**
5656
* Whether if you want this not to end as error if you make a batch call where one of its subrequests fail or not.
5757
*/
58-
public var ignoreSubErrors:Bool = false;
58+
public var ignoreSubErrors(default, set):Bool = false;
5959

6060
var mainURL(default, never):String = "https://api.gamejolt.com/api/game/v1_2";
6161
var process:Null<Future<Response>> = null;
@@ -371,4 +371,16 @@ class GJRequest {
371371
return onError;
372372
return onError = value;
373373
}
374+
375+
function set_useMd5(value:Bool):Bool {
376+
if (isProcessing)
377+
return useMd5;
378+
return useMd5 = value;
379+
}
380+
381+
function set_ignoreSubErrors(value:Bool):Bool {
382+
if (isProcessing)
383+
return ignoreSubErrors;
384+
return ignoreSubErrors = value;
385+
}
374386
}

0 commit comments

Comments
 (0)