Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
da462e73
Commit
da462e73
authored
Nov 24, 2016
by
wudizhanche1000
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v3' of
https://github.com/mycard/mycard
into v3
parents
2b86a7b5
76e6b34f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
app/apps.service.ts
app/apps.service.ts
+7
-4
apps.json
apps.json
+1
-1
No files found.
app/apps.service.ts
View file @
da462e73
...
...
@@ -138,9 +138,10 @@ export class AppsService {
}
let
execute
=
path
.
join
(
cwd
,
action
.
execute
);
if
(
action
.
open
)
{
let
np2
=
<
App
>
action
.
open
;
let
openAction
:
Action
;
openAction
=
<
Action
>
action
.
open
.
actions
.
get
(
'
main
'
);
let
openPath
=
(
<
AppLocal
>
action
.
open
.
local
).
path
;
openAction
=
<
Action
>
np2
.
actions
.
get
(
'
main
'
);
let
openPath
=
(
<
AppLocal
>
np2
.
local
).
path
;
if
(
action
.
open
.
id
==
'
np2fmgen
'
)
{
const
config_file
=
path
.
join
((
<
AppLocal
>
(
<
App
>
action
.
open
).
local
).
path
,
'
np21nt.ini
'
);
let
config
=
await
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -150,12 +151,12 @@ export class AppsService {
});
});
const
default_config
=
{
clk_mult
:
'
32
'
,
clk_mult
:
'
48
'
,
DIPswtch
:
'
3e f3 7b
'
,
SampleHz
:
'
44100
'
,
Latencys
:
'
100
'
,
MIX_TYPE
:
'
true
'
,
windtype
:
'
1
'
windtype
:
'
0
'
};
config
[
'
NekoProject21
'
]
=
Object
.
assign
({},
default_config
,
config
[
'
NekoProject21
'
]);
config
[
'
NekoProject21
'
][
'
HDD1FILE
'
]
=
path
.
win32
.
join
((
process
.
platform
==
'
win32
'
?
''
:
'
Z:
'
),
(
<
AppLocal
>
app
.
local
).
path
,
action
.
execute
);
...
...
@@ -173,11 +174,13 @@ export class AppsService {
let
wine
=
<
App
>
openAction
.
open
;
openPath
=
(
<
AppLocal
>
wine
.
local
).
path
;
openAction
=
<
Action
>
(
<
App
>
openAction
.
open
).
actions
.
get
(
"
main
"
);
cwd
=
(
<
AppLocal
>
np2
.
local
).
path
;
}
args
=
args
.
concat
(
openAction
.
args
);
args
.
push
(
action
.
execute
);
execute
=
path
.
join
(
openPath
,
openAction
.
execute
);
env
=
Object
.
assign
(
env
,
openAction
.
env
);
}
args
=
args
.
concat
(
action
.
args
);
env
=
Object
.
assign
(
env
,
action
.
env
);
...
...
apps.json
View file @
da462e73
...
...
@@ -2011,7 +2011,7 @@
{
"id"
:
"np2fmgen"
,
"name"
:
{
"zh-CN"
:
"
np2fmgen
"
"zh-CN"
:
"
Neko Project II
"
},
"dependencies"
:
{
"win32"
:
[],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment