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

Support for non-Windows platforms? #1

Open
Ithamar opened this issue Aug 5, 2021 · 0 comments
Open

Support for non-Windows platforms? #1

Ithamar opened this issue Aug 5, 2021 · 0 comments

Comments

@Ithamar
Copy link

Ithamar commented Aug 5, 2021

I'm interested in porting Carnivores to non-Windows platforms (including using Emscripten to compile to WebAssembly for HTML5/web support).
I've had a look at the code base, and the following parts stand out:

  • File IO. Change all the CreateFile/ReadFile/WriteFile/CloseFile code to fopen/fread/fwrite/fclose.
  • Memory. Change HeapAlloc to use malloc, at least on non-Windows platforms.
  • Windowing/2D Surface handling: Use SDL (again, possibly only on non-Windows platform, if we want to keep the native code).

There's likely some more, like font handling and the like, but I'm sure that shouldn't be too hard to abstract away.

My main question here is, would the maintainer(s) of this repository be interested in a Pull Request for that?

I'd prefer to not be yet-another-Carnivores fork...

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

1 participant