summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis-build.sh1
-rw-r--r--src/citra/citra.cpp4
-rw-r--r--src/citra/config.cpp5
-rw-r--r--src/citra/config.h1
-rw-r--r--src/citra/default_ini.h3
-rw-r--r--src/citra_qt/config.cpp14
-rw-r--r--src/citra_qt/config.h3
-rw-r--r--src/citra_qt/main.cpp5
-rw-r--r--src/core/arm/arm_interface.h2
-rw-r--r--src/core/hle/kernel/shared_memory.cpp2
-rw-r--r--src/core/settings.h2
-rw-r--r--src/video_core/clipper.cpp4
12 files changed, 42 insertions, 4 deletions
diff --git a/.travis-build.sh b/.travis-build.sh
index 672d282cc..78e7583a8 100644
--- a/.travis-build.sh
+++ b/.travis-build.sh
@@ -8,6 +8,7 @@ if [ "$TRAVIS_OS_NAME" = linux -o -z "$TRAVIS_OS_NAME" ]; then
8 cmake -DUSE_QT5=OFF .. 8 cmake -DUSE_QT5=OFF ..
9 make -j4 9 make -j4
10elif [ "$TRAVIS_OS_NAME" = osx ]; then 10elif [ "$TRAVIS_OS_NAME" = osx ]; then
11 export Qt5_DIR=$(brew --prefix)/opt/qt5
11 mkdir build && cd build 12 mkdir build && cd build
12 cmake .. -GXcode 13 cmake .. -GXcode
13 xcodebuild 14 xcodebuild
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index 6ac5c5dc5..41b62ac16 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -5,6 +5,7 @@
5#include "common/common.h" 5#include "common/common.h"
6#include "common/log_manager.h" 6#include "common/log_manager.h"
7 7
8#include "core/settings.h"
8#include "core/system.h" 9#include "core/system.h"
9#include "core/core.h" 10#include "core/core.h"
10#include "core/loader/loader.h" 11#include "core/loader/loader.h"
@@ -22,6 +23,9 @@ int __cdecl main(int argc, char **argv) {
22 } 23 }
23 24
24 Config config; 25 Config config;
26
27 if (!Settings::values.enable_log)
28 LogManager::Shutdown();
25 29
26 std::string boot_filename = argv[1]; 30 std::string boot_filename = argv[1];
27 EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; 31 EmuWindow_GLFW* emu_window = new EmuWindow_GLFW;
diff --git a/src/citra/config.cpp b/src/citra/config.cpp
index c5ce8a164..f45d09fc2 100644
--- a/src/citra/config.cpp
+++ b/src/citra/config.cpp
@@ -65,11 +65,16 @@ void Config::ReadData() {
65 Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true); 65 Settings::values.use_virtual_sd = glfw_config->GetBoolean("Data Storage", "use_virtual_sd", true);
66} 66}
67 67
68void Config::ReadMiscellaneous() {
69 Settings::values.enable_log = glfw_config->GetBoolean("Miscellaneous", "enable_log", true);
70}
71
68void Config::Reload() { 72void Config::Reload() {
69 LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file); 73 LoadINI(glfw_config, glfw_config_loc.c_str(), DefaultINI::glfw_config_file);
70 ReadControls(); 74 ReadControls();
71 ReadCore(); 75 ReadCore();
72 ReadData(); 76 ReadData();
77 ReadMiscellaneous();
73} 78}
74 79
75Config::~Config() { 80Config::~Config() {
diff --git a/src/citra/config.h b/src/citra/config.h
index 4f6551876..19bb83700 100644
--- a/src/citra/config.h
+++ b/src/citra/config.h
@@ -18,6 +18,7 @@ class Config {
18 void ReadControls(); 18 void ReadControls();
19 void ReadCore(); 19 void ReadCore();
20 void ReadData(); 20 void ReadData();
21 void ReadMiscellaneous();
21public: 22public:
22 Config(); 23 Config();
23 ~Config(); 24 ~Config();
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h
index 557da881b..f1f626eed 100644
--- a/src/citra/default_ini.h
+++ b/src/citra/default_ini.h
@@ -32,6 +32,9 @@ gpu_refresh_rate = ## 60 (default)
32 32
33[Data Storage] 33[Data Storage]
34use_virtual_sd = 34use_virtual_sd =
35
36[Miscellaneous]
37enable_log =
35)"; 38)";
36 39
37} 40}
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index 63d396439..09fce4d6f 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -91,16 +91,30 @@ void Config::SaveData() {
91 qt_config->endGroup(); 91 qt_config->endGroup();
92} 92}
93 93
94void Config::ReadMiscellaneous() {
95 qt_config->beginGroup("Miscellaneous");
96 Settings::values.enable_log = qt_config->value("enable_log", true).toBool();
97 qt_config->endGroup();
98}
99
100void Config::SaveMiscellaneous() {
101 qt_config->beginGroup("Miscellaneous");
102 qt_config->setValue("enable_log", Settings::values.enable_log);
103 qt_config->endGroup();
104}
105
94void Config::Reload() { 106void Config::Reload() {
95 ReadControls(); 107 ReadControls();
96 ReadCore(); 108 ReadCore();
97 ReadData(); 109 ReadData();
110 ReadMiscellaneous();
98} 111}
99 112
100void Config::Save() { 113void Config::Save() {
101 SaveControls(); 114 SaveControls();
102 SaveCore(); 115 SaveCore();
103 SaveData(); 116 SaveData();
117 SaveMiscellaneous();
104} 118}
105 119
106Config::~Config() { 120Config::~Config() {
diff --git a/src/citra_qt/config.h b/src/citra_qt/config.h
index 782c26287..8c6568cb2 100644
--- a/src/citra_qt/config.h
+++ b/src/citra_qt/config.h
@@ -18,6 +18,9 @@ class Config {
18 void SaveCore(); 18 void SaveCore();
19 void ReadData(); 19 void ReadData();
20 void SaveData(); 20 void SaveData();
21
22 void ReadMiscellaneous();
23 void SaveMiscellaneous();
21public: 24public:
22 Config(); 25 Config();
23 ~Config(); 26 ~Config();
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 304c169b9..9a4e36adf 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -22,6 +22,7 @@
22#include "debugger/graphics.hxx" 22#include "debugger/graphics.hxx"
23#include "debugger/graphics_cmdlists.hxx" 23#include "debugger/graphics_cmdlists.hxx"
24 24
25#include "core/settings.h"
25#include "core/system.h" 26#include "core/system.h"
26#include "core/core.h" 27#include "core/core.h"
27#include "core/loader/loader.h" 28#include "core/loader/loader.h"
@@ -34,8 +35,12 @@
34GMainWindow::GMainWindow() 35GMainWindow::GMainWindow()
35{ 36{
36 LogManager::Init(); 37 LogManager::Init();
38
37 Config config; 39 Config config;
38 40
41 if (!Settings::values.enable_log)
42 LogManager::Shutdown();
43
39 ui.setupUi(this); 44 ui.setupUi(this);
40 statusBar()->hide(); 45 statusBar()->hide();
41 46
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index be677ae20..4b93d3313 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -16,7 +16,7 @@ public:
16 num_instructions = 0; 16 num_instructions = 0;
17 } 17 }
18 18
19 ~ARM_Interface() { 19 virtual ~ARM_Interface() {
20 } 20 }
21 21
22 /** 22 /**
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index 6bd5e2728..f538c6550 100644
--- a/src/core/hle/kernel/shared_memory.cpp
+++ b/src/core/hle/kernel/shared_memory.cpp
@@ -72,7 +72,7 @@ Result MapSharedMemory(u32 handle, u32 address, MemoryPermission permissions,
72 72
73 if (address < Memory::SHARED_MEMORY_VADDR || address >= Memory::SHARED_MEMORY_VADDR_END) { 73 if (address < Memory::SHARED_MEMORY_VADDR || address >= Memory::SHARED_MEMORY_VADDR_END) {
74 ERROR_LOG(KERNEL, "cannot map handle=0x%08X, address=0x%08X outside of shared mem bounds!", 74 ERROR_LOG(KERNEL, "cannot map handle=0x%08X, address=0x%08X outside of shared mem bounds!",
75 handle); 75 handle, address);
76 return -1; 76 return -1;
77 } 77 }
78 SharedMemory* shared_memory = Kernel::g_object_pool.GetFast<SharedMemory>(handle); 78 SharedMemory* shared_memory = Kernel::g_object_pool.GetFast<SharedMemory>(handle);
diff --git a/src/core/settings.h b/src/core/settings.h
index 6a6265e18..7e7a66b89 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -32,6 +32,8 @@ struct Values {
32 32
33 // Data Storage 33 // Data Storage
34 bool use_virtual_sd; 34 bool use_virtual_sd;
35
36 bool enable_log;
35} extern values; 37} extern values;
36 38
37} 39}
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp
index 96d3dabe2..fbe4047ce 100644
--- a/src/video_core/clipper.cpp
+++ b/src/video_core/clipper.cpp
@@ -159,10 +159,10 @@ void ProcessTriangle(OutputVertex &v0, OutputVertex &v1, OutputVertex &v2) {
159 159
160 DEBUG_LOG(GPU, 160 DEBUG_LOG(GPU,
161 "Triangle %lu/%lu (%lu buffer vertices) at position (%.3f, %.3f, %.3f, %.3f), " 161 "Triangle %lu/%lu (%lu buffer vertices) at position (%.3f, %.3f, %.3f, %.3f), "
162 "(%.3lu, %.3f, %.3f, %.3f), (%.3f, %.3f, %.3f, %.3f) and " 162 "(%.3f, %.3f, %.3f, %.3f), (%.3f, %.3f, %.3f, %.3f) and "
163 "screen position (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f)", 163 "screen position (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f)",
164 i,output_list.size(), buffer_vertices.size(), 164 i,output_list.size(), buffer_vertices.size(),
165 vtx0.pos.x.ToFloat32(), vtx0.pos.y.ToFloat32(), vtx0.pos.z.ToFloat32(), vtx0.pos.w.ToFloat32(),output_list.size(), 165 vtx0.pos.x.ToFloat32(), vtx0.pos.y.ToFloat32(), vtx0.pos.z.ToFloat32(), vtx0.pos.w.ToFloat32(),
166 vtx1.pos.x.ToFloat32(), vtx1.pos.y.ToFloat32(), vtx1.pos.z.ToFloat32(), vtx1.pos.w.ToFloat32(), 166 vtx1.pos.x.ToFloat32(), vtx1.pos.y.ToFloat32(), vtx1.pos.z.ToFloat32(), vtx1.pos.w.ToFloat32(),
167 vtx2.pos.x.ToFloat32(), vtx2.pos.y.ToFloat32(), vtx2.pos.z.ToFloat32(), vtx2.pos.w.ToFloat32(), 167 vtx2.pos.x.ToFloat32(), vtx2.pos.y.ToFloat32(), vtx2.pos.z.ToFloat32(), vtx2.pos.w.ToFloat32(),
168 vtx0.screenpos.x.ToFloat32(), vtx0.screenpos.y.ToFloat32(), vtx0.screenpos.z.ToFloat32(), 168 vtx0.screenpos.x.ToFloat32(), vtx0.screenpos.y.ToFloat32(), vtx0.screenpos.z.ToFloat32(),