Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27-05-2019, 17:15
gatosky1620's Avatar
gatosky1620 gatosky1620 is offline
Registered User
 
Join Date: Oct 2011
Location: Perú
Posts: 287
Thanks: 13
Thanked 966 Times in 131 Posts
gatosky1620 is on a distinguished road
how i do to add the constant "username" in the [IniFileInfo]

Quote:
SetIniFile2={app}\steam_emu.ini; Section: Settings; Key: UserName; Value: get username from windows
Reply With Quote
The Following User Says Thank You to gatosky1620 For This Useful Post:
Simorq (29-07-2019)
Sponsored Links
  #2  
Old 27-05-2019, 20:50
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,082
Thanks: 1,855
Thanked 2,319 Times in 792 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by gatosky1620 View Post
how i do to add the constant "username" in the [IniFileInfo]
try
Open script and edit this line (Insert text in red color and delete blue color part)

Code:
function DecodeINI(Line: String): TIniFileInfo;
var
  TmpStr: String;
begin
  TmpStr := Line
  if Copy(TmpStr, Length(TmpStr), 1) <> ';' then
    TmpStr := TmpStr + ';';
  //.....
  if Pos('Value:', TmpStr) <> 0 then begin
    Result.Value := Copy(TmpStr, Pos('Value:', TmpStr) + Length('Value:'), Length(TmpStr));
    Result.Value := ExpandConstant(Trim(Copy(Result.Value, 0, Pos(';', Result.Value) - 1))) + '|';
    StringChange(Result.Value, ' ', '');
    Delete(TmpStr, 1, Pos(';', TmpStr));
    if Pos(LowerCase(ActLangShort + '='), LowerCase(Result.Value)) > 0 then begin
      Result.Value := Result.Value + '|';
      Result.Value := Copy(Result.Value, Pos(LowerCase(ActLangShort + '='), LowerCase(Result.Value)) + Length(ActLangShort + '='), Length(Result.Value));
      Result.Value := Trim(Copy(Result.Value, 0, Pos('|', Result.Value) - 1));
    end else
      if Pos('=', Result.Value) > 0 then
        Result.Value := TranslatorINI(ActLangShort);
  end else
    Result.Value := TranslatorINI(ActLangShort);
  if Pos('Create:', TmpStr) <> 0 then begin
use:
Code:
SetIniFile2={app}\steam_emu.ini; Section: Settings; Key: UserName; Value: {username}
I did not test, but I think it works.

Last edited by Cesar82; 27-05-2019 at 21:05.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Simorq (29-07-2019)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
[GSERIES] Custom Installer Ultimate V2g Gupta Conversion Tutorials 226 01-06-2018 14:12
Crysis 3 DVD9 to 3xDVD5 Custom Installer spawniectes PC Games - CD/DVD Conversions 79 31-08-2017 08:19



All times are GMT -7. The time now is 20:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com