Skip to content

Commit

Permalink
solve the problem of nxengine#282
Browse files Browse the repository at this point in the history
  • Loading branch information
s0587670 authored and s0587670 committed Jun 14, 2024
1 parent e48ccb4 commit 2ec7e32
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/settings.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@

#ifndef _SETTINGS_H
#define _SETTINGS_H

#ifndef SETTINGS_H
#define SETTINGS_H

#include <map>
#include <string>
#include "input.h"

extern std::map<std::string, std::string> keyboardBindings;
extern std::map<std::string, std::string> gamepadBindings;

void loadSettings();
void saveSettings();

struct Settings
{
uint32_t version;
Expand Down Expand Up @@ -36,4 +45,4 @@ bool settings_save(Settings *settings = NULL);
extern Settings *settings;
extern Settings normal_settings;

#endif
#endif // SETTINGS_H

0 comments on commit 2ec7e32

Please sign in to comment.