use SDL_GetBasePath for zeml files
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
#include "app/gui/zeml.h"
|
#include "app/gui/zeml.h"
|
||||||
|
|
||||||
#include "imgui/imgui.h"
|
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@@ -11,9 +9,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "app/core/platform/file_path.h"
|
||||||
#include "app/gui/canvas.h"
|
#include "app/gui/canvas.h"
|
||||||
#include "app/gui/input.h"
|
#include "app/gui/input.h"
|
||||||
#include "app/core/platform/file_path.h"
|
#include "imgui/imgui.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
@@ -597,6 +596,7 @@ std::string LoadFile(const std::string& filename) {
|
|||||||
const std::string kBundlePath = core::GetBundleResourcePath();
|
const std::string kBundlePath = core::GetBundleResourcePath();
|
||||||
std::ifstream file(kBundlePath + filename);
|
std::ifstream file(kBundlePath + filename);
|
||||||
#else
|
#else
|
||||||
|
const std::string kBundlePath = SDL_GetBasePath();
|
||||||
std::ifstream file(kPath + filename);
|
std::ifstream file(kPath + filename);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user