|
11 | 11 | #include "xrScriptEngine/script_engine.hpp" |
12 | 12 | #include "ai_space.h" |
13 | 13 | #include "object_factory.h" |
| 14 | +#include "xrCore/xrDebug.h" |
14 | 15 |
|
15 | 16 | CScriptIniFile::CScriptIniFile(IReader* F, LPCSTR path) : inherited(F, path) {} |
16 | 17 | CScriptIniFile::CScriptIniFile(LPCSTR szFileName, BOOL ReadOnly, BOOL bLoadAtStart, BOOL SaveAtEnd) |
@@ -38,41 +39,41 @@ int CScriptIniFile::r_token(LPCSTR S, LPCSTR L, const CScriptTokenList& token_li |
38 | 39 | LPCSTR CScriptIniFile::r_string_wb(LPCSTR S, LPCSTR L) { return *inherited::r_string_wb(S, L); } |
39 | 40 | u32 CScriptIniFile::line_count(LPCSTR S) |
40 | 41 | { |
41 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
42 | | - return (inherited::line_count(S)); |
| 42 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 43 | + return inherited::line_count(S); |
43 | 44 | } |
44 | 45 |
|
45 | 46 | LPCSTR CScriptIniFile::r_string(LPCSTR S, LPCSTR L) |
46 | 47 | { |
47 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
48 | | - THROW3(inherited::line_exist(S, L), "Cannot find line", L); |
49 | | - return (inherited::r_string(S, L)); |
| 48 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 49 | + VERIFY3(inherited::line_exist(S, L), "Cannot find line", L); |
| 50 | + return inherited::r_string(S, L); |
50 | 51 | } |
51 | 52 |
|
52 | 53 | u32 CScriptIniFile::r_u32(LPCSTR S, LPCSTR L) |
53 | 54 | { |
54 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
55 | | - THROW3(inherited::line_exist(S, L), "Cannot find line", L); |
56 | | - return (inherited::r_u32(S, L)); |
| 55 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 56 | + VERIFY3(inherited::line_exist(S, L), "Cannot find line", L); |
| 57 | + return inherited::r_u32(S, L); |
57 | 58 | } |
58 | 59 |
|
59 | 60 | int CScriptIniFile::r_s32(LPCSTR S, LPCSTR L) |
60 | 61 | { |
61 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
62 | | - THROW3(inherited::line_exist(S, L), "Cannot find line", L); |
63 | | - return (inherited::r_s32(S, L)); |
| 62 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 63 | + VERIFY3(inherited::line_exist(S, L), "Cannot find line", L); |
| 64 | + return inherited::r_s32(S, L); |
64 | 65 | } |
65 | 66 |
|
66 | 67 | float CScriptIniFile::r_float(LPCSTR S, LPCSTR L) |
67 | 68 | { |
68 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
69 | | - THROW3(inherited::line_exist(S, L), "Cannot find line", L); |
70 | | - return (inherited::r_float(S, L)); |
| 69 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 70 | + VERIFY3(inherited::line_exist(S, L), "Cannot find line", L); |
| 71 | + return inherited::r_float(S, L); |
71 | 72 | } |
72 | 73 |
|
73 | 74 | Fvector CScriptIniFile::r_fvector3(LPCSTR S, LPCSTR L) |
74 | 75 | { |
75 | | - THROW3(inherited::section_exist(S), "Cannot find section", S); |
76 | | - THROW3(inherited::line_exist(S, L), "Cannot find line", L); |
77 | | - return (inherited::r_fvector3(S, L)); |
| 76 | + VERIFY3(inherited::section_exist(S), "Cannot find section", S); |
| 77 | + VERIFY3(inherited::line_exist(S, L), "Cannot find line", L); |
| 78 | + return inherited::r_fvector3(S, L); |
78 | 79 | } |
0 commit comments