Merge pull request #108 from archshift/config

Configuration files
This commit is contained in:
bunnei 2014-10-07 19:44:13 -04:00
commit a171000cbe
26 changed files with 426 additions and 131 deletions

View file

@ -56,6 +56,7 @@ set(SRCS
core_timing.cpp
mem_map.cpp
mem_map_funcs.cpp
settings.cpp
system.cpp
)
@ -117,6 +118,7 @@ set(HEADERS
core.h
core_timing.h
mem_map.h
settings.h
system.h
)

11
src/core/settings.cpp Normal file
View file

@ -0,0 +1,11 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#include "settings.h"
namespace Settings {
Values values = {};
}

29
src/core/settings.h Normal file
View file

@ -0,0 +1,29 @@
// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#pragma once
namespace Settings {
struct Values {
int pad_a_key;
int pad_b_key;
int pad_x_key;
int pad_y_key;
int pad_l_key;
int pad_r_key;
int pad_start_key;
int pad_select_key;
int pad_home_key;
int pad_dup_key;
int pad_ddown_key;
int pad_dleft_key;
int pad_dright_key;
int pad_sup_key;
int pad_sdown_key;
int pad_sleft_key;
int pad_sright_key;
} extern values;
}