mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Pack nested namespaces together
This commit is contained in:
@@ -26,54 +26,54 @@
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
namespace OpenRCT2 { namespace Ui
|
||||
namespace OpenRCT2::Ui
|
||||
{
|
||||
|
||||
class AndroidContext final : public IPlatformUiContext
|
||||
{
|
||||
private:
|
||||
|
||||
class AndroidContext final : public IPlatformUiContext
|
||||
public:
|
||||
AndroidContext()
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
AndroidContext()
|
||||
{
|
||||
}
|
||||
|
||||
void SetWindowIcon(SDL_Window * window) override
|
||||
{
|
||||
}
|
||||
|
||||
bool IsSteamOverlayAttached() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void ShowMessageBox(SDL_Window * window, const std::string &message) override
|
||||
{
|
||||
log_verbose(message.c_str());
|
||||
|
||||
STUB();
|
||||
}
|
||||
|
||||
std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override
|
||||
{
|
||||
STUB();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override
|
||||
{
|
||||
log_info(title.c_str());
|
||||
STUB();
|
||||
|
||||
return "/sdcard/rct2";
|
||||
}
|
||||
};
|
||||
|
||||
IPlatformUiContext * CreatePlatformUiContext()
|
||||
{
|
||||
return new AndroidContext();
|
||||
}
|
||||
} }
|
||||
|
||||
void SetWindowIcon(SDL_Window * window) override
|
||||
{
|
||||
}
|
||||
|
||||
bool IsSteamOverlayAttached() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void ShowMessageBox(SDL_Window * window, const std::string &message) override
|
||||
{
|
||||
log_verbose(message.c_str());
|
||||
|
||||
STUB();
|
||||
}
|
||||
|
||||
std::string ShowFileDialog(SDL_Window * window, const FileDialogDesc &desc) override
|
||||
{
|
||||
STUB();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::string ShowDirectoryDialog(SDL_Window * window, const std::string &title) override
|
||||
{
|
||||
log_info(title.c_str());
|
||||
STUB();
|
||||
|
||||
return "/sdcard/rct2";
|
||||
}
|
||||
};
|
||||
|
||||
IPlatformUiContext * CreatePlatformUiContext()
|
||||
{
|
||||
return new AndroidContext();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __ANDROID__
|
||||
|
||||
Reference in New Issue
Block a user