Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ryujinx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacobwasbeast
Ryujinx
Commits
267e9f63
Commit
267e9f63
authored
2 months ago
by
Evan Husted
Browse files
Options
Downloads
Patches
Plain Diff
UI: Redirect IME errors to Debug instead of error
parent
d7b3dd12
No related branches found
Branches containing commit
Tags
Canary-1.2.390
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Ryujinx/UI/Helpers/LoggerAdapter.cs
+5
-5
5 additions, 5 deletions
src/Ryujinx/UI/Helpers/LoggerAdapter.cs
src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml
+0
-1
0 additions, 1 deletion
src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml
with
5 additions
and
6 deletions
src/Ryujinx/UI/Helpers/LoggerAdapter.cs
+
5
−
5
View file @
267e9f63
...
...
@@ -19,7 +19,7 @@ namespace Ryujinx.Ava.UI.Helpers
AvaLogger
.
Sink
=
new
LoggerAdapter
();
}
private
static
RyuLogger
.
Log
?
GetLog
(
AvaLogLevel
level
)
private
static
RyuLogger
.
Log
?
GetLog
(
AvaLogLevel
level
,
string
area
)
{
return
level
switch
{
...
...
@@ -27,7 +27,7 @@ namespace Ryujinx.Ava.UI.Helpers
AvaLogLevel
.
Debug
=>
RyuLogger
.
Debug
,
AvaLogLevel
.
Information
=>
RyuLogger
.
Debug
,
AvaLogLevel
.
Warning
=>
RyuLogger
.
Debug
,
AvaLogLevel
.
Error
=>
RyuLogger
.
Error
,
AvaLogLevel
.
Error
=>
area
is
"IME"
?
RyuLogger
.
Debug
:
RyuLogger
.
Error
,
AvaLogLevel
.
Fatal
=>
RyuLogger
.
Error
,
_
=>
throw
new
ArgumentOutOfRangeException
(
nameof
(
level
),
level
,
null
),
};
...
...
@@ -35,17 +35,17 @@ namespace Ryujinx.Ava.UI.Helpers
public
bool
IsEnabled
(
AvaLogLevel
level
,
string
area
)
{
return
GetLog
(
level
)
!=
null
;
return
GetLog
(
level
,
area
)
!=
null
;
}
public
void
Log
(
AvaLogLevel
level
,
string
area
,
object
source
,
string
messageTemplate
)
{
GetLog
(
level
)?.
PrintMsg
(
RyuLogClass
.
UI
,
Format
(
level
,
area
,
messageTemplate
,
source
,
null
));
GetLog
(
level
,
area
)?.
PrintMsg
(
RyuLogClass
.
UI
,
Format
(
level
,
area
,
messageTemplate
,
source
,
null
));
}
public
void
Log
(
AvaLogLevel
level
,
string
area
,
object
source
,
string
messageTemplate
,
params
object
[]
propertyValues
)
{
GetLog
(
level
)?.
PrintMsg
(
RyuLogClass
.
UI
,
Format
(
level
,
area
,
messageTemplate
,
source
,
propertyValues
));
GetLog
(
level
,
area
)?.
PrintMsg
(
RyuLogClass
.
UI
,
Format
(
level
,
area
,
messageTemplate
,
source
,
propertyValues
));
}
private
static
string
Format
(
AvaLogLevel
level
,
string
area
,
string
template
,
object
source
,
object
[]
v
)
...
...
This diff is collapsed.
Click to expand it.
src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml
+
0
−
1
View file @
267e9f63
...
...
@@ -7,7 +7,6 @@
xmlns:ext="clr-namespace:Ryujinx.Ava.Common.Markup"
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
xmlns:local="clr-namespace:Ryujinx.Ava.UI.Views.Main"
xmlns:config="clr-namespace:Ryujinx.Common.Configuration;assembly=Ryujinx.Common"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Ryujinx.Ava.UI.Views.Main.MainStatusBarView"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment