mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Save kartprofiles.cfg in config directory
This commit is contained in:
parent
c83803dd42
commit
a756b669b7
1 changed files with 3 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
/// \file k_profiles.c
|
/// \file k_profiles.c
|
||||||
/// \brief implements methods for profiles etc.
|
/// \brief implements methods for profiles etc.
|
||||||
|
|
||||||
|
#include "d_main.h" // pandf
|
||||||
#include "k_profiles.h"
|
#include "k_profiles.h"
|
||||||
#include "z_zone.h"
|
#include "z_zone.h"
|
||||||
|
|
||||||
|
|
@ -92,7 +93,7 @@ void PR_SaveProfiles(void)
|
||||||
{
|
{
|
||||||
FILE *f = NULL;
|
FILE *f = NULL;
|
||||||
|
|
||||||
f = fopen(PROFILESFILE, "w");
|
f = fopen(va(pandf, srb2home, PROFILESFILE), "w");
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
{
|
{
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
@ -114,7 +115,7 @@ void PR_LoadProfiles(void)
|
||||||
{
|
{
|
||||||
FILE *f = NULL;
|
FILE *f = NULL;
|
||||||
profile_t *dprofile = PR_MakeProfile(PROFILEDEFAULTNAME, PROFILEDEFAULTPNAME, PROFILEDEFAULTSKIN, PROFILEDEFAULTCOLOR, PROFILEDEFAULTFOLLOWER, PROFILEDEFAULTFOLLOWERCOLOR, gamecontroldefault);
|
profile_t *dprofile = PR_MakeProfile(PROFILEDEFAULTNAME, PROFILEDEFAULTPNAME, PROFILEDEFAULTSKIN, PROFILEDEFAULTCOLOR, PROFILEDEFAULTFOLLOWER, PROFILEDEFAULTFOLLOWERCOLOR, gamecontroldefault);
|
||||||
f = fopen(PROFILESFILE, "r");
|
f = fopen(va(pandf, srb2home, PROFILESFILE), "r");
|
||||||
|
|
||||||
if (f != NULL)
|
if (f != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue