Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 988e825

Browse files
more 516 stuff
1 parent 9cd6638 commit 988e825

File tree

5 files changed

+696
-616
lines changed

5 files changed

+696
-616
lines changed

code/datums/browser.dm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@
128128

129129
var/output = {"<center><b>[Message]</b></center><br />
130130
<div style="text-align:center">
131-
<a style="font-size:large;float:[( Button2 ? "left" : "right" )]" href="?src=[REF(src)];button=1">[Button1]</a>"}
131+
<a style="font-size:large;float:[( Button2 ? "left" : "right" )]" href="byond://?src=[REF(src)];button=1">[Button1]</a>"}
132132

133133
if (Button2)
134-
output += {"<a style="font-size:large;[( Button3 ? "" : "float:right" )]" href="?src=[REF(src)];button=2">[Button2]</a>"}
134+
output += {"<a style="font-size:large;[( Button3 ? "" : "float:right" )]" href="byond://?src=[REF(src)];button=2">[Button2]</a>"}
135135

136136
if (Button3)
137-
output += {"<a style="font-size:large;float:right" href="?src=[REF(src)];button=3">[Button3]</a>"}
137+
output += {"<a style="font-size:large;float:right" href="byond://?src=[REF(src)];button=3">[Button3]</a>"}
138138

139139
output += {"</div>"}
140140

code/game/objects/items/storage/book.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ GLOBAL_LIST_INIT(bibleitemstates, list("bible", "koran", "scrapbook", "burning",
6464
var/icon/bibleicon = icon('icons/obj/storage.dmi', GLOB.biblestates[i])
6565
var/nicename = GLOB.biblenames[i]
6666
H << browse_rsc(bibleicon, nicename)
67-
dat += {"<tr><td><img src="[nicename]"></td><td><a href="?src=[REF(src)];seticon=[i]">[nicename]</a></td></tr>"}
67+
dat += {"<tr><td><img src="[nicename]"></td><td><a href="byond://?src=[REF(src)];seticon=[i]">[nicename]</a></td></tr>"}
6868
dat += "</table></body></html>"
6969
H << browse(dat, "window=editicon;can_close=0;can_minimize=0;size=250x650")
7070

code/modules/asset_cache/asset_cache_client.dm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
var/job = ++last_asset_job
3737
var/t = 0
3838
var/timeout_time = timeout
39-
src << browse({"<script>window.location.href="?asset_cache_confirm_arrival=[job]"</script>"}, "window=asset_cache_browser&file=asset_cache_send_verify.htm")
39+
if(byond_version < 516)
40+
src << browse({"<script>window.location.href="byond://?asset_cache_confirm_arrival=[job]"</script>"}, "window=asset_cache_browser&file=asset_cache_send_verify.htm")
41+
else
42+
src << browse({"<script>var xhr = new XMLHttpRequest(); xhr.open('GET', 'byond://?asset_cache_confirm_arrival=[job]', true); xhr.send(null);</script>"}, "window=asset_cache_browser&file=asset_cache_send_verify.htm")
4043

4144
while(!completed_asset_jobs["[job]"] && t < timeout_time) // Reception is handled in Topic()
4245
stoplag(1) // Lock up the caller_but_not_a_byond_built_in_proc until this is received.

code/modules/asset_cache/validate_assets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//this is used over window.location because window.location has a character limit in IE.
99
function sendbyond(text) {
1010
var xhr = new XMLHttpRequest();
11-
xhr.open('GET', '?'+text, true);
11+
xhr.open('GET', 'byond://?' + text, true);
1212
xhr.send(null);
1313
}
1414
var xhr = new XMLHttpRequest();

0 commit comments

Comments
 (0)