Skip to content

ItzzExcel/fflag-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fflag-wrapper

Shout out to Bitdancer and the entire Hyperion team for soon disabling the manual setting of FFlags, which will make it impossible for many people with low-end computers to play Roblox. 😹

A quite simple Wrapper for Fast Flags.
Compatible with Bloxstrap, automatically calculates the game directories.

The header does not follow best practices, you are absolutely right if you don't like my code.

Requirements

  • nlohmann/json
    • You can install this with vcpkg if you're using a Visual Studio enviroment.
  • C++14 or higher.
    • You'll need this to use the filesystem library.

Usage

#include "fflags.hpp"

int main(int argc, char const *argv[])
{
    // Change if Bloxstrap is allowed.
    FFlags::ALLOW_BLOXSTRAP = <bool>;

    // Read a value from ClientAppSettings.json
    std::string value = FFlags::Read("DFIntTaskSchedulerTargetFps");
    printf("The value of DFIntTaskSchedulerTargetFps is %s", value.c_str());

    // Write a value in ClientAppSettings.json
    std::string fps_cap = "999";
    if (FFlags::Write("DFIntTaskSchedulerTargetFps", fps_cap)) {
        printf("DFIntTaskSchedulerTargetFps set to %s", fps_cap.c_str());
    }

    // Delete a value from ClientAppSettings.json
    if (FFlags::Delete("DFIntTaskSchedulerTargetFps")) {
        printf("DFIntTaskSchedulerTargetFps deleted from ClientAppSettings.json");
    }

    return 0;
}

If you use this, please give a little credit in your project.
— Made with love by Excel. <3

About

A quite simple Wrapper for Fast Flags.

Topics

Resources

License

Stars

Watchers

Forks

Languages