Commit Graph
154 Commits
Author SHA1 Message Date
kichikuou 131707f9d8 Merge upstream changes: Improve error messages for unknown commands
Unlike the upstream, we use fatal() because it generates a message box
even if DEBUG_CONSOLE is disabled.
2020-05-22 09:32:04 +09:00
kichikuou 406a7fe106 Merge upstream changes: output_console() takes printf-style arguments 2020-05-21 23:24:54 +09:00
kichikuou dadf0aa6b5 MIDI: Improve SMF generation
- Fade out in the last second
- Emit channel reset messages at the end
2020-05-17 14:13:40 +09:00
kichikuou c8b3cd182c Fix a bug of BGM loop in Windows
The info structure must be initialized with the SDL version before
calling SDL_GetWindowWMInfo.
2020-05-16 20:40:38 +09:00
kichikuou dc3a031819 Move sys/mako.cpp to linux/mako.cpp 2020-05-16 19:34:03 +09:00
kichikuou 245b69cc06 Update README.md
- SDL2_mixer is no longer needed in Windows
- Change --playlist example to mp3 (ogg cannot be used in Windows)
2020-05-16 17:52:14 +09:00
kichikuou 9f5f4e6843 Add Windows native implementaton of MAKO
The MIDI synthesizer bundled with SDL_Mixer doesn't sound as good as
Windows' built-in software synthesizer.

This adds Windows native implementation of MAKO as win/mako.cpp. It
plays MIDI by writing out SMF to a temporary file and play it with MCI.
CD emulation (--playlist) is also implemented using MCI.
The PCM implementation is copyed from TOTO's original Win32 impl.

This removes SDL_mixer dependency in Windows.

Fixes #1.
2020-05-16 17:36:23 +09:00
kichikuou b475c465fd Android: Update SDL2 to 2.0.12 2020-03-13 16:28:31 +09:00
kichikuou e518f9e23e Fix build and character encoding issues in Win32 2020-02-24 19:46:32 +09:00
kichikuou 7654f1a671 Fix character encoding in string literals 2020-02-24 19:38:12 +09:00
kichikuou 7a1cc2a483 Convert all Shift_JIS files to UTF-8 2020-02-24 18:06:38 +09:00
kichikuou 9f09c0c2de Android: Bump version to 0.3.0 android-0.3.0 2020-02-24 12:00:09 +09:00
kichikuou c2ff010102 Android: Skip zip entries with UTFDataFormatException
In most cases it is 配布フリー宣言.txt and can be safely ignored.
2020-02-24 11:54:17 +09:00
kichikuou e574b826d9 Add GitHub workflow for Android build 2020-02-23 21:58:09 +09:00
kichikuou ca16b99846 Add GitHub workflow for Linux build 2020-02-23 18:41:01 +09:00
kichikuou 28e1adfcfb Add GitHub workflow for emscripten build 2020-02-23 18:16:09 +09:00
kichikuou 4ae7e9e7aa Move SYSTEM1 initialization code to NACT_Sys1 constructor 2020-02-23 14:41:10 +09:00
kichikuou 7ffa8bc306 Avoid virtual functions in NACT
Since NACT functions call asynchronous operations and we use
ASYNCIFY_IGNORE_INDIRECT in emscripten.
2020-02-23 14:23:30 +09:00
kichikuou d6aaf31b1a Change the semantics of -savedir option
Now trailing '@' is replaced with the game id.
2020-02-23 12:02:29 +09:00
kichikuou f880eba7a4 Fix build instructions 2020-02-22 22:28:48 +09:00
kichikuou 15fc2f6c8e Merge rest2/ to res3/ 2020-02-22 18:27:01 +09:00
kichikuou bb7636d54b Rewrite README.md 2020-02-22 17:35:05 +09:00
kichikuou 348dff7575 Add game table entry for Prostudent G omake
Use `-game prog_omake` to play it.
2020-02-22 16:15:51 +09:00
kichikuou 20ba438300 Unify executables
Instead of building multiple executables using #ifdefs, create a single
executable (still called "system3") that can run all System1-3 games.
2020-02-22 16:15:47 +09:00
kichikuou 34e33d6394 Android: Bump version to 0.2.0 android-0.2.0 2020-02-16 16:10:53 +09:00
kichikuou 387c5febf2 Remove tchar.h shim 2020-02-16 15:57:05 +09:00
kichikuou 1f5449687f Clean up MAKO code 2020-02-16 15:57:05 +09:00
kichikuou a518eccc77 Update build instructions
Now SDL2_mixer is required.
2020-02-16 15:56:57 +09:00
kichikuou 6bd6bca7dc Implement PCM sound with SDL_mixer 2020-02-16 13:36:01 +09:00
kichikuou 52313dd682 Emscripten: MIDI support 2020-02-16 11:09:32 +09:00
kichikuou 4ede5b1b4c Android: Play MIDI via temporary file
MediaPlayer in old versions of Android does not accept data: URL.
2020-02-16 10:28:29 +09:00
kichikuou 4aa5cc5bfd Android: MIDI support 2020-02-15 23:01:23 +09:00
kichikuou 487bd49745 CD-DA BGM playback support with SDL_mixer
This adds -playlist command line option to specify a "playlist" file
which lists music files to be played instead of CD audio tracks.
The format of playlist file is the same as xsystem35's.
2020-02-15 17:27:37 +09:00
kichikuou 51b65c84af MIDI playback with SDL_mixer
Instead of controlling MIDI device in real time, generate a data stream
in SMF format and feed it to SDL_mixer.
2020-02-15 17:27:34 +09:00
kichikuou 05a3c826f9 Refactor CMakeLists.txt 2020-02-11 11:09:26 +09:00
kichikuou 0d6500dc76 s/system3/System3/ android-0.1.0 2020-02-10 22:27:00 +09:00
kichikuou f42e0cd5ef Android: Update README 2020-02-10 21:55:03 +09:00
kichikuou 3e4f0d6c48 Android: Sort game list by date of title.txt
The title played last comes first.
2020-02-10 18:41:23 +09:00
kichikuou 936e524670 Android: Fix import / export of save files 2020-02-10 17:45:22 +09:00
kichikuou 2d0619a19a Android: Store saved files under game-id/ subdirectory
This is to prevent overwriting saved files of other games, since System3
uses common save file names regardless of the game.
2020-02-10 13:09:07 +09:00
kichikuou 8615df6e12 Add -game option
This overrides the title detection by CRC. For example,

  system3 -game rance41

forces system3 to work in Rance 4.1 mode. See nact_crc32.cpp for
possible flag values. This is useful when running patched games.
2020-02-10 12:14:18 +09:00
kichikuou faeb487b02 Android: Change icon color 2020-02-09 21:47:07 +09:00
kichikuou eea7cc3c9b Android: Store saved files to save/ directory
So that import / export will work.
2020-02-09 21:47:07 +09:00
kichikuou 91993ef4a3 Android: CD-DA emulation support 2020-02-09 21:47:07 +09:00
kichikuou 55e6dde4f8 Android: Fix screen issues
- Create window as fullscreen
- Redraw screen after task resume
2020-02-09 21:47:07 +09:00
kichikuou f4ff96ac62 Android: Fix launcher to work with system3 files
Unlike xsystem35, directory structure in ZIP is not preserved.
2020-02-09 21:47:07 +09:00
kichikuou ccb5bda7f5 Android: Copy the new launcher code from xsystem35-sdl2 70c6480 2020-02-09 21:47:04 +09:00
kichikuou 274027f703 Android: Add launcher icon 2020-01-05 22:31:17 +09:00
kichikuou 8577374fc2 Android: 32-bit ABI support 2020-01-05 12:27:43 +09:00
kichikuou c04301c117 Android: Fix multi-touch detection 2020-01-04 11:31:40 +09:00