mirror of https://github.com/OpenRCT2/OpenRCT2.git
Strictly use int32_t for ShowMenuDialog
This commit is contained in:
parent
72cc8df395
commit
9058f00bfa
|
@ -35,7 +35,7 @@ namespace OpenRCT2
|
|||
|
||||
virtual void ShowMessageBox(SDL_Window* window, const std::string& message) abstract;
|
||||
virtual bool HasMenuSupport() abstract;
|
||||
virtual int ShowMenuDialog(
|
||||
virtual int32_t ShowMenuDialog(
|
||||
const std::vector<std::string>& options, const std::string& title, const std::string& text) abstract;
|
||||
virtual void OpenFolder(const std::string& path) abstract;
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace OpenRCT2::Ui
|
|||
int32_t ShowMenuDialog(
|
||||
const std::vector<std::string>& options, const std::string& title, const std::string& text) override
|
||||
{
|
||||
return options.size();
|
||||
return static_cast<int32_t>(options.size());
|
||||
}
|
||||
void OpenFolder(const std::string& /*path*/) override
|
||||
{
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace OpenRCT2
|
|||
|
||||
virtual bool HasMenuSupport() abstract;
|
||||
// Creates a menu with a series of options, returns the index of the selected option
|
||||
virtual int ShowMenuDialog(
|
||||
virtual int32_t ShowMenuDialog(
|
||||
const std::vector<std::string>& options, const std::string& title, const std::string& text) abstract;
|
||||
virtual void OpenFolder(const std::string& path) abstract;
|
||||
virtual void OpenURL(const std::string& url) abstract;
|
||||
|
|
Loading…
Reference in New Issue