games/freesynd: Fix build with clang 16
This commit is contained in:
parent
46888d1f66
commit
3416b961ce
4 changed files with 62 additions and 0 deletions
21
games/freesynd/files/patch-src_app.h
Normal file
21
games/freesynd/files/patch-src_app.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- src/app.h.orig 2016-05-01 20:07:33 UTC
|
||||
+++ src/app.h
|
||||
@@ -153,13 +153,13 @@ class App : public Singleton < App > { (private)
|
||||
private:
|
||||
bool running_;
|
||||
/*! A structure to hold general application informations.*/
|
||||
- std::auto_ptr<AppContext> context_;
|
||||
+ std::unique_ptr<AppContext> context_;
|
||||
/*! A structure to hold player informations.*/
|
||||
- std::auto_ptr<GameSession> session_;
|
||||
+ std::unique_ptr<GameSession> session_;
|
||||
/*! Controls the game logic. */
|
||||
- std::auto_ptr<GameController> game_ctlr_;
|
||||
- std::auto_ptr<Screen> screen_;
|
||||
- std::auto_ptr<System> system_;
|
||||
+ std::unique_ptr<GameController> game_ctlr_;
|
||||
+ std::unique_ptr<Screen> screen_;
|
||||
+ std::unique_ptr<System> system_;
|
||||
|
||||
std::string iniPath_;
|
||||
|
11
games/freesynd/files/patch-src_dump.cpp
Normal file
11
games/freesynd/files/patch-src_dump.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/dump.cpp.orig 2016-05-01 20:07:33 UTC
|
||||
+++ src/dump.cpp
|
||||
@@ -584,7 +584,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
|
||||
- std::auto_ptr<EditorApp> app(new EditorApp(disable_sound));
|
||||
+ std::unique_ptr<EditorApp> app(new EditorApp(disable_sound));
|
||||
|
||||
if (app->initialize(iniPath)) {
|
||||
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application completed"))
|
19
games/freesynd/files/patch-src_editor_editorapp.h
Normal file
19
games/freesynd/files/patch-src_editor_editorapp.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- src/editor/editorapp.h.orig 2016-05-01 20:07:33 UTC
|
||||
+++ src/editor/editorapp.h
|
||||
@@ -122,12 +122,12 @@ class EditorApp : public Singleton < EditorApp > { (pr
|
||||
private:
|
||||
bool running_;
|
||||
|
||||
- std::auto_ptr<Screen> screen_;
|
||||
- std::auto_ptr<System> system_;
|
||||
+ std::unique_ptr<Screen> screen_;
|
||||
+ std::unique_ptr<System> system_;
|
||||
/*! A structure to hold general application informations.*/
|
||||
- std::auto_ptr<AppContext> context_;
|
||||
+ std::unique_ptr<AppContext> context_;
|
||||
/*! Controls the game logic. */
|
||||
- std::auto_ptr<GameController> game_ctlr_;
|
||||
+ std::unique_ptr<GameController> game_ctlr_;
|
||||
|
||||
std::string iniPath_;
|
||||
|
11
games/freesynd/files/patch-src_freesynd.cpp
Normal file
11
games/freesynd/files/patch-src_freesynd.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/freesynd.cpp.orig 2016-05-01 20:07:33 UTC
|
||||
+++ src/freesynd.cpp
|
||||
@@ -229,7 +229,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
LOG(Log::k_FLG_INFO, "Main", "main", ("----- Initializing application..."))
|
||||
- std::auto_ptr<App> app(new App(disable_sound));
|
||||
+ std::unique_ptr<App> app(new App(disable_sound));
|
||||
|
||||
if (app->initialize(iniPath)) {
|
||||
// setting the cheat codes
|
Loading…
Reference in a new issue