Skip to content

Commit

Permalink
Added platform::get_settings_file
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 10, 2023
1 parent 5c2ff83 commit 65eb851
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util/platform.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#include "platform.h"

#define SETTINGS_FILE "settings.json"


std::string platform::get_settings_file() {
return SETTINGS_FILE;
}

#ifdef WIN32
#include <Windows.h>

Expand All @@ -11,4 +18,5 @@ void platform::configure_encoding() {
#else
void platform::configure_encoding(){
}

#endif
3 changes: 3 additions & 0 deletions src/util/platform.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#ifndef UTIL_PLATFORM_H_
#define UTIL_PLATFORM_H_

#include <string>

namespace platform {
extern void configure_encoding();
extern std::string get_settings_file();
}

#endif // UTIL_PLATFORM_H_

0 comments on commit 65eb851

Please sign in to comment.