1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Fix function definitions to match their declarations

This makes sure every function is properly declared, which includes
proper `extern` wrappers.
This commit is contained in:
Michał Janiszewski
2016-07-13 00:46:51 +02:00
parent 5204fb0ce9
commit a6d0e6916e
79 changed files with 413 additions and 352 deletions

View File

@@ -508,7 +508,7 @@ namespace ThemeManager
bool EnsureThemeDirectoryExists();
void GetThemePath(utf8 * buffer, size_t bufferSize);
void GetAvailableThemes(List<AvailableTheme> * outThemes)
static void GetAvailableThemes(List<AvailableTheme> * outThemes)
{
Guard::ArgumentNotNull(outThemes);
@@ -550,7 +550,7 @@ namespace ThemeManager
}
}
void LoadTheme(UITheme * theme)
static void LoadTheme(UITheme * theme)
{
if (CurrentTheme == theme)
{
@@ -571,7 +571,7 @@ namespace ThemeManager
gfx_invalidate_screen();
}
void LoadTheme(const utf8 * path)
static void LoadTheme(const utf8 * path)
{
UITheme * theme = UITheme::FromFile(path);
if (theme == nullptr)
@@ -587,7 +587,7 @@ namespace ThemeManager
}
}
bool LoadThemeByName(const utf8 * name)
static bool LoadThemeByName(const utf8 * name)
{
for (size_t i = 0; i < ThemeManager::AvailableThemes.GetCount(); i++)
{
@@ -609,7 +609,7 @@ namespace ThemeManager
return false;
}
void Initialise()
static void Initialise()
{
ThemeManager::GetAvailableThemes(&ThemeManager::AvailableThemes);
LoadTheme((UITheme *)&PredefinedThemeRCT2);