summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-28 22:54:53 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-28 22:54:53 +0200
commit1b83929487f797b0b0960b89fb5cbdc8c216ba96 (patch)
tree56b881182b63183461706ace0dac4932e45545ad /src/common
parentb06c663bc2976940e3a5aa17b6d2c314a908f697 (diff)
downloadcolobot-1b83929487f797b0b0960b89fb5cbdc8c216ba96.tar.gz
colobot-1b83929487f797b0b0960b89fb5cbdc8c216ba96.tar.bz2
colobot-1b83929487f797b0b0960b89fb5cbdc8c216ba96.zip
Pulled changes from master branch
Diffstat (limited to 'src/common')
-rw-r--r--src/common/profile.cpp12
-rw-r--r--src/common/profile.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/common/profile.cpp b/src/common/profile.cpp
index 07dafae..d921d34 100644
--- a/src/common/profile.cpp
+++ b/src/common/profile.cpp
@@ -42,13 +42,13 @@ bool InitCurrentDirectory()
}
-bool SetProfileString(char* section, char* key, char* string)
+bool SetLocalProfileString(char* section, char* key, char* string)
{
WritePrivateProfileString(section, key, string, g_filename);
return true;
}
-bool GetProfileString(char* section, char* key, char* buffer, int max)
+bool GetLocalProfileString(char* section, char* key, char* buffer, int max)
{
int nb;
@@ -62,7 +62,7 @@ bool GetProfileString(char* section, char* key, char* buffer, int max)
}
-bool SetProfileInt(char* section, char* key, int value)
+bool SetLocalProfileInt(char* section, char* key, int value)
{
char s[20];
@@ -71,7 +71,7 @@ bool SetProfileInt(char* section, char* key, int value)
return true;
}
-bool GetProfileInt(char* section, char* key, int &value)
+bool GetLocalProfileInt(char* section, char* key, int &value)
{
char s[20];
int nb;
@@ -87,7 +87,7 @@ bool GetProfileInt(char* section, char* key, int &value)
}
-bool SetProfileFloat(char* section, char* key, float value)
+bool SetLocalProfileFloat(char* section, char* key, float value)
{
char s[20];
@@ -96,7 +96,7 @@ bool SetProfileFloat(char* section, char* key, float value)
return true;
}
-bool GetProfileFloat(char* section, char* key, float &value)
+bool GetLocalProfileFloat(char* section, char* key, float &value)
{
char s[20];
int nb;
diff --git a/src/common/profile.h b/src/common/profile.h
index 1a36050..2c76a0b 100644
--- a/src/common/profile.h
+++ b/src/common/profile.h
@@ -20,11 +20,11 @@
extern bool InitCurrentDirectory();
-extern bool SetProfileString(char* section, char* key, char* string);
-extern bool GetProfileString(char* section, char* key, char* buffer, int max);
-extern bool SetProfileInt(char* section, char* key, int value);
-extern bool GetProfileInt(char* section, char* key, int &value);
-extern bool SetProfileFloat(char* section, char* key, float value);
-extern bool GetProfileFloat(char* section, char* key, float &value);
+extern bool SetLocalProfileString(char* section, char* key, char* string);
+extern bool GetLocalProfileString(char* section, char* key, char* buffer, int max);
+extern bool SetLocalProfileInt(char* section, char* key, int value);
+extern bool GetLocalProfileInt(char* section, char* key, int &value);
+extern bool SetLocalProfileFloat(char* section, char* key, float value);
+extern bool GetLocalProfileFloat(char* section, char* key, float &value);