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

Unconventional param order in some CLEO4 opcodes #64

Closed
x87 opened this issue Dec 11, 2022 · 0 comments
Closed

Unconventional param order in some CLEO4 opcodes #64

x87 opened this issue Dec 11, 2022 · 0 comments

Comments

@x87
Copy link
Contributor

x87 commented Dec 11, 2022

https://library.sannybuilder.com/#/sa/CLEO/0AD4?p=1&v=1
Text.ScanString(str: string, format: string, args: arguments, var text: string)
but in CLEO args goes after var text
0AD4=-1,%3d% = scan_string %1d% format %2s%

UPDATE: CORRECTED
Text.ScanString(string: string, format: string, var nValues: int, var values: arguments): bool

https://library.sannybuilder.com/#/sa/CLEO/0AD3?p=1&v=1
Text.StringFormat(format: string, args: arguments, var text: string)
in CLEO var text goes first, then format then args
0AD3=-1,%1d% = string_format %2s%
UPDATE: CORRECTED

https://library.sannybuilder.com/#/sa/CLEO/0ADA?p=1&v=1
File.Scan(self: File, format: string, args: arguments, var text: string): bool
in CLEO file, then format, then var text, then args
0ADA=-1,%3d% = scan_file %1d% format %2d% // IF and SET

UPDATE: CORRECTED
File.Scan(self: File, format: string, var nValues: int, var values: arguments): bool

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

No branches or pull requests

1 participant