1
0
mirror of synced 2024-11-14 10:27:47 +01:00

Fix cel shaded on chasehq

This commit is contained in:
Aaron M 2020-01-03 10:24:57 +13:00
parent 08d7a56a2a
commit 3fe164e996
2 changed files with 22 additions and 3 deletions

View File

@ -14,6 +14,10 @@ along with FFB Arcade Plugin.If not, see < https://www.gnu.org/licenses/>.
#include <string> #include <string>
#include "ChaseHQ2.h" #include "ChaseHQ2.h"
static bool removecel = false;
static wchar_t* settingsFilename = TEXT(".\\FFBPlugin.ini");
static int RemoveCelShadedFilter = GetPrivateProfileInt(TEXT("Settings"), TEXT("RemoveCelShadedFilter"), 0, settingsFilename);
int ttx2chasehq2(int ffRaw) { int ttx2chasehq2(int ffRaw) {
switch (ffRaw) { switch (ffRaw) {
// moving right, from weakest to strongest (30 => 16). // moving right, from weakest to strongest (30 => 16).
@ -85,7 +89,7 @@ int ttx2chasehq2(int ffRaw) {
} }
} }
void ChaseHQ2::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTriggers* triggers) { void ChaseHQ2::FFBLoop(EffectConstants* constants, Helpers* helpers, EffectTriggers* triggers) {
int ff = 0; int ff = 0;
{ {
@ -101,9 +105,24 @@ void ChaseHQ2::FFBLoop(EffectConstants *constants, Helpers *helpers, EffectTrigg
ff = ttx2chasehq2(ffRaw); ff = ttx2chasehq2(ffRaw);
} }
if (RemoveCelShadedFilter == 1)
{
if (!removecel)
{
helpers->WriteNop(0x31FFA, true);
helpers->WriteNop(0x31FFB, true);
helpers->WriteNop(0x31FFC, true);
helpers->WriteNop(0x31FFD, true);
helpers->WriteNop(0x31FFE, true);
helpers->WriteNop(0x31FFF, true);
removecel = true;
}
helpers->WriteByte(0x130CB30, 0x00, true); // Remove Cel Shaded Filter
}
helpers->log("got value: "); helpers->log("got value: ");
std::string ffs = std::to_string(ff); std::string ffs = std::to_string(ff);
helpers->log((char *)ffs.c_str()); helpers->log((char*)ffs.c_str());
if (ff > 15) if (ff > 15)
{ {

View File

@ -1,6 +1,6 @@
***FFB Arcade Plugin*** ***FFB Arcade Plugin***
Version 1.5a Version 1.6
Brought to you by Boomslangnz, Ducon2016, Spazzy & pinkimo. Brought to you by Boomslangnz, Ducon2016, Spazzy & pinkimo.