Added environment variables to toggle different parts of the UI off

This commit is contained in:
Empathic Qubit 2021-04-30 16:03:45 -04:00
parent aa190c9f92
commit 393dc44ac2
4 changed files with 11 additions and 5 deletions

4
.gitmodules vendored
View file

@ -1,6 +1,6 @@
[submodule "bsnes"]
path = bsnes
url = ./
url = .
[submodule "gambatte"]
path = gambatte
url = ./
url = .

View file

@ -64,7 +64,7 @@ FONT_SRC=unifontfull-5.1.20080820.hex
# Lua package to use.
# - Usually either 'lua' or 'lua5.2'.
# - Default value is 'lua'.
LUA=lua
LUA=lua5.2
# Regex package to use.
# Currently supported:
@ -88,7 +88,7 @@ GRAPHICS=WXWIDGETS
# - DUMMY: No sound.
# - PORTAUDIO: Portaudio.
# - LIBAO: Libao.
SOUND=PORTAUDIO
SOUND=DUMMY
# Joystick library to use.
# Currently supported:

View file

@ -605,7 +605,9 @@ bool lsnes_app::OnInit()
lsnes_instance.mdumper->set_output(&messages.getstream());
msg_window = new wxwin_messages(lsnes_instance);
if(!getenv("LSNES_HIDE_MESSAGES")) {
msg_window->Show();
}
init_main_callbacks();

View file

@ -1080,6 +1080,10 @@ wxwin_mainwindow::wxwin_mainwindow(emulator_instance& _inst, bool fscreen)
toplevel->Add(gpanel = new panel(this, inst), 1, wxGROW);
toplevel->Add(spanel = new wxwin_status::panel(this, inst, gpanel, 20), 1, wxGROW);
spanel_shown = true;
if(getenv("LSNES_HIDE_STATUSPANEL")) {
spanel_shown = false;
spanel->Hide();
}
toplevel->SetSizeHints(this);
SetSizer(toplevel);
Fit();