-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cc
22 lines (20 loc) · 891 Bytes
/
main.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2013 The Voyjor.inc Authors. All rights reserved.
// Use of this source code is governed by a GNU-public-style license that can be
// found in the LICENSE file.
#include <windows.h>
#include "content\public\app\startup_helper_win.h"
#include "content/public/app/content_main.h"
#include "sandbox\win\src\sandbox_types.h"
#include "content\public\app\content_main_runner.h"
#include "KaminoMainDelegate.h"
#include "KaminoGlobal.h"
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR cmd, int nCmdShow){
if(KaminoGlobal::Initialize(cmd)){
sandbox::SandboxInterfaceInfo sandbox = {0};
content::InitializeSandboxInfo(&sandbox);
content::ContentMainRunner *main_runner = content::ContentMainRunner::Create();
content::KaminoMainDelegate main_delegate;
return content::ContentMain(hInstance, &sandbox, &main_delegate);
}
return 0;
}