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.
@kungfulon kungfulon changed the title engine: vgui: changes in vgui startup Changes for initial VGUI2 support Nov 3, 2022
@a1batross a1batross force-pushed the master branch 4 times, most recently from db40812 to a610b15 Compare February 5, 2023 00:45
@a1batross a1batross force-pushed the master branch 8 times, most recently from a888be8 to dca4226 Compare March 27, 2023 03:01
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