mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-07-22 17:01:31 +00:00
Potential fix for LBP3
- Matches all but NULL instead of just all
This commit is contained in:
parent
6f0d632efd
commit
a5d7f69f90
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public static class Patcher {
|
||||||
// Find a string including http or https and LITTLEBIGPLANETPS3_XML or LITTLEBIGPLANETPSP_XML,
|
// Find a string including http or https and LITTLEBIGPLANETPS3_XML or LITTLEBIGPLANETPSP_XML,
|
||||||
// then match any additional NULL characters to dynamically gague the maximum length on a per-title basis
|
// then match any additional NULL characters to dynamically gague the maximum length on a per-title basis
|
||||||
// without a hardcoded array of known server URLs
|
// without a hardcoded array of known server URLs
|
||||||
MatchCollection urls = Regex.Matches(dataAsString, "(https?.*?LITTLEBIGPLANETPS(3|P)_XML)(\x00*)");
|
MatchCollection urls = Regex.Matches(dataAsString, "http?[^\x00]*?LITTLEBIGPLANETPS(3|P)_XML\x00");
|
||||||
foreach(Match urlMatch in urls) {
|
foreach(Match urlMatch in urls) {
|
||||||
string url = urlMatch.Value;
|
string url = urlMatch.Value;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue