Skip to content

Commit

Permalink
[Feat] Fail Priority Toggle
Browse files Browse the repository at this point in the history
Add an option setting to allow FAIL to not take precedent over lamps.
  • Loading branch information
tsoup committed Feb 7, 2021
1 parent e80b479 commit 5963207
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ChunItachi/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ string apikey = "";
string kamaUser = "";
string kamaPass = "";
string apitimeout = "";
bool failOverLamp = true;

//initialize search directories vector
vector<std::string> finalSearchDirs;
Expand Down Expand Up @@ -355,7 +356,7 @@ DWORD WINAPI threadMain(LPVOID lpParam) {
if (genreID == "0" or genreID == "99" or genreID == "2" or genreID == "3" or genreID == "6" or genreID == "1" or genreID == "7" or genreID == "8" or genreID == "9" or genreID == "5" or genreID == "10") {
if (dif2String != "WORLD'S END" and dif2String != "TUTORIAL" and dif2String != "ERROR") {
//calculate lamp
if (songBars < targetBars/100) {
if (songBars < targetBars/100 and failOverLamp) {
songLamp = "FAILED";
}
else if (songMiss == 0 and songAttack == 0 and songJustice == 0) {
Expand All @@ -367,6 +368,9 @@ DWORD WINAPI threadMain(LPVOID lpParam) {
else if (songMiss == 0) {
songLamp = "FULL COMBO";
}
else if (songBars < targetBars / 100) {
songLamp = "FAILED";
}
else {
songLamp = "CLEAR";
}
Expand Down Expand Up @@ -494,6 +498,7 @@ BOOL APIENTRY DllMain(HMODULE hModule,
}
//load up ini settings
debug = GetBooleanValue((char*)"showDebug");
failOverLamp = GetBooleanValue((char*)"failOverLamp");

//get the directories that contain AXXX folders, then find paths to AXXX folders and put them in a vector
char startDirChar[MAX_PATH];
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Config file info, everything else should mostly remain untouched:
- game, set this to any of amazon, amazonplus, or crystal
- username, set this to your kamai username
- password, set this to your kamai password
- failOverLamp, set this to false if you would prefer your lamps to take precedent over the FAILED lamp, set this to true if you want FAILED to take precedent

You need an option folder defined in segatools.ini

Expand Down

0 comments on commit 5963207

Please sign in to comment.