Community feedback

Updated naming convention
Exposed the game name to Emulator for other uses
Fixed bug with XDBF parsing
This commit is contained in:
x1nixmzeng
2016-01-08 22:55:37 +00:00
parent e4cef38d95
commit 5fa9499a12
8 changed files with 94 additions and 54 deletions

View File

@@ -53,7 +53,7 @@ class Window {
return true;
}
virtual bool set_icon_from_buffer(void *buffer, size_t size) = 0;
virtual bool SetIconFromBuffer(void *buffer, size_t size) = 0;
virtual bool is_fullscreen() const { return false; }
virtual void ToggleFullscreen(bool fullscreen) {}

View File

@@ -32,8 +32,8 @@ Win32Window::~Win32Window() {
hwnd_ = nullptr;
}
if (icon_ != nullptr) {
DestroyIcon(icon_);
icon_ = nullptr;
DestroyIcon(icon_);
icon_ = nullptr;
}
}
@@ -167,7 +167,7 @@ bool Win32Window::set_title(const std::wstring& title) {
return true;
}
bool Win32Window::set_icon_from_buffer(void* buffer, size_t size) {
bool Win32Window::SetIconFromBuffer(void *buffer, size_t size) {
if (icon_ != nullptr) {
DestroyIcon(icon_);
}

View File

@@ -31,7 +31,7 @@ class Win32Window : public Window {
HWND hwnd() const { return hwnd_; }
bool set_title(const std::wstring& title) override;
bool set_icon_from_buffer(void *buffer, size_t size) override;
bool SetIconFromBuffer(void *buffer, size_t size) override;
bool is_fullscreen() const override;
void ToggleFullscreen(bool fullscreen) override;