mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 23:04:36 +01:00
Fix build errors
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
WriteLine("[" + name + "]");
|
||||
}
|
||||
|
||||
void WriteBoolean(const std::string &name, bool value)
|
||||
void WriteBoolean(const std::string &name, bool value) override
|
||||
{
|
||||
WriteProperty(name, value ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -1628,7 +1628,7 @@ void Network::Server_Handle_AUTH(NetworkConnection& connection, NetworkPacket& p
|
||||
}
|
||||
}
|
||||
|
||||
if (gConfigNetwork.maxplayers <= player_list.size()) {
|
||||
if ((size_t)gConfigNetwork.maxplayers <= player_list.size()) {
|
||||
connection.AuthStatus = NETWORK_AUTH_FULL;
|
||||
} else
|
||||
if (connection.AuthStatus == NETWORK_AUTH_VERIFIED) {
|
||||
|
||||
@@ -461,7 +461,7 @@ bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc,
|
||||
return 1;
|
||||
}
|
||||
|
||||
utf8 *platform_open_directory_browser(utf8 *title) {
|
||||
utf8 *platform_open_directory_browser(const utf8 *title) {
|
||||
size_t size;
|
||||
dialog_type dtype;
|
||||
sint32 exit_value;
|
||||
|
||||
@@ -195,7 +195,7 @@ void platform_get_user_directory(utf8 *outPath, const utf8 *subDirectory, size_t
|
||||
utf8* platform_get_username();
|
||||
void platform_show_messagebox(const utf8 * message);
|
||||
bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc, size_t outSize);
|
||||
utf8 *platform_open_directory_browser(utf8 *title);
|
||||
utf8 *platform_open_directory_browser(const utf8 *title);
|
||||
uint8 platform_get_locale_currency();
|
||||
uint8 platform_get_currency_value(const char *currencyCode);
|
||||
uint16 platform_get_locale_language();
|
||||
|
||||
@@ -694,7 +694,7 @@ bool platform_open_common_file_dialog(utf8 *outFilename, file_dialog_desc *desc,
|
||||
return result;
|
||||
}
|
||||
|
||||
utf8 *platform_open_directory_browser(utf8 *title)
|
||||
utf8 *platform_open_directory_browser(const utf8 *title)
|
||||
{
|
||||
BROWSEINFOW bi;
|
||||
wchar_t pszBuffer[MAX_PATH], wctitle[256];
|
||||
|
||||
Reference in New Issue
Block a user