Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: nacltoons/src/main.cc

Issue 12226130: [nacltoons] Add initial frontend and physics game scenes. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nacltoons/src/PhysicsLayer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacltoons/src/main.cc
diff --git a/nacltoons/src/main.cc b/nacltoons/src/main.cc
index 6bb90ee40fc4aea83e855e5623a4db3a1c1db6b1..b3eee83d1e1228d0776188c45d81e69385ed8cb7 100644
--- a/nacltoons/src/main.cc
+++ b/nacltoons/src/main.cc
@@ -1,7 +1,6 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
#include "CCStdC.h"
#include "AppDelegate.h"
#include "cocos2d.h"
@@ -22,7 +21,7 @@ USING_NS_CC;
AppDelegate g_app;
-void downloadFiles(MainThreadRunner* runner,
+void DownloadFiles(MainThreadRunner* runner,
const char** filenames, int num_files) {
CCLOG("Downloading %d files...", num_files);
for (int i = 0; i < num_files; i++) {
@@ -59,12 +58,10 @@ void* cocos_main(void* arg) {
pp::Module::Get()->get_browser_interface());
// TODO(sbc): remove this hack an replace with some kind of URL mount
- mkdir("hd", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
- mkdir("sd", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
mkdir("fonts", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
- const char* filenames[] = { "fonts/Marker Felt.ttf" };
+ const char* filenames[] = { "fonts/Marker Felt.ttf", "blocks.png" };
- downloadFiles(instance->m_runner, filenames, sizeof(filenames)/sizeof(char*));
+ DownloadFiles(instance->m_runner, filenames, sizeof(filenames)/sizeof(char*));
CCEGLView::g_instance = instance;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
« no previous file with comments | « nacltoons/src/PhysicsLayer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698