mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
makes the profiler more accessible (#25312)
This commit is contained in:
@@ -169,7 +169,8 @@ GLOBAL_LIST_INIT(admin_verbs_debug, list(
|
||||
/client/proc/debug_timers,
|
||||
/client/proc/force_verb_bypass,
|
||||
/client/proc/show_gc_queues,
|
||||
/client/proc/debug_global_variables
|
||||
/client/proc/debug_global_variables,
|
||||
/client/proc/profile_code
|
||||
))
|
||||
GLOBAL_LIST_INIT(admin_verbs_possess, list(
|
||||
/proc/possess,
|
||||
@@ -236,7 +237,8 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
|
||||
/client/proc/debug_global_variables,
|
||||
/client/proc/visualise_active_turfs,
|
||||
/client/proc/debug_timers,
|
||||
/client/proc/timer_log
|
||||
/client/proc/timer_log,
|
||||
/client/proc/profile_code
|
||||
))
|
||||
|
||||
/client/proc/add_admin_verbs()
|
||||
@@ -955,6 +957,12 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
|
||||
|
||||
src.stat_panel.send_message("create_debug")
|
||||
|
||||
/client/proc/profile_code()
|
||||
set name = "Profile Code"
|
||||
set category = "Debug"
|
||||
|
||||
winset(usr, null, "command=.profile")
|
||||
|
||||
/client/proc/export_current_character()
|
||||
set name = "Export Character DMI/JSON"
|
||||
set category = "Admin"
|
||||
|
||||
@@ -456,6 +456,7 @@
|
||||
display_job_bans(TRUE)
|
||||
if(check_rights(R_DEBUG|R_VIEWRUNTIMES, FALSE, mob))
|
||||
winset(src, "debugmcbutton", "is-disabled=false")
|
||||
winset(src, "profilecode", "is-disabled=false")
|
||||
|
||||
/client/proc/is_connecting_from_localhost()
|
||||
var/static/list/localhost_addresses = list("127.0.0.1", "::1")
|
||||
|
||||
@@ -21,6 +21,11 @@ menu "menu"
|
||||
command = "SS-Info-Breakdown"
|
||||
category = "&File"
|
||||
is-disabled = true
|
||||
elem "profilecode"
|
||||
name = "&Profile Code"
|
||||
command = ".profile"
|
||||
category = "&File"
|
||||
is-disabled = true
|
||||
elem
|
||||
name = "&Quit"
|
||||
command = ".quit"
|
||||
|
||||
Reference in New Issue
Block a user