Skip to content

Commit

Permalink
final 1.13.0 changes (?!?!?!)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Oct 27, 2023
1 parent c0c6712 commit 30db7bf
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gitVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.0
1.13.0
49 changes: 49 additions & 0 deletions source/CoolUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Int> = null)
{
Expand Down
2 changes: 2 additions & 0 deletions source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = [
"A fatal error has occ- wait what?",
"missigno.",
Expand Down
10 changes: 5 additions & 5 deletions version.downloadMe
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1.12.0;
- Accurate RAM
- Toggleable RAM Counter
- Chart Editor Improvements
- More optimizations
1.13.0;
- Song Credits
- Tankman ASCEND
- ScoreTxt Size
- Full Android Support

0 comments on commit 30db7bf

Please sign in to comment.