-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign Engine and APIs for C++17 #14
Comments
I noticed that Pomdog::FileSystem has system-depend implementation, and since there is std::filesystem, this part can also be refactored in favor of c++17 std:
(note: FS is reduced form of FileSystem and fs is reduced form of filesystem) Although, I'm not sure about other methods in there ( |
Hello @barsoosayque,
I agree with you. These APIs will be replaced with
In addition, these are platform-specific APIs which is causing confusion, so I'd like to change them as follows: // current version
std::string GetLocalAppDataDirectoryPath();
std::string GetAppDataDirectoryPath();
// next version (TBD)
std::optional<std::string> Win32::GetLocalAppDataDirectoryPath();
std::optional<std::string> Win32::GetAppDataDirectoryPath();
std::optional<std::string> Mac::GetApplicationSupportDirectoryPath();
std::optional<std::string> Linux::GetHomeDirectoryPath();
std::string GetContentDirectoryPath();
std::string GetPersistentDataDirectoryPath(); |
It is now desirable to store game data (or any other program specific data, but not the configs) in Regarding next filesystem API, I guess it will be more convenient to return |
Thank you for the link. That seems like the right path! I'll read the spec and try it.
I totally agree with this direction. 👍 |
Hello, mates!
I have the following plans for Pomdog in 2018:
Plans
.clang-format
New API Style
Pomdog::Optional<T>
,Pomdog::Any
andPomdog::PathHelper
with the C++17 standard libraries.std::tuple
,std::tie
andstd::optional
for error handling.Done/TODOs
*.framework
using CMakeResult<T, E>
classIOError
classtest/TestApp
directoryexamples/TestGame
(Redesign sprite and font drawing #30)docs
directory (6347915)The text was updated successfully, but these errors were encountered: