aboutsummaryrefslogtreecommitdiff
path: root/src/OpenGLSupport.cpp
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-10-24 17:28:14 -0400
committerGitHub <noreply@github.com>2023-10-24 23:28:14 +0200
commit21590b070976f8fe343fdc44d4fee599cbda94f4 (patch)
tree89296cfb050314748f090b9d3e6e3f66109b9735 /src/OpenGLSupport.cpp
parent8c4e5af737ab0dddb91bd593f51d815d1a04a7b1 (diff)
Miscellaneous DSi NAND fixes (#1852)
* Replace some standard I/O calls with Platform equivalents - I missed a spot when I submitted that PR a few months ago * Include <memory> in DSi_NAND.h - Because it uses unique_ptr * Split DSi_NAND::ReadHardwareInfo into ReadSerialData and ReadHardwareInfoN * Add a RegionMask enum * Move DSi NAND patching to the frontend * Add DSiSupportedLanguageMask - Not currently used by the frontend, but I use it in melonDS DS * Remove some Platform::ConfigEntry values - The core no longer needs to know about them - The corresponding Config values are unchanged * Mark NANDMount's destructor as noexcept
Diffstat (limited to 'src/OpenGLSupport.cpp')
-rw-r--r--src/OpenGLSupport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OpenGLSupport.cpp b/src/OpenGLSupport.cpp
index f1914fc..5a8da11 100644
--- a/src/OpenGLSupport.cpp
+++ b/src/OpenGLSupport.cpp
@@ -72,9 +72,9 @@ bool BuildShaderProgram(const char* vs, const char* fs, GLuint* ids, const char*
//printf("shader source:\n--\n%s\n--\n", fs);
delete[] log;
- FILE* logf = fopen("shaderfail.log", "w");
- fwrite(fs, len+1, 1, logf);
- fclose(logf);
+ Platform::FileHandle* logf = Platform::OpenFile("shaderfail.log", Platform::FileMode::WriteText);
+ Platform::FileWrite(fs, len+1, 1, logf);
+ Platform::CloseFile(logf);
glDeleteShader(ids[0]);
glDeleteShader(ids[1]);