Skip to content

Commit

Permalink
Update SettingsPage-Game-Plugin.cpp
Browse files Browse the repository at this point in the history
Fix spacing, title case, capitalization, and add newline
  • Loading branch information
DerekTurtleRoe committed Mar 18, 2021
1 parent 861cea4 commit ebeddb8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CGamePluginPage::CGamePluginPage(HWND hParent, const RECT & rcDispay)
return;
}

//Set the text for all gui Items
// Set the text for all GUI items
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
Expand Down Expand Up @@ -106,7 +106,7 @@ void CGamePluginPage::ShowAboutButton(int id)
return;
}

//Load the plugin
// Load the plugin
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
SetErrorMode(LastErrorMode);
Expand All @@ -115,11 +115,11 @@ void CGamePluginPage::ShowAboutButton(int id)
return;
}

//Get DLL about
// Get DLL about
void(CALL *DllAbout) (HWND hWnd);
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");

//call the function from the dll
// Call the function from the DLL
DllAbout(m_hWnd);

FreeLibrary(hLib);
Expand Down Expand Up @@ -335,4 +335,4 @@ void CGamePluginPage::HleAudioChanged(UINT /*Code*/, int id, HWND /*ctl*/)
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
break;
}
}
}

0 comments on commit ebeddb8

Please sign in to comment.