mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 01:13:39 +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:
parent
8c1731b679
commit
d7d65fa2f2
65 changed files with 69974 additions and 68330 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue