mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
DolphinNoGUI: Make parameters constant
This commit is contained in:
@ -71,7 +71,7 @@ bool Host_UIBlocksControllerState()
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Common::Event s_update_main_frame_event;
|
static Common::Event s_update_main_frame_event;
|
||||||
void Host_Message(HostMessageID id)
|
void Host_Message(const HostMessageID id)
|
||||||
{
|
{
|
||||||
if (id == HostMessageID::WMUserStop)
|
if (id == HostMessageID::WMUserStop)
|
||||||
s_platform->Stop();
|
s_platform->Stop();
|
||||||
@ -197,7 +197,7 @@ static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
|
|||||||
#define main app_main
|
#define main app_main
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(const int argc, char* argv[])
|
||||||
{
|
{
|
||||||
Core::DeclareAsHostThread();
|
Core::DeclareAsHostThread();
|
||||||
|
|
||||||
@ -298,7 +298,7 @@ int main(int argc, char* argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::AddOnStateChangedCallback([](Core::State state) {
|
Core::AddOnStateChangedCallback([](const Core::State state) {
|
||||||
if (state == Core::State::Uninitialized)
|
if (state == Core::State::Uninitialized)
|
||||||
s_platform->Stop();
|
s_platform->Stop();
|
||||||
});
|
});
|
||||||
|
@ -165,7 +165,8 @@ void PlatformWin32::ProcessEvents()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT PlatformWin32::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
LRESULT PlatformWin32::WndProc(const HWND hwnd, const UINT msg, const WPARAM wParam,
|
||||||
|
const LPARAM lParam)
|
||||||
{
|
{
|
||||||
PlatformWin32* platform = reinterpret_cast<PlatformWin32*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
|
PlatformWin32* platform = reinterpret_cast<PlatformWin32*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
|
||||||
switch (msg)
|
switch (msg)
|
||||||
|
Reference in New Issue
Block a user