@@ -21,7 +21,7 @@ namespace REL
2121 const auto mod = Module::GetSingleton ();
2222 const auto version = mod->version ();
2323 const auto str = std::format (
24- " Failed to find Address Library ID!\n "
24+ " Failed to find offset for Address Library ID!\n "
2525 " Invalid ID: {}\n "
2626 " Game Version: {}" sv,
2727 a_id, version.string ());
@@ -164,10 +164,9 @@ namespace REL
164164 if (header.version () != mod->version ()) {
165165 const auto str = std::format (
166166 " Address Library version mismatch!\n "
167- " Expected Version: {}\n " ,
167+ " Expected Version: {}\n "
168168 " Actual Version: {}" sv,
169- mod->version ().string (),
170- header.version ().string ());
169+ mod->version ().string (), header.version ().string ());
171170 stl::report_and_fail (str);
172171 }
173172
@@ -187,7 +186,10 @@ namespace REL
187186 stl::report_and_fail (" Failed to create shared mapping!" sv);
188187 }
189188 } catch (const std::system_error&) {
190- stl::report_and_fail (" Failed to find Address Library file!" sv);
189+ const auto str = std::format (
190+ L" Failed to open Address Library file!\n Path: {}" sv,
191+ filename);
192+ stl::report_and_fail (str);
191193 }
192194 }
193195
@@ -229,7 +231,7 @@ namespace REL
229231 id = a_in.readout <std::uint32_t >();
230232 break ;
231233 default :
232- stl::report_and_fail (" Unhandled type while loading Address Library. " sv);
234+ stl::report_and_fail (" Unhandled type while loading Address Library! " sv);
233235 }
234236
235237 const std::uint64_t tmp = (hi & 8 ) != 0 ? (prevOffset / a_header.pointer_size ()) : prevOffset;
@@ -260,7 +262,7 @@ namespace REL
260262 offset = a_in.readout <std::uint32_t >();
261263 break ;
262264 default :
263- stl::report_and_fail (" Unhandled type while loading Address Library. " sv);
265+ stl::report_and_fail (" Unhandled type while loading Address Library! " sv);
264266 }
265267
266268 if ((hi & 8 ) != 0 ) {
@@ -285,7 +287,8 @@ namespace REL
285287 const auto version = mod->version ().string (" -" sv);
286288 const auto path = std::vformat (a_filename, std::make_format_args (version));
287289 if (!_mmap.open (path)) {
288- stl::report_and_fail (std::format (" failed to open: {}" , path));
290+ const auto str = std::format (" Failed to open Address Library file!\n Path: {}" sv, path);
291+ stl::report_and_fail (str);
289292 }
290293
291294 _id2offset = std::span{
0 commit comments