Skip to content

Commit

Permalink
Rolo 2.0
Browse files Browse the repository at this point in the history
Added the ability to customise FPS Limit
Added the ability to customise Roblox Installation Location
Rolo now also unlocks Roblox Studio FPS
  • Loading branch information
icrann committed Jun 11, 2023
1 parent f2dfa66 commit bfd0ecd
Show file tree
Hide file tree
Showing 14 changed files with 308 additions and 254 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified Rolo/.vs/Rolo/v17/.suo
Binary file not shown.
Binary file modified Rolo/Rolo Setup/Debug/Rolo Setup.msi
Binary file not shown.
386 changes: 193 additions & 193 deletions Rolo/Rolo Setup/Rolo Setup.vdproj

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Rolo/Rolo.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VisualStudioVersion = 17.5.33502.453
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rolo", "Rolo\Rolo.csproj", "{0FCF4A62-832D-4E7F-953D-0156BDE86E99}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Rolo Setup", "Rolo Setup\Rolo Setup.vdproj", "{2F21E8A0-6037-4F10-B30D-B3BD58151B5E}"
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "Rolo Setup", "Rolo Setup\Rolo Setup.vdproj", "{6D55183D-FC62-499B-A844-E30BBBA86667}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -17,8 +17,8 @@ Global
{0FCF4A62-832D-4E7F-953D-0156BDE86E99}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FCF4A62-832D-4E7F-953D-0156BDE86E99}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FCF4A62-832D-4E7F-953D-0156BDE86E99}.Release|Any CPU.Build.0 = Release|Any CPU
{2F21E8A0-6037-4F10-B30D-B3BD58151B5E}.Debug|Any CPU.ActiveCfg = Debug
{2F21E8A0-6037-4F10-B30D-B3BD58151B5E}.Release|Any CPU.ActiveCfg = Release
{6D55183D-FC62-499B-A844-E30BBBA86667}.Debug|Any CPU.ActiveCfg = Debug
{6D55183D-FC62-499B-A844-E30BBBA86667}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
106 changes: 80 additions & 26 deletions Rolo/Rolo/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 32 additions & 32 deletions Rolo/Rolo/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@
using Newtonsoft.Json;
using System.Xml;

namespace Rolo
{
public partial class Form1 : Form
{
public Form1()
{
namespace Rolo {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
private void button1_Click(object sender, EventArgs e) {
// Get the path to the latest version of Roblox
string robloxPath = GetLatestRobloxPath();

Expand All @@ -33,12 +29,9 @@ private void button1_Click(object sender, EventArgs e)
ClientAppSettings clientSettings = new ClientAppSettings();

// Check if an item has been selected in the comboBox1 control
if (comboBox1.SelectedItem != null)
{
clientSettings.DFIntTaskSchedulerTargetFps = int.Parse(comboBox1.SelectedItem.ToString());
}
else
{
if (textBox2.Text != null) {
clientSettings.DFIntTaskSchedulerTargetFps = int.Parse(textBox2.Text.ToString());
} else {
// Display an error message if no item has been selected
MessageBox.Show("Please select a value from the drop-down list.");
return;
Expand All @@ -51,21 +44,31 @@ private void button1_Click(object sender, EventArgs e)
MessageBox.Show("Roblox FPS cap unlocked.");
}

private string GetLatestRobloxPath()
{
string robloxVersionsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Roblox\\Versions");
private string GetLatestRobloxPath() {
if (textBox1.Text == "Default") {
string robloxVersionsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Roblox\\Versions");

// Get the latest directory in the Roblox versions folder
DirectoryInfo latestDirectory = new DirectoryInfo(robloxVersionsPath).GetDirectories().OrderByDescending(d => d.CreationTime).FirstOrDefault();
// Get the latest directory in the Roblox versions folder
DirectoryInfo latestDirectory = new DirectoryInfo(robloxVersionsPath).GetDirectories().OrderByDescending(d => d.CreationTime).FirstOrDefault();

if (latestDirectory != null)
{
return latestDirectory.FullName;
}
else
{
MessageBox.Show("Unable to locate Roblox installation directory.");
throw new Exception("Unable to locate Roblox installation directory.");
if (latestDirectory != null) {
return latestDirectory.FullName;
} else {
MessageBox.Show("Unable to locate Roblox installation directory.");
throw new Exception("Unable to locate Roblox installation directory.");
}
} else {
string robloxVersionsPath = Path.Combine(textBox1.Text, "Versions");

// Get the latest directory in the Roblox versions folder
DirectoryInfo latestDirectory = new DirectoryInfo(robloxVersionsPath).GetDirectories().OrderByDescending(d => d.CreationTime).FirstOrDefault();

if (latestDirectory != null) {
return latestDirectory.FullName;
} else {
MessageBox.Show("Unable to locate Roblox installation directory.");
throw new Exception("Unable to locate Roblox installation directory.");
}
}
}

Expand All @@ -76,13 +79,10 @@ private void button2_Click(object sender, EventArgs e)

// Delete the "ClientSettings" folder and its contents
string clientSettingsPath = Path.Combine(robloxPath, "ClientSettings");
if (Directory.Exists(clientSettingsPath))
{
if (Directory.Exists(clientSettingsPath)) {
Directory.Delete(clientSettingsPath, true);
MessageBox.Show("FPS unlocker disabled successfully.");
}
else
{
} else {
MessageBox.Show("FPS unlocker is already disabled.");
}
}
Expand Down
Binary file modified Rolo/Rolo/bin/Debug/Rolo.exe
Binary file not shown.
Binary file modified Rolo/Rolo/bin/Debug/Rolo.pdb
Binary file not shown.
Binary file modified Rolo/Rolo/obj/Debug/Rolo.csproj.GenerateResource.cache
Binary file not shown.
Binary file modified Rolo/Rolo/obj/Debug/Rolo.exe
Binary file not shown.
Binary file modified Rolo/Rolo/obj/Debug/Rolo.pdb
Binary file not shown.

0 comments on commit bfd0ecd

Please sign in to comment.