mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
macOS Support & AppPlatform Cleanup (#57)
* macOS Support & Cleanup * Fix malformed comments in build-wasm.bat * Emscripten Fixes * * Add shebang to the grabsounds.py script Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly. * * Re-add the patch_data and readme files. * * Remove sound data. * Fix some more things. * Think it's ready to pull now... --------- Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com> Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
This commit is contained in:
@@ -131,3 +131,16 @@ std::string AppPlatform::getPatchData()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string AppPlatform::getAssetPath(const std::string &path) const
|
||||
{
|
||||
std::string realPath = path;
|
||||
if (realPath.size() && realPath[0] == '/')
|
||||
{
|
||||
// trim it off
|
||||
realPath = realPath.substr(1);
|
||||
}
|
||||
realPath = "assets/" + realPath;
|
||||
|
||||
return realPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user