Replay length hack (ugly (temporary))

This commit is contained in:
Nekobit 2023-09-11 13:06:19 -04:00
parent 668be402da
commit 6772f1fcd0
4 changed files with 14 additions and 4 deletions

View File

@ -1,15 +1,18 @@
# Minilauncher4slippi
Launcher for Slippi that runs on Linux, *BSD, and more. It uses the EFL
Launcher for Slippi that runs on Windows, Mac(?), Linux, *BSD, and more. It uses the EFL
toolkit.
It supports Playing the game, replays, and basic settings.
It supports Playing the game (thank GOD...), replays, and basic settings.
---
It was created to work around some Electron woes (specifically on *BSD), alongside just provide a
smaller, minimalistic launcher.
EFL also provides a wider array of customization for themes, such as
colors.. making it a very pretty launcher
# This is unofficial.
```diff

7
home.c
View File

@ -83,6 +83,13 @@ releases_result(struct memory_chunk chunk)
cJSON* body = cJSON_GetObjectItemCaseSensitive(c, "body_html");
Eina_Strbuf* body_fmt = eina_strbuf_manage_new(body->valuestring);
eina_strbuf_replace_all(body_fmt, "\n", "<br>");
eina_strbuf_replace_all(body_fmt, "<h1>", "<title>");
eina_strbuf_replace_all(body_fmt, "</h1>", "</>");
eina_strbuf_replace_all(body_fmt, "<h2>", "<subtitle>");
eina_strbuf_replace_all(body_fmt, "</h2>", "</>");
eina_strbuf_replace_all(body_fmt, "<h3>", "<heading>");
eina_strbuf_replace_all(body_fmt, "</h3>", "</>");
eina_strbuf_replace_all(body_fmt, "<li>", "<li> - ");
eina_strbuf_trim(body_fmt);

View File

@ -36,7 +36,7 @@ _scroll_loop_cb(void* data)
void
input_init_threads()
{
//ecore_timer_add(.005, _scroll_loop_cb, NULL);
ecore_timer_add(.005, _scroll_loop_cb, NULL);
ecore_thread_run(_input_sdl_setup_thread, NULL, NULL, NULL);
ecore_thread_run(_input_gcadapter_setup_thread, NULL, NULL, NULL);
}

View File

@ -13,7 +13,7 @@ struct replay
char* p2;
char* p2code;
int game_state;
} replays[256] = {0};
} replays[25565] = {0};
size_t replays_len = 0;
unsigned