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
Is Nanosaur big endian compatible? #37
Comments
In ReadTGA (TGA.c), try to add the line marked 'ADD THIS' below (untested, let me know if it works): /* ... */
// Read header
readCount = sizeof(TGAHeader);
err = FSRead(refNum, &readCount, (Ptr) &header);
if (err != noErr || readCount != sizeof(TGAHeader))
{
FSClose(refNum);
return err;
}
UnpackStructs("<8B4H2B", sizeof(TGAHeader), 1, &header); // <---------- ADD THIS
// Make sure we support the format
switch (header.imageType)
/* ... */ |
It starts with the patch above and I see the Nanosaur title screen in wrong colors and after pressing the key SPACE, the Credits screen in wrong colors either. Then after the pressing the key SPACE again, I see the Pangea logo with the correct colors. After that it crashes with the error message "Segmentation fault". Debugging with GDB (backtrace): gdb Nanosaur Output:
(gdb) run
bt Output:
|
In src/System/File.c, try to comment out all calls to |
Try to replace
|
Working fine on MorphOS (PPC), thanks |
The big-endian fixes have been pushed to master. Feel free to reopen this issue if anything's missing. |
Hi Jorio,
I compiled Nanosaur 1.4.4 with Void PPC on my X5000 today.
Further information: https://forum.hyperion-entertainment.com/viewtopic.php?p=56760#p56760
Unfortunately it doesn't start.
grep -i DecompressRLE . -r
Is Nanosaur big endian compatible?
Thanks,
Christian
The text was updated successfully, but these errors were encountered: