aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/citra
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-07 00:57:37 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-07 00:57:37 -0400
commitf446f79da27d8c75b85772654152ea8e67a2214d (patch)
treecf3924876405ed5244fc8ee72c8615cc74e51267 /src/citra
parent9b6041d8189653514e87135e2139fd9a0934c9bf (diff)
parentefef514fd8252e1f07cd1b45455dbb5207f2b0c3 (diff)
Merge branch 'hardware-interface'
Conflicts: src/core/src/core.h
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/citra.vcxproj3
-rw-r--r--src/citra/src/citra.cpp36
-rw-r--r--src/citra/src/emu_window/emu_window_glfw.cpp4
-rw-r--r--src/citra/src/emu_window/emu_window_glfw.h5
4 files changed, 9 insertions, 39 deletions
diff --git a/src/citra/citra.vcxproj b/src/citra/citra.vcxproj
index 8f29e3e6..16157ad0 100644
--- a/src/citra/citra.vcxproj
+++ b/src/citra/citra.vcxproj
@@ -194,6 +194,9 @@
<LinkLibraryDependencies>true</LinkLibraryDependencies>
<UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
</ProjectReference>
+ <ProjectReference Include="..\video_core\video_core.vcxproj">
+ <Project>{6678d1a3-33a6-48a9-878b-48e5d2903d27}</Project>
+ </ProjectReference>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\citra.cpp" />
diff --git a/src/citra/src/citra.cpp b/src/citra/src/citra.cpp
index 26f5a74e..746cf083 100644
--- a/src/citra/src/citra.cpp
+++ b/src/citra/src/citra.cpp
@@ -52,39 +52,6 @@ int __cdecl main(int argc, char **argv) {
System::Init(emu_window);
- //if (E_OK != Core::Init(emu_window)) {
- // LOG_ERROR(TMASTER, "core initialization failed, exiting...");
- // core::Kill();
- // exit(1);
- //}
-
- //// Load a game or die...
- //if (E_OK == dvd::LoadBootableFile(common::g_config->default_boot_file())) {
- // if (common::g_config->enable_auto_boot()) {
- // core::Start();
- // } else {
- // LOG_ERROR(TMASTER, "Autoboot required in no-GUI mode... Exiting!\n");
- // }
- //} else {
- // LOG_ERROR(TMASTER, "Failed to load a bootable file... Exiting!\n");
- // exit(E_ERR);
- //}
- //// run the game
- //while(core::SYS_DIE != core::g_state) {
- // if (core::SYS_RUNNING == core::g_state) {
- // if(!(cpu->is_on)) {
- // cpu->Start(); // Initialize and start CPU.
- // } else {
- // for(tight_loop = 0; tight_loop < 10000; ++tight_loop) {
- // cpu->execStep();
- // }
- // }
- // } else if (core::SYS_HALTED == core::g_state) {
- // core::Stop();
- // }
- //}
- //core::Kill();
-
std::string boot_filename = "homebrew.elf";
std::string error_str;
@@ -93,7 +60,8 @@ int __cdecl main(int argc, char **argv) {
if (!res) {
ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str());
}
- for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) {
+
+ for (;;) {
Core::SingleStep();
}
diff --git a/src/citra/src/emu_window/emu_window_glfw.cpp b/src/citra/src/emu_window/emu_window_glfw.cpp
index 8edc745b..4cdb7fbb 100644
--- a/src/citra/src/emu_window/emu_window_glfw.cpp
+++ b/src/citra/src/emu_window/emu_window_glfw.cpp
@@ -23,6 +23,7 @@
*/
#include "common.h"
+#include "video_core.h"
#include "emu_window_glfw.h"
static void OnKeyEvent(GLFWwindow* win, int key, int action) {
@@ -54,7 +55,8 @@ EmuWindow_GLFW::EmuWindow_GLFW() {
}
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
- render_window_ = glfwCreateWindow(640, 480, "citra", NULL, NULL);
+ render_window_ = glfwCreateWindow(VideoCore::kScreenTopWidth,
+ (VideoCore::kScreenTopHeight + VideoCore::kScreenBottomHeight), "citra", NULL, NULL);
// Setup callbacks
glfwSetWindowUserPointer(render_window_, this);
diff --git a/src/citra/src/emu_window/emu_window_glfw.h b/src/citra/src/emu_window/emu_window_glfw.h
index 0339b5d6..abca9faa 100644
--- a/src/citra/src/emu_window/emu_window_glfw.h
+++ b/src/citra/src/emu_window/emu_window_glfw.h
@@ -22,8 +22,7 @@
* http://code.google.com/p/gekko-gc-emu/
*/
-#ifndef CITRA_EMUWINDOW_GLFW_
-#define CITRA_EMUWINDOW_GLFW_
+#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
@@ -52,5 +51,3 @@ public:
private:
};
-
-#endif // CITRA_EMUWINDOW_GLFW_