Fix cel shaded on chasehq
This commit is contained in:
parent
08d7a56a2a
commit
3fe164e996
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user