mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-18 18:01:13 +00:00
make the menu plist reading more efficient
This commit is contained in:
parent
d996c364b8
commit
66ab41534c
1 changed files with 2 additions and 4 deletions
|
@ -207,7 +207,7 @@ object_from_plist (PLItem plist)
|
|||
|
||||
PLItem read_plist (void)
|
||||
{
|
||||
local string plist_data, l;
|
||||
local string plist_data;
|
||||
local QFile file;
|
||||
local PLItem plist;
|
||||
|
||||
|
@ -216,9 +216,7 @@ PLItem read_plist (void)
|
|||
dprint ("could not load menu.plist\n");
|
||||
return NIL;
|
||||
}
|
||||
plist_data = str_new ();
|
||||
while ((l = Qgetline (file)))
|
||||
str_cat (plist_data, l);
|
||||
plist_data = Qreadstring (file, Qfilesize (file));
|
||||
Qclose (file);
|
||||
plist = [PLItem newFromString:plist_data];
|
||||
str_free (plist_data);
|
||||
|
|
Loading…
Reference in a new issue