Blame view

ios/Runner/Wowgame/Classes/game_food/ResourceUtilities.h 1.17 KB
cb213901   xiaoyu   添加一个游戏的源码和编译选项
1
2
3
4
5
6
7
8
9
10
11
12
13
  //
  //  ResourceUtilities.h
  //  SteveMaggieCpp
  //
  //  Created by Katarzyna Kalinowska-Górska on 23.06.2017.
  //
  //
  
  #ifndef ResourceUtilities_h
  #define ResourceUtilities_h
  
  #include "json/document.h"
  #include <string>
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
14
  #include <vector>
cb213901   xiaoyu   添加一个游戏的源码和编译选项
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  class ResourceUtilities
  {
      public:
      
          static ResourceUtilities& getInstance()
          {
              static ResourceUtilities instance;
              return instance;
          }
      
          void setDeviceSpecificFolderName(std::string folderName){ DeviceSpecificFolderName = folderName; }
          std::string getDeviceSpecificFolderName(){return DeviceSpecificFolderName;}
      
          std::string getDownloadedResourcesPath(bool deviceDependentFiles = true);
          std::string getFullPathForDownloadedFile(const std::string& path, bool isDeviceDependent = true);
cb213901   xiaoyu   添加一个游戏的源码和编译选项
30
          std::vector<std::string> getFullPathsForDownloadedFiles(const std::vector<std::string>& paths, bool areDeviceDependent = true);
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
31
          //std::vector<std::string> getFullPathsForDownloadedFiles(const std::vector<std::string>& paths, bool areDeviceDependent = true);
cb213901   xiaoyu   添加一个游戏的源码和编译选项
32
33
34
35
36
37
38
      
      protected:
      
          std::string DeviceSpecificFolderName;
  };
  
  #endif /* ResourceUtilities_h */