* Fix Wii/GC Compiling

* Initial FileInfo/Dir APIs
* Get rid of type punning warnings
This commit is contained in:
2015-05-18 14:03:13 -07:00
parent 20e12b86ca
commit d5ccf159f7
26 changed files with 3251 additions and 65 deletions

View File

@@ -75,13 +75,13 @@ inline atInt64 swap64 (atInt64 val)
inline atUint64 swapU64(atUint64 val) {return (atUint64)swap64(val);}
inline float swapFloat(float val)
{
atInt32 ival = swap32(*((atInt32*)(&val)));
return *((float*)(&ival));
atInt32 ival = swap64(static_cast<atInt32>(val));
return static_cast<float>(ival);
}
inline double swapDouble(double val)
{
atInt64 ival = swap64(*((atInt64*)(&val)));
return *((double*)(&ival));
atInt64 ival = swap64(static_cast<atInt64>(val));
return static_cast<double>(ival);
}
inline atInt16 LittleInt16(atInt16& val)
{
@@ -205,6 +205,7 @@ inline double BigDouble(double& val)
void fillRandom(atUint8 * rndArea, atUint64 count);
std::vector<std::string> split(const std::string &s, char delim);
atUint64 rand64();
std::string join(const std::vector<std::string>& elems, const std::string& delims);
void tolower(std::string& str);
void toupper(std::string& str);