Add preprocessor variable to override version number on title bar.
Modify github workflow to set version number to current git SHA, and append to artifact name.
This commit is contained in:
parent
669fa4d8cd
commit
f9cdcfa6b6
4 changed files with 17 additions and 8 deletions
2
src/pc.c
2
src/pc.c
|
|
@ -605,7 +605,7 @@ void runpc()
|
|||
if (win_title_update)
|
||||
{
|
||||
win_title_update=0;
|
||||
sprintf(s, "PCem v17 - %i%% - %s - %s - %s", fps, model_getname(), models[model].cpu[cpu_manufacturer].cpus[cpu].name, (!mousecapture) ? "Click to capture mouse" : ((mouse_get_type(mouse_type) & MOUSE_TYPE_3BUTTON) ? "Press CTRL-END to release mouse" : "Press CTRL-END or middle button to release mouse"));
|
||||
sprintf(s, "PCem " PCEM_VERSION_STRING " - %i%% - %s - %s - %s", fps, model_getname(), models[model].cpu[cpu_manufacturer].cpus[cpu].name, (!mousecapture) ? "Click to capture mouse" : ((mouse_get_type(mouse_type) & MOUSE_TYPE_3BUTTON) ? "Press CTRL-END to release mouse" : "Press CTRL-END or middle button to release mouse"));
|
||||
#ifdef __APPLE__
|
||||
// Needed due to modifying the UI on the non-main thread is a big no-no.
|
||||
dispatch_async_f(dispatch_get_main_queue(), strdup(s), _set_window_title);
|
||||
|
|
|
|||
Loading…
Reference in a new issue