Elektrine lite

← Feed

@alice@mk.nyaa.place

Post #3434499

2026-05-15 02:33 UTC

I need some distraction from drawing controllers, so instead: the app now tracks play time for each game, and displays it in properties. Later on we can also sort by play time in the library, but for now it's just this. I also fixed a few bugs with the overlay menu. Obv the time will start from 0 for existing games - nothing I can do here, but for people who start using the app on release it will be correct from the start.

Replies (1)

  • @alice@mk.nyaa.place 2026-05-17 03:45

    I added a few tests (yes, it didn't have any until now). It's mostly fairly small things, but most of the app is out of reach either way - we have no infra for testing UIs. So it will be mostly parser tests, and for now I'm testing a few math utilities, a function that formats timespans, and a function that turns filenames into game titles. Speaking of the last one, I also fixed a few things. It's fairly common to have ROMs prefixed by numbers - e.g. 0028 - Kirby - Canvas Curse (USA).nds. This filename would previously result in "0028 - Kirby - Canvas Curse" as the title, and now it's just "Kirby - Canvas Curse" instead. And there's a test for it as well, yes. This is complicated by the fact a bunch of games actually have 4-digit numbers and a dash as part of their title: 1869 - Erlebte Geschichte Teil I 1941 - Counter Attack 1943 - The Battle of Midway 1943 - The Battle of Valhalla 1943 - One Year After 1985 - The Day After 1994 - Ten Years After 1999 - Hore, Mitakotoka! Seikimatsu 2010 - Street Fighter 2010 - The Graphic Action Game I had to add special cases for these (and a test too, yes). For everything else though - no more numbers.

    Open ##3434498