Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for initial VGUI2 support #1090

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kungfulon
Copy link
Contributor

@kungfulon kungfulon commented Nov 2, 2022

  • Move VGui_Startup call in CL_LoadProgs to below client.dll Initialize. VGui_Startup is actually called first in SCR_VidInit, so we can be sure that VGUI is loaded before loading client.dll. It is required to do this because CS 1.6 initializes some interface in Initialize.
  • Pass client.dll path to vguiapi_t::Startup VGUI2 needs this to start client.dll vgui2 viewport.
  • Expose library management functions to vguiapi_t.

Combined with FWGS/vgui_support#3, CS 1.6 will be loadable and playable, without vgui2 rendering. Tested on Windows.

- move VGui_Startup call in CL_LoadProgs to below client.dll Initialize.
VGui_Startup is actually called first in SCR_VidInit, so we can be sure
that VGUI is loaded before loading client.dll.
- pass client.dll path to vguiapi_t::Startup
VGUI2 needs this to start client.dll vgui2 viewport.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant