-
Notifications
You must be signed in to change notification settings - Fork 3
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 finishCallback not compiling and pass the player to the callback #69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, works well with Wheelsprung, no related warnings.
The only one left for me is /Users/ninovanhooff/.choosenim/toolchains/nim-1.6.16/lib/system/repr_v2.nim(102, 7) Hint: 'firstElement' is declared but not used [XDeclaredButNotUsed]
Hopefully fixed in Nim v2, and not something under our control, I think. In any case unrelated to this PR
Still this compile error on windows:
|
Mhh I just tested the example project on Windows and it compiled fine, what's the Nim code that spawns that error on your machine? |
I did a bunch of verification on my environment but still get the same result. @Nycto would you be able to verify whether this branch builds on Windows?
|
Here are the contents of my nimcache, if it helps |
I tried using Nim 2.0.2 before (with the package installed using nimble install).
|
Maybe try reinstalling the MSYS2 mingw-w64 toolchain? |
I foresee that needs to be done soon again for NimV2, so I rather won't do that twice. If you are confident enough that the problem is with my env, go ahead and merge this. Working: Not working You might say that this gives us enough confidence that problem is with my setup. I'll try again when Nim 2 is merged and debug from there. I don't need windows to be working in the meantime; I only use it for future playtests |
Saw this line in your build output:
Where does that
Does yours output the same info? Also, a
|
Using
This does bring in ucrt though:
After this, gcc was not recognised as a program anymore, and updated my ENV variable from ucrt to After restarting everything, the output to the commands you mentioned is comparable to yours, but not equal. Nim fails with the same too many arguments error. My output:
|
Odd, does |
There might be a hint here After installing with And restarting stuff,
So, at least in the What is the recommended way to re-install nim in such a way that it will simply use the compilers on the PATH? |
OK, I removed Nim and re-installed it with choosenim. This fixed the issue with the compiler not being found, but we are back to square 1 :-( with both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a copy-paste mistake with Fileplayer.setfinishCallback. probably
So I finally fixed my windows compile issue. The solution being to update the Playdate SDK from the very old 1.13.0 to the latest 2.4.2. No clue how that fixed it, but let's just get this merged and be done with it. You might want to have a look at the comment on the fileplayer code I just posted though |
Ahh, makes sense! In 1.13.0 there was no |
Add a finishCallback usage to the example project
8b2269d
to
d0c5c74
Compare
Add a finishCallback usage to the example project