mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-17 19:17:56 -05:00
Added configuration file system.
Uses QSettings on citra-qt, and inih on citra-cli.
This commit is contained in:
@ -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
11
src/core/settings.cpp
Normal 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
29
src/core/settings.h
Normal 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;
|
||||
|
||||
}
|
Reference in New Issue
Block a user