From 78e67407359b761edbefbe3d551a7c5b45bc23de Mon Sep 17 00:00:00 2001 From: Shinovon Date: Thu, 14 May 2026 13:52:53 +0500 Subject: [PATCH] Supress logging --- README.md | 10 +++++----- group/librw.mmh | 2 +- vendor/librw/src/gl/gl3shader.cpp | 5 +++++ vendor/librw/src/printf_stub.c | 11 +++++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 vendor/librw/src/printf_stub.c diff --git a/README.md b/README.md index 72c9ed8..6aa9517 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,6 @@ Based on re3, uses some code from [Dreamcast](https://gitlab.com/skmp/dca3-game) See [TODO.md](/TODO.md) for more details on project state. -Tested devices: -- Belle with BCM2763 (700) - GLES 2.0 -- Anna/Belle with BCM2727 (E7, N8, E6) - GLES 2.0 -- S60v3.1 with PowerVR MBX (E90, N95) - GLES 1.1 - ## Device requirements - S60 3rd Edition FP1, S60 5th Edition (non-Nokia), Symbian^3 or later @@ -20,6 +15,11 @@ Tested devices: - 128 MB RAM with at least 50 MB free (won't run on regular 64 MB N95 unless you disable all textures) - Functional E: drive with 400 MB of free space (will be more as it'll start to support audio) +Tested devices: +- Belle with BCM2763 (700) - GLES 2.0 +- Anna/Belle with BCM2727 (E7, N8, E6) - GLES 2.0 +- S60v3.1 with PowerVR MBX (E90, N95) - GLES 1.1 + ## Building Import bld.inf in Carbide.c++ with Symbian^3 or newer SDK, add PKG file to SIS Builder and build the project. diff --git a/group/librw.mmh b/group/librw.mmh index b38f518..2276d21 100644 --- a/group/librw.mmh +++ b/group/librw.mmh @@ -25,4 +25,4 @@ SOURCEPATH ../vendor/librw/src/ps2 SOURCE pds.cpp ps2.cpp ps2device.cpp ps2matfx.cpp ps2raster.cpp ps2skin.cpp SOURCEPATH ../vendor/librw/src SOURCE raster.cpp render.cpp skin.cpp texture.cpp tga.cpp tristrip.cpp userdata.cpp uvanim.cpp world.cpp -SOURCE assert.cpp +SOURCE assert.cpp printf_stub.c diff --git a/vendor/librw/src/gl/gl3shader.cpp b/vendor/librw/src/gl/gl3shader.cpp index 5e37304..c217a85 100644 --- a/vendor/librw/src/gl/gl3shader.cpp +++ b/vendor/librw/src/gl/gl3shader.cpp @@ -189,8 +189,13 @@ compileshader(GLenum type, const char **src, GLuint *shader) glShaderSource(shdr, n, src, nil); glCompileShader(shdr); glGetShaderiv(shdr, GL_COMPILE_STATUS, &success); +#ifdef _DEBUG printShaderSource(src); +#endif if(!success){ +#ifndef _DEBUG + printShaderSource(src); +#endif fprintf(stderr, "Error in %s shader\n", type == GL_VERTEX_SHADER ? "vertex" : "fragment"); glGetShaderiv(shdr, GL_INFO_LOG_LENGTH, &len); diff --git a/vendor/librw/src/printf_stub.c b/vendor/librw/src/printf_stub.c new file mode 100644 index 0000000..04df7e5 --- /dev/null +++ b/vendor/librw/src/printf_stub.c @@ -0,0 +1,11 @@ +#ifndef _DEBUG +#include + +int printf(const char * __restrict s, ...) { + return 0; +} + +int puts(const char *s) { + return 0; +} +#endif