mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-19 19:29:15 +12:00
Update MPN00BS
This commit is contained in:
parent
f12e930538
commit
9294ec11a7
6 changed files with 34 additions and 19 deletions
|
@ -1,13 +1,19 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using HISP.Server;
|
||||
using MPN00BS.ViewModels;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace MPN00BS
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
#if OS_LINUX
|
||||
[DllImport("libc", SetLastError = true)]
|
||||
private static extern int chmod(string pathname, int mode);
|
||||
|
||||
#endif
|
||||
public App()
|
||||
{
|
||||
this.DataContext = new HispViewModel();
|
||||
|
@ -16,6 +22,9 @@ namespace MPN00BS
|
|||
public override void Initialize()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
#if OS_LINUX
|
||||
chmod(Path.Combine(Directory.GetCurrentDirectory(), "flashplayer", "LINUX", "flash.elf"), 777);
|
||||
#endif
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue