You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
-improved physics ccd
-html5 exporter works again -disable repeat on image loader by default -can change shape offset en tileset, texture offset was broken
This commit is contained in:
@@ -1037,18 +1037,24 @@ bool Main::start() {
|
||||
|
||||
if (!absolute) {
|
||||
|
||||
int sep=local_game_path.find_last("/");
|
||||
if (Globals::get_singleton()->is_using_datapack()) {
|
||||
|
||||
local_game_path="res://"+local_game_path;
|
||||
|
||||
if (sep==-1) {
|
||||
DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
local_game_path=da->get_current_dir()+"/"+local_game_path;
|
||||
memdelete(da) ;
|
||||
} else {
|
||||
int sep=local_game_path.find_last("/");
|
||||
|
||||
DirAccess *da = DirAccess::open(local_game_path.substr(0,sep));
|
||||
if (da) {
|
||||
local_game_path=da->get_current_dir()+"/"+local_game_path.substr(sep+1,local_game_path.length());;
|
||||
memdelete(da);
|
||||
if (sep==-1) {
|
||||
DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
|
||||
local_game_path=da->get_current_dir()+"/"+local_game_path;
|
||||
memdelete(da) ;
|
||||
} else {
|
||||
|
||||
DirAccess *da = DirAccess::open(local_game_path.substr(0,sep));
|
||||
if (da) {
|
||||
local_game_path=da->get_current_dir()+"/"+local_game_path.substr(sep+1,local_game_path.length());;
|
||||
memdelete(da);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user