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

Argument count mismatch validation in 0AB2 split into critical and non critical cases. #27

Merged
merged 3 commits into from
Nov 12, 2023

Conversation

MiranDMC
Copy link
Collaborator

Fixes #26

@MiranDMC MiranDMC requested a review from x87 November 11, 2023 03:28
@@ -2304,11 +2304,15 @@ namespace CLEO
return CCustomOpcodeSystem::ErrorSuspendScript(thread);
}

if(returnParamCount - 1 != declaredParamCount) // minus 'num args' itself
Copy link

@x87 x87 Nov 11, 2023

Choose a reason for hiding this comment

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

Should we disable this check only in CLEO4 compat mode (.cs4 extension)?

So if there is a broken mod working in CLEO4, they could try renaming to .cs4

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently screen log can be disabled, but stop logging from script that won't be fixed anyway seems better idea.
Do cs4 files has any other behaviour differences at this moment?

Copy link

@x87 x87 Nov 11, 2023

Choose a reason for hiding this comment

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

I don't know, perhaps we should have a separate doc file which would list all differences for .cs4

@x87 x87 merged commit a137881 into master Nov 12, 2023
@MiranDMC MiranDMC deleted the arg_count_check_in_0AB2_not_always_critical branch December 22, 2023 14:15
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.

Mod Not Working
2 participants