summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar ShizZy2013-09-04 22:09:15 -0400
committerGravatar ShizZy2013-09-04 22:09:15 -0400
commit86495a83c16538ddcab7da4ea68de38ee2d1837e (patch)
tree7f6b57ca0e01e972556f335b3000e2ffac6e0b96 /src/common
parentadded build directory to be ignored by git (diff)
downloadyuzu-86495a83c16538ddcab7da4ea68de38ee2d1837e.tar.gz
yuzu-86495a83c16538ddcab7da4ea68de38ee2d1837e.tar.xz
yuzu-86495a83c16538ddcab7da4ea68de38ee2d1837e.zip
various fixes to be able to build project
Diffstat (limited to 'src/common')
-rw-r--r--src/common/src/emu_window.h30
1 files changed, 13 insertions, 17 deletions
diff --git a/src/common/src/emu_window.h b/src/common/src/emu_window.h
index 08f7d4766..56ff94819 100644
--- a/src/common/src/emu_window.h
+++ b/src/common/src/emu_window.h
@@ -1,7 +1,7 @@
1/** 1/**
2 * Copyright (C) 2005-2012 Gekko Emulator 2 * Copyright (C) 2005-2012 Gekko Emulator
3 * 3 *
4 * @file emuwindow.h 4 * @file emu_window.h
5 * @author Neobrain 5 * @author Neobrain
6 * @date 2012-06-01 6 * @date 2012-06-01
7 * @brief Interface for implementing an emulator window manager 7 * @brief Interface for implementing an emulator window manager
@@ -26,12 +26,11 @@
26#define CORE_EMUWINDOW_H_ 26#define CORE_EMUWINDOW_H_
27 27
28#include "common.h" 28#include "common.h"
29#include "config.h"
30 29
31namespace input_common 30//namespace input_common
32{ 31//{
33class KeyboardInput; 32//class KeyboardInput;
34} 33//}
35 34
36// Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL, 35// Abstraction class used to provide an interface between emulation code and the frontend (e.g. SDL,
37// QGLWidget, GLFW, etc...) 36// QGLWidget, GLFW, etc...)
@@ -62,10 +61,10 @@ public:
62 * @brief Called from KeyboardInput constructor to notify EmuWindow about its presence 61 * @brief Called from KeyboardInput constructor to notify EmuWindow about its presence
63 * @param controller_interface Pointer to a running KeyboardInput interface 62 * @param controller_interface Pointer to a running KeyboardInput interface
64 */ 63 */
65 void set_controller_interface(input_common::KeyboardInput* controller_interface) { 64 //void set_controller_interface(input_common::KeyboardInput* controller_interface) {
66 controller_interface_ = controller_interface; 65 // controller_interface_ = controller_interface;
67 } 66 //}
68 input_common::KeyboardInput* controller_interface() { return controller_interface_; } 67 //input_common::KeyboardInput* controller_interface() { return controller_interface_; }
69 68
70 Config config() { return config_; } 69 Config config() { return config_; }
71 void set_config(Config val) { config_ = val; } 70 void set_config(Config val) { config_ = val; }
@@ -80,11 +79,11 @@ public:
80 void set_window_title(std::string val) { window_title_ = val; } 79 void set_window_title(std::string val) { window_title_ = val; }
81 80
82protected: 81protected:
83 EmuWindow() : controller_interface_(NULL), client_area_width_(640), client_area_height_(480) { 82 EmuWindow() : client_area_width_(640), client_area_height_(480) {
84 char window_title[255]; 83 char window_title[255];
85 sprintf(window_title, "gekko [%s|%s] - %s", 84 sprintf(window_title, "akiru [%s|%s] - %s",
86 common::g_config->CPUCoreTypeToString(common::g_config->powerpc_core()).c_str(), 85 "null-cpu",
87 common::g_config->RenderTypeToString(common::g_config->current_renderer()).c_str(), 86 "null-renderer",
88 __DATE__); 87 __DATE__);
89 window_title_ = window_title; 88 window_title_ = window_title;
90 } 89 }
@@ -98,9 +97,6 @@ protected:
98private: 97private:
99 Config config_; ///< Internal configuration 98 Config config_; ///< Internal configuration
100 99
101 input_common::KeyboardInput* controller_interface_;
102
103 DISALLOW_COPY_AND_ASSIGN(EmuWindow);
104}; 100};
105 101
106#endif // CORE_EMUWINDOW_H_ 102#endif // CORE_EMUWINDOW_H_