feat: allow disabling iggy from meson.options

This commit is contained in:
Tropical 2026-03-15 00:59:21 -05:00
parent 7bef36fb2e
commit 649bc00fe4
3 changed files with 9 additions and 4 deletions

View file

@ -8,8 +8,6 @@
// GDraw GL backend for Linux // GDraw GL backend for Linux
#include "Iggy/gdraw/gdraw_sdl.h" #include "Iggy/gdraw/gdraw_sdl.h"
#define _ENABLEIGGY
ConsoleUIController ui; ConsoleUIController ui;
static void restoreFixedFunctionStateAfterIggy() { static void restoreFixedFunctionStateAfterIggy() {

View file

@ -40,9 +40,11 @@ global_cpp_defs = [
if get_option('enable_vsync') if get_option('enable_vsync')
global_cpp_defs += '-DENABLE_VSYNC' global_cpp_defs += '-DENABLE_VSYNC'
message('v-sync enabled')
endif endif
if get_option('enable_iggy')
global_cpp_defs += '-D_ENABLEIGGY'
endif
if host_machine.system() == 'linux' if host_machine.system() == 'linux'
global_cpp_defs += [ global_cpp_defs += [

View file

@ -1,4 +1,9 @@
option('enable_vsync', option('enable_vsync',
type : 'boolean', type : 'boolean',
value : true, value : true,
description : 'Toggles weather V-Sync will be toggle on or off.') description : 'Toggles V-Sync and adds options to unlock maximum in-game framerate.')
option('enable_shiggy',
type : 'boolean',
value : true,
description : 'Toggles shimmed PS4 Iggy binaries and UI for x86_64 Linux.')