FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
StarlightGUI/StarlightGUI/App.xaml.cpp at master · CKWindowsProject/StarlightGUI · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CKWindowsProject
/
StarlightGUI
Public
forked from
OpenStarlight/StarlightGUI
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
StarlightGUI
/
StarlightGUI
/
App.xaml.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (33 loc) · 1.11 KB
Breadcrumbs
StarlightGUI
/
StarlightGUI
/
App.xaml.cpp
Copy path
File metadata and controls
39 lines (33 loc) · 1.11 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#includ
e
"pch.
h
"
#
include
"
Utils/Config.h
"
#
include
"
App.xaml.h
"
#
include
"
MainWindow.xaml.h
"
using
namespace
winrt
;
using
namespace
Microsoft
::
UI
::Xaml
;
namespace
winrt
::StarlightGUI::implementation
{
App::App
()
{
UnhandledException
([](winrt::Windows::Foundation::IInspectable
const
&,
winrt::Microsoft::
UI
::Xaml::UnhandledExceptionEventArgs
const
& e)
{
LOG_ERROR
(
L"
App
"
,
L"
===== Unhandled exception detected! =====
"
);
LOG_ERROR
(
L"
App
"
,
L"
Type: 'winrt::hresult_error'
"
);
LOG_ERROR
(
L"
App
"
,
L"
Code: %d
"
, e.
Exception
().
value
);
LOG_ERROR
(
L"
App
"
,
L"
Message: %s
"
, e.
Message
().
c_str
());
LOG_ERROR
(
L"
App
"
,
L"
=========================================
"
);
e.
Handled
(
true
);
});
}
void
App::OnLaunched
(LaunchActivatedEventArgs
const
&)
{
InitializeConfig
();
InitializeLogger
();
window = make<MainWindow>();
window.
Activate
();
}
void
App::InitializeLogger
() {
LOGGER_INIT
();
LOG_INFO
(
L"
"
,
L"
Launching Starlight GUI...
"
);
}
}
Back
|
FazBrowse Home
|
New Git URL