@@ -1384,7 +1384,7 @@ std::string urlDecode(const std::string_view SRC){
1384
1384
return ret;
1385
1385
}
1386
1386
1387
-
1387
+ /*
1388
1388
#define PACK(Name,Type)pack<Type, ""#Name##_HU>{}
1389
1389
template<typename T, u32 Hash_Value>
1390
1390
struct pack {
@@ -1423,10 +1423,13 @@ auto get_param_sbind(_GetParams &&a, const T& ...Output){
1423
1423
return decltype(T::type){};
1424
1424
}()
1425
1425
)...};
1426
- }
1426
+ }*/
1427
1427
1428
1428
void osu_getScores (const _HttpRes& http, _Con s){
1429
1429
1430
+ auto PARAMS = _GetParams (http.Host );
1431
+
1432
+ /*
1430
1433
auto [LeaderBoardVersion, LType, BeatmapMD5, FileName, Mode,
1431
1434
SetID, Mods, UserName_View, Password_View] = get_param_sbind(_GetParams(http.Host),
1432
1435
PACK("vv", int), PACK("v", int),
@@ -1436,7 +1439,19 @@ void osu_getScores(const _HttpRes& http, _Con s){
1436
1439
PACK("mods", u32),
1437
1440
PACK("us", std::string_view),
1438
1441
PACK("ha", std::string_view)
1439
- );
1442
+ );*/
1443
+
1444
+ const auto LeaderBoardVersion = StringToNum (int , PARAMS.get <" vv" _HU>());
1445
+ const auto LType = StringToNum (int , PARAMS.get <" v" _HU>());
1446
+
1447
+ const auto BeatmapMD5 = PARAMS.get <" c" _HU>();
1448
+ const auto FileName = PARAMS.get <" f" _HU>();
1449
+ auto Mode = StringToNum (u32, PARAMS.get <" m" _HU>());
1450
+ const auto SetID = StringToNum (u32, PARAMS.get <" i" _HU>());
1451
+ const auto Mods = StringToNum (u32, PARAMS.get <" mods" _HU>());
1452
+ const auto UserName_View = PARAMS.get <" us" _HU>();
1453
+ const auto Password_View = PARAMS.get <" ha" _HU>();
1454
+
1440
1455
1441
1456
if (unlikely (LeaderBoardVersion != 4 || BeatmapMD5.size () != 32 || http.GetHeaderValue (" Host" ) != " osu.ppy.sh" ))
1442
1457
return SendAria404 (s);
0 commit comments