ProjectBuildSettings.cpp 640 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include <Atomic/IO/Log.h>
  2. #include <Atomic/IO/File.h>
  3. #include <Atomic/Resource/JSONFile.h>
  4. #include "ProjectBuildSettings.h"
  5. namespace ToolCore
  6. {
  7. ProjectBuildSettings::ProjectBuildSettings(Context* context) : Object(context)
  8. {
  9. }
  10. ProjectBuildSettings::~ProjectBuildSettings()
  11. {
  12. }
  13. bool ProjectBuildSettings::Load(const String& path)
  14. {
  15. return true;
  16. }
  17. void ProjectBuildSettings::Save(const String& path)
  18. {
  19. SharedPtr<JSONFile> jsonFile(new JSONFile(context_));
  20. jsonFile->CreateRoot();
  21. SharedPtr<File> file(new File(context_, path, FILE_WRITE));
  22. jsonFile->Save(*file, String(" "));
  23. file->Close();
  24. }
  25. }