mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
use proper access functions to ResourceData.
This commit is contained in:
parent
4da196a416
commit
7d0ad4897f
4 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ struct HexDataSource
|
|||
FScanner sc;
|
||||
|
||||
auto data = resf->Read(index);
|
||||
sc.OpenMem("newconsolefont.hex", (const char*)data.data(), data.size());
|
||||
sc.OpenMem("newconsolefont.hex", data.string(), data.size());
|
||||
sc.SetCMode(true);
|
||||
glyphdata.Push(0); // ensure that index 0 can be used as 'not present'.
|
||||
while (sc.GetString())
|
||||
|
|
|
@ -306,7 +306,7 @@ unsigned FSavegameManagerBase::ExtractSaveData(int index)
|
|||
|
||||
auto data = resf->Read(info);
|
||||
FSerializer arc;
|
||||
if (!arc.OpenReader((const char*)data.data(), data.size()))
|
||||
if (!arc.OpenReader(data.string(), data.size()))
|
||||
{
|
||||
return index;
|
||||
}
|
||||
|
|
|
@ -2013,7 +2013,7 @@ void G_DoLoadGame ()
|
|||
|
||||
auto data = resfile->Read(info);
|
||||
FSerializer arc;
|
||||
if (!arc.OpenReader((char*)data.data(), data.size()))
|
||||
if (!arc.OpenReader(data.string(), data.size()))
|
||||
{
|
||||
LoadGameError("TXT_FAILEDTOREADSG");
|
||||
return;
|
||||
|
@ -2088,7 +2088,7 @@ void G_DoLoadGame ()
|
|||
}
|
||||
|
||||
data = resfile->Read(info);
|
||||
if (!arc.OpenReader((char*)data.data(), data.size()))
|
||||
if (!arc.OpenReader(data.string(), data.size()))
|
||||
{
|
||||
LoadGameError("TXT_SGINFOERR");
|
||||
return;
|
||||
|
|
|
@ -84,7 +84,7 @@ void FSavegameManager::ReadSaveStrings()
|
|||
}
|
||||
auto data = savegame->Read(info);
|
||||
FSerializer arc;
|
||||
if (arc.OpenReader((const char*)data.data(), data.size()))
|
||||
if (arc.OpenReader(data.string(), data.size()))
|
||||
{
|
||||
int savever = 0;
|
||||
arc("Save Version", savever);
|
||||
|
|
Loading…
Reference in a new issue