| 164 | } |
| 165 | |
| 166 | void uae_lua_loadall(void) |
| 167 | { |
| 168 | TCHAR tmp[MAX_DPATH]; |
| 169 | fetch_luapath (tmp, sizeof tmp / sizeof (TCHAR)); |
| 170 | _tcscat (tmp, _T("default.lua")); |
| 171 | if (zfile_exists (tmp)) |
| 172 | uae_lua_load(tmp); |
| 173 | for (int i = 0; i < MAX_LUA_STATES; i++) { |
| 174 | if (currprefs.luafiles[i][0]) { |
| 175 | uae_lua_load(currprefs.luafiles[i]); |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void uae_lua_init_state(lua_State *L) |
| 181 | { |
no test coverage detected