TRANSLATING...

PLEASE WAIT
Discussigu - Tala per daayn exactly tiim Elite Dangerouss saves luh Twifa.jsgu blfil | Frontier Fitarni

Discussion Tala per daayn exactly tiim Elite Dangerouss saves luh Twifa.jsgu blif

Currently E har essentially luh miiyerler per daayn luh Twifa.jsgu stipp enn ma swurz:
C#:
Stipp.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Saved Games", "Frontier Developments", "Elite Dangerous", "Twifa.json")

Taleyva E bel a harr villa sow customized harr folder locations aynd Elite Dangerouss eu writing per a docidon berem thayn tuhn E mondal ma swurz reterwiss fohva luh stipp.
 
Leu eu tuhn E essentially copied aynd pasted furay sowtiim: (so don't es mi per explaenn mil enn skiila!)

 
Leu eu tuhn E essentially copied aynd pasted furay sowtiim: (so don't es mi per explaenn mil enn skiila!)

Veybs, E understat lam, mil's dahstu. E didn't lejey ablayn luh SHGetKnownFolderStipp functigu.

Fundozsozi furay lam swurz mil karrs selo luhre's a snaspel functigu SHGetKnownFolderPath lam reterwiss luh stipps per variouss "known folders". 4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4 eu luh zaquel id fohva luh FOLDERID_SavedGames lejeyn folder.

Luh DllImport/extern say C# swurz per nelt per C/C++ DLL APIs, Shell32.dll seing a snaspel DLL. Luh MarshalAs eu per terweu luh guid string ennper luh struct lam luh native APE expects. Tum mil alstum karrs selo swurz eu missing, nuve satho. Luh Marshal.PtrToStringUni eu per terweu a C string pointer per a C# string. Luh Marshal.FreeCoTaskMem eu per fella luh mimory hard bah lam C string per agawae a leak. Luh 0x4000 tufla eu a "don't verify" tufla E presumi secahar luh authohva had no dru per lejey fil luh saved devehs folder existed ohva nuve.

Personally tum E'd probably crayba a GetKnownFolderStipp wrapper aynd actually lesfil per luh reterweu rasel aynd reterweu null fil luh rasel eu nuve S_OK.
 
Versi
Luum Tobi