google-code-export / wagic

Automatically exported from code.google.com/p/wagic
1 stars 0 forks source link

particule system file reading not portable #457

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try Running wagic on N900 or Linux 64 bits
2. sizeof("hgeParticleSystemInfo)" is not 128 bytes long (hegparticle.cpp)
3. you'll have crap in important values like "info.nEmission" 

What is the expected output? What do you see instead?
I'm getting either no particle (Linux 64bits) or weird ones (N900) in the main 
menu.

Original issue reported on code.google.com by Xawot...@gmail.com on 20 Sep 2010 at 9:27

GoogleCodeExporter commented 9 years ago
For some reason, the WCachedResource.cpp is also impacted. It's currently 
unclear for me why several instances of the same hgeparticlesystem with the 
same .psi file are created... I fixed the problem on linux 64bits (got very 
large flames now =)), I need to check on N900, I thin I've got an endian 
problem on this one.

Original comment by Xawot...@gmail.com on 20 Sep 2010 at 11:35

GoogleCodeExporter commented 9 years ago
I added a workaround in the file loading to pass the 32 pointer in the 
persisted structure, it's enough for the moment.

Original comment by Xawot...@gmail.com on 22 Dec 2010 at 2:51