mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 06:58:07 +00:00
# SwEng (reduce full recompiles by splitting up master error header)
- error codes now accessed as ERR::NO_MEM, INFO::OK etc. - no more X-macros => the above are now recognized by visual assist - error codes are defined by the module originating them (lib_errors has some generic ones) => no full rebuild when adding some - error descriptions are now in C++ files => can be changed without full rebuild added AT_STARTUP in lib.h. This was SVN commit r4374.
This commit is contained in:
@@ -112,7 +112,7 @@ void ScriptingHost::RunScript(const CStr& filename, JSObject* globalObject)
|
||||
|
||||
FileIOBuf buf;
|
||||
size_t size;
|
||||
if(vfs_load(fn, buf, size) != INFO_OK) // ERRTODO: translate/pass it on
|
||||
if(vfs_load(fn, buf, size) != INFO::OK) // ERRTODO: translate/pass it on
|
||||
throw PSERROR_Scripting_LoadFile_OpenFailed();
|
||||
|
||||
const char* script = (const char*)buf;
|
||||
|
||||
Reference in New Issue
Block a user