The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Powder Toy mods
/
Android TPT port
«
1
7
8
9
10
11
39
»
Android TPT port
jBot-42
28th Sep 2015
Banned
0
Permalink
This post is hidden because the user is banned
Edited 2 times by jBot-42. Last:
28th Sep 2015
jacob1
28th Sep 2015
Developer
0
Permalink
@jBot-42
(View Post)
Yes, all you have to do is put in the new source and tell it to compile that instead :P
There might be a few more issues than that though of course ... lol
jBot-42
28th Sep 2015
Banned
0
Permalink
This post is hidden because the user is banned
Edited once by jBot-42. Last:
28th Sep 2015
jacob1
28th Sep 2015
Developer
1
Permalink
@jBot-42
(View Post)
This one also does, in main.cpp.
jBot-42
28th Sep 2015
Banned
0
Permalink
This post is hidden because the user is banned
Edited once by jBot-42. Last:
28th Sep 2015
jacob1
28th Sep 2015
Developer
0
Permalink
@jBot-42
(View Post)
No, it uses SDL 1.2. I tried SDL 2 but it was just too much work to rewrite the SDL stuff at once and didn't have much benefit.
jBot-42
28th Sep 2015
Banned
0
Permalink
This post is hidden because the user is banned
Edited 8 times by jBot-42, jacob1. Last:
28th Sep 2015
jacob1
28th Sep 2015
Developer
0
Permalink
@jBot-42
(View Post)
try going into includes/SDLCompat.h, and adding extern "C" { } around the SDL includes.
Do it just like this file does it:
https://github.com/jacob1/The-Powder-Toy/blob/c%2B%2B/includes/LuaCompat.h
jBot-42
28th Sep 2015
Banned
0
Permalink
This post is hidden because the user is banned
Edited 6 times by jBot-42. Last:
28th Sep 2015
jacob1
28th Sep 2015
Developer
0
Permalink
@jBot-42
(View Post)
That's exactly what extern "C" is for. It tells the compiler to compile something as C code. It might look something like this:
#ifdef
__cplusplus
extern "C"
{
#endif
#include
<SDL.h>
// other stuff here
#ifdef
__cplusplus
}
#endif
Edited once by jacob1. Last:
28th Sep 2015
«
1
7
8
9
10
11
39
»