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

Compilation error MSVC 2003 (for PC and Xbox OG) #32

Closed
inactive123 opened this issue Feb 19, 2018 · 10 comments
Closed

Compilation error MSVC 2003 (for PC and Xbox OG) #32

inactive123 opened this issue Feb 19, 2018 · 10 comments

Comments

@inactive123
Copy link
Collaborator

inactive123 commented Feb 19, 2018

If we can fix this, we could make this game work on the original Xbox.

Log here -

https://hastebin.com/vuwomegula.pas

@frranck
Copy link
Collaborator

frranck commented Feb 19, 2018

@twinaphex Just pushed, let me know if that works now...

@inactive123
Copy link
Collaborator Author

Now I get this error -

mrboom.c(119307) : warning C4295: 'heap57' : array is too small to include a ter minating null character
mrboom.c(121279) : fatal error C1060: compiler is out of heap space

@frranck
Copy link
Collaborator

frranck commented Feb 20, 2018

funny to get an heap error with the heap variable. Could C4295 be caused by C1060 ?
microsoft gives some solution for C1060:
https://msdn.microsoft.com/en-us/library/yz7kx3y2.aspx

@frranck
Copy link
Collaborator

frranck commented May 13, 2018

@twinaphex I tried to fix the problem by loading the data from the files like in the SDL2 version.
This is adding a minizip dependancy and I've got error with 16.WAV and 17.WAV.
Could you give it a try ?

@frranck
Copy link
Collaborator

frranck commented May 19, 2018

Fixed the 16.WAV and 17.WAV problem...

@SimpleTease
Copy link
Contributor

I created a working build with 2003.
SimpleTease@59e4199

  1. minizip dependency
  2. net files have to load before mrboom.h
  3. compat_snprintf
  4. converted sdl2_data.h to avoid 65536 string limit
  5. copied a bunch of 2003 makefile stuff from other libretro projects
  6. mrboom.h
  • doesn't understand __attribute__ ((__packed__));
  • some int x,y moved out of loop headers

Music and gameplay okay.

I do have one problem though: when going to Retroarch menu while in-game, it freezes. Debugger suggests XAudio is stuck waiting for something but I'm not sure.

Could be this line is mistake.
SimpleTease@59e4199#diff-4c7efb8ec878d49060539d3e5294eb67358d3134333be0b537df51e40d448b5aR733

@inactive123
Copy link
Collaborator Author

Hi @SimpleTease , did you send a PR for this to either the libretro repo or Javanaise?

@SimpleTease
Copy link
Contributor

Not yet ready because I'm making extra changes like adjusting formatting and modifying compiler flags. I found a fix for the 2003 crashing but 2005 has some unique libretro-common/net compiler problems. So I want to make sure it's fully ready before sending off the PR.

I'll probably add it up here to Javanaise when I feel it's convenient.

@frranck
Copy link
Collaborator

frranck commented Nov 20, 2020

so can this one be closed?

@SimpleTease
Copy link
Contributor

Tried msvc buildbot and it works. So ticket can be closed.

@frranck frranck closed this as completed Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants