Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42502e3

Browse files
committed
Fix recent regression with newer OS builds
Some build pipeline seems broken.Extract:serverweb=Value=3WN48-GVPXF-VHWK4-29Y8D-KKTD2Starter=Value=D6RD9-D4N8T-RT9QX-YW6YT-FCWWJStarterN=Value=3NFXW-2T27M-2BDW6-4GHRV-68XRXcloudedition=Value=37D7F-N49CB-WQR8W-TBJ73-FM8RXcloudeditionn=Value=6XN7V-PCBDC-BDBRH-8DQY7-G6R44Core=Value=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99CoreCountrySpecific=Value=PVMJN-6DFY6-9CCP6-7BKTT-D3WVRCoreN=Value=3KHY7-WNT83-DGQKR-F7HPR-844BMCoreSingleLanguage=Value=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFHeducation=Value=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2educationn=Value=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
1 parent2a73c5b commit42502e3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/MediaCreationLib.NET/BootlegEditions/BootlegEditionCreator.cs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
usingSystem;
2929
usingSystem.IO;
3030
usingSystem.Linq;
31+
usingSystem.Text;
3132
usingUUPMediaCreator.InterCommunication;
3233

3334
namespaceMediaCreationLib.NET.BootlegEditions
@@ -245,6 +246,11 @@ public static bool CreateHackedEditionFromMountedImage(
245246
progressCallback?.Invoke(Common.ProcessPhase.ApplyingImage,true,0,"Getting serial for "+EditionID);
246247
stringproductinifilepath=Path.Combine(MediaPath,"sources","product.ini");
247248

249+
// .......How?
250+
stringproductIni=File.ReadAllText(productinifilepath).Replace("=Value=","=");
251+
usingStreamproductIniStream=newMemoryStream(Encoding.UTF8.GetBytes(productIni));
252+
usingStreamReaderproductIniStreamReader=new(productIniStream);
253+
248254
FileIniDataParserparser=new();
249255

250256
parser.Parser.Configuration.AllowDuplicateKeys=true;
@@ -253,7 +259,7 @@ public static bool CreateHackedEditionFromMountedImage(
253259
parser.Parser.Configuration.OverrideDuplicateKeys=true;
254260
parser.Parser.Configuration.ConcatenateDuplicateKeys=false;
255261

256-
IniDatadata=parser.ReadFile(productinifilepath);
262+
IniDatadata=parser.ReadData(productIniStreamReader);
257263

258264
stringserial=data["cmi"].First(x=>string.Equals(x.KeyName,EditionID,StringComparison.CurrentCultureIgnoreCase)).Value;
259265
progressCallback?.Invoke(Common.ProcessPhase.ApplyingImage,true,0,"Serial: "+serial);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp