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

Initial value for g_LogoBasePath #538

Merged
merged 1 commit into from
Jun 4, 2020
Merged

Initial value for g_LogoBasePath #538

merged 1 commit into from
Jun 4, 2020

Conversation

tuudik
Copy link
Contributor

@tuudik tuudik commented Jun 3, 2020

I found error in logs about not able to check for logo path, I think it's due to g_LogoBasePath not having any value initally. Not sure if this is correct approach.
The error itself

L 06/01/2020 - 15:30:31: [SM] Exception reported: Invalid path. An empty path string is not valid, use "." to refer to the current working directory.
L 06/01/2020 - 15:30:31: [SM] Blaming: get5_apistats.smx
L 06/01/2020 - 15:30:31: [SM] Call stack trace:
L 06/01/2020 - 15:30:31: [SM]   [0] DirExists
L 06/01/2020 - 15:30:31: [SM]   [1] Line 160, ./scripting/get5_apistats.sp::Get5_OnSeriesInit
L 06/01/2020 - 15:30:31: [SM]   [3] Call_Finish
...

@MoritzLoewenstein Can you validate my PR?

I found error in logs about not able to check for logo path, I think it's due to g_LogoBasePath not having any value initally. Not sure if this is correct approach.
The error itself
```
L 06/01/2020 - 15:30:31: [SM] Exception reported: Invalid path. An empty path string is not valid, use "." to refer to the current working directory.
L 06/01/2020 - 15:30:31: [SM] Blaming: get5_apistats.smx
L 06/01/2020 - 15:30:31: [SM] Call stack trace:
L 06/01/2020 - 15:30:31: [SM]   [0] DirExists
L 06/01/2020 - 15:30:31: [SM]   [1] Line 160, ./scripting/get5_apistats.sp::Get5_OnSeriesInit
L 06/01/2020 - 15:30:31: [SM]   [3] Call_Finish
...
```
@MoritzLoewenstein
Copy link
Contributor

Makes sense, it was an obvious bug (my bad) which should get patched.

@splewis
Copy link
Owner

splewis commented Jun 4, 2020

The code probably probably shouldn't be using a global variable, but this is fine - thanks for the fix.

@splewis splewis merged commit 300b1ab into splewis:master Jun 4, 2020
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.

3 participants