Added environment variables to toggle different parts of the UI off
This commit is contained in:
parent
aa190c9f92
commit
393dc44ac2
4 changed files with 11 additions and 5 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,6 +1,6 @@
|
|||
[submodule "bsnes"]
|
||||
path = bsnes
|
||||
url = ./
|
||||
url = .
|
||||
[submodule "gambatte"]
|
||||
path = gambatte
|
||||
url = ./
|
||||
url = .
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -605,7 +605,9 @@ bool lsnes_app::OnInit()
|
|||
lsnes_instance.mdumper->set_output(&messages.getstream());
|
||||
|
||||
msg_window = new wxwin_messages(lsnes_instance);
|
||||
msg_window->Show();
|
||||
if(!getenv("LSNES_HIDE_MESSAGES")) {
|
||||
msg_window->Show();
|
||||
}
|
||||
|
||||
init_main_callbacks();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue