diff --git a/source/CoolUtil.hx b/source/CoolUtil.hx index 1a519fb3812..ffdf13bbcff 100644 --- a/source/CoolUtil.hx +++ b/source/CoolUtil.hx @@ -34,7 +34,7 @@ class CoolUtil public static var difficulties:Array = []; - public static var defaultSongs:Array = ['tutorial', 'bopeebo', 'fresh', 'dad-battle', 'spookeez', 'south', 'monster', 'pico', 'philly-nice', 'blammed', 'satin-panties', 'high', 'milf', 'cocoa', 'eggnog', 'winter-horrorland', 'senpai', 'roses', 'thorns', 'ugh', 'guns', 'stress']; + public static var defaultSongs:Array = ['tutorial', 'bopeebo', 'fresh', 'dad battle', 'spookeez', 'south', 'monster', 'pico', 'philly nice', 'blammed', 'satin panties', 'high', 'milf', 'cocoa', 'eggnog', 'winter horrorland', 'senpai', 'roses', 'thorns', 'ugh', 'guns', 'stress']; inline public static function quantize(f:Float, snap:Float){ // changed so this actually works lol @@ -43,6 +43,7 @@ class CoolUtil return (m / snap); } + #if desktop public static var resW:Float = 1; public static var resH:Float = 1; public static var baseW:Float = 1; @@ -51,6 +52,7 @@ class CoolUtil resW = wid/baseW; resH = height/baseH; } + #end public static function getUsername():String { diff --git a/source/SUtil.hx b/source/SUtil.hx index 1cfe67af74d..ba79c4829f9 100644 --- a/source/SUtil.hx +++ b/source/SUtil.hx @@ -36,7 +36,7 @@ class SUtil if (aDir != null && aDir.length > 0) return aDir; else - return aDir = Tools.getExternalStorageDirectory() + '/.PsychEngine/'; // i wanna do this to have the ability to use same mods from other ports without making storage full + return aDir = Tools.getExternalStorageDirectory() + '/.JSEngine/'; // while using .PsychEngine does save more space, just.. it causes problems with this engine #else return ''; #end diff --git a/source/options/GraphicsSettingsSubState.hx b/source/options/GraphicsSettingsSubState.hx index b56009b0c49..b179c74e620 100644 --- a/source/options/GraphicsSettingsSubState.hx +++ b/source/options/GraphicsSettingsSubState.hx @@ -102,6 +102,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu addOption(option); #if !html5 + #if desktop //different res cant really be done on browser lol var option:Option = new Option('Resolution: ', "What resolution do you want the game to run in?", @@ -112,6 +113,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu ['16x9', '32x18', '64x36', '128x72', '214x120', '256x144', '480x270', '640x360', '960x540', '1280x720', '1920x1080', '2560x1440', '3840x2160']); addOption(option); option.onChange = onChangeResolution; + #end //Apparently other framerates isn't correctly supported on Browser? Probably it has some V-Sync shit enabled by default, idk var option:Option = new Option('Framerate', @@ -159,6 +161,7 @@ class GraphicsSettingsSubState extends BaseOptionsMenu } } function onChangeResolution() { + #if desktop var resolutionValue = cast(ClientPrefs.resolution, String); // Assuming 'clientprefs.resolution' holds the selected resolution if (resolutionValue != null) { @@ -176,5 +179,6 @@ class GraphicsSettingsSubState extends BaseOptionsMenu } } } + #end } } \ No newline at end of file