From 76f7624d4aefcecad709a127505eb80ab7f26472 Mon Sep 17 00:00:00 2001 From: Lucy Date: Thu, 19 Dec 2024 14:07:23 -0500 Subject: [PATCH] possible true fix? --- code/modules/asset_cache/asset_cache_client.dm | 7 ++++--- code/modules/asset_cache/validate_assets.html | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/modules/asset_cache/asset_cache_client.dm b/code/modules/asset_cache/asset_cache_client.dm index 001f96358365..cf786de09e8b 100644 --- a/code/modules/asset_cache/asset_cache_client.dm +++ b/code/modules/asset_cache/asset_cache_client.dm @@ -36,12 +36,13 @@ var/job = ++last_asset_job var/t = 0 var/timeout_time = timeout - src << browse({""}, "window=asset_cache_browser&file=asset_cache_send_verify.htm") + if(byond_version < 516) + src << browse({""}, "window=asset_cache_browser&file=asset_cache_send_verify.htm") + else + src << browse({""}, "window=asset_cache_browser&file=asset_cache_send_verify.htm") while(!completed_asset_jobs["[job]"] && t < timeout_time) // Reception is handled in Topic() stoplag(1) // Lock up the caller until this is received. t++ - if(byond_version == 516) // shitty workaround but avoids the spam limiter being hit - src << browse(null, "window=asset_cache_browser&file=asset_cache_send_verify.htm") if (t < timeout_time) return TRUE diff --git a/code/modules/asset_cache/validate_assets.html b/code/modules/asset_cache/validate_assets.html index 78bcbb92a1ab..70fdca8a9d77 100644 --- a/code/modules/asset_cache/validate_assets.html +++ b/code/modules/asset_cache/validate_assets.html @@ -8,7 +8,7 @@ //this is used over window.location because window.location has a character limit in IE. function sendbyond(text) { var xhr = new XMLHttpRequest(); - xhr.open('GET', '?'+text, true); + xhr.open('GET', 'byond://?' + text, true); xhr.send(null); } var xhr = new XMLHttpRequest(); @@ -24,6 +24,6 @@ }; xhr.send(null); - +