mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-07 23:20:26 +09:00
gsr-game-tracker: add TETR.IO
This commit is contained in:
2
TODO
2
TODO
@@ -261,4 +261,4 @@ Show vulkan codec options.
|
|||||||
|
|
||||||
Use wlroots protocol for region selection, if the protocol is available.
|
Use wlroots protocol for region selection, if the protocol is available.
|
||||||
|
|
||||||
Fix kwin wayland and hyprland window title. Make it work on gnome as well.
|
Make window title stuff work on gnome (requires an extension).
|
||||||
|
|||||||
@@ -266,7 +266,6 @@ namespace gsr {
|
|||||||
int gsr_game_tracker_process_output_fd = -1;
|
int gsr_game_tracker_process_output_fd = -1;
|
||||||
FILE *gsr_game_tracker_process_output_file = nullptr;
|
FILE *gsr_game_tracker_process_output_file = nullptr;
|
||||||
pid_t gsr_game_tracker_process_id = -1;
|
pid_t gsr_game_tracker_process_id = -1;
|
||||||
bool game_running = false;
|
|
||||||
GameReplayAction game_replay_action = GameReplayAction::IDLE;
|
GameReplayAction game_replay_action = GameReplayAction::IDLE;
|
||||||
|
|
||||||
struct wl_display *wayland_dpy = nullptr;
|
struct wl_display *wayland_dpy = nullptr;
|
||||||
|
|||||||
@@ -2218,10 +2218,8 @@ namespace gsr {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(strncmp(line, "Game launched", 13) == 0) {
|
if(strncmp(line, "Game launched", 13) == 0) {
|
||||||
game_running = true;
|
|
||||||
game_replay_action = GameReplayAction::START;
|
game_replay_action = GameReplayAction::START;
|
||||||
} else if(strncmp(line, "Game exited", 11) == 0) {
|
} else if(strncmp(line, "Game exited", 11) == 0) {
|
||||||
game_running = false;
|
|
||||||
game_replay_action = GameReplayAction::STOP;
|
game_replay_action = GameReplayAction::STOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ def main():
|
|||||||
all_games.extend(add_games_from_rules_filepath(ananicy_waydroid_path))
|
all_games.extend(add_games_from_rules_filepath(ananicy_waydroid_path))
|
||||||
all_games.append("supertux2")
|
all_games.append("supertux2")
|
||||||
all_games.append("etr") # extreme tux racer
|
all_games.append("etr") # extreme tux racer
|
||||||
|
all_games.append("TETR.IO")
|
||||||
|
|
||||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
write_process_name_matcher_code_file(os.path.join(script_dir, "native_games.c"), all_games)
|
write_process_name_matcher_code_file(os.path.join(script_dir, "native_games.c"), all_games)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ static const char *process_names_len_13[] = { "yamagi-quake2", "prismlauncher",
|
|||||||
static const char *process_names_len_17[] = { "yamagi-quake2-git", "Zelda64Recompiled", "xonotic-local-sdl", NULL };
|
static const char *process_names_len_17[] = { "yamagi-quake2-git", "Zelda64Recompiled", "xonotic-local-sdl", NULL };
|
||||||
static const char *process_names_len_3[] = { "0ad", "etl", "RMG", "etr", NULL };
|
static const char *process_names_len_3[] = { "0ad", "etl", "RMG", "etr", NULL };
|
||||||
static const char *process_names_len_2[] = { "fm", "et", NULL };
|
static const char *process_names_len_2[] = { "fm", "et", NULL };
|
||||||
static const char *process_names_len_7[] = { "Etterna", "etterna", "vkquake", "melonDS", "ryujinx", "sdlmame", "scummvm", "blastem", "redream", "shadps4", NULL };
|
static const char *process_names_len_7[] = { "Etterna", "etterna", "vkquake", "melonDS", "ryujinx", "sdlmame", "scummvm", "blastem", "redream", "shadps4", "TETR.IO", NULL };
|
||||||
static const char *process_names_len_16[] = { "unreal-bin-amd64", "xenia_canary.exe", "elyprismlauncher", NULL };
|
static const char *process_names_len_16[] = { "unreal-bin-amd64", "xenia_canary.exe", "elyprismlauncher", NULL };
|
||||||
|
|
||||||
bool is_process_name_native_game(const char *process_name, size_t size) {
|
bool is_process_name_native_game(const char *process_name, size_t size) {
|
||||||
|
|||||||
Reference in New Issue
Block a user