| 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();
|
|
|