-
Notifications
You must be signed in to change notification settings - Fork 24
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
Load & use DB config in recordsets #226
Conversation
This behaves similarly to official, with the only difference it uses a shared method in CServerDlg (etc) to construct the connection string from members of CServerDlg, whereas officially it accesses this externally, e.g.: CString strConnect; strConnect.Format(..., m_pMain->m_strGameDSN, ...);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @twostars 🚀 and also thanks for your efforts in explaining how it was done officialy and wrongly xD I like your approach more with the cerntralized function to get the connection string, as well as the singleton approach. That will be also helpful in the long run as more code is added later.
Just one nit-pick comment, let me know if you have the patience to apply, otherwise I'll just merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change updates the LoginServer connection string to be loaded from server.ini instead of Version.ini. This ensures all server files share a unified configuration source, improving maintainability. This adjustment also fixes twostars changes in PR #226. Future improvements to better structure sections across server files will follow in a separate commit.
Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.
Description
This behaves similarly to official, with the only difference it uses a shared method in CServerDlg (etc.) to construct the connection string from members of CServerDlg (etc.), whereas officially it accesses this externally, e.g.:
💔Thank you!