Merge pull request #176 from diamante0018/remove-bad-unused-code
[QuickPatch] Remove unused code consuming resources
This commit is contained in:
commit
5dc2f48444
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Components
|
||||
{
|
||||
int QuickPatch::FrameTime = 0;
|
||||
Dvar::Var QuickPatch::r_customAspectRatio;
|
||||
|
||||
void QuickPatch::UnlockStats()
|
||||
@ -433,15 +432,9 @@ namespace Components
|
||||
jmp ebx
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QuickPatch::QuickPatch()
|
||||
{
|
||||
QuickPatch::FrameTime = 0;
|
||||
Scheduler::OnFrame([]()
|
||||
{
|
||||
QuickPatch::FrameTime = Game::Sys_Milliseconds();
|
||||
});
|
||||
|
||||
// quit_hard
|
||||
Command::Add("quit_hard", [](Command::Params*)
|
||||
{
|
||||
|
@ -11,11 +11,8 @@ namespace Components
|
||||
bool unitTest() override;
|
||||
|
||||
static void UnlockStats();
|
||||
static int GetFrameTime() { return FrameTime; }
|
||||
|
||||
private:
|
||||
static int FrameTime;
|
||||
|
||||
static void SelectStringTableEntryInDvarStub();
|
||||
|
||||
static int SVCanReplaceServerCommand(Game::client_t *client, const char *cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user