Skip to content

Commit

Permalink
Forbid ever resting in Everest
Browse files Browse the repository at this point in the history
Replace the unhelpful "Everest in your Everest" crash handler message
with a stacktrace.

RIP
  • Loading branch information
SnipUndercover committed Mar 12, 2024
1 parent dac5a65 commit bbf6007
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Celeste.Mod.mm/Patches/Celeste.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,14 @@ private static void UnhandledExceptionHandler(object sender, UnhandledExceptionE
public static void CriticalFailureHandler(Exception e) {
Everest.LogDetours();

(e ?? new Exception("Unknown exception")).LogDetailed("CRITICAL");
e ??= new Exception("Unknown exception");

e.LogDetailed("CRITICAL");

// here (ever) rests a tribute to everest in your everest
// 2020/02/24 - 2024/03/12

/*
ErrorLog.Write(
@"Yo, I heard you like Everest so I put Everest in your Everest so you can Ever Rest while you Ever Rest.
Expand All @@ -259,7 +265,9 @@ public static void CriticalFailureHandler(Exception e) {
IF YOU WANT TO HELP US FIX THIS:
Please join the Celeste Discord server and drag and drop your log.txt into #modding_help.
https://discord.gg/6qjaePQ");
*/

ErrorLog.Write(e);
ErrorLog.Open();
if (!_CriticalFailureIsUnhandledException)
Environment.Exit(-1);
Expand Down

0 comments on commit bbf6007

Please sign in to comment.