You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
-fix bug in cache for atlas import/export
-fix some menus -fixed bug in out transition curves -detect and remove file:/// in collada -remove multiscript for now -remove dependencies on mouse in OS, moved to Input -avoid fscache from screwing up (fix might make it slower, but it works) -funcref was missing, it's there now
This commit is contained in:
@@ -428,8 +428,30 @@ void FileAccess::store_string(const String& p_string) {
|
||||
CharString cs=p_string.utf8();
|
||||
store_buffer((uint8_t*)&cs[0],cs.length());
|
||||
|
||||
|
||||
}
|
||||
|
||||
void FileAccess::store_pascal_string(const String& p_string) {
|
||||
|
||||
CharString cs = p_string.utf8();
|
||||
store_32(cs.length());
|
||||
store_buffer((uint8_t*)&cs[0], cs.length());
|
||||
};
|
||||
|
||||
String FileAccess::get_pascal_string() {
|
||||
|
||||
uint32_t sl = get_32();
|
||||
CharString cs;
|
||||
cs.resize(sl+1);
|
||||
get_buffer((uint8_t*)cs.ptr(),sl);
|
||||
cs[sl]=0;
|
||||
|
||||
String ret;
|
||||
ret.parse_utf8(cs.ptr());
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
||||
|
||||
void FileAccess::store_line(const String& p_line) {
|
||||
|
||||
store_string(p_line);
|
||||
|
||||
Reference in New Issue
Block a user