2017-12-31 18:26:59 +01:00
|
|
|
// Set prod to true when releasing
|
2018-09-13 23:47:20 +02:00
|
|
|
// _prod = true;
|
|
|
|
_prod = false;
|
2017-12-31 18:26:59 +01:00
|
|
|
|
2017-09-24 01:54:46 +02:00
|
|
|
Debug = {
|
|
|
|
debug: true,
|
2017-12-30 12:55:58 +01:00
|
|
|
keyboard: true,
|
2017-12-29 23:34:40 +01:00
|
|
|
debugResizer: true,
|
2018-03-14 21:19:15 +01:00
|
|
|
debugArDetect: true,
|
2018-08-30 00:56:15 +02:00
|
|
|
debugStorage: false,
|
|
|
|
comms: false,
|
2018-04-26 00:40:09 +02:00
|
|
|
// showArDetectCanvas: true,
|
2018-09-18 00:40:05 +02:00
|
|
|
flushStoredSettings: true,
|
|
|
|
// flushStoredSettings: false,
|
2018-04-22 17:10:36 +02:00
|
|
|
playerDetectDebug: true,
|
2018-05-22 00:19:50 +02:00
|
|
|
periodic: true,
|
|
|
|
videoRescan: true,
|
2018-02-16 00:19:08 +01:00
|
|
|
arDetect: {
|
|
|
|
edgeDetect: true
|
2018-04-11 19:59:00 +02:00
|
|
|
},
|
|
|
|
canvas: {
|
2018-04-22 17:10:36 +02:00
|
|
|
debugDetection: true
|
2018-04-26 00:40:09 +02:00
|
|
|
},
|
|
|
|
debugCanvas: {
|
2018-07-10 21:58:26 +02:00
|
|
|
// enabled: true,
|
|
|
|
// guardLine: true
|
2018-06-27 23:55:37 +02:00
|
|
|
enabled: false,
|
|
|
|
guardLine: false
|
2018-02-16 00:19:08 +01:00
|
|
|
}
|
2017-09-24 01:54:46 +02:00
|
|
|
}
|
|
|
|
|
2017-12-31 18:26:59 +01:00
|
|
|
if(_prod){
|
2018-05-02 17:52:25 +02:00
|
|
|
__disableAllDebug(Debug);
|
|
|
|
}
|
|
|
|
|
|
|
|
function __disableAllDebug(obj) {
|
|
|
|
for(key in obj) {
|
|
|
|
if (obj.hasOwnProperty(key) ){
|
|
|
|
if(obj[key] instanceof Object)
|
|
|
|
__disableAllDebug(obj[key]);
|
|
|
|
else
|
|
|
|
obj[key] = false;
|
|
|
|
}
|
2017-12-31 18:26:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-24 01:54:46 +02:00
|
|
|
if(Debug.debug)
|
|
|
|
console.log("Guess we're debugging ultrawidify then. Debug.js must always load first, and others must follow.\nLoading: Debug.js");
|