Nathan Fulton
71dd4eb5b5
Save preferences as json
...
Preferences have keys as defined in ht.h. These keys can be used to read/write preferences. Preferences are saved in a .json on the disk.
This is much easier to work with than the old presences binary structures as it doesn’t require preference versioning.
2017-10-21 20:36:37 -04:00
Nathan Fulton
122a2d198f
Change gnScrollSpeed to float
2017-10-21 20:36:36 -04:00
Nathan Fulton
3ecad7c281
Accept the 2432 data directory
2017-10-21 20:36:35 -04:00
Nathan Fulton
fd31d33274
Android gszMainDataDir = NULL
...
Using NULL as the main data dir will tell the SDL API (the current host file I/O) to fallthough and read from the .apk assets. This is currently desirable in every existing case.
2017-10-21 20:29:54 -04:00
Nathan Fulton
84b4e0f6ba
Implement Android HostHelper code for SdlPackFileReader
...
Needed for changes SdlPackFileReader changes in commit 61e081be5690202cae1e03d6e6cc89a3e94257b7
2017-10-21 20:28:33 -04:00
Nathan Fulton
6b9241fbc5
Add Android jni method for obtaining the AssetManager
2017-10-21 20:28:33 -04:00
Nathan Fulton
5d7e0ddf3c
Update SdlPackFile I/O
...
SdlPackFile can now push and pop directories using host file I/O. This allows for reading from directories as though they were .pdbs (like the htdata2432 dir) while maintaining the pushed hierarchy. pdbs can still be used.
2017-10-21 20:28:32 -04:00
Nathan Fulton
2ef0ab5ae8
Implement host file I/O
...
Host file I/O API to read files from disk
2017-10-21 20:28:31 -04:00
Nathan Fulton
4896fbe384
Read json fonts
...
A font.json maps characters to image file names. The Font class caches all the glyph images then draws the appropriate one(s) at blt time.
2017-10-21 20:28:29 -04:00
Nathan Fulton
97a84b8e27
Add texture atlas manager
2017-10-21 20:28:28 -04:00
Nathan Fulton
901a201a45
Refactor: ".tbm" -> ".png"
2017-10-21 20:28:27 -04:00
Nathan Fulton
0cd8cff9c2
Change HtBitmap references to TBitmap
2017-10-21 20:27:45 -04:00
Nathan Fulton
7fa189e3da
Use CreateTBitmap()
...
Replace:
- GetSharedTBitmap()
- LoadRawBitmap()
- LoadTBitmap()
2017-10-21 20:27:44 -04:00
Nathan Fulton
da52f61897
Implement new TBitmap code
...
Texture bitmap, for storing information about images in texture atlases.
2017-10-21 20:27:24 -04:00
Nathan Fulton
bc8777e56e
Implement new DibBitmap code
...
Implemented with SDL API
2017-10-21 20:27:23 -04:00
Nathan Fulton
de281e5fd7
Remove old bitmap code
...
- DibBitmap
- HtBitmap
- RawBitmap
- Tbitmap
2017-10-21 20:27:23 -04:00
Nathan Fulton
f7a4eb1d69
ht.h include yajl/wrapper/jsontypes.h
2017-10-21 20:27:05 -04:00
Nathan Fulton
16be766113
chooseserverform use yajl wrapper functions
2017-10-21 20:27:04 -04:00
Nathan Fulton
e402ca76b5
Remove prebuilt SDL2 libraries
2017-10-21 19:56:12 -04:00
Nathan Fulton
875dd884ec
Remove Android -fexceptions cpp flag
2017-10-21 02:55:34 -04:00
Nathan Fulton
8800cca7cc
Set appropriate GL attributes
2017-10-21 02:55:10 -04:00
Nathan Fulton
ed1d50c8ea
Add D3 to challenge maps list
2017-10-21 02:54:25 -04:00
Nathan Fulton
31ca038021
Fix bug with simulation pause state and backgrounding
2017-10-21 02:54:14 -04:00
Nathan Fulton
b06b3db1d4
Process SDL_KEYUP for SDLK_AC_BACK
...
This prevents SDLK_AC_BACK from getting processed multiple times if an
Android user holds their finger on the hardware back button.
2017-10-21 02:54:09 -04:00
Nathan Fulton
830dc6a0d3
Correct use of Android system UI flags
...
Removed the use of SYSTEM_UI_FLAG_HIDE_NAVIGATION and
SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION for API 14 through API 18.
2017-10-21 02:54:09 -04:00
Nathan Fulton
8ecee55001
Recompile data assets with recent changes
...
Mute sound option was added to forms.ini
2017-10-21 02:53:50 -04:00
Nathan Fulton
81a4cf6ed3
Make lasso selection available on desktop
2017-10-21 02:49:40 -04:00
Nathan Fulton
891e6273ac
In-game option to mute sound
...
In 1dceae4cf0ea47df5ee8ab24ae2fde2644527c43 the in-game mute option was
ignored. This has been undone because players requested a mute sound
button added to options.
2017-10-21 02:49:39 -04:00
Nathan Fulton
1226f3ec50
Implement SDL HostGetCurrentKeyState()
2017-10-21 02:49:38 -04:00
Nathan Fulton
8de4b24252
Remove SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH
...
OTG mouse events don’t get processed correctly. With this hint removed,
SDL mouse events will be handled as touch events and touch will raise
fake mouse events.
2017-10-21 02:49:37 -04:00
Nathan Fulton
22077a7328
Human readable sdlhttprequest error messages
2017-10-21 02:49:36 -04:00
Nathan Fulton
5d3dd6a472
Always present login form for MP
...
Instead of defaulting to the login method last used, always initialize
the login handler to a non-anonymous login. Players who want to play as
anon will have to explicitly check the anonymous box for every login.
2017-10-21 02:48:54 -04:00
Nathan Fulton
a8d606e957
Support maps that are smaller than the device screen
2016-08-31 23:55:30 -04:00
Scott Ludwig
dc42d310d6
Add bit about running with asan_symbolize
2016-08-31 23:55:30 -04:00
Scott Ludwig
7fe6d72942
Use gcc's address sanitizer feature on debug builds
...
Update to gcc-5 / g++-5 first. Instructions in the makefile.
2016-08-31 23:55:30 -04:00
Scott Ludwig
95046aaaee
Use delete[] for arrays allocated with new[].
2016-08-31 23:55:30 -04:00
Scott Ludwig
e2e2283583
Use free for malloc-ed objects
2016-08-31 23:55:30 -04:00
Scott Ludwig
6a0c49d05e
Fix memory overwrite bug in memory manager
...
Surprising this has been in the code this long.
2016-08-31 23:55:30 -04:00
Scott Ludwig
4874844ec2
Include correctly cased include file filename
2016-08-31 23:55:30 -04:00
Scott Ludwig
6750cc3cad
Silence directory creation
2016-08-31 23:55:30 -04:00
Scott Ludwig
a4896472b6
Install libcurl4-openssl-dev which provides libcurl3-dev
2016-08-31 23:55:30 -04:00
Scott Ludwig
d5b4006193
A few minor enhancements to install.sh
2016-08-31 23:55:30 -04:00
Nathan Fulton
c488c6222a
Set pevt->ff when sdl host processes messages
2016-08-31 23:54:49 -04:00
Nathan Fulton
8c4da26891
Remove unit highlight during replication
2016-08-31 23:54:48 -04:00
Nathan Fulton
7974edd381
Fix processor bug
2016-08-31 23:54:48 -04:00
Nathan Fulton
bec7aea014
Initial SDL-Linux port
2016-08-31 23:54:48 -04:00
Nathan Fulton
5b5917fbab
Implement SdlAnimSprite
2016-08-31 23:54:48 -04:00
Nathan Fulton
f0b60db710
Fix builder bug that allowed ordering disabled units
...
If a unit was ordered while it was enabled, and then the order was
canceled after the unit was disabled, the order button would appear and
allow the disabled unit to be ordered more. This would continue to work
as long as there was at least one order of the disabled unit in the
queue to cancel.
2016-08-31 23:54:48 -04:00
Nathan Fulton
fc00f91f25
Added processing for vchrBack
...
Android’s system back button will be processed as vchrBack which will
select kidcCancel on most forms. This causes the user to feel that the
game is more integrated with the OS.
2016-08-31 23:54:48 -04:00
Nathan Fulton
d6b301c3e7
Track client platform version
...
Client platform version can be retrieved live with /ids and is also
recorded in the playerdetail module.
2016-08-31 23:54:48 -04:00