Skip to content

Commit

Permalink
Fix wrong parameter in GameUI_LoadControlSettings.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jan 12, 2024
1 parent 05b185b commit a68813a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Plugins/CaptionMod/GameUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,8 @@ void* __fastcall COptionsDialog_ctor(vgui::Panel* pthis, int dummy, vgui::Panel*
}
#endif

//Load res to make it proportional
gPrivateFuncs.GameUI_LoadControlSettings(pthis, 0, "Resource\\OptionsDialog.res", NULL, NULL);
//Load res to make it proportional
gPrivateFuncs.GameUI_LoadControlSettings(pthis, 0, "Resource\\OptionsDialog.res", NULL);

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion Plugins/CaptionMod/privatefuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ typedef struct
PVOID (*VGUIClient001_CreateInterface)(HINTERFACEMODULE hModule);

//GameUI
void(__fastcall* GameUI_LoadControlSettings)(void* pthis, int dummy, const char* controlResourceName, const char* pathID, KeyValues* pPreloadedKeyValues);
void(__fastcall* GameUI_LoadControlSettings)(void* pthis, int dummy, const char* controlResourceName, const char* pathID);
void *(__fastcall*COptionsDialog_ctor)(void *pthis, int dummy, void *parent);
void *(__fastcall*COptionsSubVideo_ctor)(void *pthis, int dummy, void *parent);
void(__fastcall *COptionsSubVideo_ApplyVidSettings)(void *pthis, int dummy, bool bForceRestart);
Expand Down
6 changes: 5 additions & 1 deletion scripts/install-helper-CopyBuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ if "%LauncherMod%"=="svencoop" (

mkdir "%GameDir%\platform\"
xcopy "%SolutionDir%Build\platform" "%GameDir%\platform" /y /e

mkdir "%GameDir%\%LauncherMod%_hidpi\"
xcopy "%SolutionDir%Build\svencoop_hidpi" "%GameDir%\%LauncherMod%_hidpi\" /y /e

if not exist "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst" copy "%GameDir%\%LauncherMod%\metahook\configs\plugins_svencoop.lst" "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst" /y

) else (

xcopy "%SolutionDir%Build\valve" "%GameDir%\%LauncherMod%" /y /e
mkdir "%GameDir%\%LauncherMod%_hidpi\"
xcopy "%SolutionDir%Build\svencoop_hidpi" "%GameDir%\%LauncherMod%_hidpi\" /y /e

if not exist "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst" copy "%GameDir%\%LauncherMod%\metahook\configs\plugins_goldsrc.lst" "%GameDir%\%LauncherMod%\metahook\configs\plugins.lst" /y
)
Expand Down

0 comments on commit a68813a

Please sign in to comment.