[Bug 3026] PowerPC q3lcc doesn't produce usable QVM files
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Thu Oct 11 07:23:29 EDT 2007
http://bugzilla.icculus.org/show_bug.cgi?id=3026
------- Comment #8 from tim at ngus.net 2007-10-11 07:23 EDT -------
Based on that I'd say endianness is definitely a problem. You could try the
following hacky patch:
Index: code/tools/asm/q3asm.c
===================================================================
--- code/tools/asm/q3asm.c (revision 1193)
+++ code/tools/asm/q3asm.c (working copy)
@@ -527,10 +527,10 @@
if ( seg->imageUsed >= MAX_IMAGE - 4) {
Error( "MAX_IMAGE" );
}
- seg->image[ seg->imageUsed ] = v & 255;
- seg->image[ seg->imageUsed + 1 ] = ( v >> 8 ) & 255;
- seg->image[ seg->imageUsed + 2 ] = ( v >> 16 ) & 255;
- seg->image[ seg->imageUsed + 3 ] = ( v >> 24 ) & 255;
+ seg->image[ seg->imageUsed + 3 ] = v & 255;
+ seg->image[ seg->imageUsed + 2 ] = ( v >> 8 ) & 255;
+ seg->image[ seg->imageUsed + 1 ] = ( v >> 16 ) & 255;
+ seg->image[ seg->imageUsed + 0 ] = ( v >> 24 ) & 255;
seg->imageUsed += 4;
}
--
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the quake3-bugzilla
mailing list