Changed default pathing for binding file serialisation #306

Merged
mushgunAX merged 1 commits from SP3-10-input-management into main 2023-01-09 17:44:14 +08:00
2 changed files with 3 additions and 53 deletions

View File

@ -1,52 +1 @@
4
Horizontal
0
0
5
0.2
5
0
2
39
68
2
37
65
2
3
16
1
2
Mouse Wheel
3
0
1
0.2
1
0
0
0
0
0
Mouse X
1
0
1
0.2
1
0
0
0
0
0
Mouse Y
2
0
1
0.2
1
0
0
0
0
0 0

View File

@ -14,6 +14,7 @@
#include <map> #include <map>
#include <set> #include <set>
#include "../../SHADE_Managed/src/SHpch.h" #include "../../SHADE_Managed/src/SHpch.h"
#include "../../SHADE_Engine/src/Assets/SHAssetMacros.h"
#include "SH_API.h" #include "SH_API.h"
#pragma comment(lib, "xinput.lib") #pragma comment(lib, "xinput.lib")
@ -686,11 +687,11 @@ namespace SHADE
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
//Save bindings registered into a file //Save bindings registered into a file
static void SaveBindings(std::string const& targetFile = "../../Assets/Bindings.SHConfig") noexcept; static void SaveBindings(std::string const& targetFile = std::string(ASSET_ROOT) + "/Bindings.SHConfig") noexcept;
//Load and register bindings from a file //Load and register bindings from a file
//If specified file exists, the current list of bindings will be overwritten, so save them somewhere else before loading //If specified file exists, the current list of bindings will be overwritten, so save them somewhere else before loading
static void LoadBindings(std::string const& sourceFile = "../../Assets/Bindings.SHConfig") noexcept; static void LoadBindings(std::string const& sourceFile = std::string(ASSET_ROOT) + "/Bindings.SHConfig") noexcept;
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
/* Binding Functions */ /* Binding Functions */