HARD_CODED_RESPONSE_DELAY for simulations.

This commit is contained in:
Hedden, Kyle Matthew 2023-10-17 16:26:57 -04:00
parent 3dc05bea61
commit 1e8f7f417e

View File

@ -299,6 +299,9 @@
if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(getJSONForRequestParameters:)]) {
NSDictionary *json = [[MVMCoreObject sharedInstance].globalLoadDelegate getJSONForRequestParameters:requestParameters];
if (json) {
#if HARD_CODED_RESPONSE_DELAY > 0
[NSThread sleepForTimeInterval:HARD_CODED_RESPONSE_DELAY];
#endif
completionHandler(json);
return;
}