674 Commits

Author SHA1 Message Date
Vincent-FK
870255f628 add nearest neighbor resizing in render function
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:11 +01:00
Vincent-FK
2ee2c2e5f3 list games only once if same game has multiple accepted extensions
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:19:37 +01:00
Vincent-FK
287b1bb048 use sorted scandir instead of readdir
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:19:20 +01:00
Vincent-FK
5bb70b02eb BUG correction: text not cleared on deallocation, better state printing in state machine
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:52 +01:00
Vincent-FK
c96bd40a9b BUG correction: double free of menu memory
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:37 +01:00
Vincent-FK
0e831fcd66 free idx_menus
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:37 +01:00
Vincent-FK
a460438ed2 add Artifacts folder to .gitignore
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:27 +01:00
Vincent-FK
edc5f7d277 use usr/local/sbin binaries in menu
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:04 +01:00
Vincent-FK
5f1db4952f check exec return code for USB mounting
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:51 +01:00
Vincent-FK
14ca315440 add quick usb commands, need to be improved to check return value
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:43 +01:00
Vincent-FK
a5a611af19 correct render bug
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:32 +01:00
Vincent-FK
dd0d19bd38 change input processing, rendering is now forced at the right times
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:15 +01:00
Vincent-FK
8aef81685d replace SDL_BlitSurface by memcpy
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:09 +01:00
Vincent-FK
f76d500f4a back rotation 270
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:17:05 +01:00
Vincent-FK
9fcf914ab3 use better arrow positioning
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:16:39 +01:00
Vincent-FK
5800044b98 have better scroll handling, less flicker when scrolling is too high to be visible
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:16:15 +01:00
Vincent-FK
c5cb16dfb9 add dummy USB menu, need real functions to know when USB data is present and real functions to perform share start/stop
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:15:59 +01:00
Vincent-FK
997a7acd58 enable key repeat at menu launch
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:15:50 +01:00
Vincent-FK
b95b326352 correct menu flicker at the end of scrolling
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:15:35 +01:00
Vincent-FK
b8324b2bb7 remove SDLK_FIRST possible input
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:15:28 +01:00
Vincent-FK
f7b831f0ab add parameter initInBackground to force init in background thread (but still uses a lot of CPU if game is launched while not finished), and parameter initMetaDb to initialize or not the meta db that takes a lot of time
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:14:39 +01:00
Vincent-FK
8532aa196e add powering-off message
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:14:30 +01:00
Vincent-FK
41288c5c25 add force refresh screen period
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:14:22 +01:00
Vincent-FK
43d2eb62c9 render screen with boolean that is now called after menu exit and after page has correctly finished rendering its last update
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:14:22 +01:00
Vincent-FK
1c72c76c59 add correct VT cleaning after game
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:14:13 +01:00
Vincent-FK
e9070675b9 deinitialize audio correctly when deinitializing SDL: add a while(Mix_Init(0)) before Mix_Quit()
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:13:11 +01:00
Vincent-FK
af54231219 reset variables correctly in menumode::end so that SDL initialize after a deinitialize does not trap
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:12:22 +01:00
Vincent-FK
a72210beb3 remove X11 from cmakeList
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:11:53 +01:00
Vincent-FK
ea42f62418 back to normal blit, for this you need to use the funkey SDL library which has the corect alpha per-pixel alpha blending
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:12 +01:00
Vincent-FK
6eb1a04901 add menu
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:12 +01:00
Vincent-FK
d1809eb9c0 remove joystick
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:12 +01:00
Vincent-FK
d23cf74c1d convert to SDL 1.2
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:04 +01:00
Vincent-FK
14efe60ec0 convert from Hg to git
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 15:54:58 +01:00
Pieter Hulshoff
bab341afef Removed invalid ICCP from png files. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
aaa1eb05d9 Added truRIP superdat and directory structure support. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
0a3fa3957f Fixed copy/paste error causing input queue to be emptied on menu jump. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
38e88c44d7 Added onMenuJumpEnter/Exit animation REPLACING onHighlightEnter/Exit
animation for next/previous letter/page and for random selection; basically
a jump within the same scrolling list menu. Layouts should be updated
accordingly.
2020-11-15 15:54:58 +01:00
Pieter Hulshoff
63b80e8420 Updated version to 0.8.16. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
a72f38e8b1 Added subsSplit global settings to keep different subcollections separated
in the menu.
Added clearInputClear support for playlist change.
2020-11-15 15:54:58 +01:00
Pieter Hulshoff
8576017008 Updated SDL2.dll to the latest version. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
b2d6ffb4c4 Fixed double loading of video on playlist change. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
d5f79d505e Updated Version.cpp. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
57c465cef3 Added onPlaylistEnter/Exit animations REPLACING the onHighlightEnter/Exit
animations that used to be triggered. Layouts should be updated accordingly!
2020-11-15 15:54:57 +01:00
Pieter Hulshoff
1680c8467d Fixed sorting for playlists other than favorites. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
04cae80445 Changed splash interrupt to only react to select key, and use the key status
rather than SDL events.
2020-11-15 15:54:57 +01:00
Pieter Hulshoff
1659a3d067 Changed lack of SDL audio from error to warning.
Additional updates for the menu structure; still WIP.
2020-11-15 15:54:57 +01:00
Pieter Hulshoff
92c4e28cf5 Changed version to 0.8.15b3. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
50633e639f Removed extra call for menu key reading from controls.conf. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
20cb652bf1 Fixed Windows compile error. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
9053c6a861 Make menu key optional. 2018-04-02 11:57:35 +02:00