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"]
|
[submodule "bsnes"]
|
||||||
path = bsnes
|
path = bsnes
|
||||||
url = ./
|
url = .
|
||||||
[submodule "gambatte"]
|
[submodule "gambatte"]
|
||||||
path = gambatte
|
path = gambatte
|
||||||
url = ./
|
url = .
|
||||||
|
|
|
@ -64,7 +64,7 @@ FONT_SRC=unifontfull-5.1.20080820.hex
|
||||||
# Lua package to use.
|
# Lua package to use.
|
||||||
# - Usually either 'lua' or 'lua5.2'.
|
# - Usually either 'lua' or 'lua5.2'.
|
||||||
# - Default value is 'lua'.
|
# - Default value is 'lua'.
|
||||||
LUA=lua
|
LUA=lua5.2
|
||||||
|
|
||||||
# Regex package to use.
|
# Regex package to use.
|
||||||
# Currently supported:
|
# Currently supported:
|
||||||
|
@ -88,7 +88,7 @@ GRAPHICS=WXWIDGETS
|
||||||
# - DUMMY: No sound.
|
# - DUMMY: No sound.
|
||||||
# - PORTAUDIO: Portaudio.
|
# - PORTAUDIO: Portaudio.
|
||||||
# - LIBAO: Libao.
|
# - LIBAO: Libao.
|
||||||
SOUND=PORTAUDIO
|
SOUND=DUMMY
|
||||||
|
|
||||||
# Joystick library to use.
|
# Joystick library to use.
|
||||||
# Currently supported:
|
# Currently supported:
|
||||||
|
|
|
@ -605,7 +605,9 @@ bool lsnes_app::OnInit()
|
||||||
lsnes_instance.mdumper->set_output(&messages.getstream());
|
lsnes_instance.mdumper->set_output(&messages.getstream());
|
||||||
|
|
||||||
msg_window = new wxwin_messages(lsnes_instance);
|
msg_window = new wxwin_messages(lsnes_instance);
|
||||||
msg_window->Show();
|
if(!getenv("LSNES_HIDE_MESSAGES")) {
|
||||||
|
msg_window->Show();
|
||||||
|
}
|
||||||
|
|
||||||
init_main_callbacks();
|
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(gpanel = new panel(this, inst), 1, wxGROW);
|
||||||
toplevel->Add(spanel = new wxwin_status::panel(this, inst, gpanel, 20), 1, wxGROW);
|
toplevel->Add(spanel = new wxwin_status::panel(this, inst, gpanel, 20), 1, wxGROW);
|
||||||
spanel_shown = true;
|
spanel_shown = true;
|
||||||
|
if(getenv("LSNES_HIDE_STATUSPANEL")) {
|
||||||
|
spanel_shown = false;
|
||||||
|
spanel->Hide();
|
||||||
|
}
|
||||||
toplevel->SetSizeHints(this);
|
toplevel->SetSizeHints(this);
|
||||||
SetSizer(toplevel);
|
SetSizer(toplevel);
|
||||||
Fit();
|
Fit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue