mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
pandaFileStream
This commit is contained in:
parent
964c76f2e0
commit
0e5cc07f83
@ -153,7 +153,7 @@ read(Filename filename) {
|
||||
|
||||
#else // WITHIN_PANDA
|
||||
|
||||
ifstream in;
|
||||
pifstream in;
|
||||
in.open(filename.c_str());
|
||||
|
||||
if (!in) {
|
||||
@ -204,7 +204,7 @@ read(istream &in, const string &filename) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool DCFile::
|
||||
write(Filename filename, bool brief) const {
|
||||
ofstream out;
|
||||
pofstream out;
|
||||
|
||||
#ifdef WITHIN_PANDA
|
||||
filename.set_text();
|
||||
|
@ -115,6 +115,9 @@ typedef unsigned char PN_uint8;
|
||||
typedef unsigned short PN_uint16;
|
||||
typedef unsigned int PN_uint32;
|
||||
|
||||
typedef ifstream pifstream;
|
||||
typedef ofstream pofstream;
|
||||
typedef fstream pfstream;
|
||||
|
||||
#endif // WITHIN_PANDA
|
||||
|
||||
|
@ -61,7 +61,7 @@ DirectDServer::handle_command(const string& cmd) {
|
||||
void
|
||||
DirectDServer::read_command(string& cmd) {
|
||||
try {
|
||||
ifstream f;
|
||||
pifstream f;
|
||||
f.open("directdCommand", ios::in | ios::binary);
|
||||
stringstream ss;
|
||||
const int buf_size=512;
|
||||
|
Loading…
x
Reference in New Issue
Block a user