Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eriforce committed Aug 26, 2024
1 parent 4b93f00 commit db59123
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Magpie.App/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace winrt::Magpie::App::implementation {

App::App() {
UnhandledException([this](IInspectable const&, UnhandledExceptionEventArgs const& e) {
Logger::Get().ComCritical("未处理的异常", e.Message());
Logger::Get().Info(e.Message());

if (IsDebuggerPresent()) {
hstring errorMessage = e.Message();
Expand Down
16 changes: 8 additions & 8 deletions src/Magpie.App/ProfileViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,7 @@ static SmallVector<std::wstring> GetAllGraphicsCards() {
}

ProfileViewModel::ProfileViewModel(int profileIdx) : _isDefaultProfile(profileIdx < 0) {
_is3DGameModeChangedRevoker = ScalingService::Get().Is3DGameModeChanged(
auto_revoke,
[this](bool value) {
Is3DGameMode(value);
}
);

if (_isDefaultProfile) {
if (_isDefaultProfile) {
_data = &ProfileService::Get().DefaultProfile();
} else {
_index = (uint32_t)profileIdx;
Expand Down Expand Up @@ -91,6 +84,13 @@ if (_isDefaultProfile) {
}
);

_is3DGameModeChangedRevoker = ScalingService::Get().Is3DGameModeChanged(
auto_revoke,
[this](bool value) {
Is3DGameMode(value);
}
);

if (_data->isPackaged) {
AppXReader appxReader;
_isProgramExist = appxReader.Initialize(_data->pathRule);
Expand Down

0 comments on commit db59123

Please sign in to comment.