-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024.12 ForeverFPS #3304
base: main
Are you sure you want to change the base?
2024.12 ForeverFPS #3304
Changes from all commits
eaa4d07
7aca014
8ed31a7
c88a7d1
a275157
cba1807
a259316
85162a4
edebc8f
12303e2
97b1ab3
98473aa
8d57388
c883c7f
50740c7
4ff1cbf
203ef2f
eb48eea
f34af8f
c2d4919
6dc819e
b1bd083
306e9e6
75a01bf
ebae60c
2ee845c
fa963b6
74cdfce
75e01f8
f490bf6
c85880a
9159922
ad375d6
de1ff0b
01bd15d
831f7d6
5af750a
ad30637
c8c1d67
783365d
ec7ad63
4ff56cf
4763195
aa02a5b
d5c6eb9
52a9316
26e1520
43a966e
cff2c66
4380a4e
fd577e3
460e77c
b3fb418
81a2813
265ebfb
c0156eb
317cd6e
93a88e6
df0634f
046ec79
95106e2
1924241
3a251b1
bc84cb0
6a78b5b
d450295
e708d69
09c60de
bec3826
646d077
0679cbd
ddbe1ff
34c3eed
d74b30b
8f8453c
c60061b
b0d8055
9b0c167
8114850
41368a9
a1121eb
789edfc
1fe6031
0493b56
20dfc94
941c002
b2e3159
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -308,15 +308,24 @@ namespace LLError | |
class LLUserWarningMsg | ||
{ | ||
public: | ||
typedef std::function<void(const std::string&, const std::string&)> Handler; | ||
// error codes, tranlates to last_exec states like LAST_EXEC_OTHER_CRASH | ||
typedef enum | ||
{ | ||
ERROR_OTHER = 0, | ||
ERROR_BAD_ALLOC = 1, | ||
ERROR_MISSING_FILES = 2, | ||
} eLastExecEvent; | ||
|
||
// tittle, message and error code to include in error marker file | ||
typedef std::function<void(const std::string&, const std::string&, S32 error_code)> Handler; | ||
static void setHandler(const Handler&); | ||
static void setOutOfMemoryStrings(const std::string& title, const std::string& message); | ||
|
||
// When viewer encounters bad alloc or can't access files try warning user about reasons | ||
static void showOutOfMemory(); | ||
static void showMissingFiles(); | ||
// Genering error | ||
static void show(const std::string&); | ||
static void show(const std::string&, S32 error_code = -1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At the moment -1 means 'don't create a marker' in case you only need a message. The idea was that LL_ERRS will be creating llerror marker or more likely writing LAST_EXEC_LLERROR_CRASH flag into the marker (but time will tell how it turns out). I intended to fix llerror marker files separately from new exit states, before the 'review priorities' thing happened. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May be I should have created a separate createMarkerFile in LLError instead of reusing show(). |
||
|
||
private: | ||
// needs to be preallocated before viewer runs out of memory | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to add a comment something like: "These are used to select
LAST_EXEC_OTHER_CRASH
,LAST_EXEC_BAD_ALLOC
andLAST_EXEC_MISSING_FILES
, respectively, which aren't visible from here."There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, will keep it in mind if I get to continue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably should have done somthing like ERROR_BAD_ALLOC = 6 instead of using switch.