Skip to content

Commit

Permalink
fix comp err
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jan 5, 2024
1 parent a58e5af commit d3db7fa
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 17 deletions.
1 change: 1 addition & 0 deletions Build/svencoop/metahook/configs/dllpaths.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FreeImage
Empty file.
7 changes: 0 additions & 7 deletions Plugins/Renderer/gl_draw.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
#include "gl_local.h"
#include "MurmurHash2.h"

#include <ScopeExit/ScopeExit.h>

extern "C"
{
#include <FreeImage.h>
};

#pragma comment(lib,"FreeImage/FreeImage.lib")

// Definitions for the translation and pixel arrays, presumably for texture processing.
static byte texloader_buffer[4096 * 4096 * 4];
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-BlueShift.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e

Expand All @@ -77,6 +76,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-CSCZDeletedScenes.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e

Expand All @@ -77,6 +76,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-ConditionZero.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\czero" "%GameDir%\czero" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e
Expand All @@ -78,6 +77,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-CounterStrike.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\cstrike_hd" "%GameDir%\cstrike_hd" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e
Expand All @@ -78,6 +77,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-DayOfDefeat.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e

Expand All @@ -77,6 +76,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-Echoes.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\echoes" "%GameDir%\%LauncherMod%" /y /e
Expand All @@ -78,6 +77,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-HalfLife.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e

Expand All @@ -77,6 +76,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-HalfLifeUpdated.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e

Expand All @@ -77,6 +76,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-OpposingForce.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\gearbox" "%GameDir%\%LauncherMod%" /y /e
Expand All @@ -78,6 +77,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down
5 changes: 4 additions & 1 deletion scripts/install-to-SvenCoop.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ goto no_replace_sdl2

if exist "%SolutionDir%Build\MetaHook.exe" copy "%SolutionDir%Build\MetaHook.exe" "%GameDir%\%LauncherExe%" /y
if exist "%SolutionDir%Build\MetaHook_blob.exe" copy "%SolutionDir%Build\MetaHook_blob.exe" "%GameDir%\metahook_blob.exe" /y
copy "%SolutionDir%Build\FreeImage.dll" "%GameDir%\" /y
xcopy "%SolutionDir%Build\svencoop" "%GameDir%\%LauncherMod%" /y /e
xcopy "%SolutionDir%Build\svencoop_addon" "%GameDir%\%LauncherMod%_addon\" /y /e
mkdir "%GameDir%\%LauncherMod%_schinese\"
Expand All @@ -84,6 +83,10 @@ echo Make sure that you have all plugins you want in the plugins.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst"

echo Make sure that you have all library directories you want in the dllpaths.lst

notepad "%GameDir%\%LauncherMod%\metahook\configs\dllpaths.lst"

echo Done
echo Please launch game from shortcut "MetaHook for %ShortGameName%"
pause
Expand Down

0 comments on commit d3db7fa

Please sign in to comment.