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

fix audio plugin file extension #75

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

MiranDMC
Copy link
Collaborator

No description provided.

@MiranDMC MiranDMC merged commit 274a7fa into master Feb 27, 2024
@MiranDMC MiranDMC deleted the fix_audio_plugin_file_extension branch February 27, 2024 17:56
@@ -8,7 +8,7 @@
using namespace CLEO;
using namespace plugin;

#define VALIDATE_STREAM() if(!soundSystem.HasStream(stream)) { SHOW_ERROR("Invalid or already closed '0x%X' audio stream handle param in script %s \nScript suspended.", stream, ScriptInfoStr(thread).c_str()); return thread->Suspend(); }
#define VALIDATE_STREAM() if(stream != nullptr && !soundSystem.HasStream(stream)) { SHOW_ERROR("Invalid or already closed '0x%X' audio stream handle param in script %s \nScript suspended.", stream, ScriptInfoStr(thread).c_str()); return thread->Suspend(); }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we also suspend when stream is nullptr?

if(stream == nullptr || !soundSystem.HasStream(stream))

Copy link
Collaborator Author

@MiranDMC MiranDMC Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy code allowed null ptr as input arg in sound stream opcodes.
These changes are dictated by actuall mod that happens to relay on it.

So now code allows 0 and any valid stream handle.

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.

2 participants