This commit is contained in:
DepressedTWM 2026-07-19 16:05:31 +04:00
parent 0d480316e5
commit b2494fa184
6 changed files with 27 additions and 5 deletions

View file

@ -4,7 +4,7 @@ include(FindPackageHandleStandardArgs)
# Options
option(STEAM "Build for Steam" OFF)
option(DEBUG "Debug mode" ON)
option(DEBUG "Debug mode" OFF)
option(NATIVE "Use native instructions(for local use only)" OFF)
#Configuration

View file

@ -24,7 +24,7 @@
#include <ruby.h>
//костыль ебаный сука
#undef SDL_snprintf
#undef snprintf
#undef inline
#include "exception.h"

View file

@ -78,3 +78,4 @@ Rewrited Linux build scripts
Deleted unused maps
Game maps size fixed
Big performance fix
Added way to select prefered Scaling mode via Settings

View file

@ -13,7 +13,7 @@ module Settings
:frameskip => true,
:twm_shader => true,
:light => true,
:light_shadows => true,
:scaling_mode => 0,
# UI
:in_game_timer => false,
@ -168,6 +168,12 @@ class Window_Settings
:name => tr('Dynamic Light'),
:parameter => :light,
},
{
:type => :enum,
:name => tr('Scaling mode'),
:parameter => :scaling_mode,
:values => [tr("Nearest Neighbor"), tr("Smooth(old)")]
},
],
tr("UI") => [
{

View file

@ -31,6 +31,15 @@ module Settings
Graphics.resize_screen(new_width, new_height)
end
end
def scaling_mode(value)
if value == 0
Graphics.smooth = false
else
Graphics.smooth = true
end
end
def colorblind(value)
$game_switches[252] = value
end

View file

@ -50,7 +50,11 @@
#include "gl-fun.h"
#include "i18n.h"
#include "security.h"
#include "modloader.h"
#ifndef ps2
#include "modloader.h"
#endif
#include "sunshine.h"
#include "define.h"
@ -299,6 +303,7 @@ int main(int argc, char *argv[]){
}
}
#ifndef ps2
std::string new_path = ModLoader(conf);
if(new_path != ""){
if (chdir(new_path.c_str()) != 0){
@ -306,6 +311,7 @@ int main(int argc, char *argv[]){
return 0;
}
}
#endif
extern int screenMain(Config &conf);
if (conf.screenMode)