mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
7684028f99
## Link to GitHub Issue, if one exists similar issue as #499 ## Description of change Fix broken bi2x_hook implementations that did not properly allocate I/O buffers with correct sizes. People keep copy-pasting other implementation that allocate 0 bytes of memory, but we run the risk of memory corruption or/or game crashes if we keep doing this. We've seen some mystery crashes with CCJ for example, maybe this will fix that. While I'm here, implement SOCD cleaner for Polaris Chord. ## Testing Tested I/O menu with CCJ, play through tutorial (didn't test matches) Tested GWDelta (test menu and a few songs in guitar) Tested PC (played a credit) Tested QKS (still can't get past the title screen)
19 lines
387 B
C++
19 lines
387 B
C++
#pragma once
|
|
|
|
#include "games/game.h"
|
|
|
|
namespace games::pc {
|
|
extern std::string PC_INJECT_ARGS;
|
|
extern bool PC_NO_IO;
|
|
extern bool PC_KNOB_MODE;
|
|
|
|
class PCGame : public games::Game {
|
|
public:
|
|
PCGame() : Game("Polaris Chord") {}
|
|
|
|
virtual void pre_attach() override;
|
|
virtual void attach() override;
|
|
virtual void detach() override;
|
|
};
|
|
}
|