Skip to content

Commit

Permalink
add prerequisite, czech (lang) and more
Browse files Browse the repository at this point in the history
  • Loading branch information
Anime4000 committed Sep 18, 2015
1 parent 0117eb6 commit e6aee0f
Show file tree
Hide file tree
Showing 20 changed files with 448 additions and 40 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ $RECYCLE.BIN/
build
installer/*.mp3
installer/*.dll
prerequisite/linux/
prerequisite/windows/
references/*.dll
prerequisite/windows/*.dll
prerequisite/windows/*.exe
Expand Down
11 changes: 4 additions & 7 deletions compile.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@ echo COPY IFME MAIN FILE
mkdir %BUILDDIR%\benchmark
robocopy ifme\bin\%CompileMode%\extension %BUILDDIR%\extension /E
robocopy ifme\bin\%CompileMode%\lang %BUILDDIR%\lang /E
robocopy ifme\bin\%CompileMode%\plugins\avisynth %BUILDDIR%\plugins\avisynth /E
robocopy ifme\bin\%CompileMode%\plugins\faac %BUILDDIR%\plugins\faac /E
robocopy ifme\bin\%CompileMode%\plugins\mp4fpsmod %BUILDDIR%\plugins\mp4fpsmod /E
robocopy ifme\bin\%CompileMode%\plugins\opus %BUILDDIR%\plugins\opus /E
robocopy ifme\bin\%CompileMode%\profile %BUILDDIR%\profile /E
robocopy ifme\bin\%CompileMode%\sounds %BUILDDIR%\sounds /E
copy ifme\bin\%CompileMode%\7za.exe %BUILDDIR%
copy ifme\bin\%CompileMode%\addons_linux32.repo %BUILDDIR%
copy ifme\bin\%CompileMode%\addons_linux64.repo %BUILDDIR%
copy ifme\bin\%CompileMode%\addons_windows32.repo %BUILDDIR%
Expand Down Expand Up @@ -83,11 +78,13 @@ echo CLEAN UP
del /f /s /q %BUILDDIR%\*.ifz

echo Next... Making packaging (.7z). Get ready first
pause
timeout /t 3 >nul



echo PACKAGING
ren %BUILDDIR% ifme5
"%PROGRAMFILES%\7-Zip\7z.exe" a -r -t7z -mx=9 -ms=on ifme5.7z ifme5
"%PROGRAMFILES%\7-Zip\7z.exe" a -r -t7z -mx=9 -ms=on ifme5-x64.7z ifme5
ren ifme5 %BUILDDIR%

echo.
Expand Down
9 changes: 8 additions & 1 deletion ifme/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class Language
{
public string Code;
public string Name;
public string Author;
public string Contact;

// No shorting, gonna use foreach that equal index of Combobox
public static List<Language> Lists = new List<Language>();
Expand All @@ -20,7 +22,12 @@ public static void Display()
foreach (var item in Directory.GetFiles(Global.Folder.Language, "*.ini"))
{
var data = new FileIniDataParser().ReadFile(item, Encoding.UTF8);
Lists.Add(new Language() { Code = data["info"]["Code"], Name = data["info"]["Name"] });
Lists.Add(new Language() {
Code = data["info"]["Code"],
Name = data["info"]["Name"],
Author = data["info"]["Author"],
Contact = data["info"]["Contact"]
});
}
}

Expand Down
7 changes: 2 additions & 5 deletions ifme/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ static int Main(string[] args)
return 0;

// Make WinForms much pretty
if (OS.IsWindows)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

// Splash Screen, loading and update
SplashScreen();
Expand Down
2 changes: 1 addition & 1 deletion ifme/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.0.*")]
[assembly: AssemblyFileVersion("5.0.8")]
[assembly: AssemblyFileVersion("5.0.9")]
[assembly: NeutralResourcesLanguageAttribute("en")]
20 changes: 20 additions & 0 deletions ifme/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ifme/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,10 @@
<data name="server_lightning" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\server_lightning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="user" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\user.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="world" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\world.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file added ifme/Resources/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ifme/Resources/world.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 56 additions & 5 deletions ifme/frmOption.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ifme/frmOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ private void frmOption_Load(object sender, EventArgs e)
}
}

private void cboLang_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboLang.SelectedIndex >= 0)
{
lblLangWho.Text = Language.Lists[cboLang.SelectedIndex].Author;
lblLangWhoWeb.Text = Language.Lists[cboLang.SelectedIndex].Contact;
}
}

private void btnBrowse_Click(object sender, EventArgs e)
{
FolderBrowserDialog GetFolder = new FolderBrowserDialog();
Expand Down
5 changes: 5 additions & 0 deletions ifme/ifme.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
<None Include="iso.code">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="lang\cs.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="lang\en.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -230,6 +233,8 @@
<None Include="Resources\asterisk_orange.png" />
<None Include="Resources\script_add.png" />
<None Include="Resources\script_edit.png" />
<None Include="Resources\user.png" />
<None Include="Resources\world.png" />
<Content Include="sounds\finish.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
Loading

0 comments on commit e6aee0f

Please sign in to comment.