Ejemplo n.º 1
0
DWORD
WINAPI DllThread (LPVOID user)
{
  if (TZF_Init_MinHook() == MH_OK) {
    tzf::SoundFix::Init     ();
    tzf::FrameRateFix::Init ();
    tzf::FileIO::Init       ();
    tzf::SteamFix::Init     ();
    tzf::RenderFix::Init    ();

    TZF_EnableHook (MH_ALL_HOOKS);
  }

  return 0;
}
Ejemplo n.º 2
0
void
tzf::SteamFix::Init (void)
{
  CommandProcessor* comm_proc = CommandProcessor::getInstance ();

  if (! config.steam.allow_broadcasts)
    return;

  steam_dll = LoadLibrary (L"steam_api.dll");

  TZF_CreateDLLHook ( L"steam_api.dll", "SteamVideo",
                      SteamVideo_Detour,
           (LPVOID *)&SteamVideo_Original,
           (LPVOID *)&SteamVideo );

  TZF_EnableHook (SteamVideo);
}