Skip to content

Commit 59d326e

Browse files
author
Struma
committed
Remove basically pointless build options
1 parent 2c4f26c commit 59d326e

File tree

6 files changed

+0
-21
lines changed

6 files changed

+0
-21
lines changed

binding/binding-mri.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,6 @@ static void runRMXPScripts(BacktraceData &btData) {
874874
rb_ary_store(script, 3, rb_utf8_str_new_cstr(decodeBuffer.c_str()));
875875
}
876876

877-
// Can be force-disabled similarly to framerate options
878-
#ifndef MKXPZ_NO_PRELOADSCRIPTS
879877
/* Execute preloaded scripts */
880878
for (std::vector<std::string>::const_iterator i = conf.preloadScripts.begin();
881879
i != conf.preloadScripts.end(); ++i)
@@ -944,7 +942,6 @@ static void runRMXPScripts(BacktraceData &btData) {
944942
processReset();
945943
}
946944
}
947-
#endif
948945

949946
// Attempts to set $stdout and $stdin accordingly on Windows. Only
950947
// called when debug mode is on, since that's when the console

binding/meson.build

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ else
1212
global_dependencies += compilers['cpp'].find_library(get_option('mri_library'), dirs: get_option('mri_libpath'))
1313
endif
1414

15-
if get_option('no_preload_scripts') == true
16-
add_project_arguments('-DMKXPZ_NO_PRELOADSCRIPTS', language: ['cpp','objc','objcpp'])
17-
endif
18-
1915
global_include_dirs += include_directories('.')
2016

2117
binding_source = [files(

meson_options.txt

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ option('shared_fluid', type: 'boolean', value: true, description: 'Dynamically l
99
option('cjk_fallback_font', type: 'boolean', value: false, description: 'Use WenQuanYi Micro Hei as the fallback font')
1010
option('use_miniffi', type: 'boolean', value: true, description: 'Enable MiniFFI Ruby module (Win32API)')
1111
option('enable-https', type: 'boolean', value: true, description: 'Support HTTPS for get/post requests. Requires OpenSSL.')
12-
option('default_framerate', type: 'boolean', value: false, description: 'Disable syncToRefreshrate and fixedFramerate configuration options')
13-
option('no_preload_scripts', type: 'boolean', value: false, description: 'Disable the preloadScript configuration option')
1412
option('workdir_current', type: 'boolean', value: false, description: 'Keep current directory on startup')
1513

1614
option('static_executable', type: 'boolean', value: true, description: 'Build a static executable (Windows-only)')

mkxp.json

-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393

9494

9595
// Enforce a static frame rate
96-
// This option may be force-disabled at build time.
9796
// (0 = disabled)
9897
//
9998
// "fixedFramerate": 0,
@@ -208,7 +207,6 @@
208207

209208
// Define raw scripts to be executed before the
210209
// actual Scripts.rxdata execution starts
211-
// This option may be force-disabled at build time.
212210
// (default: none)
213211
//
214212
// "preloadScript": ["my_win32_wrapper.rb",

src/display/graphics.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -622,11 +622,6 @@ struct GraphicsPrivate {
622622

623623
Graphics::Graphics(RGSSThreadData *data) {
624624
p = new GraphicsPrivate(data);
625-
// To appease people who don't want players to have
626-
// emulator-like speedups
627-
// Nothing stops anybody from building with this
628-
// enabled though and I'm not removing this stuff
629-
#ifndef MKXPZ_STATIC_FRAMERATE
630625
if (data->config.syncToRefreshrate) {
631626
p->frameRate = data->refreshRate;
632627
#if defined(__APPLE__) && defined(GLES2_HEADER)
@@ -641,7 +636,6 @@ Graphics::Graphics(RGSSThreadData *data) {
641636
} else if (data->config.fixedFramerate < 0) {
642637
p->fpsLimiter.disabled = true;
643638
}
644-
#endif
645639
}
646640

647641
Graphics::~Graphics() { delete p; }

src/meson.build

-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ if get_option('shared_fluid') == true
9696
endif
9797
endif
9898

99-
if get_option('default_framerate') == true
100-
add_project_arguments('-DMKXPZ_STATIC_FRAMERATE', language: 'cpp')
101-
endif
102-
10399
if get_option('cjk_fallback_font') == true
104100
add_project_arguments('-DMKXPZ_CJK_FONT', language: 'cpp')
105101
endif

0 commit comments

Comments
 (0)