Does Love-Android-SDL2 Support In-App Purchases?
-
- Prole
- Posts: 14
- Joined: Wed Dec 02, 2015 11:14 pm
Does Love-Android-SDL2 Support In-App Purchases?
I would like to create a feature that uses in-app purchases, and would like to know if the Android SDL2 supports them. If so, how would I go about using them?
-
- Prole
- Posts: 14
- Joined: Wed Dec 02, 2015 11:14 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
Anyone? If it doesn't, just say no. Thanks!
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
It doesn't. But you can hack it in using ffi I think.
-
- Prole
- Posts: 14
- Joined: Wed Dec 02, 2015 11:14 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
I'm assuming you mean the LibFFI? And how would I go about hacking it in using FFI? I've barely touched Java, but I'm intermediate with Lua. I do know Python, if that helps.bobbyjones wrote:It doesn't. But you can hack it in using ffi I think.
-
- Prole
- Posts: 14
- Joined: Wed Dec 02, 2015 11:14 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
How would you suggest I start with it?undef wrote:LÖVE uses LuaJIT, which has an excellent ffi.
If you read into it you can bind C functions to Lua, so you might be able to add IAPs like that.
Re: Does Love-Android-SDL2 Support In-App Purchases?
I suggest you follow the link I provided, read the documentation and do the tutorial.
- Guard13007
- Party member
- Posts: 133
- Joined: Sat Oct 25, 2014 3:42 am
- Location: Internet, USA
- Contact:
Re: Does Love-Android-SDL2 Support In-App Purchases?
Where would one find the C functions needed for IAPs?undef wrote:LÖVE uses LuaJIT, which has an excellent ffi.
If you read into it you can bind C functions to Lua, so you might be able to add IAPs like that.
Sorry if that's a dumb question, but I am completely unfamiliar with it. FFI makes sense to me, but I don't know what I need past that.
-
- Prole
- Posts: 1
- Joined: Tue Dec 22, 2015 11:59 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
There are no C/C++ functions fo IAP, you need to use JNI to call the Java methods.
-
- Prole
- Posts: 14
- Joined: Wed Dec 02, 2015 11:14 pm
Re: Does Love-Android-SDL2 Support In-App Purchases?
I felt a little bit of a bite from that. But it's fine.undef wrote:I suggest you follow the link I provided, read the documentation and do the tutorial.
I've never programmed with C, so I meant how would I start with C?
Who is online
Users browsing this forum: No registered users and 1 guest