BRUTAL Part 1 - No proc var/ in procs

This commit is contained in:
AffectedArc07
2021-02-01 14:10:08 +00:00
parent 1d89138436
commit f5f97882cf
533 changed files with 1558 additions and 1554 deletions

View File

@@ -24,7 +24,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
/datum/ErrorViewer/
var/name = ""
/datum/ErrorViewer/proc/browseTo(var/user, var/html)
/datum/ErrorViewer/proc/browseTo(user, html)
if(user)
var/datum/browser/popup = new(user, "error_viewer", "Runtime Viewer", 700, 500)
popup.add_head_content({"<style>
@@ -47,7 +47,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
popup.set_content(html)
popup.open(0)
/datum/ErrorViewer/proc/buildHeader(var/datum/ErrorViewer/back_to, var/linear, var/refreshable)
/datum/ErrorViewer/proc/buildHeader(datum/ErrorViewer/back_to, linear, refreshable)
// Common starter HTML for showTo
var/html = ""
@@ -59,11 +59,11 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
html += "<br><br>"
return html
/datum/ErrorViewer/proc/showTo(var/user, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/proc/showTo(user, datum/ErrorViewer/back_to, linear)
// Specific to each child type
return
/datum/ErrorViewer/proc/makeLink(var/linktext, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/proc/makeLink(linktext, datum/ErrorViewer/back_to, linear)
var/back_to_param = ""
if(!linktext)
linktext = name
@@ -78,7 +78,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
var/list/error_sources = list()
var/list/errors_silenced = list()
/datum/ErrorViewer/ErrorCache/showTo(var/user, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/ErrorCache/showTo(user, datum/ErrorViewer/back_to, linear)
var/html = buildHeader(null, linear, refreshable=1)
html += "[GLOB.total_runtimes] runtimes, [GLOB.total_runtimes_skipped] skipped<br><br>"
if(!linear)
@@ -96,7 +96,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
html += "<p class='runtime_list'>[error_entry.makeLink(null, src, 1)]<br></p>"
browseTo(user, html)
/datum/ErrorViewer/ErrorCache/proc/logError(var/exception/e, var/list/desclines, var/skipCount, var/datum/e_src)
/datum/ErrorViewer/ErrorCache/proc/logError(exception/e, list/desclines, skipCount, datum/e_src)
if(!istype(e))
return // Abnormal exception, don't even bother
@@ -125,13 +125,13 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
var/list/errors = list()
var/next_message_at = 0
/datum/ErrorViewer/ErrorSource/New(var/exception/e)
/datum/ErrorViewer/ErrorSource/New(exception/e)
if(!istype(e))
name = "\[[time_stamp()]] Uncaught exceptions"
return
name = "\[[time_stamp()]] Runtime in [e.file],[e.line]: [e]"
/datum/ErrorViewer/ErrorSource/showTo(var/user, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/ErrorSource/showTo(user, datum/ErrorViewer/back_to, linear)
if(!istype(back_to))
back_to = GLOB.error_cache
var/html = buildHeader(back_to, refreshable=1)
@@ -152,7 +152,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
var/turf/usrLoc
var/isSkipCount
/datum/ErrorViewer/ErrorEntry/New(var/exception/e, var/list/desclines, var/skipCount, var/datum/e_src)
/datum/ErrorViewer/ErrorEntry/New(exception/e, list/desclines, skipCount, datum/e_src)
if(!istype(e))
name = "\[[time_stamp()]] Uncaught exception: [e]"
return
@@ -176,7 +176,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
usrUID = usr.UID()
usrLoc = get_turf(usr)
/datum/ErrorViewer/ErrorEntry/showTo(var/user, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/ErrorEntry/showTo(user, datum/ErrorViewer/back_to, linear)
if(!istype(back_to))
back_to = error_source
var/html = buildHeader(back_to, linear)
@@ -198,7 +198,7 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
html += " <a href='?_src_=holder;adminplayerobservecoodjump=1;X=[usrLoc.x];Y=[usrLoc.y];Z=[usrLoc.z]'>JMP</a>"
browseTo(user, html)
/datum/ErrorViewer/ErrorEntry/makeLink(var/linktext, var/datum/ErrorViewer/back_to, var/linear)
/datum/ErrorViewer/ErrorEntry/makeLink(linktext, datum/ErrorViewer/back_to, linear)
if(isSkipCount)
return html_encode(name)
else