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

Cannot require more than one file.sc #121

Closed
ghost opened this issue May 23, 2020 · 2 comments
Closed

Cannot require more than one file.sc #121

ghost opened this issue May 23, 2020 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented May 23, 2020

So I tried to figure out how to require files for separating functions/blocks I did:

main.sc

SCRIPT_START
REQUIRE a.sc
REQUIRE b.sc
NOP
{
    main:
    WAIT 0

    IF IS_BUTTON_PRESSED PAD1 CROSS
        CLEO_CALL afunc 0
    ENDIF

    IF IS_BUTTON_PRESSED PAD1 CIRCLE
        CLEO_CALL bfunc 0
    ENDIF

    GOTO main
}

SCRIPT_END

a.sc

{
    afunc:
    PRINT_STRING_NOW "SHOWA" 1000
    CLEO_RETURN 0
}

b.sc

{
    bfunc:
    PRINT_STRING_NOW "SHOWB" 1000
    CLEO_RETURN 0
}

Pressing Both X or O shows "SHOWA"
arquivos-cleo.zip

I searched the internet a lot, but I couldn't make it work, I'm making a root cheat menu and I only managed to use 2 files and no more, so they are getting too big, I contacted grinch_ and he analyzed it so told me that it seems to be a bug, could you take a look? I will be grateful!

@thelink2012
Copy link
Owner

thelink2012 commented May 23, 2020

Yes, that seems like a bug. Thank you for reporting, I'll investigate and fix ASAP.

@thelink2012
Copy link
Owner

Fixed in the latest release =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant