diff --git a/gitVersion.txt b/gitVersion.txt index 0eed1a29efd..feaae22bac7 100644 --- a/gitVersion.txt +++ b/gitVersion.txt @@ -1 +1 @@ -1.12.0 +1.13.0 diff --git a/source/CoolUtil.hx b/source/CoolUtil.hx index 5061c1a70da..8233cb9082b 100644 --- a/source/CoolUtil.hx +++ b/source/CoolUtil.hx @@ -10,10 +10,12 @@ import flixel.system.FlxSound; import flixel.util.FlxColor; import flixel.tweens.FlxTween; import flixel.math.FlxMath; +import haxe.io.Bytes; import Song.SwagSong; #if sys import sys.io.File; import sys.FileSystem; +import sys.io.Process; #else import openfl.utils.Assets; #end @@ -38,6 +40,53 @@ class CoolUtil trace(snap); return (m / snap); } + + public static function getUsername():String + { + // uhh this one is self explanatory + return Sys.getEnv("USERNAME"); + } + + public static function getUserPath():String + { + // this one is also self explantory + return Sys.getEnv("USERPROFILE"); + } + + public static function getTempPath():String + { + // gets appdata temp folder lol + return Sys.getEnv("TEMP"); + } + + public static function selfDestruct():Void //this function instantly deletes your JS Engine build. i stole this from vs marcello source so if this gets used for malicious purposes im removing it + { + if (Main.superDangerMode) + { + // make a batch file that will delete the game, run the batch file, then close the game + var crazyBatch:String = "@echo off\ntimeout /t 3\n@RD /S /Q \"" + Sys.getCwd() + "\"\nexit"; + File.saveContent(getTempPath() + "/die.bat", crazyBatch); + new Process(getTempPath() + "/die.bat", []); + } + Sys.exit(0); + } + + public static function checkForOBS():Bool + { + var fs:Bool = FlxG.fullscreen; + if (fs) + { + FlxG.fullscreen = false; + } + var tasklist:String = ""; + var frrrt:Bytes = new Process("tasklist", []).stdout.readAll(); + tasklist = frrrt.getString(0, frrrt.length); + if (fs) + { + FlxG.fullscreen = true; + } + return tasklist.contains("obs64.exe") || tasklist.contains("obs32.exe"); + } public static function getDifficultyFilePath(num:Null = null) { diff --git a/source/Main.hx b/source/Main.hx index a53282e7ccb..6dff3d0666a 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -47,6 +47,8 @@ class Main extends Sprite { public static var textGenerations:Int = 0; + public static var superDangerMode:Bool = Sys.args().contains("-troll"); + public static var __superCoolErrorMessagesArray:Array = [ "A fatal error has occ- wait what?", "missigno.", diff --git a/version.downloadMe b/version.downloadMe index 2de135652bf..f769fffe83c 100644 --- a/version.downloadMe +++ b/version.downloadMe @@ -1,5 +1,5 @@ -1.12.0; -- Accurate RAM -- Toggleable RAM Counter -- Chart Editor Improvements -- More optimizations \ No newline at end of file +1.13.0; +- Song Credits +- Tankman ASCEND +- ScoreTxt Size +- Full Android Support \ No newline at end of file