mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 00:37:58 +03:00
Fixed std namespace collisions
Refactored ChunkID/ChunkReader/Writer
This commit is contained in:
parent
820a3700b0
commit
b635f4df13
47 changed files with 589 additions and 498 deletions
|
@ -6,7 +6,8 @@
|
|||
#include "sound.h"
|
||||
#include "savegame.h"
|
||||
#include "draw.h"
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
ChunkId* ChunkGameFlowFlags = ChunkId::FromString("Tr5MainFlags");
|
||||
ChunkId* ChunkGameFlowLevel = ChunkId::FromString("Tr5MainLevel");
|
||||
ChunkId* ChunkGameFlowLevelFlags = ChunkId::FromString("Tr5MainLevelFlags");
|
||||
|
@ -328,6 +329,8 @@ bool __cdecl LoadScript()
|
|||
|
||||
string GameFlow::loadScriptFromFile(char* luaFilename)
|
||||
{
|
||||
using std::ifstream;
|
||||
using std::ios;
|
||||
ifstream ifs(luaFilename, ios::in | ios::binary | ios::ate);
|
||||
|
||||
ifstream::pos_type fileSize = ifs.tellg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue