Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theMK2k committed Sep 5, 2018
1 parent 350cd6e commit c6dc16e
Show file tree
Hide file tree
Showing 78 changed files with 34,282 additions and 16,163 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ Metropolis_Launcher/bin/**/*
Metropolis_Launcher/obj/**/*
Metropolis_Launcher/Metropolis_Launcher.vbproj.user

Metropolis_Launcher/rombase.db
Metropolis_Launcher/moby.db
Metropolis_Launcher/imdb.db
Metropolis_Launcher/*.db
Metropolis_Launcher/tools/*
16 changes: 16 additions & 0 deletions Metropolis_Launcher/Classes/cls_Extras.vb
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,20 @@

Return True
End Function

Public Shared Function LoadImageFromStreamSafe(ByVal filepath As String, Optional ByVal deleteOnFail As Boolean = True)
Try
Return Image.FromStream(New IO.MemoryStream(Alphaleonis.Win32.Filesystem.File.ReadAllBytes(filepath)))
Catch ex As Exception
If deleteOnFail AndAlso False Then
Try
Alphaleonis.Win32.Filesystem.File.Delete(filepath)
Catch ex2 As Exception

End Try
End If
End Try

Return Nothing
End Function
End Class
31 changes: 30 additions & 1 deletion Metropolis_Launcher/Classes/cls_Globals.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Public Class cls_Globals
Imports System.Web

Public Class cls_Globals
Public Shared Suppress_MetroUINavigationBarsShowing As Boolean = False
Public Shared Conn As SQLite.SQLiteConnection
Public Shared ISO_8859_1_Replace As New MKNetLib.cls_MKISO_8859_1_Replace
Expand All @@ -14,10 +16,15 @@
Public Shared Admin As Boolean = True
Public Shared Restricted As Boolean = False
Public Shared id_Users As Integer = 0
Public Shared id_Cheevo_Challenges As Int64 = 0L

Public Shared Logging As Boolean = False
Public Shared Logfile As String = ""

Public Shared RetroAchievements_Token As String = ""
Public Shared RetroAchievements_User As String = ""
Public Shared RetroAchievements_Pass As String = ""

Public Shared Function GetLogfile() As String
If Alphaleonis.Win32.Filesystem.File.Exists(Logfile) Then
Return Logfile
Expand Down Expand Up @@ -215,6 +222,17 @@
Other_Attributes = 14
End Enum

Public Enum enm_Script_Types
NONE = 0
AutoIt = 1
AutoHotKey = 2
End Enum

Public Enum enm_CheevoTypes
RetroAchievements = 0 ' Cheevo based on RetroAchievements
TotalRuntime = 1 ' Cheevo based on the total runtime (measured by Metropolis Launcher)
End Enum

Public Shared Function TempDir(tran As SQLite.SQLiteTransaction) As String
Dim sTempDir As String = TC.NZ(cls_Settings.GetSetting("Dir_Temp", tran:=tran), "")

Expand Down Expand Up @@ -253,4 +271,15 @@

Return sBackupDir
End Function

Public Shared Sub OpenURL(URL As String)
Try
Dim procinfo As New ProcessStartInfo(URL)
procinfo.UseShellExecute = True
Process.Start(procinfo)
Catch ex As Exception

End Try

End Sub
End Class
3 changes: 3 additions & 0 deletions Metropolis_Launcher/Classes/cls_Settings.vb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
cls_Globals.Dir_Screenshot = TC.NZ(cls_Settings.GetSetting("Dir_Screenshot"), "")
End If

cls_Globals.RetroAchievements_User = TC.NZ(cls_Settings.GetSetting("RetroAchievements_User", cls_Settings.enm_Settingmodes.Per_User), "")
cls_Globals.RetroAchievements_Pass = TC.NZ(cls_Settings.GetSetting("RetroAchievements_Pass", cls_Settings.enm_Settingmodes.Per_User), "")

MKNetLib.cls_MKFileSupport.TempDirRoot = cls_Globals.TempDir(Nothing)
End Sub

Expand Down
31,116 changes: 18,861 additions & 12,255 deletions Metropolis_Launcher/DataSets/DS_ML.Designer.vb

Large diffs are not rendered by default.

552 changes: 488 additions & 64 deletions Metropolis_Launcher/DataSets/DS_ML.vb

Large diffs are not rendered by default.

145 changes: 145 additions & 0 deletions Metropolis_Launcher/DataSets/DS_ML.xsd

Large diffs are not rendered by default.

103 changes: 56 additions & 47 deletions Metropolis_Launcher/DataSets/DS_ML.xss

Large diffs are not rendered by default.

540 changes: 540 additions & 0 deletions Metropolis_Launcher/Forms/frm_Cheevo_Challenges_Add.Designer.vb

Large diffs are not rendered by default.

142 changes: 142 additions & 0 deletions Metropolis_Launcher/Forms/frm_Cheevo_Challenges_Add.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="BS_Cheevo_Challenges.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>106, 17</value>
</metadata>
<metadata name="DS_ML.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="ToolTipItem1.Text" xml:space="preserve">
<value>A challenge can have multiple tiers. Each achievement within that tier must be accomplished in order to reach the next tier.

When all achievements in all tiers are accomplished, the challenge is completed.</value>
</data>
<metadata name="BS_Tiers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>282, 17</value>
</metadata>
<data name="ToolTipItem2.Text" xml:space="preserve">
<value>A challenge can have multiple tiers. Each achievement within that tier must be accomplished in order to reach the next tier.

When all achievements in all tiers are accomplished, the challenge is completed.</value>
</data>
<metadata name="BS_Cheevos_in_Tier.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>378, 17</value>
</metadata>
</root>
Loading

0 comments on commit c6dc16e

Please sign in to comment.