Remove lsnesrc-related code (since what it was used for is long gone)
This commit is contained in:
parent
bf3255e315
commit
363e7c7a3c
3 changed files with 0 additions and 82 deletions
|
@ -98,8 +98,6 @@ extern messages_relay_class messages;
|
|||
|
||||
uint32_t gcd(uint32_t a, uint32_t b) throw();
|
||||
|
||||
void create_lsnesrc();
|
||||
|
||||
/**
|
||||
* Return hexadecimal representation of address
|
||||
*/
|
||||
|
|
|
@ -1,60 +0,0 @@
|
|||
const char* lsnesrc_file =
|
||||
"bind-key /rctrl q quit-emulator\n"
|
||||
"bind-key rctrl/rctrl q quit-emulator /y\n"
|
||||
"bind-key pause pause-emulator\n"
|
||||
"alias-command +speed set-setting targetfps infinite\n"
|
||||
"alias-command -speed unset-setting targetfps\n"
|
||||
"bind-key scrollock +speed\n"
|
||||
"bind-key pageup scroll-up\n"
|
||||
"bind-key pagedown scroll-down\n"
|
||||
"bind-key home scroll-fullup\n"
|
||||
"bind-key end scroll-fulldown\n"
|
||||
"bind-key left +controller1left\n"
|
||||
"bind-key up +controller1up\n"
|
||||
"bind-key right +controller1right\n"
|
||||
"bind-key down +controller1down\n"
|
||||
"bind-key rctrl +controller1A\n"
|
||||
"bind-key ralt +controller1B\n"
|
||||
"bind-key rshift +controller1X\n"
|
||||
"bind-key l +controller1Y\n"
|
||||
"bind-key o +controller1L\n"
|
||||
"bind-key p +controller1R\n"
|
||||
"bind-key return +controller1start\n"
|
||||
"bind-key 0 +controller1select\n"
|
||||
"bind-key a +controller2left\n"
|
||||
"bind-key w +controller2up\n"
|
||||
"bind-key d +controller2right\n"
|
||||
"bind-key s +controller2down\n"
|
||||
"bind-key lctrl +controller2A\n"
|
||||
"bind-key lalt +controller2B\n"
|
||||
"bind-key lshift +controller2X\n"
|
||||
"bind-key z +controller2Y\n"
|
||||
"bind-key 1 +controller2L\n"
|
||||
"bind-key 3 +controller2R\n"
|
||||
"bind-key tab +controller2start\n"
|
||||
"bind-key x +controller2select\n"
|
||||
"bind-key backspace +advance-frame\n"
|
||||
"bind-key /shift f1 save-state movieslot1.lsmv\n"
|
||||
"bind-key /shift f2 save-state movieslot2.lsmv\n"
|
||||
"bind-key /shift f3 save-state movieslot3.lsmv\n"
|
||||
"bind-key /shift f4 save-state movieslot4.lsmv\n"
|
||||
"bind-key /shift f5 save-state movieslot5.lsmv\n"
|
||||
"bind-key /shift f6 save-state movieslot6.lsmv\n"
|
||||
"bind-key /shift f7 save-state movieslot7.lsmv\n"
|
||||
"bind-key /shift f8 save-state movieslot8.lsmv\n"
|
||||
"bind-key /shift f9 save-state movieslot9.lsmv\n"
|
||||
"bind-key /shift f10 save-state movieslota.lsmv\n"
|
||||
"bind-key /shift f11 save-state movieslotb.lsmv\n"
|
||||
"bind-key /shift f12 save-state movieslotc.lsmv\n"
|
||||
"bind-key shift/shift f1 load-state movieslot1.lsmv\n"
|
||||
"bind-key shift/shift f2 load-state movieslot2.lsmv\n"
|
||||
"bind-key shift/shift f3 load-state movieslot3.lsmv\n"
|
||||
"bind-key shift/shift f4 load-state movieslot4.lsmv\n"
|
||||
"bind-key shift/shift f5 load-state movieslot5.lsmv\n"
|
||||
"bind-key shift/shift f6 load-state movieslot6.lsmv\n"
|
||||
"bind-key shift/shift f7 load-state movieslot7.lsmv\n"
|
||||
"bind-key shift/shift f8 load-state movieslot8.lsmv\n"
|
||||
"bind-key shift/shift f9 load-state movieslot9.lsmv\n"
|
||||
"bind-key shift/shift f10 load-state movieslota.lsmv\n"
|
||||
"bind-key shift/shift f11 load-state movieslotb.lsmv\n"
|
||||
"bind-key shift/shift f12 load-state movieslotc.lsmv\n";
|
|
@ -198,26 +198,6 @@ std::string get_config_path() throw(std::bad_alloc)
|
|||
return lsnes_path;
|
||||
}
|
||||
|
||||
extern const char* lsnesrc_file;
|
||||
|
||||
void create_lsnesrc()
|
||||
{
|
||||
std::string rcfile = get_config_path() + "/lsnes.rc";
|
||||
std::ifstream x(rcfile.c_str());
|
||||
if(x) {
|
||||
x.close();
|
||||
return;
|
||||
}
|
||||
std::ofstream y(rcfile.c_str());
|
||||
if(!y) {
|
||||
messages << "FATAL: lsnes.rc (" << rcfile << ") doesn't exist nor it can be created" << std::endl;
|
||||
fatal_error();
|
||||
}
|
||||
y.write(lsnesrc_file, strlen(lsnesrc_file));
|
||||
y.close();
|
||||
}
|
||||
|
||||
|
||||
void OOM_panic()
|
||||
{
|
||||
messages << "FATAL: Out of memory!" << std::endl;
|
||||
|
|
Loading…
Add table
Reference in a new issue