Commit Graph
30 Commits
Author SHA1 Message Date
kichikuou a5aa8d0672 Android: Update SDL2 to 2.0.16 2021-09-19 15:59:33 +09:00
kichikuou 2529a5b61b Android: Update SDL2 to 2.0.14 2021-01-01 12:34:37 +09:00
kichikuou 4aff7a1df7 Android: Fix StringIndexOutOfBoundsException in text input dialog 2020-10-18 14:56:32 +09:00
kichikuou 5e5defb6bc Android: Input dialog truncates string that exceeds maximum length 2020-09-06 10:35:35 +09:00
kichikuou 38758569bb Android: Implement input dialogs 2020-09-04 17:03:01 +09:00
kichikuou f0ccdcf40a Android: Use arhive filename as alternate launcher item name
The title.txt file is written when the MT command is used, however some
games (Daiakuji, AmbivalenZ, Ikenai Katsumi sensei) does not use the MT
command. As a result, these titles did not appear in the launcher.

This makes the launcher use the name of the ZIP archive when the game
was installed as the alternate item name if the MT command was not used.
2020-06-07 12:23:19 +09:00
kichikuou d3579186c6 Android: Populate BGM, WAI, BGI, Init, and SACT01 lines in xsystem35.gr 2020-06-06 12:30:14 +09:00
kichikuou 73216073af Android: Update SDL2 to 2.0.12 2020-03-13 16:22:44 +09:00
kichikuou dbb396ae7c Android: Skip zip entries with UTFDataFormatException
This allows installation from some ZIPs distributed by AliceSoft
archives, in Android < 7.0.

Some other ZIPs have game files with SJIS names, so change the error
message depending on whether there's a decode error.
2020-02-24 14:06:45 +09:00
kichikuou 174f1ac359 Android: Play MIDI via temporary file
MediaPlayer in old versions of Android does not accept data: URL.
2020-02-16 11:35:01 +09:00
kichikuou af49f40d0b Android: Sort game list by date of title.txt
The title played last comes first.
2020-02-11 09:49:01 +09:00
kichikuou 11442f1574 Android: Do not create SJIS-encoded ZIP 2020-02-11 09:43:49 +09:00
kichikuou acd4dc239b Android: Fix loop parameter handling for CD-DA/MIDI
The semantics of `loop` parameter of start() is very confusing.
Added comments in cdrom.h/midi.h to clarify the meaning.
2020-02-09 19:22:47 +09:00
kichikuou 70c6480181 Use StringBuilder 2020-02-09 14:33:25 +09:00
kichikuou ea747ffcc9 Android: Add Japanese strings 2020-02-08 21:01:49 +09:00
kichikuou 6854d9bea2 Android: Export / import save files
Now save files can be exported to ZIP / imported from ZIP by the
option menu of the launcher activity.
2020-02-01 18:52:23 +09:00
kichikuou b7bbbaee61 Android: Update game list on setTitle()
This fixes a bug where newly installed game does not appear in the game
list after quitting the first game run.
2020-02-01 11:06:02 +09:00
kichikuou e5f1036b6b Android: Minor code cleanup 2020-01-28 22:05:53 +09:00
kichikuou f4b301a28d Android: Simplify intent parameters for GameActivity 2020-01-28 21:54:02 +09:00
kichikuou c98a11dc0e Android: Generate xsystem35.gr file
The installer writes xsystem35.gr file into the game root directory.

Now save files are created at `files/save` directory, which is outside
the game directory. This scheme is the same as Kichikuou on Web, so it
would make transferring save data between two easier.
2020-01-28 21:53:44 +09:00
kichikuou 809232a4cb Android: Remove launchMode="singleInstance"
So that game activity can be resumed from android launcher.
2020-01-26 13:07:47 +09:00
kichikuou f6d8611e77 Android: Introduce model class for launcher
This fixes a bug where screen rotation during installation causes crash.
2020-01-26 13:01:28 +09:00
kichikuou 31e073203d Android: MIDI support 2020-01-25 17:23:53 +09:00
kichikuou 8f10145fc4 Android: Use android.media.MediaPlayer for BGM playback
Playlist is written to <gamedir>/playlist.txt during installation
("cdrom_device" in .xsys35rc is not used).
Files that match /(\d+)\.(wav|mp3|ogg)$/ are recognized as BGM files
(digits represent a track number). Note that this convention is the same
as Kichikuou on Web.
2020-01-19 22:18:04 +09:00
kichikuou 0fab2405f8 Android: Move strings to Android resource 2020-01-18 18:56:02 +09:00
kichikuou 5831087c8b Various changes in AndroidManifest.xml
- Launcher activity should use default theme
- Remove unnecessary permissions
- Warning fixes
2020-01-15 21:00:01 +09:00
kichikuou 473e490686 Android: New launcher
The new launcher activity is a ListActivity and allows:

- Installing games from ZIP
- Launching installed games
- Uninstalling games
2020-01-13 18:55:52 +09:00
kichikuou 127c21e032 Android: Add launcher icon 2020-01-05 22:31:35 +09:00
kichikuou b2c1ba5247 Android: Add simple launcher
This adds a minimal launcher activity for the android app, which does
the followings:

- Opens a file chooser to let user select a zip file
- Extracts the zip into the app's internal storage
- Launches the SDL activity
2019-12-31 21:18:26 +09:00
kichikuou d1d0641642 Android: Import android project files from SDL
This just copies android-project/ directory of https://hg.libsdl.org/SDL/
(rev 13383) to android/.
2019-12-31 11:31:28 +09:00