Идите нахуй

This commit is contained in:
DepressedTWM 2026-08-05 16:57:25 +04:00
parent 09c46efc67
commit 01927fa996
5 changed files with 16 additions and 2 deletions

View file

@ -9,6 +9,7 @@ option(SANITIZERS "Enable sanitizers" OFF)
option(NATIVE "Use native instructions(for local use only)" OFF)
option(STATIC "Build more static build" OFF)
option(CPU_ARCH "CPU arch(x86, arm64, ia-64)" "x86")
option(USE_OPENGL_ES2 "GLES2_HEADER define" OFF)
#Configuration
set(CMAKE_DISABLE_IN_SOURCE_BUILD TRUE)
@ -21,6 +22,9 @@ if(STATIC)
set(ZLIB_USE_STATIC_LIBS ON)
set(OPENSSL_USE_STATIC_LIBS ON)
endif()
if(USE_OPENGL_ES2)
add_definitions(-DGLES2_HEADER)
endif()
# main stuff
set(MAIN_HEADERS

View file

@ -38,3 +38,7 @@ cg_lightbulb1.png updated
cg_lightbulb2.png updated
cg_tower5.png updated
cg_credits1B.png updated
Fixed bug #21
Fixed OpenGL ES 2 support
Added CMake option to build engine with OpenGL ES2 instead Desktop GL(why not?)
Added setting that disable some puzzles(For Wayland users)

View file

@ -32,6 +32,7 @@ module Settings
:true_memory_mode => false,
:oneshot_mode => false,
:twm_shader_footprint => true,
:disable_pizzles_for_fuckin_gayland_users_gayland_devs_fix_your_bullshit_already => false,
# Advanced
:crashlog_privacy => false,
@ -296,6 +297,12 @@ class Window_Settings
:icon => [0, 1],
:parameter => :twm_shader_footprint
},
{
:type => :bool,
:name => "Disable System API Dependent Puzzles(For wayland users)",
:icon => [0, 1],
:parameter => :disable_pizzles_for_fuckin_gayland_users_gayland_devs_fix_your_bullshit_already
},
],
"Controls" => [
{ :type => :sep, :name => "Gamepad" },

View file

@ -23,7 +23,7 @@
#define GLFUN_H
#ifdef GLES2_HEADER
#include <SDL_opengles2.h>
#include <SDL3/SDL_opengles2.h>
#define APIENTRYP GL_APIENTRYP
#else
#include <SDL3/SDL_opengl.h>

View file

@ -357,7 +357,6 @@ int main(int argc, char *argv[]){
/* Load and post key bindings */
rtData.bindingUpdateMsg.post(loadBindings(conf));
/* Start RGSS thread */
SDL_Thread *rgssThread = SDL_CreateThread(rgssThreadFun, "rgss", &rtData);