OSDN Git Service

SDL_atomic_t サンプルコードを修正 https://wiki.libsdl.org/SDL_atomic_t?action=diff&rev1=3&rev2=4
[sdl2referencejp/sdl2referencejp.git] / SDL_GetBasePath.html
index 912224e..d00e557 100644 (file)
@@ -1,76 +1,76 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
-<html lang="ja-JP">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">\r
-<meta http-equiv="Content-Style-Type" content="text/css">\r
-<meta name="keywords" content="Simple Directmedia Layer SDL2.0">\r
-<link rel="top" href="index.html" title="\83z\81[\83\80">\r
-<link rel="parent" href="CategoryFileSystem.html" title="1\82Â\8fã">\r
-<title>SDL_GetBasePath</title>\r
-</head>\r
-<body>\r
-<a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryFileSystem.html">\83t\83@\83C\83\8b\83V\83X\83e\83\80</a> - SDL_GetBasePath\r
-<hr>\r
-<h1>SDL_GetBasePath</h1>\r
-\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82ð\8bN\93®\82µ\82½\83f\83B\83\8c\83N\83g\83\8a\82ð\93¾\82é. \82±\82±\82ª\83A\83v\83\8a\83P\81[\83V\83\87\83\93\83f\81[\83^\83f\83B\83\8c\83N\83g\83\8a\82Å\82 \82é.\r
-<h2>\8d\\95¶</h2>\r
-<code>char* SDL_GetBasePath(void)</code>\r
-<h2>\96ß\82è\92l</h2>\r
-<p>\r
-Returns an absolute path in UTF-8 encoding to the application data directory. NULL will be returned on error or when the platform doesn't implement this functionality, call SDL_GetError() for more information.\r
-\83A\83v\83\8a\83P\81[\83V\83\87\83\93\83f\81[\83^\83f\83B\83\8c\83N\83g\83\8a\82ÌUTF-8\82Ì\90â\91Î\83p\83X\96¼\82ð\96ß\82·.\r
-\8e¸\94s\82Ü\82½\82Í\82±\82Ì\8aÖ\90\94\82ª\8eÀ\91\95\82³\82ê\82Ä\82¢\82È\82¢\8aÂ\8b«\82Ì\8fê\8d\87NULL\82ð\96ß\82·.\r
-<a href="SDL_GetError.html">SDL_GetError()</a>\82Å\8fÚ\8d×\82ð\92m\82é\82±\82Æ\82ª\82Å\82«\82é.\r
-</p>\r
-<p>\r
-\96ß\82³\82ê\82½\83p\83X\82Í\8dÅ\8cã\82ª\8bæ\90Ø\82è\8bL\8d\86(Windows\82È\82ç'\', \91¼\82Ì\8aÂ\8b«\82È\82ç'/')\82Å\8fI\82í\82Á\82Ä\82¢\82é\82±\82Æ\82ª\95Û\8fá\82³\82ê\82Ä\82¢\82é.\r
-</p>\r
-<p>\r
-\82±\82Ì\83|\83C\83\93\83^\82Ì\8aÇ\97\9d\82Í\83v\83\8d\83O\83\89\83}\82ª\8ds\82¤.\r
-\8eg\82¢\8fI\82í\82Á\82½\82ç<a href="SDL_free.html">SDL_free()</a>\82ð\8cÄ\82Ô\95K\97v\82ª\82 \82é.\r
-</p>\r
-<h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
-<p>\r
-<code>\r
-<pre>\r
-char *data_path = NULL;\r
-\r
-void InitializeDataPath() {\r
-    char *base_path = SDL_GetBasePath();\r
-    if (base_path) {\r
-        data_path = base_path;\r
-    } else {\r
-        data_path = SDL_strdup("./");\r
-    }\r
-}\r
-</pre>\r
-</code>\r
-</p>\r
-<h2>\8fÚ\8d×</h2>\r
-<p>\r
-\82±\82Ì\8aÖ\90\94\82Í\91¬\82¢\95K\97v\82Í\82È\82¢. \82»\82ê\82É\82à\8aÖ\82í\82ç\82¸\91¬\82³\82ª\95K\97v\82È\82ç\82Î, \8dÅ\8f\89\82É\8cÄ\82ñ\82¾\82Æ\82«\82É\95\8e\9a\97ñ\82ð\95Û\91\82·\82é\95K\97v\82ª\82 \82é.\r
-</p>\r
-<p>\r
-<strong>Mac OS X\82ÆiOS\82Ì\93Á\95Ê\82È\8ed\97l:</strong>\r
-\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82ª".app"\83o\83\93\83h\83\8b\82³\82ê\82Ä\82¢\82ê\82Î, \82±\82Ì\8aÖ\90\94\82Í\83\8a\83\\81[\83X\83f\83B\83\8c\83N\83g\83\8a(\97á: MyApp.app/Contents/Resources/)\82ð\96ß\82·.\r
-\82±\82Ì\93®\8dì\82ÍInfo.plist\82É\83v\83\8d\83p\83e\83B\82ð\92Ç\89Á\82µ\82Ä\8fã\8f\91\82«\82Å\82«\82é.\r
-SDL_FILESYSTEM_BASE_DIR_TYPE \95\8e\9a\97ñ\83L\81[\82É\92l\82ð\92Ç\89Á\82·\82é\82Æ\93®\8dì\82ð\95Ï\82¦\82ç\82ê\82é.\r
-</p>\r
-<p>\r
-SDL_FILESYSTEM_BASE_DIR_TYPE \83v\83\8d\83p\83e\83B\82Ì\92l (\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82Í /Applications/SDLApp/MyApp.app \82É\82 \82é\82Æ\82·\82é):\r
-<table border="1" summary="">\r
-<tr><th>\92l</th><th>\90à\96¾</th><th>\97á</th></tr>\r
-<tr><th>resource</th><td>\83o\83\93\83h\83\8b\82³\82ê\82½\83\8a\83\\81[\83X\83f\83B\83\8c\83N\83g\83\8a (\83f\83t\83H\83\8b\83g)</td><td>/Applications/SDLApp/MyApp.app/Contents/Resources</td></tr>\r
-<tr><th>bundle</th><td>\83o\83\93\83h\83\8b\83f\83B\83\8c\83N\83g\83\8a</td><td>/Applications/SDLApp/MyApp.app/</td></tr>\r
-<tr><th>parent</th><td>\83o\83\93\83h\83\8b\83f\83B\83\8c\83N\83g\83\8a\82Ì\82 \82é\83f\83B\83\8c\83N\83g\83\8a</td><td>/Applications/SDLApp/</td></tr>\r
-</table>\r
-</p>\r
-<h2>\83o\81[\83W\83\87\83\93</h2>\r
-SDL 2.0.1\88È\8d~\r
-<h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
-<a href="SDL_GetPrefPath.html">SDL_GetPrefPath</a><br>\r
-<h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
-<a href="https://wiki.libsdl.org/SDL_GetBasePath">SDL_GetBasePath - SDL Wiki</a>\r
-<hr>\r
-</body>\r
-</html>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="ja-JP">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<meta name="keywords" content="Simple Directmedia Layer SDL2.0">
+<link rel="top" href="index.html" title="\83z\81[\83\80">
+<link rel="parent" href="CategoryFileSystem.html" title="1\82Â\8fã">
+<title>SDL_GetBasePath</title>
+</head>
+<body>
+<a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryFileSystem.html">\83t\83@\83C\83\8b\83V\83X\83e\83\80</a> - SDL_GetBasePath
+<hr>
+<h1>SDL_GetBasePath</h1>
+\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82ð\8bN\93®\82µ\82½\83f\83B\83\8c\83N\83g\83\8a\82ð\93¾\82é. \82±\82±\82ª\83A\83v\83\8a\83P\81[\83V\83\87\83\93\83f\81[\83^\83f\83B\83\8c\83N\83g\83\8a\82Å\82 \82é.
+<h2>\8d\\95¶</h2>
+<code>char* SDL_GetBasePath(void)</code>
+<h2>\96ß\82è\92l</h2>
+<p>
+Returns an absolute path in UTF-8 encoding to the application data directory. NULL will be returned on error or when the platform doesn't implement this functionality, call SDL_GetError() for more information.
+\83A\83v\83\8a\83P\81[\83V\83\87\83\93\83f\81[\83^\83f\83B\83\8c\83N\83g\83\8a\82ÌUTF-8\82Ì\90â\91Î\83p\83X\96¼\82ð\96ß\82·.
+\8e¸\94s\82Ü\82½\82Í\82±\82Ì\8aÖ\90\94\82ª\8eÀ\91\95\82³\82ê\82Ä\82¢\82È\82¢\8aÂ\8b«\82Ì\8fê\8d\87NULL\82ð\96ß\82·.
+<a href="SDL_GetError.html">SDL_GetError()</a>\82Å\8fÚ\8d×\82ð\92m\82é\82±\82Æ\82ª\82Å\82«\82é.
+</p>
+<p>
+\96ß\82³\82ê\82½\83p\83X\82Í\8dÅ\8cã\82ª\8bæ\90Ø\82è\8bL\8d\86(Windows\82È\82ç'\', \91¼\82Ì\8aÂ\8b«\82È\82ç'/')\82Å\8fI\82í\82Á\82Ä\82¢\82é\82±\82Æ\82ª\95Û\8fá\82³\82ê\82Ä\82¢\82é.
+</p>
+<p>
+\82±\82Ì\83|\83C\83\93\83^\82Ì\8aÇ\97\9d\82Í\83v\83\8d\83O\83\89\83}\82ª\8ds\82¤.
+\8eg\82¢\8fI\82í\82Á\82½\82çSDL_free()\82ð\8cÄ\82Ô\95K\97v\82ª\82 \82é.
+</p>
+<h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
+<p>
+<code>
+<pre>
+char *data_path = NULL;
+
+void InitializeDataPath() {
+    char *base_path = SDL_GetBasePath();
+    if (base_path) {
+        data_path = base_path;
+    } else {
+        data_path = SDL_strdup("./");
+    }
+}
+</pre>
+</code>
+</p>
+<h2>\8fÚ\8d×</h2>
+<p>
+\82±\82Ì\8aÖ\90\94\82Í\91¬\82¢\95K\97v\82Í\82È\82¢. \82»\82ê\82É\82à\8aÖ\82í\82ç\82¸\91¬\82³\82ª\95K\97v\82È\82ç\82Î, \8dÅ\8f\89\82É\8cÄ\82ñ\82¾\82Æ\82«\82É\95\8e\9a\97ñ\82ð\95Û\91\82·\82é\95K\97v\82ª\82 \82é.
+</p>
+<p>
+<strong>Mac OS X\82ÆiOS\82Ì\93Á\95Ê\82È\8ed\97l:</strong>
+\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82ª".app"\83o\83\93\83h\83\8b\82³\82ê\82Ä\82¢\82ê\82Î, \82±\82Ì\8aÖ\90\94\82Í\83\8a\83\\81[\83X\83f\83B\83\8c\83N\83g\83\8a(\97á: MyApp.app/Contents/Resources/)\82ð\96ß\82·.
+\82±\82Ì\93®\8dì\82ÍInfo.plist\82É\83v\83\8d\83p\83e\83B\82ð\92Ç\89Á\82µ\82Ä\8fã\8f\91\82«\82Å\82«\82é.
+SDL_FILESYSTEM_BASE_DIR_TYPE \95\8e\9a\97ñ\83L\81[\82É\92l\82ð\92Ç\89Á\82·\82é\82Æ\93®\8dì\82ð\95Ï\82¦\82ç\82ê\82é.
+</p>
+<p>
+SDL_FILESYSTEM_BASE_DIR_TYPE \83v\83\8d\83p\83e\83B\82Ì\92l (\83A\83v\83\8a\83P\81[\83V\83\87\83\93\82Í /Applications/SDLApp/MyApp.app \82É\82 \82é\82Æ\82·\82é):
+<table border="1" summary="">
+<tr><th>\92l</th><th>\90à\96¾</th><th>\97á</th></tr>
+<tr><th>resource</th><td>\83o\83\93\83h\83\8b\82³\82ê\82½\83\8a\83\\81[\83X\83f\83B\83\8c\83N\83g\83\8a (\83f\83t\83H\83\8b\83g)</td><td>/Applications/SDLApp/MyApp.app/Contents/Resources</td></tr>
+<tr><th>bundle</th><td>\83o\83\93\83h\83\8b\83f\83B\83\8c\83N\83g\83\8a</td><td>/Applications/SDLApp/MyApp.app/</td></tr>
+<tr><th>parent</th><td>\83o\83\93\83h\83\8b\83f\83B\83\8c\83N\83g\83\8a\82Ì\82 \82é\83f\83B\83\8c\83N\83g\83\8a</td><td>/Applications/SDLApp/</td></tr>
+</table>
+</p>
+<h2>\83o\81[\83W\83\87\83\93</h2>
+SDL 2.0.1\88È\8d~
+<h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>
+<a href="SDL_GetPrefPath.html">SDL_GetPrefPath</a><br>
+<h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>
+<a href="https://wiki.libsdl.org/SDL_GetBasePath">SDL_GetBasePath - SDL Wiki</a>
+<hr>
+</body>
+</html>