方案商的开发板上otg功能只能做device,硬件看过后说没有5v供电,加上后能够识别U盘了,但是内核报了错 [ 3.264000] usb 2-1: new high-speed USB device number 2 using dwc_otg[ 3.280000] BUG: sleeping function called from invalid context at mm/page_alloc.c:2444[ 3.284000] in_atomic(): 1, irqs_disable…
最近在游戏里要显示当前系统时间的功能,网上一搜很多写着获取的方法,大都是如下 struct cc_timeval now; CCTime::gettimeofdayCocos2d(&now, NULL); struct tm *tm; tm = localtime(&now.tv_sec); int year = tm->tm_year + 1900; int month = tm->tm_mon + 1; int day = tm->tm_mday; int hour=…
Continue with the previous post: https://www.cnblogs.com/Answer1215/p/12337243.html What we want to do in this post, is adding parent function name into the console log as well: Previous output is : function add(a, b) { console.log("2:4", a, b)…
OverView The purpose of this document is show you how does function CCFileUtils::fullPathForFilename() work on different platforms. The document is based on engine version: cocos2d-x 2.1 CCFileUtils::fullPathForFilename() is not return the absolute p…
转自官网的文档. How to Run cpp-tests on win32 In this article, I will show you how to run cpp-tests on your windows PC. Environmental Requirements Cocos2D-X version: cocos2d-x v3.0 (https://github.com/cocos2d/cocos2d-x/) IDE: Visual Studio 2012 Dependencies…
Microsoft Win32 to Microsoft .NET Framework API Map .NET Development (General) Technical Articles Microsoft .NET Framework and Microsoft Visual Studio User Education TeamsMicrosoft Corporation January 2004 Applies to: Microsoft® .NET Framework…
自定义路径创建Cocos2d-x项目 本文介绍windows下面如何优雅的创建Cocos2d-x项目.为何称之为优雅,是因为现在网上流传的一些创建方法有一些问题.大致内容如下: l 使用VS向导创建Cocos2d-x项目(废弃,不建议使用) l 使用create_project.py n 问题1:工程名等替换不完全 n 问题2:创建项目不能指定路径 使用VS向导创建Cocos2d-x项目(废弃,不建议使用) 在Cocos2d-x 2.1.3及之前,官方使用“install-templat…
0. Overview Cocos2d-x-win32's project can be generated by Wizard. Wizard supports Visual Studio 2008, Visual Studio 2010(0.8.0 or later), Visual C++2008 Express(0.8.0 or later) and Visual C++ 2010 Express(0.8.0 or later) . 1. Frist of all, get the co…
http://yong321.freeshell.org/Oracle Function Call List 1. Oracle function call list If you want to see what other functions a given function calls in software, you can disassemble the function. Inspired by Dennis Yurichev's Oracle function call list,…