VERY experimental Nintendo Switch 2 emulator
C++
Improved clarity and whitespace
archshift034e3aabc812
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cppindex bd01b78c5c..7089b9f97c 100644--- a/src/citra_qt/bootmanager.cpp+++ b/src/citra_qt/bootmanager.cpp@@ -104,7 +104,7 @@ GRenderWindow::GRenderWindow(QWidget* parent) : QWidget(parent), emu_thread(this// TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground, WA_DontShowOnScreen, WA_DeleteOnCloseQGLFormat fmt;fmt.setProfile(QGLFormat::CoreProfile);- fmt.setVersion(4,1);+ fmt.setVersion(3,2);fmt.setSampleBuffers(true);fmt.setSamples(4);diff --git a/src/common/chunk_file.h b/src/common/chunk_file.hindex c6a7cee35f..8c9f839dac 100644--- a/src/common/chunk_file.h+++ b/src/common/chunk_file.h@@ -654,6 +654,7 @@ inline PointerWrapSection::~PointerWrapSection() {}+// Commented out because it is currently unused, and breaks builds on OSX/*class CChunkFileReader{public:diff --git a/src/video_core/utils.cpp b/src/video_core/utils.cppindex a90fc183b6..b94376ac12 100644--- a/src/video_core/utils.cpp+++ b/src/video_core/utils.cpp@@ -20,13 +20,13 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) {TGAHeader hdr;FILE* fout;u8 r, g, b;-+memset(&hdr, 0, sizeof(hdr));hdr.datatypecode = 2; // uncompressed RGBhdr.bitsperpixel = 24; // 24 bpphdr.width = width;hdr.height = height;-+fout = fopen(filename.c_str(), "wb");fwrite(&hdr, sizeof(TGAHeader), 1, fout);for (int i = 0; i < height; i++) {@@ -41,4 +41,4 @@ void DumpTGA(std::string filename, int width, int height, u8* raw_data) {}fclose(fout);}-} // namespace\ No newline at end of file+} // namespacediff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cppindex 5f1933b1e3..cbd540bdf7 100644--- a/src/video_core/video_core.cpp+++ b/src/video_core/video_core.cpp@@ -30,6 +30,7 @@ void Start() {/// Initialize the video corevoid Init(EmuWindow* emu_window) {+ // Known problem with GLEW prevents contexts above 2.x on OSX unless glewExperimental is enabled.glewExperimental = GL_TRUE;g_emu_window = emu_window;