mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 11:00:34 +00:00
devmods:: fixed filenames in edit-shaders
This commit is contained in:
parent
038a19e4d8
commit
78c0d8b3c4
@ -44,8 +44,8 @@ bool trailer_handleKey(int sym, int uni) {
|
||||
glhr::be_textured();
|
||||
current_display->set_all(0);
|
||||
auto p = glhr::get_shaders();
|
||||
print_shader("addons/current.vsh", p.first);
|
||||
print_shader("addons/current.fsh", p.second);
|
||||
print_shader("devmods/current.vsh", p.first);
|
||||
print_shader("devmods/current.fsh", p.second);
|
||||
addMessage("shaders saved");
|
||||
return true;
|
||||
}
|
||||
@ -53,8 +53,8 @@ bool trailer_handleKey(int sym, int uni) {
|
||||
if(sym == SDLK_F3) {
|
||||
glhr::be_textured();
|
||||
current_display->set_all(0);
|
||||
string vsh = load_whole("addons/current.vsh");
|
||||
string fsh = load_whole("addons/current.fsh");
|
||||
string vsh = load_whole("devmods/current.vsh");
|
||||
string fsh = load_whole("devmods/current.fsh");
|
||||
println(hlog, "loaded vsh:\n", vsh);
|
||||
glhr::install_shaders(vsh, fsh);
|
||||
glhr::be_textured();
|
||||
|
Loading…
Reference in New Issue
Block a user