OSDN Git Service
(root)
/
sdl2referencejp
/
sdl2referencejp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1808d7d
)
SDL_GetPrefPath サンプルコードを修正
author
maruhiro
<maruhiro@bridge.ocn.ne.jp>
Sat, 9 May 2015 02:23:35 +0000
(11:23 +0900)
committer
maruhiro
<maruhiro@bridge.ocn.ne.jp>
Sat, 9 May 2015 02:23:35 +0000
(11:23 +0900)
SDL_GetPrefPath.html
patch
|
blob
|
history
diff --git
a/SDL_GetPrefPath.html
b/SDL_GetPrefPath.html
index
4f4adbe
..
df3544d
100644
(file)
--- a/
SDL_GetPrefPath.html
+++ b/
SDL_GetPrefPath.html
@@
-40,8
+40,7
@@
char *pref_path = NULL;
void InitializePrefPath() {
\r
char *base_path = SDL_GetPrefPath("My Company", "My Awesome SDL 2 Game");
\r
if (base_path) {
\r
- pref_path = SDL_strdup(base_path);
\r
- SDL_free(base_path);
\r
+ pref_path = base_path;
\r
} else {
\r
/*
\83
Q
\81
[
\83
\80
\82
Å
\8f
î
\95
ñ
\82
ð
\8f
\91
\82
©
\82
È
\82
¢
\82
æ
\82
¤
\82
É
\82
·
\82
é
\8f
\88
\97
\9d
\82
ð
\82
±
\82
±
\82
É
\8f
\91
\82
*/
\r
}
\r