aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorArmin Weatherwax2010-05-10 18:47:10 +0200
committerJacek Antonelli2010-06-19 02:05:25 -0500
commit1b7c3dd126e427e84399763bd3b6e0840a5cc5c8 (patch)
treea872a6bb3fc38c660c575ec17461b77d65821462
parentIncremented cache version (diff)
downloadmeta-impy-1b7c3dd126e427e84399763bd3b6e0840a5cc5c8.zip
meta-impy-1b7c3dd126e427e84399763bd3b6e0840a5cc5c8.tar.gz
meta-impy-1b7c3dd126e427e84399763bd3b6e0840a5cc5c8.tar.bz2
meta-impy-1b7c3dd126e427e84399763bd3b6e0840a5cc5c8.tar.xz
add "Advanced > Crash" menu.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermenu.cpp38
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml29
2 files changed, 67 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index a0d3574..a71240d 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -10369,8 +10369,42 @@ class LLAdvancedDumpAvatarLocalTextures : public view_listener_t
10369 } 10369 }
10370}; 10370};
10371 10371
10372///////////
10373// Crash //
10374///////////
10372 10375
10373 10376
10377class LLAdvancedCrash : public view_listener_t
10378{
10379 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
10380 {
10381 std::string command = userdata.asString();
10382 if ("deadbeefcrash" == command)
10383 {
10384 force_error_bad_memory_access(NULL);
10385 }
10386 else if ("llerrcrash" == command)
10387 {
10388 force_error_llerror(NULL);
10389 }
10390 else if ("infiniteloopcrash" == command)
10391 {
10392 force_error_infinite_loop(NULL);
10393 }
10394 else if ("drivercrash" == command)
10395 {
10396 force_error_driver_crash(NULL);
10397 }
10398 else if ("forcedisconnect" == command)
10399 {
10400 handle_disconnect_viewer(NULL);
10401 }
10402
10403 return true;
10404 }
10405
10406};
10407
10374///////////////// 10408/////////////////
10375// MESSAGE LOG // 10409// MESSAGE LOG //
10376///////////////// 10410/////////////////
@@ -11087,6 +11121,10 @@ void initialize_menus()
11087 addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); 11121 addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures");
11088 addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); 11122 addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures");
11089 11123
11124 // Advanced > Crash
11125 addMenu(new LLAdvancedCrash(), "Advanced.Crash");
11126
11127
11090 // Advanced > Network 11128 // Advanced > Network
11091 addMenu(new LLAdvancedEnableMessageLog(), "Advanced.EnableMessageLog"); 11129 addMenu(new LLAdvancedEnableMessageLog(), "Advanced.EnableMessageLog");
11092 addMenu(new LLAdvancedDisableMessageLog(), "Advanced.DisableMessageLog"); 11130 addMenu(new LLAdvancedDisableMessageLog(), "Advanced.DisableMessageLog");
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index 425e2d4..00723cd 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -1920,7 +1920,36 @@
1920 </menu_item_call> 1920 </menu_item_call>
1921 </menu> 1921 </menu>
1922 1922
1923 <!-- CRASH -->
1923 1924
1925 <menu name="Crash" drop_shadow="true"
1926 opaque="true" tear_off="true">
1927 <menu_item_call name="Force Bad Memory Access"
1928 label="Force Bad Memory Access">
1929 <on_click function="Advanced.Crash"
1930 userdata="deadbeefcrash" />
1931 </menu_item_call>
1932 <menu_item_call name="Force LLError And Crash"
1933 label="Force LLError And Crash">
1934 <on_click function="Advanced.Crash"
1935 userdata="llerrcrash" />
1936 </menu_item_call>
1937 <menu_item_call name="Force Infinite Loop"
1938 label="Force Infinite Loop">
1939 <on_click function="Advanced.Crash"
1940 userdata="infiniteloopcrash" />
1941 </menu_item_call>
1942 <menu_item_call name="Force Driver Crash"
1943 label="Force Driver Crash">
1944 <on_click function="Advanced.Crash"
1945 userdata="drivercrash" />
1946 </menu_item_call>
1947 <menu_item_call name="Force Disconnect Viewer"
1948 label="Force Disconnect Viewer">
1949 <on_click function="Advanced.Crash"
1950 userdata="forcedisconnect" />
1951 </menu_item_call>
1952 </menu>
1924 1953
1925 <!-- NETWORK --> 1954 <!-- NETWORK -->
1926 1955