Quote:
Originally Posted by Markismus
I'll try to port your code to Android by inserting it in chrisboyle's code. It will be quite nice to see what the result of your work is.
|
That could actually work. May I ask what kind of experience you have so far with Chris Boyle's Android code? I ported some additional puzzles some years ago to the android SGT app and compiled them to my local copy on an android tablet (not an eInk device).
You cannot just copy the game files from the PocketBook SGT source code to the Android source code, compiling will fail. You need to adjust some code lines there. You need to adjust mainly two things:
a) The Android app needs several callbacks from a game file, things like what control keys the specific game needs, and a signal when the game is solved.
b) The game struct containing the callback functions must be adjusted slightly to the android code.
You can have a look here at the game files in my older android modification to get some clues what must be changed:
https://github.com/SteffenBauer/sgtp...p/src/main/jni
Look mainly for code segments with "
#ifdef ANDROID ... #endif", and quite at the bottom of each file the "
const struct game thegame".
This should all that is needed to port games that are already existing in the Android app. Should you want to port games that are not in the Android app, a little bit more work needs to be done, you need icons, an entry in the game lists etc. You can look here what files need to be modified (caution, this is older code, the newer version of the Android code might be different now)
https://github.com/SteffenBauer/sgtp...d/app/src/main
Good luck, I think this should be really doable with a little bit of effort.