Skip to content

Commit

Permalink
weapon adjuster thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ermaccer committed Aug 30, 2021
1 parent 78d9959 commit a31f3de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions source/code/plugin/weapon_adjuster/eWeaponAdjuster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
eWeaponEntry eWeaponAdjuster::m_vWeapons[TOTAL_COLLECTABLES];
void eWeaponAdjuster::InitHooks()
{

if (ReadFile("data\\weapons.dat"))
{
InjectHook(0x470F82, CCollectable_IsSniperRifle, PATCH_CALL);
Expand Down Expand Up @@ -74,8 +75,6 @@ bool eWeaponAdjuster::ReadFile(const char * path)
sprintf(wep.m_szExecution, execution);

m_vWeapons[GetTypeFromStr(collectableType)] = wep;

printf("%d %d %s\n", wep.m_nType, wep.m_iFlags, wep.m_szExecution);
}

}
Expand Down
8 changes: 4 additions & 4 deletions source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ int GenericFalseReturn() { return 0; }
void GenericDummy() { }
void Init()
{
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
//AllocConsole();
//freopen("CONIN$", "r", stdin);
//freopen("CONOUT$", "w", stdout);
//freopen("CONOUT$", "w", stderr);

eSettingsManager::Init();

Expand Down

0 comments on commit a31f3de

Please sign in to comment.